Class: Stripe::Forwarding::RequestService::CreateParams::Request

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/forwarding/request_service.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.



78
79
80
81
# File 'lib/stripe/services/forwarding/request_service.rb', line 78

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

Instance Attribute Details

#bodyObject

The body payload to send to the destination endpoint.



73
74
75
# File 'lib/stripe/services/forwarding/request_service.rb', line 73

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.



76
77
78
# File 'lib/stripe/services/forwarding/request_service.rb', line 76

def headers
  @headers
end