stripe 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7d907c3a718dd38a82e29ad6f16b5e3cd094e47
4
- data.tar.gz: 91085d626fac5258df86df165554cfd307791d76
3
+ metadata.gz: c7294599fe9890188f9995fefb9453d99e4ac570
4
+ data.tar.gz: 0132bcec888f45f9212bb4e707eaa6f50c12c671
5
5
  SHA512:
6
- metadata.gz: 97ac39759887972f5c8acee1b71be19b1d55a5faf3b423617159f15c1708fc0adfe7ee2965f715e117e33946e0c75cea8550bc9400d58d1885e50ddf1587fc8f
7
- data.tar.gz: 931a85a7ad7ccac15e9c4f6b424639ca730555befb04c1117ce952529a7dc046e2d9c9af7b61ab87d6311672540842bfe9790bb866f109c387563adb9c38f4e5
6
+ metadata.gz: c345c1616c54c44c33399f481e098d2f2226b3f1ecab9026e9e2b1500510530b11ac010138e6a6afd9651ef295f942a499dc20d2dabef611ed7ab084344c99fc
7
+ data.tar.gz: 688bbd23aa65028fc2d9d675887d17a7242a808ac02c0f44713d32c5579fa851fd71f1b50ed9814b9e054d28bb3c7b217b649ea745c01510044627fea052da34
@@ -1,3 +1,7 @@
1
+ === 2.2.0 2017-04-06
2
+
3
+ * Add support for payouts and recipient transfers
4
+
1
5
  === 2.1.0 2017-03-17
2
6
 
3
7
  * Support for detaching sources from customers
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  The Stripe Ruby library provides convenient access to the Stripe API from
4
4
  applications written in the Ruby language. It includes a pre-defined set of
5
5
  classes for API resources that initialize themselves dynamically from API
6
- responses. This allows it to operate on a number of different versions of the
6
+ responses which makes it compatible with a wide range of versions of the Stripe
7
7
  API.
8
8
 
9
9
  The library also provides other features. For example:
@@ -149,3 +149,7 @@ Update bundled OpenAPI specification from the canonical repository:
149
149
  [curl]: http://curl.haxx.se/docs/caextract.html
150
150
  [faraday]: https://github.com/lostisland/faraday
151
151
  [idempotency-keys]: https://stripe.com/docs/api/ruby#idempotent_requests
152
+
153
+ <!--
154
+ # vim: set tw=79:
155
+ -->
data/Rakefile CHANGED
@@ -18,9 +18,9 @@ desc "Update OpenAPI specification"
18
18
  task :update_openapi do
19
19
  require "faraday"
20
20
 
21
- ["fixtures.json", "fixtures.yaml", "spec.json", "spec.yaml"].map { |file|
21
+ ["fixtures.json", "fixtures.yaml", "spec2.json", "spec2.yaml"].map { |file|
22
22
  Thread.new do
23
- fetch_file "https://raw.githubusercontent.com/stripe/openapi/master/spec/#{file}",
23
+ fetch_file "https://raw.githubusercontent.com/stripe/openapi/master/openapi/#{file}",
24
24
  File.expand_path("../openapi/#{file}", __FILE__)
25
25
  end
26
26
  }.map { |t| t.join }
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.0
1
+ 2.2.0
@@ -52,9 +52,11 @@ require 'stripe/invoice'
52
52
  require 'stripe/invoice_item'
53
53
  require 'stripe/order'
54
54
  require 'stripe/order_return'
55
+ require 'stripe/payout'
55
56
  require 'stripe/plan'
56
57
  require 'stripe/product'
57
58
  require 'stripe/recipient'
59
+ require 'stripe/recipient_transfer'
58
60
  require 'stripe/refund'
59
61
  require 'stripe/reversal'
60
62
  require 'stripe/sku'
@@ -0,0 +1,16 @@
1
+ module Stripe
2
+ class Payout < APIResource
3
+ extend Stripe::APIOperations::List
4
+ extend Stripe::APIOperations::Create
5
+ include Stripe::APIOperations::Save
6
+
7
+ def cancel
8
+ resp, api_key = self.request(:post, cancel_url)
9
+ initialize_from(resp.data, api_key)
10
+ end
11
+
12
+ def cancel_url
13
+ resource_url + '/cancel'
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,4 @@
1
+ module Stripe
2
+ class RecipientTransfer < StripeObject
3
+ end
4
+ end
@@ -45,9 +45,11 @@ module Stripe
45
45
  'invoiceitem' => InvoiceItem,
46
46
  'order' => Order,
47
47
  'order_return' => OrderReturn,
48
+ 'payout' => Payout,
48
49
  'plan' => Plan,
49
50
  'product' => Product,
50
51
  'recipient' => Recipient,
52
+ 'recipient_transfer' => RecipientTransfer,
51
53
  'refund' => Refund,
52
54
  'sku' => SKU,
53
55
  'source' => Source,
@@ -1,3 +1,3 @@
1
1
  module Stripe
2
- VERSION = '2.1.0'
2
+ VERSION = '2.2.0'
3
3
  end
@@ -1,1187 +1,1018 @@
1
1
  {
2
- "account": {
3
- "active_payment_methods": [
4
-
5
- ],
6
- "bank_accounts": {
7
- },
8
- "business_logo": "",
9
- "business_name": "",
10
- "business_primary_color": "",
11
- "business_url": "",
12
- "charges_enabled": false,
13
- "country": "US",
14
- "debit_negative_balances": true,
15
- "decline_charge_on": {
16
- "avs_failure": false,
17
- "cvc_failure": false
18
- },
19
- "default_currency": "usd",
20
- "details_submitted": false,
21
- "display_name": "",
22
- "email": "foo+os4pphkove@example.com",
23
- "external_accounts": {
24
- "data": [
2
+ "resources": {
3
+ "account": {
4
+ "active_payment_methods": [
25
5
 
26
6
  ],
27
- "has_more": false,
28
- "object": "list",
29
- "total_count": 0,
30
- "url": "/v1/accounts/acct_19y6HAAylotNGqt3/external_accounts"
31
- },
32
- "fake_account": false,
33
- "id": "acct_19y6HAAylotNGqt3",
34
- "legal_entity": {
35
- "additional_owners": null,
36
- "address": {
37
- "city": null,
38
- "country": "US",
39
- "line1": null,
40
- "line2": null,
41
- "postal_code": null,
42
- "state": null
43
- },
44
- "business_name": null,
45
- "business_name_kana": null,
46
- "business_name_kanji": null,
47
- "business_tax_id_provided": false,
48
- "business_vat_id_provided": false,
49
- "dob": {
50
- "day": null,
51
- "month": null,
52
- "year": null
53
- },
54
- "first_name": null,
55
- "first_name_kana": null,
56
- "first_name_kanji": null,
57
- "gender": null,
58
- "last_name": null,
59
- "last_name_kana": null,
60
- "last_name_kanji": null,
61
- "maiden_name": null,
62
- "personal_address": {
63
- "city": null,
64
- "country": "US",
65
- "line1": null,
66
- "line2": null,
67
- "postal_code": null,
68
- "state": null
69
- },
70
- "personal_id_number_provided": false,
71
- "phone_number": null,
72
- "ssn_last_4_provided": false,
73
- "type": null,
7
+ "bank_accounts": {
8
+ },
9
+ "business_logo": "",
10
+ "business_name": "",
11
+ "business_primary_color": "",
12
+ "business_url": "",
13
+ "charges_enabled": false,
14
+ "country": "US",
15
+ "debit_negative_balances": true,
16
+ "decline_charge_on": {
17
+ "avs_failure": true,
18
+ "cvc_failure": true
19
+ },
20
+ "default_currency": "usd",
21
+ "details_submitted": false,
22
+ "display_name": "",
23
+ "email": "site@stripe.com",
24
+ "external_accounts": {
25
+ "data": [
26
+
27
+ ],
28
+ "has_more": false,
29
+ "object": "list",
30
+ "total_count": 0,
31
+ "url": "/v1/accounts/acct_19tLK7DSlTMT26Mk/external_accounts"
32
+ },
33
+ "fake_account": false,
34
+ "id": "acct_19tLK7DSlTMT26Mk",
35
+ "legal_entity": {
36
+ "address": {
37
+ "city": null,
38
+ "country": "US",
39
+ "line1": null,
40
+ "line2": null,
41
+ "postal_code": null,
42
+ "state": null
43
+ },
44
+ "business_name": null,
45
+ "business_tax_id_provided": false,
46
+ "dob": {
47
+ "day": null,
48
+ "month": null,
49
+ "year": null
50
+ },
51
+ "first_name": null,
52
+ "last_name": null,
53
+ "personal_address": {
54
+ "city": null,
55
+ "country": "US",
56
+ "line1": null,
57
+ "line2": null,
58
+ "postal_code": null,
59
+ "state": null
60
+ },
61
+ "ssn_last_4_provided": false,
62
+ "type": null,
63
+ "verification": {
64
+ "details": null,
65
+ "details_code": null,
66
+ "document": null,
67
+ "status": "unverified"
68
+ }
69
+ },
70
+ "light": false,
71
+ "managed": true,
72
+ "mcc": "",
73
+ "metadata": {
74
+ },
75
+ "object": "account",
76
+ "orders": {
77
+ },
78
+ "payout_schedule": {
79
+ "delay_days": 2,
80
+ "interval": "daily"
81
+ },
82
+ "payout_statement_descriptor": "",
83
+ "payouts_enabled": false,
84
+ "product_description": "",
85
+ "risk_details": {
86
+ },
87
+ "statement_descriptor": "",
88
+ "support_address": {
89
+ },
90
+ "support_email": "",
91
+ "support_phone": "",
92
+ "support_url": "",
93
+ "timezone": "Etc/UTC",
94
+ "tos_acceptance": {
95
+ "date": null,
96
+ "ip": null,
97
+ "user_agent": null
98
+ },
74
99
  "verification": {
75
- "details": null,
76
- "details_code": null,
77
- "document": null,
78
- "status": "unverified"
100
+ "disabled_reason": "fields_needed",
101
+ "due_by": null,
102
+ "fields_needed": [
103
+ "business_url",
104
+ "external_account",
105
+ "product_description",
106
+ "support_phone",
107
+ "tos_acceptance.date",
108
+ "tos_acceptance.ip"
109
+ ]
79
110
  }
80
111
  },
81
- "light": false,
82
- "managed": true,
83
- "mcc": "",
84
- "metadata": {
85
- },
86
- "object": "account",
87
- "orders": {
88
- },
89
- "product_description": "",
90
- "risk_details": {
91
- },
92
- "statement_descriptor": "",
93
- "support_address": {
94
- },
95
- "support_email": "",
96
- "support_phone": "",
97
- "support_url": "",
98
- "timezone": "Etc/UTC",
99
- "tos_acceptance": {
100
- "date": null,
101
- "ip": null,
102
- "user_agent": null
103
- },
104
- "transfer_schedule": {
105
- "delay_days": 7,
106
- "interval": "daily"
107
- },
108
- "transfer_statement_descriptor": "",
109
- "transfers_enabled": false,
110
- "verification": {
111
- "disabled_reason": "fields_needed",
112
- "due_by": null,
113
- "fields_needed": [
114
- "business_url",
115
- "external_account",
116
- "product_description",
117
- "support_phone",
118
- "tos_acceptance.date",
119
- "tos_acceptance.ip"
120
- ]
121
- }
122
- },
123
- "account_with_keys": {
124
- "active_payment_methods": [
112
+ "account_with_keys": {
113
+ "active_payment_methods": [
125
114
 
126
- ],
127
- "bank_accounts": {
128
- },
129
- "business_logo": "",
130
- "business_name": "",
131
- "business_primary_color": "",
132
- "business_url": "",
133
- "charges_enabled": false,
134
- "country": "US",
135
- "debit_negative_balances": false,
136
- "decline_charge_on": {
137
- },
138
- "default_currency": "usd",
139
- "details_submitted": false,
140
- "display_name": "",
141
- "email": "foo+os4pphkove@example.com",
142
- "external_accounts": {
143
- },
144
- "fake_account": false,
145
- "id": "acct_19y6HAAylotNGqt3",
146
- "keys": {
147
- },
148
- "legal_entity": {
149
- },
150
- "light": false,
151
- "managed": false,
152
- "mcc": "",
153
- "metadata": {
154
- },
155
- "object": "account",
156
- "orders": {
157
- },
158
- "product_description": "",
159
- "risk_details": {
160
- },
161
- "statement_descriptor": "",
162
- "support_address": {
163
- },
164
- "support_email": "",
165
- "support_phone": "",
166
- "support_url": "",
167
- "timezone": "Etc/UTC",
168
- "tos_acceptance": {
169
- },
170
- "transfer_schedule": {
171
- },
172
- "transfer_statement_descriptor": "",
173
- "transfers_enabled": false,
174
- "verification": {
175
- }
176
- },
177
- "alipay_account": {
178
- "created": 1234567890,
179
- "customer": "",
180
- "fingerprint": "eiRpjVAne6V7vzjH",
181
- "id": "aliacc_19y6HIAylotNGqt3CWxIarua",
182
- "livemode": false,
183
- "metadata": {
115
+ ],
116
+ "bank_accounts": {
117
+ },
118
+ "business_logo": "",
119
+ "business_name": "",
120
+ "business_primary_color": "",
121
+ "business_url": "",
122
+ "charges_enabled": false,
123
+ "country": "US",
124
+ "debit_negative_balances": false,
125
+ "decline_charge_on": {
126
+ },
127
+ "default_currency": "usd",
128
+ "details_submitted": false,
129
+ "display_name": "",
130
+ "email": "site@stripe.com",
131
+ "external_accounts": {
132
+ },
133
+ "fake_account": false,
134
+ "id": "acct_19tLK7DSlTMT26Mk",
135
+ "keys": {
136
+ },
137
+ "legal_entity": {
138
+ },
139
+ "light": false,
140
+ "managed": false,
141
+ "mcc": "",
142
+ "metadata": {
143
+ },
144
+ "object": "account",
145
+ "orders": {
146
+ },
147
+ "payout_schedule": {
148
+ },
149
+ "payout_statement_descriptor": "",
150
+ "payouts_enabled": false,
151
+ "product_description": "",
152
+ "risk_details": {
153
+ },
154
+ "statement_descriptor": "",
155
+ "support_address": {
156
+ },
157
+ "support_email": "",
158
+ "support_phone": "",
159
+ "support_url": "",
160
+ "timezone": "Etc/UTC",
161
+ "tos_acceptance": {
162
+ },
163
+ "verification": {
164
+ }
184
165
  },
185
- "object": "alipay_account",
186
- "payment_amount": 1000,
187
- "payment_currency": "usd",
188
- "reusable": false,
189
- "used": false,
190
- "username": "test@example.com"
191
- },
192
- "apple_pay_domain": {
193
- "created": 1234567890,
194
- "domain_name": "example.com",
195
- "id": "apwc_19y6HHAylotNGqt3514QiFTd",
196
- "livemode": true,
197
- "object": "apple_pay_domain"
198
- },
199
- "balance": {
200
- "available": [
201
- {
202
- "amount": 0,
203
- "currency": "usd",
204
- "source_types": {
205
- "card": 0
166
+ "alipay_account": {
167
+ "created": 1234567890,
168
+ "customer": "",
169
+ "fingerprint": "NYUNwalrZGyUB5WV",
170
+ "id": "aliacc_19zuujDSlTMT26MkefiECdjT",
171
+ "livemode": false,
172
+ "metadata": {
173
+ },
174
+ "object": "alipay_account",
175
+ "payment_amount": 1000,
176
+ "payment_currency": "usd",
177
+ "reusable": false,
178
+ "used": false,
179
+ "username": "test@example.com"
180
+ },
181
+ "apple_pay_domain": {
182
+ "created": 1234567890,
183
+ "domain_name": "example.com",
184
+ "id": "apwc_19zuugDSlTMT26MkaEqesPjq",
185
+ "livemode": true,
186
+ "object": "apple_pay_domain"
187
+ },
188
+ "balance": {
189
+ "available": [
190
+ {
191
+ "amount": 0,
192
+ "currency": "usd",
193
+ "source_types": {
194
+ "card": 0
195
+ }
206
196
  }
207
- }
208
- ],
209
- "connect_reserved": [
197
+ ],
198
+ "connect_reserved": [
210
199
 
211
- ],
212
- "livemode": false,
213
- "object": "balance",
214
- "pending": [
215
- {
216
- "amount": 0,
217
- "currency": "usd",
218
- "source_types": {
219
- "card": 0
200
+ ],
201
+ "livemode": false,
202
+ "object": "balance",
203
+ "pending": [
204
+ {
205
+ "amount": 0,
206
+ "currency": "usd",
207
+ "source_types": {
208
+ "card": 0
209
+ }
220
210
  }
221
- }
222
- ]
223
- },
224
- "balance_transaction": {
225
- "amount": 100,
226
- "automatic_transfer": {
227
- },
228
- "available_on": 1234567890,
229
- "created": 1234567890,
230
- "currency": "usd",
231
- "description": "",
232
- "fee": 0,
233
- "fee_details": [
234
-
235
- ],
236
- "id": "txn_19y6HHAylotNGqt33AMqhSaS",
237
- "net": 100,
238
- "object": "balance_transaction",
239
- "source": "ch_19y6HHAylotNGqt3dguVG1mI",
240
- "sourced_transfers": {
241
- },
242
- "status": "pending",
243
- "type": "charge"
244
- },
245
- "bank_account": {
246
- "account": "acct_19y6HAAylotNGqt3",
247
- "account_holder_name": "Jane Austen",
248
- "account_holder_type": "individual",
249
- "address_city": "",
250
- "address_line1": "",
251
- "address_line2": "",
252
- "address_state": "",
253
- "address_zip": "",
254
- "allows_debits": false,
255
- "bank_name": "STRIPE TEST BANK",
256
- "bank_phone_number": "",
257
- "country": "US",
258
- "currency": "usd",
259
- "customer": "",
260
- "customer_reference": "",
261
- "default_for_currency": false,
262
- "fingerprint": "G8AlCiZpIixKrovm",
263
- "id": "ba_19y6HIAylotNGqt37Bbh2BEi",
264
- "last4": "6789",
265
- "metadata": {
266
- },
267
- "object": "bank_account",
268
- "reusable": false,
269
- "routing_number": "110000000",
270
- "status": "new",
271
- "used": false
272
- },
273
- "bitcoin_receiver": {
274
- "active": false,
275
- "amount": 100,
276
- "amount_received": 0,
277
- "bitcoin_amount": 1757908,
278
- "bitcoin_amount_received": 0,
279
- "bitcoin_uri": "bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908",
280
- "created": 1234567890,
281
- "currency": "usd",
282
- "customer": "",
283
- "description": "Receiver for John Doe",
284
- "email": "test@example.com",
285
- "filled": false,
286
- "id": "btcrcv_19y6HIAylotNGqt3PPrzs2zr",
287
- "inbound_address": "test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1",
288
- "livemode": false,
289
- "metadata": {
290
- },
291
- "object": "bitcoin_receiver",
292
- "payment": "",
293
- "refund_address": "",
294
- "transactions": {
295
- },
296
- "uncaptured_funds": false,
297
- "used_for_payment": false
298
- },
299
- "bitcoin_transaction": {
300
- "amount": 100,
301
- "bitcoin_amount": 1757908,
302
- "created": 1234567890,
303
- "currency": "usd",
304
- "id": "btctxn_19y6HIAylotNGqt3ufx7IrFQ",
305
- "object": "bitcoin_transaction",
306
- "receiver": "btcrcv_19y6HIBBq8Um5VVVjcO0R7nU"
307
- },
308
- "card": {
309
- "3d_secure": {
211
+ ]
310
212
  },
311
- "account": "",
312
- "address_city": "",
313
- "address_country": "",
314
- "address_line1": "",
315
- "address_line1_check": "",
316
- "address_line2": "",
317
- "address_state": "",
318
- "address_zip": "",
319
- "address_zip_check": "",
320
- "available_payout_methods": [
213
+ "balance_transaction": {
214
+ "amount": 100,
215
+ "automatic_transfer": {
216
+ },
217
+ "available_on": 1234567890,
218
+ "created": 1234567890,
219
+ "currency": "usd",
220
+ "description": "",
221
+ "fee": 0,
222
+ "fee_details": [
321
223
 
322
- ],
323
- "brand": "Visa",
324
- "country": "",
325
- "currency": "",
326
- "customer": "",
327
- "cvc_check": "",
328
- "default_for_currency": false,
329
- "description": "",
330
- "dynamic_last4": "",
331
- "emv_auth_data": "",
332
- "estimated_availability": "",
333
- "exp_month": 8,
334
- "exp_year": 2018,
335
- "fingerprint": "",
336
- "funding": "unknown",
337
- "google_reference": "",
338
- "id": "card_19y6HHAylotNGqt3SvYv7I1c",
339
- "iin": "",
340
- "issuer": "",
341
- "last4": "4242",
342
- "metadata": {
224
+ ],
225
+ "id": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
226
+ "net": 100,
227
+ "object": "balance_transaction",
228
+ "source": "ch_19zuuhDSlTMT26MkKLSiekJ9",
229
+ "sourced_transfers": {
230
+ },
231
+ "status": "pending",
232
+ "type": "charge"
343
233
  },
344
- "name": "",
345
- "object": "card",
346
- "recipient": "",
347
- "three_d_secure": {
234
+ "bank_account": {
235
+ "account": "acct_19tLK7DSlTMT26Mk",
236
+ "account_holder_name": "Jane Austen",
237
+ "account_holder_type": "individual",
238
+ "address_city": "",
239
+ "address_line1": "",
240
+ "address_line2": "",
241
+ "address_state": "",
242
+ "address_zip": "",
243
+ "allows_debits": false,
244
+ "bank_name": "STRIPE TEST BANK",
245
+ "bank_phone_number": "",
246
+ "country": "US",
247
+ "currency": "usd",
248
+ "customer": "",
249
+ "customer_reference": "",
250
+ "default_for_currency": false,
251
+ "fingerprint": "ryfzKJTPWAUfw2iL",
252
+ "id": "ba_19zuuiDSlTMT26Mk8HQCpGLE",
253
+ "last4": "6789",
254
+ "metadata": {
255
+ },
256
+ "object": "bank_account",
257
+ "reusable": false,
258
+ "routing_number": "110000000",
259
+ "status": "new",
260
+ "used": false
261
+ },
262
+ "bitcoin_receiver": {
263
+ "active": false,
264
+ "amount": 100,
265
+ "amount_received": 0,
266
+ "bitcoin_amount": 1757908,
267
+ "bitcoin_amount_received": 0,
268
+ "bitcoin_uri": "bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908",
269
+ "created": 1234567890,
270
+ "currency": "usd",
271
+ "customer": "",
272
+ "description": "Receiver for John Doe",
273
+ "email": "test@example.com",
274
+ "filled": false,
275
+ "id": "btcrcv_19zYqFDSlTMT26Mk31J1pMex",
276
+ "inbound_address": "test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1",
277
+ "livemode": false,
278
+ "metadata": {
279
+ },
280
+ "object": "bitcoin_receiver",
281
+ "payment": "",
282
+ "refund_address": "",
283
+ "transactions": {
284
+ },
285
+ "uncaptured_funds": false,
286
+ "used_for_payment": false
348
287
  },
349
- "tokenization_method": ""
350
- },
351
- "charge": {
352
- "alternate_statement_descriptors": {
288
+ "bitcoin_transaction": {
289
+ "amount": 100,
290
+ "bitcoin_amount": 1757908,
291
+ "created": 1234567890,
292
+ "currency": "usd",
293
+ "id": "btctxn_19zuujDSlTMT26MkHOZALNf7",
294
+ "object": "bitcoin_transaction",
295
+ "receiver": "btcrcv_19zYqFDSlTMT26Mk31J1pMex"
353
296
  },
354
- "amount": 100,
355
- "amount_authorized": 0,
356
- "amount_captured": 0,
357
- "amount_refunded": 0,
358
- "application": "",
359
- "application_fee": "",
360
- "application_fees_refunded": 0,
361
- "authorization_code": "",
362
- "balance_transaction": "txn_19y6HHAylotNGqt33AMqhSaS",
363
- "captured": true,
364
297
  "card": {
365
- },
366
- "created": 1234567890,
367
- "currency": "usd",
368
- "customer": "",
369
- "description": "My First Test Charge (created for API docs)",
370
- "destination": "",
371
- "dispute": "",
372
- "failure_code": "",
373
- "failure_message": "",
374
- "fee_balance_transactions": {
375
- },
376
- "fraud_details": {
377
- },
378
- "id": "ch_19y6HHAylotNGqt3dguVG1mI",
379
- "invoice": "",
380
- "level3": {
381
- },
382
- "livemode": false,
383
- "metadata": {
384
- },
385
- "object": "charge",
386
- "on_behalf_of": "",
387
- "order": "",
388
- "outcome": {
389
- },
390
- "paid": true,
391
- "receipt_email": "",
392
- "receipt_number": "",
393
- "refunded": false,
394
- "refunds": {
395
- "data": [
298
+ "3d_secure": {
299
+ },
300
+ "account": "",
301
+ "address_city": "",
302
+ "address_country": "",
303
+ "address_line1": "",
304
+ "address_line1_check": "",
305
+ "address_line2": "",
306
+ "address_state": "",
307
+ "address_zip": "",
308
+ "address_zip_check": "",
309
+ "available_payout_methods": [
396
310
 
397
311
  ],
398
- "has_more": false,
399
- "object": "list",
400
- "total_count": 0,
401
- "url": "/v1/charges/ch_19y6HHAylotNGqt3dguVG1mI/refunds"
402
- },
403
- "review": "",
404
- "shipping": {
405
- },
406
- "source": {
407
- "address_city": null,
408
- "address_country": null,
409
- "address_line1": null,
410
- "address_line1_check": null,
411
- "address_line2": null,
412
- "address_state": null,
413
- "address_zip": null,
414
- "address_zip_check": null,
415
312
  "brand": "Visa",
416
- "country": null,
417
- "customer": null,
418
- "cvc_check": null,
419
- "dynamic_last4": null,
313
+ "country": "",
314
+ "currency": "",
315
+ "customer": "",
316
+ "cvc_check": "",
317
+ "default_for_currency": false,
318
+ "description": "",
319
+ "dynamic_last4": "",
320
+ "emv_auth_data": "",
321
+ "estimated_availability": "",
420
322
  "exp_month": 8,
421
323
  "exp_year": 2018,
324
+ "fingerprint": "",
422
325
  "funding": "unknown",
423
- "id": "card_19y6HHAylotNGqt3SvYv7I1c",
326
+ "google_reference": "",
327
+ "id": "card_19tLKYDSlTMT26Mkl7bixGYc",
328
+ "iin": "",
329
+ "issuer": "",
424
330
  "last4": "4242",
425
331
  "metadata": {
426
332
  },
427
- "name": null,
333
+ "name": "",
428
334
  "object": "card",
429
- "tokenization_method": null
430
- },
431
- "source_transfer": "",
432
- "statement_descriptor": "",
433
- "status": "succeeded",
434
- "transfer": "",
435
- "transfer_group": "",
436
- "trust": {
437
- }
438
- },
439
- "country_spec": {
440
- "default_currency": "usd",
441
- "field_schemas": {
442
- },
443
- "id": "US",
444
- "object": "country_spec",
445
- "supported_bank_account_currencies": {
446
- "usd": [
447
- "US"
448
- ]
335
+ "recipient": "",
336
+ "three_d_secure": {
337
+ },
338
+ "tokenization_method": ""
449
339
  },
450
- "supported_payment_currencies": [
451
- "...",
452
- "aed",
453
- "afn",
454
- "usd"
455
- ],
456
- "supported_payment_methods": [
457
- "alipay",
458
- "card",
459
- "stripe"
460
- ],
461
- "verification_fields": {
462
- "company": {
463
- "additional": [
464
-
465
- ],
466
- "minimum": [
467
-
468
- ]
340
+ "charge": {
341
+ "alternate_statement_descriptors": {
469
342
  },
470
- "individual": {
471
- "additional": [
343
+ "amount": 100,
344
+ "amount_authorized": 0,
345
+ "amount_captured": 0,
346
+ "amount_refunded": 0,
347
+ "application": "",
348
+ "application_fee": "",
349
+ "application_fees_refunded": 0,
350
+ "authorization_code": "",
351
+ "balance_transaction": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
352
+ "captured": true,
353
+ "captured_at": 1234567890,
354
+ "card": {
355
+ },
356
+ "created": 1234567890,
357
+ "currency": "usd",
358
+ "customer": "",
359
+ "description": "My First Test Charge (created for API docs)",
360
+ "destination": "",
361
+ "dispute": "",
362
+ "failure_code": "",
363
+ "failure_message": "",
364
+ "fee_balance_transactions": {
365
+ },
366
+ "fraud_details": {
367
+ },
368
+ "id": "ch_19zuuhDSlTMT26MkKLSiekJ9",
369
+ "invoice": "",
370
+ "level3": {
371
+ },
372
+ "livemode": false,
373
+ "metadata": {
374
+ },
375
+ "object": "charge",
376
+ "on_behalf_of": "",
377
+ "order": "",
378
+ "outcome": {
379
+ },
380
+ "paid": true,
381
+ "receipt_email": "",
382
+ "receipt_number": "",
383
+ "refunded": false,
384
+ "refunds": {
385
+ "data": [
472
386
 
473
387
  ],
474
- "minimum": [
475
-
476
- ]
388
+ "has_more": false,
389
+ "object": "list",
390
+ "total_count": 0,
391
+ "url": "/v1/charges/ch_19zuuhDSlTMT26MkKLSiekJ9/refunds"
392
+ },
393
+ "review": "",
394
+ "shipping": {
395
+ },
396
+ "source": {
397
+ "address_city": null,
398
+ "address_country": null,
399
+ "address_line1": null,
400
+ "address_line1_check": null,
401
+ "address_line2": null,
402
+ "address_state": null,
403
+ "address_zip": null,
404
+ "address_zip_check": null,
405
+ "brand": "Visa",
406
+ "country": null,
407
+ "customer": null,
408
+ "cvc_check": null,
409
+ "dynamic_last4": null,
410
+ "exp_month": 8,
411
+ "exp_year": 2018,
412
+ "funding": "unknown",
413
+ "id": "card_19tLKYDSlTMT26Mkl7bixGYc",
414
+ "last4": "4242",
415
+ "metadata": {
416
+ },
417
+ "name": null,
418
+ "object": "card",
419
+ "tokenization_method": null
420
+ },
421
+ "source_transfer": "",
422
+ "statement_descriptor": "",
423
+ "status": "succeeded",
424
+ "transfer": "",
425
+ "transfer_group": "",
426
+ "trust": {
477
427
  }
478
- }
479
- },
480
- "coupon": {
481
- "amount_off": 0,
482
- "created": 1234567890,
483
- "currency": "usd",
484
- "duration": "repeating",
485
- "duration_in_months": 3,
486
- "id": "25OFF",
487
- "livemode": false,
488
- "max_redemptions": 0,
489
- "metadata": {
490
- },
491
- "object": "coupon",
492
- "percent_off": 25,
493
- "redeem_by": 1234567890,
494
- "times_redeemed": 0,
495
- "valid": true
496
- },
497
- "customer": {
498
- "account_balance": 0,
499
- "alipay_accounts": {
500
- },
501
- "bank_accounts": {
502
- },
503
- "business_vat_id": "",
504
- "cards": {
505
- },
506
- "created": 1234567890,
507
- "currency": "usd",
508
- "default_bank_account": "",
509
- "default_card": "",
510
- "default_source": "",
511
- "default_source_type": "",
512
- "delinquent": false,
513
- "description": "",
514
- "discount": {
515
428
  },
516
- "email": "",
517
- "id": "cus_AIhgCDhEsqLqXq",
518
- "livemode": false,
519
- "metadata": {
520
- },
521
- "object": "customer",
522
- "shipping": {
523
- },
524
- "sources": {
525
- "data": [
526
-
429
+ "country_spec": {
430
+ "default_currency": "usd",
431
+ "field_schemas": {
432
+ },
433
+ "id": "US",
434
+ "object": "country_spec",
435
+ "supported_bank_account_currencies": {
436
+ "usd": [
437
+ "US"
438
+ ]
439
+ },
440
+ "supported_payment_currencies": [
441
+ "...",
442
+ "aed",
443
+ "afn",
444
+ "usd"
527
445
  ],
528
- "has_more": false,
529
- "object": "list",
530
- "total_count": 0,
531
- "url": "/v1/customers/cus_AIhgCDhEsqLqXq/sources"
532
- },
533
- "subscription": {
534
- },
535
- "subscriptions": {
536
- },
537
- "trust": {
538
- }
539
- },
540
- "customer_source": {
541
- "customer": "",
542
- "id": "ba_19y6HIAylotNGqt37Bbh2BEi",
543
- "metadata": {
446
+ "supported_payment_methods": [
447
+ "alipay",
448
+ "card",
449
+ "stripe"
450
+ ],
451
+ "verification_fields": {
452
+ "company": {
453
+ "additional": [
454
+ "legal_entity.verification.document"
455
+ ],
456
+ "minimum": [
457
+ "external_account",
458
+ "legal_entity.address.city",
459
+ "legal_entity.address.line1",
460
+ "legal_entity.address.postal_code",
461
+ "legal_entity.address.state",
462
+ "legal_entity.business_name",
463
+ "legal_entity.business_tax_id",
464
+ "legal_entity.dob.day",
465
+ "legal_entity.dob.month",
466
+ "legal_entity.dob.year",
467
+ "legal_entity.first_name",
468
+ "legal_entity.last_name",
469
+ "legal_entity.ssn_last_4",
470
+ "legal_entity.type",
471
+ "tos_acceptance.date",
472
+ "tos_acceptance.ip"
473
+ ]
474
+ },
475
+ "individual": {
476
+ "additional": [
477
+ "legal_entity.verification.document"
478
+ ],
479
+ "minimum": [
480
+ "external_account",
481
+ "legal_entity.address.city",
482
+ "legal_entity.address.line1",
483
+ "legal_entity.address.postal_code",
484
+ "legal_entity.address.state",
485
+ "legal_entity.dob.day",
486
+ "legal_entity.dob.month",
487
+ "legal_entity.dob.year",
488
+ "legal_entity.first_name",
489
+ "legal_entity.last_name",
490
+ "legal_entity.ssn_last_4",
491
+ "legal_entity.type",
492
+ "tos_acceptance.date",
493
+ "tos_acceptance.ip"
494
+ ]
495
+ }
496
+ }
544
497
  },
545
- "object": "bank_account"
546
- },
547
- "discount": {
548
498
  "coupon": {
549
- "amount_off": null,
550
- "created": 1489700220,
499
+ "amount_off": 0,
500
+ "created": 1234567890,
551
501
  "currency": "usd",
552
502
  "duration": "repeating",
553
503
  "duration_in_months": 3,
554
504
  "id": "25OFF",
555
505
  "livemode": false,
556
- "max_redemptions": null,
506
+ "max_redemptions": 0,
557
507
  "metadata": {
558
508
  },
559
509
  "object": "coupon",
560
510
  "percent_off": 25,
561
- "redeem_by": null,
511
+ "redeem_by": 1234567890,
562
512
  "times_redeemed": 0,
563
513
  "valid": true
564
514
  },
565
- "customer": "cus_AIhgCDhEsqLqXq",
566
- "end": 1234567890,
567
- "object": "discount",
568
- "start": 1234567890,
569
- "subscription": ""
570
- },
571
- "dispute": {
572
- "accepted_at": 1234567890,
573
- "amount": 1000,
574
- "balance_transaction": "",
575
- "balance_transactions": [
515
+ "customer": {
516
+ "account_balance": 0,
517
+ "alipay_accounts": {
518
+ },
519
+ "bank_accounts": {
520
+ },
521
+ "business_vat_id": "",
522
+ "cards": {
523
+ },
524
+ "created": 1234567890,
525
+ "currency": "usd",
526
+ "default_bank_account": "",
527
+ "default_card": "",
528
+ "default_source": "",
529
+ "default_source_type": "",
530
+ "delinquent": false,
531
+ "description": "",
532
+ "discount": {
533
+ },
534
+ "email": "",
535
+ "id": "cus_ADmuABetLS15eF",
536
+ "livemode": false,
537
+ "metadata": {
538
+ },
539
+ "object": "customer",
540
+ "shipping": {
541
+ },
542
+ "sources": {
543
+ "data": [
576
544
 
577
- ],
578
- "charge": "ch_19y6HHAylotNGqt3dguVG1mI",
579
- "closed_at": 1234567890,
580
- "created": 1234567890,
581
- "currency": "usd",
582
- "escalated_at": 1234567890,
583
- "evidence": {
584
- "access_activity_log": null,
585
- "billing_address": null,
586
- "cancellation_policy": null,
587
- "cancellation_policy_disclosure": null,
588
- "cancellation_rebuttal": null,
589
- "customer_communication": null,
590
- "customer_email_address": null,
591
- "customer_name": null,
592
- "customer_purchase_ip": null,
593
- "customer_signature": null,
594
- "duplicate_charge_documentation": null,
595
- "duplicate_charge_explanation": null,
596
- "duplicate_charge_id": null,
597
- "product_description": null,
598
- "receipt": null,
599
- "refund_policy": null,
600
- "refund_policy_disclosure": null,
601
- "refund_refusal_explanation": null,
602
- "service_date": null,
603
- "service_documentation": null,
604
- "shipping_address": null,
605
- "shipping_carrier": null,
606
- "shipping_date": null,
607
- "shipping_documentation": null,
608
- "shipping_tracking_number": null,
609
- "uncategorized_file": null,
610
- "uncategorized_text": null
611
- },
612
- "evidence_details": {
613
- "due_by": 1491350399,
614
- "has_evidence": false,
615
- "past_due": false,
616
- "submission_count": 0
545
+ ],
546
+ "has_more": false,
547
+ "object": "list",
548
+ "total_count": 0,
549
+ "url": "/v1/customers/cus_ADmuABetLS15eF/sources"
550
+ },
551
+ "subscription": {
552
+ },
553
+ "subscriptions": {
554
+ },
555
+ "trust": {
556
+ }
617
557
  },
618
- "evidence_submitted_at": [
619
-
620
- ],
621
- "id": "dp_19y6HHAylotNGqt3bvR7ZOnH",
622
- "is_charge_refundable": false,
623
- "is_protected": false,
624
- "livemode": false,
625
- "metadata": {
558
+ "customer_source": {
559
+ "customer": "",
560
+ "id": "ba_19zuuiDSlTMT26Mk8HQCpGLE",
561
+ "metadata": {
562
+ },
563
+ "object": "bank_account"
626
564
  },
627
- "network_reason_code": "",
628
- "object": "dispute",
629
- "reason": "general",
630
- "status": "needs_response"
631
- },
632
- "event": {
633
- "api_version": "",
634
- "created": 1234567890,
635
- "customer_email": "",
636
- "data": {
637
- "object": {
638
- "amount": 2000,
639
- "created": 1489700220,
565
+ "discount": {
566
+ "coupon": {
567
+ "amount_off": null,
568
+ "created": 1490133192,
640
569
  "currency": "usd",
641
- "id": "gold",
642
- "interval": "month",
643
- "interval_count": 1,
570
+ "duration": "repeating",
571
+ "duration_in_months": 3,
572
+ "id": "25OFF",
644
573
  "livemode": false,
574
+ "max_redemptions": null,
645
575
  "metadata": {
646
576
  },
647
- "name": "Gold Special",
648
- "object": "plan",
649
- "statement_descriptor": null,
650
- "trial_period_days": null
651
- }
652
- },
653
- "id": "evt_19y6HIAylotNGqt349zSXYCk",
654
- "livemode": false,
655
- "object": "event",
656
- "pending_webhooks": 0,
657
- "recipient_best_description": "",
658
- "request": "",
659
- "type": "plan.created"
660
- },
661
- "external_account_source": {
662
- "account": "acct_19y6HAAylotNGqt3",
663
- "address_city": "",
664
- "address_line1": "",
665
- "address_line2": "",
666
- "address_state": "",
667
- "address_zip": "",
668
- "country": "US",
669
- "currency": "usd",
670
- "customer": "",
671
- "default_for_currency": false,
672
- "fingerprint": "G8AlCiZpIixKrovm",
673
- "id": "ba_19y6HIAylotNGqt37Bbh2BEi",
674
- "last4": "6789",
675
- "metadata": {
676
- },
677
- "object": "bank_account"
678
- },
679
- "fee_refund": {
680
- "amount": 100,
681
- "balance_transaction": "",
682
- "created": 1234567890,
683
- "currency": "usd",
684
- "fee": "fee_19y6HIAylotNGqt3iEVMbEmJ",
685
- "id": "fr_AIhghI4mXRpLEw",
686
- "metadata": {
687
- },
688
- "object": "fee_refund"
689
- },
690
- "invoice": {
691
- "amount_due": 0,
692
- "application_fee": 0,
693
- "attempt_count": 0,
694
- "attempted": false,
695
- "billing": "",
696
- "charge": "",
697
- "closed": false,
698
- "currency": "usd",
699
- "customer": "cus_AIhgCDhEsqLqXq",
700
- "date": 1234567890,
701
- "description": "",
702
- "discount": {
703
- },
704
- "due_date": 1234567890,
705
- "ending_balance": 0,
706
- "forgiven": false,
707
- "id": "in_19y6HIAylotNGqt3Kq1NUy5r",
708
- "lines": {
709
- "data": [
710
- {
711
- "amount": 2000,
577
+ "object": "coupon",
578
+ "percent_off": 25,
579
+ "redeem_by": null,
580
+ "times_redeemed": 0,
581
+ "valid": true
582
+ },
583
+ "customer": "cus_ADmuABetLS15eF",
584
+ "end": 1234567890,
585
+ "object": "discount",
586
+ "start": 1234567890,
587
+ "subscription": ""
588
+ },
589
+ "dispute": {
590
+ "accepted_at": 1234567890,
591
+ "amount": 1000,
592
+ "balance_transaction": "",
593
+ "balance_transactions": [
594
+
595
+ ],
596
+ "charge": "ch_19zuuhDSlTMT26MkKLSiekJ9",
597
+ "closed_at": 1234567890,
598
+ "created": 1234567890,
599
+ "currency": "usd",
600
+ "escalated_at": 1234567890,
601
+ "evidence": {
602
+ "access_activity_log": null,
603
+ "billing_address": null,
604
+ "cancellation_policy": null,
605
+ "cancellation_policy_disclosure": null,
606
+ "cancellation_rebuttal": null,
607
+ "customer_communication": null,
608
+ "customer_email_address": null,
609
+ "customer_name": null,
610
+ "customer_purchase_ip": null,
611
+ "customer_signature": null,
612
+ "duplicate_charge_documentation": null,
613
+ "duplicate_charge_explanation": null,
614
+ "duplicate_charge_id": null,
615
+ "product_description": null,
616
+ "receipt": null,
617
+ "refund_policy": null,
618
+ "refund_policy_disclosure": null,
619
+ "refund_refusal_explanation": null,
620
+ "service_date": null,
621
+ "service_documentation": null,
622
+ "shipping_address": null,
623
+ "shipping_carrier": null,
624
+ "shipping_date": null,
625
+ "shipping_documentation": null,
626
+ "shipping_tracking_number": null,
627
+ "uncategorized_file": null,
628
+ "uncategorized_text": null
629
+ },
630
+ "evidence_details": {
631
+ "due_by": 1491782399,
632
+ "has_evidence": false,
633
+ "past_due": false,
634
+ "submission_count": 0
635
+ },
636
+ "evidence_submitted_at": [
637
+
638
+ ],
639
+ "id": "dp_19zuuhDSlTMT26Mkp7PHaa4O",
640
+ "is_charge_refundable": false,
641
+ "is_protected": false,
642
+ "livemode": false,
643
+ "metadata": {
644
+ },
645
+ "network_reason_code": "",
646
+ "object": "dispute",
647
+ "reason": "general",
648
+ "status": "needs_response"
649
+ },
650
+ "event": {
651
+ "api_version": "2017-02-14",
652
+ "created": 1234567890,
653
+ "customer_email": "",
654
+ "data": {
655
+ "object": {
656
+ "account_balance": 0,
657
+ "created": 1488566449,
712
658
  "currency": "usd",
659
+ "default_source": null,
660
+ "delinquent": false,
713
661
  "description": null,
714
- "discountable": true,
715
- "id": "sub_AIhgP3KgCUJMuh",
716
- "livemode": true,
662
+ "discount": null,
663
+ "email": null,
664
+ "id": "cus_ADmuABetLS15eF",
665
+ "livemode": false,
717
666
  "metadata": {
718
667
  },
719
- "object": "line_item",
720
- "period": {
721
- "end": 1494970619,
722
- "start": 1492378619
668
+ "object": "customer",
669
+ "shipping": null,
670
+ "sources": {
671
+ "data": [
672
+
673
+ ],
674
+ "has_more": false,
675
+ "object": "list",
676
+ "total_count": 0,
677
+ "url": "/v1/customers/cus_ADmuABetLS15eF/sources"
723
678
  },
724
- "plan": {
679
+ "subscriptions": {
680
+ "data": [
681
+
682
+ ],
683
+ "has_more": false,
684
+ "object": "list",
685
+ "total_count": 0,
686
+ "url": "/v1/customers/cus_ADmuABetLS15eF/subscriptions"
687
+ }
688
+ }
689
+ },
690
+ "id": "evt_19tLKfDSlTMT26MkKD3pohqX",
691
+ "livemode": false,
692
+ "object": "event",
693
+ "pending_webhooks": 0,
694
+ "recipient_best_description": "",
695
+ "request": "",
696
+ "type": "customer.created"
697
+ },
698
+ "external_account_source": {
699
+ "account": "acct_19tLK7DSlTMT26Mk",
700
+ "address_city": "",
701
+ "address_line1": "",
702
+ "address_line2": "",
703
+ "address_state": "",
704
+ "address_zip": "",
705
+ "country": "US",
706
+ "currency": "usd",
707
+ "customer": "",
708
+ "default_for_currency": false,
709
+ "fingerprint": "ryfzKJTPWAUfw2iL",
710
+ "id": "ba_19zuuiDSlTMT26Mk8HQCpGLE",
711
+ "last4": "6789",
712
+ "metadata": {
713
+ },
714
+ "object": "bank_account"
715
+ },
716
+ "fee_refund": {
717
+ "amount": 100,
718
+ "balance_transaction": "",
719
+ "created": 1234567890,
720
+ "currency": "usd",
721
+ "fee": "fee_19zuujDSlTMT26MkEMvXUsIx",
722
+ "id": "fr_AKa4dv904Dvl5q",
723
+ "metadata": {
724
+ },
725
+ "object": "fee_refund"
726
+ },
727
+ "invoice": {
728
+ "amount_due": 0,
729
+ "application_fee": 0,
730
+ "attempt_count": 0,
731
+ "attempted": false,
732
+ "billing": "",
733
+ "charge": "",
734
+ "closed": false,
735
+ "currency": "usd",
736
+ "customer": "cus_ADmuABetLS15eF",
737
+ "date": 1234567890,
738
+ "description": "",
739
+ "discount": {
740
+ },
741
+ "due_date": 1234567890,
742
+ "ending_balance": 0,
743
+ "forgiven": false,
744
+ "id": "in_19zuuiDSlTMT26Mk1XitxqCb",
745
+ "lines": {
746
+ "data": [
747
+ {
725
748
  "amount": 2000,
726
- "created": 1489700220,
727
749
  "currency": "usd",
728
- "id": "gold",
729
- "interval": "month",
730
- "interval_count": 1,
731
- "livemode": false,
750
+ "description": null,
751
+ "discountable": true,
752
+ "id": "sub_AKa4uss8vCMAZC",
753
+ "livemode": true,
732
754
  "metadata": {
733
755
  },
734
- "name": "Gold Special",
735
- "object": "plan",
736
- "statement_descriptor": null,
737
- "trial_period_days": null
738
- },
739
- "proration": false,
740
- "quantity": 1,
741
- "subscription": null,
742
- "subscription_item": "si_19y6HHBBq8Um5VVVeabmVesw",
743
- "type": "subscription"
744
- }
745
- ],
746
- "object": "list",
747
- "total_count": 1,
748
- "url": "/v1/invoices/in_19y6HIAylotNGqt3Kq1NUy5r/lines"
749
- },
750
- "livemode": false,
751
- "metadata": {
752
- },
753
- "next_payment_attempt": 1234567890,
754
- "number": "",
755
- "object": "invoice",
756
- "paid": false,
757
- "period_end": 1234567890,
758
- "period_start": 1234567890,
759
- "receipt_number": "",
760
- "starting_balance": 0,
761
- "statement_descriptor": "",
762
- "subscription": "",
763
- "subscription_proration_date": 0,
764
- "subtotal": 0,
765
- "tax": 0,
766
- "tax_percent": 0.0,
767
- "total": 0,
768
- "webhooks_delivered_at": 1234567890
769
- },
770
- "invoice_item": {
771
- "amount": 1000,
772
- "currency": "usd",
773
- "customer": "cus_AIhgCDhEsqLqXq",
774
- "date": 1234567890,
775
- "description": "My First Invoice Item (created for API docs)",
776
- "discountable": true,
777
- "id": "ii_19y6HIAylotNGqt36BYYgGHq",
778
- "invoice": "",
779
- "livemode": false,
780
- "metadata": {
781
- },
782
- "object": "invoiceitem",
783
- "period": {
784
- "end": 1489700220,
785
- "start": 1489700220
786
- },
787
- "plan": {
788
- },
789
- "proration": false,
790
- "quantity": 0,
791
- "subscription": "",
792
- "subscription_item": ""
793
- },
794
- "invoice_line_item": {
795
- "amount": 1000,
796
- "currency": "usd",
797
- "description": "My First Invoice Item (created for API docs)",
798
- "discountable": true,
799
- "id": "ii_19y6HIAylotNGqt36BYYgGHq",
800
- "livemode": false,
801
- "metadata": {
802
- },
803
- "object": "line_item",
804
- "period": {
805
- "end": 1489700220,
806
- "start": 1489700220
807
- },
808
- "plan": {
809
- },
810
- "proration": false,
811
- "quantity": 0,
812
- "subscription": "",
813
- "subscription_item": "",
814
- "type": "invoiceitem"
815
- },
816
- "legacy_transfer": {
817
- "amount": 1100,
818
- "amount_reversed": 0,
819
- "application_fee": "",
820
- "auto": false,
821
- "balance_transaction": "",
822
- "bank_account": {
823
- },
824
- "card": {
825
- },
826
- "created": 1234567890,
827
- "currency": "usd",
828
- "date": 1234567890,
829
- "delay_reason": "",
830
- "description": "Transfer to test@example.com",
831
- "destination": "ba_19y6HIAylotNGqt3Tk6btLgn",
832
- "destination_payment": "",
833
- "failure_code": "",
834
- "failure_message": "",
835
- "id": "tr_19y6HIAylotNGqt3ph4EjS38",
836
- "legacy_date": 1234567890,
837
- "livemode": false,
838
- "metadata": {
839
- },
840
- "method": "standard",
841
- "object": "transfer",
842
- "recipient": "",
843
- "reversals": {
844
- "data": [
845
-
846
- ],
847
- "has_more": false,
848
- "object": "list",
849
- "total_count": 0,
850
- "url": "/v1/transfers/tr_19y6HIAylotNGqt3ph4EjS38/reversals"
756
+ "object": "line_item",
757
+ "period": {
758
+ "end": 1495403592,
759
+ "start": 1492811592
760
+ },
761
+ "plan": {
762
+ "amount": 2000,
763
+ "created": 1488566449,
764
+ "currency": "usd",
765
+ "id": "gold",
766
+ "interval": "month",
767
+ "interval_count": 1,
768
+ "livemode": false,
769
+ "metadata": {
770
+ },
771
+ "name": "Gold Special",
772
+ "object": "plan",
773
+ "statement_descriptor": null,
774
+ "trial_period_days": null
775
+ },
776
+ "proration": false,
777
+ "quantity": 1,
778
+ "subscription": null,
779
+ "subscription_item": "si_19zuuiDSlTMT26Mk9HayBPe9",
780
+ "type": "subscription"
781
+ }
782
+ ],
783
+ "object": "list",
784
+ "total_count": 1,
785
+ "url": "/v1/invoices/in_19zuuiDSlTMT26Mk1XitxqCb/lines"
786
+ },
787
+ "livemode": false,
788
+ "metadata": {
789
+ },
790
+ "next_payment_attempt": 1234567890,
791
+ "number": "",
792
+ "object": "invoice",
793
+ "paid": false,
794
+ "period_end": 1234567890,
795
+ "period_start": 1234567890,
796
+ "receipt_number": "",
797
+ "send_next_at": 1234567890,
798
+ "starting_balance": 0,
799
+ "statement_descriptor": "",
800
+ "subscription": "",
801
+ "subscription_proration_date": 0,
802
+ "subtotal": 0,
803
+ "tax": 0,
804
+ "tax_percent": 0.0,
805
+ "total": 0,
806
+ "webhooks_delivered_at": 1234567890
807
+ },
808
+ "invoice_item": {
809
+ "amount": 1000,
810
+ "currency": "usd",
811
+ "customer": "cus_ADmuABetLS15eF",
812
+ "date": 1234567890,
813
+ "description": "My First Invoice Item (created for API docs)",
814
+ "discountable": true,
815
+ "id": "ii_19zuuiDSlTMT26MkvsaAgAi7",
816
+ "invoice": "",
817
+ "livemode": false,
818
+ "metadata": {
819
+ },
820
+ "object": "invoiceitem",
821
+ "period": {
822
+ "end": 1490133192,
823
+ "start": 1490133192
824
+ },
825
+ "plan": {
826
+ },
827
+ "proration": false,
828
+ "quantity": 0,
829
+ "subscription": "",
830
+ "subscription_item": ""
851
831
  },
852
- "reversed": false,
853
- "source_transaction": "",
854
- "source_type": "card",
855
- "statement_descriptor": "",
856
- "status": "in_transit",
857
- "transfer_group": "",
858
- "type": "bank_account",
859
- "user_visible_date": 1234567890
860
- },
861
- "order": {
862
- "amount": 1500,
863
- "amount_returned": 0,
864
- "application": "",
865
- "application_fee": 0,
866
- "charge": "",
867
- "created": 1234567890,
868
- "currency": "usd",
869
- "customer": "",
870
- "email": "",
871
- "external_coupon_code": "",
872
- "external_sku_ids": [
832
+ "invoice_line_item": {
833
+ "amount": 1000,
834
+ "currency": "usd",
835
+ "description": "My First Invoice Item (created for API docs)",
836
+ "discountable": true,
837
+ "id": "ii_19zuuiDSlTMT26MkvsaAgAi7",
838
+ "livemode": false,
839
+ "metadata": {
840
+ },
841
+ "object": "line_item",
842
+ "period": {
843
+ "end": 1490133192,
844
+ "start": 1490133192
845
+ },
846
+ "plan": {
847
+ },
848
+ "proration": false,
849
+ "quantity": 0,
850
+ "subscription": "",
851
+ "subscription_item": "",
852
+ "type": "invoiceitem"
853
+ },
854
+ "legacy_transfer": {
855
+ "amount": 1100,
856
+ "amount_reversed": 0,
857
+ "application_fee": "",
858
+ "auto": false,
859
+ "balance_transaction": "",
860
+ "bank_account": {
861
+ },
862
+ "card": {
863
+ },
864
+ "created": 1234567890,
865
+ "currency": "usd",
866
+ "date": 1234567890,
867
+ "delay_reason": "",
868
+ "description": "Transfer to test@example.com",
869
+ "destination": "ba_19zuujDSlTMT26MkRkpqv9Ud",
870
+ "destination_payment": "",
871
+ "failure_code": "",
872
+ "failure_message": "",
873
+ "id": "tr_19zuujDSlTMT26Mk81npuLjT",
874
+ "legacy_date": 1234567890,
875
+ "livemode": false,
876
+ "metadata": {
877
+ },
878
+ "method": "standard",
879
+ "object": "transfer",
880
+ "recipient": "",
881
+ "reversals": {
882
+ "data": [
873
883
 
874
- ],
875
- "id": "or_19y6HJAylotNGqt3bov4Z4DC",
876
- "items": [
877
- {
878
- "amount": 1500,
879
- "currency": "usd",
880
- "description": "T-shirt",
881
- "object": "order_item",
882
- "parent": "sk_19y6HJAylotNGqt3oddcLh9L",
883
- "quantity": null,
884
- "type": "sku"
885
- }
886
- ],
887
- "livemode": false,
888
- "metadata": {
889
- },
890
- "object": "order",
891
- "returns": {
892
- "data": [
884
+ ],
885
+ "has_more": false,
886
+ "object": "list",
887
+ "total_count": 0,
888
+ "url": "/v1/transfers/tr_19zuujDSlTMT26Mk81npuLjT/reversals"
889
+ },
890
+ "reversed": false,
891
+ "source_transaction": "",
892
+ "source_type": "card",
893
+ "statement_descriptor": "",
894
+ "status": "in_transit",
895
+ "transfer_group": "",
896
+ "type": "bank_account",
897
+ "user_visible_date": 1234567890
898
+ },
899
+ "order": {
900
+ "amount": 1500,
901
+ "amount_returned": 0,
902
+ "application": "",
903
+ "application_fee": 0,
904
+ "charge": "",
905
+ "created": 1234567890,
906
+ "currency": "usd",
907
+ "customer": "",
908
+ "email": "",
909
+ "external_coupon_code": "",
910
+ "external_sku_ids": [
893
911
 
894
912
  ],
895
- "has_more": false,
896
- "object": "list",
897
- "total_count": 0,
898
- "url": "/v1/order_returns?order=or_19y6HJAylotNGqt3bov4Z4DC"
899
- },
900
- "selected_shipping_method": "",
901
- "shipping": {
902
- "address": {
903
- "city": "Anytown",
904
- "country": "US",
905
- "line1": "1234 Main street",
906
- "line2": null,
907
- "postal_code": "123456",
908
- "state": null
909
- },
910
- "carrier": null,
911
- "name": "Jenny Rosen",
912
- "phone": null,
913
- "tracking_number": null
914
- },
915
- "shipping_methods": {
916
- },
917
- "signature": "",
918
- "status": "created",
919
- "status_transitions": {
920
- },
921
- "updated": 1234567890,
922
- "upstream_id": ""
923
- },
924
- "order_return": {
925
- "amount": 1500,
926
- "created": 1234567890,
927
- "currency": "usd",
928
- "id": "orret_19y6HJAylotNGqt3bd5YsAXz",
929
- "items": [
930
- {
931
- "amount": 1500,
932
- "currency": "usd",
933
- "description": "T-shirt",
934
- "object": "order_item",
935
- "parent": "sk_19y6HJAylotNGqt3oddcLh9L",
936
- "quantity": null,
937
- "type": "sku"
938
- }
939
- ],
940
- "livemode": false,
941
- "object": "order_return",
942
- "order": "or_19y6HJAylotNGqt36m18HzRj",
943
- "refund": "re_19y6HJAylotNGqt3rTe2A05C"
944
- },
945
- "plan": {
946
- "amount": 2000,
947
- "created": 1234567890,
948
- "currency": "usd",
949
- "id": "gold",
950
- "interval": "month",
951
- "interval_count": 1,
952
- "livemode": false,
953
- "metadata": {
954
- },
955
- "name": "Gold Special",
956
- "object": "plan",
957
- "statement_descriptor": "",
958
- "trial_period_days": 0
959
- },
960
- "platform_earning": {
961
- "account": "acct_19y6HAAylotNGqt3",
962
- "amount": 100,
963
- "amount_refunded": 0,
964
- "application": "ca_AIhgFq8kWIDlYSeaCcuycCoERZL0J0ls",
965
- "balance_transaction": "txn_19y6HHAylotNGqt33AMqhSaS",
966
- "charge": "ch_19y6HHAylotNGqt3dguVG1mI",
967
- "created": 1234567890,
968
- "currency": "usd",
969
- "id": "fee_19y6HIAylotNGqt3iEVMbEmJ",
970
- "livemode": false,
971
- "object": "application_fee",
972
- "originating_transaction": "",
973
- "refunded": false,
974
- "refunds": {
975
- "data": [
976
-
913
+ "id": "or_19zuukDSlTMT26MktR8hwCzJ",
914
+ "items": [
915
+ {
916
+ "amount": 1500,
917
+ "currency": "usd",
918
+ "description": "T-shirt",
919
+ "object": "order_item",
920
+ "parent": "sk_19tLKeDSlTMT26MkWafeCAS4",
921
+ "quantity": null,
922
+ "type": "sku"
923
+ }
977
924
  ],
978
- "has_more": false,
979
- "object": "list",
980
- "total_count": 0,
981
- "url": "/v1/application_fees/fee_19y6HIAylotNGqt3iEVMbEmJ/refunds"
982
- }
983
- },
984
- "product": {
985
- "active": true,
986
- "attributes": [
987
- "gender",
988
- "size"
989
- ],
990
- "caption": "",
991
- "created": 1234567890,
992
- "deactivate_on": [
993
-
994
- ],
995
- "description": "Comfortable gray cotton t-shirts",
996
- "donation": false,
997
- "id": "prod_AIhgWPx5D86mh1",
998
- "images": [
999
-
1000
- ],
1001
- "livemode": false,
1002
- "metadata": {
1003
- },
1004
- "name": "T-shirt",
1005
- "object": "product",
1006
- "package_dimensions": {
1007
- },
1008
- "reason_product_not_tweetable": "",
1009
- "shippable": true,
1010
- "skus": {
1011
- "data": [
925
+ "livemode": false,
926
+ "metadata": {
927
+ },
928
+ "object": "order",
929
+ "returns": {
930
+ "data": [
1012
931
 
1013
- ],
1014
- "has_more": false,
1015
- "object": "list",
1016
- "total_count": 0,
1017
- "url": "/v1/skus?product=prod_AIhgWPx5D86mh1\u0026active=true"
1018
- },
1019
- "tweetable_url": "",
1020
- "updated": 1234567890,
1021
- "url": ""
1022
- },
1023
- "refund": {
1024
- "amount": 100,
1025
- "balance_transaction": "",
1026
- "charge": "ch_19y6HHAylotNGqt3dguVG1mI",
1027
- "created": 1234567890,
1028
- "currency": "usd",
1029
- "description": "",
1030
- "fee_balance_transactions": {
1031
- },
1032
- "id": "re_19y6HHAylotNGqt3o9CUC2fJ",
1033
- "metadata": {
1034
- },
1035
- "object": "refund",
1036
- "reason": "",
1037
- "receipt_number": "",
1038
- "status": "succeeded",
1039
- "type": ""
1040
- },
1041
- "sku": {
1042
- "active": true,
1043
- "attributes": {
1044
- "gender": "Unisex",
1045
- "size": "Medium"
1046
- },
1047
- "created": 1234567890,
1048
- "currency": "usd",
1049
- "id": "sku_AIhgANg1XshOPI",
1050
- "image": "",
1051
- "inventory": {
1052
- "quantity": 50,
1053
- "type": "finite",
1054
- "value": null
1055
- },
1056
- "livemode": false,
1057
- "metadata": {
1058
- },
1059
- "object": "sku",
1060
- "package_dimensions": {
1061
- },
1062
- "price": 1500,
1063
- "product": "prod_AIhgWPx5D86mh1",
1064
- "updated": 1234567890
1065
- },
1066
- "source": {
1067
- "amount": 1000,
1068
- "client_secret": "src_client_secret_UxYHcfjreLYKMVWptfFyAsxp",
1069
- "code_verification": {
1070
- },
1071
- "created": 1234567890,
1072
- "currency": "usd",
1073
- "customer": "",
1074
- "flow": "receiver",
1075
- "id": "src_19y6HJAylotNGqt3wfuVnNWw",
1076
- "livemode": false,
1077
- "metadata": {
1078
- },
1079
- "object": "source",
1080
- "order": "",
1081
- "owner": {
1082
- "address": null,
1083
- "email": "jenny.rosen@example.com",
1084
- "name": null,
1085
- "phone": null,
1086
- "verified_address": null,
1087
- "verified_email": null,
1088
- "verified_name": null,
1089
- "verified_phone": null
1090
- },
1091
- "receiver": {
1092
- "address": "test_1MBhWS3uv4ynCfQXF3xQjJkzFPukr4K56N",
1093
- "amount_charged": 0,
1094
- "amount_received": 0,
1095
- "amount_returned": 0,
1096
- "refund_attributes_method": "email",
1097
- "refund_attributes_status": "missing"
1098
- },
1099
- "redirect": {
1100
- },
1101
- "status": "pending",
1102
- "type": "bitcoin",
1103
- "usage": "single_use"
1104
- },
1105
- "subscription": {
1106
- "account_balance": 0,
1107
- "application_fee_percent": 0.0,
1108
- "billing": "",
1109
- "cancel_at_period_end": false,
1110
- "canceled_at": 1234567890,
1111
- "created": 1234567890,
1112
- "current_period_end": 1234567890,
1113
- "current_period_start": 1234567890,
1114
- "customer": "cus_AIhg2AZ0oZn9hq",
1115
- "days_until_due": 0,
1116
- "discount": {
932
+ ],
933
+ "has_more": false,
934
+ "object": "list",
935
+ "total_count": 0,
936
+ "url": "/v1/order_returns?order=or_19zuukDSlTMT26MktR8hwCzJ"
937
+ },
938
+ "selected_shipping_method": "",
939
+ "shipping": {
940
+ "address": {
941
+ "city": "Anytown",
942
+ "country": "US",
943
+ "line1": "1234 Main street",
944
+ "line2": null,
945
+ "postal_code": "123456",
946
+ "state": null
947
+ },
948
+ "carrier": null,
949
+ "name": "Jenny Rosen",
950
+ "phone": null,
951
+ "tracking_number": null
952
+ },
953
+ "shipping_methods": {
954
+ },
955
+ "signature": "",
956
+ "status": "created",
957
+ "status_transitions": {
958
+ "canceled": null,
959
+ "fulfiled": null,
960
+ "paid": null,
961
+ "returned": null
962
+ },
963
+ "updated": 1234567890,
964
+ "upstream_id": ""
1117
965
  },
1118
- "ended_at": 1234567890,
1119
- "id": "sub_AIhgP3KgCUJMuh",
1120
- "items": {
1121
- "data": [
966
+ "order_return": {
967
+ "amount": 1500,
968
+ "created": 1234567890,
969
+ "currency": "usd",
970
+ "id": "orret_19zuukDSlTMT26Mkxjz1bcqv",
971
+ "items": [
1122
972
  {
1123
- "created": 1489700220,
1124
- "id": "si_19y6HHBBq8Um5VVVeabmVesw",
1125
- "object": "subscription_item",
1126
- "plan": {
1127
- "amount": 2000,
1128
- "created": 1489700219,
1129
- "currency": "usd",
1130
- "id": "gold",
1131
- "interval": "month",
1132
- "interval_count": 1,
1133
- "livemode": false,
1134
- "metadata": {
1135
- },
1136
- "name": "Gold Special",
1137
- "object": "plan",
1138
- "statement_descriptor": null,
1139
- "trial_period_days": null
1140
- },
1141
- "quantity": 1
973
+ "amount": 1500,
974
+ "currency": "usd",
975
+ "description": "T-shirt",
976
+ "object": "order_item",
977
+ "parent": "sk_19zuukDSlTMT26MkepWkJtmm",
978
+ "quantity": null,
979
+ "type": "sku"
1142
980
  }
1143
981
  ],
1144
- "has_more": false,
1145
- "object": "list",
1146
- "total_count": 1,
1147
- "url": "/v1/subscription_items?subscription=sub_AIhgP3KgCUJMuh"
1148
- },
1149
- "livemode": false,
1150
- "max_occurrences": 0,
1151
- "metadata": {
1152
- },
1153
- "object": "subscription",
1154
- "on_behalf_of": "",
1155
- "plan": {
1156
- "amount": 2000,
1157
- "created": 1489700219,
982
+ "livemode": false,
983
+ "object": "order_return",
984
+ "order": "or_19zuukDSlTMT26MkL38GRWYx",
985
+ "refund": "re_19zuukDSlTMT26MkKx6aokup"
986
+ },
987
+ "payout": {
988
+ "amount": 1100,
989
+ "arrival_date": 1234567890,
990
+ "auto": false,
991
+ "balance_transaction": "txn_1A5hBeDSlTMT26MkXlw0Jzki",
992
+ "bank_account": {
993
+ },
994
+ "card": {
995
+ },
996
+ "created": 1234567890,
1158
997
  "currency": "usd",
1159
- "id": "gold",
1160
- "interval": "month",
1161
- "interval_count": 1,
998
+ "destination": "acct_19tLK7DSlTMT26Mk",
999
+ "failure_balance_transaction": "",
1000
+ "failure_code": "",
1001
+ "failure_message": "",
1002
+ "id": "tr_1A5hBfDSlTMT26MkB9QceCEw",
1162
1003
  "livemode": false,
1163
1004
  "metadata": {
1164
1005
  },
1165
- "name": "Gold Special",
1166
- "object": "plan",
1167
- "statement_descriptor": null,
1168
- "trial_period_days": null
1006
+ "method": "standard",
1007
+ "object": "payout",
1008
+ "source_type": "card",
1009
+ "statement_descriptor": "",
1010
+ "status": "in_transit",
1011
+ "type": "stripe_account"
1169
1012
  },
1170
- "quantity": 1,
1171
- "retains_own_balance": false,
1172
- "start": 1234567890,
1173
- "status": "active",
1174
- "tax_percent": 0.0,
1175
- "trial_end": 1234567890,
1176
- "trial_start": 1234567890
1177
- },
1178
- "subscription_item": {
1179
- "created": 1489700220,
1180
- "id": "si_19y6HHBBq8Um5VVVWtAse22Z",
1181
- "object": "subscription_item",
1182
1013
  "plan": {
1183
1014
  "amount": 2000,
1184
- "created": 1489700219,
1015
+ "created": 1234567890,
1185
1016
  "currency": "usd",
1186
1017
  "id": "gold",
1187
1018
  "interval": "month",
@@ -1191,207 +1022,447 @@
1191
1022
  },
1192
1023
  "name": "Gold Special",
1193
1024
  "object": "plan",
1194
- "statement_descriptor": null,
1195
- "trial_period_days": null
1025
+ "statement_descriptor": "",
1026
+ "trial_period_days": 0
1027
+ },
1028
+ "platform_earning": {
1029
+ "account": "acct_19tLK7DSlTMT26Mk",
1030
+ "amount": 100,
1031
+ "amount_refunded": 0,
1032
+ "application": "ca_AKa4xbTjCsfO9n8mgC6PyMNf6FCnXMyM",
1033
+ "balance_transaction": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
1034
+ "charge": "ch_19zuuhDSlTMT26MkKLSiekJ9",
1035
+ "created": 1234567890,
1036
+ "currency": "usd",
1037
+ "id": "fee_19zuujDSlTMT26MkEMvXUsIx",
1038
+ "livemode": false,
1039
+ "object": "application_fee",
1040
+ "originating_transaction": "",
1041
+ "refunded": false,
1042
+ "refunds": {
1043
+ "data": [
1044
+
1045
+ ],
1046
+ "has_more": false,
1047
+ "object": "list",
1048
+ "total_count": 0,
1049
+ "url": "/v1/application_fees/fee_19zuujDSlTMT26MkEMvXUsIx/refunds"
1050
+ }
1196
1051
  },
1197
- "quantity": 1
1198
- },
1199
- "three_d_secure": {
1200
- "amount": 1500,
1201
- "authenticated": false,
1202
- "card": {
1203
- "address_city": null,
1204
- "address_country": null,
1205
- "address_line1": null,
1206
- "address_line1_check": null,
1207
- "address_line2": null,
1208
- "address_state": null,
1209
- "address_zip": null,
1210
- "address_zip_check": null,
1211
- "brand": "Visa",
1212
- "country": null,
1213
- "customer": null,
1214
- "cvc_check": null,
1215
- "dynamic_last4": null,
1216
- "exp_month": 8,
1217
- "exp_year": 2018,
1218
- "funding": "unknown",
1219
- "id": "card_19y6HIAylotNGqt3tSobdlid",
1220
- "last4": "4242",
1052
+ "product": {
1053
+ "active": true,
1054
+ "attributes": [
1055
+ "gender",
1056
+ "size"
1057
+ ],
1058
+ "caption": "",
1059
+ "created": 1234567890,
1060
+ "deactivate_on": [
1061
+
1062
+ ],
1063
+ "description": "Comfortable gray cotton t-shirts",
1064
+ "donation": false,
1065
+ "id": "prod_AKa4nDYkPszdDl",
1066
+ "images": [
1067
+
1068
+ ],
1069
+ "livemode": false,
1221
1070
  "metadata": {
1222
1071
  },
1223
- "name": null,
1224
- "object": "card",
1225
- "tokenization_method": null
1226
- },
1227
- "created": 1234567890,
1228
- "currency": "usd",
1229
- "id": "tdsrc_AIhge8Euw6YKbc",
1230
- "livemode": false,
1231
- "object": "three_d_secure",
1232
- "redirect_url": "http://127.0.0.1:6080/3d_secure/authenticate/tdsrc_AIhge8Euw6YKbc",
1233
- "status": "redirect_pending"
1234
- },
1235
- "token": {
1236
- "account_details": {
1237
- },
1238
- "alipay_account": {
1072
+ "name": "T-shirt",
1073
+ "object": "product",
1074
+ "package_dimensions": {
1075
+ },
1076
+ "reason_product_not_tweetable": "",
1077
+ "shippable": true,
1078
+ "skus": {
1079
+ "data": [
1080
+
1081
+ ],
1082
+ "has_more": false,
1083
+ "object": "list",
1084
+ "total_count": 0,
1085
+ "url": "/v1/skus?product=prod_AKa4nDYkPszdDl&active=true"
1086
+ },
1087
+ "tweetable_url": "",
1088
+ "updated": 1234567890,
1089
+ "url": ""
1090
+ },
1091
+ "refund": {
1092
+ "amount": 100,
1093
+ "balance_transaction": "",
1094
+ "charge": "ch_19zuuhDSlTMT26MkKLSiekJ9",
1095
+ "created": 1234567890,
1096
+ "currency": "usd",
1097
+ "description": "",
1098
+ "fee_balance_transactions": {
1099
+ },
1100
+ "id": "re_19zuuhDSlTMT26MkpLosorvD",
1101
+ "metadata": {
1102
+ },
1103
+ "object": "refund",
1104
+ "reason": "",
1105
+ "receipt_number": "",
1106
+ "status": "succeeded",
1107
+ "type": ""
1108
+ },
1109
+ "sku": {
1110
+ "active": true,
1111
+ "attributes": {
1112
+ "gender": "Unisex",
1113
+ "size": "Medium"
1114
+ },
1115
+ "created": 1234567890,
1116
+ "currency": "usd",
1117
+ "id": "sku_AKa48dqsB87bsK",
1118
+ "image": "",
1119
+ "inventory": {
1120
+ "quantity": 50,
1121
+ "type": "finite",
1122
+ "value": null
1123
+ },
1124
+ "livemode": false,
1125
+ "metadata": {
1126
+ },
1127
+ "object": "sku",
1128
+ "package_dimensions": {
1129
+ },
1130
+ "price": 1500,
1131
+ "product": "prod_AKa4nDYkPszdDl",
1132
+ "updated": 1234567890
1239
1133
  },
1240
- "bank_account": {
1134
+ "source": {
1135
+ "amount": 1000,
1136
+ "client_secret": "src_client_secret_G7TlNFAGB2mThKeaF9jOBdWt",
1137
+ "code_verification": {
1138
+ },
1139
+ "created": 1234567890,
1140
+ "currency": "usd",
1141
+ "customer": "",
1142
+ "flow": "receiver",
1143
+ "id": "src_19zuukDSlTMT26MkL5AZBjwf",
1144
+ "livemode": false,
1145
+ "metadata": {
1146
+ },
1147
+ "object": "source",
1148
+ "order": "",
1149
+ "owner": {
1150
+ "address": null,
1151
+ "email": "jenny.rosen@example.com",
1152
+ "name": null,
1153
+ "phone": null,
1154
+ "verified_address": null,
1155
+ "verified_email": null,
1156
+ "verified_name": null,
1157
+ "verified_phone": null
1158
+ },
1159
+ "receiver": {
1160
+ "address": "test_1MBhWS3uv4ynCfQXF3xQjJkzFPukr4K56N",
1161
+ "amount_charged": 0,
1162
+ "amount_received": 0,
1163
+ "amount_returned": 0,
1164
+ "refund_attributes_method": "email",
1165
+ "refund_attributes_status": "missing"
1166
+ },
1167
+ "redirect": {
1168
+ },
1169
+ "status": "pending",
1170
+ "type": "bitcoin",
1171
+ "usage": "single_use"
1241
1172
  },
1242
- "card": {
1243
- "address_city": null,
1244
- "address_country": null,
1245
- "address_line1": null,
1246
- "address_line1_check": null,
1247
- "address_line2": null,
1248
- "address_state": null,
1249
- "address_zip": null,
1250
- "address_zip_check": null,
1251
- "brand": "Visa",
1252
- "country": null,
1253
- "cvc_check": null,
1254
- "dynamic_last4": null,
1255
- "exp_month": 8,
1256
- "exp_year": 2018,
1257
- "funding": "unknown",
1258
- "id": "card_19y6HIAylotNGqt3tSobdlid",
1259
- "last4": "4242",
1173
+ "subscription": {
1174
+ "account_balance": 0,
1175
+ "application_fee_percent": 0.0,
1176
+ "billing": "",
1177
+ "cancel_at_period_end": false,
1178
+ "canceled_at": 1234567890,
1179
+ "created": 1234567890,
1180
+ "current_period_end": 1234567890,
1181
+ "current_period_start": 1234567890,
1182
+ "customer": "cus_ADmuABetLS15eF",
1183
+ "days_until_due": 0,
1184
+ "discount": {
1185
+ },
1186
+ "ended_at": 1234567890,
1187
+ "id": "sub_AKa4uss8vCMAZC",
1188
+ "items": {
1189
+ "data": [
1190
+ {
1191
+ "created": 1490133192,
1192
+ "id": "si_19zuuiDSlTMT26Mk9HayBPe9",
1193
+ "object": "subscription_item",
1194
+ "plan": {
1195
+ "amount": 2000,
1196
+ "created": 1488566449,
1197
+ "currency": "usd",
1198
+ "id": "gold",
1199
+ "interval": "month",
1200
+ "interval_count": 1,
1201
+ "livemode": false,
1202
+ "metadata": {
1203
+ },
1204
+ "name": "Gold Special",
1205
+ "object": "plan",
1206
+ "statement_descriptor": null,
1207
+ "trial_period_days": null
1208
+ },
1209
+ "quantity": 1
1210
+ }
1211
+ ],
1212
+ "has_more": false,
1213
+ "object": "list",
1214
+ "total_count": 1,
1215
+ "url": "/v1/subscription_items?subscription=sub_AKa4uss8vCMAZC"
1216
+ },
1217
+ "livemode": false,
1218
+ "max_occurrences": 0,
1260
1219
  "metadata": {
1261
1220
  },
1262
- "name": null,
1263
- "object": "card",
1264
- "tokenization_method": null
1221
+ "object": "subscription",
1222
+ "on_behalf_of": "",
1223
+ "plan": {
1224
+ "amount": 2000,
1225
+ "created": 1488566449,
1226
+ "currency": "usd",
1227
+ "id": "gold",
1228
+ "interval": "month",
1229
+ "interval_count": 1,
1230
+ "livemode": false,
1231
+ "metadata": {
1232
+ },
1233
+ "name": "Gold Special",
1234
+ "object": "plan",
1235
+ "statement_descriptor": null,
1236
+ "trial_period_days": null
1237
+ },
1238
+ "quantity": 1,
1239
+ "retains_own_balance": false,
1240
+ "start": 1234567890,
1241
+ "status": "active",
1242
+ "tax_percent": 0.0,
1243
+ "trial_end": 1234567890,
1244
+ "trial_start": 1234567890
1245
+ },
1246
+ "subscription_item": {
1247
+ "created": 1490133192,
1248
+ "id": "si_19zuuiDSlTMT26MkkbqEeSG7",
1249
+ "object": "subscription_item",
1250
+ "plan": {
1251
+ "amount": 2000,
1252
+ "created": 1488566449,
1253
+ "currency": "usd",
1254
+ "id": "gold",
1255
+ "interval": "month",
1256
+ "interval_count": 1,
1257
+ "livemode": false,
1258
+ "metadata": {
1259
+ },
1260
+ "name": "Gold Special",
1261
+ "object": "plan",
1262
+ "statement_descriptor": null,
1263
+ "trial_period_days": null
1264
+ },
1265
+ "quantity": 1
1265
1266
  },
1266
- "client_ip": "",
1267
- "created": 1234567890,
1268
- "description": "",
1269
- "email": "",
1270
- "id": "tok_19y6HIAylotNGqt3RgAWCZVp",
1271
- "livemode": false,
1272
- "object": "token",
1273
- "type": "card",
1274
- "usage": "",
1275
- "used": false
1276
- },
1277
- "transfer": {
1278
- "amount": 1100,
1279
- "amount_reversed": 0,
1280
- "balance_transaction": "txn_19y6HHAylotNGqt33AMqhSaS",
1281
- "created": 1234567890,
1282
- "currency": "usd",
1283
- "destination": "ba_19y6HIAylotNGqt3Tk6btLgn",
1284
- "destination_payment": "",
1285
- "id": "tr_19y6HIAylotNGqt3ph4EjS38",
1286
- "livemode": false,
1287
- "metadata": {
1267
+ "three_d_secure": {
1268
+ "amount": 1500,
1269
+ "authenticated": false,
1270
+ "card": {
1271
+ "address_city": null,
1272
+ "address_country": null,
1273
+ "address_line1": null,
1274
+ "address_line1_check": null,
1275
+ "address_line2": null,
1276
+ "address_state": null,
1277
+ "address_zip": null,
1278
+ "address_zip_check": null,
1279
+ "brand": "Visa",
1280
+ "country": null,
1281
+ "customer": null,
1282
+ "cvc_check": null,
1283
+ "dynamic_last4": null,
1284
+ "exp_month": 8,
1285
+ "exp_year": 2018,
1286
+ "funding": "unknown",
1287
+ "id": "card_19tLKYDSlTMT26Mkl7bixGYc",
1288
+ "last4": "4242",
1289
+ "metadata": {
1290
+ },
1291
+ "name": null,
1292
+ "object": "card",
1293
+ "tokenization_method": null
1294
+ },
1295
+ "created": 1234567890,
1296
+ "currency": "usd",
1297
+ "id": "tdsrc_AKa4JYO98pZnbv",
1298
+ "livemode": false,
1299
+ "object": "three_d_secure",
1300
+ "redirect_url": "http://127.0.0.1:6080/3d_secure/authenticate/tdsrc_AKa4JYO98pZnbv",
1301
+ "status": "redirect_pending"
1288
1302
  },
1289
- "object": "transfer",
1290
- "reversals": {
1291
- "data": [
1303
+ "token": {
1304
+ "account_details": {
1305
+ },
1306
+ "alipay_account": {
1307
+ },
1308
+ "bank_account": {
1309
+ },
1310
+ "card": {
1311
+ "address_city": null,
1312
+ "address_country": null,
1313
+ "address_line1": null,
1314
+ "address_line1_check": null,
1315
+ "address_line2": null,
1316
+ "address_state": null,
1317
+ "address_zip": null,
1318
+ "address_zip_check": null,
1319
+ "brand": "Visa",
1320
+ "country": null,
1321
+ "cvc_check": null,
1322
+ "dynamic_last4": null,
1323
+ "exp_month": 8,
1324
+ "exp_year": 2018,
1325
+ "funding": "unknown",
1326
+ "id": "card_19tLKYDSlTMT26MkxAeJBsQn",
1327
+ "last4": "4242",
1328
+ "metadata": {
1329
+ },
1330
+ "name": null,
1331
+ "object": "card",
1332
+ "tokenization_method": null
1333
+ },
1334
+ "client_ip": "",
1335
+ "created": 1234567890,
1336
+ "description": "",
1337
+ "email": "",
1338
+ "id": "tok_19tLKYDSlTMT26MkK7YyXpCy",
1339
+ "livemode": false,
1340
+ "object": "token",
1341
+ "type": "card",
1342
+ "usage": "",
1343
+ "used": false
1344
+ },
1345
+ "transfer": {
1346
+ "amount": 1100,
1347
+ "amount_reversed": 0,
1348
+ "balance_transaction": "txn_19zuuhDSlTMT26Mk2gJnG0ti",
1349
+ "created": 1234567890,
1350
+ "currency": "usd",
1351
+ "destination": "ba_19zuujDSlTMT26MkRkpqv9Ud",
1352
+ "destination_payment": "",
1353
+ "id": "tr_19zuujDSlTMT26Mk81npuLjT",
1354
+ "livemode": false,
1355
+ "metadata": {
1356
+ },
1357
+ "object": "transfer",
1358
+ "reversals": {
1359
+ "data": [
1292
1360
 
1293
- ],
1294
- "has_more": false,
1295
- "object": "list",
1296
- "total_count": 0,
1297
- "url": "/v1/transfers/tr_19y6HIAylotNGqt3ph4EjS38/reversals"
1298
- },
1299
- "reversed": false,
1300
- "transfer_group": ""
1301
- },
1302
- "transfer_recipient": {
1303
- "active_account": {
1361
+ ],
1362
+ "has_more": false,
1363
+ "object": "list",
1364
+ "total_count": 0,
1365
+ "url": "/v1/transfers/tr_19zuujDSlTMT26Mk81npuLjT/reversals"
1366
+ },
1367
+ "reversed": false,
1368
+ "source_type": "card",
1369
+ "transfer_group": ""
1304
1370
  },
1305
- "address_city": "",
1306
- "address_country": "",
1307
- "address_line1": "",
1308
- "address_line2": "",
1309
- "address_state": "",
1310
- "address_zip": "",
1311
- "cards": {
1312
- "data": [
1371
+ "transfer_recipient": {
1372
+ "active_account": {
1373
+ },
1374
+ "address_city": "",
1375
+ "address_country": "",
1376
+ "address_line1": "",
1377
+ "address_line2": "",
1378
+ "address_state": "",
1379
+ "address_zip": "",
1380
+ "cards": {
1381
+ "data": [
1313
1382
 
1314
- ],
1315
- "has_more": false,
1316
- "object": "list",
1317
- "total_count": 0,
1318
- "url": "/v1/recipients/rp_19y6HIAylotNGqt3CTykthsz/cards"
1319
- },
1320
- "country": "",
1321
- "created": 1234567890,
1322
- "default_card": "",
1323
- "description": "Recipient for John Doe",
1324
- "dob_day": "",
1325
- "dob_month": "",
1326
- "dob_year": "",
1327
- "email": "test@example.com",
1328
- "id": "rp_19y6HIAylotNGqt3CTykthsz",
1329
- "livemode": false,
1330
- "metadata": {
1331
- },
1332
- "migrated_to": "",
1333
- "name": "John Doe",
1334
- "object": "recipient",
1335
- "tin": "",
1336
- "tin_verification_pending": false,
1337
- "type": "individual",
1338
- "verified": false
1339
- },
1340
- "transfer_reversal": {
1341
- "amount": 1100,
1342
- "balance_transaction": "",
1343
- "created": 1234567890,
1344
- "currency": "usd",
1345
- "id": "trr_19y6HIAylotNGqt3nITPrdUW",
1346
- "metadata": {
1347
- },
1348
- "object": "transfer_reversal",
1349
- "transfer": "tr_19y6HIAylotNGqt3ph4EjS38"
1350
- },
1351
- "upcoming_invoice": {
1352
- "amount_due": 0,
1353
- "application_fee": 0,
1354
- "attempt_count": 0,
1355
- "attempted": false,
1356
- "billing": "",
1357
- "charge": "",
1358
- "closed": false,
1359
- "currency": "usd",
1360
- "customer": "cus_AIhgCDhEsqLqXq",
1361
- "date": 1234567890,
1362
- "description": "",
1363
- "discount": {
1364
- },
1365
- "due_date": 1234567890,
1366
- "ending_balance": 0,
1367
- "forgiven": false,
1368
- "lines": {
1369
- "data": [
1383
+ ],
1384
+ "has_more": false,
1385
+ "object": "list",
1386
+ "total_count": 0,
1387
+ "url": "/v1/recipients/rp_19zuujDSlTMT26MkZ3ZnkXL2/cards"
1388
+ },
1389
+ "country": "",
1390
+ "created": 1234567890,
1391
+ "default_card": "",
1392
+ "description": "Recipient for John Doe",
1393
+ "dob_day": "",
1394
+ "dob_month": "",
1395
+ "dob_year": "",
1396
+ "email": "test@example.com",
1397
+ "id": "rp_19zuujDSlTMT26MkZ3ZnkXL2",
1398
+ "livemode": false,
1399
+ "metadata": {
1400
+ },
1401
+ "migrated_to": "",
1402
+ "name": "John Doe",
1403
+ "object": "recipient",
1404
+ "tin": "",
1405
+ "tin_verification_pending": false,
1406
+ "type": "individual",
1407
+ "verified": false
1408
+ },
1409
+ "transfer_reversal": {
1410
+ "amount": 1100,
1411
+ "balance_transaction": "",
1412
+ "created": 1234567890,
1413
+ "currency": "usd",
1414
+ "id": "trr_19zuujDSlTMT26Mkg0q2NfQu",
1415
+ "metadata": {
1416
+ },
1417
+ "object": "transfer_reversal",
1418
+ "transfer": "tr_19zuujDSlTMT26Mk81npuLjT"
1419
+ },
1420
+ "upcoming_invoice": {
1421
+ "amount_due": 0,
1422
+ "application_fee": 0,
1423
+ "attempt_count": 0,
1424
+ "attempted": false,
1425
+ "billing": "",
1426
+ "charge": "",
1427
+ "closed": false,
1428
+ "currency": "usd",
1429
+ "customer": "cus_ADmuABetLS15eF",
1430
+ "date": 1234567890,
1431
+ "description": "",
1432
+ "discount": {
1433
+ },
1434
+ "due_date": 1234567890,
1435
+ "ending_balance": 0,
1436
+ "forgiven": false,
1437
+ "lines": {
1438
+ "data": [
1370
1439
 
1371
- ],
1372
- "has_more": false,
1373
- "object": "list",
1374
- "total_count": 0,
1375
- "url": "/v1/invoices/in_19y6HIAylotNGqt3Kq1NUy5r/lines"
1376
- },
1377
- "livemode": false,
1378
- "metadata": {
1379
- },
1380
- "next_payment_attempt": 1234567890,
1381
- "number": "",
1382
- "object": "invoice",
1383
- "paid": false,
1384
- "period_end": 1234567890,
1385
- "period_start": 1234567890,
1386
- "receipt_number": "",
1387
- "starting_balance": 0,
1388
- "statement_descriptor": "",
1389
- "subscription": "",
1390
- "subscription_proration_date": 0,
1391
- "subtotal": 0,
1392
- "tax": 0,
1393
- "tax_percent": 0.0,
1394
- "total": 0,
1395
- "webhooks_delivered_at": 1234567890
1440
+ ],
1441
+ "has_more": false,
1442
+ "object": "list",
1443
+ "total_count": 0,
1444
+ "url": "/v1/invoices/in_19zuuiDSlTMT26Mk1XitxqCb/lines"
1445
+ },
1446
+ "livemode": false,
1447
+ "metadata": {
1448
+ },
1449
+ "next_payment_attempt": 1234567890,
1450
+ "number": "",
1451
+ "object": "invoice",
1452
+ "paid": false,
1453
+ "period_end": 1234567890,
1454
+ "period_start": 1234567890,
1455
+ "receipt_number": "",
1456
+ "send_next_at": 1234567890,
1457
+ "starting_balance": 0,
1458
+ "statement_descriptor": "",
1459
+ "subscription": "",
1460
+ "subscription_proration_date": 0,
1461
+ "subtotal": 0,
1462
+ "tax": 0,
1463
+ "tax_percent": 0.0,
1464
+ "total": 0,
1465
+ "webhooks_delivered_at": 1234567890
1466
+ }
1396
1467
  }
1397
1468
  }