stripe 2.0.3 → 5.55.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +1036 -0
  3. data/CODE_OF_CONDUCT.md +77 -0
  4. data/Gemfile +24 -23
  5. data/History.txt +1 -593
  6. data/Makefile +7 -0
  7. data/README.md +252 -53
  8. data/Rakefile +18 -24
  9. data/VERSION +1 -1
  10. data/bin/stripe-console +5 -3
  11. data/lib/stripe/api_operations/create.rb +4 -2
  12. data/lib/stripe/api_operations/delete.rb +31 -3
  13. data/lib/stripe/api_operations/list.rb +4 -13
  14. data/lib/stripe/api_operations/nested_resource.rb +73 -0
  15. data/lib/stripe/api_operations/request.rb +92 -10
  16. data/lib/stripe/api_operations/save.rb +25 -13
  17. data/lib/stripe/api_operations/search.rb +19 -0
  18. data/lib/stripe/api_resource.rb +55 -11
  19. data/lib/stripe/api_resource_test_helpers.rb +47 -0
  20. data/lib/stripe/connection_manager.rb +200 -0
  21. data/lib/stripe/error_object.rb +93 -0
  22. data/lib/stripe/errors.rb +98 -13
  23. data/lib/stripe/instrumentation.rb +84 -0
  24. data/lib/stripe/list_object.rb +55 -21
  25. data/lib/stripe/multipart_encoder.rb +131 -0
  26. data/lib/stripe/oauth.rb +65 -0
  27. data/lib/stripe/object_types.rb +119 -0
  28. data/lib/stripe/{account.rb → resources/account.rb} +75 -38
  29. data/lib/stripe/resources/account_link.rb +10 -0
  30. data/lib/stripe/resources/alipay_account.rb +34 -0
  31. data/lib/stripe/{apple_pay_domain.rb → resources/apple_pay_domain.rb} +6 -1
  32. data/lib/stripe/resources/application_fee.rb +14 -0
  33. data/lib/stripe/resources/application_fee_refund.rb +31 -0
  34. data/lib/stripe/resources/balance.rb +8 -0
  35. data/lib/stripe/resources/balance_transaction.rb +10 -0
  36. data/lib/stripe/resources/bank_account.rb +43 -0
  37. data/lib/stripe/resources/billing_portal/configuration.rb +14 -0
  38. data/lib/stripe/resources/billing_portal/session.rb +12 -0
  39. data/lib/stripe/{bitcoin_receiver.rb → resources/bitcoin_receiver.rb} +8 -4
  40. data/lib/stripe/resources/bitcoin_transaction.rb +16 -0
  41. data/lib/stripe/resources/capability.rb +34 -0
  42. data/lib/stripe/resources/card.rb +38 -0
  43. data/lib/stripe/resources/cash_balance.rb +22 -0
  44. data/lib/stripe/resources/charge.rb +32 -0
  45. data/lib/stripe/resources/checkout/session.rb +27 -0
  46. data/lib/stripe/resources/country_spec.rb +10 -0
  47. data/lib/stripe/{coupon.rb → resources/coupon.rb} +6 -1
  48. data/lib/stripe/resources/credit_note.rb +33 -0
  49. data/lib/stripe/resources/credit_note_line_item.rb +8 -0
  50. data/lib/stripe/resources/customer.rb +74 -0
  51. data/lib/stripe/resources/customer_balance_transaction.rb +31 -0
  52. data/lib/stripe/resources/discount.rb +8 -0
  53. data/lib/stripe/resources/dispute.rb +22 -0
  54. data/lib/stripe/resources/ephemeral_key.rb +20 -0
  55. data/lib/stripe/resources/event.rb +10 -0
  56. data/lib/stripe/resources/exchange_rate.rb +10 -0
  57. data/lib/stripe/resources/file.rb +36 -0
  58. data/lib/stripe/resources/file_link.rb +12 -0
  59. data/lib/stripe/resources/financial_connections/account.rb +31 -0
  60. data/lib/stripe/resources/financial_connections/account_owner.rb +10 -0
  61. data/lib/stripe/resources/financial_connections/account_ownership.rb +10 -0
  62. data/lib/stripe/resources/financial_connections/session.rb +12 -0
  63. data/lib/stripe/resources/funding_instructions.rb +16 -0
  64. data/lib/stripe/resources/identity/verification_report.rb +12 -0
  65. data/lib/stripe/resources/identity/verification_session.rb +35 -0
  66. data/lib/stripe/resources/invoice.rb +83 -0
  67. data/lib/stripe/{invoice_item.rb → resources/invoice_item.rb} +6 -1
  68. data/lib/stripe/resources/invoice_line_item.rb +8 -0
  69. data/lib/stripe/resources/issuing/authorization.rb +34 -0
  70. data/lib/stripe/resources/issuing/card.rb +25 -0
  71. data/lib/stripe/resources/issuing/card_details.rb +10 -0
  72. data/lib/stripe/resources/issuing/cardholder.rb +14 -0
  73. data/lib/stripe/resources/issuing/dispute.rb +25 -0
  74. data/lib/stripe/resources/issuing/transaction.rb +13 -0
  75. data/lib/stripe/resources/line_item.rb +8 -0
  76. data/lib/stripe/resources/login_link.rb +15 -0
  77. data/lib/stripe/resources/mandate.rb +8 -0
  78. data/lib/stripe/resources/order.rb +33 -0
  79. data/lib/stripe/resources/order_return.rb +10 -0
  80. data/lib/stripe/resources/payment_intent.rb +82 -0
  81. data/lib/stripe/resources/payment_link.rb +23 -0
  82. data/lib/stripe/resources/payment_method.rb +33 -0
  83. data/lib/stripe/resources/payout.rb +33 -0
  84. data/lib/stripe/resources/person.rb +32 -0
  85. data/lib/stripe/{plan.rb → resources/plan.rb} +5 -0
  86. data/lib/stripe/resources/price.rb +21 -0
  87. data/lib/stripe/resources/product.rb +22 -0
  88. data/lib/stripe/resources/promotion_code.rb +12 -0
  89. data/lib/stripe/resources/quote.rb +105 -0
  90. data/lib/stripe/resources/radar/early_fraud_warning.rb +12 -0
  91. data/lib/stripe/resources/radar/value_list.rb +15 -0
  92. data/lib/stripe/resources/radar/value_list_item.rb +14 -0
  93. data/lib/stripe/resources/recipient.rb +14 -0
  94. data/lib/stripe/resources/recipient_transfer.rb +7 -0
  95. data/lib/stripe/resources/refund.rb +42 -0
  96. data/lib/stripe/resources/reporting/report_run.rb +13 -0
  97. data/lib/stripe/resources/reporting/report_type.rb +13 -0
  98. data/lib/stripe/resources/reversal.rb +30 -0
  99. data/lib/stripe/resources/review.rb +21 -0
  100. data/lib/stripe/resources/setup_attempt.rb +10 -0
  101. data/lib/stripe/resources/setup_intent.rb +43 -0
  102. data/lib/stripe/resources/shipping_rate.rb +12 -0
  103. data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
  104. data/lib/stripe/{sku.rb → resources/sku.rb} +7 -2
  105. data/lib/stripe/resources/source.rb +47 -0
  106. data/lib/stripe/resources/source_transaction.rb +8 -0
  107. data/lib/stripe/resources/subscription.rb +35 -0
  108. data/lib/stripe/resources/subscription_item.rb +26 -0
  109. data/lib/stripe/resources/subscription_schedule.rb +33 -0
  110. data/lib/stripe/resources/tax_code.rb +10 -0
  111. data/lib/stripe/resources/tax_id.rb +27 -0
  112. data/lib/stripe/{product.rb → resources/tax_rate.rb} +7 -3
  113. data/lib/stripe/resources/terminal/configuration.rb +15 -0
  114. data/lib/stripe/resources/terminal/connection_token.rb +12 -0
  115. data/lib/stripe/resources/terminal/location.rb +15 -0
  116. data/lib/stripe/resources/terminal/reader.rb +75 -0
  117. data/lib/stripe/resources/test_helpers/test_clock.rb +25 -0
  118. data/lib/stripe/{three_d_secure.rb → resources/three_d_secure.rb} +5 -0
  119. data/lib/stripe/resources/token.rb +10 -0
  120. data/lib/stripe/resources/topup.rb +23 -0
  121. data/lib/stripe/resources/transfer.rb +27 -0
  122. data/lib/stripe/resources/usage_record.rb +8 -0
  123. data/lib/stripe/resources/usage_record_summary.rb +8 -0
  124. data/lib/stripe/{recipient.rb → resources/webhook_endpoint.rb} +6 -5
  125. data/lib/stripe/resources.rb +100 -0
  126. data/lib/stripe/search_result_object.rb +86 -0
  127. data/lib/stripe/singleton_api_resource.rb +10 -4
  128. data/lib/stripe/stripe_client.rb +886 -223
  129. data/lib/stripe/stripe_configuration.rb +194 -0
  130. data/lib/stripe/stripe_object.rb +301 -132
  131. data/lib/stripe/stripe_response.rb +89 -27
  132. data/lib/stripe/util.rb +272 -122
  133. data/lib/stripe/version.rb +3 -1
  134. data/lib/stripe/webhook.rb +121 -0
  135. data/lib/stripe.rb +94 -116
  136. data/stripe.gemspec +35 -16
  137. metadata +127 -156
  138. data/.gitattributes +0 -4
  139. data/.github/ISSUE_TEMPLATE.md +0 -5
  140. data/.gitignore +0 -5
  141. data/.travis.yml +0 -15
  142. data/lib/stripe/alipay_account.rb +0 -20
  143. data/lib/stripe/application_fee.rb +0 -20
  144. data/lib/stripe/application_fee_refund.rb +0 -18
  145. data/lib/stripe/balance.rb +0 -4
  146. data/lib/stripe/balance_transaction.rb +0 -9
  147. data/lib/stripe/bank_account.rb +0 -28
  148. data/lib/stripe/bitcoin_transaction.rb +0 -9
  149. data/lib/stripe/card.rb +0 -25
  150. data/lib/stripe/charge.rb +0 -80
  151. data/lib/stripe/country_spec.rb +0 -9
  152. data/lib/stripe/customer.rb +0 -77
  153. data/lib/stripe/dispute.rb +0 -15
  154. data/lib/stripe/event.rb +0 -5
  155. data/lib/stripe/file_upload.rb +0 -31
  156. data/lib/stripe/invoice.rb +0 -27
  157. data/lib/stripe/order.rb +0 -27
  158. data/lib/stripe/order_return.rb +0 -9
  159. data/lib/stripe/refund.rb +0 -7
  160. data/lib/stripe/reversal.rb +0 -18
  161. data/lib/stripe/source.rb +0 -11
  162. data/lib/stripe/subscription.rb +0 -31
  163. data/lib/stripe/subscription_item.rb +0 -12
  164. data/lib/stripe/token.rb +0 -5
  165. data/lib/stripe/transfer.rb +0 -16
  166. data/openapi/fixtures.json +0 -1383
  167. data/openapi/fixtures.yaml +0 -1130
  168. data/openapi/spec.json +0 -19749
  169. data/openapi/spec.yaml +0 -15359
  170. data/test/api_fixtures.rb +0 -29
  171. data/test/api_stub_helpers.rb +0 -125
  172. data/test/stripe/account_test.rb +0 -204
  173. data/test/stripe/alipay_account_test.rb +0 -19
  174. data/test/stripe/api_operations_test.rb +0 -31
  175. data/test/stripe/api_resource_test.rb +0 -496
  176. data/test/stripe/apple_pay_domain_test.rb +0 -33
  177. data/test/stripe/application_fee_refund_test.rb +0 -38
  178. data/test/stripe/application_fee_test.rb +0 -14
  179. data/test/stripe/balance_test.rb +0 -11
  180. data/test/stripe/bank_account_test.rb +0 -41
  181. data/test/stripe/bitcoin_receiver_test.rb +0 -70
  182. data/test/stripe/bitcoin_transaction_test.rb +0 -21
  183. data/test/stripe/charge_test.rb +0 -59
  184. data/test/stripe/country_spec_test.rb +0 -20
  185. data/test/stripe/coupon_test.rb +0 -44
  186. data/test/stripe/customer_card_test.rb +0 -42
  187. data/test/stripe/customer_test.rb +0 -116
  188. data/test/stripe/dispute_test.rb +0 -42
  189. data/test/stripe/errors_test.rb +0 -18
  190. data/test/stripe/file_upload_test.rb +0 -66
  191. data/test/stripe/invoice_item_test.rb +0 -55
  192. data/test/stripe/invoice_test.rb +0 -66
  193. data/test/stripe/list_object_test.rb +0 -170
  194. data/test/stripe/order_return_test.rb +0 -21
  195. data/test/stripe/order_test.rb +0 -59
  196. data/test/stripe/plan_test.rb +0 -52
  197. data/test/stripe/product_test.rb +0 -47
  198. data/test/stripe/recipient_card_test.rb +0 -40
  199. data/test/stripe/recipient_test.rb +0 -50
  200. data/test/stripe/refund_test.rb +0 -39
  201. data/test/stripe/reversal_test.rb +0 -43
  202. data/test/stripe/sku_test.rb +0 -50
  203. data/test/stripe/source_test.rb +0 -43
  204. data/test/stripe/stripe_client_test.rb +0 -440
  205. data/test/stripe/stripe_object_test.rb +0 -361
  206. data/test/stripe/stripe_response_test.rb +0 -46
  207. data/test/stripe/subscription_item_test.rb +0 -54
  208. data/test/stripe/subscription_test.rb +0 -60
  209. data/test/stripe/three_d_secure_test.rb +0 -23
  210. data/test/stripe/transfer_test.rb +0 -50
  211. data/test/stripe/util_test.rb +0 -149
  212. data/test/stripe_test.rb +0 -41
  213. data/test/test_data.rb +0 -59
  214. data/test/test_helper.rb +0 -41
