class Payments::Client::Facade

Public Class Methods

new(gateway) click to toggle source
# File lib/payments/client/facade.rb, line 4
def initialize(gateway)
  @gateway = gateway
end

Public Instance Methods

change_order_extra_data(params) click to toggle source
# File lib/payments/client/facade.rb, line 79
def change_order_extra_data(params)
  perform(ChangeOrderExtraData, params)
end
create_financial_context(params) click to toggle source
# File lib/payments/client/facade.rb, line 28
def create_financial_context(params)
  perform(CreateFinancialContext, params)
end
create_merchant(params) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# File lib/payments/client/facade.rb, line 44
def get_receipt_number(order_id)
  perform(GetReceiptNumber, order_id: order_id)
end
place_order(params) click to toggle source
# File lib/payments/client/facade.rb, line 83
def place_order(params)
  perform(PlaceOrder, params)
end
request_order_void(params) click to toggle source
# File lib/payments/client/facade.rb, line 87
def request_order_void(params)
  perform(RequestOrderVoid, params)
end
request_receipt_number(region_code, order_id) click to toggle source
# 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) click to toggle source
# File lib/payments/client/facade.rb, line 12
def update_merchant(params)
  perform(UpdateMerchant, params)
end
update_merchants_in_financial_context(params) click to toggle source
# File lib/payments/client/facade.rb, line 32
def update_merchants_in_financial_context(params)
  perform(UpdateMerchantsInFinancialContext, params)
end

Private Instance Methods

perform(operation, options = {}) click to toggle source
# File lib/payments/client/facade.rb, line 93
def perform(operation, options = {})
  operation.new(@gateway).call(options)
end