Class: Stripe::Billing::CreditGrantService::CreateParams::Amount::CustomPricingUnit

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/billing/credit_grant_service.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.



46
47
48
49
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 46

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

Instance Attribute Details

#idObject

The ID of the custom pricing unit.



42
43
44
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 42

def id
  @id
end

#valueObject

A positive integer representing the amount of the credit grant.



44
45
46
# File 'lib/stripe/services/billing/credit_grant_service.rb', line 44

def value
  @value
end