Class: Payments::Client::Facade
- Inherits:
-
Object
- Object
- Payments::Client::Facade
- Defined in:
- lib/payments/client/facade.rb
Instance Method Summary collapse
- #change_order_extra_data(params) ⇒ Object
- #create_financial_context(params) ⇒ Object
- #create_merchant(params) ⇒ Object
- #get_account_donation_transaction_detail_report(settlement_id, account_id) ⇒ Object
- #get_account_statement(settlement_id, account_id) ⇒ Object
- #get_donation_transaction_detail_report(settlement_id) ⇒ Object
- #get_financial_context(financial_context_id) ⇒ Object
- #get_merchant(merchant_id) ⇒ Object
- #get_merchant_financial_reports(merchant_id) ⇒ Object
- #get_pricing_schedule(financial_context_id, merchant_id) ⇒ Object
- #get_receipt_number(order_id) ⇒ Object
-
#initialize(gateway) ⇒ Facade
constructor
A new instance of Facade.
- #place_order(params) ⇒ Object
- #request_order_void(params) ⇒ Object
- #request_receipt_number(region_code, order_id) ⇒ Object
- #update_merchant(params) ⇒ Object
- #update_merchants_in_financial_context(params) ⇒ Object
Constructor Details
#initialize(gateway) ⇒ Facade
Returns a new instance of Facade.
4 5 6 |
# File 'lib/payments/client/facade.rb', line 4 def initialize(gateway) @gateway = gateway end |
Instance Method Details
#change_order_extra_data(params) ⇒ Object
79 80 81 |
# File 'lib/payments/client/facade.rb', line 79 def change_order_extra_data(params) perform(ChangeOrderExtraData, params) end |
#create_financial_context(params) ⇒ Object
28 29 30 |
# File 'lib/payments/client/facade.rb', line 28 def create_financial_context(params) perform(CreateFinancialContext, params) end |
#create_merchant(params) ⇒ Object
8 9 10 |
# File 'lib/payments/client/facade.rb', line 8 def create_merchant(params) perform(CreateMerchant, params) end |
#get_account_donation_transaction_detail_report(settlement_id, account_id) ⇒ Object
63 64 65 66 67 68 69 |
# File 'lib/payments/client/facade.rb', line 63 def get_account_donation_transaction_detail_report(settlement_id, account_id) perform( GetAccountDonationTransactionDetailReport, settlement_id: settlement_id, account_id: account_id, ) end |
#get_account_statement(settlement_id, account_id) ⇒ Object
71 72 73 74 75 76 77 |
# File 'lib/payments/client/facade.rb', line 71 def get_account_statement(settlement_id, account_id) perform( GetAccountStatement, settlement_id: settlement_id, account_id: account_id, ) end |
#get_donation_transaction_detail_report(settlement_id) ⇒ Object
56 57 58 59 60 61 |
# File 'lib/payments/client/facade.rb', line 56 def get_donation_transaction_detail_report(settlement_id) perform( GetDonationTransactionDetailReport, settlement_id: settlement_id, ) end |
#get_financial_context(financial_context_id) ⇒ Object
24 25 26 |
# File 'lib/payments/client/facade.rb', line 24 def get_financial_context(financial_context_id) perform(GetFinancialContext, financial_context_id: financial_context_id) end |
#get_merchant(merchant_id) ⇒ Object
16 17 18 |
# File 'lib/payments/client/facade.rb', line 16 def get_merchant(merchant_id) perform(GetMerchant, merchant_id: merchant_id) end |
#get_merchant_financial_reports(merchant_id) ⇒ Object
20 21 22 |
# File 'lib/payments/client/facade.rb', line 20 def get_merchant_financial_reports(merchant_id) perform(GetMerchantFinancialReports, merchant_id: merchant_id) end |
#get_pricing_schedule(financial_context_id, merchant_id) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/payments/client/facade.rb', line 48 def get_pricing_schedule(financial_context_id, merchant_id) perform( GetPricingSchedule, financial_context_id: financial_context_id, merchant_id: merchant_id, ) end |
#get_receipt_number(order_id) ⇒ Object
44 45 46 |
# File 'lib/payments/client/facade.rb', line 44 def get_receipt_number(order_id) perform(GetReceiptNumber, order_id: order_id) end |
#place_order(params) ⇒ Object
83 84 85 |
# File 'lib/payments/client/facade.rb', line 83 def place_order(params) perform(PlaceOrder, params) end |
#request_order_void(params) ⇒ Object
87 88 89 |
# File 'lib/payments/client/facade.rb', line 87 def request_order_void(params) perform(RequestOrderVoid, params) end |
#request_receipt_number(region_code, order_id) ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/payments/client/facade.rb', line 36 def request_receipt_number(region_code, order_id) perform( RequestReceiptNumber, region_code: region_code, order_id: order_id, ) end |
#update_merchant(params) ⇒ Object
12 13 14 |
# File 'lib/payments/client/facade.rb', line 12 def update_merchant(params) perform(UpdateMerchant, params) end |
#update_merchants_in_financial_context(params) ⇒ Object
32 33 34 |
# File 'lib/payments/client/facade.rb', line 32 def update_merchants_in_financial_context(params) perform(UpdateMerchantsInFinancialContext, params) end |