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.



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

def currency
  @currency
end

#discountObject (readonly)

Amount of discount applied.



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

def discount
  @discount
end

#shippingObject (readonly)

Amount of shipping charges.



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

def shipping
  @shipping
end

#subtotalObject (readonly)

Subtotal amount before tax and discounts.



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

def subtotal
  @subtotal
end

#taxObject (readonly)

Amount of tax.



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

def tax
  @tax
end

#totalObject (readonly)

Total amount for the Billing Intent.



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

def total
  @total
end

Class Method Details

.field_remappingsObject



34
35
36
# File 'lib/stripe/resources/v2/billing/intent.rb', line 34

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



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

def self.inner_class_types
  @inner_class_types = {}
end