Class: Stripe::Forwarding::RequestCreateParams::Request

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

Defined Under Namespace

Classes: Header

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(body: nil, headers: nil) ⇒ Request

Returns a new instance of Request.



24
25
26
27
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 24

def initialize(body: nil, headers: nil)
  @body = body
  @headers = headers
end

Instance Attribute Details

#bodyObject

The body payload to send to the destination endpoint.



20
21
22
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 20

def body
  @body
end

#headersObject

The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included.



22
23
24
# File 'lib/stripe/params/forwarding/request_create_params.rb', line 22

def headers
  @headers
end