fake_stripe 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CONTRIBUTING.md +33 -0
- data/LICENSE +19 -0
- data/README.md +66 -0
- data/Rakefile +8 -0
- data/lib/fake_stripe.rb +49 -0
- data/lib/fake_stripe/assets/v1.js +38 -0
- data/lib/fake_stripe/assets/v2-mock.js +18 -0
- data/lib/fake_stripe/assets/v2.js +757 -0
- data/lib/fake_stripe/configuration.rb +15 -0
- data/lib/fake_stripe/fixtures/cancel_subscription.json +18 -0
- data/lib/fake_stripe/fixtures/cancel_transfer.json +161 -0
- data/lib/fake_stripe/fixtures/capture_charge.json +51 -0
- data/lib/fake_stripe/fixtures/close_dispute.json +13 -0
- data/lib/fake_stripe/fixtures/create_card.json +21 -0
- data/lib/fake_stripe/fixtures/create_charge.json +45 -0
- data/lib/fake_stripe/fixtures/create_coupon.json +17 -0
- data/lib/fake_stripe/fixtures/create_customer.json +51 -0
- data/lib/fake_stripe/fixtures/create_invoice.json +52 -0
- data/lib/fake_stripe/fixtures/create_invoiceitem.json +15 -0
- data/lib/fake_stripe/fixtures/create_plan.json +14 -0
- data/lib/fake_stripe/fixtures/create_recipient.json +25 -0
- data/lib/fake_stripe/fixtures/create_subscription.json +18 -0
- data/lib/fake_stripe/fixtures/create_token.json +26 -0
- data/lib/fake_stripe/fixtures/create_transfer.json +161 -0
- data/lib/fake_stripe/fixtures/delete_card.json +4 -0
- data/lib/fake_stripe/fixtures/delete_coupon.json +4 -0
- data/lib/fake_stripe/fixtures/delete_customer.json +4 -0
- data/lib/fake_stripe/fixtures/delete_customer_discount.json +4 -0
- data/lib/fake_stripe/fixtures/delete_invoiceitem.json +4 -0
- data/lib/fake_stripe/fixtures/delete_plan.json +4 -0
- data/lib/fake_stripe/fixtures/delete_recipient.json +4 -0
- data/lib/fake_stripe/fixtures/delete_subscription_discount.json +4 -0
- data/lib/fake_stripe/fixtures/list_application_fees.json +55 -0
- data/lib/fake_stripe/fixtures/list_balance_history.json +76 -0
- data/lib/fake_stripe/fixtures/list_cards.json +70 -0
- data/lib/fake_stripe/fixtures/list_charges.json +146 -0
- data/lib/fake_stripe/fixtures/list_coupons.json +58 -0
- data/lib/fake_stripe/fixtures/list_customers.json +157 -0
- data/lib/fake_stripe/fixtures/list_events.json +172 -0
- data/lib/fake_stripe/fixtures/list_invoiceitems.json +52 -0
- data/lib/fake_stripe/fixtures/list_invoices.json +199 -0
- data/lib/fake_stripe/fixtures/list_plans.json +49 -0
- data/lib/fake_stripe/fixtures/list_recipients.json +82 -0
- data/lib/fake_stripe/fixtures/list_subscriptions.json +100 -0
- data/lib/fake_stripe/fixtures/list_transfers.json +488 -0
- data/lib/fake_stripe/fixtures/pay_invoice.json +65 -0
- data/lib/fake_stripe/fixtures/refund_application_fee.json +17 -0
- data/lib/fake_stripe/fixtures/refund_charge.json +51 -0
- data/lib/fake_stripe/fixtures/retrieve_account.json +19 -0
- data/lib/fake_stripe/fixtures/retrieve_application_fee.json +17 -0
- data/lib/fake_stripe/fixtures/retrieve_balance.json +16 -0
- data/lib/fake_stripe/fixtures/retrieve_balance_transaction.json +23 -0
- data/lib/fake_stripe/fixtures/retrieve_card.json +21 -0
- data/lib/fake_stripe/fixtures/retrieve_charge.json +45 -0
- data/lib/fake_stripe/fixtures/retrieve_coupon.json +17 -0
- data/lib/fake_stripe/fixtures/retrieve_customer.json +51 -0
- data/lib/fake_stripe/fixtures/retrieve_event.json +56 -0
- data/lib/fake_stripe/fixtures/retrieve_invoice.json +64 -0
- data/lib/fake_stripe/fixtures/retrieve_invoice_line_items.json +61 -0
- data/lib/fake_stripe/fixtures/retrieve_invoiceitem.json +15 -0
- data/lib/fake_stripe/fixtures/retrieve_plan.json +14 -0
- data/lib/fake_stripe/fixtures/retrieve_recipient.json +25 -0
- data/lib/fake_stripe/fixtures/retrieve_subscription.json +31 -0
- data/lib/fake_stripe/fixtures/retrieve_token.json +26 -0
- data/lib/fake_stripe/fixtures/retrieve_transfer.json +161 -0
- data/lib/fake_stripe/fixtures/retrieve_upcoming_invoice.json +63 -0
- data/lib/fake_stripe/fixtures/update_card.json +21 -0
- data/lib/fake_stripe/fixtures/update_charge.json +45 -0
- data/lib/fake_stripe/fixtures/update_customer.json +51 -0
- data/lib/fake_stripe/fixtures/update_dispute.json +13 -0
- data/lib/fake_stripe/fixtures/update_invoice.json +64 -0
- data/lib/fake_stripe/fixtures/update_invoiceitem.json +15 -0
- data/lib/fake_stripe/fixtures/update_plan.json +14 -0
- data/lib/fake_stripe/fixtures/update_recipient.json +25 -0
- data/lib/fake_stripe/fixtures/update_subscription.json +18 -0
- data/lib/fake_stripe/fixtures/update_transfer.json +161 -0
- data/lib/fake_stripe/initializers/webmock.rb +3 -0
- data/lib/fake_stripe/stub_app.rb +307 -0
- data/lib/fake_stripe/stub_stripe_js.rb +29 -0
- data/lib/fake_stripe/version.rb +3 -0
- metadata +211 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"object": "list",
|
3
|
+
"url": "/v1/invoiceitems",
|
4
|
+
"count": 3,
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"object": "invoiceitem",
|
8
|
+
"id": "ii_103UAn2eZvKYlo2CkLmj7ne9",
|
9
|
+
"date": 1392247767,
|
10
|
+
"amount": 0,
|
11
|
+
"livemode": false,
|
12
|
+
"proration": false,
|
13
|
+
"currency": "usd",
|
14
|
+
"customer": "abcdefghijklmnop",
|
15
|
+
"description": null,
|
16
|
+
"metadata": {
|
17
|
+
},
|
18
|
+
"invoice": "in_103UAp2eZvKYlo2C6xOPMzPj",
|
19
|
+
"subscription": null
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"object": "invoiceitem",
|
23
|
+
"id": "ii_103UAn2eZvKYlo2CkLmj7ne0",
|
24
|
+
"date": 1392247768,
|
25
|
+
"amount": 0,
|
26
|
+
"livemode": false,
|
27
|
+
"proration": false,
|
28
|
+
"currency": "usd",
|
29
|
+
"customer": "cus_3ewUPsNuSVb5hF",
|
30
|
+
"description": null,
|
31
|
+
"metadata": {
|
32
|
+
},
|
33
|
+
"invoice": "in_103UAp2eZvKYlo2C6xOPMzPk",
|
34
|
+
"subscription": null
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"object": "invoiceitem",
|
38
|
+
"id": "ii_103UAn2eZvKYlo2CkLmj7ne1",
|
39
|
+
"date": 1392247769,
|
40
|
+
"amount": 0,
|
41
|
+
"livemode": false,
|
42
|
+
"proration": false,
|
43
|
+
"currency": "usd",
|
44
|
+
"customer": "cus_3ewUPsNuSVb5hG",
|
45
|
+
"description": null,
|
46
|
+
"metadata": {
|
47
|
+
},
|
48
|
+
"invoice": "in_103UAp2eZvKYlo2C6xOPMzPl",
|
49
|
+
"subscription": null
|
50
|
+
}
|
51
|
+
]
|
52
|
+
}
|
@@ -0,0 +1,199 @@
|
|
1
|
+
{
|
2
|
+
"object": "list",
|
3
|
+
"url": "/v1/invoices",
|
4
|
+
"count": 3,
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"date": 1394731307,
|
8
|
+
"id": "in_103ewP2eZvKYlo2CFLLwIX7a",
|
9
|
+
"period_start": 1394731307,
|
10
|
+
"period_end": 1394731307,
|
11
|
+
"lines": {
|
12
|
+
"data": [
|
13
|
+
{
|
14
|
+
"id": "sub_3ewdhCIki3FxWt",
|
15
|
+
"object": "line_item",
|
16
|
+
"type": "subscription",
|
17
|
+
"livemode": true,
|
18
|
+
"amount": 2000,
|
19
|
+
"currency": "usd",
|
20
|
+
"proration": false,
|
21
|
+
"period": {
|
22
|
+
"start": 1397410552,
|
23
|
+
"end": 1400002552
|
24
|
+
},
|
25
|
+
"quantity": 1,
|
26
|
+
"plan": {
|
27
|
+
"interval": "month",
|
28
|
+
"name": "New plan name123",
|
29
|
+
"created": 1386247539,
|
30
|
+
"amount": 2000,
|
31
|
+
"currency": "usd",
|
32
|
+
"id": "gold21323",
|
33
|
+
"object": "plan",
|
34
|
+
"livemode": false,
|
35
|
+
"interval_count": 1,
|
36
|
+
"trial_period_days": null,
|
37
|
+
"metadata": {
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"description": null,
|
41
|
+
"metadata": null
|
42
|
+
}
|
43
|
+
],
|
44
|
+
"count": 1,
|
45
|
+
"object": "list",
|
46
|
+
"url": "/v1/invoices/in_103ewP2eZvKYlo2CFLLwIX7a/lines"
|
47
|
+
},
|
48
|
+
"subtotal": 0,
|
49
|
+
"total": 0,
|
50
|
+
"customer": "abcdefghijklmnop",
|
51
|
+
"object": "invoice",
|
52
|
+
"attempted": true,
|
53
|
+
"closed": true,
|
54
|
+
"paid": true,
|
55
|
+
"livemode": false,
|
56
|
+
"attempt_count": 0,
|
57
|
+
"amount_due": 0,
|
58
|
+
"currency": "usd",
|
59
|
+
"starting_balance": 0,
|
60
|
+
"ending_balance": null,
|
61
|
+
"next_payment_attempt": null,
|
62
|
+
"charge": null,
|
63
|
+
"discount": null,
|
64
|
+
"application_fee": null,
|
65
|
+
"subscription": "sub_3ewPpEGKafMelq",
|
66
|
+
"metadata": {
|
67
|
+
},
|
68
|
+
"description": null
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"date": 1394731308,
|
72
|
+
"id": "in_103ewP2eZvKYlo2CFLLwIX7b",
|
73
|
+
"period_start": 1394731308,
|
74
|
+
"period_end": 1394731308,
|
75
|
+
"lines": {
|
76
|
+
"data": [
|
77
|
+
{
|
78
|
+
"id": "sub_3ewdhCIki3FxWu",
|
79
|
+
"object": "line_item",
|
80
|
+
"type": "subscription",
|
81
|
+
"livemode": true,
|
82
|
+
"amount": 2000,
|
83
|
+
"currency": "usd",
|
84
|
+
"proration": false,
|
85
|
+
"period": {
|
86
|
+
"start": 1397410553,
|
87
|
+
"end": 1400002553
|
88
|
+
},
|
89
|
+
"quantity": 1,
|
90
|
+
"plan": {
|
91
|
+
"interval": "month",
|
92
|
+
"name": "New plan name124",
|
93
|
+
"created": 1386247540,
|
94
|
+
"amount": 2000,
|
95
|
+
"currency": "usd",
|
96
|
+
"id": "gold21324",
|
97
|
+
"object": "plan",
|
98
|
+
"livemode": false,
|
99
|
+
"interval_count": 1,
|
100
|
+
"trial_period_days": null,
|
101
|
+
"metadata": {
|
102
|
+
}
|
103
|
+
},
|
104
|
+
"description": null,
|
105
|
+
"metadata": null
|
106
|
+
}
|
107
|
+
],
|
108
|
+
"count": 1,
|
109
|
+
"object": "list",
|
110
|
+
"url": "/v1/invoices/in_103ewP2eZvKYlo2CFLLwIX7b/lines"
|
111
|
+
},
|
112
|
+
"subtotal": 0,
|
113
|
+
"total": 0,
|
114
|
+
"customer": "cus_3ewUPsNuSVb5hF",
|
115
|
+
"object": "invoice",
|
116
|
+
"attempted": true,
|
117
|
+
"closed": true,
|
118
|
+
"paid": true,
|
119
|
+
"livemode": false,
|
120
|
+
"attempt_count": 0,
|
121
|
+
"amount_due": 0,
|
122
|
+
"currency": "usd",
|
123
|
+
"starting_balance": 0,
|
124
|
+
"ending_balance": null,
|
125
|
+
"next_payment_attempt": null,
|
126
|
+
"charge": null,
|
127
|
+
"discount": null,
|
128
|
+
"application_fee": null,
|
129
|
+
"subscription": "sub_3ewPpEGKafMelq",
|
130
|
+
"metadata": {
|
131
|
+
},
|
132
|
+
"description": null
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"date": 1394731309,
|
136
|
+
"id": "in_103ewP2eZvKYlo2CFLLwIX7c",
|
137
|
+
"period_start": 1394731309,
|
138
|
+
"period_end": 1394731309,
|
139
|
+
"lines": {
|
140
|
+
"data": [
|
141
|
+
{
|
142
|
+
"id": "sub_3ewdhCIki3FxWv",
|
143
|
+
"object": "line_item",
|
144
|
+
"type": "subscription",
|
145
|
+
"livemode": true,
|
146
|
+
"amount": 2000,
|
147
|
+
"currency": "usd",
|
148
|
+
"proration": false,
|
149
|
+
"period": {
|
150
|
+
"start": 1397410554,
|
151
|
+
"end": 1400002554
|
152
|
+
},
|
153
|
+
"quantity": 1,
|
154
|
+
"plan": {
|
155
|
+
"interval": "month",
|
156
|
+
"name": "New plan name125",
|
157
|
+
"created": 1386247541,
|
158
|
+
"amount": 2000,
|
159
|
+
"currency": "usd",
|
160
|
+
"id": "gold21325",
|
161
|
+
"object": "plan",
|
162
|
+
"livemode": false,
|
163
|
+
"interval_count": 1,
|
164
|
+
"trial_period_days": null,
|
165
|
+
"metadata": {
|
166
|
+
}
|
167
|
+
},
|
168
|
+
"description": null,
|
169
|
+
"metadata": null
|
170
|
+
}
|
171
|
+
],
|
172
|
+
"count": 1,
|
173
|
+
"object": "list",
|
174
|
+
"url": "/v1/invoices/in_103ewP2eZvKYlo2CFLLwIX7c/lines"
|
175
|
+
},
|
176
|
+
"subtotal": 0,
|
177
|
+
"total": 0,
|
178
|
+
"customer": "cus_3ewUPsNuSVb5hG",
|
179
|
+
"object": "invoice",
|
180
|
+
"attempted": true,
|
181
|
+
"closed": true,
|
182
|
+
"paid": true,
|
183
|
+
"livemode": false,
|
184
|
+
"attempt_count": 0,
|
185
|
+
"amount_due": 0,
|
186
|
+
"currency": "usd",
|
187
|
+
"starting_balance": 0,
|
188
|
+
"ending_balance": null,
|
189
|
+
"next_payment_attempt": null,
|
190
|
+
"charge": null,
|
191
|
+
"discount": null,
|
192
|
+
"application_fee": null,
|
193
|
+
"subscription": "sub_3ewPpEGKafMels",
|
194
|
+
"metadata": {
|
195
|
+
},
|
196
|
+
"description": null
|
197
|
+
}
|
198
|
+
]
|
199
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
{
|
2
|
+
"object": "list",
|
3
|
+
"url": "/v1/plans",
|
4
|
+
"count": 3,
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"interval": "month",
|
8
|
+
"name": "New plan name123",
|
9
|
+
"created": 1386247539,
|
10
|
+
"amount": 2000,
|
11
|
+
"currency": "usd",
|
12
|
+
"id": "gold21323",
|
13
|
+
"object": "plan",
|
14
|
+
"livemode": false,
|
15
|
+
"interval_count": 1,
|
16
|
+
"trial_period_days": null,
|
17
|
+
"metadata": {
|
18
|
+
}
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"interval": "month",
|
22
|
+
"name": "New plan name124",
|
23
|
+
"created": 1386247540,
|
24
|
+
"amount": 2000,
|
25
|
+
"currency": "usd",
|
26
|
+
"id": "gold21324",
|
27
|
+
"object": "plan",
|
28
|
+
"livemode": false,
|
29
|
+
"interval_count": 1,
|
30
|
+
"trial_period_days": null,
|
31
|
+
"metadata": {
|
32
|
+
}
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"interval": "month",
|
36
|
+
"name": "New plan name125",
|
37
|
+
"created": 1386247541,
|
38
|
+
"amount": 2000,
|
39
|
+
"currency": "usd",
|
40
|
+
"id": "gold21325",
|
41
|
+
"object": "plan",
|
42
|
+
"livemode": false,
|
43
|
+
"interval_count": 1,
|
44
|
+
"trial_period_days": null,
|
45
|
+
"metadata": {
|
46
|
+
}
|
47
|
+
}
|
48
|
+
]
|
49
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
{
|
2
|
+
"object": "list",
|
3
|
+
"url": "v1/recipients",
|
4
|
+
"count": 3,
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"id": "rp_103WyK2eZvKYlo2CXgqlepdQ",
|
8
|
+
"object": "recipient",
|
9
|
+
"created": 1392893343,
|
10
|
+
"livemode": false,
|
11
|
+
"type": "individual",
|
12
|
+
"description": null,
|
13
|
+
"email": null,
|
14
|
+
"name": "John Doe",
|
15
|
+
"verified": false,
|
16
|
+
"metadata": {
|
17
|
+
},
|
18
|
+
"active_account": {
|
19
|
+
"object": "bank_account",
|
20
|
+
"id": "ba_103WyK2eZvKYlo2CRbxre4Eb",
|
21
|
+
"bank_name": "BANK OF AMERICA, N.A.",
|
22
|
+
"last4": "6789",
|
23
|
+
"country": "US",
|
24
|
+
"currency": "usd",
|
25
|
+
"validated": false,
|
26
|
+
"verified": false,
|
27
|
+
"fingerprint": "j1CvuuIQNXSIdZuK",
|
28
|
+
"disabled": false
|
29
|
+
}
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"id": "rp_103WyK2eZvKYlo2CXgqlepdR",
|
33
|
+
"object": "recipient",
|
34
|
+
"created": 1392893344,
|
35
|
+
"livemode": false,
|
36
|
+
"type": "individual",
|
37
|
+
"description": null,
|
38
|
+
"email": null,
|
39
|
+
"name": "John Doe",
|
40
|
+
"verified": false,
|
41
|
+
"metadata": {
|
42
|
+
},
|
43
|
+
"active_account": {
|
44
|
+
"object": "bank_account",
|
45
|
+
"id": "ba_103WyK2eZvKYlo2CRbxre4Ec",
|
46
|
+
"bank_name": "BANK OF AMERICA, N.A.",
|
47
|
+
"last4": "6789",
|
48
|
+
"country": "US",
|
49
|
+
"currency": "usd",
|
50
|
+
"validated": false,
|
51
|
+
"verified": false,
|
52
|
+
"fingerprint": "j1CvuuIQNXSIdZuL",
|
53
|
+
"disabled": false
|
54
|
+
}
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"id": "rp_103WyK2eZvKYlo2CXgqlepdS",
|
58
|
+
"object": "recipient",
|
59
|
+
"created": 1392893345,
|
60
|
+
"livemode": false,
|
61
|
+
"type": "individual",
|
62
|
+
"description": null,
|
63
|
+
"email": null,
|
64
|
+
"name": "John Doe",
|
65
|
+
"verified": false,
|
66
|
+
"metadata": {
|
67
|
+
},
|
68
|
+
"active_account": {
|
69
|
+
"object": "bank_account",
|
70
|
+
"id": "ba_103WyK2eZvKYlo2CRbxre4Ed",
|
71
|
+
"bank_name": "BANK OF AMERICA, N.A.",
|
72
|
+
"last4": "6789",
|
73
|
+
"country": "US",
|
74
|
+
"currency": "usd",
|
75
|
+
"validated": false,
|
76
|
+
"verified": false,
|
77
|
+
"fingerprint": "j1CvuuIQNXSIdZuM",
|
78
|
+
"disabled": false
|
79
|
+
}
|
80
|
+
}
|
81
|
+
]
|
82
|
+
}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
{
|
2
|
+
"object": "list",
|
3
|
+
"url": "/v1/customers/cu_103ewU2eZvKYlo2CUREXSezP/subscriptions",
|
4
|
+
"count": 3,
|
5
|
+
"data": [
|
6
|
+
{
|
7
|
+
"id": "sub_3ewdhCIki3FxWt",
|
8
|
+
"plan": {
|
9
|
+
"interval": "month",
|
10
|
+
"name": "New plan name123",
|
11
|
+
"created": 1386247539,
|
12
|
+
"amount": 2000,
|
13
|
+
"currency": "usd",
|
14
|
+
"id": "gold21323",
|
15
|
+
"object": "plan",
|
16
|
+
"livemode": false,
|
17
|
+
"interval_count": 1,
|
18
|
+
"trial_period_days": null,
|
19
|
+
"metadata": {
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"object": "subscription",
|
23
|
+
"start": 1394732152,
|
24
|
+
"status": "active",
|
25
|
+
"customer": "abcdefghijklmnop",
|
26
|
+
"cancel_at_period_end": false,
|
27
|
+
"current_period_start": 1394732152,
|
28
|
+
"current_period_end": 1397410552,
|
29
|
+
"ended_at": null,
|
30
|
+
"trial_start": null,
|
31
|
+
"trial_end": null,
|
32
|
+
"canceled_at": null,
|
33
|
+
"quantity": 1,
|
34
|
+
"application_fee_percent": null,
|
35
|
+
"discount": null
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"id": "sub_3ewdhCIki3FxWu",
|
39
|
+
"plan": {
|
40
|
+
"interval": "month",
|
41
|
+
"name": "New plan name124",
|
42
|
+
"created": 1386247540,
|
43
|
+
"amount": 2000,
|
44
|
+
"currency": "usd",
|
45
|
+
"id": "gold21324",
|
46
|
+
"object": "plan",
|
47
|
+
"livemode": false,
|
48
|
+
"interval_count": 1,
|
49
|
+
"trial_period_days": null,
|
50
|
+
"metadata": {
|
51
|
+
}
|
52
|
+
},
|
53
|
+
"object": "subscription",
|
54
|
+
"start": 1394732153,
|
55
|
+
"status": "active",
|
56
|
+
"customer": "abcdefghijklmnop",
|
57
|
+
"cancel_at_period_end": false,
|
58
|
+
"current_period_start": 1394732153,
|
59
|
+
"current_period_end": 1397410553,
|
60
|
+
"ended_at": null,
|
61
|
+
"trial_start": null,
|
62
|
+
"trial_end": null,
|
63
|
+
"canceled_at": null,
|
64
|
+
"quantity": 1,
|
65
|
+
"application_fee_percent": null,
|
66
|
+
"discount": null
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"id": "sub_3ewdhCIki3FxWv",
|
70
|
+
"plan": {
|
71
|
+
"interval": "month",
|
72
|
+
"name": "New plan name125",
|
73
|
+
"created": 1386247541,
|
74
|
+
"amount": 2000,
|
75
|
+
"currency": "usd",
|
76
|
+
"id": "gold21323",
|
77
|
+
"object": "plan",
|
78
|
+
"livemode": false,
|
79
|
+
"interval_count": 1,
|
80
|
+
"trial_period_days": null,
|
81
|
+
"metadata": {
|
82
|
+
}
|
83
|
+
},
|
84
|
+
"object": "subscription",
|
85
|
+
"start": 1394732154,
|
86
|
+
"status": "active",
|
87
|
+
"customer": "abcdefghijklmnop",
|
88
|
+
"cancel_at_period_end": false,
|
89
|
+
"current_period_start": 1394732154,
|
90
|
+
"current_period_end": 1397410554,
|
91
|
+
"ended_at": null,
|
92
|
+
"trial_start": null,
|
93
|
+
"trial_end": null,
|
94
|
+
"canceled_at": null,
|
95
|
+
"quantity": 1,
|
96
|
+
"application_fee_percent": null,
|
97
|
+
"discount": null
|
98
|
+
}
|
99
|
+
]
|
100
|
+
}
|