<?php

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

use DynamicOOOS\PayPalHttp\HttpRequest;
class OrdersAuthorizeRequest extends HttpRequest
{
    function __construct($orderId)
    {
        parent::__construct("/v2/checkout/orders/{order_id}/authorize?", "POST");
        $this->path = \str_replace("{order_id}", \urlencode($orderId), $this->path);
        $this->headers["Content-Type"] = "application/json";
    }
    public function payPalClientMetadataId($payPalClientMetadataId)
    {
        $this->headers["PayPal-Client-Metadata-Id"] = $payPalClientMetadataId;
    }
    public function payPalRequestId($payPalRequestId)
    {
        $this->headers["PayPal-Request-Id"] = $payPalRequestId;
    }
    public function prefer($prefer)
    {
        $this->headers["Prefer"] = $prefer;
    }
}
