Class: Stripe::V2::Billing::ServiceActionService::CreateParams::CreditGrant

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

Defined Under Namespace

Classes: Amount, ApplicabilityConfig, ExpiryConfig

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, name: nil) ⇒ CreditGrant

Returns a new instance of CreditGrant.



73
74
75
76
77
78
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 73

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

Instance Attribute Details

#amountObject

The amount of the credit grant.



65
66
67
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 65

def amount
  @amount
end

#applicability_configObject

Defines the scope where the credit grant is applicable.



67
68
69
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 67

def applicability_config
  @applicability_config
end

#expiry_configObject

The expiry configuration for the credit grant.



69
70
71
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 69

def expiry_config
  @expiry_config
end

#nameObject

A descriptive name shown in dashboard.



71
72
73
# File 'lib/stripe/services/v2/billing/service_action_service.rb', line 71

def name
  @name
end