# This class was generated on Mon, 02 Jul 2018 17:09:03 PDT by version 0.1.0-dev+0ee05a-dirty of Braintree SDK Generator
# orders_create_request.py
# @version 0.1.0-dev+0ee05a-dirty
# @type request
# @data [encoded data, 20356 characters]
# DO NOT EDIT
import paypalhttp

try:
    from urllib import quote  # Python 2.X
except ImportError:
    from urllib.parse import quote  # Python 3+

class OrdersCreateRequest:
    """
    Creates an order.
    """
    def __init__(self):
        self.verb = "POST"
        self.path = "/v2/checkout/orders?"
        self.headers = {}
        self.headers["Content-Type"] = "application/json"
        self.body = None


    def pay_pal_partner_attribution_id(self, pay_pal_partner_attribution_id):
        self.headers["PayPal-Partner-Attribution-Id"] = str(pay_pal_partner_attribution_id)

    def prefer(self, prefer):
        self.headers["Prefer"] = str(prefer)



    def request_body(self, order):
        self.body = order
        return self
