Class: Stripe::Billing::CreditGrant::CreateParams::Amount::CustomPricingUnit

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/billing/credit_grant.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(id: nil, value: nil) ⇒ CustomPricingUnit

Returns a new instance of CustomPricingUnit.



118
119
120
121
# File 'lib/stripe/resources/billing/credit_grant.rb', line 118

def initialize(id: nil, value: nil)
  @id = id
  @value = value
end

Instance Attribute Details

#idObject

The ID of the custom pricing unit.



114
115
116
# File 'lib/stripe/resources/billing/credit_grant.rb', line 114

def id
  @id
end

#valueObject

A positive integer representing the amount of the credit grant.



116
117
118
# File 'lib/stripe/resources/billing/credit_grant.rb', line 116

def value
  @value
end