Class: Stripe::V2::Billing::Intent::AmountDetails

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/v2/billing/intent.rb

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#currencyObject (readonly)

Three-letter ISO currency code, in lowercase. Must be a supported currency.



15
16
17
# File 'lib/stripe/resources/v2/billing/intent.rb', line 15

def currency
  @currency
end

#discountObject (readonly)

Amount of discount applied.



17
18
19
# File 'lib/stripe/resources/v2/billing/intent.rb', line 17

def discount
  @discount
end

#shippingObject (readonly)

Amount of shipping charges.



19
20
21
# File 'lib/stripe/resources/v2/billing/intent.rb', line 19

def shipping
  @shipping
end

#subtotalObject (readonly)

Subtotal amount before tax and discounts.



21
22
23
# File 'lib/stripe/resources/v2/billing/intent.rb', line 21

def subtotal
  @subtotal
end

#taxObject (readonly)

Amount of tax.



23
24
25
# File 'lib/stripe/resources/v2/billing/intent.rb', line 23

def tax
  @tax
end

#totalObject (readonly)

Total amount for the Billing Intent.



25
26
27
# File 'lib/stripe/resources/v2/billing/intent.rb', line 25

def total
  @total
end

Class Method Details

.field_remappingsObject



31
32
33
# File 'lib/stripe/resources/v2/billing/intent.rb', line 31

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



27
28
29
# File 'lib/stripe/resources/v2/billing/intent.rb', line 27

def self.inner_class_types
  @inner_class_types = {}
end