Class: Stripe::Issuing::AuthorizationService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::Issuing::AuthorizationService
- Defined in:
- lib/stripe/services/issuing/authorization_service.rb
Instance Method Summary collapse
-
#approve(authorization, params = {}, opts = {}) ⇒ Object
- Deprecated
-
Approves a pending Issuing Authorization object.
-
#decline(authorization, params = {}, opts = {}) ⇒ Object
- Deprecated
-
Declines a pending Issuing Authorization object.
-
#list(params = {}, opts = {}) ⇒ Object
Returns a list of Issuing Authorization objects.
-
#retrieve(authorization, params = {}, opts = {}) ⇒ Object
Retrieves an Issuing Authorization object.
-
#update(authorization, params = {}, opts = {}) ⇒ Object
Updates the specified Issuing Authorization object by setting the values of the parameters passed.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#approve(authorization, params = {}, opts = {}) ⇒ Object
- Deprecated
-
Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](stripe.com/docs/issuing/controls/real-time-authorizations) flow.
This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
9 10 11 12 13 14 15 16 17 |
# File 'lib/stripe/services/issuing/authorization_service.rb', line 9 def approve(, params = {}, opts = {}) request( method: :post, path: format("/v1/issuing/authorizations/%<authorization>s/approve", { authorization: CGI.escape() }), params: params, opts: opts, base_address: :api ) end |
#decline(authorization, params = {}, opts = {}) ⇒ Object
- Deprecated
-
Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](stripe.com/docs/issuing/controls/real-time-authorizations) flow.
This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
21 22 23 24 25 26 27 28 29 |
# File 'lib/stripe/services/issuing/authorization_service.rb', line 21 def decline(, params = {}, opts = {}) request( method: :post, path: format("/v1/issuing/authorizations/%<authorization>s/decline", { authorization: CGI.escape() }), params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
32 33 34 35 36 37 38 39 40 |
# File 'lib/stripe/services/issuing/authorization_service.rb', line 32 def list(params = {}, opts = {}) request( method: :get, path: "/v1/issuing/authorizations", params: params, opts: opts, base_address: :api ) end |
#retrieve(authorization, params = {}, opts = {}) ⇒ Object
Retrieves an Issuing Authorization object.
43 44 45 46 47 48 49 50 51 |
# File 'lib/stripe/services/issuing/authorization_service.rb', line 43 def retrieve(, params = {}, opts = {}) request( method: :get, path: format("/v1/issuing/authorizations/%<authorization>s", { authorization: CGI.escape() }), params: params, opts: opts, base_address: :api ) end |
#update(authorization, params = {}, opts = {}) ⇒ Object
Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
54 55 56 57 58 59 60 61 62 |
# File 'lib/stripe/services/issuing/authorization_service.rb', line 54 def update(, params = {}, opts = {}) request( method: :post, path: format("/v1/issuing/authorizations/%<authorization>s", { authorization: CGI.escape() }), params: params, opts: opts, base_address: :api ) end |