stripe 13.2.0.pre.beta.3 → 13.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +650 -1388
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +0 -22
- data/lib/stripe/resources/financial_connections/account.rb +0 -3
- data/lib/stripe/resources/invoice.rb +0 -81
- data/lib/stripe/resources/payment_intent.rb +0 -70
- data/lib/stripe/resources/quote.rb +0 -104
- data/lib/stripe/resources/subscription_schedule.rb +0 -20
- data/lib/stripe/resources/terminal/reader.rb +0 -60
- data/lib/stripe/resources.rb +0 -21
- data/lib/stripe/services/financial_connections/account_service.rb +1 -3
- data/lib/stripe/services/financial_connections_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +1 -44
- data/lib/stripe/services/issuing_service.rb +1 -5
- data/lib/stripe/services/payment_intent_service.rb +0 -37
- data/lib/stripe/services/quote_service.rb +1 -49
- data/lib/stripe/services/subscription_schedule_service.rb +0 -11
- data/lib/stripe/services/tax_service.rb +1 -3
- data/lib/stripe/services/terminal/reader_service.rb +0 -33
- data/lib/stripe/services/terminal_service.rb +1 -2
- data/lib/stripe/services/v1_services.rb +1 -8
- data/lib/stripe/services.rb +0 -25
- data/lib/stripe/stripe_configuration.rb +1 -3
- data/lib/stripe/util.rb +2 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -45
- metadata +4 -51
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -32
- data/lib/stripe/resources/capital/financing_offer.rb +0 -49
- data/lib/stripe/resources/capital/financing_summary.rb +0 -15
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -27
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -14
- data/lib/stripe/resources/financial_connections/institution.rb +0 -26
- data/lib/stripe/resources/gift_cards/card.rb +0 -59
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -93
- data/lib/stripe/resources/invoice_payment.rb +0 -12
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -88
- data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -26
- data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -26
- data/lib/stripe/resources/margin.rb +0 -37
- data/lib/stripe/resources/order.rb +0 -120
- data/lib/stripe/resources/payment_attempt_record.rb +0 -27
- data/lib/stripe/resources/payment_record.rb +0 -115
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -43
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -11
- data/lib/stripe/resources/tax/association.rb +0 -24
- data/lib/stripe/resources/tax/form.rb +0 -49
- data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -14
- data/lib/stripe/services/account_notice_service.rb +0 -39
- data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
- data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
- data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
- data/lib/stripe/services/capital_service.rb +0 -15
- data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
- data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
- data/lib/stripe/services/gift_cards/card_service.rb +0 -63
- data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
- data/lib/stripe/services/gift_cards_service.rb +0 -14
- data/lib/stripe/services/invoice_payment_service.rb +0 -28
- data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
- data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
- data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
- data/lib/stripe/services/margin_service.rb +0 -50
- data/lib/stripe/services/order_line_item_service.rb +0 -17
- data/lib/stripe/services/order_service.rb +0 -78
- data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
- data/lib/stripe/services/payment_record_service.rb +0 -78
- data/lib/stripe/services/quote_line_service.rb +0 -17
- data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
- data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
- data/lib/stripe/services/tax/association_service.rb +0 -19
- data/lib/stripe/services/tax/form_service.rb +0 -37
- data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
@@ -1,78 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class PaymentRecordService < StripeService
|
6
|
-
# Report a new Payment Record. You may report a Payment Record as it is
|
7
|
-
# initialized and later report updates through the other report_* methods, or report Payment
|
8
|
-
# Records in a terminal state directly, through this method.
|
9
|
-
def report_payment(params = {}, opts = {})
|
10
|
-
request(
|
11
|
-
method: :post,
|
12
|
-
path: "/v1/payment_records/report_payment",
|
13
|
-
params: params,
|
14
|
-
opts: opts,
|
15
|
-
base_address: :api
|
16
|
-
)
|
17
|
-
end
|
18
|
-
|
19
|
-
# Report a new payment attempt on the specified Payment Record. A new payment
|
20
|
-
# attempt can only be specified if all other payment attempts are canceled or failed.
|
21
|
-
def report_payment_attempt(id, params = {}, opts = {})
|
22
|
-
request(
|
23
|
-
method: :post,
|
24
|
-
path: format("/v1/payment_records/%<id>s/report_payment_attempt", { id: CGI.escape(id) }),
|
25
|
-
params: params,
|
26
|
-
opts: opts,
|
27
|
-
base_address: :api
|
28
|
-
)
|
29
|
-
end
|
30
|
-
|
31
|
-
# Report that the most recent payment attempt on the specified Payment Record
|
32
|
-
# was canceled.
|
33
|
-
def report_payment_attempt_canceled(id, params = {}, opts = {})
|
34
|
-
request(
|
35
|
-
method: :post,
|
36
|
-
path: format("/v1/payment_records/%<id>s/report_payment_attempt_canceled", { id: CGI.escape(id) }),
|
37
|
-
params: params,
|
38
|
-
opts: opts,
|
39
|
-
base_address: :api
|
40
|
-
)
|
41
|
-
end
|
42
|
-
|
43
|
-
# Report that the most recent payment attempt on the specified Payment Record
|
44
|
-
# failed or errored.
|
45
|
-
def report_payment_attempt_failed(id, params = {}, opts = {})
|
46
|
-
request(
|
47
|
-
method: :post,
|
48
|
-
path: format("/v1/payment_records/%<id>s/report_payment_attempt_failed", { id: CGI.escape(id) }),
|
49
|
-
params: params,
|
50
|
-
opts: opts,
|
51
|
-
base_address: :api
|
52
|
-
)
|
53
|
-
end
|
54
|
-
|
55
|
-
# Report that the most recent payment attempt on the specified Payment Record
|
56
|
-
# was guaranteed.
|
57
|
-
def report_payment_attempt_guaranteed(id, params = {}, opts = {})
|
58
|
-
request(
|
59
|
-
method: :post,
|
60
|
-
path: format("/v1/payment_records/%<id>s/report_payment_attempt_guaranteed", { id: CGI.escape(id) }),
|
61
|
-
params: params,
|
62
|
-
opts: opts,
|
63
|
-
base_address: :api
|
64
|
-
)
|
65
|
-
end
|
66
|
-
|
67
|
-
# Retrieves a Payment Record with the given ID
|
68
|
-
def retrieve(id, params = {}, opts = {})
|
69
|
-
request(
|
70
|
-
method: :get,
|
71
|
-
path: format("/v1/payment_records/%<id>s", { id: CGI.escape(id) }),
|
72
|
-
params: params,
|
73
|
-
opts: opts,
|
74
|
-
base_address: :api
|
75
|
-
)
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class QuoteLineService < StripeService
|
6
|
-
# Retrieves a paginated list of lines for a quote. These lines describe changes that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
|
7
|
-
def list(quote, params = {}, opts = {})
|
8
|
-
request(
|
9
|
-
method: :get,
|
10
|
-
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(quote) }),
|
11
|
-
params: params,
|
12
|
-
opts: opts,
|
13
|
-
base_address: :api
|
14
|
-
)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class QuotePreviewInvoiceService < StripeService
|
6
|
-
# Preview the invoices that would be generated by accepting the quote.
|
7
|
-
def list(quote, params = {}, opts = {})
|
8
|
-
request(
|
9
|
-
method: :get,
|
10
|
-
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(quote) }),
|
11
|
-
params: params,
|
12
|
-
opts: opts,
|
13
|
-
base_address: :api
|
14
|
-
)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
class QuotePreviewSubscriptionScheduleService < StripeService
|
6
|
-
# Preview the schedules that would be generated by accepting the quote
|
7
|
-
def list(quote, params = {}, opts = {})
|
8
|
-
request(
|
9
|
-
method: :get,
|
10
|
-
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(quote) }),
|
11
|
-
params: params,
|
12
|
-
opts: opts,
|
13
|
-
base_address: :api
|
14
|
-
)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Tax
|
6
|
-
class AssociationService < StripeService
|
7
|
-
# Finds a tax association object by PaymentIntent id.
|
8
|
-
def find(params = {}, opts = {})
|
9
|
-
request(
|
10
|
-
method: :get,
|
11
|
-
path: "/v1/tax/associations/find",
|
12
|
-
params: params,
|
13
|
-
opts: opts,
|
14
|
-
base_address: :api
|
15
|
-
)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Tax
|
6
|
-
class FormService < StripeService
|
7
|
-
# Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.
|
8
|
-
def list(params = {}, opts = {})
|
9
|
-
request(method: :get, path: "/v1/tax/forms", params: params, opts: opts, base_address: :api)
|
10
|
-
end
|
11
|
-
|
12
|
-
# Download the PDF for a tax form.
|
13
|
-
def pdf(id, params = {}, opts = {}, &read_body_chunk_block)
|
14
|
-
opts = { api_base: APIRequestor.active_requestor.config.uploads_base }.merge(opts)
|
15
|
-
request_stream(
|
16
|
-
method: :get,
|
17
|
-
path: format("/v1/tax/forms/%<id>s/pdf", { id: CGI.escape(id) }),
|
18
|
-
params: params,
|
19
|
-
opts: opts,
|
20
|
-
base_address: :files,
|
21
|
-
&read_body_chunk_block
|
22
|
-
)
|
23
|
-
end
|
24
|
-
|
25
|
-
# Retrieves the details of a tax form that has previously been created. Supply the unique tax form ID that was returned from your previous request, and Stripe will return the corresponding tax form information.
|
26
|
-
def retrieve(id, params = {}, opts = {})
|
27
|
-
request(
|
28
|
-
method: :get,
|
29
|
-
path: format("/v1/tax/forms/%<id>s", { id: CGI.escape(id) }),
|
30
|
-
params: params,
|
31
|
-
opts: opts,
|
32
|
-
base_address: :api
|
33
|
-
)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# File generated from our OpenAPI spec
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
module Stripe
|
5
|
-
module Terminal
|
6
|
-
class ReaderCollectedDataService < StripeService
|
7
|
-
# Retrieve data collected using Reader hardware.
|
8
|
-
def retrieve(reader_collected_data, params = {}, opts = {})
|
9
|
-
request(
|
10
|
-
method: :get,
|
11
|
-
path: format("/v1/terminal/reader_collected_data/%<reader_collected_data>s", { reader_collected_data: CGI.escape(reader_collected_data) }),
|
12
|
-
params: params,
|
13
|
-
opts: opts,
|
14
|
-
base_address: :api
|
15
|
-
)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|