Class: Stripe::FxQuoteService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::FxQuoteService
- Defined in:
- lib/stripe/services/fx_quote_service.rb
Defined Under Namespace
Classes: CreateParams, ListParams, RetrieveParams
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Creates an FX Quote object.
-
#list(params = {}, opts = {}) ⇒ Object
Returns a list of FX quotes that have been issued.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve an FX Quote object.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#create(params = {}, opts = {}) ⇒ Object
Creates an FX Quote object
103 104 105 |
# File 'lib/stripe/services/fx_quote_service.rb', line 103 def create(params = {}, opts = {}) request(method: :post, path: "/v1/fx_quotes", params: params, opts: opts, base_address: :api) end |
#list(params = {}, opts = {}) ⇒ Object
Returns a list of FX quotes that have been issued. The FX quotes are returned in sorted order, with the most recent FX quotes appearing first.
108 109 110 |
# File 'lib/stripe/services/fx_quote_service.rb', line 108 def list(params = {}, opts = {}) request(method: :get, path: "/v1/fx_quotes", params: params, opts: opts, base_address: :api) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve an FX Quote object
113 114 115 116 117 118 119 120 121 |
# File 'lib/stripe/services/fx_quote_service.rb', line 113 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v1/fx_quotes/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |