Class: Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Pix::MandateOptions
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::SetupIntentUpdateParams::PaymentMethodOptions::Pix::MandateOptions
- Defined in:
- lib/stripe/params/setup_intent_update_params.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Amount to be charged for future payments.
-
#amount_includes_iof ⇒ Object
Determines if the amount includes the IOF tax.
-
#amount_type ⇒ Object
Type of amount.
-
#currency ⇒ Object
Three-letter ISO currency code, in lowercase.
-
#end_date ⇒ Object
Date when the mandate expires and no further payments will be charged, in
YYYY-MM-DD. -
#payment_schedule ⇒ Object
Schedule at which the future payments will be charged.
-
#reference ⇒ Object
Subscription name displayed to buyers in their bank app.
-
#start_date ⇒ Object
Start date of the mandate, in
YYYY-MM-DD.
Instance Method Summary collapse
-
#initialize(amount: nil, amount_includes_iof: nil, amount_type: nil, currency: nil, end_date: nil, payment_schedule: nil, reference: nil, start_date: nil) ⇒ MandateOptions
constructor
A new instance of MandateOptions.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(amount: nil, amount_includes_iof: nil, amount_type: nil, currency: nil, end_date: nil, payment_schedule: nil, reference: nil, start_date: nil) ⇒ MandateOptions
959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 |
# File 'lib/stripe/params/setup_intent_update_params.rb', line 959 def initialize( amount: nil, amount_includes_iof: nil, amount_type: nil, currency: nil, end_date: nil, payment_schedule: nil, reference: nil, start_date: nil ) @amount = amount @amount_includes_iof = amount_includes_iof @amount_type = amount_type @currency = currency @end_date = end_date @payment_schedule = payment_schedule @reference = reference @start_date = start_date end |
Instance Attribute Details
#amount ⇒ Object
Amount to be charged for future payments. Required when amount_type=fixed. If not provided for amount_type=maximum, defaults to 40000.
943 944 945 |
# File 'lib/stripe/params/setup_intent_update_params.rb', line 943 def amount @amount end |
#amount_includes_iof ⇒ Object
Determines if the amount includes the IOF tax. Defaults to never.
945 946 947 |
# File 'lib/stripe/params/setup_intent_update_params.rb', line 945 def amount_includes_iof @amount_includes_iof end |
#amount_type ⇒ Object
Type of amount. Defaults to maximum.
947 948 949 |
# File 'lib/stripe/params/setup_intent_update_params.rb', line 947 def amount_type @amount_type end |
#currency ⇒ Object
Three-letter ISO currency code, in lowercase. Only brl is supported currently.
949 950 951 |
# File 'lib/stripe/params/setup_intent_update_params.rb', line 949 def currency @currency end |
#end_date ⇒ Object
Date when the mandate expires and no further payments will be charged, in YYYY-MM-DD. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
951 952 953 |
# File 'lib/stripe/params/setup_intent_update_params.rb', line 951 def end_date @end_date end |
#payment_schedule ⇒ Object
Schedule at which the future payments will be charged. Defaults to monthly.
953 954 955 |
# File 'lib/stripe/params/setup_intent_update_params.rb', line 953 def payment_schedule @payment_schedule end |
#reference ⇒ Object
Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
955 956 957 |
# File 'lib/stripe/params/setup_intent_update_params.rb', line 955 def reference @reference end |
#start_date ⇒ Object
Start date of the mandate, in YYYY-MM-DD. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
957 958 959 |
# File 'lib/stripe/params/setup_intent_update_params.rb', line 957 def start_date @start_date end |