webpay 2.4.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -2
- data/Rakefile +0 -6
- data/lib/webpay/account.rb +19 -24
- data/lib/webpay/api_resource.rb +5 -0
- data/lib/webpay/charge.rb +48 -27
- data/lib/webpay/customer.rb +56 -91
- data/lib/webpay/data_types.rb +2069 -0
- data/lib/webpay/error.rb +68 -0
- data/lib/webpay/event.rb +19 -16
- data/lib/webpay/recursion.rb +47 -46
- data/lib/webpay/shop.rb +37 -68
- data/lib/webpay/token.rb +19 -10
- data/lib/webpay.rb +114 -77
- data/webpay.gemspec +6 -13
- metadata +16 -179
- data/.rspec +0 -2
- data/.travis.yml +0 -12
- data/LICENSE.txt +0 -22
- data/README.md +0 -52
- data/gemfiles/no_doc_gems +0 -14
- data/lib/data/ca-certificates.crt +0 -3829
- data/lib/webpay/card.rb +0 -13
- data/lib/webpay/client.rb +0 -81
- data/lib/webpay/deleted_entity.rb +0 -8
- data/lib/webpay/entity.rb +0 -71
- data/lib/webpay/entity_list.rb +0 -25
- data/lib/webpay/fee.rb +0 -13
- data/lib/webpay/operations.rb +0 -49
- data/lib/webpay/response_converter.rb +0 -57
- data/lib/webpay/version.rb +0 -5
- data/lib/webpay/webpay_error.rb +0 -126
- data/spec/resources/account/delete.txt +0 -15
- data/spec/resources/account/retrieve.txt +0 -23
- data/spec/resources/charges/all.txt +0 -139
- data/spec/resources/charges/capture.txt +0 -49
- data/spec/resources/charges/create_with_card.txt +0 -49
- data/spec/resources/charges/create_with_customer.txt +0 -49
- data/spec/resources/charges/refund.txt +0 -57
- data/spec/resources/charges/retrieve.txt +0 -49
- data/spec/resources/charges/retrieve_not_captured.txt +0 -42
- data/spec/resources/customers/all.txt +0 -76
- data/spec/resources/customers/create.txt +0 -31
- data/spec/resources/customers/delete.txt +0 -16
- data/spec/resources/customers/retrieve.txt +0 -63
- data/spec/resources/customers/retrieve_deleted.txt +0 -16
- data/spec/resources/customers/update.txt +0 -31
- data/spec/resources/errors/bad_request.txt +0 -18
- data/spec/resources/errors/broken_json.txt +0 -16
- data/spec/resources/errors/card_error.txt +0 -19
- data/spec/resources/errors/not_found.txt +0 -18
- data/spec/resources/errors/not_found_ja.txt +0 -20
- data/spec/resources/errors/unauthorized.txt +0 -16
- data/spec/resources/errors/unknown_api_error.txt +0 -17
- data/spec/resources/events/all_with_type.txt +0 -164
- data/spec/resources/events/retrieve.txt +0 -41
- data/spec/resources/recursions/all.txt +0 -61
- data/spec/resources/recursions/create.txt +0 -26
- data/spec/resources/recursions/delete.txt +0 -16
- data/spec/resources/recursions/resume.txt +0 -26
- data/spec/resources/recursions/retrieve.txt +0 -26
- data/spec/resources/recursions/retrieve_deleted.txt +0 -16
- data/spec/resources/recursions/retrieve_suspended.txt +0 -26
- data/spec/resources/shops/all.txt +0 -122
- data/spec/resources/shops/create.txt +0 -54
- data/spec/resources/shops/retrieve.txt +0 -54
- data/spec/resources/shops/update.txt +0 -55
- data/spec/resources/tokens/create.txt +0 -30
- data/spec/resources/tokens/retrieve.txt +0 -30
- data/spec/spec_helper.rb +0 -37
- data/spec/webpay/account_spec.rb +0 -24
- data/spec/webpay/charge_spec.rb +0 -143
- data/spec/webpay/customer_spec.rb +0 -109
- data/spec/webpay/event_spec.rb +0 -30
- data/spec/webpay/recursion_spec.rb +0 -93
- data/spec/webpay/shop_spec.rb +0 -121
- data/spec/webpay/token_spec.rb +0 -33
- data/spec/webpay/webpay_error_spec.rb +0 -64
- data/spec/webpay_spec.rb +0 -40
@@ -1,49 +0,0 @@
|
|
1
|
-
HTTP/1.1 201 Created
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "52660afa817770efa680c8d997b48917"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: ddf1900c75deac499d2ca9f3cccf59ff
|
7
|
-
X-Runtime: 0.982683
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Mon, 14 Apr 2014 02:55:29 GMT
|
10
|
-
Content-Length: 768
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"id": "ch_5112dw9eYekJc2s",
|
15
|
-
"object": "charge",
|
16
|
-
"livemode": false,
|
17
|
-
"currency": "jpy",
|
18
|
-
"description": "Test Charge",
|
19
|
-
"amount": 1000,
|
20
|
-
"amount_refunded": 0,
|
21
|
-
"customer": null,
|
22
|
-
"created": 1397444129,
|
23
|
-
"paid": true,
|
24
|
-
"refunded": false,
|
25
|
-
"failure_message": null,
|
26
|
-
"card": {
|
27
|
-
"object": "card",
|
28
|
-
"exp_year": 2015,
|
29
|
-
"exp_month": 12,
|
30
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
31
|
-
"name": "YUUKO SHIONJI",
|
32
|
-
"country": "JP",
|
33
|
-
"type": "Visa",
|
34
|
-
"cvc_check": "pass",
|
35
|
-
"last4": "4242"
|
36
|
-
},
|
37
|
-
"captured": true,
|
38
|
-
"expire_time": null,
|
39
|
-
"fees": [
|
40
|
-
{
|
41
|
-
"object": "fee",
|
42
|
-
"transaction_type": "payment",
|
43
|
-
"transaction_fee": 0,
|
44
|
-
"rate": 3.25,
|
45
|
-
"amount": 33,
|
46
|
-
"created": 1397444129
|
47
|
-
}
|
48
|
-
]
|
49
|
-
}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
HTTP/1.1 201 Created
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "97bd4ad52cf1430cc212a9f6140a4b27"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: b323af770f1e1a78cd752ef0ae740e63
|
7
|
-
X-Runtime: 0.520140
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Mon, 14 Apr 2014 02:55:38 GMT
|
10
|
-
Content-Length: 779
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"id": "ch_5112KydVn9zId7h",
|
15
|
-
"object": "charge",
|
16
|
-
"livemode": false,
|
17
|
-
"currency": "jpy",
|
18
|
-
"description": "Test Charge",
|
19
|
-
"amount": 1000,
|
20
|
-
"amount_refunded": 0,
|
21
|
-
"customer": "cus_5119ShaAgbLyfwS",
|
22
|
-
"created": 1397444137,
|
23
|
-
"paid": true,
|
24
|
-
"refunded": false,
|
25
|
-
"failure_message": null,
|
26
|
-
"card": {
|
27
|
-
"object": "card",
|
28
|
-
"exp_year": 2016,
|
29
|
-
"exp_month": 9,
|
30
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
31
|
-
"name": "KEI KUBO",
|
32
|
-
"country": "JP",
|
33
|
-
"type": "Visa",
|
34
|
-
"cvc_check": "pass",
|
35
|
-
"last4": "4242"
|
36
|
-
},
|
37
|
-
"captured": true,
|
38
|
-
"expire_time": null,
|
39
|
-
"fees": [
|
40
|
-
{
|
41
|
-
"object": "fee",
|
42
|
-
"transaction_type": "payment",
|
43
|
-
"transaction_fee": 0,
|
44
|
-
"rate": 3.25,
|
45
|
-
"amount": 33,
|
46
|
-
"created": 1397444138
|
47
|
-
}
|
48
|
-
]
|
49
|
-
}
|
@@ -1,57 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "e262bc8c1785cab71c0e09f7024ce701"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: 9f963b799441465fd3ea03be0316807e
|
7
|
-
X-Runtime: 0.398660
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Mon, 14 Apr 2014 03:02:07 GMT
|
10
|
-
Content-Length: 939
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"id": "ch_5112dw9eYekJc2s",
|
15
|
-
"object": "charge",
|
16
|
-
"livemode": false,
|
17
|
-
"currency": "jpy",
|
18
|
-
"description": "Test Charge",
|
19
|
-
"amount": 1000,
|
20
|
-
"amount_refunded": 1000,
|
21
|
-
"customer": null,
|
22
|
-
"created": 1397444129,
|
23
|
-
"paid": true,
|
24
|
-
"refunded": true,
|
25
|
-
"failure_message": null,
|
26
|
-
"card": {
|
27
|
-
"object": "card",
|
28
|
-
"exp_year": 2015,
|
29
|
-
"exp_month": 12,
|
30
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
31
|
-
"name": "YUUKO SHIONJI",
|
32
|
-
"country": "JP",
|
33
|
-
"type": "Visa",
|
34
|
-
"cvc_check": "pass",
|
35
|
-
"last4": "4242"
|
36
|
-
},
|
37
|
-
"captured": true,
|
38
|
-
"expire_time": null,
|
39
|
-
"fees": [
|
40
|
-
{
|
41
|
-
"object": "fee",
|
42
|
-
"transaction_type": "payment",
|
43
|
-
"transaction_fee": 0,
|
44
|
-
"rate": 3.25,
|
45
|
-
"amount": 33,
|
46
|
-
"created": 1397444129
|
47
|
-
},
|
48
|
-
{
|
49
|
-
"object": "fee",
|
50
|
-
"transaction_type": "refund",
|
51
|
-
"transaction_fee": 0,
|
52
|
-
"rate": 3.25,
|
53
|
-
"amount": -33,
|
54
|
-
"created": 1397444526
|
55
|
-
}
|
56
|
-
]
|
57
|
-
}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "52660afa817770efa680c8d997b48917"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: 6e1d1e5bdb97b2ac07444e19d1c9e925
|
7
|
-
X-Runtime: 0.008128
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Mon, 14 Apr 2014 02:56:31 GMT
|
10
|
-
Content-Length: 768
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"id": "ch_5112dw9eYekJc2s",
|
15
|
-
"object": "charge",
|
16
|
-
"livemode": false,
|
17
|
-
"currency": "jpy",
|
18
|
-
"description": "Test Charge",
|
19
|
-
"amount": 1000,
|
20
|
-
"amount_refunded": 0,
|
21
|
-
"customer": null,
|
22
|
-
"created": 1397444129,
|
23
|
-
"paid": true,
|
24
|
-
"refunded": false,
|
25
|
-
"failure_message": null,
|
26
|
-
"card": {
|
27
|
-
"object": "card",
|
28
|
-
"exp_year": 2015,
|
29
|
-
"exp_month": 12,
|
30
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
31
|
-
"name": "YUUKO SHIONJI",
|
32
|
-
"country": "JP",
|
33
|
-
"type": "Visa",
|
34
|
-
"cvc_check": "pass",
|
35
|
-
"last4": "4242"
|
36
|
-
},
|
37
|
-
"captured": true,
|
38
|
-
"expire_time": null,
|
39
|
-
"fees": [
|
40
|
-
{
|
41
|
-
"object": "fee",
|
42
|
-
"transaction_type": "payment",
|
43
|
-
"transaction_fee": 0,
|
44
|
-
"rate": 3.25,
|
45
|
-
"amount": 33,
|
46
|
-
"created": 1397444129
|
47
|
-
}
|
48
|
-
]
|
49
|
-
}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "d286a0c9eaed0e25df2731346066053f"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: ebb723c852a35579c8f44cc6c91b8a86
|
7
|
-
X-Runtime: 0.009551
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Mon, 14 Apr 2014 02:56:09 GMT
|
10
|
-
Content-Length: 620
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"id": "ch_5113hA4L51yj8TF",
|
15
|
-
"object": "charge",
|
16
|
-
"livemode": false,
|
17
|
-
"currency": "jpy",
|
18
|
-
"description": "Test Charge",
|
19
|
-
"amount": 1000,
|
20
|
-
"amount_refunded": 0,
|
21
|
-
"customer": "cus_5119ShaAgbLyfwS",
|
22
|
-
"created": 1397444145,
|
23
|
-
"paid": false,
|
24
|
-
"refunded": false,
|
25
|
-
"failure_message": null,
|
26
|
-
"card": {
|
27
|
-
"object": "card",
|
28
|
-
"exp_year": 2016,
|
29
|
-
"exp_month": 9,
|
30
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
31
|
-
"name": "KEI KUBO",
|
32
|
-
"country": "JP",
|
33
|
-
"type": "Visa",
|
34
|
-
"cvc_check": "pass",
|
35
|
-
"last4": "4242"
|
36
|
-
},
|
37
|
-
"captured": false,
|
38
|
-
"expire_time": 1398048945,
|
39
|
-
"fees": [
|
40
|
-
|
41
|
-
]
|
42
|
-
}
|
@@ -1,76 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "ed93eccf489db26fcb3db4b53d8671a0"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: 69e72c7bde02381be8423eb0dbc33c9a
|
7
|
-
X-Runtime: 0.018180
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Tue, 10 Sep 2013 14:28:35 GMT
|
10
|
-
Content-Length: 1660
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"object": "list",
|
15
|
-
"url": "/v1/customers",
|
16
|
-
"count": 4,
|
17
|
-
"data": [
|
18
|
-
{
|
19
|
-
"id": "cus_39o9oU1N1dRm4LZ",
|
20
|
-
"object": "customer",
|
21
|
-
"livemode": false,
|
22
|
-
"created": 1378823309,
|
23
|
-
"email": "customer@example.com",
|
24
|
-
"description": "Test Customer from Java",
|
25
|
-
"active_card": {
|
26
|
-
"object": "card",
|
27
|
-
"exp_year": 2015,
|
28
|
-
"exp_month": 12,
|
29
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
30
|
-
"name": "YUUKO SHIONJI",
|
31
|
-
"country": "JP",
|
32
|
-
"type": "Visa",
|
33
|
-
"cvc_check": "pass",
|
34
|
-
"last4": "4242"
|
35
|
-
}
|
36
|
-
},
|
37
|
-
{
|
38
|
-
"id": "cus_39o9gEeyUdvU8z8",
|
39
|
-
"object": "customer",
|
40
|
-
"livemode": false,
|
41
|
-
"created": 1378823307,
|
42
|
-
"email": "customer@example.com",
|
43
|
-
"description": "Test Customer from Java",
|
44
|
-
"active_card": {
|
45
|
-
"object": "card",
|
46
|
-
"exp_year": 2015,
|
47
|
-
"exp_month": 12,
|
48
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
49
|
-
"name": "YUUKO SHIONJI",
|
50
|
-
"country": "JP",
|
51
|
-
"type": "Visa",
|
52
|
-
"cvc_check": "pass",
|
53
|
-
"last4": "4242"
|
54
|
-
}
|
55
|
-
},
|
56
|
-
{
|
57
|
-
"id": "cus_39o84k2hng8P87Q",
|
58
|
-
"object": "customer",
|
59
|
-
"livemode": false,
|
60
|
-
"created": 1378823289,
|
61
|
-
"email": "customer@example.com",
|
62
|
-
"description": "Test Customer from Java",
|
63
|
-
"active_card": {
|
64
|
-
"object": "card",
|
65
|
-
"exp_year": 2015,
|
66
|
-
"exp_month": 12,
|
67
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
68
|
-
"name": "YUUKO SHIONJI",
|
69
|
-
"country": "JP",
|
70
|
-
"type": "Visa",
|
71
|
-
"cvc_check": "pass",
|
72
|
-
"last4": "4242"
|
73
|
-
}
|
74
|
-
}
|
75
|
-
]
|
76
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
HTTP/1.1 201 Created
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "473096d7961bec9bc228fe5d423c79b5"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: e439ee26c479cc5c50d54d2d5b8d6af5
|
7
|
-
X-Runtime: 0.254780
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Tue, 10 Sep 2013 13:23:18 GMT
|
10
|
-
Content-Length: 450
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"id": "cus_39o4Fv82E1et5Xb",
|
15
|
-
"object": "customer",
|
16
|
-
"livemode": false,
|
17
|
-
"created": 1378819398,
|
18
|
-
"email": "customer@example.com",
|
19
|
-
"description": "Test Customer from Java",
|
20
|
-
"active_card": {
|
21
|
-
"object": "card",
|
22
|
-
"exp_year": 2015,
|
23
|
-
"exp_month": 12,
|
24
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
25
|
-
"name": "YUUKO SHIONJI",
|
26
|
-
"country": "JP",
|
27
|
-
"type": "Visa",
|
28
|
-
"cvc_check": "pass",
|
29
|
-
"last4": "4242"
|
30
|
-
}
|
31
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "ce0dfdb0b03bbfd1305c7796daf025b8"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: 7f54a12147016e584221c8064cd0300e
|
7
|
-
X-Runtime: 0.057258
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Tue, 10 Sep 2013 14:11:40 GMT
|
10
|
-
Content-Length: 53
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"id": "cus_39o4Fv82E1et5Xb",
|
15
|
-
"deleted": true
|
16
|
-
}
|
@@ -1,63 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "06933120f2f5472b96a5c7bb784fdc79"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: ed053966c8a42b4f1e0b997539c15cc0
|
7
|
-
X-Runtime: 0.027041
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Sun, 11 May 2014 20:31:00 GMT
|
10
|
-
Content-Length: 1500
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"id": "cus_39o4Fv82E1et5Xb",
|
15
|
-
"object": "customer",
|
16
|
-
"livemode": false,
|
17
|
-
"created": 1399578334,
|
18
|
-
"email": null,
|
19
|
-
"description": "Test Customer",
|
20
|
-
"active_card": {
|
21
|
-
"object": "card",
|
22
|
-
"exp_year": 2015,
|
23
|
-
"exp_month": 12,
|
24
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
25
|
-
"name": "KENGO HAMASAKI",
|
26
|
-
"country": "JP",
|
27
|
-
"type": "Visa",
|
28
|
-
"cvc_check": "pass",
|
29
|
-
"last4": "4242"
|
30
|
-
},
|
31
|
-
"recursions": [
|
32
|
-
{
|
33
|
-
"id": "rec_7pF9dTfm11u5cXL",
|
34
|
-
"object": "recursion",
|
35
|
-
"livemode": false,
|
36
|
-
"shop": null,
|
37
|
-
"created": 1399816586,
|
38
|
-
"amount": 200,
|
39
|
-
"currency": "jpy",
|
40
|
-
"period": "month",
|
41
|
-
"description": "",
|
42
|
-
"customer": "cus_799eQegDKfdq05D",
|
43
|
-
"last_executed": 1399816654,
|
44
|
-
"next_scheduled": 1402494986,
|
45
|
-
"status": "active"
|
46
|
-
},
|
47
|
-
{
|
48
|
-
"id": "rec_7pF6qudH9e7xgJF",
|
49
|
-
"object": "recursion",
|
50
|
-
"livemode": false,
|
51
|
-
"shop": null,
|
52
|
-
"created": 1399816800,
|
53
|
-
"amount": 100,
|
54
|
-
"currency": "jpy",
|
55
|
-
"period": "month",
|
56
|
-
"description": "",
|
57
|
-
"customer": "cus_799eQegDKfdq05D",
|
58
|
-
"last_executed": 1399816834,
|
59
|
-
"next_scheduled": 1402495200,
|
60
|
-
"status": "active"
|
61
|
-
}
|
62
|
-
]
|
63
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "cfd07e8cad0c1387384a1b37f7fa6ba0"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: a1a22af941e1b9076e3cc2ce07d2dff4
|
7
|
-
X-Runtime: 0.012743
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Fri, 01 Nov 2013 12:07:56 GMT
|
10
|
-
Content-Length: 53
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"id": "cus_7GafGMbML8R28Io",
|
15
|
-
"deleted": true
|
16
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
HTTP/1.1 200 OK
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Etag: "1404018ce07fd2f8e981d83abeec47e4"
|
5
|
-
Cache-Control: max-age=0, private, must-revalidate
|
6
|
-
X-Request-Id: 549d609daca5ce3e6b4de6c72112acf4
|
7
|
-
X-Runtime: 0.046486
|
8
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
9
|
-
Date: Tue, 10 Sep 2013 14:01:50 GMT
|
10
|
-
Content-Length: 441
|
11
|
-
Connection: Keep-Alive
|
12
|
-
|
13
|
-
{
|
14
|
-
"id": "cus_39o4Fv82E1et5Xb",
|
15
|
-
"object": "customer",
|
16
|
-
"livemode": false,
|
17
|
-
"created": 1378819398,
|
18
|
-
"email": "newmail@example.com",
|
19
|
-
"description": "New description",
|
20
|
-
"active_card": {
|
21
|
-
"object": "card",
|
22
|
-
"exp_year": 2016,
|
23
|
-
"exp_month": 12,
|
24
|
-
"fingerprint": "215b5b2fe460809b8bb90bae6eeac0e0e0987bd7",
|
25
|
-
"name": "YUUKO SHIONJI",
|
26
|
-
"country": "JP",
|
27
|
-
"type": "Visa",
|
28
|
-
"cvc_check": "pass",
|
29
|
-
"last4": "4242"
|
30
|
-
}
|
31
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
HTTP/1.1 400 Bad Request
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Cache-Control: no-cache
|
5
|
-
X-Request-Id: b434ca28f6241d107aaeac961c8aa225
|
6
|
-
X-Runtime: 0.323214
|
7
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
8
|
-
Date: Sun, 08 Sep 2013 08:53:39 GMT
|
9
|
-
Content-Length: 133
|
10
|
-
Connection: Keep-Alive
|
11
|
-
|
12
|
-
{
|
13
|
-
"error": {
|
14
|
-
"type": "invalid_request_error",
|
15
|
-
"message": "Missing required param: currency",
|
16
|
-
"param": "currency"
|
17
|
-
}
|
18
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
HTTP/1.1 402 Payment Required
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Cache-Control: no-cache
|
5
|
-
X-Request-Id: 2d444b6f410907d8df24e45cd374e9b9
|
6
|
-
X-Runtime: 0.005541
|
7
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
8
|
-
Date: Sun, 08 Sep 2013 09:00:11 GMT
|
9
|
-
Content-Length: 96
|
10
|
-
Connection: Keep-Alive
|
11
|
-
|
12
|
-
{
|
13
|
-
"error": {
|
14
|
-
"type": "card_error",
|
15
|
-
"message": "Your card number is incorrect",
|
16
|
-
"c
|
@@ -1,19 +0,0 @@
|
|
1
|
-
HTTP/1.1 402 Payment Required
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Cache-Control: no-cache
|
5
|
-
X-Request-Id: 2d444b6f410907d8df24e45cd374e9b9
|
6
|
-
X-Runtime: 0.005541
|
7
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
8
|
-
Date: Sun, 08 Sep 2013 09:00:11 GMT
|
9
|
-
Content-Length: 149
|
10
|
-
Connection: Keep-Alive
|
11
|
-
|
12
|
-
{
|
13
|
-
"error": {
|
14
|
-
"type": "card_error",
|
15
|
-
"message": "Your card number is incorrect",
|
16
|
-
"code": "incorrect_number",
|
17
|
-
"param": "number"
|
18
|
-
}
|
19
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
HTTP/1.1 404 Not Found
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Cache-Control: no-cache
|
5
|
-
X-Request-Id: 806414eeeded602ef27448b69a5aec78
|
6
|
-
X-Runtime: 0.015164
|
7
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
8
|
-
Date: Sun, 08 Sep 2013 08:55:39 GMT
|
9
|
-
Content-Length: 115
|
10
|
-
Connection: Keep-Alive
|
11
|
-
|
12
|
-
{
|
13
|
-
"error": {
|
14
|
-
"type": "invalid_request_error",
|
15
|
-
"message": "No such charge: foo",
|
16
|
-
"param": "id"
|
17
|
-
}
|
18
|
-
}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
HTTP/1.1 404 Not Found
|
2
|
-
Cache-Control: no-cache, private
|
3
|
-
Content-Type: application/json; charset=utf-8
|
4
|
-
Date: Sun, 23 Feb 2014 23:53:53 GMT
|
5
|
-
Server: nginx/1.4.4
|
6
|
-
Status: 404 Not Found
|
7
|
-
X-Rack-Cache: miss
|
8
|
-
X-Request-Id: b82d843b508fa060a1f1c0bb637e40f6
|
9
|
-
X-Runtime: 0.016769
|
10
|
-
X-UA-Compatible: IE=Edge,chrome=1
|
11
|
-
Content-Length: 151
|
12
|
-
Connection: keep-alive
|
13
|
-
|
14
|
-
{
|
15
|
-
"error": {
|
16
|
-
"type": "invalid_request_error",
|
17
|
-
"message": "該当する顧客がありません: cus_eS6dGfa8BeUlbS",
|
18
|
-
"param": "id"
|
19
|
-
}
|
20
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
HTTP/1.1 401 Unauthorized
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Cache-Control: no-cache
|
5
|
-
X-Request-Id: 4c321f268697f5afa416d4a54e511806
|
6
|
-
X-Runtime: 0.009466
|
7
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
8
|
-
Date: Sun, 08 Sep 2013 08:58:07 GMT
|
9
|
-
Content-Length: 95
|
10
|
-
Connection: Keep-Alive
|
11
|
-
|
12
|
-
{
|
13
|
-
"error": {
|
14
|
-
"message": "Invalid API key provided. Check your API key is correct."
|
15
|
-
}
|
16
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
HTTP/1.1 500 Internal Server Error
|
2
|
-
Content-Type: application/json; charset=utf-8
|
3
|
-
X-Ua-Compatible: IE=Edge
|
4
|
-
Cache-Control: no-cache
|
5
|
-
X-Request-Id: 15d19c85ac922f11b266c05ec0fb2021
|
6
|
-
X-Runtime: 0.011584
|
7
|
-
Server: WEBrick/1.3.1 (Ruby/1.9.3/2013-02-22)
|
8
|
-
Date: Sun, 08 Sep 2013 08:41:16 GMT
|
9
|
-
Content-Length: 84
|
10
|
-
Connection: Keep-Alive
|
11
|
-
|
12
|
-
{
|
13
|
-
"error": {
|
14
|
-
"type": "api_error",
|
15
|
-
"message": "Unknown error occurred"
|
16
|
-
}
|
17
|
-
}
|