stripe_model_callbacks 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/stripe_model_callbacks/event_mocker_service.rb +1 -1
- data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.created.json +29 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.deleted.json +29 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.updated.json +31 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.closed.json +65 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.created.json +65 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.funds_reinstated.json +65 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.funds_withdrawn.json +65 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.updated.json +96 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.refund.updated.json +28 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.refunded.json +98 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.created.json +29 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.deleted.json +29 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/coupon/coupon.updated.json +31 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.bank_account.deleted.json +29 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.created.json +36 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.deleted.json +47 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.created.json +36 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.deleted.json +36 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.discount.updated.json +55 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.created.card.json +80 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.created.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.deleted.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.expiring.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.source.updated.json +56 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.created.json +83 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.deleted.json +83 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.trial_will_end.json +88 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.subscription.updated.json +100 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/customer/customer.updated.json +50 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.created.json +90 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.payment_failed.json +90 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.payment_succeeded.json +188 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.sent.json +90 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.upcoming.json +90 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoice/invoice.updated.json +95 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/invoiceitem/invoiceitem.created.json +34 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/order/order.created.json +72 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/order/order.updated.json +74 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.canceled.json +35 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.created.json +35 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.failed.json +35 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.paid.json +35 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/payout/payout.updated.json +37 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.created.json +27 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.deleted.json +27 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/plan/plan.updated.json +30 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/product/product.created.json +48 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/product/product.deleted.json +48 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/product/product.updated.json +50 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.created.json +37 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.deleted.json +37 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/recipient/recipient.updated.json +39 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/review/review.closed.json +21 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/review/review.opened.json +21 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.created.json +36 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.deleted.json +36 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/sku/sku.updated.json +38 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.canceled.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.chargeable.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.failed.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.mandate_notification.json +53 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/source/source.transaction_created.json +21 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.created.json +41 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.reversed.json +40 -0
- data/lib/stripe_model_callbacks/fixtures/stripe_events/transfer/transfer.updated.json +44 -0
- data/lib/stripe_model_callbacks/version.rb +1 -1
- metadata +66 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 939298c1a7e304f9ad8d082d208cc395c3ffafdd5d68b202075f155f82921c02
|
4
|
+
data.tar.gz: 5b144fd536551f1f56e3a3fe332eb95813e4b8124dc3acaf4d6a0d3dd7faff64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 904991f19ef50dc23ed77367d28c6ec16aa9f7f595c0c1546bc2f0a2620651d30c76c14055b859ccac9439e759073c368c9f47157b8f674db40d143ec4fd33d6
|
7
|
+
data.tar.gz: b1265ecbaeac487fe38d51d3653c5c023e97a0314e6cd3f65b5b7745dadc9fc56c896bfdf3bdf897ed69fdb4d8e8ff592b5876005fc6c7a61a5aa9d0852c7af8
|
@@ -22,7 +22,7 @@ private
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def fixture_path
|
25
|
-
@fixture_path ||= "#{File.dirname(__FILE__)}/../../../
|
25
|
+
@fixture_path ||= "#{File.dirname(__FILE__)}/../../../lib/stripe_model_callbacks/fixtures/stripe_events/#{first_part}/#{name}.json"
|
26
26
|
end
|
27
27
|
|
28
28
|
def payload
|
data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.created.json
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "account.external_account.created",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-02-05",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "ba_00000000000000",
|
13
|
+
"object": "bank_account",
|
14
|
+
"account": "acct_00000000000000",
|
15
|
+
"account_holder_name": "Jane Austen",
|
16
|
+
"account_holder_type": "individual",
|
17
|
+
"bank_name": "STRIPE TEST BANK",
|
18
|
+
"country": "US",
|
19
|
+
"currency": "dkk",
|
20
|
+
"default_for_currency": false,
|
21
|
+
"fingerprint": "8hxBTDA6RPbX37IN",
|
22
|
+
"last4": "6789",
|
23
|
+
"metadata": {
|
24
|
+
},
|
25
|
+
"routing_number": "110000000",
|
26
|
+
"status": "new"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.deleted.json
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "account.external_account.deleted",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-02-05",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "ba_00000000000000",
|
13
|
+
"object": "bank_account",
|
14
|
+
"account": "acct_00000000000000",
|
15
|
+
"account_holder_name": "Jane Austen",
|
16
|
+
"account_holder_type": "individual",
|
17
|
+
"bank_name": "STRIPE TEST BANK",
|
18
|
+
"country": "US",
|
19
|
+
"currency": "dkk",
|
20
|
+
"default_for_currency": false,
|
21
|
+
"fingerprint": "8hxBTDA6RPbX37IN",
|
22
|
+
"last4": "6789",
|
23
|
+
"metadata": {
|
24
|
+
},
|
25
|
+
"routing_number": "110000000",
|
26
|
+
"status": "new"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
data/lib/stripe_model_callbacks/fixtures/stripe_events/account/account.external_account.updated.json
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "account.external_account.updated",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-02-05",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "ba_00000000000000",
|
13
|
+
"object": "bank_account",
|
14
|
+
"account": "acct_00000000000000",
|
15
|
+
"account_holder_name": "Jane Austen",
|
16
|
+
"account_holder_type": "individual",
|
17
|
+
"bank_name": "STRIPE TEST BANK",
|
18
|
+
"country": "US",
|
19
|
+
"currency": "dkk",
|
20
|
+
"default_for_currency": false,
|
21
|
+
"fingerprint": "8hxBTDA6RPbX37IN",
|
22
|
+
"last4": "6789",
|
23
|
+
"metadata": {
|
24
|
+
},
|
25
|
+
"routing_number": "110000000",
|
26
|
+
"status": "new"
|
27
|
+
},
|
28
|
+
"previous_attributes": {
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "charge.dispute.closed",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "dp_00000000000000",
|
13
|
+
"object": "dispute",
|
14
|
+
"amount": 1000,
|
15
|
+
"balance_transaction": "txn_00000000000000",
|
16
|
+
"balance_transactions": [
|
17
|
+
|
18
|
+
],
|
19
|
+
"charge": "ch_00000000000000",
|
20
|
+
"created": 1517922714,
|
21
|
+
"currency": "usd",
|
22
|
+
"evidence": {
|
23
|
+
"access_activity_log": null,
|
24
|
+
"billing_address": null,
|
25
|
+
"cancellation_policy": null,
|
26
|
+
"cancellation_policy_disclosure": null,
|
27
|
+
"cancellation_rebuttal": null,
|
28
|
+
"customer_communication": null,
|
29
|
+
"customer_email_address": null,
|
30
|
+
"customer_name": null,
|
31
|
+
"customer_purchase_ip": null,
|
32
|
+
"customer_signature": null,
|
33
|
+
"duplicate_charge_documentation": null,
|
34
|
+
"duplicate_charge_explanation": null,
|
35
|
+
"duplicate_charge_id": null,
|
36
|
+
"product_description": null,
|
37
|
+
"receipt": null,
|
38
|
+
"refund_policy": null,
|
39
|
+
"refund_policy_disclosure": null,
|
40
|
+
"refund_refusal_explanation": null,
|
41
|
+
"service_date": null,
|
42
|
+
"service_documentation": null,
|
43
|
+
"shipping_address": null,
|
44
|
+
"shipping_carrier": null,
|
45
|
+
"shipping_date": null,
|
46
|
+
"shipping_documentation": null,
|
47
|
+
"shipping_tracking_number": null,
|
48
|
+
"uncategorized_file": null,
|
49
|
+
"uncategorized_text": "Here is some evidence"
|
50
|
+
},
|
51
|
+
"evidence_details": {
|
52
|
+
"due_by": 1519603199,
|
53
|
+
"has_evidence": false,
|
54
|
+
"past_due": false,
|
55
|
+
"submission_count": 0
|
56
|
+
},
|
57
|
+
"is_charge_refundable": false,
|
58
|
+
"livemode": false,
|
59
|
+
"metadata": {
|
60
|
+
},
|
61
|
+
"reason": "general",
|
62
|
+
"status": "won"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "charge.dispute.created",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "dp_00000000000000",
|
13
|
+
"object": "dispute",
|
14
|
+
"amount": 1000,
|
15
|
+
"balance_transaction": "txn_00000000000000",
|
16
|
+
"balance_transactions": [
|
17
|
+
|
18
|
+
],
|
19
|
+
"charge": "ch_00000000000000",
|
20
|
+
"created": 1517922679,
|
21
|
+
"currency": "usd",
|
22
|
+
"evidence": {
|
23
|
+
"access_activity_log": null,
|
24
|
+
"billing_address": null,
|
25
|
+
"cancellation_policy": null,
|
26
|
+
"cancellation_policy_disclosure": null,
|
27
|
+
"cancellation_rebuttal": null,
|
28
|
+
"customer_communication": null,
|
29
|
+
"customer_email_address": null,
|
30
|
+
"customer_name": null,
|
31
|
+
"customer_purchase_ip": null,
|
32
|
+
"customer_signature": null,
|
33
|
+
"duplicate_charge_documentation": null,
|
34
|
+
"duplicate_charge_explanation": null,
|
35
|
+
"duplicate_charge_id": null,
|
36
|
+
"product_description": null,
|
37
|
+
"receipt": null,
|
38
|
+
"refund_policy": null,
|
39
|
+
"refund_policy_disclosure": null,
|
40
|
+
"refund_refusal_explanation": null,
|
41
|
+
"service_date": null,
|
42
|
+
"service_documentation": null,
|
43
|
+
"shipping_address": null,
|
44
|
+
"shipping_carrier": null,
|
45
|
+
"shipping_date": null,
|
46
|
+
"shipping_documentation": null,
|
47
|
+
"shipping_tracking_number": null,
|
48
|
+
"uncategorized_file": null,
|
49
|
+
"uncategorized_text": null
|
50
|
+
},
|
51
|
+
"evidence_details": {
|
52
|
+
"due_by": 1519603199,
|
53
|
+
"has_evidence": false,
|
54
|
+
"past_due": false,
|
55
|
+
"submission_count": 0
|
56
|
+
},
|
57
|
+
"is_charge_refundable": false,
|
58
|
+
"livemode": false,
|
59
|
+
"metadata": {
|
60
|
+
},
|
61
|
+
"reason": "general",
|
62
|
+
"status": "needs_response"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.funds_reinstated.json
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "charge.dispute.funds_reinstated",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "dp_00000000000000",
|
13
|
+
"object": "dispute",
|
14
|
+
"amount": 1000,
|
15
|
+
"balance_transaction": "txn_00000000000000",
|
16
|
+
"balance_transactions": [
|
17
|
+
|
18
|
+
],
|
19
|
+
"charge": "ch_00000000000000",
|
20
|
+
"created": 1517922729,
|
21
|
+
"currency": "usd",
|
22
|
+
"evidence": {
|
23
|
+
"access_activity_log": null,
|
24
|
+
"billing_address": null,
|
25
|
+
"cancellation_policy": null,
|
26
|
+
"cancellation_policy_disclosure": null,
|
27
|
+
"cancellation_rebuttal": null,
|
28
|
+
"customer_communication": null,
|
29
|
+
"customer_email_address": null,
|
30
|
+
"customer_name": null,
|
31
|
+
"customer_purchase_ip": null,
|
32
|
+
"customer_signature": null,
|
33
|
+
"duplicate_charge_documentation": null,
|
34
|
+
"duplicate_charge_explanation": null,
|
35
|
+
"duplicate_charge_id": null,
|
36
|
+
"product_description": null,
|
37
|
+
"receipt": null,
|
38
|
+
"refund_policy": null,
|
39
|
+
"refund_policy_disclosure": null,
|
40
|
+
"refund_refusal_explanation": null,
|
41
|
+
"service_date": null,
|
42
|
+
"service_documentation": null,
|
43
|
+
"shipping_address": null,
|
44
|
+
"shipping_carrier": null,
|
45
|
+
"shipping_date": null,
|
46
|
+
"shipping_documentation": null,
|
47
|
+
"shipping_tracking_number": null,
|
48
|
+
"uncategorized_file": null,
|
49
|
+
"uncategorized_text": null
|
50
|
+
},
|
51
|
+
"evidence_details": {
|
52
|
+
"due_by": 1519603199,
|
53
|
+
"has_evidence": false,
|
54
|
+
"past_due": false,
|
55
|
+
"submission_count": 0
|
56
|
+
},
|
57
|
+
"is_charge_refundable": false,
|
58
|
+
"livemode": false,
|
59
|
+
"metadata": {
|
60
|
+
},
|
61
|
+
"reason": "general",
|
62
|
+
"status": "needs_response"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
data/lib/stripe_model_callbacks/fixtures/stripe_events/charge/charge.dispute.funds_withdrawn.json
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "charge.dispute.funds_withdrawn",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "dp_00000000000000",
|
13
|
+
"object": "dispute",
|
14
|
+
"amount": 1000,
|
15
|
+
"balance_transaction": "txn_00000000000000",
|
16
|
+
"balance_transactions": [
|
17
|
+
|
18
|
+
],
|
19
|
+
"charge": "ch_00000000000000",
|
20
|
+
"created": 1517922760,
|
21
|
+
"currency": "usd",
|
22
|
+
"evidence": {
|
23
|
+
"access_activity_log": null,
|
24
|
+
"billing_address": null,
|
25
|
+
"cancellation_policy": null,
|
26
|
+
"cancellation_policy_disclosure": null,
|
27
|
+
"cancellation_rebuttal": null,
|
28
|
+
"customer_communication": null,
|
29
|
+
"customer_email_address": null,
|
30
|
+
"customer_name": null,
|
31
|
+
"customer_purchase_ip": null,
|
32
|
+
"customer_signature": null,
|
33
|
+
"duplicate_charge_documentation": null,
|
34
|
+
"duplicate_charge_explanation": null,
|
35
|
+
"duplicate_charge_id": null,
|
36
|
+
"product_description": null,
|
37
|
+
"receipt": null,
|
38
|
+
"refund_policy": null,
|
39
|
+
"refund_policy_disclosure": null,
|
40
|
+
"refund_refusal_explanation": null,
|
41
|
+
"service_date": null,
|
42
|
+
"service_documentation": null,
|
43
|
+
"shipping_address": null,
|
44
|
+
"shipping_carrier": null,
|
45
|
+
"shipping_date": null,
|
46
|
+
"shipping_documentation": null,
|
47
|
+
"shipping_tracking_number": null,
|
48
|
+
"uncategorized_file": null,
|
49
|
+
"uncategorized_text": null
|
50
|
+
},
|
51
|
+
"evidence_details": {
|
52
|
+
"due_by": 1519603199,
|
53
|
+
"has_evidence": false,
|
54
|
+
"past_due": false,
|
55
|
+
"submission_count": 0
|
56
|
+
},
|
57
|
+
"is_charge_refundable": false,
|
58
|
+
"livemode": false,
|
59
|
+
"metadata": {
|
60
|
+
},
|
61
|
+
"reason": "general",
|
62
|
+
"status": "needs_response"
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
{
|
2
|
+
"created": 1326853478,
|
3
|
+
"livemode": false,
|
4
|
+
"id": "evt_00000000000000",
|
5
|
+
"type": "charge.dispute.updated",
|
6
|
+
"object": "event",
|
7
|
+
"request": null,
|
8
|
+
"pending_webhooks": 1,
|
9
|
+
"api_version": "2018-01-23",
|
10
|
+
"data": {
|
11
|
+
"object": {
|
12
|
+
"id": "dp_00000000000000",
|
13
|
+
"object": "dispute",
|
14
|
+
"amount": 1000,
|
15
|
+
"balance_transaction": "txn_00000000000000",
|
16
|
+
"balance_transactions": [
|
17
|
+
|
18
|
+
],
|
19
|
+
"charge": "ch_00000000000000",
|
20
|
+
"created": 1517922776,
|
21
|
+
"currency": "usd",
|
22
|
+
"evidence": {
|
23
|
+
"access_activity_log": null,
|
24
|
+
"billing_address": null,
|
25
|
+
"cancellation_policy": null,
|
26
|
+
"cancellation_policy_disclosure": null,
|
27
|
+
"cancellation_rebuttal": null,
|
28
|
+
"customer_communication": null,
|
29
|
+
"customer_email_address": null,
|
30
|
+
"customer_name": null,
|
31
|
+
"customer_purchase_ip": null,
|
32
|
+
"customer_signature": null,
|
33
|
+
"duplicate_charge_documentation": null,
|
34
|
+
"duplicate_charge_explanation": null,
|
35
|
+
"duplicate_charge_id": null,
|
36
|
+
"product_description": null,
|
37
|
+
"receipt": null,
|
38
|
+
"refund_policy": null,
|
39
|
+
"refund_policy_disclosure": null,
|
40
|
+
"refund_refusal_explanation": null,
|
41
|
+
"service_date": null,
|
42
|
+
"service_documentation": null,
|
43
|
+
"shipping_address": null,
|
44
|
+
"shipping_carrier": null,
|
45
|
+
"shipping_date": null,
|
46
|
+
"shipping_documentation": null,
|
47
|
+
"shipping_tracking_number": null,
|
48
|
+
"uncategorized_file": null,
|
49
|
+
"uncategorized_text": "Here is some evidence"
|
50
|
+
},
|
51
|
+
"evidence_details": {
|
52
|
+
"due_by": 1519603199,
|
53
|
+
"has_evidence": false,
|
54
|
+
"past_due": false,
|
55
|
+
"submission_count": 0
|
56
|
+
},
|
57
|
+
"is_charge_refundable": false,
|
58
|
+
"livemode": false,
|
59
|
+
"metadata": {
|
60
|
+
},
|
61
|
+
"reason": "general",
|
62
|
+
"status": "under_review"
|
63
|
+
},
|
64
|
+
"previous_attributes": {
|
65
|
+
"evidence": {
|
66
|
+
"access_activity_log": null,
|
67
|
+
"billing_address": null,
|
68
|
+
"cancellation_policy": null,
|
69
|
+
"cancellation_policy_disclosure": null,
|
70
|
+
"cancellation_rebuttal": null,
|
71
|
+
"customer_communication": null,
|
72
|
+
"customer_email_address": null,
|
73
|
+
"customer_name": null,
|
74
|
+
"customer_purchase_ip": null,
|
75
|
+
"customer_signature": null,
|
76
|
+
"duplicate_charge_documentation": null,
|
77
|
+
"duplicate_charge_explanation": null,
|
78
|
+
"duplicate_charge_id": null,
|
79
|
+
"product_description": null,
|
80
|
+
"receipt": null,
|
81
|
+
"refund_policy": null,
|
82
|
+
"refund_policy_disclosure": null,
|
83
|
+
"refund_refusal_explanation": null,
|
84
|
+
"service_date": null,
|
85
|
+
"service_documentation": null,
|
86
|
+
"shipping_address": null,
|
87
|
+
"shipping_carrier": null,
|
88
|
+
"shipping_date": null,
|
89
|
+
"shipping_documentation": null,
|
90
|
+
"shipping_tracking_number": null,
|
91
|
+
"uncategorized_file": null,
|
92
|
+
"uncategorized_text": "Old uncategorized text"
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|