class CurrencyCloud::Payment

Public Class Methods

authorise(*ids) click to toggle source
# File lib/currency_cloud/payment.rb, line 13
def self.authorise(*ids)
  result = client.post("authorise", payment_ids: ids)['authorisations']
  result.map { |pa| PaymentAuthorisationResult.new(pa) }
end
payment_delivery_date(params) click to toggle source
# File lib/currency_cloud/payment.rb, line 23
def self.payment_delivery_date(params)
  result = client.get("payment_delivery_date", params)
  PaymentDeliveryDateResult.new(result)
end
quote_payment_fee(params) click to toggle source
# File lib/currency_cloud/payment.rb, line 28
def self.quote_payment_fee(params)
  result = client.get("quote_payment_fee", params)
  QuotePaymentFee.new(result)
end
tracking_info(id) click to toggle source
# File lib/currency_cloud/payment.rb, line 33
def self.tracking_info(id)
  result = client.get("#{id}/tracking_info")
  PaymentTrackingInfo.new(result)
end

Public Instance Methods

confirmation(params = {}) click to toggle source
# File lib/currency_cloud/payment.rb, line 18
def confirmation(params = {})
  result = client.get("#{id}/confirmation", params)
  PaymentConfirmationResult.new(result)
end
submission(params = {}) click to toggle source
# File lib/currency_cloud/payment.rb, line 8
def submission(params = {})
  result = client.get("#{id}/submission", params)
  PaymentSubmission.new(result)
end