Sha256: 8442091525ba85d178f2d520114bb5c2b0dd2ec465cf77578d42814c99eaf82e

Contents?: true

Size: 1.14 KB

Versions: 8

Compression:

Stored size: 1.14 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  class AccountNoticeService < StripeService
    # Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
    def list(params = {}, opts = {})
      request(
        method: :get,
        path: "/v1/account_notices",
        params: params,
        opts: opts,
        base_address: :api
      )
    end

    # Retrieves an AccountNotice object.
    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

    # Updates an AccountNotice object.
    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
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stripe-13.3.0.pre.beta.3 lib/stripe/services/account_notice_service.rb
stripe-13.3.0.pre.beta.2 lib/stripe/services/account_notice_service.rb
stripe-13.3.0.pre.beta.1 lib/stripe/services/account_notice_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/account_notice_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/account_notice_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/account_notice_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/account_notice_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/account_notice_service.rb