mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-18 00:00:44 -04:00
Compare commits
No commits in common. "768972e4cb38838516804f12bd1aa042d29b930b" and "13b0bca995ef48a3912e4b3a990ac4479f71eeee" have entirely different histories.
768972e4cb
...
13b0bca995
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,15 +1,5 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 8.1.0-beta.2 - 2022-12-15
|
|
||||||
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
|
|
||||||
* Updated stable APIs to the latest version
|
|
||||||
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
|
|
||||||
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
|
|
||||||
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
|
|
||||||
* [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
|
|
||||||
* Updated stable APIs to the latest version
|
|
||||||
* Add support for new resource `QuoteLine`.
|
|
||||||
|
|
||||||
## 8.1.0-beta.1 - 2022-12-08
|
## 8.1.0-beta.1 - 2022-12-08
|
||||||
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
|
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
|
||||||
* Updated stable APIs to the latest version
|
* Updated stable APIs to the latest version
|
||||||
|
@ -1 +1 @@
|
|||||||
v216
|
v215
|
@ -97,11 +97,11 @@ module Stripe
|
|||||||
Subscription::OBJECT_NAME => Subscription,
|
Subscription::OBJECT_NAME => Subscription,
|
||||||
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
||||||
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
||||||
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
TaxCalculation::OBJECT_NAME => TaxCalculation,
|
||||||
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
|
||||||
TaxCode::OBJECT_NAME => TaxCode,
|
TaxCode::OBJECT_NAME => TaxCode,
|
||||||
TaxId::OBJECT_NAME => TaxId,
|
TaxId::OBJECT_NAME => TaxId,
|
||||||
TaxRate::OBJECT_NAME => TaxRate,
|
TaxRate::OBJECT_NAME => TaxRate,
|
||||||
|
TaxTransaction::OBJECT_NAME => TaxTransaction,
|
||||||
Terminal::Configuration::OBJECT_NAME => Terminal::Configuration,
|
Terminal::Configuration::OBJECT_NAME => Terminal::Configuration,
|
||||||
Terminal::ConnectionToken::OBJECT_NAME => Terminal::ConnectionToken,
|
Terminal::ConnectionToken::OBJECT_NAME => Terminal::ConnectionToken,
|
||||||
Terminal::Location::OBJECT_NAME => Terminal::Location,
|
Terminal::Location::OBJECT_NAME => Terminal::Location,
|
||||||
|
@ -84,11 +84,11 @@ require "stripe/resources/source_transaction"
|
|||||||
require "stripe/resources/subscription"
|
require "stripe/resources/subscription"
|
||||||
require "stripe/resources/subscription_item"
|
require "stripe/resources/subscription_item"
|
||||||
require "stripe/resources/subscription_schedule"
|
require "stripe/resources/subscription_schedule"
|
||||||
require "stripe/resources/tax/calculation"
|
require "stripe/resources/tax_calculation"
|
||||||
require "stripe/resources/tax/transaction"
|
|
||||||
require "stripe/resources/tax_code"
|
require "stripe/resources/tax_code"
|
||||||
require "stripe/resources/tax_id"
|
require "stripe/resources/tax_id"
|
||||||
require "stripe/resources/tax_rate"
|
require "stripe/resources/tax_rate"
|
||||||
|
require "stripe/resources/tax_transaction"
|
||||||
require "stripe/resources/terminal/configuration"
|
require "stripe/resources/terminal/configuration"
|
||||||
require "stripe/resources/terminal/connection_token"
|
require "stripe/resources/terminal/connection_token"
|
||||||
require "stripe/resources/terminal/location"
|
require "stripe/resources/terminal/location"
|
||||||
|
@ -1,31 +0,0 @@
|
|||||||
# File generated from our OpenAPI spec
|
|
||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
module Stripe
|
|
||||||
module Tax
|
|
||||||
# A Tax `Calculation` allows you to calculate the tax to collect from your customer.
|
|
||||||
class Calculation < APIResource
|
|
||||||
extend Stripe::APIOperations::Create
|
|
||||||
|
|
||||||
OBJECT_NAME = "tax.calculation"
|
|
||||||
|
|
||||||
def list_line_items(params = {}, opts = {})
|
|
||||||
request_stripe_object(
|
|
||||||
method: :get,
|
|
||||||
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(self["id"]) }),
|
|
||||||
params: params,
|
|
||||||
opts: opts
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
def self.list_line_items(calculation, params = {}, opts = {})
|
|
||||||
request_stripe_object(
|
|
||||||
method: :get,
|
|
||||||
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(calculation) }),
|
|
||||||
params: params,
|
|
||||||
opts: opts
|
|
||||||
)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
@ -1,22 +0,0 @@
|
|||||||
# File generated from our OpenAPI spec
|
|
||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
module Stripe
|
|
||||||
module Tax
|
|
||||||
# A Tax `Transaction` records the tax collected from or refunded to your customer.
|
|
||||||
class Transaction < APIResource
|
|
||||||
extend Stripe::APIOperations::Create
|
|
||||||
|
|
||||||
OBJECT_NAME = "tax.transaction"
|
|
||||||
|
|
||||||
def self.create_reversal(params = {}, opts = {})
|
|
||||||
request_stripe_object(
|
|
||||||
method: :post,
|
|
||||||
path: "/v1/tax/transactions/create_reversal",
|
|
||||||
params: params,
|
|
||||||
opts: opts
|
|
||||||
)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
29
lib/stripe/resources/tax_calculation.rb
Normal file
29
lib/stripe/resources/tax_calculation.rb
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# File generated from our OpenAPI spec
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
module Stripe
|
||||||
|
# A Tax `Calculation` allows you to calculate the tax to collect from your customer.
|
||||||
|
class TaxCalculation < APIResource
|
||||||
|
extend Stripe::APIOperations::Create
|
||||||
|
|
||||||
|
OBJECT_NAME = "tax.calculation"
|
||||||
|
|
||||||
|
def list_line_items(params = {}, opts = {})
|
||||||
|
request_stripe_object(
|
||||||
|
method: :get,
|
||||||
|
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(self["id"]) }),
|
||||||
|
params: params,
|
||||||
|
opts: opts
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.list_line_items(calculation, params = {}, opts = {})
|
||||||
|
request_stripe_object(
|
||||||
|
method: :get,
|
||||||
|
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(calculation) }),
|
||||||
|
params: params,
|
||||||
|
opts: opts
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
20
lib/stripe/resources/tax_transaction.rb
Normal file
20
lib/stripe/resources/tax_transaction.rb
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# File generated from our OpenAPI spec
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
module Stripe
|
||||||
|
# A Tax `Transaction` records the tax collected from or refunded to your customer.
|
||||||
|
class TaxTransaction < APIResource
|
||||||
|
extend Stripe::APIOperations::Create
|
||||||
|
|
||||||
|
OBJECT_NAME = "tax.transaction"
|
||||||
|
|
||||||
|
def self.create_reversal(params = {}, opts = {})
|
||||||
|
request_stripe_object(
|
||||||
|
method: :post,
|
||||||
|
path: "/v1/tax/transactions/create_reversal",
|
||||||
|
params: params,
|
||||||
|
opts: opts
|
||||||
|
)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Stripe
|
module Stripe
|
||||||
VERSION = "8.1.0-beta.2"
|
VERSION = "8.1.0-beta.1"
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user