stripe 10.8.0.pre.beta.1 → 10.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +47 -270
- data/Gemfile +1 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +0 -11
- data/VERSION +1 -1
- data/lib/stripe/api_operations/request.rb +1 -2
- data/lib/stripe/api_version.rb +0 -1
- data/lib/stripe/object_types.rb +0 -23
- data/lib/stripe/resources/account.rb +61 -1
- data/lib/stripe/resources/account_link.rb +5 -0
- data/lib/stripe/resources/account_session.rb +5 -0
- data/lib/stripe/resources/apple_pay_domain.rb +40 -0
- data/lib/stripe/resources/application_fee.rb +5 -0
- data/lib/stripe/resources/apps/secret.rb +10 -0
- data/lib/stripe/resources/balance_transaction.rb +12 -0
- data/lib/stripe/resources/bank_account.rb +27 -0
- data/lib/stripe/resources/billing_portal/configuration.rb +30 -0
- data/lib/stripe/resources/billing_portal/session.rb +10 -0
- data/lib/stripe/resources/card.rb +27 -0
- data/lib/stripe/resources/charge.rb +22 -0
- data/lib/stripe/resources/checkout/session.rb +20 -0
- data/lib/stripe/resources/climate/order.rb +22 -0
- data/lib/stripe/resources/climate/product.rb +10 -0
- data/lib/stripe/resources/climate/supplier.rb +10 -0
- data/lib/stripe/resources/country_spec.rb +5 -0
- data/lib/stripe/resources/coupon.rb +42 -0
- data/lib/stripe/resources/credit_note.rb +33 -0
- data/lib/stripe/resources/customer.rb +42 -11
- data/lib/stripe/resources/customer_session.rb +10 -0
- data/lib/stripe/resources/dispute.rb +17 -0
- data/lib/stripe/resources/ephemeral_key.rb +20 -0
- data/lib/stripe/resources/event.rb +5 -0
- data/lib/stripe/resources/exchange_rate.rb +5 -0
- data/lib/stripe/resources/file.rb +5 -0
- data/lib/stripe/resources/file_link.rb +20 -0
- data/lib/stripe/resources/financial_connections/account.rb +10 -3
- data/lib/stripe/resources/financial_connections/session.rb +10 -0
- data/lib/stripe/resources/financial_connections/transaction.rb +10 -0
- data/lib/stripe/resources/identity/verification_report.rb +10 -0
- data/lib/stripe/resources/identity/verification_session.rb +39 -0
- data/lib/stripe/resources/invoice.rb +45 -53
- data/lib/stripe/resources/invoice_item.rb +40 -0
- data/lib/stripe/resources/issuing/authorization.rb +20 -0
- data/lib/stripe/resources/issuing/card.rb +20 -0
- data/lib/stripe/resources/issuing/cardholder.rb +30 -0
- data/lib/stripe/resources/issuing/dispute.rb +30 -0
- data/lib/stripe/resources/issuing/token.rb +15 -0
- data/lib/stripe/resources/issuing/transaction.rb +20 -0
- data/lib/stripe/resources/payment_intent.rb +35 -0
- data/lib/stripe/resources/payment_link.rb +20 -0
- data/lib/stripe/resources/payment_method.rb +22 -0
- data/lib/stripe/resources/payment_method_configuration.rb +30 -0
- data/lib/stripe/resources/payment_method_domain.rb +30 -0
- data/lib/stripe/resources/payout.rb +24 -0
- data/lib/stripe/resources/plan.rb +40 -0
- data/lib/stripe/resources/price.rb +20 -0
- data/lib/stripe/resources/product.rb +40 -0
- data/lib/stripe/resources/promotion_code.rb +20 -0
- data/lib/stripe/resources/quote.rb +13 -97
- data/lib/stripe/resources/radar/early_fraud_warning.rb +10 -0
- data/lib/stripe/resources/radar/value_list.rb +50 -0
- data/lib/stripe/resources/radar/value_list_item.rb +40 -0
- data/lib/stripe/resources/refund.rb +36 -0
- data/lib/stripe/resources/reporting/report_run.rb +20 -0
- data/lib/stripe/resources/reporting/report_type.rb +10 -0
- data/lib/stripe/resources/review.rb +5 -0
- data/lib/stripe/resources/setup_attempt.rb +5 -0
- data/lib/stripe/resources/setup_intent.rb +23 -0
- data/lib/stripe/resources/shipping_rate.rb +20 -0
- data/lib/stripe/resources/sigma/scheduled_query_run.rb +10 -0
- data/lib/stripe/resources/source.rb +17 -0
- data/lib/stripe/resources/subscription.rb +46 -0
- data/lib/stripe/resources/subscription_item.rb +50 -0
- data/lib/stripe/resources/subscription_schedule.rb +28 -18
- data/lib/stripe/resources/tax/calculation.rb +10 -0
- data/lib/stripe/resources/tax/registration.rb +32 -0
- data/lib/stripe/resources/tax_code.rb +5 -0
- data/lib/stripe/resources/tax_id.rb +20 -0
- data/lib/stripe/resources/tax_rate.rb +20 -0
- data/lib/stripe/resources/terminal/configuration.rb +50 -0
- data/lib/stripe/resources/terminal/connection_token.rb +10 -0
- data/lib/stripe/resources/terminal/location.rb +51 -0
- data/lib/stripe/resources/terminal/reader.rb +42 -52
- data/lib/stripe/resources/test_helpers/test_clock.rb +40 -0
- data/lib/stripe/resources/token.rb +6 -0
- data/lib/stripe/resources/topup.rb +20 -0
- data/lib/stripe/resources/transfer.rb +22 -0
- data/lib/stripe/resources/treasury/credit_reversal.rb +20 -0
- data/lib/stripe/resources/treasury/debit_reversal.rb +20 -0
- data/lib/stripe/resources/treasury/financial_account.rb +30 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +20 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +20 -0
- data/lib/stripe/resources/treasury/outbound_transfer.rb +20 -0
- data/lib/stripe/resources/treasury/received_credit.rb +10 -0
- data/lib/stripe/resources/treasury/received_debit.rb +10 -0
- data/lib/stripe/resources/treasury/transaction.rb +10 -0
- data/lib/stripe/resources/treasury/transaction_entry.rb +10 -0
- data/lib/stripe/resources/webhook_endpoint.rb +50 -0
- data/lib/stripe/resources.rb +0 -22
- data/lib/stripe/search_result_object.rb +1 -1
- data/lib/stripe/stripe_client.rb +28 -62
- data/lib/stripe/stripe_configuration.rb +1 -2
- data/lib/stripe/util.rb +1 -8
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -46
- metadata +4 -27
- data/lib/stripe/request_signing_authenticator.rb +0 -79
- data/lib/stripe/resources/account_notice.rb +0 -14
- data/lib/stripe/resources/capital/financing_offer.rb +0 -36
- data/lib/stripe/resources/capital/financing_summary.rb +0 -12
- data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
- data/lib/stripe/resources/confirmation_token.rb +0 -13
- data/lib/stripe/resources/customer_entitlement.rb +0 -9
- data/lib/stripe/resources/customer_entitlement_summary.rb +0 -9
- data/lib/stripe/resources/entitlements/event.rb +0 -13
- data/lib/stripe/resources/entitlements/feature.rb +0 -15
- data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -11
- data/lib/stripe/resources/gift_cards/card.rb +0 -26
- data/lib/stripe/resources/gift_cards/transaction.rb +0 -60
- data/lib/stripe/resources/invoice_payment.rb +0 -9
- data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -75
- data/lib/stripe/resources/issuing/personalization_design.rb +0 -83
- data/lib/stripe/resources/issuing/physical_bundle.rb +0 -13
- data/lib/stripe/resources/margin.rb +0 -14
- data/lib/stripe/resources/order.rb +0 -97
- data/lib/stripe/resources/quote_phase.rb +0 -31
- data/lib/stripe/resources/quote_preview_invoice.rb +0 -40
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -8
- data/lib/stripe/resources/tax/form.rb +0 -41
@@ -24,36 +24,6 @@ module Stripe
|
|
24
24
|
)
|
25
25
|
end
|
26
26
|
|
27
|
-
# Initiates an input collection flow on a Reader.
|
28
|
-
def collect_inputs(params = {}, opts = {})
|
29
|
-
request_stripe_object(
|
30
|
-
method: :post,
|
31
|
-
path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(self["id"]) }),
|
32
|
-
params: params,
|
33
|
-
opts: opts
|
34
|
-
)
|
35
|
-
end
|
36
|
-
|
37
|
-
# Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
|
38
|
-
def collect_payment_method(params = {}, opts = {})
|
39
|
-
request_stripe_object(
|
40
|
-
method: :post,
|
41
|
-
path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(self["id"]) }),
|
42
|
-
params: params,
|
43
|
-
opts: opts
|
44
|
-
)
|
45
|
-
end
|
46
|
-
|
47
|
-
# Finalizes a payment on a Reader.
|
48
|
-
def confirm_payment_intent(params = {}, opts = {})
|
49
|
-
request_stripe_object(
|
50
|
-
method: :post,
|
51
|
-
path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(self["id"]) }),
|
52
|
-
params: params,
|
53
|
-
opts: opts
|
54
|
-
)
|
55
|
-
end
|
56
|
-
|
57
27
|
# Initiates a payment flow on a Reader.
|
58
28
|
def process_payment_intent(params = {}, opts = {})
|
59
29
|
request_stripe_object(
|
@@ -104,71 +74,91 @@ module Stripe
|
|
104
74
|
)
|
105
75
|
end
|
106
76
|
|
107
|
-
# Initiates
|
108
|
-
def self.
|
77
|
+
# Initiates a payment flow on a Reader.
|
78
|
+
def self.process_payment_intent(reader, params = {}, opts = {})
|
109
79
|
request_stripe_object(
|
110
80
|
method: :post,
|
111
|
-
path: format("/v1/terminal/readers/%<reader>s/
|
81
|
+
path: format("/v1/terminal/readers/%<reader>s/process_payment_intent", { reader: CGI.escape(reader) }),
|
112
82
|
params: params,
|
113
83
|
opts: opts
|
114
84
|
)
|
115
85
|
end
|
116
86
|
|
117
|
-
# Initiates a
|
118
|
-
def self.
|
87
|
+
# Initiates a setup intent flow on a Reader.
|
88
|
+
def self.process_setup_intent(reader, params = {}, opts = {})
|
119
89
|
request_stripe_object(
|
120
90
|
method: :post,
|
121
|
-
path: format("/v1/terminal/readers/%<reader>s/
|
91
|
+
path: format("/v1/terminal/readers/%<reader>s/process_setup_intent", { reader: CGI.escape(reader) }),
|
122
92
|
params: params,
|
123
93
|
opts: opts
|
124
94
|
)
|
125
95
|
end
|
126
96
|
|
127
|
-
#
|
128
|
-
def self.
|
97
|
+
# Initiates a refund on a Reader
|
98
|
+
def self.refund_payment(reader, params = {}, opts = {})
|
129
99
|
request_stripe_object(
|
130
100
|
method: :post,
|
131
|
-
path: format("/v1/terminal/readers/%<reader>s/
|
101
|
+
path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(reader) }),
|
132
102
|
params: params,
|
133
103
|
opts: opts
|
134
104
|
)
|
135
105
|
end
|
136
106
|
|
137
|
-
#
|
138
|
-
def self.
|
107
|
+
# Sets reader display to show cart details.
|
108
|
+
def self.set_reader_display(reader, params = {}, opts = {})
|
139
109
|
request_stripe_object(
|
140
110
|
method: :post,
|
141
|
-
path: format("/v1/terminal/readers/%<reader>s/
|
111
|
+
path: format("/v1/terminal/readers/%<reader>s/set_reader_display", { reader: CGI.escape(reader) }),
|
142
112
|
params: params,
|
143
113
|
opts: opts
|
144
114
|
)
|
145
115
|
end
|
146
116
|
|
147
|
-
#
|
148
|
-
def self.
|
117
|
+
# Creates a new Reader object.
|
118
|
+
def self.create(params = {}, opts = {})
|
149
119
|
request_stripe_object(
|
150
120
|
method: :post,
|
151
|
-
path:
|
121
|
+
path: "/v1/terminal/readers",
|
152
122
|
params: params,
|
153
123
|
opts: opts
|
154
124
|
)
|
155
125
|
end
|
156
126
|
|
157
|
-
#
|
158
|
-
def self.
|
127
|
+
# Deletes a Reader object.
|
128
|
+
def self.delete(id, params = {}, opts = {})
|
159
129
|
request_stripe_object(
|
160
|
-
method: :
|
161
|
-
path: format("/v1/terminal/readers/%<
|
130
|
+
method: :delete,
|
131
|
+
path: format("/v1/terminal/readers/%<id>s", { id: CGI.escape(id) }),
|
162
132
|
params: params,
|
163
133
|
opts: opts
|
164
134
|
)
|
165
135
|
end
|
166
136
|
|
167
|
-
#
|
168
|
-
def
|
137
|
+
# Deletes a Reader object.
|
138
|
+
def delete(params = {}, opts = {})
|
139
|
+
request_stripe_object(
|
140
|
+
method: :delete,
|
141
|
+
path: format("/v1/terminal/readers/%<reader>s", { reader: CGI.escape(self["id"]) }),
|
142
|
+
params: params,
|
143
|
+
opts: opts
|
144
|
+
)
|
145
|
+
end
|
146
|
+
|
147
|
+
# Returns a list of Reader objects.
|
148
|
+
def self.list(filters = {}, opts = {})
|
149
|
+
request_stripe_object(
|
150
|
+
method: :get,
|
151
|
+
path: "/v1/terminal/readers",
|
152
|
+
params: filters,
|
153
|
+
opts: opts
|
154
|
+
)
|
155
|
+
end
|
156
|
+
|
157
|
+
# Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
158
|
+
def self.update(id, params = {}, opts = {})
|
169
159
|
request_stripe_object(
|
170
160
|
method: :post,
|
171
|
-
path: format("/v1/terminal/readers/%<
|
161
|
+
path: format("/v1/terminal/readers/%<id>s", { id: CGI.escape(id) }),
|
172
162
|
params: params,
|
173
163
|
opts: opts
|
174
164
|
)
|
@@ -32,6 +32,46 @@ module Stripe
|
|
32
32
|
opts: opts
|
33
33
|
)
|
34
34
|
end
|
35
|
+
|
36
|
+
# Creates a new test clock that can be attached to new customers and quotes.
|
37
|
+
def self.create(params = {}, opts = {})
|
38
|
+
request_stripe_object(
|
39
|
+
method: :post,
|
40
|
+
path: "/v1/test_helpers/test_clocks",
|
41
|
+
params: params,
|
42
|
+
opts: opts
|
43
|
+
)
|
44
|
+
end
|
45
|
+
|
46
|
+
# Deletes a test clock.
|
47
|
+
def self.delete(id, params = {}, opts = {})
|
48
|
+
request_stripe_object(
|
49
|
+
method: :delete,
|
50
|
+
path: format("/v1/test_helpers/test_clocks/%<id>s", { id: CGI.escape(id) }),
|
51
|
+
params: params,
|
52
|
+
opts: opts
|
53
|
+
)
|
54
|
+
end
|
55
|
+
|
56
|
+
# Deletes a test clock.
|
57
|
+
def delete(params = {}, opts = {})
|
58
|
+
request_stripe_object(
|
59
|
+
method: :delete,
|
60
|
+
path: format("/v1/test_helpers/test_clocks/%<test_clock>s", { test_clock: CGI.escape(self["id"]) }),
|
61
|
+
params: params,
|
62
|
+
opts: opts
|
63
|
+
)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Returns a list of your test clocks.
|
67
|
+
def self.list(filters = {}, opts = {})
|
68
|
+
request_stripe_object(
|
69
|
+
method: :get,
|
70
|
+
path: "/v1/test_helpers/test_clocks",
|
71
|
+
params: filters,
|
72
|
+
opts: opts
|
73
|
+
)
|
74
|
+
end
|
35
75
|
end
|
36
76
|
end
|
37
77
|
end
|
@@ -26,5 +26,11 @@ module Stripe
|
|
26
26
|
extend Stripe::APIOperations::Create
|
27
27
|
|
28
28
|
OBJECT_NAME = "token"
|
29
|
+
|
30
|
+
# Creates a single-use token that represents a bank account's details.
|
31
|
+
# You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [Custom account](https://stripe.com/docs/api#accounts).
|
32
|
+
def self.create(params = {}, opts = {})
|
33
|
+
request_stripe_object(method: :post, path: "/v1/tokens", params: params, opts: opts)
|
34
|
+
end
|
29
35
|
end
|
30
36
|
end
|
@@ -33,5 +33,25 @@ module Stripe
|
|
33
33
|
opts: opts
|
34
34
|
)
|
35
35
|
end
|
36
|
+
|
37
|
+
# Top up the balance of an account
|
38
|
+
def self.create(params = {}, opts = {})
|
39
|
+
request_stripe_object(method: :post, path: "/v1/topups", params: params, opts: opts)
|
40
|
+
end
|
41
|
+
|
42
|
+
# Returns a list of top-ups.
|
43
|
+
def self.list(filters = {}, opts = {})
|
44
|
+
request_stripe_object(method: :get, path: "/v1/topups", params: filters, opts: opts)
|
45
|
+
end
|
46
|
+
|
47
|
+
# Updates the metadata of a top-up. Other top-up details are not editable by design.
|
48
|
+
def self.update(id, params = {}, opts = {})
|
49
|
+
request_stripe_object(
|
50
|
+
method: :post,
|
51
|
+
path: format("/v1/topups/%<id>s", { id: CGI.escape(id) }),
|
52
|
+
params: params,
|
53
|
+
opts: opts
|
54
|
+
)
|
55
|
+
end
|
36
56
|
end
|
37
57
|
end
|
@@ -21,5 +21,27 @@ module Stripe
|
|
21
21
|
OBJECT_NAME = "transfer"
|
22
22
|
|
23
23
|
nested_resource_class_methods :reversal, operations: %i[create retrieve update list]
|
24
|
+
|
25
|
+
# To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://stripe.com/docs/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error.
|
26
|
+
def self.create(params = {}, opts = {})
|
27
|
+
request_stripe_object(method: :post, path: "/v1/transfers", params: params, opts: opts)
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first.
|
31
|
+
def self.list(filters = {}, opts = {})
|
32
|
+
request_stripe_object(method: :get, path: "/v1/transfers", params: filters, opts: opts)
|
33
|
+
end
|
34
|
+
|
35
|
+
# Updates the specified transfer by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
36
|
+
#
|
37
|
+
# This request accepts only metadata as an argument.
|
38
|
+
def self.update(id, params = {}, opts = {})
|
39
|
+
request_stripe_object(
|
40
|
+
method: :post,
|
41
|
+
path: format("/v1/transfers/%<id>s", { id: CGI.escape(id) }),
|
42
|
+
params: params,
|
43
|
+
opts: opts
|
44
|
+
)
|
45
|
+
end
|
24
46
|
end
|
25
47
|
end
|
@@ -9,6 +9,26 @@ module Stripe
|
|
9
9
|
extend Stripe::APIOperations::List
|
10
10
|
|
11
11
|
OBJECT_NAME = "treasury.credit_reversal"
|
12
|
+
|
13
|
+
# Reverses a ReceivedCredit and creates a CreditReversal object.
|
14
|
+
def self.create(params = {}, opts = {})
|
15
|
+
request_stripe_object(
|
16
|
+
method: :post,
|
17
|
+
path: "/v1/treasury/credit_reversals",
|
18
|
+
params: params,
|
19
|
+
opts: opts
|
20
|
+
)
|
21
|
+
end
|
22
|
+
|
23
|
+
# Returns a list of CreditReversals.
|
24
|
+
def self.list(filters = {}, opts = {})
|
25
|
+
request_stripe_object(
|
26
|
+
method: :get,
|
27
|
+
path: "/v1/treasury/credit_reversals",
|
28
|
+
params: filters,
|
29
|
+
opts: opts
|
30
|
+
)
|
31
|
+
end
|
12
32
|
end
|
13
33
|
end
|
14
34
|
end
|
@@ -9,6 +9,26 @@ module Stripe
|
|
9
9
|
extend Stripe::APIOperations::List
|
10
10
|
|
11
11
|
OBJECT_NAME = "treasury.debit_reversal"
|
12
|
+
|
13
|
+
# Reverses a ReceivedDebit and creates a DebitReversal object.
|
14
|
+
def self.create(params = {}, opts = {})
|
15
|
+
request_stripe_object(
|
16
|
+
method: :post,
|
17
|
+
path: "/v1/treasury/debit_reversals",
|
18
|
+
params: params,
|
19
|
+
opts: opts
|
20
|
+
)
|
21
|
+
end
|
22
|
+
|
23
|
+
# Returns a list of DebitReversals.
|
24
|
+
def self.list(filters = {}, opts = {})
|
25
|
+
request_stripe_object(
|
26
|
+
method: :get,
|
27
|
+
path: "/v1/treasury/debit_reversals",
|
28
|
+
params: filters,
|
29
|
+
opts: opts
|
30
|
+
)
|
31
|
+
end
|
12
32
|
end
|
13
33
|
end
|
14
34
|
end
|
@@ -51,6 +51,36 @@ module Stripe
|
|
51
51
|
opts: opts
|
52
52
|
)
|
53
53
|
end
|
54
|
+
|
55
|
+
# Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.
|
56
|
+
def self.create(params = {}, opts = {})
|
57
|
+
request_stripe_object(
|
58
|
+
method: :post,
|
59
|
+
path: "/v1/treasury/financial_accounts",
|
60
|
+
params: params,
|
61
|
+
opts: opts
|
62
|
+
)
|
63
|
+
end
|
64
|
+
|
65
|
+
# Returns a list of FinancialAccounts.
|
66
|
+
def self.list(filters = {}, opts = {})
|
67
|
+
request_stripe_object(
|
68
|
+
method: :get,
|
69
|
+
path: "/v1/treasury/financial_accounts",
|
70
|
+
params: filters,
|
71
|
+
opts: opts
|
72
|
+
)
|
73
|
+
end
|
74
|
+
|
75
|
+
# Updates the details of a FinancialAccount.
|
76
|
+
def self.update(id, params = {}, opts = {})
|
77
|
+
request_stripe_object(
|
78
|
+
method: :post,
|
79
|
+
path: format("/v1/treasury/financial_accounts/%<id>s", { id: CGI.escape(id) }),
|
80
|
+
params: params,
|
81
|
+
opts: opts
|
82
|
+
)
|
83
|
+
end
|
54
84
|
end
|
55
85
|
end
|
56
86
|
end
|
@@ -30,6 +30,26 @@ module Stripe
|
|
30
30
|
)
|
31
31
|
end
|
32
32
|
|
33
|
+
# Creates an InboundTransfer.
|
34
|
+
def self.create(params = {}, opts = {})
|
35
|
+
request_stripe_object(
|
36
|
+
method: :post,
|
37
|
+
path: "/v1/treasury/inbound_transfers",
|
38
|
+
params: params,
|
39
|
+
opts: opts
|
40
|
+
)
|
41
|
+
end
|
42
|
+
|
43
|
+
# Returns a list of InboundTransfers sent from the specified FinancialAccount.
|
44
|
+
def self.list(filters = {}, opts = {})
|
45
|
+
request_stripe_object(
|
46
|
+
method: :get,
|
47
|
+
path: "/v1/treasury/inbound_transfers",
|
48
|
+
params: filters,
|
49
|
+
opts: opts
|
50
|
+
)
|
51
|
+
end
|
52
|
+
|
33
53
|
def test_helpers
|
34
54
|
TestHelpers.new(self)
|
35
55
|
end
|
@@ -32,6 +32,26 @@ module Stripe
|
|
32
32
|
)
|
33
33
|
end
|
34
34
|
|
35
|
+
# Creates an OutboundPayment.
|
36
|
+
def self.create(params = {}, opts = {})
|
37
|
+
request_stripe_object(
|
38
|
+
method: :post,
|
39
|
+
path: "/v1/treasury/outbound_payments",
|
40
|
+
params: params,
|
41
|
+
opts: opts
|
42
|
+
)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Returns a list of OutboundPayments sent from the specified FinancialAccount.
|
46
|
+
def self.list(filters = {}, opts = {})
|
47
|
+
request_stripe_object(
|
48
|
+
method: :get,
|
49
|
+
path: "/v1/treasury/outbound_payments",
|
50
|
+
params: filters,
|
51
|
+
opts: opts
|
52
|
+
)
|
53
|
+
end
|
54
|
+
|
35
55
|
def test_helpers
|
36
56
|
TestHelpers.new(self)
|
37
57
|
end
|
@@ -32,6 +32,26 @@ module Stripe
|
|
32
32
|
)
|
33
33
|
end
|
34
34
|
|
35
|
+
# Creates an OutboundTransfer.
|
36
|
+
def self.create(params = {}, opts = {})
|
37
|
+
request_stripe_object(
|
38
|
+
method: :post,
|
39
|
+
path: "/v1/treasury/outbound_transfers",
|
40
|
+
params: params,
|
41
|
+
opts: opts
|
42
|
+
)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Returns a list of OutboundTransfers sent from the specified FinancialAccount.
|
46
|
+
def self.list(filters = {}, opts = {})
|
47
|
+
request_stripe_object(
|
48
|
+
method: :get,
|
49
|
+
path: "/v1/treasury/outbound_transfers",
|
50
|
+
params: filters,
|
51
|
+
opts: opts
|
52
|
+
)
|
53
|
+
end
|
54
|
+
|
35
55
|
def test_helpers
|
36
56
|
TestHelpers.new(self)
|
37
57
|
end
|
@@ -9,6 +9,16 @@ module Stripe
|
|
9
9
|
|
10
10
|
OBJECT_NAME = "treasury.received_credit"
|
11
11
|
|
12
|
+
# Returns a list of ReceivedCredits.
|
13
|
+
def self.list(filters = {}, opts = {})
|
14
|
+
request_stripe_object(
|
15
|
+
method: :get,
|
16
|
+
path: "/v1/treasury/received_credits",
|
17
|
+
params: filters,
|
18
|
+
opts: opts
|
19
|
+
)
|
20
|
+
end
|
21
|
+
|
12
22
|
def test_helpers
|
13
23
|
TestHelpers.new(self)
|
14
24
|
end
|
@@ -9,6 +9,16 @@ module Stripe
|
|
9
9
|
|
10
10
|
OBJECT_NAME = "treasury.received_debit"
|
11
11
|
|
12
|
+
# Returns a list of ReceivedDebits.
|
13
|
+
def self.list(filters = {}, opts = {})
|
14
|
+
request_stripe_object(
|
15
|
+
method: :get,
|
16
|
+
path: "/v1/treasury/received_debits",
|
17
|
+
params: filters,
|
18
|
+
opts: opts
|
19
|
+
)
|
20
|
+
end
|
21
|
+
|
12
22
|
def test_helpers
|
13
23
|
TestHelpers.new(self)
|
14
24
|
end
|
@@ -8,6 +8,16 @@ module Stripe
|
|
8
8
|
extend Stripe::APIOperations::List
|
9
9
|
|
10
10
|
OBJECT_NAME = "treasury.transaction"
|
11
|
+
|
12
|
+
# Retrieves a list of Transaction objects.
|
13
|
+
def self.list(filters = {}, opts = {})
|
14
|
+
request_stripe_object(
|
15
|
+
method: :get,
|
16
|
+
path: "/v1/treasury/transactions",
|
17
|
+
params: filters,
|
18
|
+
opts: opts
|
19
|
+
)
|
20
|
+
end
|
11
21
|
end
|
12
22
|
end
|
13
23
|
end
|
@@ -12,6 +12,16 @@ module Stripe
|
|
12
12
|
def self.resource_url
|
13
13
|
"/v1/treasury/transaction_entries"
|
14
14
|
end
|
15
|
+
|
16
|
+
# Retrieves a list of TransactionEntry objects.
|
17
|
+
def self.list(filters = {}, opts = {})
|
18
|
+
request_stripe_object(
|
19
|
+
method: :get,
|
20
|
+
path: "/v1/treasury/transaction_entries",
|
21
|
+
params: filters,
|
22
|
+
opts: opts
|
23
|
+
)
|
24
|
+
end
|
15
25
|
end
|
16
26
|
end
|
17
27
|
end
|
@@ -16,5 +16,55 @@ module Stripe
|
|
16
16
|
include Stripe::APIOperations::Save
|
17
17
|
|
18
18
|
OBJECT_NAME = "webhook_endpoint"
|
19
|
+
|
20
|
+
# A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the [webhooks settings](https://dashboard.stripe.com/account/webhooks) section of the Dashboard.
|
21
|
+
def self.create(params = {}, opts = {})
|
22
|
+
request_stripe_object(
|
23
|
+
method: :post,
|
24
|
+
path: "/v1/webhook_endpoints",
|
25
|
+
params: params,
|
26
|
+
opts: opts
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
30
|
+
# You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard.
|
31
|
+
def self.delete(id, params = {}, opts = {})
|
32
|
+
request_stripe_object(
|
33
|
+
method: :delete,
|
34
|
+
path: format("/v1/webhook_endpoints/%<id>s", { id: CGI.escape(id) }),
|
35
|
+
params: params,
|
36
|
+
opts: opts
|
37
|
+
)
|
38
|
+
end
|
39
|
+
|
40
|
+
# You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard.
|
41
|
+
def delete(params = {}, opts = {})
|
42
|
+
request_stripe_object(
|
43
|
+
method: :delete,
|
44
|
+
path: format("/v1/webhook_endpoints/%<webhook_endpoint>s", { webhook_endpoint: CGI.escape(self["id"]) }),
|
45
|
+
params: params,
|
46
|
+
opts: opts
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
# Returns a list of your webhook endpoints.
|
51
|
+
def self.list(filters = {}, opts = {})
|
52
|
+
request_stripe_object(
|
53
|
+
method: :get,
|
54
|
+
path: "/v1/webhook_endpoints",
|
55
|
+
params: filters,
|
56
|
+
opts: opts
|
57
|
+
)
|
58
|
+
end
|
59
|
+
|
60
|
+
# Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint.
|
61
|
+
def self.update(id, params = {}, opts = {})
|
62
|
+
request_stripe_object(
|
63
|
+
method: :post,
|
64
|
+
path: format("/v1/webhook_endpoints/%<id>s", { id: CGI.escape(id) }),
|
65
|
+
params: params,
|
66
|
+
opts: opts
|
67
|
+
)
|
68
|
+
end
|
19
69
|
end
|
20
70
|
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
require "stripe/resources/account"
|
5
5
|
require "stripe/resources/account_link"
|
6
|
-
require "stripe/resources/account_notice"
|
7
6
|
require "stripe/resources/account_session"
|
8
7
|
require "stripe/resources/apple_pay_domain"
|
9
8
|
require "stripe/resources/application_fee"
|
@@ -15,9 +14,6 @@ require "stripe/resources/bank_account"
|
|
15
14
|
require "stripe/resources/billing_portal/configuration"
|
16
15
|
require "stripe/resources/billing_portal/session"
|
17
16
|
require "stripe/resources/capability"
|
18
|
-
require "stripe/resources/capital/financing_offer"
|
19
|
-
require "stripe/resources/capital/financing_summary"
|
20
|
-
require "stripe/resources/capital/financing_transaction"
|
21
17
|
require "stripe/resources/card"
|
22
18
|
require "stripe/resources/cash_balance"
|
23
19
|
require "stripe/resources/charge"
|
@@ -25,7 +21,6 @@ require "stripe/resources/checkout/session"
|
|
25
21
|
require "stripe/resources/climate/order"
|
26
22
|
require "stripe/resources/climate/product"
|
27
23
|
require "stripe/resources/climate/supplier"
|
28
|
-
require "stripe/resources/confirmation_token"
|
29
24
|
require "stripe/resources/country_spec"
|
30
25
|
require "stripe/resources/coupon"
|
31
26
|
require "stripe/resources/credit_note"
|
@@ -33,47 +28,34 @@ require "stripe/resources/credit_note_line_item"
|
|
33
28
|
require "stripe/resources/customer"
|
34
29
|
require "stripe/resources/customer_balance_transaction"
|
35
30
|
require "stripe/resources/customer_cash_balance_transaction"
|
36
|
-
require "stripe/resources/customer_entitlement"
|
37
|
-
require "stripe/resources/customer_entitlement_summary"
|
38
31
|
require "stripe/resources/customer_session"
|
39
32
|
require "stripe/resources/discount"
|
40
33
|
require "stripe/resources/dispute"
|
41
|
-
require "stripe/resources/entitlements/event"
|
42
|
-
require "stripe/resources/entitlements/feature"
|
43
34
|
require "stripe/resources/ephemeral_key"
|
44
35
|
require "stripe/resources/event"
|
45
36
|
require "stripe/resources/exchange_rate"
|
46
37
|
require "stripe/resources/file"
|
47
38
|
require "stripe/resources/file_link"
|
48
39
|
require "stripe/resources/financial_connections/account"
|
49
|
-
require "stripe/resources/financial_connections/account_inferred_balance"
|
50
40
|
require "stripe/resources/financial_connections/account_owner"
|
51
41
|
require "stripe/resources/financial_connections/account_ownership"
|
52
42
|
require "stripe/resources/financial_connections/session"
|
53
43
|
require "stripe/resources/financial_connections/transaction"
|
54
44
|
require "stripe/resources/funding_instructions"
|
55
|
-
require "stripe/resources/gift_cards/card"
|
56
|
-
require "stripe/resources/gift_cards/transaction"
|
57
45
|
require "stripe/resources/identity/verification_report"
|
58
46
|
require "stripe/resources/identity/verification_session"
|
59
47
|
require "stripe/resources/invoice"
|
60
48
|
require "stripe/resources/invoice_item"
|
61
49
|
require "stripe/resources/invoice_line_item"
|
62
|
-
require "stripe/resources/invoice_payment"
|
63
50
|
require "stripe/resources/issuing/authorization"
|
64
51
|
require "stripe/resources/issuing/card"
|
65
52
|
require "stripe/resources/issuing/cardholder"
|
66
|
-
require "stripe/resources/issuing/credit_underwriting_record"
|
67
53
|
require "stripe/resources/issuing/dispute"
|
68
|
-
require "stripe/resources/issuing/personalization_design"
|
69
|
-
require "stripe/resources/issuing/physical_bundle"
|
70
54
|
require "stripe/resources/issuing/token"
|
71
55
|
require "stripe/resources/issuing/transaction"
|
72
56
|
require "stripe/resources/line_item"
|
73
57
|
require "stripe/resources/login_link"
|
74
58
|
require "stripe/resources/mandate"
|
75
|
-
require "stripe/resources/margin"
|
76
|
-
require "stripe/resources/order"
|
77
59
|
require "stripe/resources/payment_intent"
|
78
60
|
require "stripe/resources/payment_link"
|
79
61
|
require "stripe/resources/payment_method"
|
@@ -86,9 +68,6 @@ require "stripe/resources/price"
|
|
86
68
|
require "stripe/resources/product"
|
87
69
|
require "stripe/resources/promotion_code"
|
88
70
|
require "stripe/resources/quote"
|
89
|
-
require "stripe/resources/quote_phase"
|
90
|
-
require "stripe/resources/quote_preview_invoice"
|
91
|
-
require "stripe/resources/quote_preview_subscription_schedule"
|
92
71
|
require "stripe/resources/radar/early_fraud_warning"
|
93
72
|
require "stripe/resources/radar/value_list"
|
94
73
|
require "stripe/resources/radar/value_list_item"
|
@@ -108,7 +87,6 @@ require "stripe/resources/subscription_item"
|
|
108
87
|
require "stripe/resources/subscription_schedule"
|
109
88
|
require "stripe/resources/tax/calculation"
|
110
89
|
require "stripe/resources/tax/calculation_line_item"
|
111
|
-
require "stripe/resources/tax/form"
|
112
90
|
require "stripe/resources/tax/registration"
|
113
91
|
require "stripe/resources/tax/settings"
|
114
92
|
require "stripe/resources/tax/transaction"
|