Class: Stripe::V2::Billing::ServiceActionService::CreateParams::CreditGrantPerTenant

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/v2/billing/service_action_service.rb

Defined Under Namespace

Classes: Amount, ApplicabilityConfig, ExpiryConfig, GrantCondition

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, applicability_config: nil, expiry_config: nil, grant_condition: nil, name: nil) ⇒ CreditGrantPerTenant

Returns a new instance of CreditGrantPerTenant.



189
190
191
192
193
194
195
196
197
198
199
200
201
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 189

def initialize(
  amount: nil,
  applicability_config: nil,
  expiry_config: nil,
  grant_condition: nil,
  name: nil
)
  @amount = amount
  @applicability_config = applicability_config
  @expiry_config = expiry_config
  @grant_condition = grant_condition
  @name = name
end

Instance Attribute Details

#amountObject

The amount of the credit grant.



179
180
181
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 179

def amount
  @amount
end

#applicability_configObject

Defines the scope where the credit grant is applicable.



181
182
183
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 181

def applicability_config
  @applicability_config
end

#expiry_configObject

The expiry configuration for the credit grant.



183
184
185
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 183

def expiry_config
  @expiry_config
end

#grant_conditionObject

The grant condition for the credit grant.



185
186
187
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 185

def grant_condition
  @grant_condition
end

#nameObject

Customer-facing name for the credit grant.



187
188
189
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 187

def name
  @name
end