stripe 8.1.0.pre.beta.2 → 8.1.0.pre.beta.4

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: 7fa1351b66838b7806285da2a479099fbbfcc2083ac1f227f363f3dd34842f48
4
- data.tar.gz: '0669c2151ae39aeeffe8f99dce91d7232d4038b63ebbf9ff77b0ba64e0ae2cb0'
3
+ metadata.gz: 9f3aaefa63af0a824e48de98bd70480843c2567ec4f928226332edc0f23e0d0a
4
+ data.tar.gz: 16f667361a1b30a975fb513eaef27bf7929db7793b48ab2594fa25cb1b71e7b5
5
5
  SHA512:
6
- metadata.gz: 41226fd0a4e4bc70f4338d775d7beb3cd69497ac269357a4a60ef737c66738490e948befb2f70981f2f2f413958ec7e21841c66754f3a69b10aaa25fdc376084
7
- data.tar.gz: b96050e968077fd86319f4f2329948ccd18e346e289c87370da55cda392f1ab8e957066b7931f3392212724070515a5970ffb09ec84eca908139eb2ec93fb4d0
6
+ metadata.gz: '0294d06cac175e6a48a06bf5b689fbaf4492ecd8b77064d9d53b3a4760dee1b8d8da23964215a9941deff6d3ac93699887847a35a4483d7abcd78434ec9ac705'
7
+ data.tar.gz: 8d1279f7662f535097bc41917e73a3c601604e41b52ce3872c5bddd9f98de60e33873bfd17ab8b4c969414c95bdb0e238b4c41f26881f4f38c7ed7d12e30b190
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 8.1.0-beta.4 - 2023-01-05
4
+ * [#1164](https://github.com/stripe/stripe-ruby/pull/1164) API Updates for beta branch
5
+ * Updated stable APIs to the latest version
6
+ * Add support for `mark_stale_quote` method on resource `Quote`
7
+
8
+ ## 8.1.0-beta.3 - 2022-12-22
9
+ * [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
10
+ * Updated stable APIs to the latest version
11
+ * Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
12
+
3
13
  ## 8.1.0-beta.2 - 2022-12-15
4
14
  * [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
5
15
  * Updated stable APIs to the latest version
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v215
1
+ v217
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.1.0-beta.2
1
+ 8.1.0-beta.4
@@ -97,11 +97,11 @@ module Stripe
97
97
  Subscription::OBJECT_NAME => Subscription,
98
98
  SubscriptionItem::OBJECT_NAME => SubscriptionItem,
99
99
  SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
100
- TaxCalculation::OBJECT_NAME => TaxCalculation,
100
+ Tax::Calculation::OBJECT_NAME => Tax::Calculation,
101
+ Tax::Transaction::OBJECT_NAME => Tax::Transaction,
101
102
  TaxCode::OBJECT_NAME => TaxCode,
102
103
  TaxId::OBJECT_NAME => TaxId,
103
104
  TaxRate::OBJECT_NAME => TaxRate,
104
- TaxTransaction::OBJECT_NAME => TaxTransaction,
105
105
  Terminal::Configuration::OBJECT_NAME => Terminal::Configuration,
106
106
  Terminal::ConnectionToken::OBJECT_NAME => Terminal::ConnectionToken,
107
107
  Terminal::Location::OBJECT_NAME => Terminal::Location,
@@ -64,7 +64,6 @@ module Stripe
64
64
 
65
65
  nested_resource_class_methods :external_account,
66
66
  operations: %i[create retrieve update delete list]
67
-
68
67
  nested_resource_class_methods :login_link, operations: %i[create]
69
68
 
70
69
  def resource_url
@@ -74,6 +74,15 @@ module Stripe
74
74
  )
75
75
  end
76
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
+
77
86
  def preview_invoice_lines(params = {}, opts = {})
78
87
  request_stripe_object(
79
88
  method: :get,
@@ -173,6 +182,15 @@ module Stripe
173
182
  )
174
183
  end
175
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
+
176
194
  def self.preview_invoice_lines(quote, params = {}, opts = {})
177
195
  request_stripe_object(
178
196
  method: :get,
@@ -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,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
@@ -84,11 +84,11 @@ require "stripe/resources/source_transaction"
84
84
  require "stripe/resources/subscription"
85
85
  require "stripe/resources/subscription_item"
86
86
  require "stripe/resources/subscription_schedule"
87
- require "stripe/resources/tax_calculation"
87
+ require "stripe/resources/tax/calculation"
88
+ require "stripe/resources/tax/transaction"
88
89
  require "stripe/resources/tax_code"
89
90
  require "stripe/resources/tax_id"
90
91
  require "stripe/resources/tax_rate"
91
- require "stripe/resources/tax_transaction"
92
92
  require "stripe/resources/terminal/configuration"
93
93
  require "stripe/resources/terminal/connection_token"
94
94
  require "stripe/resources/terminal/location"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "8.1.0-beta.2"
4
+ VERSION = "8.1.0-beta.4"
5
5
  end
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.1.0.pre.beta.2
4
+ version: 8.1.0.pre.beta.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-16 00:00:00.000000000 Z
11
+ date: 2023-01-05 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.
@@ -136,11 +136,11 @@ files:
136
136
  - lib/stripe/resources/subscription.rb
137
137
  - lib/stripe/resources/subscription_item.rb
138
138
  - lib/stripe/resources/subscription_schedule.rb
139
- - lib/stripe/resources/tax_calculation.rb
139
+ - lib/stripe/resources/tax/calculation.rb
140
+ - lib/stripe/resources/tax/transaction.rb
140
141
  - lib/stripe/resources/tax_code.rb
141
142
  - lib/stripe/resources/tax_id.rb
142
143
  - lib/stripe/resources/tax_rate.rb
143
- - lib/stripe/resources/tax_transaction.rb
144
144
  - lib/stripe/resources/terminal/configuration.rb
145
145
  - lib/stripe/resources/terminal/connection_token.rb
146
146
  - lib/stripe/resources/terminal/location.rb
@@ -1,29 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- # A Tax `Calculation` allows you to calculate the tax to collect from your customer.
6
- class TaxCalculation < APIResource
7
- extend Stripe::APIOperations::Create
8
-
9
- OBJECT_NAME = "tax.calculation"
10
-
11
- def list_line_items(params = {}, opts = {})
12
- request_stripe_object(
13
- method: :get,
14
- path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(self["id"]) }),
15
- params: params,
16
- opts: opts
17
- )
18
- end
19
-
20
- def self.list_line_items(calculation, params = {}, opts = {})
21
- request_stripe_object(
22
- method: :get,
23
- path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(calculation) }),
24
- params: params,
25
- opts: opts
26
- )
27
- end
28
- end
29
- end
@@ -1,20 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- # A Tax `Transaction` records the tax collected from or refunded to your customer.
6
- class TaxTransaction < APIResource
7
- extend Stripe::APIOperations::Create
8
-
9
- OBJECT_NAME = "tax.transaction"
10
-
11
- def self.create_reversal(params = {}, opts = {})
12
- request_stripe_object(
13
- method: :post,
14
- path: "/v1/tax/transactions/create_reversal",
15
- params: params,
16
- opts: opts
17
- )
18
- end
19
- end
20
- end