Class: Stripe::AccountNoticeService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/account_notice_service.rb

Instance Method Summary collapse

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(, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape() }),
    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(, params = {}, opts = {})
  request(
    method: :post,
    path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape() }),
    params: params,
    opts: opts,
    base_address: :api
  )
end