Skip to content

Commit ed39b0b

Browse files
committed
Merge pull request stripe-ruby-mock#207 from charitywater/card-to-source
Updated default webhook fixtures to use “source” instead of “card”
2 parents 6ad891d + 77fbe56 commit ed39b0b

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

lib/stripe_mock/webhook_fixtures/charge.failed.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"amount": 1000,
1515
"currency": "usd",
1616
"refunded": false,
17-
"card": {
17+
"source": {
1818
"id": "cc_00000000000000",
1919
"object": "card",
2020
"last4": "4242",

lib/stripe_mock/webhook_fixtures/charge.refunded.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"amount": 1000,
1515
"currency": "usd",
1616
"refunded": true,
17-
"card": {
17+
"source": {
1818
"id": "cc_00000000000000",
1919
"object": "card",
2020
"last4": "4242",

lib/stripe_mock/webhook_fixtures/charge.succeeded.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"amount": 1000,
1515
"currency": "usd",
1616
"refunded": false,
17-
"card": {
17+
"source": {
1818
"id": "cc_00000000000000",
1919
"object": "card",
2020
"last4": "4242",

lib/stripe_mock/webhook_fixtures/customer.created.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"subscription": null,
1919
"discount": null,
2020
"account_balance": 0,
21-
"cards": {
21+
"sources": {
2222
"object": "list",
2323
"count": 1,
2424
"url": "/v1/customers/cus_2I2AhGQOPmEFeu/cards",

lib/stripe_mock/webhook_fixtures/customer.updated.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"subscription": null,
1919
"discount": null,
2020
"account_balance": 0,
21-
"cards": {
21+
"sources": {
2222
"object": "list",
2323
"count": 1,
2424
"url": "/v1/customers/cus_2I2AhGQOPmEFeu/cards",
@@ -48,7 +48,7 @@
4848
}
4949
]
5050
},
51-
"default_card": "cc_2I2akIhmladin5"
51+
"default_source": "cc_2I2akIhmladin5"
5252
},
5353
"previous_attributes": {
5454
"description": "Old description"

0 commit comments

Comments
 (0)