Skip to content

Commit

Permalink
Merge pull request #6 from theshaunwalker/feature-connect-webhooks
Browse files Browse the repository at this point in the history
Make webhooks comply with Connect endpoint schema
  • Loading branch information
nticaric committed Jun 3, 2016
2 parents 613c28c + 41f0ac6 commit 572cc84
Show file tree
Hide file tree
Showing 64 changed files with 128 additions and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"routing_number": "110000000",
"status": "new"
}
}
},
"user_id": "acct_0000000000000000"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"routing_number": "110000000",
"status": "new"
}
}
},
"user_id": "acct_0000000000000000"
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
"status": "new"
},
"previous_attributes": null
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/account.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,5 +149,6 @@
"due_by": null
}
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/balance.available.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
}
]
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/bitcoin.receiver.created.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"uncaptured_funds": false,
"used_for_payment": false
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/bitcoin.receiver.filled.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"uncaptured_funds": false,
"used_for_payment": false
}
}
},
"user_id": "acct_0000000000000000"
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
"currency": "usd",
"receiver": "btcrcv_17nCME2eZvKYlo2CDDfUvLTW"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/bitcoin.receiver.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"used_for_payment": false
},
"previous_attributes": null
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/charge.captured.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@
"statement_descriptor": null,
"status": "succeeded"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/charge.dispute.closed.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
"reason": "general",
"status": "won"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/charge.dispute.created.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
"reason": "general",
"status": "needs_response"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/charge.dispute.funds_reinstated.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
"reason": "general",
"status": "needs_response"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/charge.dispute.funds_withdrawn.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
"reason": "general",
"status": "needs_response"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/charge.dispute.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,6 @@
"uncategorized_text": "Old uncategorized text"
}
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/charge.failed.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@
"statement_descriptor": null,
"status": "succeeded"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/charge.refunded.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,6 @@
"status": "succeeded",
"fee": 0
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/charge.succeeded.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,6 @@
"statement_descriptor": null,
"status": "succeeded"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/charge.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@
"previous_attributes": {
"description": "Old description"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/coupon.created.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"times_redeemed": 0,
"valid": true
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/coupon.deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"times_redeemed": 0,
"valid": true
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/coupon.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
"valid": true
},
"previous_attributes": null
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.bank_account.deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@
"routing_number": "110000000",
"status": "new"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.created.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"url": "/v1/customers/cus_83iOlPDJTWgAi8/subscriptions"
}
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@
"url": "/v1/customers/cus_83iO9cgahpBU5w/subscriptions"
}
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.discount.created.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
"start": 1457643966,
"subscription": null
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.discount.deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
"start": 1457643987,
"subscription": null
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.discount.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@
"valid": true
}
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.source.created.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
"name": null,
"tokenization_method": null
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.source.deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@
"name": null,
"tokenization_method": null
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.source.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@
"tokenization_method": null
},
"previous_attributes": null
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.subscription.created.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"trial_end": null,
"trial_start": null
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.subscription.deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"trial_end": null,
"trial_start": null
}
}
},
"user_id": "acct_0000000000000000"
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,6 @@
"trial_end": 1457897775,
"trial_start": 1457638575
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.subscription.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
"trial_period_days": null
}
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/customer.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@
"previous_attributes": {
"description": "Old description"
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/invoice.created.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@
"total": 0,
"webhooks_delivered_at": null
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/invoice.payment_failed.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@
"total": 0,
"webhooks_delivered_at": null
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/invoice.payment_succeeded.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@
"total": 0,
"webhooks_delivered_at": null
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/invoice.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,6 @@
"previous_attributes": {
"lines": []
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/invoiceitem.created.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"quantity": null,
"subscription": null
}
}
},
"user_id": "acct_0000000000000000"
}
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/invoiceitem.deleted.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"quantity": null,
"subscription": null
}
}
},
"user_id": "acct_0000000000000000"
}
5 changes: 2 additions & 3 deletions src/webhooks/2016-03-07/invoiceitem.updated.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"previous_attributes": {
"amount": 2121
}
}
},
"user_id": "acct_0000000000000000"
}
Response
ok
3 changes: 2 additions & 1 deletion src/webhooks/2016-03-07/order.created.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
"status_transitions": null,
"updated": 1457644387
}
}
},
"user_id": "acct_0000000000000000"
}
Loading

0 comments on commit 572cc84

Please sign in to comment.