Class: Stripe::DelegatedCheckout::RequestedSessionConfirmParams::BuyerConsents::Marketing::Consent
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::DelegatedCheckout::RequestedSessionConfirmParams::BuyerConsents::Marketing::Consent
- Defined in:
- lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
The marketing consent channel.
-
#status ⇒ Object
The consent status.
Instance Method Summary collapse
-
#initialize(channel: nil, status: nil) ⇒ Consent
constructor
A new instance of Consent.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(channel: nil, status: nil) ⇒ Consent
Returns a new instance of Consent.
80 81 82 83 |
# File 'lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb', line 80 def initialize(channel: nil, status: nil) @channel = channel @status = status end |
Instance Attribute Details
#channel ⇒ Object
The marketing consent channel.
76 77 78 |
# File 'lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb', line 76 def channel @channel end |
#status ⇒ Object
The consent status. Use ‘granted’ to indicate the buyer has opted in.
78 79 80 |
# File 'lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb', line 78 def status @status end |