stripe 4.18.1 → 4.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/.travis.yml +1 -1
- data/CHANGELOG.md +3 -0
- data/README.md +9 -9
- data/VERSION +1 -1
- data/lib/stripe.rb +2 -75
- data/lib/stripe/object_types.rb +97 -0
- data/lib/stripe/resources.rb +78 -0
- data/lib/stripe/{account.rb → resources/account.rb} +13 -12
- data/lib/stripe/{account_link.rb → resources/account_link.rb} +0 -0
- data/lib/stripe/{alipay_account.rb → resources/alipay_account.rb} +0 -0
- data/lib/stripe/{apple_pay_domain.rb → resources/apple_pay_domain.rb} +0 -0
- data/lib/stripe/{application_fee.rb → resources/application_fee.rb} +0 -0
- data/lib/stripe/{application_fee_refund.rb → resources/application_fee_refund.rb} +0 -0
- data/lib/stripe/{balance.rb → resources/balance.rb} +0 -0
- data/lib/stripe/{balance_transaction.rb → resources/balance_transaction.rb} +0 -0
- data/lib/stripe/{bank_account.rb → resources/bank_account.rb} +2 -4
- data/lib/stripe/{bitcoin_receiver.rb → resources/bitcoin_receiver.rb} +3 -4
- data/lib/stripe/{bitcoin_transaction.rb → resources/bitcoin_transaction.rb} +0 -0
- data/lib/stripe/{capability.rb → resources/capability.rb} +0 -0
- data/lib/stripe/{card.rb → resources/card.rb} +3 -6
- data/lib/stripe/{charge.rb → resources/charge.rb} +0 -0
- data/lib/stripe/{checkout → resources/checkout}/session.rb +0 -0
- data/lib/stripe/{country_spec.rb → resources/country_spec.rb} +0 -0
- data/lib/stripe/{coupon.rb → resources/coupon.rb} +0 -0
- data/lib/stripe/{credit_note.rb → resources/credit_note.rb} +1 -1
- data/lib/stripe/{customer.rb → resources/customer.rb} +8 -5
- data/lib/stripe/resources/customer_balance_transaction.rb +30 -0
- data/lib/stripe/{discount.rb → resources/discount.rb} +0 -0
- data/lib/stripe/{dispute.rb → resources/dispute.rb} +1 -1
- data/lib/stripe/{ephemeral_key.rb → resources/ephemeral_key.rb} +0 -0
- data/lib/stripe/{event.rb → resources/event.rb} +0 -0
- data/lib/stripe/{exchange_rate.rb → resources/exchange_rate.rb} +0 -0
- data/lib/stripe/{file.rb → resources/file.rb} +4 -1
- data/lib/stripe/{file_link.rb → resources/file_link.rb} +0 -0
- data/lib/stripe/{invoice.rb → resources/invoice.rb} +6 -7
- data/lib/stripe/{invoice_item.rb → resources/invoice_item.rb} +0 -0
- data/lib/stripe/{invoice_line_item.rb → resources/invoice_line_item.rb} +0 -0
- data/lib/stripe/{issuer_fraud_record.rb → resources/issuer_fraud_record.rb} +0 -0
- data/lib/stripe/{issuing → resources/issuing}/authorization.rb +2 -2
- data/lib/stripe/{issuing → resources/issuing}/card.rb +0 -0
- data/lib/stripe/{issuing → resources/issuing}/card_details.rb +0 -0
- data/lib/stripe/{issuing → resources/issuing}/cardholder.rb +0 -0
- data/lib/stripe/{issuing → resources/issuing}/dispute.rb +0 -0
- data/lib/stripe/{issuing → resources/issuing}/transaction.rb +0 -0
- data/lib/stripe/{login_link.rb → resources/login_link.rb} +0 -0
- data/lib/stripe/{order.rb → resources/order.rb} +4 -4
- data/lib/stripe/{order_return.rb → resources/order_return.rb} +0 -0
- data/lib/stripe/{payment_intent.rb → resources/payment_intent.rb} +3 -3
- data/lib/stripe/{payment_method.rb → resources/payment_method.rb} +2 -2
- data/lib/stripe/{payout.rb → resources/payout.rb} +1 -1
- data/lib/stripe/{person.rb → resources/person.rb} +0 -0
- data/lib/stripe/{plan.rb → resources/plan.rb} +0 -0
- data/lib/stripe/{product.rb → resources/product.rb} +0 -0
- data/lib/stripe/{radar → resources/radar}/early_fraud_warning.rb +0 -0
- data/lib/stripe/{radar → resources/radar}/value_list.rb +0 -0
- data/lib/stripe/{radar → resources/radar}/value_list_item.rb +0 -0
- data/lib/stripe/{recipient.rb → resources/recipient.rb} +0 -0
- data/lib/stripe/{recipient_transfer.rb → resources/recipient_transfer.rb} +0 -0
- data/lib/stripe/{refund.rb → resources/refund.rb} +0 -0
- data/lib/stripe/{reporting → resources/reporting}/report_run.rb +0 -0
- data/lib/stripe/{reporting → resources/reporting}/report_type.rb +0 -0
- data/lib/stripe/{reversal.rb → resources/reversal.rb} +0 -0
- data/lib/stripe/{review.rb → resources/review.rb} +1 -1
- data/lib/stripe/{sigma → resources/sigma}/scheduled_query_run.rb +0 -0
- data/lib/stripe/{sku.rb → resources/sku.rb} +0 -0
- data/lib/stripe/{source.rb → resources/source.rb} +5 -5
- data/lib/stripe/{source_transaction.rb → resources/source_transaction.rb} +0 -0
- data/lib/stripe/{subscription.rb → resources/subscription.rb} +2 -2
- data/lib/stripe/{subscription_item.rb → resources/subscription_item.rb} +1 -2
- data/lib/stripe/{subscription_schedule.rb → resources/subscription_schedule.rb} +5 -8
- data/lib/stripe/{subscription_schedule_revision.rb → resources/subscription_schedule_revision.rb} +0 -0
- data/lib/stripe/{tax_id.rb → resources/tax_id.rb} +0 -0
- data/lib/stripe/{tax_rate.rb → resources/tax_rate.rb} +0 -0
- data/lib/stripe/{terminal → resources/terminal}/connection_token.rb +0 -0
- data/lib/stripe/{terminal → resources/terminal}/location.rb +0 -0
- data/lib/stripe/{terminal → resources/terminal}/reader.rb +0 -0
- data/lib/stripe/{three_d_secure.rb → resources/three_d_secure.rb} +0 -0
- data/lib/stripe/{token.rb → resources/token.rb} +0 -0
- data/lib/stripe/{topup.rb → resources/topup.rb} +1 -1
- data/lib/stripe/{transfer.rb → resources/transfer.rb} +4 -3
- data/lib/stripe/{usage_record.rb → resources/usage_record.rb} +0 -0
- data/lib/stripe/{usage_record_summary.rb → resources/usage_record_summary.rb} +0 -0
- data/lib/stripe/{webhook_endpoint.rb → resources/webhook_endpoint.rb} +0 -0
- data/lib/stripe/util.rb +2 -85
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/customer_balance_transaction_test.rb +37 -0
- data/test/stripe/customer_test.rb +43 -0
- data/test/test_helper.rb +1 -1
- metadata +82 -77
File without changes
|
File without changes
|
File without changes
|
data/lib/stripe/util.rb
CHANGED
@@ -39,91 +39,8 @@ module Stripe
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
-
def self.object_classes
|
43
|
-
|
44
|
-
@object_classes ||= {
|
45
|
-
# data structures
|
46
|
-
ListObject::OBJECT_NAME => ListObject,
|
47
|
-
|
48
|
-
# business objects
|
49
|
-
Account::OBJECT_NAME => Account,
|
50
|
-
AccountLink::OBJECT_NAME => AccountLink,
|
51
|
-
AlipayAccount::OBJECT_NAME => AlipayAccount,
|
52
|
-
ApplePayDomain::OBJECT_NAME => ApplePayDomain,
|
53
|
-
ApplicationFee::OBJECT_NAME => ApplicationFee,
|
54
|
-
ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
|
55
|
-
Balance::OBJECT_NAME => Balance,
|
56
|
-
BalanceTransaction::OBJECT_NAME => BalanceTransaction,
|
57
|
-
BankAccount::OBJECT_NAME => BankAccount,
|
58
|
-
BitcoinReceiver::OBJECT_NAME => BitcoinReceiver,
|
59
|
-
BitcoinTransaction::OBJECT_NAME => BitcoinTransaction,
|
60
|
-
Capability::OBJECT_NAME => Capability,
|
61
|
-
Card::OBJECT_NAME => Card,
|
62
|
-
Charge::OBJECT_NAME => Charge,
|
63
|
-
Checkout::Session::OBJECT_NAME => Checkout::Session,
|
64
|
-
CountrySpec::OBJECT_NAME => CountrySpec,
|
65
|
-
Coupon::OBJECT_NAME => Coupon,
|
66
|
-
CreditNote::OBJECT_NAME => CreditNote,
|
67
|
-
Customer::OBJECT_NAME => Customer,
|
68
|
-
Discount::OBJECT_NAME => Discount,
|
69
|
-
Dispute::OBJECT_NAME => Dispute,
|
70
|
-
EphemeralKey::OBJECT_NAME => EphemeralKey,
|
71
|
-
Event::OBJECT_NAME => Event,
|
72
|
-
ExchangeRate::OBJECT_NAME => ExchangeRate,
|
73
|
-
File::OBJECT_NAME => File,
|
74
|
-
File::OBJECT_NAME_ALT => File,
|
75
|
-
FileLink::OBJECT_NAME => FileLink,
|
76
|
-
Invoice::OBJECT_NAME => Invoice,
|
77
|
-
InvoiceItem::OBJECT_NAME => InvoiceItem,
|
78
|
-
InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
|
79
|
-
IssuerFraudRecord::OBJECT_NAME => IssuerFraudRecord,
|
80
|
-
Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
|
81
|
-
Issuing::Card::OBJECT_NAME => Issuing::Card,
|
82
|
-
Issuing::CardDetails::OBJECT_NAME => Issuing::CardDetails,
|
83
|
-
Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
|
84
|
-
Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
|
85
|
-
Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
|
86
|
-
LoginLink::OBJECT_NAME => LoginLink,
|
87
|
-
Order::OBJECT_NAME => Order,
|
88
|
-
OrderReturn::OBJECT_NAME => OrderReturn,
|
89
|
-
PaymentIntent::OBJECT_NAME => PaymentIntent,
|
90
|
-
PaymentMethod::OBJECT_NAME => PaymentMethod,
|
91
|
-
Payout::OBJECT_NAME => Payout,
|
92
|
-
Person::OBJECT_NAME => Person,
|
93
|
-
Plan::OBJECT_NAME => Plan,
|
94
|
-
Product::OBJECT_NAME => Product,
|
95
|
-
Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
|
96
|
-
Radar::ValueList::OBJECT_NAME => Radar::ValueList,
|
97
|
-
Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
|
98
|
-
Recipient::OBJECT_NAME => Recipient,
|
99
|
-
RecipientTransfer::OBJECT_NAME => RecipientTransfer,
|
100
|
-
Refund::OBJECT_NAME => Refund,
|
101
|
-
Reporting::ReportRun::OBJECT_NAME => Reporting::ReportRun,
|
102
|
-
Reporting::ReportType::OBJECT_NAME => Reporting::ReportType,
|
103
|
-
Reversal::OBJECT_NAME => Reversal,
|
104
|
-
Review::OBJECT_NAME => Review,
|
105
|
-
SKU::OBJECT_NAME => SKU,
|
106
|
-
Sigma::ScheduledQueryRun::OBJECT_NAME => Sigma::ScheduledQueryRun,
|
107
|
-
Source::OBJECT_NAME => Source,
|
108
|
-
SourceTransaction::OBJECT_NAME => SourceTransaction,
|
109
|
-
Subscription::OBJECT_NAME => Subscription,
|
110
|
-
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
111
|
-
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
112
|
-
SubscriptionScheduleRevision::OBJECT_NAME => SubscriptionScheduleRevision,
|
113
|
-
TaxId::OBJECT_NAME => TaxId,
|
114
|
-
TaxRate::OBJECT_NAME => TaxRate,
|
115
|
-
Terminal::ConnectionToken::OBJECT_NAME => Terminal::ConnectionToken,
|
116
|
-
Terminal::Location::OBJECT_NAME => Terminal::Location,
|
117
|
-
Terminal::Reader::OBJECT_NAME => Terminal::Reader,
|
118
|
-
ThreeDSecure::OBJECT_NAME => ThreeDSecure,
|
119
|
-
Token::OBJECT_NAME => Token,
|
120
|
-
Topup::OBJECT_NAME => Topup,
|
121
|
-
Transfer::OBJECT_NAME => Transfer,
|
122
|
-
UsageRecord::OBJECT_NAME => UsageRecord,
|
123
|
-
UsageRecordSummary::OBJECT_NAME => UsageRecordSummary,
|
124
|
-
WebhookEndpoint::OBJECT_NAME => WebhookEndpoint,
|
125
|
-
}
|
126
|
-
# rubocop:enable Metrics/LineLength
|
42
|
+
def self.object_classes
|
43
|
+
@object_classes ||= Stripe::ObjectTypes.object_names_to_classes
|
127
44
|
end
|
128
45
|
|
129
46
|
# Converts a hash of fields or an array of hashes into a +StripeObject+ or
|
data/lib/stripe/version.rb
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require ::File.expand_path("../../test_helper", __FILE__)
|
4
|
+
|
5
|
+
module Stripe
|
6
|
+
class CustomerBalanceTransactionTest < Test::Unit::TestCase
|
7
|
+
context "#resource_url" do
|
8
|
+
should "return a resource URL" do
|
9
|
+
transaction = Stripe::CustomerBalanceTransaction.construct_from(
|
10
|
+
id: "cbtxn_123",
|
11
|
+
customer: "cus_123"
|
12
|
+
)
|
13
|
+
assert_equal "/v1/customers/cus_123/balance_transactions/cbtxn_123",
|
14
|
+
transaction.resource_url
|
15
|
+
end
|
16
|
+
|
17
|
+
should "raise without a customer" do
|
18
|
+
transaction = Stripe::CustomerBalanceTransaction.construct_from(id: "cbtxn_123")
|
19
|
+
assert_raises NotImplementedError do
|
20
|
+
transaction.resource_url
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
should "raise on #retrieve" do
|
26
|
+
assert_raises NotImplementedError do
|
27
|
+
Stripe::CustomerBalanceTransaction.retrieve("cbtxn_123")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
should "raise on #update" do
|
32
|
+
assert_raises NotImplementedError do
|
33
|
+
Stripe::CustomerBalanceTransaction.update("cbtxn_123")
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -222,5 +222,48 @@ module Stripe
|
|
222
222
|
assert sources.data.is_a?(Array)
|
223
223
|
end
|
224
224
|
end
|
225
|
+
|
226
|
+
context "#create_balance_transaction" do
|
227
|
+
should "create a customer balance transaction" do
|
228
|
+
Stripe::Customer.create_balance_transaction(
|
229
|
+
"cus_123",
|
230
|
+
amount: 1234,
|
231
|
+
currency: "usd"
|
232
|
+
)
|
233
|
+
assert_requested :post, "#{Stripe.api_base}/v1/customers/cus_123/balance_transactions"
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
context "#retrieve_balance_transaction" do
|
238
|
+
should "retrieve a customer balance transaction" do
|
239
|
+
Stripe::Customer.retrieve_balance_transaction(
|
240
|
+
"cus_123",
|
241
|
+
"cbtxn_123"
|
242
|
+
)
|
243
|
+
assert_requested :get, "#{Stripe.api_base}/v1/customers/cus_123/balance_transactions/cbtxn_123"
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
context "#update_balance_transaction" do
|
248
|
+
should "update a customer balance transaction" do
|
249
|
+
Stripe::Customer.update_balance_transaction(
|
250
|
+
"cus_123",
|
251
|
+
"cbtxn_123",
|
252
|
+
description: "new"
|
253
|
+
)
|
254
|
+
assert_requested :post, "#{Stripe.api_base}/v1/customers/cus_123/balance_transactions/cbtxn_123"
|
255
|
+
end
|
256
|
+
end
|
257
|
+
|
258
|
+
context "#list_balance_transactions" do
|
259
|
+
should "list the customer balance transactions" do
|
260
|
+
sources = Stripe::Customer.list_balance_transactions(
|
261
|
+
"cus_123"
|
262
|
+
)
|
263
|
+
assert_requested :get, "#{Stripe.api_base}/v1/customers/cus_123/balance_transactions"
|
264
|
+
assert sources.is_a?(Stripe::ListObject)
|
265
|
+
assert sources.data.is_a?(Array)
|
266
|
+
end
|
267
|
+
end
|
225
268
|
end
|
226
269
|
end
|
data/test/test_helper.rb
CHANGED
@@ -17,7 +17,7 @@ require ::File.expand_path("test_data", __dir__)
|
|
17
17
|
require ::File.expand_path("stripe_mock", __dir__)
|
18
18
|
|
19
19
|
# If changing this number, please also change it in `.travis.yml`.
|
20
|
-
MOCK_MINIMUM_VERSION = "0.
|
20
|
+
MOCK_MINIMUM_VERSION = "0.58.0".freeze
|
21
21
|
MOCK_PORT = Stripe::StripeMock.start
|
22
22
|
|
23
23
|
# Disable all real network connections except those that are outgoing to
|
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: 4.
|
4
|
+
version: 4.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -66,9 +66,6 @@ files:
|
|
66
66
|
- bin/stripe-console
|
67
67
|
- lib/data/ca-certificates.crt
|
68
68
|
- lib/stripe.rb
|
69
|
-
- lib/stripe/account.rb
|
70
|
-
- lib/stripe/account_link.rb
|
71
|
-
- lib/stripe/alipay_account.rb
|
72
69
|
- lib/stripe/api_operations/create.rb
|
73
70
|
- lib/stripe/api_operations/delete.rb
|
74
71
|
- lib/stripe/api_operations/list.rb
|
@@ -76,88 +73,94 @@ files:
|
|
76
73
|
- lib/stripe/api_operations/request.rb
|
77
74
|
- lib/stripe/api_operations/save.rb
|
78
75
|
- lib/stripe/api_resource.rb
|
79
|
-
- lib/stripe/apple_pay_domain.rb
|
80
|
-
- lib/stripe/application_fee.rb
|
81
|
-
- lib/stripe/application_fee_refund.rb
|
82
|
-
- lib/stripe/balance.rb
|
83
|
-
- lib/stripe/balance_transaction.rb
|
84
|
-
- lib/stripe/bank_account.rb
|
85
|
-
- lib/stripe/bitcoin_receiver.rb
|
86
|
-
- lib/stripe/bitcoin_transaction.rb
|
87
|
-
- lib/stripe/capability.rb
|
88
|
-
- lib/stripe/card.rb
|
89
|
-
- lib/stripe/charge.rb
|
90
|
-
- lib/stripe/checkout/session.rb
|
91
|
-
- lib/stripe/country_spec.rb
|
92
|
-
- lib/stripe/coupon.rb
|
93
|
-
- lib/stripe/credit_note.rb
|
94
|
-
- lib/stripe/customer.rb
|
95
|
-
- lib/stripe/discount.rb
|
96
|
-
- lib/stripe/dispute.rb
|
97
|
-
- lib/stripe/ephemeral_key.rb
|
98
76
|
- lib/stripe/errors.rb
|
99
|
-
- lib/stripe/event.rb
|
100
|
-
- lib/stripe/exchange_rate.rb
|
101
|
-
- lib/stripe/file.rb
|
102
|
-
- lib/stripe/file_link.rb
|
103
|
-
- lib/stripe/invoice.rb
|
104
|
-
- lib/stripe/invoice_item.rb
|
105
|
-
- lib/stripe/invoice_line_item.rb
|
106
|
-
- lib/stripe/issuer_fraud_record.rb
|
107
|
-
- lib/stripe/issuing/authorization.rb
|
108
|
-
- lib/stripe/issuing/card.rb
|
109
|
-
- lib/stripe/issuing/card_details.rb
|
110
|
-
- lib/stripe/issuing/cardholder.rb
|
111
|
-
- lib/stripe/issuing/dispute.rb
|
112
|
-
- lib/stripe/issuing/transaction.rb
|
113
77
|
- lib/stripe/list_object.rb
|
114
|
-
- lib/stripe/login_link.rb
|
115
78
|
- lib/stripe/oauth.rb
|
116
|
-
- lib/stripe/
|
117
|
-
- lib/stripe/
|
118
|
-
- lib/stripe/
|
119
|
-
- lib/stripe/
|
120
|
-
- lib/stripe/
|
121
|
-
- lib/stripe/
|
122
|
-
- lib/stripe/
|
123
|
-
- lib/stripe/
|
124
|
-
- lib/stripe/
|
125
|
-
- lib/stripe/
|
126
|
-
- lib/stripe/
|
127
|
-
- lib/stripe/
|
128
|
-
- lib/stripe/
|
129
|
-
- lib/stripe/
|
130
|
-
- lib/stripe/
|
131
|
-
- lib/stripe/
|
132
|
-
- lib/stripe/
|
133
|
-
- lib/stripe/
|
134
|
-
- lib/stripe/
|
79
|
+
- lib/stripe/object_types.rb
|
80
|
+
- lib/stripe/resources.rb
|
81
|
+
- lib/stripe/resources/account.rb
|
82
|
+
- lib/stripe/resources/account_link.rb
|
83
|
+
- lib/stripe/resources/alipay_account.rb
|
84
|
+
- lib/stripe/resources/apple_pay_domain.rb
|
85
|
+
- lib/stripe/resources/application_fee.rb
|
86
|
+
- lib/stripe/resources/application_fee_refund.rb
|
87
|
+
- lib/stripe/resources/balance.rb
|
88
|
+
- lib/stripe/resources/balance_transaction.rb
|
89
|
+
- lib/stripe/resources/bank_account.rb
|
90
|
+
- lib/stripe/resources/bitcoin_receiver.rb
|
91
|
+
- lib/stripe/resources/bitcoin_transaction.rb
|
92
|
+
- lib/stripe/resources/capability.rb
|
93
|
+
- lib/stripe/resources/card.rb
|
94
|
+
- lib/stripe/resources/charge.rb
|
95
|
+
- lib/stripe/resources/checkout/session.rb
|
96
|
+
- lib/stripe/resources/country_spec.rb
|
97
|
+
- lib/stripe/resources/coupon.rb
|
98
|
+
- lib/stripe/resources/credit_note.rb
|
99
|
+
- lib/stripe/resources/customer.rb
|
100
|
+
- lib/stripe/resources/customer_balance_transaction.rb
|
101
|
+
- lib/stripe/resources/discount.rb
|
102
|
+
- lib/stripe/resources/dispute.rb
|
103
|
+
- lib/stripe/resources/ephemeral_key.rb
|
104
|
+
- lib/stripe/resources/event.rb
|
105
|
+
- lib/stripe/resources/exchange_rate.rb
|
106
|
+
- lib/stripe/resources/file.rb
|
107
|
+
- lib/stripe/resources/file_link.rb
|
108
|
+
- lib/stripe/resources/invoice.rb
|
109
|
+
- lib/stripe/resources/invoice_item.rb
|
110
|
+
- lib/stripe/resources/invoice_line_item.rb
|
111
|
+
- lib/stripe/resources/issuer_fraud_record.rb
|
112
|
+
- lib/stripe/resources/issuing/authorization.rb
|
113
|
+
- lib/stripe/resources/issuing/card.rb
|
114
|
+
- lib/stripe/resources/issuing/card_details.rb
|
115
|
+
- lib/stripe/resources/issuing/cardholder.rb
|
116
|
+
- lib/stripe/resources/issuing/dispute.rb
|
117
|
+
- lib/stripe/resources/issuing/transaction.rb
|
118
|
+
- lib/stripe/resources/login_link.rb
|
119
|
+
- lib/stripe/resources/order.rb
|
120
|
+
- lib/stripe/resources/order_return.rb
|
121
|
+
- lib/stripe/resources/payment_intent.rb
|
122
|
+
- lib/stripe/resources/payment_method.rb
|
123
|
+
- lib/stripe/resources/payout.rb
|
124
|
+
- lib/stripe/resources/person.rb
|
125
|
+
- lib/stripe/resources/plan.rb
|
126
|
+
- lib/stripe/resources/product.rb
|
127
|
+
- lib/stripe/resources/radar/early_fraud_warning.rb
|
128
|
+
- lib/stripe/resources/radar/value_list.rb
|
129
|
+
- lib/stripe/resources/radar/value_list_item.rb
|
130
|
+
- lib/stripe/resources/recipient.rb
|
131
|
+
- lib/stripe/resources/recipient_transfer.rb
|
132
|
+
- lib/stripe/resources/refund.rb
|
133
|
+
- lib/stripe/resources/reporting/report_run.rb
|
134
|
+
- lib/stripe/resources/reporting/report_type.rb
|
135
|
+
- lib/stripe/resources/reversal.rb
|
136
|
+
- lib/stripe/resources/review.rb
|
137
|
+
- lib/stripe/resources/sigma/scheduled_query_run.rb
|
138
|
+
- lib/stripe/resources/sku.rb
|
139
|
+
- lib/stripe/resources/source.rb
|
140
|
+
- lib/stripe/resources/source_transaction.rb
|
141
|
+
- lib/stripe/resources/subscription.rb
|
142
|
+
- lib/stripe/resources/subscription_item.rb
|
143
|
+
- lib/stripe/resources/subscription_schedule.rb
|
144
|
+
- lib/stripe/resources/subscription_schedule_revision.rb
|
145
|
+
- lib/stripe/resources/tax_id.rb
|
146
|
+
- lib/stripe/resources/tax_rate.rb
|
147
|
+
- lib/stripe/resources/terminal/connection_token.rb
|
148
|
+
- lib/stripe/resources/terminal/location.rb
|
149
|
+
- lib/stripe/resources/terminal/reader.rb
|
150
|
+
- lib/stripe/resources/three_d_secure.rb
|
151
|
+
- lib/stripe/resources/token.rb
|
152
|
+
- lib/stripe/resources/topup.rb
|
153
|
+
- lib/stripe/resources/transfer.rb
|
154
|
+
- lib/stripe/resources/usage_record.rb
|
155
|
+
- lib/stripe/resources/usage_record_summary.rb
|
156
|
+
- lib/stripe/resources/webhook_endpoint.rb
|
135
157
|
- lib/stripe/singleton_api_resource.rb
|
136
|
-
- lib/stripe/sku.rb
|
137
|
-
- lib/stripe/source.rb
|
138
|
-
- lib/stripe/source_transaction.rb
|
139
158
|
- lib/stripe/stripe_client.rb
|
140
159
|
- lib/stripe/stripe_object.rb
|
141
160
|
- lib/stripe/stripe_response.rb
|
142
|
-
- lib/stripe/subscription.rb
|
143
|
-
- lib/stripe/subscription_item.rb
|
144
|
-
- lib/stripe/subscription_schedule.rb
|
145
|
-
- lib/stripe/subscription_schedule_revision.rb
|
146
|
-
- lib/stripe/tax_id.rb
|
147
|
-
- lib/stripe/tax_rate.rb
|
148
|
-
- lib/stripe/terminal/connection_token.rb
|
149
|
-
- lib/stripe/terminal/location.rb
|
150
|
-
- lib/stripe/terminal/reader.rb
|
151
|
-
- lib/stripe/three_d_secure.rb
|
152
|
-
- lib/stripe/token.rb
|
153
|
-
- lib/stripe/topup.rb
|
154
|
-
- lib/stripe/transfer.rb
|
155
|
-
- lib/stripe/usage_record.rb
|
156
|
-
- lib/stripe/usage_record_summary.rb
|
157
161
|
- lib/stripe/util.rb
|
158
162
|
- lib/stripe/version.rb
|
159
163
|
- lib/stripe/webhook.rb
|
160
|
-
- lib/stripe/webhook_endpoint.rb
|
161
164
|
- stripe.gemspec
|
162
165
|
- test/api_stub_helpers.rb
|
163
166
|
- test/openapi/README.md
|
@@ -177,6 +180,7 @@ files:
|
|
177
180
|
- test/stripe/country_spec_test.rb
|
178
181
|
- test/stripe/coupon_test.rb
|
179
182
|
- test/stripe/credit_note_test.rb
|
183
|
+
- test/stripe/customer_balance_transaction_test.rb
|
180
184
|
- test/stripe/customer_card_test.rb
|
181
185
|
- test/stripe/customer_test.rb
|
182
186
|
- test/stripe/dispute_test.rb
|
@@ -285,6 +289,7 @@ test_files:
|
|
285
289
|
- test/stripe/country_spec_test.rb
|
286
290
|
- test/stripe/coupon_test.rb
|
287
291
|
- test/stripe/credit_note_test.rb
|
292
|
+
- test/stripe/customer_balance_transaction_test.rb
|
288
293
|
- test/stripe/customer_card_test.rb
|
289
294
|
- test/stripe/customer_test.rb
|
290
295
|
- test/stripe/dispute_test.rb
|