mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-10 21:24:20 +01:00
829 lines
26 KiB
YAML
829 lines
26 KiB
YAML
---
|
|
http_interactions:
|
|
- request:
|
|
method: post
|
|
uri: https://api.stripe.com/v1/tokens
|
|
body:
|
|
encoding: UTF-8
|
|
string: card[number]=4242424242424242&card[exp_month]=4&card[exp_year]=2017&card[cvc]=314
|
|
headers:
|
|
Accept:
|
|
- "*/*; q=0.5, application/xml"
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
User-Agent:
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
Authorization:
|
|
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
X-Stripe-Client-User-Agent:
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
|
|
) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}'
|
|
Content-Length:
|
|
- '81'
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Server:
|
|
- nginx
|
|
Date:
|
|
- Wed, 06 Apr 2016 13:29:57 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '780'
|
|
Connection:
|
|
- keep-alive
|
|
Access-Control-Allow-Credentials:
|
|
- 'true'
|
|
Access-Control-Allow-Methods:
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
Access-Control-Allow-Origin:
|
|
- "*"
|
|
Access-Control-Max-Age:
|
|
- '300'
|
|
Cache-Control:
|
|
- no-cache, no-store
|
|
Request-Id:
|
|
- req_8Di9AmOR7uXw9z
|
|
Stripe-Version:
|
|
- '2015-10-16'
|
|
Strict-Transport-Security:
|
|
- max-age=31556926; includeSubDomains
|
|
body:
|
|
encoding: UTF-8
|
|
string: |
|
|
{
|
|
"id": "tok_17xGjJ2sOmf47Nz9PLqUZge2",
|
|
"object": "token",
|
|
"card": {
|
|
"id": "card_17xGjJ2sOmf47Nz9UrQOP8Cl",
|
|
"object": "card",
|
|
"address_city": null,
|
|
"address_country": null,
|
|
"address_line1": null,
|
|
"address_line1_check": null,
|
|
"address_line2": null,
|
|
"address_state": null,
|
|
"address_zip": null,
|
|
"address_zip_check": null,
|
|
"brand": "Visa",
|
|
"country": "US",
|
|
"cvc_check": "unchecked",
|
|
"dynamic_last4": null,
|
|
"exp_month": 4,
|
|
"exp_year": 2017,
|
|
"fingerprint": "o52jybR7bnmNn6AT",
|
|
"funding": "credit",
|
|
"last4": "4242",
|
|
"metadata": {},
|
|
"name": null,
|
|
"tokenization_method": null
|
|
},
|
|
"client_ip": "90.52.157.226",
|
|
"created": 1459949397,
|
|
"livemode": false,
|
|
"type": "card",
|
|
"used": false
|
|
}
|
|
http_version:
|
|
recorded_at: Wed, 06 Apr 2016 13:29:57 GMT
|
|
- request:
|
|
method: get
|
|
uri: https://api.stripe.com/v1/customers/cus_8Di1wjdVktv5kt
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Accept:
|
|
- "*/*; q=0.5, application/xml"
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
User-Agent:
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
Authorization:
|
|
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
X-Stripe-Client-User-Agent:
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
|
|
) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}'
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Server:
|
|
- nginx
|
|
Date:
|
|
- Wed, 06 Apr 2016 13:29:58 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '2437'
|
|
Connection:
|
|
- keep-alive
|
|
Access-Control-Allow-Credentials:
|
|
- 'true'
|
|
Access-Control-Allow-Methods:
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
Access-Control-Allow-Origin:
|
|
- "*"
|
|
Access-Control-Max-Age:
|
|
- '300'
|
|
Cache-Control:
|
|
- no-cache, no-store
|
|
Request-Id:
|
|
- req_8Di9uNBvnRw9C0
|
|
Stripe-Version:
|
|
- '2015-10-16'
|
|
Strict-Transport-Security:
|
|
- max-age=31556926; includeSubDomains
|
|
body:
|
|
encoding: UTF-8
|
|
string: |
|
|
{
|
|
"id": "cus_8Di1wjdVktv5kt",
|
|
"object": "customer",
|
|
"account_balance": 0,
|
|
"created": 1459948888,
|
|
"currency": "usd",
|
|
"default_source": "card_17xGcM2sOmf47Nz9CxYGRvdo",
|
|
"delinquent": false,
|
|
"description": "Jean Dupond",
|
|
"discount": null,
|
|
"email": "jean.dupond@gmail.com",
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"shipping": null,
|
|
"sources": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"id": "card_17xGcM2sOmf47Nz9CxYGRvdo",
|
|
"object": "card",
|
|
"address_city": null,
|
|
"address_country": null,
|
|
"address_line1": null,
|
|
"address_line1_check": null,
|
|
"address_line2": null,
|
|
"address_state": null,
|
|
"address_zip": null,
|
|
"address_zip_check": null,
|
|
"brand": "Visa",
|
|
"country": "US",
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
"cvc_check": "pass",
|
|
"dynamic_last4": null,
|
|
"exp_month": 4,
|
|
"exp_year": 2017,
|
|
"fingerprint": "o52jybR7bnmNn6AT",
|
|
"funding": "credit",
|
|
"last4": "4242",
|
|
"metadata": {},
|
|
"name": null,
|
|
"tokenization_method": null
|
|
}
|
|
],
|
|
"has_more": false,
|
|
"total_count": 1,
|
|
"url": "/v1/customers/cus_8Di1wjdVktv5kt/sources"
|
|
},
|
|
"subscriptions": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"id": "sub_8Di2VadRvr7A99",
|
|
"object": "subscription",
|
|
"application_fee_percent": null,
|
|
"cancel_at_period_end": true,
|
|
"canceled_at": 1459948972,
|
|
"current_period_end": 1462540968,
|
|
"current_period_start": 1459948968,
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
"discount": null,
|
|
"ended_at": null,
|
|
"metadata": {},
|
|
"plan": {
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
"object": "plan",
|
|
"amount": 3000,
|
|
"created": 1459782921,
|
|
"currency": "usd",
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"name": "Mensuel - standard, association - month",
|
|
"statement_descriptor": null,
|
|
"trial_period_days": null
|
|
},
|
|
"quantity": 1,
|
|
"start": 1459948968,
|
|
"status": "active",
|
|
"tax_percent": null,
|
|
"trial_end": null,
|
|
"trial_start": null
|
|
}
|
|
],
|
|
"has_more": false,
|
|
"total_count": 1,
|
|
"url": "/v1/customers/cus_8Di1wjdVktv5kt/subscriptions"
|
|
}
|
|
}
|
|
http_version:
|
|
recorded_at: Wed, 06 Apr 2016 13:29:58 GMT
|
|
- request:
|
|
method: post
|
|
uri: https://api.stripe.com/v1/customers/cus_8Di1wjdVktv5kt/subscriptions
|
|
body:
|
|
encoding: UTF-8
|
|
string: plan=mensuel-standard-month-20160404171519&card=tok_17xGjJ2sOmf47Nz9PLqUZge2
|
|
headers:
|
|
Accept:
|
|
- "*/*; q=0.5, application/xml"
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
User-Agent:
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
Authorization:
|
|
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
X-Stripe-Client-User-Agent:
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
|
|
) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}'
|
|
Content-Length:
|
|
- '76'
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Server:
|
|
- nginx
|
|
Date:
|
|
- Wed, 06 Apr 2016 13:29:59 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '821'
|
|
Connection:
|
|
- keep-alive
|
|
Access-Control-Allow-Credentials:
|
|
- 'true'
|
|
Access-Control-Allow-Methods:
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
Access-Control-Allow-Origin:
|
|
- "*"
|
|
Access-Control-Max-Age:
|
|
- '300'
|
|
Cache-Control:
|
|
- no-cache, no-store
|
|
Request-Id:
|
|
- req_8Di9LpzecLQFba
|
|
Stripe-Version:
|
|
- '2015-10-16'
|
|
Strict-Transport-Security:
|
|
- max-age=31556926; includeSubDomains
|
|
body:
|
|
encoding: UTF-8
|
|
string: |
|
|
{
|
|
"id": "sub_8Di9gqPLwt5IIC",
|
|
"object": "subscription",
|
|
"application_fee_percent": null,
|
|
"cancel_at_period_end": false,
|
|
"canceled_at": null,
|
|
"current_period_end": 1462541399,
|
|
"current_period_start": 1459949399,
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
"discount": null,
|
|
"ended_at": null,
|
|
"metadata": {},
|
|
"plan": {
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
"object": "plan",
|
|
"amount": 3000,
|
|
"created": 1459782921,
|
|
"currency": "usd",
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"name": "Mensuel - standard, association - month",
|
|
"statement_descriptor": null,
|
|
"trial_period_days": null
|
|
},
|
|
"quantity": 1,
|
|
"start": 1459949399,
|
|
"status": "active",
|
|
"tax_percent": null,
|
|
"trial_end": null,
|
|
"trial_start": null
|
|
}
|
|
http_version:
|
|
recorded_at: Wed, 06 Apr 2016 13:29:59 GMT
|
|
- request:
|
|
method: get
|
|
uri: https://api.stripe.com/v1/invoices?customer=cus_8Di1wjdVktv5kt&limit=1
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Accept:
|
|
- "*/*; q=0.5, application/xml"
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
User-Agent:
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
Authorization:
|
|
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
X-Stripe-Client-User-Agent:
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
|
|
) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}'
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Server:
|
|
- nginx
|
|
Date:
|
|
- Wed, 06 Apr 2016 13:30:00 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '2207'
|
|
Connection:
|
|
- keep-alive
|
|
Access-Control-Allow-Credentials:
|
|
- 'true'
|
|
Access-Control-Allow-Methods:
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
Access-Control-Allow-Origin:
|
|
- "*"
|
|
Access-Control-Max-Age:
|
|
- '300'
|
|
Cache-Control:
|
|
- no-cache, no-store
|
|
Request-Id:
|
|
- req_8Di9FX8V833C25
|
|
Stripe-Version:
|
|
- '2015-10-16'
|
|
Strict-Transport-Security:
|
|
- max-age=31556926; includeSubDomains
|
|
body:
|
|
encoding: UTF-8
|
|
string: |
|
|
{
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"id": "in_17xGjL2sOmf47Nz976QQJRnZ",
|
|
"object": "invoice",
|
|
"amount_due": 3000,
|
|
"application_fee": null,
|
|
"attempt_count": 1,
|
|
"attempted": true,
|
|
"charge": "ch_17xGjL2sOmf47Nz9H8wfSmBa",
|
|
"closed": true,
|
|
"currency": "usd",
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
"date": 1459949399,
|
|
"description": null,
|
|
"discount": null,
|
|
"ending_balance": 0,
|
|
"forgiven": false,
|
|
"lines": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"id": "sub_8Di9gqPLwt5IIC",
|
|
"object": "line_item",
|
|
"amount": 3000,
|
|
"currency": "usd",
|
|
"description": null,
|
|
"discountable": true,
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"period": {
|
|
"start": 1459949399,
|
|
"end": 1462541399
|
|
},
|
|
"plan": {
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
"object": "plan",
|
|
"amount": 3000,
|
|
"created": 1459782921,
|
|
"currency": "usd",
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"name": "Mensuel - standard, association - month",
|
|
"statement_descriptor": null,
|
|
"trial_period_days": null
|
|
},
|
|
"proration": false,
|
|
"quantity": 1,
|
|
"subscription": null,
|
|
"type": "subscription"
|
|
}
|
|
],
|
|
"has_more": false,
|
|
"total_count": 1,
|
|
"url": "/v1/invoices/in_17xGjL2sOmf47Nz976QQJRnZ/lines"
|
|
},
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"next_payment_attempt": null,
|
|
"paid": true,
|
|
"period_end": 1459949399,
|
|
"period_start": 1459948968,
|
|
"receipt_number": null,
|
|
"starting_balance": 0,
|
|
"statement_descriptor": null,
|
|
"subscription": "sub_8Di9gqPLwt5IIC",
|
|
"subtotal": 3000,
|
|
"tax": null,
|
|
"tax_percent": null,
|
|
"total": 3000,
|
|
"webhooks_delivered_at": 1459949399
|
|
}
|
|
],
|
|
"has_more": true,
|
|
"url": "/v1/invoices"
|
|
}
|
|
http_version:
|
|
recorded_at: Wed, 06 Apr 2016 13:30:00 GMT
|
|
- request:
|
|
method: get
|
|
uri: https://api.stripe.com/v1/customers/cus_8Di1wjdVktv5kt
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Accept:
|
|
- "*/*; q=0.5, application/xml"
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
User-Agent:
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
Authorization:
|
|
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
X-Stripe-Client-User-Agent:
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
|
|
) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}'
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Server:
|
|
- nginx
|
|
Date:
|
|
- Wed, 06 Apr 2016 13:30:02 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '3457'
|
|
Connection:
|
|
- keep-alive
|
|
Access-Control-Allow-Credentials:
|
|
- 'true'
|
|
Access-Control-Allow-Methods:
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
Access-Control-Allow-Origin:
|
|
- "*"
|
|
Access-Control-Max-Age:
|
|
- '300'
|
|
Cache-Control:
|
|
- no-cache, no-store
|
|
Request-Id:
|
|
- req_8Di9aIVqbT9ubZ
|
|
Stripe-Version:
|
|
- '2015-10-16'
|
|
Strict-Transport-Security:
|
|
- max-age=31556926; includeSubDomains
|
|
body:
|
|
encoding: UTF-8
|
|
string: |
|
|
{
|
|
"id": "cus_8Di1wjdVktv5kt",
|
|
"object": "customer",
|
|
"account_balance": 0,
|
|
"created": 1459948888,
|
|
"currency": "usd",
|
|
"default_source": "card_17xGjJ2sOmf47Nz9UrQOP8Cl",
|
|
"delinquent": false,
|
|
"description": "Jean Dupond",
|
|
"discount": null,
|
|
"email": "jean.dupond@gmail.com",
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"shipping": null,
|
|
"sources": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"id": "card_17xGjJ2sOmf47Nz9UrQOP8Cl",
|
|
"object": "card",
|
|
"address_city": null,
|
|
"address_country": null,
|
|
"address_line1": null,
|
|
"address_line1_check": null,
|
|
"address_line2": null,
|
|
"address_state": null,
|
|
"address_zip": null,
|
|
"address_zip_check": null,
|
|
"brand": "Visa",
|
|
"country": "US",
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
"cvc_check": "pass",
|
|
"dynamic_last4": null,
|
|
"exp_month": 4,
|
|
"exp_year": 2017,
|
|
"fingerprint": "o52jybR7bnmNn6AT",
|
|
"funding": "credit",
|
|
"last4": "4242",
|
|
"metadata": {},
|
|
"name": null,
|
|
"tokenization_method": null
|
|
}
|
|
],
|
|
"has_more": false,
|
|
"total_count": 1,
|
|
"url": "/v1/customers/cus_8Di1wjdVktv5kt/sources"
|
|
},
|
|
"subscriptions": {
|
|
"object": "list",
|
|
"data": [
|
|
{
|
|
"id": "sub_8Di9gqPLwt5IIC",
|
|
"object": "subscription",
|
|
"application_fee_percent": null,
|
|
"cancel_at_period_end": false,
|
|
"canceled_at": null,
|
|
"current_period_end": 1462541399,
|
|
"current_period_start": 1459949399,
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
"discount": null,
|
|
"ended_at": null,
|
|
"metadata": {},
|
|
"plan": {
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
"object": "plan",
|
|
"amount": 3000,
|
|
"created": 1459782921,
|
|
"currency": "usd",
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"name": "Mensuel - standard, association - month",
|
|
"statement_descriptor": null,
|
|
"trial_period_days": null
|
|
},
|
|
"quantity": 1,
|
|
"start": 1459949399,
|
|
"status": "active",
|
|
"tax_percent": null,
|
|
"trial_end": null,
|
|
"trial_start": null
|
|
},
|
|
{
|
|
"id": "sub_8Di2VadRvr7A99",
|
|
"object": "subscription",
|
|
"application_fee_percent": null,
|
|
"cancel_at_period_end": true,
|
|
"canceled_at": 1459948972,
|
|
"current_period_end": 1462540968,
|
|
"current_period_start": 1459948968,
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
"discount": null,
|
|
"ended_at": null,
|
|
"metadata": {},
|
|
"plan": {
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
"object": "plan",
|
|
"amount": 3000,
|
|
"created": 1459782921,
|
|
"currency": "usd",
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"name": "Mensuel - standard, association - month",
|
|
"statement_descriptor": null,
|
|
"trial_period_days": null
|
|
},
|
|
"quantity": 1,
|
|
"start": 1459948968,
|
|
"status": "active",
|
|
"tax_percent": null,
|
|
"trial_end": null,
|
|
"trial_start": null
|
|
}
|
|
],
|
|
"has_more": false,
|
|
"total_count": 2,
|
|
"url": "/v1/customers/cus_8Di1wjdVktv5kt/subscriptions"
|
|
}
|
|
}
|
|
http_version:
|
|
recorded_at: Wed, 06 Apr 2016 13:30:02 GMT
|
|
- request:
|
|
method: get
|
|
uri: https://api.stripe.com/v1/customers/cus_8Di1wjdVktv5kt/subscriptions/sub_8Di9gqPLwt5IIC
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Accept:
|
|
- "*/*; q=0.5, application/xml"
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
User-Agent:
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
Authorization:
|
|
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
X-Stripe-Client-User-Agent:
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
|
|
) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}'
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Server:
|
|
- nginx
|
|
Date:
|
|
- Wed, 06 Apr 2016 13:30:03 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '821'
|
|
Connection:
|
|
- keep-alive
|
|
Access-Control-Allow-Credentials:
|
|
- 'true'
|
|
Access-Control-Allow-Methods:
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
Access-Control-Allow-Origin:
|
|
- "*"
|
|
Access-Control-Max-Age:
|
|
- '300'
|
|
Cache-Control:
|
|
- no-cache, no-store
|
|
Request-Id:
|
|
- req_8Di9AyPG0FJYAw
|
|
Stripe-Version:
|
|
- '2015-10-16'
|
|
Strict-Transport-Security:
|
|
- max-age=31556926; includeSubDomains
|
|
body:
|
|
encoding: UTF-8
|
|
string: |
|
|
{
|
|
"id": "sub_8Di9gqPLwt5IIC",
|
|
"object": "subscription",
|
|
"application_fee_percent": null,
|
|
"cancel_at_period_end": false,
|
|
"canceled_at": null,
|
|
"current_period_end": 1462541399,
|
|
"current_period_start": 1459949399,
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
"discount": null,
|
|
"ended_at": null,
|
|
"metadata": {},
|
|
"plan": {
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
"object": "plan",
|
|
"amount": 3000,
|
|
"created": 1459782921,
|
|
"currency": "usd",
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"name": "Mensuel - standard, association - month",
|
|
"statement_descriptor": null,
|
|
"trial_period_days": null
|
|
},
|
|
"quantity": 1,
|
|
"start": 1459949399,
|
|
"status": "active",
|
|
"tax_percent": null,
|
|
"trial_end": null,
|
|
"trial_start": null
|
|
}
|
|
http_version:
|
|
recorded_at: Wed, 06 Apr 2016 13:30:03 GMT
|
|
- request:
|
|
method: delete
|
|
uri: https://api.stripe.com/v1/customers/cus_8Di1wjdVktv5kt/subscriptions/sub_8Di9gqPLwt5IIC?at_period_end=true
|
|
body:
|
|
encoding: US-ASCII
|
|
string: ''
|
|
headers:
|
|
Accept:
|
|
- "*/*; q=0.5, application/xml"
|
|
Accept-Encoding:
|
|
- gzip, deflate
|
|
User-Agent:
|
|
- Stripe/v1 RubyBindings/1.30.2
|
|
Authorization:
|
|
- Bearer sk_test_mGokO9TGtrVxMOyK4yZiktBE
|
|
Content-Type:
|
|
- application/x-www-form-urlencoded
|
|
X-Stripe-Client-User-Agent:
|
|
- '{"bindings_version":"1.30.2","lang":"ruby","lang_version":"2.3.0 p0 (2015-12-25)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
|
|
version 3.13.0-83-generic (buildd@lgw01-55) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
|
|
) #127-Ubuntu SMP Fri Mar 11 00:25:37 UTC 2016","hostname":"sylvain-sleede-pc"}'
|
|
response:
|
|
status:
|
|
code: 200
|
|
message: OK
|
|
headers:
|
|
Server:
|
|
- nginx
|
|
Date:
|
|
- Wed, 06 Apr 2016 13:30:04 GMT
|
|
Content-Type:
|
|
- application/json
|
|
Content-Length:
|
|
- '826'
|
|
Connection:
|
|
- keep-alive
|
|
Access-Control-Allow-Credentials:
|
|
- 'true'
|
|
Access-Control-Allow-Methods:
|
|
- GET, POST, HEAD, OPTIONS, DELETE
|
|
Access-Control-Allow-Origin:
|
|
- "*"
|
|
Access-Control-Max-Age:
|
|
- '300'
|
|
Cache-Control:
|
|
- no-cache, no-store
|
|
Request-Id:
|
|
- req_8Di9ujL9MyuuZS
|
|
Stripe-Version:
|
|
- '2015-10-16'
|
|
Strict-Transport-Security:
|
|
- max-age=31556926; includeSubDomains
|
|
body:
|
|
encoding: UTF-8
|
|
string: |
|
|
{
|
|
"id": "sub_8Di9gqPLwt5IIC",
|
|
"object": "subscription",
|
|
"application_fee_percent": null,
|
|
"cancel_at_period_end": true,
|
|
"canceled_at": 1459949404,
|
|
"current_period_end": 1462541399,
|
|
"current_period_start": 1459949399,
|
|
"customer": "cus_8Di1wjdVktv5kt",
|
|
"discount": null,
|
|
"ended_at": null,
|
|
"metadata": {},
|
|
"plan": {
|
|
"id": "mensuel-standard-month-20160404171519",
|
|
"object": "plan",
|
|
"amount": 3000,
|
|
"created": 1459782921,
|
|
"currency": "usd",
|
|
"interval": "month",
|
|
"interval_count": 1,
|
|
"livemode": false,
|
|
"metadata": {},
|
|
"name": "Mensuel - standard, association - month",
|
|
"statement_descriptor": null,
|
|
"trial_period_days": null
|
|
},
|
|
"quantity": 1,
|
|
"start": 1459949399,
|
|
"status": "active",
|
|
"tax_percent": null,
|
|
"trial_end": null,
|
|
"trial_start": null
|
|
}
|
|
http_version:
|
|
recorded_at: Wed, 06 Apr 2016 13:30:04 GMT
|
|
recorded_with: VCR 3.0.1
|