class Garbanzo::AST::Create
Public Instance Methods
build(amount, card, address, duration, interval)
click to toggle source
# File lib/garbanzo/ast/create.rb, line 4 def build(amount, card, address, duration, interval) hash = { subscription: { payment_schedule: { interval: interval.to_h, start_date: duration.start_date, total_occurrences: duration.occurrences }, amount: amount.to_i, payment: { credit_card: card.to_h }, bill_to: address.to_h, } } set_nodes hash end
Private Instance Methods
type()
click to toggle source
# File lib/garbanzo/ast/create.rb, line 25 def type 'ARBCreateSubscriptionRequest' end