class Payments::CLI
Constants
- CLIENT
Public Instance Methods
get_account_donation_transaction_detail_report(settlement_id, account_id)
click to toggle source
# File lib/payments/cli.rb, line 31 def get_account_donation_transaction_detail_report(settlement_id, account_id) response = CLIENT.get_account_donation_transaction_detail_report(settlement_id, account_id) pp response.body.map(&:to_hash) end
get_donation_transaction_detail_report(settlement_id)
click to toggle source
# File lib/payments/cli.rb, line 24 def get_donation_transaction_detail_report(settlement_id) response = CLIENT.get_donation_transaction_detail_report(settlement_id) pp response.body.map(&:to_hash) end
get_merchant(merchant_id)
click to toggle source
# File lib/payments/cli.rb, line 10 def get_merchant(merchant_id) response = CLIENT.get_merchant(merchant_id) response = response.body table = [] table << ["ID", response.merchant_id] table << ["Name", response.name] table << ["Region Code", response.region_code] table << ["Financial Contexts", response.financial_context_ids.join(", ")] print_table table end
get_pricing_schedule(financial_context_id, merchant_id)
click to toggle source
# File lib/payments/cli.rb, line 50 def get_pricing_schedule(financial_context_id, merchant_id) response = CLIENT.get_pricing_schedule(financial_context_id, merchant_id) table = [] table << ["Financial Context", financial_context_id] table << ["Merchant", merchant_id] print_table table end
get_receipt_number(order_id)
click to toggle source
# File lib/payments/cli.rb, line 38 def get_receipt_number(order_id) response = CLIENT.get_receipt_number(order_id) table = [] table << ["Region Code", response.region_code] table << ["Receipt Number", response.receipt_number] table << ["Order ID", response.order_id] print_table table end