Class: Stripe::Forwarding::RequestCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Forwarding::RequestCreateParams
- Defined in:
- lib/stripe/params/forwarding/request_create_params.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) ⇒ RequestCreateParams
constructor
A new instance of RequestCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(expand: nil, metadata: nil, payment_method: nil, replacements: nil, request: nil, url: nil) ⇒ RequestCreateParams
Returns a new instance of RequestCreateParams.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 42 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.
30 31 32 |
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 30 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`.
32 33 34 |
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 32 def @metadata end |
#payment_method ⇒ Object
The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
34 35 36 |
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 34 def payment_method @payment_method end |
#replacements ⇒ Object
The field kinds to be replaced in the forwarded request.
36 37 38 |
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 36 def replacements @replacements end |
#request ⇒ Object
The request body and headers to be sent to the destination endpoint.
38 39 40 |
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 38 def request @request end |
#url ⇒ Object
The destination URL for the forwarded request. Must be supported by the config.
40 41 42 |
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 40 def url @url end |