Class: Stripe::V2::Billing::IntentCreateParams::Action
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::IntentCreateParams::Action
- Defined in:
- lib/stripe/params/v2/billing/intent_create_params.rb
Defined Under Namespace
Classes: Apply, Deactivate, Modify, Remove, Subscribe
Instance Attribute Summary collapse
-
#apply ⇒ Object
Details for an apply action.
-
#deactivate ⇒ Object
Details for a deactivate action.
-
#modify ⇒ Object
Details for a modify action.
-
#remove ⇒ Object
Details for a remove action.
-
#subscribe ⇒ Object
Details for a subscribe action.
-
#type ⇒ Object
Type of the Billing Intent action.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, apply: nil, deactivate: nil, modify: nil, remove: nil, subscribe: nil) ⇒ Action
constructor
A new instance of Action.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, new, #to_h
Constructor Details
#initialize(type: nil, apply: nil, deactivate: nil, modify: nil, remove: nil, subscribe: nil) ⇒ Action
Returns a new instance of Action.
568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 568 def initialize( type: nil, apply: nil, deactivate: nil, modify: nil, remove: nil, subscribe: nil ) @type = type @apply = apply @deactivate = deactivate @modify = modify @remove = remove @subscribe = subscribe end |
Instance Attribute Details
#apply ⇒ Object
Details for an apply action.
558 559 560 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 558 def apply @apply end |
#deactivate ⇒ Object
Details for a deactivate action.
560 561 562 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 560 def deactivate @deactivate end |
#modify ⇒ Object
Details for a modify action.
562 563 564 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 562 def modify @modify end |
#remove ⇒ Object
Details for a remove action.
564 565 566 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 564 def remove @remove end |
#subscribe ⇒ Object
Details for a subscribe action.
566 567 568 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 566 def subscribe @subscribe end |
#type ⇒ Object
Type of the Billing Intent action.
556 557 558 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 556 def type @type end |
Class Method Details
.field_encodings ⇒ Object
584 585 586 587 588 589 590 591 592 593 594 595 596 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 584 def self.field_encodings @field_encodings = { apply: { kind: :object, fields: { invoice_discount_rule: { kind: :object, fields: { percent_off: { kind: :object, fields: { percent_off: :decimal_string } } }, }, }, }, } end |