stripe 8.1.0 → 8.2.0.pre.beta.2
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 +81 -39
- data/OPENAPI_VERSION +1 -1
- data/README.md +5 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +12 -0
- data/lib/stripe/resources/account.rb +0 -1
- data/lib/stripe/resources/account_session.rb +17 -0
- data/lib/stripe/resources/capital/financing_offer.rb +32 -0
- data/lib/stripe/resources/capital/financing_summary.rb +12 -0
- data/lib/stripe/resources/capital/financing_transaction.rb +13 -0
- data/lib/stripe/resources/gift_cards/card.rb +25 -0
- data/lib/stripe/resources/gift_cards/transaction.rb +56 -0
- data/lib/stripe/resources/order.rb +89 -0
- data/lib/stripe/resources/quote.rb +126 -0
- data/lib/stripe/resources/quote_phase.rb +29 -0
- data/lib/stripe/resources/subscription_schedule.rb +18 -0
- data/lib/stripe/resources/tax/calculation.rb +31 -0
- data/lib/stripe/resources/tax/registration.rb +17 -0
- data/lib/stripe/resources/tax/settings.rb +15 -0
- data/lib/stripe/resources/tax/transaction.rb +22 -0
- data/lib/stripe/resources/terminal/reader.rb +18 -0
- data/lib/stripe/resources.rb +12 -0
- data/lib/stripe/stripe_configuration.rb +2 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +1 -0
- metadata +16 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8397ec44dfe136b98575f23ae600640db106e9aec01c7203b7ded2b25a2900a8
|
|
4
|
+
data.tar.gz: fda895176cc529320c40a1a0db40c4b2603a4dc9724752d6e1b796d160371b11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48fe6def388a78255c8457ed131b6b1210b50785f79f3b5e38fb155edb57baba7a4f7ba3f66bbb5ecd890561eeee2ec37f9a1511fde8df55479ae5c55aac8fd5
|
|
7
|
+
data.tar.gz: f1e11cf42f0bb769f8c073ec8cac15496c03863828a3797085cdfae3c9c961cc68102f2ece3377f68edb6422058f5c3a2c46db336e45e9af20513ec8d494c3bd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 8.2.0-beta.2 - 2023-01-19
|
|
4
|
+
* [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
|
|
5
|
+
* Updated stable APIs to the latest version
|
|
6
|
+
* Add support for `Tax.Settings` resource.
|
|
7
|
+
|
|
8
|
+
## 8.2.0-beta.1 - 2023-01-12
|
|
9
|
+
* [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
|
|
10
|
+
* Updated stable APIs to the latest version
|
|
11
|
+
* Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
|
|
12
|
+
* Add support for `Tax::Register` resource
|
|
13
|
+
|
|
3
14
|
## 8.1.0 - 2023-01-12
|
|
4
15
|
* [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
|
|
5
16
|
|
|
17
|
+
## 8.1.0-beta.4 - 2023-01-05
|
|
18
|
+
* [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
|
|
19
|
+
* Updated stable APIs to the latest version
|
|
20
|
+
* Add support for `mark_stale_quote` method on resource `Quote`
|
|
21
|
+
|
|
22
|
+
## 8.1.0-beta.3 - 2022-12-22
|
|
23
|
+
* [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
|
|
24
|
+
* Updated stable APIs to the latest version
|
|
25
|
+
* Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
|
|
26
|
+
|
|
27
|
+
## 8.1.0-beta.2 - 2022-12-15
|
|
28
|
+
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
|
|
29
|
+
* Updated stable APIs to the latest version
|
|
30
|
+
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
|
|
31
|
+
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
|
|
32
|
+
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
|
|
33
|
+
* [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
|
|
34
|
+
* Updated stable APIs to the latest version
|
|
35
|
+
* Add support for new resource `QuoteLine`.
|
|
36
|
+
|
|
37
|
+
## 8.1.0-beta.1 - 2022-12-08
|
|
38
|
+
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
|
|
39
|
+
* Updated stable APIs to the latest version
|
|
40
|
+
* [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
|
|
41
|
+
* Updated stable APIs to the latest version
|
|
42
|
+
|
|
6
43
|
## 8.0.0 - 2022-11-16
|
|
7
44
|
* [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
|
|
8
45
|
|
|
@@ -10,30 +47,29 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
|
10
47
|
|
|
11
48
|
"⚠️" symbol highlights breaking changes.
|
|
12
49
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
refund.description = "Refund description"
|
|
19
|
-
refund.save
|
|
20
|
-
|
|
21
|
-
# after
|
|
22
|
-
Stripe::Refund.update("re_123", description: "Refund description")
|
|
23
|
-
```
|
|
50
|
+
## 7.2.0-beta.5 - 2022-11-02
|
|
51
|
+
* [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
|
|
52
|
+
* Updated beta APIs to the latest stable version
|
|
53
|
+
* [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
|
|
54
|
+
* Updated stable APIs to the latest version
|
|
24
55
|
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
- Removed deprecated `Orders` resource.
|
|
28
|
-
- Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
|
|
29
|
-
```ruby
|
|
30
|
-
# before
|
|
31
|
-
Stripe::Subscription::delete("sub_12345")
|
|
56
|
+
## 7.2.0-beta.4 - 2022-10-07
|
|
57
|
+
* [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
|
|
32
58
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
59
|
+
## 7.2.0-beta.3 - 2022-09-26
|
|
60
|
+
* [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
|
|
61
|
+
* Updated stable APIs to the latest version
|
|
62
|
+
* Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
|
|
36
63
|
|
|
64
|
+
## 7.2.0-beta.2 - 2022-08-26
|
|
65
|
+
* [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
|
|
66
|
+
* Updated stable APIs to the latest version
|
|
67
|
+
* Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
|
|
68
|
+
|
|
69
|
+
## 7.2.0-beta.1 - 2022-08-23
|
|
70
|
+
* [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
|
|
71
|
+
- Updated stable APIs to the latest version
|
|
72
|
+
- `Stripe-Version` beta headers are not pinned by-default and need to be manually specified, please refer to [beta SDKs README section](https://github.com/stripe/stripe-ruby/blob/master/README.md#beta-sdks)
|
|
37
73
|
|
|
38
74
|
## 7.1.0 - 2022-08-19
|
|
39
75
|
* [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
|
|
@@ -42,6 +78,16 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
|
42
78
|
* [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
|
|
43
79
|
* [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
|
|
44
80
|
|
|
81
|
+
## 7.1.0-beta.2 - 2022-08-11
|
|
82
|
+
* [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
|
|
83
|
+
- Updated stable APIs to the latest version
|
|
84
|
+
- Add `refund_payment` method to Terminal resource
|
|
85
|
+
|
|
86
|
+
## 7.1.0-beta.1 - 2022-08-03
|
|
87
|
+
* [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
|
|
88
|
+
- Updated stable APIs to the latest version
|
|
89
|
+
- Added the `Order` resource support
|
|
90
|
+
|
|
45
91
|
## 7.0.0 - 2022-08-02
|
|
46
92
|
|
|
47
93
|
Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v7. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.
|
|
@@ -53,21 +99,19 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
|
53
99
|
* [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
|
|
54
100
|
* [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
|
|
55
101
|
|
|
56
|
-
|
|
57
|
-
*
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
*
|
|
67
|
-
|
|
68
|
-
*
|
|
69
|
-
* Remove ability to list `Card` resource for a `Recipient`.
|
|
70
|
-
* Remove `cancel` method from `Transfer` resource. The method was deprecated.
|
|
102
|
+
## 6.6.0-beta.1 - 2022-07-22
|
|
103
|
+
* [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
|
|
104
|
+
- Updated stable APIs to the latest version
|
|
105
|
+
- Add `QuotePhase` resource
|
|
106
|
+
* [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
|
|
107
|
+
- Updated stable APIs to the latest version
|
|
108
|
+
- Add `SubscriptionSchedule.amend` method.
|
|
109
|
+
* [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
|
|
110
|
+
- Include `server_side_confirmation_beta=v1` beta
|
|
111
|
+
- Add `secretKeyConfirmation` to `PaymentIntent`
|
|
112
|
+
* [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
|
|
113
|
+
- Updated stable APIs to the latest version
|
|
114
|
+
* [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
|
|
71
115
|
|
|
72
116
|
## 6.5.0 - 2022-06-29
|
|
73
117
|
* [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
|
|
@@ -97,8 +141,6 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
|
97
141
|
* Add support for new resources `Treasury.CreditReversal`, `Treasury.DebitReversal`, `Treasury.FinancialAccountFeatures`, `Treasury.FinancialAccount`, `Treasury.FlowDetails`, `Treasury.InboundTransfer`, `Treasury.OutboundPayment`, `Treasury.OutboundTransfer`, `Treasury.ReceivedCredit`, `Treasury.ReceivedDebit`, `Treasury.TransactionEntry`, and `Treasury.Transaction`
|
|
98
142
|
* Add support for `retrieve_payment_method` method on resource `Customer`
|
|
99
143
|
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
|
100
|
-
|
|
101
|
-
|
|
102
144
|
|
|
103
145
|
## 6.0.0 - 2022-05-09
|
|
104
146
|
* [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
|
|
@@ -114,7 +156,6 @@ Breaking changes that arose during code generation of the library that we postpo
|
|
|
114
156
|
## 5.55.0 - 2022-05-05
|
|
115
157
|
* [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
|
|
116
158
|
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
|
|
117
|
-
|
|
118
159
|
|
|
119
160
|
## 5.54.0 - 2022-05-03
|
|
120
161
|
* [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
|
|
@@ -1145,3 +1186,4 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
|
|
|
1145
1186
|
<!--
|
|
1146
1187
|
# vim: set tw=0:
|
|
1147
1188
|
-->
|
|
1189
|
+
|
data/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v219
|
data/README.md
CHANGED
|
@@ -253,7 +253,11 @@ a success or error. Receives `RequestEndEvent` with the following properties:
|
|
|
253
253
|
- `path`: Request path. (`String`)
|
|
254
254
|
- `user_data`: A hash on which users may have set arbitrary data in
|
|
255
255
|
`request_begin`. See above for more information. (`Hash`)
|
|
256
|
-
- `request_id
|
|
256
|
+
- `request_id`: HTTP request identifier. (`String`)
|
|
257
|
+
- `response_header`: The response headers. (`Hash`)
|
|
258
|
+
- `response_body` = The response body. (`String`)
|
|
259
|
+
- `request_header` = The request headers. (`Hash`)
|
|
260
|
+
- `request_body` = The request body. (`String`)
|
|
257
261
|
|
|
258
262
|
#### Example
|
|
259
263
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.
|
|
1
|
+
8.2.0-beta.2
|
data/lib/stripe/object_types.rb
CHANGED
|
@@ -14,6 +14,7 @@ module Stripe
|
|
|
14
14
|
# business objects
|
|
15
15
|
Account::OBJECT_NAME => Account,
|
|
16
16
|
AccountLink::OBJECT_NAME => AccountLink,
|
|
17
|
+
AccountSession::OBJECT_NAME => AccountSession,
|
|
17
18
|
ApplePayDomain::OBJECT_NAME => ApplePayDomain,
|
|
18
19
|
ApplicationFee::OBJECT_NAME => ApplicationFee,
|
|
19
20
|
ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
|
|
@@ -24,6 +25,9 @@ module Stripe
|
|
|
24
25
|
BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
|
|
25
26
|
BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
|
|
26
27
|
Capability::OBJECT_NAME => Capability,
|
|
28
|
+
Capital::FinancingOffer::OBJECT_NAME => Capital::FinancingOffer,
|
|
29
|
+
Capital::FinancingSummary::OBJECT_NAME => Capital::FinancingSummary,
|
|
30
|
+
Capital::FinancingTransaction::OBJECT_NAME => Capital::FinancingTransaction,
|
|
27
31
|
Card::OBJECT_NAME => Card,
|
|
28
32
|
CashBalance::OBJECT_NAME => CashBalance,
|
|
29
33
|
Charge::OBJECT_NAME => Charge,
|
|
@@ -49,6 +53,8 @@ module Stripe
|
|
|
49
53
|
FinancialConnections::AccountOwnership,
|
|
50
54
|
FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
|
|
51
55
|
FundingInstructions::OBJECT_NAME => FundingInstructions,
|
|
56
|
+
GiftCards::Card::OBJECT_NAME => GiftCards::Card,
|
|
57
|
+
GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
|
|
52
58
|
Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
|
|
53
59
|
Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
|
|
54
60
|
Invoice::OBJECT_NAME => Invoice,
|
|
@@ -62,6 +68,7 @@ module Stripe
|
|
|
62
68
|
LineItem::OBJECT_NAME => LineItem,
|
|
63
69
|
LoginLink::OBJECT_NAME => LoginLink,
|
|
64
70
|
Mandate::OBJECT_NAME => Mandate,
|
|
71
|
+
Order::OBJECT_NAME => Order,
|
|
65
72
|
PaymentIntent::OBJECT_NAME => PaymentIntent,
|
|
66
73
|
PaymentLink::OBJECT_NAME => PaymentLink,
|
|
67
74
|
PaymentMethod::OBJECT_NAME => PaymentMethod,
|
|
@@ -72,6 +79,7 @@ module Stripe
|
|
|
72
79
|
Product::OBJECT_NAME => Product,
|
|
73
80
|
PromotionCode::OBJECT_NAME => PromotionCode,
|
|
74
81
|
Quote::OBJECT_NAME => Quote,
|
|
82
|
+
QuotePhase::OBJECT_NAME => QuotePhase,
|
|
75
83
|
Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
|
|
76
84
|
Radar::ValueList::OBJECT_NAME => Radar::ValueList,
|
|
77
85
|
Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
|
|
@@ -89,6 +97,10 @@ module Stripe
|
|
|
89
97
|
Subscription::OBJECT_NAME => Subscription,
|
|
90
98
|
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
|
91
99
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
|
100
|
+
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
|
101
|
+
Tax::Registration::OBJECT_NAME => Tax::Registration,
|
|
102
|
+
Tax::Settings::OBJECT_NAME => Tax::Settings,
|
|
103
|
+
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
|
92
104
|
TaxCode::OBJECT_NAME => TaxCode,
|
|
93
105
|
TaxId::OBJECT_NAME => TaxId,
|
|
94
106
|
TaxRate::OBJECT_NAME => TaxRate,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
# An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded UIs.
|
|
6
|
+
#
|
|
7
|
+
# We recommend that you create an AccountSession each time you need to display an embedded UI
|
|
8
|
+
# to your user. Do not save AccountSessions to your database as they expire relatively
|
|
9
|
+
# quickly, and cannot be used more than once.
|
|
10
|
+
#
|
|
11
|
+
# Related guide: [Connect embedded UIs](https://stripe.com/docs/connect/get-started-connect-embedded-uis).
|
|
12
|
+
class AccountSession < APIResource
|
|
13
|
+
extend Stripe::APIOperations::Create
|
|
14
|
+
|
|
15
|
+
OBJECT_NAME = "account_session"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Capital
|
|
6
|
+
# This is an object representing an offer of financing from
|
|
7
|
+
# Stripe Capital to a Connect subaccount.
|
|
8
|
+
class FinancingOffer < APIResource
|
|
9
|
+
extend Stripe::APIOperations::List
|
|
10
|
+
|
|
11
|
+
OBJECT_NAME = "capital.financing_offer"
|
|
12
|
+
|
|
13
|
+
def mark_delivered(params = {}, opts = {})
|
|
14
|
+
request_stripe_object(
|
|
15
|
+
method: :post,
|
|
16
|
+
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(self["id"]) }),
|
|
17
|
+
params: params,
|
|
18
|
+
opts: opts
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def self.mark_delivered(financing_offer, params = {}, opts = {})
|
|
23
|
+
request_stripe_object(
|
|
24
|
+
method: :post,
|
|
25
|
+
path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
|
|
26
|
+
params: params,
|
|
27
|
+
opts: opts
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Capital
|
|
6
|
+
# A financing object describes an account's current financing state. Used by Connect
|
|
7
|
+
# platforms to read the state of Capital offered to their connected accounts.
|
|
8
|
+
class FinancingSummary < SingletonAPIResource
|
|
9
|
+
OBJECT_NAME = "capital.financing_summary"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Capital
|
|
6
|
+
# This is an object representing the details of a transaction on a Capital financing object.
|
|
7
|
+
class FinancingTransaction < APIResource
|
|
8
|
+
extend Stripe::APIOperations::List
|
|
9
|
+
|
|
10
|
+
OBJECT_NAME = "capital.financing_transaction"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module GiftCards
|
|
6
|
+
# A gift card represents a single gift card owned by a customer, including the
|
|
7
|
+
# remaining balance, gift card code, and whether or not it is active.
|
|
8
|
+
class Card < APIResource
|
|
9
|
+
extend Stripe::APIOperations::Create
|
|
10
|
+
extend Stripe::APIOperations::List
|
|
11
|
+
include Stripe::APIOperations::Save
|
|
12
|
+
|
|
13
|
+
OBJECT_NAME = "gift_cards.card"
|
|
14
|
+
|
|
15
|
+
def self.validate(params = {}, opts = {})
|
|
16
|
+
request_stripe_object(
|
|
17
|
+
method: :post,
|
|
18
|
+
path: "/v1/gift_cards/cards/validate",
|
|
19
|
+
params: params,
|
|
20
|
+
opts: opts
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module GiftCards
|
|
6
|
+
# A gift card transaction represents a single transaction on a referenced gift card.
|
|
7
|
+
# A transaction is in one of three states, `confirmed`, `held` or `canceled`. A `confirmed`
|
|
8
|
+
# transaction is one that has added/deducted funds. A `held` transaction has created a
|
|
9
|
+
# temporary hold on funds, which can then be cancelled or confirmed. A `held` transaction
|
|
10
|
+
# can be confirmed into a `confirmed` transaction, or canceled into a `canceled` transaction.
|
|
11
|
+
# A `canceled` transaction has no effect on a gift card's balance.
|
|
12
|
+
class Transaction < APIResource
|
|
13
|
+
extend Stripe::APIOperations::Create
|
|
14
|
+
extend Stripe::APIOperations::List
|
|
15
|
+
include Stripe::APIOperations::Save
|
|
16
|
+
|
|
17
|
+
OBJECT_NAME = "gift_cards.transaction"
|
|
18
|
+
|
|
19
|
+
def cancel(params = {}, opts = {})
|
|
20
|
+
request_stripe_object(
|
|
21
|
+
method: :post,
|
|
22
|
+
path: format("/v1/gift_cards/transactions/%<id>s/cancel", { id: CGI.escape(self["id"]) }),
|
|
23
|
+
params: params,
|
|
24
|
+
opts: opts
|
|
25
|
+
)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def confirm(params = {}, opts = {})
|
|
29
|
+
request_stripe_object(
|
|
30
|
+
method: :post,
|
|
31
|
+
path: format("/v1/gift_cards/transactions/%<id>s/confirm", { id: CGI.escape(self["id"]) }),
|
|
32
|
+
params: params,
|
|
33
|
+
opts: opts
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def self.cancel(id, params = {}, opts = {})
|
|
38
|
+
request_stripe_object(
|
|
39
|
+
method: :post,
|
|
40
|
+
path: format("/v1/gift_cards/transactions/%<id>s/cancel", { id: CGI.escape(id) }),
|
|
41
|
+
params: params,
|
|
42
|
+
opts: opts
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def self.confirm(id, params = {}, opts = {})
|
|
47
|
+
request_stripe_object(
|
|
48
|
+
method: :post,
|
|
49
|
+
path: format("/v1/gift_cards/transactions/%<id>s/confirm", { id: CGI.escape(id) }),
|
|
50
|
+
params: params,
|
|
51
|
+
opts: opts
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
# An Order describes a purchase being made by a customer, including the
|
|
6
|
+
# products & quantities being purchased, the order status, the payment information,
|
|
7
|
+
# and the billing/shipping details.
|
|
8
|
+
#
|
|
9
|
+
# Related guide: [Orders overview](https://stripe.com/docs/orders)
|
|
10
|
+
class Order < APIResource
|
|
11
|
+
extend Stripe::APIOperations::Create
|
|
12
|
+
extend Stripe::APIOperations::List
|
|
13
|
+
include Stripe::APIOperations::Save
|
|
14
|
+
|
|
15
|
+
OBJECT_NAME = "order"
|
|
16
|
+
|
|
17
|
+
def cancel(params = {}, opts = {})
|
|
18
|
+
request_stripe_object(
|
|
19
|
+
method: :post,
|
|
20
|
+
path: format("/v1/orders/%<id>s/cancel", { id: CGI.escape(self["id"]) }),
|
|
21
|
+
params: params,
|
|
22
|
+
opts: opts
|
|
23
|
+
)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def list_line_items(params = {}, opts = {})
|
|
27
|
+
request_stripe_object(
|
|
28
|
+
method: :get,
|
|
29
|
+
path: format("/v1/orders/%<id>s/line_items", { id: CGI.escape(self["id"]) }),
|
|
30
|
+
params: params,
|
|
31
|
+
opts: opts
|
|
32
|
+
)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def reopen(params = {}, opts = {})
|
|
36
|
+
request_stripe_object(
|
|
37
|
+
method: :post,
|
|
38
|
+
path: format("/v1/orders/%<id>s/reopen", { id: CGI.escape(self["id"]) }),
|
|
39
|
+
params: params,
|
|
40
|
+
opts: opts
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def submit(params = {}, opts = {})
|
|
45
|
+
request_stripe_object(
|
|
46
|
+
method: :post,
|
|
47
|
+
path: format("/v1/orders/%<id>s/submit", { id: CGI.escape(self["id"]) }),
|
|
48
|
+
params: params,
|
|
49
|
+
opts: opts
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def self.cancel(id, params = {}, opts = {})
|
|
54
|
+
request_stripe_object(
|
|
55
|
+
method: :post,
|
|
56
|
+
path: format("/v1/orders/%<id>s/cancel", { id: CGI.escape(id) }),
|
|
57
|
+
params: params,
|
|
58
|
+
opts: opts
|
|
59
|
+
)
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
def self.list_line_items(id, params = {}, opts = {})
|
|
63
|
+
request_stripe_object(
|
|
64
|
+
method: :get,
|
|
65
|
+
path: format("/v1/orders/%<id>s/line_items", { id: CGI.escape(id) }),
|
|
66
|
+
params: params,
|
|
67
|
+
opts: opts
|
|
68
|
+
)
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def self.reopen(id, params = {}, opts = {})
|
|
72
|
+
request_stripe_object(
|
|
73
|
+
method: :post,
|
|
74
|
+
path: format("/v1/orders/%<id>s/reopen", { id: CGI.escape(id) }),
|
|
75
|
+
params: params,
|
|
76
|
+
opts: opts
|
|
77
|
+
)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def self.submit(id, params = {}, opts = {})
|
|
81
|
+
request_stripe_object(
|
|
82
|
+
method: :post,
|
|
83
|
+
path: format("/v1/orders/%<id>s/submit", { id: CGI.escape(id) }),
|
|
84
|
+
params: params,
|
|
85
|
+
opts: opts
|
|
86
|
+
)
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -29,6 +29,15 @@ module Stripe
|
|
|
29
29
|
)
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
+
def draft_quote(params = {}, opts = {})
|
|
33
|
+
request_stripe_object(
|
|
34
|
+
method: :post,
|
|
35
|
+
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(self["id"]) }),
|
|
36
|
+
params: params,
|
|
37
|
+
opts: opts
|
|
38
|
+
)
|
|
39
|
+
end
|
|
40
|
+
|
|
32
41
|
def finalize_quote(params = {}, opts = {})
|
|
33
42
|
request_stripe_object(
|
|
34
43
|
method: :post,
|
|
@@ -56,6 +65,60 @@ module Stripe
|
|
|
56
65
|
)
|
|
57
66
|
end
|
|
58
67
|
|
|
68
|
+
def list_lines(params = {}, opts = {})
|
|
69
|
+
request_stripe_object(
|
|
70
|
+
method: :get,
|
|
71
|
+
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(self["id"]) }),
|
|
72
|
+
params: params,
|
|
73
|
+
opts: opts
|
|
74
|
+
)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def mark_stale_quote(params = {}, opts = {})
|
|
78
|
+
request_stripe_object(
|
|
79
|
+
method: :post,
|
|
80
|
+
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(self["id"]) }),
|
|
81
|
+
params: params,
|
|
82
|
+
opts: opts
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
def preview_invoice_lines(params = {}, opts = {})
|
|
87
|
+
request_stripe_object(
|
|
88
|
+
method: :get,
|
|
89
|
+
path: format("/v1/quotes/%<quote>s/preview_invoice_lines", { quote: CGI.escape(self["id"]) }),
|
|
90
|
+
params: params,
|
|
91
|
+
opts: opts
|
|
92
|
+
)
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
def preview_invoices(params = {}, opts = {})
|
|
96
|
+
request_stripe_object(
|
|
97
|
+
method: :get,
|
|
98
|
+
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(self["id"]) }),
|
|
99
|
+
params: params,
|
|
100
|
+
opts: opts
|
|
101
|
+
)
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
def preview_subscription_schedules(params = {}, opts = {})
|
|
105
|
+
request_stripe_object(
|
|
106
|
+
method: :get,
|
|
107
|
+
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(self["id"]) }),
|
|
108
|
+
params: params,
|
|
109
|
+
opts: opts
|
|
110
|
+
)
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def reestimate(params = {}, opts = {})
|
|
114
|
+
request_stripe_object(
|
|
115
|
+
method: :post,
|
|
116
|
+
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(self["id"]) }),
|
|
117
|
+
params: params,
|
|
118
|
+
opts: opts
|
|
119
|
+
)
|
|
120
|
+
end
|
|
121
|
+
|
|
59
122
|
def self.accept(quote, params = {}, opts = {})
|
|
60
123
|
request_stripe_object(
|
|
61
124
|
method: :post,
|
|
@@ -74,6 +137,15 @@ module Stripe
|
|
|
74
137
|
)
|
|
75
138
|
end
|
|
76
139
|
|
|
140
|
+
def self.draft_quote(quote, params = {}, opts = {})
|
|
141
|
+
request_stripe_object(
|
|
142
|
+
method: :post,
|
|
143
|
+
path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
|
|
144
|
+
params: params,
|
|
145
|
+
opts: opts
|
|
146
|
+
)
|
|
147
|
+
end
|
|
148
|
+
|
|
77
149
|
def self.finalize_quote(quote, params = {}, opts = {})
|
|
78
150
|
request_stripe_object(
|
|
79
151
|
method: :post,
|
|
@@ -101,6 +173,60 @@ module Stripe
|
|
|
101
173
|
)
|
|
102
174
|
end
|
|
103
175
|
|
|
176
|
+
def self.list_lines(quote, params = {}, opts = {})
|
|
177
|
+
request_stripe_object(
|
|
178
|
+
method: :get,
|
|
179
|
+
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(quote) }),
|
|
180
|
+
params: params,
|
|
181
|
+
opts: opts
|
|
182
|
+
)
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
def self.mark_stale_quote(quote, params = {}, opts = {})
|
|
186
|
+
request_stripe_object(
|
|
187
|
+
method: :post,
|
|
188
|
+
path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
|
|
189
|
+
params: params,
|
|
190
|
+
opts: opts
|
|
191
|
+
)
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
def self.preview_invoice_lines(quote, params = {}, opts = {})
|
|
195
|
+
request_stripe_object(
|
|
196
|
+
method: :get,
|
|
197
|
+
path: format("/v1/quotes/%<quote>s/preview_invoice_lines", { quote: CGI.escape(quote) }),
|
|
198
|
+
params: params,
|
|
199
|
+
opts: opts
|
|
200
|
+
)
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
def self.preview_invoices(quote, params = {}, opts = {})
|
|
204
|
+
request_stripe_object(
|
|
205
|
+
method: :get,
|
|
206
|
+
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(quote) }),
|
|
207
|
+
params: params,
|
|
208
|
+
opts: opts
|
|
209
|
+
)
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
def self.preview_subscription_schedules(quote, params = {}, opts = {})
|
|
213
|
+
request_stripe_object(
|
|
214
|
+
method: :get,
|
|
215
|
+
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(quote) }),
|
|
216
|
+
params: params,
|
|
217
|
+
opts: opts
|
|
218
|
+
)
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
def self.reestimate(quote, params = {}, opts = {})
|
|
222
|
+
request_stripe_object(
|
|
223
|
+
method: :post,
|
|
224
|
+
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
|
|
225
|
+
params: params,
|
|
226
|
+
opts: opts
|
|
227
|
+
)
|
|
228
|
+
end
|
|
229
|
+
|
|
104
230
|
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
|
105
231
|
unless block_given?
|
|
106
232
|
raise ArgumentError, "A read_body_chunk_block block parameter is required when calling the pdf method."
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
# A quote phase describes the line items, coupons, and trialing status of a subscription for a predefined time period.
|
|
6
|
+
class QuotePhase < APIResource
|
|
7
|
+
extend Stripe::APIOperations::List
|
|
8
|
+
|
|
9
|
+
OBJECT_NAME = "quote_phase"
|
|
10
|
+
|
|
11
|
+
def list_line_items(params = {}, opts = {})
|
|
12
|
+
request_stripe_object(
|
|
13
|
+
method: :get,
|
|
14
|
+
path: format("/v1/quote_phases/%<quote_phase>s/line_items", { quote_phase: CGI.escape(self["id"]) }),
|
|
15
|
+
params: params,
|
|
16
|
+
opts: opts
|
|
17
|
+
)
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.list_line_items(quote_phase, params = {}, opts = {})
|
|
21
|
+
request_stripe_object(
|
|
22
|
+
method: :get,
|
|
23
|
+
path: format("/v1/quote_phases/%<quote_phase>s/line_items", { quote_phase: CGI.escape(quote_phase) }),
|
|
24
|
+
params: params,
|
|
25
|
+
opts: opts
|
|
26
|
+
)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -12,6 +12,15 @@ module Stripe
|
|
|
12
12
|
|
|
13
13
|
OBJECT_NAME = "subscription_schedule"
|
|
14
14
|
|
|
15
|
+
def amend(params = {}, opts = {})
|
|
16
|
+
request_stripe_object(
|
|
17
|
+
method: :post,
|
|
18
|
+
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
|
|
19
|
+
params: params,
|
|
20
|
+
opts: opts
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
15
24
|
def cancel(params = {}, opts = {})
|
|
16
25
|
request_stripe_object(
|
|
17
26
|
method: :post,
|
|
@@ -30,6 +39,15 @@ module Stripe
|
|
|
30
39
|
)
|
|
31
40
|
end
|
|
32
41
|
|
|
42
|
+
def self.amend(schedule, params = {}, opts = {})
|
|
43
|
+
request_stripe_object(
|
|
44
|
+
method: :post,
|
|
45
|
+
path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
|
|
46
|
+
params: params,
|
|
47
|
+
opts: opts
|
|
48
|
+
)
|
|
49
|
+
end
|
|
50
|
+
|
|
33
51
|
def self.cancel(schedule, params = {}, opts = {})
|
|
34
52
|
request_stripe_object(
|
|
35
53
|
method: :post,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
# A Tax `Calculation` allows you to calculate the tax to collect from your customer.
|
|
7
|
+
class Calculation < APIResource
|
|
8
|
+
extend Stripe::APIOperations::Create
|
|
9
|
+
|
|
10
|
+
OBJECT_NAME = "tax.calculation"
|
|
11
|
+
|
|
12
|
+
def list_line_items(params = {}, opts = {})
|
|
13
|
+
request_stripe_object(
|
|
14
|
+
method: :get,
|
|
15
|
+
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(self["id"]) }),
|
|
16
|
+
params: params,
|
|
17
|
+
opts: opts
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def self.list_line_items(calculation, params = {}, opts = {})
|
|
22
|
+
request_stripe_object(
|
|
23
|
+
method: :get,
|
|
24
|
+
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(calculation) }),
|
|
25
|
+
params: params,
|
|
26
|
+
opts: opts
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
# A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/docs/tax).
|
|
7
|
+
#
|
|
8
|
+
# Stripe will not register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/docs/tax/registering).
|
|
9
|
+
class Registration < APIResource
|
|
10
|
+
extend Stripe::APIOperations::Create
|
|
11
|
+
extend Stripe::APIOperations::List
|
|
12
|
+
include Stripe::APIOperations::Save
|
|
13
|
+
|
|
14
|
+
OBJECT_NAME = "tax.registration"
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
# You can use Tax `Settings` to manage configurations used by Stripe Tax calculations.
|
|
7
|
+
#
|
|
8
|
+
# Related guide: [Account settings](https://stripe.com/docs/tax/connect/settings).
|
|
9
|
+
class Settings < SingletonAPIResource
|
|
10
|
+
include Stripe::APIOperations::Save
|
|
11
|
+
|
|
12
|
+
OBJECT_NAME = "tax.settings"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module Tax
|
|
6
|
+
# A Tax `Transaction` records the tax collected from or refunded to your customer.
|
|
7
|
+
class Transaction < APIResource
|
|
8
|
+
extend Stripe::APIOperations::Create
|
|
9
|
+
|
|
10
|
+
OBJECT_NAME = "tax.transaction"
|
|
11
|
+
|
|
12
|
+
def self.create_reversal(params = {}, opts = {})
|
|
13
|
+
request_stripe_object(
|
|
14
|
+
method: :post,
|
|
15
|
+
path: "/v1/tax/transactions/create_reversal",
|
|
16
|
+
params: params,
|
|
17
|
+
opts: opts
|
|
18
|
+
)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -41,6 +41,15 @@ module Stripe
|
|
|
41
41
|
)
|
|
42
42
|
end
|
|
43
43
|
|
|
44
|
+
def refund_payment(params = {}, opts = {})
|
|
45
|
+
request_stripe_object(
|
|
46
|
+
method: :post,
|
|
47
|
+
path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(self["id"]) }),
|
|
48
|
+
params: params,
|
|
49
|
+
opts: opts
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
44
53
|
def set_reader_display(params = {}, opts = {})
|
|
45
54
|
request_stripe_object(
|
|
46
55
|
method: :post,
|
|
@@ -77,6 +86,15 @@ module Stripe
|
|
|
77
86
|
)
|
|
78
87
|
end
|
|
79
88
|
|
|
89
|
+
def self.refund_payment(reader, params = {}, opts = {})
|
|
90
|
+
request_stripe_object(
|
|
91
|
+
method: :post,
|
|
92
|
+
path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(reader) }),
|
|
93
|
+
params: params,
|
|
94
|
+
opts: opts
|
|
95
|
+
)
|
|
96
|
+
end
|
|
97
|
+
|
|
80
98
|
def self.set_reader_display(reader, params = {}, opts = {})
|
|
81
99
|
request_stripe_object(
|
|
82
100
|
method: :post,
|
data/lib/stripe/resources.rb
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
require "stripe/resources/account"
|
|
5
5
|
require "stripe/resources/account_link"
|
|
6
|
+
require "stripe/resources/account_session"
|
|
6
7
|
require "stripe/resources/apple_pay_domain"
|
|
7
8
|
require "stripe/resources/application_fee"
|
|
8
9
|
require "stripe/resources/application_fee_refund"
|
|
@@ -13,6 +14,9 @@ require "stripe/resources/bank_account"
|
|
|
13
14
|
require "stripe/resources/billing_portal/configuration"
|
|
14
15
|
require "stripe/resources/billing_portal/session"
|
|
15
16
|
require "stripe/resources/capability"
|
|
17
|
+
require "stripe/resources/capital/financing_offer"
|
|
18
|
+
require "stripe/resources/capital/financing_summary"
|
|
19
|
+
require "stripe/resources/capital/financing_transaction"
|
|
16
20
|
require "stripe/resources/card"
|
|
17
21
|
require "stripe/resources/cash_balance"
|
|
18
22
|
require "stripe/resources/charge"
|
|
@@ -36,6 +40,8 @@ require "stripe/resources/financial_connections/account_owner"
|
|
|
36
40
|
require "stripe/resources/financial_connections/account_ownership"
|
|
37
41
|
require "stripe/resources/financial_connections/session"
|
|
38
42
|
require "stripe/resources/funding_instructions"
|
|
43
|
+
require "stripe/resources/gift_cards/card"
|
|
44
|
+
require "stripe/resources/gift_cards/transaction"
|
|
39
45
|
require "stripe/resources/identity/verification_report"
|
|
40
46
|
require "stripe/resources/identity/verification_session"
|
|
41
47
|
require "stripe/resources/invoice"
|
|
@@ -49,6 +55,7 @@ require "stripe/resources/issuing/transaction"
|
|
|
49
55
|
require "stripe/resources/line_item"
|
|
50
56
|
require "stripe/resources/login_link"
|
|
51
57
|
require "stripe/resources/mandate"
|
|
58
|
+
require "stripe/resources/order"
|
|
52
59
|
require "stripe/resources/payment_intent"
|
|
53
60
|
require "stripe/resources/payment_link"
|
|
54
61
|
require "stripe/resources/payment_method"
|
|
@@ -59,6 +66,7 @@ require "stripe/resources/price"
|
|
|
59
66
|
require "stripe/resources/product"
|
|
60
67
|
require "stripe/resources/promotion_code"
|
|
61
68
|
require "stripe/resources/quote"
|
|
69
|
+
require "stripe/resources/quote_phase"
|
|
62
70
|
require "stripe/resources/radar/early_fraud_warning"
|
|
63
71
|
require "stripe/resources/radar/value_list"
|
|
64
72
|
require "stripe/resources/radar/value_list_item"
|
|
@@ -76,6 +84,10 @@ require "stripe/resources/source_transaction"
|
|
|
76
84
|
require "stripe/resources/subscription"
|
|
77
85
|
require "stripe/resources/subscription_item"
|
|
78
86
|
require "stripe/resources/subscription_schedule"
|
|
87
|
+
require "stripe/resources/tax/calculation"
|
|
88
|
+
require "stripe/resources/tax/registration"
|
|
89
|
+
require "stripe/resources/tax/settings"
|
|
90
|
+
require "stripe/resources/tax/transaction"
|
|
79
91
|
require "stripe/resources/tax_code"
|
|
80
92
|
require "stripe/resources/tax_id"
|
|
81
93
|
require "stripe/resources/tax_rate"
|
data/lib/stripe/version.rb
CHANGED
data/lib/stripe.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: stripe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.
|
|
4
|
+
version: 8.2.0.pre.beta.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stripe
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-01-
|
|
11
|
+
date: 2023-01-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Stripe is the easiest way to accept payments online. See https://stripe.com
|
|
14
14
|
for details.
|
|
@@ -53,6 +53,7 @@ files:
|
|
|
53
53
|
- lib/stripe/resources.rb
|
|
54
54
|
- lib/stripe/resources/account.rb
|
|
55
55
|
- lib/stripe/resources/account_link.rb
|
|
56
|
+
- lib/stripe/resources/account_session.rb
|
|
56
57
|
- lib/stripe/resources/alipay_account.rb
|
|
57
58
|
- lib/stripe/resources/apple_pay_domain.rb
|
|
58
59
|
- lib/stripe/resources/application_fee.rb
|
|
@@ -64,6 +65,9 @@ files:
|
|
|
64
65
|
- lib/stripe/resources/billing_portal/configuration.rb
|
|
65
66
|
- lib/stripe/resources/billing_portal/session.rb
|
|
66
67
|
- lib/stripe/resources/capability.rb
|
|
68
|
+
- lib/stripe/resources/capital/financing_offer.rb
|
|
69
|
+
- lib/stripe/resources/capital/financing_summary.rb
|
|
70
|
+
- lib/stripe/resources/capital/financing_transaction.rb
|
|
67
71
|
- lib/stripe/resources/card.rb
|
|
68
72
|
- lib/stripe/resources/cash_balance.rb
|
|
69
73
|
- lib/stripe/resources/charge.rb
|
|
@@ -87,6 +91,8 @@ files:
|
|
|
87
91
|
- lib/stripe/resources/financial_connections/account_ownership.rb
|
|
88
92
|
- lib/stripe/resources/financial_connections/session.rb
|
|
89
93
|
- lib/stripe/resources/funding_instructions.rb
|
|
94
|
+
- lib/stripe/resources/gift_cards/card.rb
|
|
95
|
+
- lib/stripe/resources/gift_cards/transaction.rb
|
|
90
96
|
- lib/stripe/resources/identity/verification_report.rb
|
|
91
97
|
- lib/stripe/resources/identity/verification_session.rb
|
|
92
98
|
- lib/stripe/resources/invoice.rb
|
|
@@ -100,6 +106,7 @@ files:
|
|
|
100
106
|
- lib/stripe/resources/line_item.rb
|
|
101
107
|
- lib/stripe/resources/login_link.rb
|
|
102
108
|
- lib/stripe/resources/mandate.rb
|
|
109
|
+
- lib/stripe/resources/order.rb
|
|
103
110
|
- lib/stripe/resources/payment_intent.rb
|
|
104
111
|
- lib/stripe/resources/payment_link.rb
|
|
105
112
|
- lib/stripe/resources/payment_method.rb
|
|
@@ -110,6 +117,7 @@ files:
|
|
|
110
117
|
- lib/stripe/resources/product.rb
|
|
111
118
|
- lib/stripe/resources/promotion_code.rb
|
|
112
119
|
- lib/stripe/resources/quote.rb
|
|
120
|
+
- lib/stripe/resources/quote_phase.rb
|
|
113
121
|
- lib/stripe/resources/radar/early_fraud_warning.rb
|
|
114
122
|
- lib/stripe/resources/radar/value_list.rb
|
|
115
123
|
- lib/stripe/resources/radar/value_list_item.rb
|
|
@@ -128,6 +136,10 @@ files:
|
|
|
128
136
|
- lib/stripe/resources/subscription.rb
|
|
129
137
|
- lib/stripe/resources/subscription_item.rb
|
|
130
138
|
- lib/stripe/resources/subscription_schedule.rb
|
|
139
|
+
- lib/stripe/resources/tax/calculation.rb
|
|
140
|
+
- lib/stripe/resources/tax/registration.rb
|
|
141
|
+
- lib/stripe/resources/tax/settings.rb
|
|
142
|
+
- lib/stripe/resources/tax/transaction.rb
|
|
131
143
|
- lib/stripe/resources/tax_code.rb
|
|
132
144
|
- lib/stripe/resources/tax_id.rb
|
|
133
145
|
- lib/stripe/resources/tax_rate.rb
|
|
@@ -183,9 +195,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
183
195
|
version: 2.3.0
|
|
184
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
185
197
|
requirements:
|
|
186
|
-
- - "
|
|
198
|
+
- - ">"
|
|
187
199
|
- !ruby/object:Gem::Version
|
|
188
|
-
version:
|
|
200
|
+
version: 1.3.1
|
|
189
201
|
requirements: []
|
|
190
202
|
rubygems_version: 3.3.26
|
|
191
203
|
signing_key:
|