Class: Stripe::Forwarding::RequestService::CreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Forwarding::RequestService::CreateParams
- Defined in:
- lib/stripe/services/forwarding/request_service.rb
Defined Under Namespace
Classes: Request
Instance Attribute Summary collapse
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#payment_method ⇒ Object
The PaymentMethod to insert into the forwarded request.
-
#replacements ⇒ Object
The field kinds to be replaced in the forwarded request.
-
#request ⇒ Object
The request body and headers to be sent to the destination endpoint.
-
#url ⇒ Object
The destination URL for the forwarded request.
Instance Method Summary collapse
-
#initialize(expand: nil, metadata: nil, payment_method: nil, replacements: nil, request: nil, url: nil) ⇒ CreateParams
constructor
A new instance of CreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(expand: nil, metadata: nil, payment_method: nil, replacements: nil, request: nil, url: nil) ⇒ CreateParams
Returns a new instance of CreateParams.
87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/stripe/services/forwarding/request_service.rb', line 87 def initialize( expand: nil, metadata: nil, payment_method: nil, replacements: nil, request: nil, url: nil ) @expand = @metadata = @payment_method = payment_method @replacements = replacements @request = request @url = url end |
Instance Attribute Details
#expand ⇒ Object
Specifies which fields in the response should be expanded.
75 76 77 |
# File 'lib/stripe/services/forwarding/request_service.rb', line 75 def @expand end |
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.
77 78 79 |
# File 'lib/stripe/services/forwarding/request_service.rb', line 77 def @metadata end |
#payment_method ⇒ Object
The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
79 80 81 |
# File 'lib/stripe/services/forwarding/request_service.rb', line 79 def payment_method @payment_method end |
#replacements ⇒ Object
The field kinds to be replaced in the forwarded request.
81 82 83 |
# File 'lib/stripe/services/forwarding/request_service.rb', line 81 def replacements @replacements end |
#request ⇒ Object
The request body and headers to be sent to the destination endpoint.
83 84 85 |
# File 'lib/stripe/services/forwarding/request_service.rb', line 83 def request @request end |
#url ⇒ Object
The destination URL for the forwarded request. Must be supported by the config.
85 86 87 |
# File 'lib/stripe/services/forwarding/request_service.rb', line 85 def url @url end |