stripe 8.1.0.pre.beta.2 → 8.1.0.pre.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +2 -2
- data/lib/stripe/resources/tax/calculation.rb +31 -0
- data/lib/stripe/resources/tax/transaction.rb +22 -0
- data/lib/stripe/resources.rb +2 -2
- data/lib/stripe/version.rb +1 -1
- metadata +4 -4
- data/lib/stripe/resources/tax_calculation.rb +0 -29
- data/lib/stripe/resources/tax_transaction.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dbe161b2c79540bf0c14cccaccd03bded2bb67d98b45321d9f24ebd41b24313
|
4
|
+
data.tar.gz: aee65c5876d3aa9412a05fc3b19282cd3cc2b06e806c139009164ee0544bf99c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58f3a41f66ce6dc02711eb56329f9bc876a7a66c66645565a2068bb76814f918acd724fa2334c6d050d381a3cd4acb28055216c9197ae4213454b8761f86681d
|
7
|
+
data.tar.gz: f06c362d0af1ae83b913d1a6fb282b7a338f3d93f1cddefa6a35f8c67865ece3cee0da3bf8f9c4df15c44d486531c4634f65ed7ce8a1fc39b0892548646d94a1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 8.1.0-beta.3 - 2022-12-22
|
4
|
+
* [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
|
5
|
+
* Updated stable APIs to the latest version
|
6
|
+
* Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
|
7
|
+
|
3
8
|
## 8.1.0-beta.2 - 2022-12-15
|
4
9
|
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
|
5
10
|
* Updated stable APIs to the latest version
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v216
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
8.1.0-beta.
|
1
|
+
8.1.0-beta.3
|
data/lib/stripe/object_types.rb
CHANGED
@@ -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
|
-
|
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,
|
@@ -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
|
data/lib/stripe/resources.rb
CHANGED
@@ -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/
|
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"
|
data/lib/stripe/version.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.1.0.pre.beta.
|
4
|
+
version: 8.1.0.pre.beta.3
|
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-
|
11
|
+
date: 2022-12-22 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/
|
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
|