stripe 8.5.0.pre.beta.1 → 8.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6edd2851f27d78a812305d91437e211b82d8042d4a13724f0e4a7d3d9c23c0bf
4
- data.tar.gz: 9d30ba6a7a56e175f3ea2872c825ef55462aabd6acb2a3e8783a32d713f76de6
3
+ metadata.gz: 69907e69481fc6350f4a226975cf5988a770b61eb1d6eed36f4d935452dcada1
4
+ data.tar.gz: 982881d50f24782e00eeb5f5c3daa6e508eccb9991b7ef02caed9e51719a8ba4
5
5
  SHA512:
6
- metadata.gz: bdef2a42feb77e8b27c9f9b622ec6cdad691da6f12a758f66e03cfdaf396ab2f53eb70c14478ec875dac3054c4bfa14cc093ef2c24dc93a5d202bb7ad4628121
7
- data.tar.gz: dd29a3e0969396b4b98818153f465a811374d1840e025a27fffc10900db2eb24745b2d9447a61fe3ca7f4a64ac92651a20fc16c6891746e9f5be93e1fbc5fa60
6
+ metadata.gz: 7de7cb6d5319da3553d0663ef6bcaa5a5231578ed204ab756b9ff0e0d7396a137944b7bb7032d731257fb65089ca00da510d9f0e26c2502a6e7bd473e7c8913d
7
+ data.tar.gz: e46980b615f80e4c6a4656ad85fd83acdae65bca8a76f808572ecdccc903aae5bfcf85fab9f3c234b746a193ebec98ab216d3b65606a2e77f91a344595e10f5a
data/CHANGELOG.md CHANGED
@@ -1,95 +1,30 @@
1
1
  # Changelog
2
2
 
