Class: Stripe::V2::Payments::OffSessionPaymentService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::Payments::OffSessionPaymentService
- Defined in:
- lib/stripe/services/v2/payments/off_session_payment_service.rb
Defined Under Namespace
Classes: CancelParams, CreateParams, ListParams, RetrieveParams
Instance Method Summary collapse
-
#cancel(id, params = {}, opts = {}) ⇒ Object
Cancel OSP.
-
#create(params = {}, opts = {}) ⇒ Object
Create OSP.
-
#list(params = {}, opts = {}) ⇒ Object
List OSPs matching filter.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve OSP by ID.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#cancel(id, params = {}, opts = {}) ⇒ Object
Cancel OSP.
92 93 94 95 96 97 98 99 100 |
# File 'lib/stripe/services/v2/payments/off_session_payment_service.rb', line 92 def cancel(id, params = {}, opts = {}) request( method: :post, path: format("/v2/payments/off_session_payments/%<id>s/cancel", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#create(params = {}, opts = {}) ⇒ Object
Create OSP.
103 104 105 106 107 108 109 110 111 |
# File 'lib/stripe/services/v2/payments/off_session_payment_service.rb', line 103 def create(params = {}, opts = {}) request( method: :post, path: "/v2/payments/off_session_payments", params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
List OSPs matching filter.
114 115 116 117 118 119 120 121 122 |
# File 'lib/stripe/services/v2/payments/off_session_payment_service.rb', line 114 def list(params = {}, opts = {}) request( method: :get, path: "/v2/payments/off_session_payments", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve OSP by ID.
125 126 127 128 129 130 131 132 133 |
# File 'lib/stripe/services/v2/payments/off_session_payment_service.rb', line 125 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v2/payments/off_session_payments/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |