mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-07-05 00:00:59 -04:00
Compare commits
No commits in common. "cb53c3b14a3d5bfa857895138da59ff69a4427c7" and "be2efb7d250433cff112f09a9e8f4fdc965aea5d" have entirely different histories.
cb53c3b14a
...
be2efb7d25
@ -44,11 +44,6 @@ Metrics/ModuleLength:
|
|||||||
Style/AccessModifierDeclarations:
|
Style/AccessModifierDeclarations:
|
||||||
EnforcedStyle: inline
|
EnforcedStyle: inline
|
||||||
|
|
||||||
Style/AsciiComments:
|
|
||||||
AllowedChars:
|
|
||||||
- ’
|
|
||||||
- €
|
|
||||||
|
|
||||||
Style/FrozenStringLiteralComment:
|
Style/FrozenStringLiteralComment:
|
||||||
EnforcedStyle: always
|
EnforcedStyle: always
|
||||||
|
|
||||||
|
@ -1,12 +1,5 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 7.1.0 - 2022-08-19
|
|
||||||
* [#1116](https://github.com/stripe/stripe-ruby/pull/1116) API Updates
|
|
||||||
* Add support for new resource `CustomerCashBalanceTransaction`
|
|
||||||
* [#1118](https://github.com/stripe/stripe-ruby/pull/1118) Update AllowedChars in rubocop config
|
|
||||||
* [#1117](https://github.com/stripe/stripe-ruby/pull/1117) Refresh rubocop config.
|
|
||||||
* [#1115](https://github.com/stripe/stripe-ruby/pull/1115) Add a support section to the readme
|
|
||||||
|
|
||||||
## 7.0.0 - 2022-08-02
|
## 7.0.0 - 2022-08-02
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
@ -1 +1 @@
|
|||||||
v183
|
v174
|
@ -34,7 +34,6 @@ module Stripe
|
|||||||
CreditNoteLineItem::OBJECT_NAME => CreditNoteLineItem,
|
CreditNoteLineItem::OBJECT_NAME => CreditNoteLineItem,
|
||||||
Customer::OBJECT_NAME => Customer,
|
Customer::OBJECT_NAME => Customer,
|
||||||
CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
|
CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
|
||||||
CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
|
|
||||||
Discount::OBJECT_NAME => Discount,
|
Discount::OBJECT_NAME => Discount,
|
||||||
Dispute::OBJECT_NAME => Dispute,
|
Dispute::OBJECT_NAME => Dispute,
|
||||||
EphemeralKey::OBJECT_NAME => EphemeralKey,
|
EphemeralKey::OBJECT_NAME => EphemeralKey,
|
||||||
|
@ -23,7 +23,6 @@ require "stripe/resources/credit_note"
|
|||||||
require "stripe/resources/credit_note_line_item"
|
require "stripe/resources/credit_note_line_item"
|
||||||
require "stripe/resources/customer"
|
require "stripe/resources/customer"
|
||||||
require "stripe/resources/customer_balance_transaction"
|
require "stripe/resources/customer_balance_transaction"
|
||||||
require "stripe/resources/customer_cash_balance_transaction"
|
|
||||||
require "stripe/resources/discount"
|
require "stripe/resources/discount"
|
||||||
require "stripe/resources/dispute"
|
require "stripe/resources/dispute"
|
||||||
require "stripe/resources/ephemeral_key"
|
require "stripe/resources/ephemeral_key"
|
||||||
|
@ -14,8 +14,6 @@ module Stripe
|
|||||||
|
|
||||||
nested_resource_class_methods :balance_transaction,
|
nested_resource_class_methods :balance_transaction,
|
||||||
operations: %i[create retrieve update list]
|
operations: %i[create retrieve update list]
|
||||||
nested_resource_class_methods :cash_balance_transaction,
|
|
||||||
operations: %i[retrieve list]
|
|
||||||
nested_resource_class_methods :tax_id,
|
nested_resource_class_methods :tax_id,
|
||||||
operations: %i[create retrieve delete list]
|
operations: %i[create retrieve delete list]
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
# File generated from our OpenAPI spec
|
|
||||||
# frozen_string_literal: true
|
|
||||||
|
|
||||||
module Stripe
|
|
||||||
class CustomerCashBalanceTransaction < APIResource
|
|
||||||
extend Stripe::APIOperations::List
|
|
||||||
|
|
||||||
OBJECT_NAME = "customer_cash_balance_transaction"
|
|
||||||
end
|
|
||||||
end
|
|
@ -1,5 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Stripe
|
module Stripe
|
||||||
VERSION = "7.1.0"
|
VERSION = "7.0.0"
|
||||||
end
|
end
|
||||||
|
@ -1070,6 +1070,63 @@ module Stripe
|
|||||||
assert_requested :get, "#{Stripe.api_base}/v1/mandates/mandate_xxxxxxxxxxxxx?"
|
assert_requested :get, "#{Stripe.api_base}/v1/mandates/mandate_xxxxxxxxxxxxx?"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
context "Order.cancel" do
|
||||||
|
should "support requests with args: order" do
|
||||||
|
Stripe::Order.cancel("order_xyz")
|
||||||
|
assert_requested :post, "#{Stripe.api_base}/v1/orders/order_xyz/cancel?"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
context "Order.create" do
|
||||||
|
should "support requests with args: description, currency, line_items" do
|
||||||
|
Stripe::Order.create(
|
||||||
|
{
|
||||||
|
description: "description",
|
||||||
|
currency: "usd",
|
||||||
|
line_items: [{ description: "my line item" }],
|
||||||
|
}
|
||||||
|
)
|
||||||
|
assert_requested :post, "#{Stripe.api_base}/v1/orders"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
context "Order.list" do
|
||||||
|
should "support requests with args: limit" do
|
||||||
|
Stripe::Order.list({ limit: 3 })
|
||||||
|
assert_requested :get, "#{Stripe.api_base}/v1/orders?limit=3"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
context "Order.list_line_items" do
|
||||||
|
should "support requests with args: order" do
|
||||||
|
Stripe::Order.list_line_items("order_xyz")
|
||||||
|
assert_requested :get, "#{Stripe.api_base}/v1/orders/order_xyz/line_items?"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
context "Order.reopen" do
|
||||||
|
should "support requests with args: order" do
|
||||||
|
Stripe::Order.reopen("order_xyz")
|
||||||
|
assert_requested :post, "#{Stripe.api_base}/v1/orders/order_xyz/reopen?"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
context "Order.retrieve" do
|
||||||
|
should "support requests with args: order" do
|
||||||
|
Stripe::Order.retrieve("order_xyz")
|
||||||
|
assert_requested :get, "#{Stripe.api_base}/v1/orders/order_xyz?"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
context "Order.submit" do
|
||||||
|
should "support requests with args: order, expected_total" do
|
||||||
|
Stripe::Order.submit("order_xyz", { expected_total: 100 })
|
||||||
|
assert_requested :post, "#{Stripe.api_base}/v1/orders/order_xyz/submit"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
context "Order.update" do
|
||||||
|
should "support requests with args: order, metadata, ip_address" do
|
||||||
|
Stripe::Order.update(
|
||||||
|
"order_xyz",
|
||||||
|
{ metadata: { reference_number: "123" }, ip_address: "0.0.0.0" }
|
||||||
|
)
|
||||||
|
assert_requested :post, "#{Stripe.api_base}/v1/orders/order_xyz"
|
||||||
|
end
|
||||||
|
end
|
||||||
context "PaymentIntent.apply_customer_balance" do
|
context "PaymentIntent.apply_customer_balance" do
|
||||||
should "support requests with args: id" do
|
should "support requests with args: id" do
|
||||||
Stripe::PaymentIntent.apply_customer_balance("pi_xxxxxxxxxxxxx")
|
Stripe::PaymentIntent.apply_customer_balance("pi_xxxxxxxxxxxxx")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user