3
- ## 8.5.0-beta.1 - 2023-03-23
4
- * [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
5
- * Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
6
- * Add support for `collect_inputs` method on resource `Terminal.Reader`
7
-
8
- ## 8.4.0-beta.4 - 2023-03-16
9
- * [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
10
- * Add support for `create_from_calculation` method on resource `Tax.Transaction`
11
- * [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
12
- * Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
13
- * Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
14
- * Remove support for `retrieve` method on resource `FinancingSummary`
15
- * [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
16
-
17
- ## 8.4.0-beta.3 - 2023-03-09
18
- * [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
19
- * Updated stable APIs to the latest version
20
- * Remove support for `list_transactions` method on resource `Tax.Transaction`
21
-
22
- ## 8.4.0-beta.2 - 2023-03-03
23
- * [#1183](https://github.com/stripe/stripe-ruby/pull/1183) API Updates for beta branch
24
- * Updated stable APIs to the latest version
25
- * Add support for new resources `Issuing.CardBundle` and `Issuing.CardDesign`
26
- * Add support for `list` and `retrieve` methods on resource `CardBundle`
27
- * Add support for `list`, `retrieve`, and `update` methods on resource `CardDesign`
28
-
29
- ## 8.4.0-beta.1 - 2023-02-23
30
- * [#1182](https://github.com/stripe/stripe-ruby/pull/1182) API Updates for beta branch
31
- * Updated stable APIs to the latest version
3
+ ## 8.5.0 - 2023-03-30
4
+ * [#1203](https://github.com/stripe/stripe-ruby/pull/1203) Update generated code
5
+ * Remove support for `create` method on resource `Tax.Transaction`
6
+ * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `create_from_calculation` method.
7
+ * [#1201](https://github.com/stripe/stripe-ruby/pull/1201) Update save deprecation message
8
+
9
+ ## 8.4.0 - 2023-03-23
10
+ * [#1197](https://github.com/stripe/stripe-ruby/pull/1197) Update generated code (new)
11
+ * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction`
12
+ * Add support for `create` and `list_line_items` methods on resource `Calculation`
13
+ * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction`
14
+ * [#1152](https://github.com/stripe/stripe-ruby/pull/1152) Symbolize hash keys inside `convert_to_stripe_object_with_params`
32
15
 
33
16
  ## 8.3.0 - 2023-02-16
34
17
  * [#1175](https://github.com/stripe/stripe-ruby/pull/1175) API Updates
35
18
  * Add support for `refund_payment` method on resource `Terminal.Reader`
36
19
 
37
- ## 8.3.0-beta.1 - 2023-02-02
38
- * [#1174](https://github.com/stripe/stripe-ruby/pull/1174) API Updates for beta branch
39
- * Updated stable APIs to the latest version
40
- * Add support for new resource `FinancialConnections.Transaction`
41
- * Add support for `list` method on resource `Transaction`
42
-
43
20
  ## 8.2.0 - 2023-02-02
44
21
  * [#1173](https://github.com/stripe/stripe-ruby/pull/1173) API Updates
45
22
  * Add support for `resume` method on resource `Subscription`
46
23
  * [#1171](https://github.com/stripe/stripe-ruby/pull/1171) Remove unused `partial` param from `initialize_from`
47
24
 
48
- ## 8.2.0-beta.3 - 2023-01-26
49
- * [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
50
- * Updated stable APIs to the latest version
51
- * Add support for `list_transactions` method on resource `Tax.Transaction`
52
-
53
- ## 8.2.0-beta.2 - 2023-01-19
54
- * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
55
- * Updated stable APIs to the latest version
56
- * Add support for `Tax.Settings` resource.
57
-
58
- ## 8.2.0-beta.1 - 2023-01-12
59
- * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
60
- * Updated stable APIs to the latest version
61
- * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
62
- * Add support for `Tax::Register` resource
63
-
64
25
  ## 8.1.0 - 2023-01-12
65
26
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
66
27
 
67
- ## 8.1.0-beta.4 - 2023-01-05
68
- * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
69
- * Updated stable APIs to the latest version
70
- * Add support for `mark_stale_quote` method on resource `Quote`
71
-
72
- ## 8.1.0-beta.3 - 2022-12-22
73
- * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
74
- * Updated stable APIs to the latest version
75
- * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
76
-
77
- ## 8.1.0-beta.2 - 2022-12-15
78
- * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
79
- * Updated stable APIs to the latest version
80
- * Add support for new resources `TaxCalculation`, and `TaxTransaction`
81
- * Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
82
- * Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
83
- * [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
84
- * Updated stable APIs to the latest version
85
- * Add support for new resource `QuoteLine`.
86
-
87
- ## 8.1.0-beta.1 - 2022-12-08
88
- * [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
89
- * Updated stable APIs to the latest version
90
- * [#1146](https://github.com/stripe/stripe-ruby/pull/1146) API Updates for beta branch
91
- * Updated stable APIs to the latest version
92
-
93
28
  ## 8.0.0 - 2022-11-16
94
29
  * [#1144](https://github.com/stripe/stripe-ruby/pull/1144) Next major release changes
95
30
 
@@ -97,29 +32,30 @@ Breaking changes that arose during code generation of the library that we postpo
97
32
 
98
33
  "⚠️" symbol highlights breaking changes.
99
34
 
100
- ## 7.2.0-beta.5 - 2022-11-02
101
- * [#1139](https://github.com/stripe/stripe-ruby/pull/1139) API Updates for beta branch
102
- * Updated beta APIs to the latest stable version
103
- * [#1135](https://github.com/stripe/stripe-ruby/pull/1135) API Updates for beta branch
104
- * Updated stable APIs to the latest version
105
-
106
- ## 7.2.0-beta.4 - 2022-10-07
107
- * [#999](https://github.com/stripe/stripe-ruby/pull/999) DESCRIBE CHANGES HERE (try to use the same style, tense, etc. as the other entries)
35
+ ### Deprecated
36
+ - The `save` method is deprecated. Prefer the static `update` method that doesn't require retrieval of the resource to update it.
37
+ ``` ruby
38
+ # before
39
+ refund = Stripe::Refund.retrieve("re_123")
40
+ refund.description = "Refund description"
41
+ refund.save
42
+
43
+ # after
44
+ Stripe::Refund.update("re_123", description: "Refund description")
45
+ ```
108
46
 
109
- ## 7.2.0-beta.3 - 2022-09-26
110
- * [#1129](https://github.com/stripe/stripe-ruby/pull/1129) API Updates for beta branch
111
- * Updated stable APIs to the latest version
112
- * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
47
+ ### ⚠️ Removed
48
+ - Removed deprecated `Sku` resource.
49
+ - Removed deprecated `Orders` resource.
50
+ - Removed deprecated `delete` method on `Subscription` resource. Please use `cancel` method instead.
51
+ ```ruby
52
+ # before
53
+ Stripe::Subscription::delete("sub_12345")
113
54
 
114
- ## 7.2.0-beta.2 - 2022-08-26
115
- * [#1127](https://github.com/stripe/stripe-ruby/pull/1127) API Updates for beta branch
116
- * Updated stable APIs to the latest version
117
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
55
+ # after
56
+ Stripe::Subscription::cancel("sub_12345")
57
+ ```
118
58
 
119
- ## 7.2.0-beta.1 - 2022-08-23
120
- * [#1122](https://github.com/stripe/stripe-ruby/pull/1122) API Updates for beta branch
121
- - Updated stable APIs to the latest version
122
- - `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)
123
59
 
124
60
  ## 7.1.0 - 2022-08-19
125
61
  * [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
@@ -128,16 +64,6 @@ Breaking changes that arose during code generation of the library that we postpo
128
64
  * [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
129
65
  * [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
130
66
 
131
- ## 7.1.0-beta.2 - 2022-08-11
132
- * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
133
- - Updated stable APIs to the latest version
134
- - Add `refund_payment` method to Terminal resource
135
-
136
- ## 7.1.0-beta.1 - 2022-08-03
137
- * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
138
- - Updated stable APIs to the latest version
139
- - Added the `Order` resource support
140
-
141
67
  ## 7.0.0 - 2022-08-02
142
68
 
143
69
  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.
@@ -149,19 +75,21 @@ Breaking changes that arose during code generation of the library that we postpo
149
75
  * [#1090](https://github.com/stripe/stripe-ruby/pull/1090) Use auto-generation for `Invoice` methods
150
76
  * [#1103](https://github.com/stripe/stripe-ruby/pull/1103) Next major release changes
151
77
 
152
- ## 6.6.0-beta.1 - 2022-07-22
153
- * [#1100](https://github.com/stripe/stripe-ruby/pull/1100) API Updates for beta branch
154
- - Updated stable APIs to the latest version
155
- - Add `QuotePhase` resource
156
- * [#1097](https://github.com/stripe/stripe-ruby/pull/1097) API Updates for beta branch
157
- - Updated stable APIs to the latest version
158
- - Add `SubscriptionSchedule.amend` method.
159
- * [#1093](https://github.com/stripe/stripe-ruby/pull/1093) API Updates for beta branch
160
- - Include `server_side_confirmation_beta=v1` beta
161
- - Add `secretKeyConfirmation` to `PaymentIntent`
162
- * [#1085](https://github.com/stripe/stripe-ruby/pull/1085) API Updates for beta branch
163
- - Updated stable APIs to the latest version
164
- * [#1075](https://github.com/stripe/stripe-ruby/pull/1075) Use the generated API version
78
+ ### ⚠️ Changed
79
+ * `retrieve_cash_balance` and `update_cash_balance` methods on `Customer` resource no longer requires the second argument to always be `nil`. The methods now now take in `customer_id`, `params`, and `opts` parameters.
80
+ * Update default bundle of CA certificates to April 26, 2022.
81
+
82
+ ### Deprecated
83
+ * Deprecate `delete` method on `Subscription` resource. Please use `cancel` method instead.
84
+
85
+ ### ⚠️ Removed
86
+ * Remove `details` method from `Issuing.Card` resource. The method was not supported.
87
+ * Remove `Issuing.CardDetails` resource. Read more at https://stripe.com/docs/issuing/cards/virtual.
88
+ * Remove `create` method from `ReportType` resource. The method was not supported.
89
+ * Remove `usage_record_summaries` method from `SubscriptionItem` resource. Please use `list_usage_record_summaries` method instead.
90
+ * Remove `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Issuing::CardDetails`, `Recipient`, ` RecipientTransfer`, and `ThreeDSecure` resources. The resources were deprecated or no longer in use.
91
+ * Remove ability to list `Card` resource for a `Recipient`.
92
+ * Remove `cancel` method from `Transfer` resource. The method was deprecated.
165
93
 
166
94
  ## 6.5.0 - 2022-06-29
167
95
  * [#1084](https://github.com/stripe/stripe-ruby/pull/1084) API Updates
@@ -191,6 +119,8 @@ Breaking changes that arose during code generation of the library that we postpo
191
119
  * 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`
192
120
  * Add support for `retrieve_payment_method` method on resource `Customer`
193
121
  * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
122
+
123
+
194
124
 
195
125
  ## 6.0.0 - 2022-05-09
196
126
  * [#1056](https://github.com/stripe/stripe-ruby/pull/1056) API Updates
@@ -206,6 +136,7 @@ Breaking changes that arose during code generation of the library that we postpo
206
136
  ## 5.55.0 - 2022-05-05
207
137
  * [#1055](https://github.com/stripe/stripe-ruby/pull/1055) API Updates
208
138
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
139
+
209
140
 
210
141
  ## 5.54.0 - 2022-05-03
211
142
  * [#1053](https://github.com/stripe/stripe-ruby/pull/1053) API Updates
@@ -1236,4 +1167,3 @@ Identical to 1.56.0 above. I incorrectly cut a patch-level release.
1236
1167
  <!--
1237
1168
  # vim: set tw=0:
1238
1169
  -->
1239
-
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v277
1
+ v285
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.5.0-beta.1
1
+ 8.5.0
@@ -72,7 +72,9 @@ module Stripe
72
72
  initialize_from(resp.data, opts)
73
73
  end
74
74
  extend Gem::Deprecate
75
- deprecate :save, :update, 2022, 11
75
+ deprecate :save, "the `update` class method (for examples"\
76
+ " see https://github.com/stripe/stripe-ruby"\
77
+ "/wiki/Migration-guide-for-v8)", 2022, 11
76
78
 
77
79
  def self.included(base)
78
80
  # Set `metadata` as additive so that when it's set directly we remember
@@ -14,7 +14,6 @@ module Stripe
14
14
  # business objects
15
15
  Account::OBJECT_NAME => Account,
16
16
  AccountLink::OBJECT_NAME => AccountLink,
17
- AccountSession::OBJECT_NAME => AccountSession,
18
17
  ApplePayDomain::OBJECT_NAME => ApplePayDomain,
19
18
  ApplicationFee::OBJECT_NAME => ApplicationFee,
20
19
  ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
@@ -25,9 +24,6 @@ module Stripe
25
24
  BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
26
25
  BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
27
26
  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,
31
27
  Card::OBJECT_NAME => Card,
32
28
  CashBalance::OBJECT_NAME => CashBalance,
33
29
  Charge::OBJECT_NAME => Charge,
@@ -51,12 +47,8 @@ module Stripe
51
47
  FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
52
48
  FinancialConnections::AccountOwnership::OBJECT_NAME =>
53
49
  FinancialConnections::AccountOwnership,
54
- FinancialConnections::InferredBalance::OBJECT_NAME => FinancialConnections::InferredBalance,
55
50
  FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
56
- FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
57
51
  FundingInstructions::OBJECT_NAME => FundingInstructions,
58
- GiftCards::Card::OBJECT_NAME => GiftCards::Card,
59
- GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
60
52
  Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
61
53
  Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
62
54
  Invoice::OBJECT_NAME => Invoice,
@@ -64,15 +56,12 @@ module Stripe
64
56
  InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
65
57
  Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
66
58
  Issuing::Card::OBJECT_NAME => Issuing::Card,
67
- Issuing::CardBundle::OBJECT_NAME => Issuing::CardBundle,
68
- Issuing::CardDesign::OBJECT_NAME => Issuing::CardDesign,
69
59
  Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
70
60
  Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
71
61
  Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
72
62
  LineItem::OBJECT_NAME => LineItem,
73
63
  LoginLink::OBJECT_NAME => LoginLink,
74
64
  Mandate::OBJECT_NAME => Mandate,
75
- Order::OBJECT_NAME => Order,
76
65
  PaymentIntent::OBJECT_NAME => PaymentIntent,
77
66
  PaymentLink::OBJECT_NAME => PaymentLink,
78
67
  PaymentMethod::OBJECT_NAME => PaymentMethod,
@@ -83,7 +72,6 @@ module Stripe
83
72
  Product::OBJECT_NAME => Product,
84
73
  PromotionCode::OBJECT_NAME => PromotionCode,
85
74
  Quote::OBJECT_NAME => Quote,
86
- QuotePhase::OBJECT_NAME => QuotePhase,
87
75
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
88
76
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
89
77
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -102,8 +90,6 @@ module Stripe
102
90
  SubscriptionItem::OBJECT_NAME => SubscriptionItem,
103
91
  SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
104
92
  Tax::Calculation::OBJECT_NAME => Tax::Calculation,
105
- Tax::Registration::OBJECT_NAME => Tax::Registration,
106
- Tax::Settings::OBJECT_NAME => Tax::Settings,
107
93
  Tax::Transaction::OBJECT_NAME => Tax::Transaction,
108
94
  TaxCode::OBJECT_NAME => TaxCode,
109
95
  TaxId::OBJECT_NAME => TaxId,
@@ -6,12 +6,9 @@ module Stripe
6
6
  # A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access.
7
7
  class Account < APIResource
8
8
  extend Stripe::APIOperations::List
9
- extend Stripe::APIOperations::NestedResource
10
9
 
11
10
  OBJECT_NAME = "financial_connections.account"
12
11
 
13
- nested_resource_class_methods :inferred_balance, operations: %i[list]
14
-
15
12
  def disconnect(params = {}, opts = {})
16
13
  request_stripe_object(
17
14
  method: :post,
@@ -29,15 +29,6 @@ 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
-
41
32
  def finalize_quote(params = {}, opts = {})
42
33
  request_stripe_object(
43
34
  method: :post,
@@ -65,60 +56,6 @@ module Stripe
65
56
  )
66
57
  end
67
58
 
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(preview_invoice, params = {}, opts = {})
87
- request_stripe_object(
88
- method: :get,
89
- path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
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
-
122
59
  def self.accept(quote, params = {}, opts = {})
123
60
  request_stripe_object(
124
61
  method: :post,
@@ -137,15 +74,6 @@ module Stripe
137
74
  )
138
75
  end
139
76
 
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
-
149
77
  def self.finalize_quote(quote, params = {}, opts = {})
150
78
  request_stripe_object(
151
79
  method: :post,
@@ -173,65 +101,6 @@ module Stripe
173
101
  )
174
102
  end
175
103
 
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(
195
- quote,
196
- preview_invoice,
197
- params = {},
198
- opts = {}
199
- )
200
- request_stripe_object(
201
- method: :get,
202
- path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
203
- params: params,
204
- opts: opts
205
- )
206
- end
207
-
208
- def self.preview_invoices(quote, params = {}, opts = {})
209
- request_stripe_object(
210
- method: :get,
211
- path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(quote) }),
212
- params: params,
213
- opts: opts
214
- )
215
- end
216
-
217
- def self.preview_subscription_schedules(quote, params = {}, opts = {})
218
- request_stripe_object(
219
- method: :get,
220
- path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(quote) }),
221
- params: params,
222
- opts: opts
223
- )
224
- end
225
-
226
- def self.reestimate(quote, params = {}, opts = {})
227
- request_stripe_object(
228
- method: :post,
229
- path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
230
- params: params,
231
- opts: opts
232
- )
233
- end
234
-
235
104
  def pdf(params = {}, opts = {}, &read_body_chunk_block)
236
105
  unless block_given?
237
106
  raise ArgumentError, "A read_body_chunk_block block parameter is required when calling the pdf method."
@@ -12,15 +12,6 @@ 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
-
24
15
  def cancel(params = {}, opts = {})
25
16
  request_stripe_object(
26
17
  method: :post,
@@ -39,15 +30,6 @@ module Stripe
39
30
  )
40
31
  end
41
32
 
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
-
51
33
  def self.cancel(schedule, params = {}, opts = {})
52
34
  request_stripe_object(
53
35
  method: :post,
@@ -5,8 +5,6 @@ module Stripe
5
5
  module Tax
6
6
  # A Tax transaction records the tax collected from or refunded to your customer.
7
7
  class Transaction < APIResource
8
- extend Stripe::APIOperations::Create
9
-
10
8
  OBJECT_NAME = "tax.transaction"
11
9
 
12
10
  def list_line_items(params = {}, opts = {})
@@ -23,15 +23,6 @@ module Stripe
23
23
  )
24
24
  end
25
25
 
26
- def collect_inputs(params = {}, opts = {})
27
- request_stripe_object(
28
- method: :post,
29
- path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(self["id"]) }),
30
- params: params,
31
- opts: opts
32
- )
33
- end
34
-
35
26
  def process_payment_intent(params = {}, opts = {})
36
27
  request_stripe_object(
37
28
  method: :post,
@@ -77,15 +68,6 @@ module Stripe
77
68
  )
78
69
  end
79
70
 
80
- def self.collect_inputs(reader, params = {}, opts = {})
81
- request_stripe_object(
82
- method: :post,
83
- path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(reader) }),
84
- params: params,
85
- opts: opts
86
- )
87
- end
88
-
89
71
  def self.process_payment_intent(reader, params = {}, opts = {})
90
72
  request_stripe_object(
91
73
  method: :post,
@@ -3,7 +3,6 @@
3
3
 
4
4
  require "stripe/resources/account"
5
5
  require "stripe/resources/account_link"
6
- require "stripe/resources/account_session"
7
6
  require "stripe/resources/apple_pay_domain"
8
7
  require "stripe/resources/application_fee"
9
8
  require "stripe/resources/application_fee_refund"
@@ -14,9 +13,6 @@ require "stripe/resources/bank_account"
14
13
  require "stripe/resources/billing_portal/configuration"
15
14
  require "stripe/resources/billing_portal/session"
16
15
  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"
20
16
  require "stripe/resources/card"
21
17
  require "stripe/resources/cash_balance"
22
18
  require "stripe/resources/charge"
@@ -38,12 +34,8 @@ require "stripe/resources/file_link"
38
34
  require "stripe/resources/financial_connections/account"
39
35
  require "stripe/resources/financial_connections/account_owner"
40
36
  require "stripe/resources/financial_connections/account_ownership"
41
- require "stripe/resources/financial_connections/inferred_balance"
42
37
  require "stripe/resources/financial_connections/session"
43
- require "stripe/resources/financial_connections/transaction"
44
38
  require "stripe/resources/funding_instructions"
45
- require "stripe/resources/gift_cards/card"
46
- require "stripe/resources/gift_cards/transaction"
47
39
  require "stripe/resources/identity/verification_report"
48
40
  require "stripe/resources/identity/verification_session"
49
41
  require "stripe/resources/invoice"
@@ -51,15 +43,12 @@ require "stripe/resources/invoice_item"
51
43
  require "stripe/resources/invoice_line_item"
52
44
  require "stripe/resources/issuing/authorization"
53
45
  require "stripe/resources/issuing/card"
54
- require "stripe/resources/issuing/card_bundle"
55
- require "stripe/resources/issuing/card_design"
56
46
  require "stripe/resources/issuing/cardholder"
57
47
  require "stripe/resources/issuing/dispute"
58
48
  require "stripe/resources/issuing/transaction"
59
49
  require "stripe/resources/line_item"
60
50
  require "stripe/resources/login_link"
61
51
  require "stripe/resources/mandate"
62
- require "stripe/resources/order"
63
52
  require "stripe/resources/payment_intent"
64
53
  require "stripe/resources/payment_link"
65
54
  require "stripe/resources/payment_method"
@@ -70,7 +59,6 @@ require "stripe/resources/price"
70
59
  require "stripe/resources/product"
71
60
  require "stripe/resources/promotion_code"
72
61
  require "stripe/resources/quote"
73
- require "stripe/resources/quote_phase"
74
62
  require "stripe/resources/radar/early_fraud_warning"
75
63
  require "stripe/resources/radar/value_list"
76
64
  require "stripe/resources/radar/value_list_item"
@@ -89,8 +77,6 @@ require "stripe/resources/subscription"
89
77
  require "stripe/resources/subscription_item"
90
78
  require "stripe/resources/subscription_schedule"
91
79
  require "stripe/resources/tax/calculation"
92
- require "stripe/resources/tax/registration"
93
- require "stripe/resources/tax/settings"
94
80
  require "stripe/resources/tax/transaction"
95
81
  require "stripe/resources/tax_code"
96
82
  require "stripe/resources/tax_id"
@@ -63,8 +63,6 @@ module Stripe
63
63
  end
64
64
 
65
65
  def initialize
66
- @api_version = ApiVersion::CURRENT
67
-
68
66
  @ca_bundle_path = Stripe::DEFAULT_CA_BUNDLE_PATH
69
67
  @enable_telemetry = true
70
68
  @verify_ssl_certs = true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "8.5.0-beta.1"
4
+ VERSION = "8.5.0"
5
5
  end
data/lib/stripe.rb CHANGED
@@ -15,7 +15,6 @@ require "uri"
15
15
  require "forwardable"
16
16
 
17
17
  # Version
18
- require "stripe/api_version"
19
18
  require "stripe/version"
20
19
 
21
20
  # API operations
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.5.0.pre.beta.1
4
+ version: 8.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-23 00:00:00.000000000 Z
11
+ date: 2023-03-30 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,7 +53,6 @@ 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
57
56
  - lib/stripe/resources/alipay_account.rb
58
57
  - lib/stripe/resources/apple_pay_domain.rb
59
58
  - lib/stripe/resources/application_fee.rb
@@ -65,9 +64,6 @@ files:
65
64
  - lib/stripe/resources/billing_portal/configuration.rb
66
65
  - lib/stripe/resources/billing_portal/session.rb
67
66
  - 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
71
67
  - lib/stripe/resources/card.rb
72
68
  - lib/stripe/resources/cash_balance.rb
73
69
  - lib/stripe/resources/charge.rb
@@ -89,12 +85,8 @@ files:
89
85
  - lib/stripe/resources/financial_connections/account.rb
90
86
  - lib/stripe/resources/financial_connections/account_owner.rb
91
87
  - lib/stripe/resources/financial_connections/account_ownership.rb
92
- - lib/stripe/resources/financial_connections/inferred_balance.rb
93
88
  - lib/stripe/resources/financial_connections/session.rb
94
- - lib/stripe/resources/financial_connections/transaction.rb
95
89
  - lib/stripe/resources/funding_instructions.rb
96
- - lib/stripe/resources/gift_cards/card.rb
97
- - lib/stripe/resources/gift_cards/transaction.rb
98
90
  - lib/stripe/resources/identity/verification_report.rb
99
91
  - lib/stripe/resources/identity/verification_session.rb
100
92
  - lib/stripe/resources/invoice.rb
@@ -102,15 +94,12 @@ files:
102
94
  - lib/stripe/resources/invoice_line_item.rb
103
95
  - lib/stripe/resources/issuing/authorization.rb
104
96
  - lib/stripe/resources/issuing/card.rb
105
- - lib/stripe/resources/issuing/card_bundle.rb
106
- - lib/stripe/resources/issuing/card_design.rb
107
97
  - lib/stripe/resources/issuing/cardholder.rb
108
98
  - lib/stripe/resources/issuing/dispute.rb
109
99
  - lib/stripe/resources/issuing/transaction.rb
110
100
  - lib/stripe/resources/line_item.rb
111
101
  - lib/stripe/resources/login_link.rb
112
102
  - lib/stripe/resources/mandate.rb
113
- - lib/stripe/resources/order.rb
114
103
  - lib/stripe/resources/payment_intent.rb
115
104
  - lib/stripe/resources/payment_link.rb
116
105
  - lib/stripe/resources/payment_method.rb
@@ -121,7 +110,6 @@ files:
121
110
  - lib/stripe/resources/product.rb
122
111
  - lib/stripe/resources/promotion_code.rb
123
112
  - lib/stripe/resources/quote.rb
124
- - lib/stripe/resources/quote_phase.rb
125
113
  - lib/stripe/resources/radar/early_fraud_warning.rb
126
114
  - lib/stripe/resources/radar/value_list.rb
127
115
  - lib/stripe/resources/radar/value_list_item.rb
@@ -141,8 +129,6 @@ files:
141
129
  - lib/stripe/resources/subscription_item.rb
142
130
  - lib/stripe/resources/subscription_schedule.rb
143
131
  - lib/stripe/resources/tax/calculation.rb
144
- - lib/stripe/resources/tax/registration.rb
145
- - lib/stripe/resources/tax/settings.rb
146
132
  - lib/stripe/resources/tax/transaction.rb
147
133
  - lib/stripe/resources/tax_code.rb
148
134
  - lib/stripe/resources/tax_id.rb
@@ -199,9 +185,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
199
185
  version: 2.3.0
200
186
  required_rubygems_version: !ruby/object:Gem::Requirement
201
187
  requirements:
202
- - - ">"
188
+ - - ">="
203
189
  - !ruby/object:Gem::Version
204
- version: 1.3.1
190
+ version: '0'
205
191
  requirements: []
206
192
  rubygems_version: 3.3.26
207
193
  signing_key:
@@ -1,17 +0,0 @@
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
@@ -1,32 +0,0 @@
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
@@ -1,12 +0,0 @@
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
@@ -1,13 +0,0 @@
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
@@ -1,13 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module FinancialConnections
6
- # A historical balance for the account on a particular day. It may be sourced from a balance snapshot provided by a financial institution, or inferred using transactions data.
7
- class InferredBalance < APIResource
8
- extend Stripe::APIOperations::List
9
-
10
- OBJECT_NAME = "financial_connections.account_inferred_balance"
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module FinancialConnections
6
- # A Transaction represents a real transaction that affects a Financial Connections Account balance.
7
- class Transaction < APIResource
8
- extend Stripe::APIOperations::List
9
-
10
- OBJECT_NAME = "financial_connections.transaction"
11
- end
12
- end
13
- end
@@ -1,25 +0,0 @@
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
@@ -1,56 +0,0 @@
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
@@ -1,13 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Issuing
6
- # A Card Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card.
7
- class CardBundle < APIResource
8
- extend Stripe::APIOperations::List
9
-
10
- OBJECT_NAME = "issuing.card_bundle"
11
- end
12
- end
13
- end
@@ -1,58 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Issuing
6
- # A Card Design is a logical grouping of a Card Bundle, card logo, and carrier text that represents a product line.
7
- class CardDesign < APIResource
8
- extend Stripe::APIOperations::List
9
- include Stripe::APIOperations::Save
10
-
11
- OBJECT_NAME = "issuing.card_design"
12
-
13
- def test_helpers
14
- TestHelpers.new(self)
15
- end
16
-
17
- class TestHelpers < APIResourceTestHelpers
18
- RESOURCE_CLASS = CardDesign
19
-
20
- def self.activate_testmode(card_design, params = {}, opts = {})
21
- request_stripe_object(
22
- method: :post,
23
- path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/activate", { card_design: CGI.escape(card_design) }),
24
- params: params,
25
- opts: opts
26
- )
27
- end
28
-
29
- def self.deactivate_testmode(card_design, params = {}, opts = {})
30
- request_stripe_object(
31
- method: :post,
32
- path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/deactivate", { card_design: CGI.escape(card_design) }),
33
- params: params,
34
- opts: opts
35
- )
36
- end
37
-
38
- def activate_testmode(params = {}, opts = {})
39
- @resource.request_stripe_object(
40
- method: :post,
41
- path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/activate", { card_design: CGI.escape(@resource["id"]) }),
42
- params: params,
43
- opts: opts
44
- )
45
- end
46
-
47
- def deactivate_testmode(params = {}, opts = {})
48
- @resource.request_stripe_object(
49
- method: :post,
50
- path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/deactivate", { card_design: CGI.escape(@resource["id"]) }),
51
- params: params,
52
- opts: opts
53
- )
54
- end
55
- end
56
- end
57
- end
58
- end
@@ -1,89 +0,0 @@
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
@@ -1,29 +0,0 @@
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
@@ -1,17 +0,0 @@
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
@@ -1,15 +0,0 @@
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