Class: Stripe::AccountNoticeService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::AccountNoticeService
- Defined in:
- lib/stripe/services/account_notice_service.rb
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.
7 8 9 10 11 12 13 14 15 |
# File 'lib/stripe/services/account_notice_service.rb', line 7 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.
18 19 20 21 22 23 24 25 26 |
# File 'lib/stripe/services/account_notice_service.rb', line 18 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.
29 30 31 32 33 34 35 36 37 |
# File 'lib/stripe/services/account_notice_service.rb', line 29 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 |