Sha256: c321fa3f7a42c70b7f17e8093707ec0f37e624b5a9ddded52175df5791d12d3c
Contents?: true
Size: 549 Bytes
Versions: 6
Compression:
Stored size: 549 Bytes
Contents
# frozen_string_literal: true module Afterpay module API module Payment class DeferredCapture < Base def initialize(params = {}) @payment = params[:payment] @order_id = params[:order_id] end private attr_reader :payment, :order_id def payload { action: :post, body: payment.as_json, endpoint: endpoint } end def endpoint "#{URL}/#{order_id}/capture" end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems