stripe 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/VERSION +1 -1
- data/lib/stripe/account.rb +2 -0
- data/lib/stripe/alipay_account.rb +2 -0
- data/lib/stripe/apple_pay_domain.rb +2 -0
- data/lib/stripe/application_fee.rb +2 -0
- data/lib/stripe/application_fee_refund.rb +2 -0
- data/lib/stripe/balance.rb +1 -0
- data/lib/stripe/balance_transaction.rb +2 -0
- data/lib/stripe/bank_account.rb +2 -0
- data/lib/stripe/bitcoin_receiver.rb +2 -0
- data/lib/stripe/bitcoin_transaction.rb +2 -0
- data/lib/stripe/card.rb +2 -0
- data/lib/stripe/charge.rb +2 -0
- data/lib/stripe/country_spec.rb +2 -0
- data/lib/stripe/coupon.rb +2 -0
- data/lib/stripe/customer.rb +2 -0
- data/lib/stripe/dispute.rb +2 -0
- data/lib/stripe/event.rb +2 -0
- data/lib/stripe/file_upload.rb +2 -0
- data/lib/stripe/invoice.rb +2 -0
- data/lib/stripe/invoice_item.rb +2 -0
- data/lib/stripe/list_object.rb +2 -0
- data/lib/stripe/order.rb +2 -0
- data/lib/stripe/order_return.rb +2 -0
- data/lib/stripe/payout.rb +2 -0
- data/lib/stripe/plan.rb +2 -0
- data/lib/stripe/product.rb +2 -0
- data/lib/stripe/recipient.rb +2 -0
- data/lib/stripe/recipient_transfer.rb +2 -0
- data/lib/stripe/refund.rb +2 -0
- data/lib/stripe/reversal.rb +2 -0
- data/lib/stripe/sku.rb +2 -0
- data/lib/stripe/source.rb +2 -0
- data/lib/stripe/subscription.rb +2 -0
- data/lib/stripe/subscription_item.rb +2 -0
- data/lib/stripe/three_d_secure.rb +2 -0
- data/lib/stripe/token.rb +2 -0
- data/lib/stripe/transfer.rb +2 -0
- data/lib/stripe/util.rb +37 -37
- data/lib/stripe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5b655483032b5281ff2bccf369e08c66731996e
|
4
|
+
data.tar.gz: 63a2e6852445f94454662b40aebf3006088fd95c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cebea1dfb72b5a059f39ef0385cfeb60bcfe7fb813e443fefbf8489eb7eb4028ffd4089aa3720cc8641f4fdb7cf4af1382e446578b5698014440116ce4199f1
|
7
|
+
data.tar.gz: 96800765a11c5f8ec5b8e1417861ceb4fe296a784a28f25cc4fadbc7541577ee0a0ca1ae26c2ebd2cadf9b1b56914053eab51d6511282f9018e51024314d3699
|
data/History.txt
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.0
|
data/lib/stripe/account.rb
CHANGED
@@ -3,6 +3,8 @@ module Stripe
|
|
3
3
|
include Stripe::APIOperations::Save
|
4
4
|
include Stripe::APIOperations::Delete
|
5
5
|
|
6
|
+
OBJECT_NAME = 'alipay_account'
|
7
|
+
|
6
8
|
def resource_url
|
7
9
|
if respond_to?(:customer) && !self.customer.nil?
|
8
10
|
"#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
|
data/lib/stripe/balance.rb
CHANGED
data/lib/stripe/bank_account.rb
CHANGED
data/lib/stripe/card.rb
CHANGED
@@ -4,6 +4,8 @@ module Stripe
|
|
4
4
|
include Stripe::APIOperations::Delete
|
5
5
|
extend Stripe::APIOperations::List
|
6
6
|
|
7
|
+
OBJECT_NAME = 'card'
|
8
|
+
|
7
9
|
def resource_url
|
8
10
|
if respond_to?(:recipient) && !recipient.nil? && !recipient.empty?
|
9
11
|
"#{Recipient.resource_url}/#{CGI.escape(recipient)}/cards/#{CGI.escape(id)}"
|
data/lib/stripe/charge.rb
CHANGED
@@ -4,6 +4,8 @@ module Stripe
|
|
4
4
|
extend Stripe::APIOperations::Create
|
5
5
|
include Stripe::APIOperations::Save
|
6
6
|
|
7
|
+
OBJECT_NAME = 'charge'
|
8
|
+
|
7
9
|
def refund(params={}, opts={})
|
8
10
|
# Old versions of charge objects included a `refunds` field that was just
|
9
11
|
# a vanilla array instead of a Stripe list object.
|
data/lib/stripe/country_spec.rb
CHANGED
data/lib/stripe/coupon.rb
CHANGED
data/lib/stripe/customer.rb
CHANGED
data/lib/stripe/dispute.rb
CHANGED
data/lib/stripe/event.rb
CHANGED
data/lib/stripe/file_upload.rb
CHANGED
data/lib/stripe/invoice.rb
CHANGED
data/lib/stripe/invoice_item.rb
CHANGED
data/lib/stripe/list_object.rb
CHANGED
@@ -5,6 +5,8 @@ module Stripe
|
|
5
5
|
include Stripe::APIOperations::Request
|
6
6
|
include Stripe::APIOperations::Create
|
7
7
|
|
8
|
+
OBJECT_NAME = 'list'
|
9
|
+
|
8
10
|
# This accessor allows a `ListObject` to inherit various filters that were
|
9
11
|
# given to a predecessor. This allows for things like consistent limits,
|
10
12
|
# expansions, and predicates as a user pages through resources.
|
data/lib/stripe/order.rb
CHANGED
data/lib/stripe/order_return.rb
CHANGED
data/lib/stripe/payout.rb
CHANGED
data/lib/stripe/plan.rb
CHANGED
data/lib/stripe/product.rb
CHANGED
data/lib/stripe/recipient.rb
CHANGED
data/lib/stripe/refund.rb
CHANGED
data/lib/stripe/reversal.rb
CHANGED
data/lib/stripe/sku.rb
CHANGED
data/lib/stripe/source.rb
CHANGED
@@ -3,6 +3,8 @@ module Stripe
|
|
3
3
|
extend Stripe::APIOperations::Create
|
4
4
|
include Stripe::APIOperations::Save
|
5
5
|
|
6
|
+
OBJECT_NAME = 'source'
|
7
|
+
|
6
8
|
def delete(params={}, opts={})
|
7
9
|
if respond_to?(:customer) && !customer.nil? && !customer.empty?
|
8
10
|
url = "#{Customer.resource_url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
|
data/lib/stripe/subscription.rb
CHANGED
data/lib/stripe/token.rb
CHANGED
data/lib/stripe/transfer.rb
CHANGED
data/lib/stripe/util.rb
CHANGED
@@ -20,45 +20,45 @@ module Stripe
|
|
20
20
|
def self.object_classes
|
21
21
|
@object_classes ||= {
|
22
22
|
# data structures
|
23
|
-
|
23
|
+
ListObject::OBJECT_NAME => ListObject,
|
24
24
|
|
25
25
|
# business objects
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
26
|
+
Account::OBJECT_NAME => Account,
|
27
|
+
AlipayAccount::OBJECT_NAME => AlipayAccount,
|
28
|
+
ApplePayDomain::OBJECT_NAME => ApplePayDomain,
|
29
|
+
ApplicationFee::OBJECT_NAME => ApplicationFee,
|
30
|
+
ApplicationFeeRefund::OBJECT_NAME => ApplicationFeeRefund,
|
31
|
+
Balance::OBJECT_NAME => Balance,
|
32
|
+
BalanceTransaction::OBJECT_NAME => BalanceTransaction,
|
33
|
+
BankAccount::OBJECT_NAME => BankAccount,
|
34
|
+
BitcoinReceiver::OBJECT_NAME => BitcoinReceiver,
|
35
|
+
BitcoinTransaction::OBJECT_NAME => BitcoinTransaction,
|
36
|
+
Card::OBJECT_NAME => Card,
|
37
|
+
Charge::OBJECT_NAME => Charge,
|
38
|
+
CountrySpec::OBJECT_NAME => CountrySpec,
|
39
|
+
Coupon::OBJECT_NAME => Coupon,
|
40
|
+
Customer::OBJECT_NAME => Customer,
|
41
|
+
Dispute::OBJECT_NAME => Dispute,
|
42
|
+
Event::OBJECT_NAME => Event,
|
43
|
+
FileUpload::OBJECT_NAME => FileUpload,
|
44
|
+
Invoice::OBJECT_NAME => Invoice,
|
45
|
+
InvoiceItem::OBJECT_NAME => InvoiceItem,
|
46
|
+
Order::OBJECT_NAME => Order,
|
47
|
+
OrderReturn::OBJECT_NAME => OrderReturn,
|
48
|
+
Payout::OBJECT_NAME => Payout,
|
49
|
+
Plan::OBJECT_NAME => Plan,
|
50
|
+
Product::OBJECT_NAME => Product,
|
51
|
+
Recipient::OBJECT_NAME => Recipient,
|
52
|
+
RecipientTransfer::OBJECT_NAME => RecipientTransfer,
|
53
|
+
Refund::OBJECT_NAME => Refund,
|
54
|
+
Reversal::OBJECT_NAME => Reversal,
|
55
|
+
SKU::OBJECT_NAME => SKU,
|
56
|
+
Source::OBJECT_NAME => Source,
|
57
|
+
Subscription::OBJECT_NAME => Subscription,
|
58
|
+
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
59
|
+
ThreeDSecure::OBJECT_NAME => ThreeDSecure,
|
60
|
+
Token::OBJECT_NAME => Token,
|
61
|
+
Transfer::OBJECT_NAME => Transfer,
|
62
62
|
}
|
63
63
|
end
|
64
64
|
|
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: 2.
|
4
|
+
version: 2.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|