Class: Stripe::AccountNoticeService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::AccountNoticeService
- Defined in:
- lib/stripe/services/account_notice_service.rb
Defined Under Namespace
Classes: ListParams, RetrieveParams, UpdateParams
Instance Method Summary collapse
-
#list(params = {}, opts = {}) ⇒ Object
Retrieves a list of AccountNotice objects.
-
#retrieve(account_notice, params = {}, opts = {}) ⇒ Object
Retrieves an AccountNotice object.
-
#update(account_notice, params = {}, opts = {}) ⇒ Object
Updates an AccountNotice object.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#list(params = {}, opts = {}) ⇒ Object
Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
69 70 71 72 73 74 75 76 77 |
# File 'lib/stripe/services/account_notice_service.rb', line 69 def list(params = {}, opts = {}) request( method: :get, path: "/v1/account_notices", params: params, opts: opts, base_address: :api ) end |
#retrieve(account_notice, params = {}, opts = {}) ⇒ Object
Retrieves an AccountNotice object.
80 81 82 83 84 85 86 87 88 |
# File 'lib/stripe/services/account_notice_service.rb', line 80 def retrieve(account_notice, params = {}, opts = {}) request( method: :get, path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape(account_notice) }), params: params, opts: opts, base_address: :api ) end |
#update(account_notice, params = {}, opts = {}) ⇒ Object
Updates an AccountNotice object.
91 92 93 94 95 96 97 98 99 |
# File 'lib/stripe/services/account_notice_service.rb', line 91 def update(account_notice, params = {}, opts = {}) request( method: :post, path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape(account_notice) }), params: params, opts: opts, base_address: :api ) end |