Class: Stripe::Forwarding::RequestCreateParams

Inherits:
RequestParams show all
Defined in:
lib/stripe/params/forwarding/request_create_params.rb

Defined Under Namespace

Classes: Request

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

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 = expand
  @metadata = 
  @payment_method = payment_method
  @replacements = replacements
  @request = request
  @url = url
end

Instance Attribute Details

#expandObject

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
  @expand
end

#metadataObject

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_methodObject

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

#replacementsObject

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

#requestObject

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

#urlObject

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