Class: ChargeBee::Coupon
Instance Attribute Summary collapse
-
#addon_constraint ⇒ Object
Returns the value of attribute addon_constraint.
-
#addon_ids ⇒ Object
Returns the value of attribute addon_ids.
-
#apply_discount_on ⇒ Object
Returns the value of attribute apply_discount_on.
-
#apply_on ⇒ Object
Returns the value of attribute apply_on.
-
#archived_at ⇒ Object
Returns the value of attribute archived_at.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#discount_amount ⇒ Object
Returns the value of attribute discount_amount.
-
#discount_percentage ⇒ Object
Returns the value of attribute discount_percentage.
-
#discount_quantity ⇒ Object
Returns the value of attribute discount_quantity.
-
#discount_type ⇒ Object
Returns the value of attribute discount_type.
-
#duration_month ⇒ Object
Returns the value of attribute duration_month.
-
#duration_type ⇒ Object
Returns the value of attribute duration_type.
-
#id ⇒ Object
Returns the value of attribute id.
-
#invoice_name ⇒ Object
Returns the value of attribute invoice_name.
-
#max_redemptions ⇒ Object
Returns the value of attribute max_redemptions.
-
#name ⇒ Object
Returns the value of attribute name.
-
#plan_constraint ⇒ Object
Returns the value of attribute plan_constraint.
-
#plan_ids ⇒ Object
Returns the value of attribute plan_ids.
-
#redemptions ⇒ Object
Returns the value of attribute redemptions.
-
#status ⇒ Object
Returns the value of attribute status.
-
#valid_till ⇒ Object
Returns the value of attribute valid_till.
Class Method Summary collapse
-
.create(params, env = nil) ⇒ Object
OPERATIONS ———–.
- .list(params = {}, env = nil) ⇒ Object
- .retrieve(id, env = nil) ⇒ Object
Methods inherited from Model
construct, #initialize, #inspect, #load, #method_missing, #to_s, uri_path
Constructor Details
This class inherits a constructor from ChargeBee::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ChargeBee::Model
Instance Attribute Details
#addon_constraint ⇒ Object
Returns the value of attribute addon_constraint.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def addon_constraint @addon_constraint end |
#addon_ids ⇒ Object
Returns the value of attribute addon_ids.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def addon_ids @addon_ids end |
#apply_discount_on ⇒ Object
Returns the value of attribute apply_discount_on.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def apply_discount_on @apply_discount_on end |
#apply_on ⇒ Object
Returns the value of attribute apply_on.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def apply_on @apply_on end |
#archived_at ⇒ Object
Returns the value of attribute archived_at.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def archived_at @archived_at end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def created_at @created_at end |
#discount_amount ⇒ Object
Returns the value of attribute discount_amount.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def discount_amount @discount_amount end |
#discount_percentage ⇒ Object
Returns the value of attribute discount_percentage.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def discount_percentage @discount_percentage end |
#discount_quantity ⇒ Object
Returns the value of attribute discount_quantity.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def discount_quantity @discount_quantity end |
#discount_type ⇒ Object
Returns the value of attribute discount_type.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def discount_type @discount_type end |
#duration_month ⇒ Object
Returns the value of attribute duration_month.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def duration_month @duration_month end |
#duration_type ⇒ Object
Returns the value of attribute duration_type.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def duration_type @duration_type end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def id @id end |
#invoice_name ⇒ Object
Returns the value of attribute invoice_name.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def invoice_name @invoice_name end |
#max_redemptions ⇒ Object
Returns the value of attribute max_redemptions.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def max_redemptions @max_redemptions end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def name @name end |
#plan_constraint ⇒ Object
Returns the value of attribute plan_constraint.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def plan_constraint @plan_constraint end |
#plan_ids ⇒ Object
Returns the value of attribute plan_ids.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def plan_ids @plan_ids end |
#redemptions ⇒ Object
Returns the value of attribute redemptions.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def redemptions @redemptions end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def status @status end |
#valid_till ⇒ Object
Returns the value of attribute valid_till.
4 5 6 |
# File 'lib/chargebee/models/coupon.rb', line 4 def valid_till @valid_till end |
Class Method Details
.create(params, env = nil) ⇒ Object
OPERATIONS
12 13 14 |
# File 'lib/chargebee/models/coupon.rb', line 12 def self.create(params, env=nil) Request.send('post', uri_path("coupons"), params, env) end |