Sha256: 57b0543d77211da0895603b7b9c50cddbd76dd4e6e13b48cb62951838b8e5b20

Contents?: true

Size: 1011 Bytes

Versions: 8

Compression:

Stored size: 1011 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  class InvoicePaymentService < StripeService
    # When retrieving an invoice, there is an includable payments property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of payments.
    def list(invoice, params = {}, opts = {})
      request(
        method: :get,
        path: format("/v1/invoices/%<invoice>s/payments", { invoice: CGI.escape(invoice) }),
        params: params,
        opts: opts,
        base_address: :api
      )
    end

    # Retrieves the invoice payment with the given ID.
    def retrieve(invoice, invoice_payment, params = {}, opts = {})
      request(
        method: :get,
        path: format("/v1/invoices/%<invoice>s/payments/%<invoice_payment>s", { invoice: CGI.escape(invoice), invoice_payment: CGI.escape(invoice_payment) }),
        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/invoice_payment_service.rb
stripe-13.3.0.pre.beta.2 lib/stripe/services/invoice_payment_service.rb
stripe-13.3.0.pre.beta.1 lib/stripe/services/invoice_payment_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/invoice_payment_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/invoice_payment_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/invoice_payment_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/invoice_payment_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/invoice_payment_service.rb