class Paymill::Offer

Attributes

amount[RW]
currency[RW]
interval[RW]
name[RW]
subscription_count[R]
trial_period_days[RW]

Protected Class Methods

allowed_arguments() click to toggle source
# File lib/paymill/models/offer.rb, line 18
def self.allowed_arguments
  [:amount, :currency, :interval, :name, :trial_period_days]
end
mandatory_arguments() click to toggle source
# File lib/paymill/models/offer.rb, line 22
def self.mandatory_arguments
  [:amount, :currency, :interval, :name]
end

Public Instance Methods

delete_with_subscriptions() click to toggle source
# File lib/paymill/models/offer.rb, line 9
def delete_with_subscriptions
  delete( remove_with_subscriptions: true )
end
delete_without_subscriptions() click to toggle source
# File lib/paymill/models/offer.rb, line 13
def delete_without_subscriptions
  delete( remove_with_subscriptions: false )
end