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.
78 79 80 81 82 83 84 85 86 |
# File 'lib/stripe/services/account_notice_service.rb', line 78 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.
89 90 91 92 93 94 95 96 97 |
# File 'lib/stripe/services/account_notice_service.rb', line 89 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.
100 101 102 103 104 105 106 107 108 |
# File 'lib/stripe/services/account_notice_service.rb', line 100 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 |