Sha256: 6be6e68c9fe23f9d215904c24cd4c9399fa86b299c19530e11f4ffee1557da7a
Contents?: true
Size: 759 Bytes
Versions: 10
Compression:
Stored size: 759 Bytes
Contents
# frozen_string_literal: false require 'cgi' module PayPalCheckoutSdk module Orders # # Creates an order. Supports only orders with one purchase unit. # class OrdersCreateRequest attr_accessor :path, :body, :headers, :verb def initialize @headers = {} @body = nil @verb = "POST" @path = "/v2/checkout/orders?" @headers["Content-Type"] = "application/json" end def pay_pal_partner_attribution_id(pay_pal_partner_attribution_id) @headers["PayPal-Partner-Attribution-Id"] = pay_pal_partner_attribution_id end def prefer(prefer) @headers["Prefer"] = prefer end def request_body(order) @body = order end end end end
Version data entries
10 entries across 10 versions & 1 rubygems