Class: ShopifyApp::BillingConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/shopify_app/configuration.rb

Constant Summary collapse

INTERVAL_ONE_TIME =
"ONE_TIME"
INTERVAL_EVERY_30_DAYS =
"EVERY_30_DAYS"
INTERVAL_ANNUAL =
"ANNUAL"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(charge_name:, amount:, interval:, currency_code: "USD") ⇒ BillingConfiguration

Returns a new instance of BillingConfiguration.



119
120
121
122
123
124
# File 'lib/shopify_app/configuration.rb', line 119

def initialize(charge_name:, amount:, interval:, currency_code: "USD")
  @charge_name = charge_name
  @amount = amount
  @currency_code = currency_code
  @interval = interval
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



115
116
117
# File 'lib/shopify_app/configuration.rb', line 115

def amount
  @amount
end

#charge_nameObject (readonly)

Returns the value of attribute charge_name.



114
115
116
# File 'lib/shopify_app/configuration.rb', line 114

def charge_name
  @charge_name
end

#currency_codeObject (readonly)

Returns the value of attribute currency_code.



116
117
118
# File 'lib/shopify_app/configuration.rb', line 116

def currency_code
  @currency_code
end

#intervalObject (readonly)

Returns the value of attribute interval.



117
118
119
# File 'lib/shopify_app/configuration.rb', line 117

def interval
  @interval
end