Class: Stripe::AccountNoticeService

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

Defined Under Namespace

Classes: ListParams, RetrieveParams, UpdateParams

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.



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(, 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.



91
92
93
94
95
96
97
98
99
# File 'lib/stripe/services/account_notice_service.rb', line 91

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