class Afterpay::API::Payment::DeferredCapture
Attributes
order_id[R]
payment[R]
Public Class Methods
new(params = {})
click to toggle source
# File lib/afterpay/api/payment/deferred_capture.rb, line 7 def initialize(params = {}) @payment = params[:payment] @order_id = params[:order_id] end
Private Instance Methods
endpoint()
click to toggle source
# File lib/afterpay/api/payment/deferred_capture.rb, line 24 def endpoint "#{URL}/#{order_id}/capture" end
payload()
click to toggle source
# File lib/afterpay/api/payment/deferred_capture.rb, line 16 def payload { action: :post, body: payment.as_json, endpoint: endpoint } end