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.



69
70
71
72
# File 'lib/stripe/services/forwarding/request_service.rb', line 69

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

Instance Attribute Details

#bodyObject

The body payload to send to the destination endpoint.



65
66
67
# File 'lib/stripe/services/forwarding/request_service.rb', line 65

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.



67
68
69
# File 'lib/stripe/services/forwarding/request_service.rb', line 67

def headers
  @headers
end