@@ -1,1383 +0,0 @@
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+ujebwko0fp@example.com",
23
- "external_accounts": {
24
- "data": [
25
-
26
- ],
27
- "has_more": false,
28
- "object": "list",
29
- "total_count": 0,
30
- "url": "/v1/accounts/acct_19xOmSA6KsQaPpsx/external_accounts"
31
- },
32
- "fake_account": false,
33
- "id": "acct_19xOmSA6KsQaPpsx",
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,
74
- "verification": {
75
- "details": null,
76
- "details_code": null,
77
- "document": null,
78
- "status": "unverified"
79
- }
80
- },
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": [
125
-
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+ujebwko0fp@example.com",
142
- "external_accounts": {
143
- },
144
- "fake_account": false,
145
- "id": "acct_19xOmSA6KsQaPpsx",
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": "NmrPSTwAXOffguOu",
181
- "id": "aliacc_19xOmZA6KsQaPpsx8SQGAn0E",
182
- "livemode": false,
183
- "metadata": {
184
- },
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_19xOmYA6KsQaPpsxDX3zqwLL",
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
206
- }
207
- }
208
- ],
209
- "connect_reserved": [
210
-
211
- ],
212
- "livemode": false,
213
- "object": "balance",
214
- "pending": [
215
- {
216
- "amount": 0,
217
- "currency": "usd",
218
- "source_types": {
219
- "card": 0
220
- }
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_19xOmYA6KsQaPpsxgSCbKQ3d",
237
- "net": 100,
238
- "object": "balance_transaction",
239
- "source": "ch_19xOmYA6KsQaPpsxRpMRzREK",
240
- "sourced_transfers": {
241
- },
242
- "status": "pending",
243
- "type": "charge"
244
- },
245
- "bank_account": {
246
- "account": "acct_19xOmSA6KsQaPpsx",
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": "rhUqyC2EcjMewT6o",
263
- "id": "ba_19xOmZA6KsQaPpsx7DTyLvtT",
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_19xOmZA6KsQaPpsx8TtHgMVX",
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_19xOmZA6KsQaPpsx5FnHoZis",
305
- "object": "bitcoin_transaction",
306
- "receiver": "btcrcv_19xOmZB4YnRyKoofPMbLFiZa"
307
- },
308
- "card": {
309
- "3d_secure": {
310
- },
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": [
321
-
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_19xOmYA6KsQaPpsx93IwBRHM",
339
- "iin": "",
340
- "issuer": "",
341
- "last4": "4242",
342
- "metadata": {
343
- },
344
- "name": "",
345
- "object": "card",
346
- "recipient": "",
347
- "three_d_secure": {
348
- },
349
- "tokenization_method": ""
350
- },
351
- "charge": {
352
- "alternate_statement_descriptors": {
353
- },
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_19xOmYA6KsQaPpsxgSCbKQ3d",
363
- "captured": true,
364
- "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_19xOmYA6KsQaPpsxRpMRzREK",
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": [
396
-
397
- ],
398
- "has_more": false,
399
- "object": "list",
400
- "total_count": 0,
401
- "url": "/v1/charges/ch_19xOmYA6KsQaPpsxRpMRzREK/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
- "brand": "Visa",
416
- "country": null,
417
- "customer": null,
418
- "cvc_check": null,
419
- "dynamic_last4": null,
420
- "exp_month": 8,
421
- "exp_year": 2018,
422
- "funding": "unknown",
423
- "id": "card_19xOmYA6KsQaPpsx93IwBRHM",
424
- "last4": "4242",
425
- "metadata": {
426
- },
427
- "name": null,
428
- "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
- ]
449
- },
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
- ]
469
- },
470
- "individual": {
471
- "additional": [
472
-
473
- ],
474
- "minimum": [
475
-
476
- ]
477
- }
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
- },
516
- "email": "",
517
- "id": "cus_AHykWO1tNrvBO2",
518
- "livemode": false,
519
- "metadata": {
520
- },
521
- "object": "customer",
522
- "shipping": {
523
- },
524
- "sources": {
525
- "data": [
526
-
527
- ],
528
- "has_more": false,
529
- "object": "list",
530
- "total_count": 0,
531
- "url": "/v1/customers/cus_AHykWO1tNrvBO2/sources"
532
- },
533
- "subscription": {
534
- },
535
- "subscriptions": {
536
- },
537
- "trust": {
538
- }
539
- },
540
- "customer_source": {
541
- "customer": "",
542
- "id": "ba_19xOmZA6KsQaPpsx7DTyLvtT",
543
- "metadata": {
544
- },
545
- "object": "bank_account"
546
- },
547
- "discount": {
548
- "coupon": {
549
- "amount_off": null,
550
- "created": 1489533023,
551
- "currency": "usd",
552
- "duration": "repeating",
553
- "duration_in_months": 3,
554
- "id": "25OFF",
555
- "livemode": false,
556
- "max_redemptions": null,
557
- "metadata": {
558
- },
559
- "object": "coupon",
560
- "percent_off": 25,
561
- "redeem_by": null,
562
- "times_redeemed": 0,
563
- "valid": true
564
- },
565
- "customer": "cus_AHykWO1tNrvBO2",
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": [
576
-
577
- ],
578
- "charge": "ch_19xOmYA6KsQaPpsxRpMRzREK",
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": 1491177599,
614
- "has_evidence": false,
615
- "past_due": false,
616
- "submission_count": 0
617
- },
618
- "evidence_submitted_at": [
619
-
620
- ],
621
- "id": "dp_19xOmYA6KsQaPpsxF27xl8iJ",
622
- "is_charge_refundable": false,
623
- "is_protected": false,
624
- "livemode": false,
625
- "metadata": {
626
- },
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": 1489533023,
640
- "currency": "usd",
641
- "id": "gold",
642
- "interval": "month",
643
- "interval_count": 1,
644
- "livemode": false,
645
- "metadata": {
646
- },
647
- "name": "Gold Special",
648
- "object": "plan",
649
- "statement_descriptor": null,
650
- "trial_period_days": null
651
- }
652
- },
653
- "id": "evt_19xOmZA6KsQaPpsxg3PnM6Ax",
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_19xOmSA6KsQaPpsx",
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": "rhUqyC2EcjMewT6o",
673
- "id": "ba_19xOmZA6KsQaPpsx7DTyLvtT",
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_19xOmZA6KsQaPpsxZCoZI7Ep",
685
- "id": "fr_AHykVrc8RYtq3K",
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_AHykWO1tNrvBO2",
700
- "date": 1234567890,
701
- "description": "",
702
- "discount": {
703
- },
704
- "due_date": 1234567890,
705
- "ending_balance": 0,
706
- "forgiven": false,
707
- "id": "in_19xOmZA6KsQaPpsxpXZEk0Jl",
708
- "lines": {
709
- "data": [
710
- {
711
- "amount": 2000,
712
- "currency": "usd",
713
- "description": null,
714
- "discountable": true,
715
- "id": "sub_AHyk2EXaU2gAEV",
716
- "livemode": true,
717
- "metadata": {
718
- },
719
- "object": "line_item",
720
- "period": {
721
- "end": 1494803422,
722
- "start": 1492211422
723
- },
724
- "plan": {
725
- "amount": 2000,
726
- "created": 1489533023,
727
- "currency": "usd",
728
- "id": "gold",
729
- "interval": "month",
730
- "interval_count": 1,
731
- "livemode": false,
732
- "metadata": {
733
- },
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_19xOmYB4YnRyKoofnPXr05OV",
743
- "type": "subscription"
744
- }
745
- ],
746
- "object": "list",
747
- "total_count": 1,
748
- "url": "/v1/invoices/in_19xOmZA6KsQaPpsxpXZEk0Jl/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_AHykWO1tNrvBO2",
774
- "date": 1234567890,
775
- "description": "My First Invoice Item (created for API docs)",
776
- "discountable": true,
777
- "id": "ii_19xOmZA6KsQaPpsxw92LOZet",
778
- "invoice": "",
779
- "livemode": false,
780
- "metadata": {
781
- },
782
- "object": "invoiceitem",
783
- "period": {
784
- "end": 1489533023,
785
- "start": 1489533023
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_19xOmZA6KsQaPpsxw92LOZet",
800
- "livemode": false,
801
- "metadata": {
802
- },
803
- "object": "line_item",
804
- "period": {
805
- "end": 1489533023,
806
- "start": 1489533023
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_19xOmZA6KsQaPpsxBhLhCCLJ",
832
- "destination_payment": "",
833
- "failure_code": "",
834
- "failure_message": "",
835
- "id": "tr_19xOmZA6KsQaPpsxxTnirGHq",
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_19xOmZA6KsQaPpsxxTnirGHq/reversals"
851
- },
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": [
873
-
874
- ],
875
- "id": "or_19xOmbA6KsQaPpsxdJuNEqnx",
876
- "items": [
877
- {
878
- "amount": 1500,
879
- "currency": "usd",
880
- "description": "T-shirt",
881
- "object": "order_item",
882
- "parent": "sk_19xOmbA6KsQaPpsx0niGDfiM",
883
- "quantity": null,
884
- "type": "sku"
885
- }
886
- ],
887
- "livemode": false,
888
- "metadata": {
889
- },
890
- "object": "order",
891
- "returns": {
892
- "data": [
893
-
894
- ],
895
- "has_more": false,
896
- "object": "list",
897
- "total_count": 0,
898
- "url": "/v1/order_returns?order=or_19xOmbA6KsQaPpsxdJuNEqnx"
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_19xOmbA6KsQaPpsxFhO0lEnm",
929
- "items": [
930
- {
931
- "amount": 1500,
932
- "currency": "usd",
933
- "description": "T-shirt",
934
- "object": "order_item",
935
- "parent": "sk_19xOmbA6KsQaPpsx0niGDfiM",
936
- "quantity": null,
937
- "type": "sku"
938
- }
939
- ],
940
- "livemode": false,
941
- "object": "order_return",
942
- "order": "or_19xOmbA6KsQaPpsxcibE2Kys",
943
- "refund": "re_19xOmbA6KsQaPpsxweFlRcU7"
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_19xOmSA6KsQaPpsx",
962
- "amount": 100,
963
- "amount_refunded": 0,
964
- "application": "ca_AHykjKaDnL4KjnMmmkLzuwqk9hkgJA5M",
965
- "balance_transaction": "txn_19xOmYA6KsQaPpsxgSCbKQ3d",
966
- "charge": "ch_19xOmYA6KsQaPpsxRpMRzREK",
967
- "created": 1234567890,
968
- "currency": "usd",
969
- "id": "fee_19xOmZA6KsQaPpsxZCoZI7Ep",
970
- "livemode": false,
971
- "object": "application_fee",
972
- "originating_transaction": "",
973
- "refunded": false,
974
- "refunds": {
975
- "data": [
976
-
977
- ],
978
- "has_more": false,
979
- "object": "list",
980
- "total_count": 0,
981
- "url": "/v1/application_fees/fee_19xOmZA6KsQaPpsxZCoZI7Ep/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_AHyk8gTS1wCWqa",
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": [
1012
-
1013
- ],
1014
- "has_more": false,
1015
- "object": "list",
1016
- "total_count": 0,
1017
- "url": "/v1/skus?product=prod_AHyk8gTS1wCWqa\u0026active=true"
1018
- },
1019
- "tweetable_url": "",
1020
- "updated": 1234567890,
1021
- "url": ""
1022
- },
1023
- "refund": {
1024
- "amount": 100,
1025
- "balance_transaction": "",
1026
- "charge": "ch_19xOmYA6KsQaPpsxRpMRzREK",
1027
- "created": 1234567890,
1028
- "currency": "usd",
1029
- "description": "",
1030
- "fee_balance_transactions": {
1031
- },
1032
- "id": "re_19xOmYA6KsQaPpsxnI34WZGS",
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_AHyktKapJTzgmX",
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_AHyk8gTS1wCWqa",
1064
- "updated": 1234567890
1065
- },
1066
- "source": {
1067
- "amount": 0,
1068
- "client_secret": "",
1069
- "code_verification": {
1070
- },
1071
- "created": 1234567890,
1072
- "currency": "",
1073
- "customer": "",
1074
- "flow": "",
1075
- "id": "card_19xOmYA6KsQaPpsx93IwBRHM",
1076
- "livemode": false,
1077
- "metadata": {
1078
- },
1079
- "object": "card",
1080
- "order": "",
1081
- "owner": {
1082
- },
1083
- "receiver": {
1084
- },
1085
- "redirect": {
1086
- },
1087
- "status": "",
1088
- "type": "",
1089
- "usage": ""
1090
- },
1091
- "subscription": {
1092
- "account_balance": 0,
1093
- "application_fee_percent": 0.0,
1094
- "billing": "",
1095
- "cancel_at_period_end": false,
1096
- "canceled_at": 1234567890,
1097
- "created": 1234567890,
1098
- "current_period_end": 1234567890,
1099
- "current_period_start": 1234567890,
1100
- "customer": "cus_AHykJG3Ru2BgKh",
1101
- "days_until_due": 0,
1102
- "discount": {
1103
- },
1104
- "ended_at": 1234567890,
1105
- "id": "sub_AHyk2EXaU2gAEV",
1106
- "items": {
1107
- "data": [
1108
- {
1109
- "created": 1489533023,
1110
- "id": "si_19xOmYB4YnRyKoofnPXr05OV",
1111
- "object": "subscription_item",
1112
- "plan": {
1113
- "amount": 2000,
1114
- "created": 1489533022,
1115
- "currency": "usd",
1116
- "id": "gold",
1117
- "interval": "month",
1118
- "interval_count": 1,
1119
- "livemode": false,
1120
- "metadata": {
1121
- },
1122
- "name": "Gold Special",
1123
- "object": "plan",
1124
- "statement_descriptor": null,
1125
- "trial_period_days": null
1126
- },
1127
- "quantity": 1
1128
- }
1129
- ],
1130
- "has_more": false,
1131
- "object": "list",
1132
- "total_count": 1,
1133
- "url": "/v1/subscription_items?subscription=sub_AHyk2EXaU2gAEV"
1134
- },
1135
- "livemode": false,
1136
- "max_occurrences": 0,
1137
- "metadata": {
1138
- },
1139
- "object": "subscription",
1140
- "on_behalf_of": "",
1141
- "plan": {
1142
- "amount": 2000,
1143
- "created": 1489533022,
1144
- "currency": "usd",
1145
- "id": "gold",
1146
- "interval": "month",
1147
- "interval_count": 1,
1148
- "livemode": false,
1149
- "metadata": {
1150
- },
1151
- "name": "Gold Special",
1152
- "object": "plan",
1153
- "statement_descriptor": null,
1154
- "trial_period_days": null
1155
- },
1156
- "quantity": 1,
1157
- "retains_own_balance": false,
1158
- "start": 1234567890,
1159
- "status": "active",
1160
- "tax_percent": 0.0,
1161
- "trial_end": 1234567890,
1162
- "trial_start": 1234567890
1163
- },
1164
- "subscription_item": {
1165
- "created": 1489533023,
1166
- "id": "si_19xOmZB4YnRyKoofmmqQD542",
1167
- "object": "subscription_item",
1168
- "plan": {
1169
- "amount": 2000,
1170
- "created": 1489533022,
1171
- "currency": "usd",
1172
- "id": "gold",
1173
- "interval": "month",
1174
- "interval_count": 1,
1175
- "livemode": false,
1176
- "metadata": {
1177
- },
1178
- "name": "Gold Special",
1179
- "object": "plan",
1180
- "statement_descriptor": null,
1181
- "trial_period_days": null
1182
- },
1183
- "quantity": 1
1184
- },
1185
- "three_d_secure": {
1186
- "amount": 1500,
1187
- "authenticated": false,
1188
- "card": {
1189
- "address_city": null,
1190
- "address_country": null,
1191
- "address_line1": null,
1192
- "address_line1_check": null,
1193
- "address_line2": null,
1194
- "address_state": null,
1195
- "address_zip": null,
1196
- "address_zip_check": null,
1197
- "brand": "Visa",
1198
- "country": null,
1199
- "customer": null,
1200
- "cvc_check": null,
1201
- "dynamic_last4": null,
1202
- "exp_month": 8,
1203
- "exp_year": 2018,
1204
- "funding": "unknown",
1205
- "id": "card_19xOmZA6KsQaPpsx1TPW9v1Z",
1206
- "last4": "4242",
1207
- "metadata": {
1208
- },
1209
- "name": null,
1210
- "object": "card",
1211
- "tokenization_method": null
1212
- },
1213
- "created": 1234567890,
1214
- "currency": "usd",
1215
- "id": "tdsrc_AHyk0Ny8jTjJoy",
1216
- "livemode": false,
1217
- "object": "three_d_secure",
1218
- "redirect_url": "http://127.0.0.1:6080/3d_secure/authenticate/tdsrc_AHyk0Ny8jTjJoy",
1219
- "status": "redirect_pending"
1220
- },
1221
- "token": {
1222
- "account_details": {
1223
- },
1224
- "alipay_account": {
1225
- },
1226
- "bank_account": {
1227
- },
1228
- "card": {
1229
- "address_city": null,
1230
- "address_country": null,
1231
- "address_line1": null,
1232
- "address_line1_check": null,
1233
- "address_line2": null,
1234
- "address_state": null,
1235
- "address_zip": null,
1236
- "address_zip_check": null,
1237
- "brand": "Visa",
1238
- "country": null,
1239
- "cvc_check": null,
1240
- "dynamic_last4": null,
1241
- "exp_month": 8,
1242
- "exp_year": 2018,
1243
- "funding": "unknown",
1244
- "id": "card_19xOmZA6KsQaPpsx1TPW9v1Z",
1245
- "last4": "4242",
1246
- "metadata": {
1247
- },
1248
- "name": null,
1249
- "object": "card",
1250
- "tokenization_method": null
1251
- },
1252
- "client_ip": "",
1253
- "created": 1234567890,
1254
- "description": "",
1255
- "email": "",
1256
- "id": "tok_19xOmZA6KsQaPpsxwCla8HhZ",
1257
- "livemode": false,
1258
- "object": "token",
1259
- "type": "card",
1260
- "usage": "",
1261
- "used": false
1262
- },
1263
- "transfer": {
1264
- "amount": 1100,
1265
- "amount_reversed": 0,
1266
- "balance_transaction": "txn_19xOmYA6KsQaPpsxgSCbKQ3d",
1267
- "created": 1234567890,
1268
- "currency": "usd",
1269
- "destination": "ba_19xOmZA6KsQaPpsxBhLhCCLJ",
1270
- "destination_payment": "",
1271
- "id": "tr_19xOmZA6KsQaPpsxxTnirGHq",
1272
- "livemode": false,
1273
- "metadata": {
1274
- },
1275
- "object": "transfer",
1276
- "reversals": {
1277
- "data": [
1278
-
1279
- ],
1280
- "has_more": false,
1281
- "object": "list",
1282
- "total_count": 0,
1283
- "url": "/v1/transfers/tr_19xOmZA6KsQaPpsxxTnirGHq/reversals"
1284
- },
1285
- "reversed": false,
1286
- "transfer_group": ""
1287
- },
1288
- "transfer_recipient": {
1289
- "active_account": {
1290
- },
1291
- "address_city": "",
1292
- "address_country": "",
1293
- "address_line1": "",
1294
- "address_line2": "",
1295
- "address_state": "",
1296
- "address_zip": "",
1297
- "cards": {
1298
- "data": [
1299
-
1300
- ],
1301
- "has_more": false,
1302
- "object": "list",
1303
- "total_count": 0,
1304
- "url": "/v1/recipients/rp_19xOmZA6KsQaPpsxz5JlUIpQ/cards"
1305
- },
1306
- "country": "",
1307
- "created": 1234567890,
1308
- "default_card": "",
1309
- "description": "Recipient for John Doe",
1310
- "dob_day": "",
1311
- "dob_month": "",
1312
- "dob_year": "",
1313
- "email": "test@example.com",
1314
- "id": "rp_19xOmZA6KsQaPpsxz5JlUIpQ",
1315
- "livemode": false,
1316
- "metadata": {
1317
- },
1318
- "migrated_to": "",
1319
- "name": "John Doe",
1320
- "object": "recipient",
1321
- "tin": "",
1322
- "tin_verification_pending": false,
1323
- "type": "individual",
1324
- "verified": false
1325
- },
1326
- "transfer_reversal": {
1327
- "amount": 1100,
1328
- "balance_transaction": "",
1329
- "created": 1234567890,
1330
- "currency": "usd",
1331
- "id": "trr_19xOmZA6KsQaPpsxg8vF5JSH",
1332
- "metadata": {
1333
- },
1334
- "object": "transfer_reversal",
1335
- "transfer": "tr_19xOmZA6KsQaPpsxxTnirGHq"
1336
- },
1337
- "upcoming_invoice": {
1338
- "amount_due": 0,
1339
- "application_fee": 0,
1340
- "attempt_count": 0,
1341
- "attempted": false,
1342
- "billing": "",
1343
- "charge": "",
1344
- "closed": false,
1345
- "currency": "usd",
1346
- "customer": "cus_AHykWO1tNrvBO2",
1347
- "date": 1234567890,
1348
- "description": "",
1349
- "discount": {
1350
- },
1351
- "due_date": 1234567890,
1352
- "ending_balance": 0,
1353
- "forgiven": false,
1354
- "lines": {
1355
- "data": [
1356
-
1357
- ],
1358
- "has_more": false,
1359
- "object": "list",
1360
- "total_count": 0,
1361
- "url": "/v1/invoices/in_19xOmZA6KsQaPpsxpXZEk0Jl/lines"
1362
- },
1363
- "livemode": false,
1364
- "metadata": {
1365
- },
1366
- "next_payment_attempt": 1234567890,
1367
- "number": "",
1368
- "object": "invoice",
1369
- "paid": false,
1370
- "period_end": 1234567890,
1371
- "period_start": 1234567890,
1372
- "receipt_number": "",
1373
- "starting_balance": 0,
1374
- "statement_descriptor": "",
1375
- "subscription": "",
1376
- "subscription_proration_date": 0,
1377
- "subtotal": 0,
1378
- "tax": 0,
1379
- "tax_percent": 0.0,
1380
- "total": 0,
1381
- "webhooks_delivered_at": 1234567890
1382
- }
1383
- }