<?php

// This class was generated on Wed, 01 Aug 2018 16:35:04 PDT by version 0.1.0-dev+0ee05a-dirty of Braintree SDK Generator
// AuthorizationsCaptureRequest.php
// @version 0.1.0-dev+0ee05a-dirty
// @type request
// @data [encoded data, 4692 characters]
// DO NOT EDIT
namespace DynamicOOOS\PayPalCheckoutSdk\Payments;

use DynamicOOOS\PayPalHttp\HttpRequest;
class AuthorizationsCaptureRequest extends HttpRequest
{
    function __construct($authorizationId)
    {
        parent::__construct("/v2/payments/authorizations/{authorization_id}/capture?", "POST");
        $this->path = \str_replace("{authorization_id}", \urlencode($authorizationId), $this->path);
        $this->headers["Content-Type"] = "application/json";
    }
    public function payPalRequestId($payPalRequestId)
    {
        $this->headers["PayPal-Request-Id"] = $payPalRequestId;
    }
    public function prefer($prefer)
    {
        $this->headers["Prefer"] = $prefer;
    }
}
