Class: Stripe::V2::Billing::IntentCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::IntentCreateParams
- Defined in:
- lib/stripe/params/v2/billing/intent_create_params.rb
Defined Under Namespace
Classes: Action, CadenceData
Instance Attribute Summary collapse
-
#actions ⇒ Object
Actions to be performed by this Billing Intent.
-
#cadence ⇒ Object
ID of an existing Cadence to use.
-
#cadence_data ⇒ Object
Data for creating a new Cadence.
-
#currency ⇒ Object
Three-letter ISO currency code, in lowercase.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(actions: nil, cadence: nil, cadence_data: nil, currency: nil) ⇒ IntentCreateParams
constructor
A new instance of IntentCreateParams.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(actions: nil, cadence: nil, cadence_data: nil, currency: nil) ⇒ IntentCreateParams
Returns a new instance of IntentCreateParams.
866 867 868 869 870 871 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 866 def initialize(actions: nil, cadence: nil, cadence_data: nil, currency: nil) @actions = actions @cadence = cadence @cadence_data = cadence_data @currency = currency end |
Instance Attribute Details
#actions ⇒ Object
Actions to be performed by this Billing Intent.
858 859 860 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 858 def actions @actions end |
#cadence ⇒ Object
ID of an existing Cadence to use.
860 861 862 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 860 def cadence @cadence end |
#cadence_data ⇒ Object
Data for creating a new Cadence.
862 863 864 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 862 def cadence_data @cadence_data end |
#currency ⇒ Object
Three-letter ISO currency code, in lowercase. Must be a supported currency.
864 865 866 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 864 def currency @currency end |
Class Method Details
.field_encodings ⇒ Object
873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 873 def self.field_encodings @field_encodings = { actions: { kind: :array, element: { kind: :object, fields: { apply: { kind: :object, fields: { invoice_discount_rule: { kind: :object, fields: { percent_off: { kind: :object, fields: { percent_off: :decimal_string } }, }, }, }, }, }, }, }, } end |