From 48a00d120309c5d767f0231f3149c53f9acbc63e Mon Sep 17 00:00:00 2001 From: Jesse Schutt Date: Thu, 10 Mar 2016 15:26:05 -0600 Subject: [PATCH] Added 2016-03-07 dummy webhooks Signed-off-by: Jesse Schutt --- .../account.external_account.created.json | 28 ++++ .../account.external_account.deleted.json | 28 ++++ .../account.external_account.updated.json | 29 ++++ src/webhooks/2016-03-07/account.updated.json | 153 ++++++++++++++++++ .../2016-03-07/balance.available.json | 34 ++++ .../2016-03-07/bitcoin.receiver.created.json | 33 ++++ .../2016-03-07/bitcoin.receiver.filled.json | 33 ++++ .../bitcoin.receiver.transaction.created.json | 21 +++ .../2016-03-07/bitcoin.receiver.updated.json | 34 ++++ src/webhooks/2016-03-07/charge.captured.json | 73 +++++++++ .../2016-03-07/charge.dispute.closed.json | 61 +++++++ .../2016-03-07/charge.dispute.created.json | 61 +++++++ .../charge.dispute.funds_reinstated.json | 61 +++++++ .../charge.dispute.funds_withdrawn.json | 61 +++++++ .../2016-03-07/charge.dispute.updated.json | 92 +++++++++++ src/webhooks/2016-03-07/charge.failed.json | 73 +++++++++ src/webhooks/2016-03-07/charge.refunded.json | 87 ++++++++++ src/webhooks/2016-03-07/charge.succeeded.json | 73 +++++++++ src/webhooks/2016-03-07/charge.updated.json | 76 +++++++++ src/webhooks/2016-03-07/coupon.created.json | 28 ++++ src/webhooks/2016-03-07/coupon.deleted.json | 28 ++++ src/webhooks/2016-03-07/coupon.updated.json | 29 ++++ .../customer.bank_account.deleted.json | 28 ++++ src/webhooks/2016-03-07/customer.created.json | 41 +++++ src/webhooks/2016-03-07/customer.deleted.json | 41 +++++ .../2016-03-07/customer.discount.created.json | 35 ++++ .../2016-03-07/customer.discount.deleted.json | 35 ++++ .../2016-03-07/customer.discount.updated.json | 53 ++++++ .../2016-03-07/customer.source.created.json | 36 +++++ .../2016-03-07/customer.source.deleted.json | 36 +++++ .../2016-03-07/customer.source.updated.json | 37 +++++ .../customer.subscription.created.json | 45 ++++++ .../customer.subscription.deleted.json | 45 ++++++ .../customer.subscription.trial_will_end.json | 45 ++++++ .../customer.subscription.updated.json | 61 +++++++ src/webhooks/2016-03-07/customer.updated.json | 44 +++++ src/webhooks/2016-03-07/invoice.created.json | 83 ++++++++++ .../2016-03-07/invoice.payment_failed.json | 83 ++++++++++ .../2016-03-07/invoice.payment_succeeded.json | 83 ++++++++++ src/webhooks/2016-03-07/invoice.updated.json | 86 ++++++++++ .../2016-03-07/invoiceitem.created.json | 33 ++++ .../2016-03-07/invoiceitem.deleted.json | 33 ++++ .../2016-03-07/invoiceitem.updated.json | 38 +++++ src/webhooks/2016-03-07/order.created.json | 54 +++++++ .../2016-03-07/order.payment_failed.json | 54 +++++++ .../2016-03-07/order.payment_succeeded.json | 54 +++++++ src/webhooks/2016-03-07/order.updated.json | 55 +++++++ src/webhooks/2016-03-07/plan.created.json | 26 +++ src/webhooks/2016-03-07/plan.deleted.json | 26 +++ src/webhooks/2016-03-07/plan.updated.json | 29 ++++ src/webhooks/2016-03-07/product.created.json | 39 +++++ src/webhooks/2016-03-07/product.deleted.json | 39 +++++ src/webhooks/2016-03-07/product.updated.json | 40 +++++ .../2016-03-07/recipient.created.json | 34 ++++ .../2016-03-07/recipient.deleted.json | 34 ++++ .../2016-03-07/recipient.updated.json | 35 ++++ src/webhooks/2016-03-07/sku.created.json | 35 ++++ src/webhooks/2016-03-07/sku.deleted.json | 35 ++++ src/webhooks/2016-03-07/sku.updated.json | 36 +++++ src/webhooks/2016-03-07/transfer.created.json | 43 +++++ src/webhooks/2016-03-07/transfer.failed.json | 43 +++++ src/webhooks/2016-03-07/transfer.paid.json | 43 +++++ .../2016-03-07/transfer.reversed.json | 43 +++++ src/webhooks/2016-03-07/transfer.updated.json | 46 ++++++ 64 files changed, 3060 insertions(+) create mode 100644 src/webhooks/2016-03-07/account.external_account.created.json create mode 100644 src/webhooks/2016-03-07/account.external_account.deleted.json create mode 100644 src/webhooks/2016-03-07/account.external_account.updated.json create mode 100644 src/webhooks/2016-03-07/account.updated.json create mode 100644 src/webhooks/2016-03-07/balance.available.json create mode 100644 src/webhooks/2016-03-07/bitcoin.receiver.created.json create mode 100644 src/webhooks/2016-03-07/bitcoin.receiver.filled.json create mode 100644 src/webhooks/2016-03-07/bitcoin.receiver.transaction.created.json create mode 100644 src/webhooks/2016-03-07/bitcoin.receiver.updated.json create mode 100644 src/webhooks/2016-03-07/charge.captured.json create mode 100644 src/webhooks/2016-03-07/charge.dispute.closed.json create mode 100644 src/webhooks/2016-03-07/charge.dispute.created.json create mode 100644 src/webhooks/2016-03-07/charge.dispute.funds_reinstated.json create mode 100644 src/webhooks/2016-03-07/charge.dispute.funds_withdrawn.json create mode 100644 src/webhooks/2016-03-07/charge.dispute.updated.json create mode 100644 src/webhooks/2016-03-07/charge.failed.json create mode 100644 src/webhooks/2016-03-07/charge.refunded.json create mode 100644 src/webhooks/2016-03-07/charge.succeeded.json create mode 100644 src/webhooks/2016-03-07/charge.updated.json create mode 100644 src/webhooks/2016-03-07/coupon.created.json create mode 100644 src/webhooks/2016-03-07/coupon.deleted.json create mode 100644 src/webhooks/2016-03-07/coupon.updated.json create mode 100644 src/webhooks/2016-03-07/customer.bank_account.deleted.json create mode 100644 src/webhooks/2016-03-07/customer.created.json create mode 100644 src/webhooks/2016-03-07/customer.deleted.json create mode 100644 src/webhooks/2016-03-07/customer.discount.created.json create mode 100644 src/webhooks/2016-03-07/customer.discount.deleted.json create mode 100644 src/webhooks/2016-03-07/customer.discount.updated.json create mode 100644 src/webhooks/2016-03-07/customer.source.created.json create mode 100644 src/webhooks/2016-03-07/customer.source.deleted.json create mode 100644 src/webhooks/2016-03-07/customer.source.updated.json create mode 100644 src/webhooks/2016-03-07/customer.subscription.created.json create mode 100644 src/webhooks/2016-03-07/customer.subscription.deleted.json create mode 100644 src/webhooks/2016-03-07/customer.subscription.trial_will_end.json create mode 100644 src/webhooks/2016-03-07/customer.subscription.updated.json create mode 100644 src/webhooks/2016-03-07/customer.updated.json create mode 100644 src/webhooks/2016-03-07/invoice.created.json create mode 100644 src/webhooks/2016-03-07/invoice.payment_failed.json create mode 100644 src/webhooks/2016-03-07/invoice.payment_succeeded.json create mode 100644 src/webhooks/2016-03-07/invoice.updated.json create mode 100644 src/webhooks/2016-03-07/invoiceitem.created.json create mode 100644 src/webhooks/2016-03-07/invoiceitem.deleted.json create mode 100644 src/webhooks/2016-03-07/invoiceitem.updated.json create mode 100644 src/webhooks/2016-03-07/order.created.json create mode 100644 src/webhooks/2016-03-07/order.payment_failed.json create mode 100644 src/webhooks/2016-03-07/order.payment_succeeded.json create mode 100644 src/webhooks/2016-03-07/order.updated.json create mode 100644 src/webhooks/2016-03-07/plan.created.json create mode 100644 src/webhooks/2016-03-07/plan.deleted.json create mode 100644 src/webhooks/2016-03-07/plan.updated.json create mode 100644 src/webhooks/2016-03-07/product.created.json create mode 100644 src/webhooks/2016-03-07/product.deleted.json create mode 100644 src/webhooks/2016-03-07/product.updated.json create mode 100644 src/webhooks/2016-03-07/recipient.created.json create mode 100644 src/webhooks/2016-03-07/recipient.deleted.json create mode 100644 src/webhooks/2016-03-07/recipient.updated.json create mode 100644 src/webhooks/2016-03-07/sku.created.json create mode 100644 src/webhooks/2016-03-07/sku.deleted.json create mode 100644 src/webhooks/2016-03-07/sku.updated.json create mode 100644 src/webhooks/2016-03-07/transfer.created.json create mode 100644 src/webhooks/2016-03-07/transfer.failed.json create mode 100644 src/webhooks/2016-03-07/transfer.paid.json create mode 100644 src/webhooks/2016-03-07/transfer.reversed.json create mode 100644 src/webhooks/2016-03-07/transfer.updated.json diff --git a/src/webhooks/2016-03-07/account.external_account.created.json b/src/webhooks/2016-03-07/account.external_account.created.json new file mode 100644 index 0000000..f937c56 --- /dev/null +++ b/src/webhooks/2016-03-07/account.external_account.created.json @@ -0,0 +1,28 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "account.external_account.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ba_00000000000000", + "object": "bank_account", + "account": "acct_00000000000000", + "account_holder_name": "Jane Austen", + "account_holder_type": "individual", + "bank_name": "STRIPE TEST BANK", + "country": "US", + "currency": "usd", + "default_for_currency": false, + "fingerprint": "3eH76iBTdLmlv8Hp", + "last4": "6789", + "metadata": {}, + "routing_number": "110000000", + "status": "new" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/account.external_account.deleted.json b/src/webhooks/2016-03-07/account.external_account.deleted.json new file mode 100644 index 0000000..f7c86c8 --- /dev/null +++ b/src/webhooks/2016-03-07/account.external_account.deleted.json @@ -0,0 +1,28 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "account.external_account.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ba_00000000000000", + "object": "bank_account", + "account": "acct_00000000000000", + "account_holder_name": "Jane Austen", + "account_holder_type": "individual", + "bank_name": "STRIPE TEST BANK", + "country": "US", + "currency": "usd", + "default_for_currency": false, + "fingerprint": "3eH76iBTdLmlv8Hp", + "last4": "6789", + "metadata": {}, + "routing_number": "110000000", + "status": "new" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/account.external_account.updated.json b/src/webhooks/2016-03-07/account.external_account.updated.json new file mode 100644 index 0000000..89e3d5a --- /dev/null +++ b/src/webhooks/2016-03-07/account.external_account.updated.json @@ -0,0 +1,29 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "account.external_account.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ba_00000000000000", + "object": "bank_account", + "account": "acct_00000000000000", + "account_holder_name": "Jane Austen", + "account_holder_type": "individual", + "bank_name": "STRIPE TEST BANK", + "country": "US", + "currency": "usd", + "default_for_currency": false, + "fingerprint": "3eH76iBTdLmlv8Hp", + "last4": "6789", + "metadata": {}, + "routing_number": "110000000", + "status": "new" + }, + "previous_attributes": null + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/account.updated.json b/src/webhooks/2016-03-07/account.updated.json new file mode 100644 index 0000000..16b937b --- /dev/null +++ b/src/webhooks/2016-03-07/account.updated.json @@ -0,0 +1,153 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "account.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "acct_00000000000000", + "object": "account", + "business_logo": null, + "business_name": "Zaengle Corp", + "business_url": "http://www.zaengle.com", + "charges_enabled": false, + "country": "US", + "debit_negative_balances": true, + "decline_charge_on": { + "avs_failure": false, + "cvc_failure": true + }, + "default_currency": "usd", + "details_submitted": true, + "display_name": null, + "email": "test@stripe.com", + "external_accounts": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/accounts/acct_16MKXXIRVxWaBTbM/external_accounts" + }, + "legal_entity": { + "additional_owners": null, + "address": { + "city": null, + "country": "US", + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "address_kana": { + "city": null, + "country": "US", + "line1": null, + "line2": null, + "postal_code": null, + "state": null, + "town": null + }, + "address_kanji": { + "city": null, + "country": "US", + "line1": null, + "line2": null, + "postal_code": null, + "state": null, + "town": null + }, + "business_name": null, + "business_name_kana": null, + "business_name_kanji": null, + "business_tax_id_provided": false, + "dob": { + "day": null, + "month": null, + "year": null + }, + "first_name": null, + "first_name_kana": null, + "first_name_kanji": null, + "gender": null, + "last_name": null, + "last_name_kana": null, + "last_name_kanji": null, + "maiden_name": null, + "personal_address": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "personal_address_kana": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null, + "town": null + }, + "personal_address_kanji": { + "city": null, + "country": null, + "line1": null, + "line2": null, + "postal_code": null, + "state": null, + "town": null + }, + "personal_id_number_provided": false, + "phone_number": null, + "ssn_last_4_provided": false, + "type": null, + "verification": { + "details": null, + "details_code": null, + "document": null, + "status": "unverified" + } + }, + "managed": false, + "product_description": null, + "statement_descriptor": "TEST", + "support_email": "jesse.schutt@zaengle.com", + "support_phone": "", + "support_url": "", + "timezone": "America/Chicago", + "tos_acceptance": { + "date": null, + "ip": null, + "user_agent": null + }, + "transfer_schedule": { + "delay_days": 2, + "interval": "daily" + }, + "transfers_enabled": false, + "verification": { + "disabled_reason": "fields_needed", + "due_by": 1457902431, + "fields_needed": [ + "legal_entity.verification.document" + ] + } + }, + "previous_attributes": { + "verification": { + "fields_needed": [ + + ], + "due_by": null + } + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/balance.available.json b/src/webhooks/2016-03-07/balance.available.json new file mode 100644 index 0000000..60ad45d --- /dev/null +++ b/src/webhooks/2016-03-07/balance.available.json @@ -0,0 +1,34 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "balance.available", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "object": "balance", + "available": [ + { + "currency": "usd", + "amount": 0, + "source_types": { + "card": 0 + } + } + ], + "livemode": false, + "pending": [ + { + "currency": "usd", + "amount": 0, + "source_types": { + "card": 0 + } + } + ] + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/bitcoin.receiver.created.json b/src/webhooks/2016-03-07/bitcoin.receiver.created.json new file mode 100644 index 0000000..4791823 --- /dev/null +++ b/src/webhooks/2016-03-07/bitcoin.receiver.created.json @@ -0,0 +1,33 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "bitcoin.receiver.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "btcrcv_00000000000000", + "object": "bitcoin_receiver", + "active": false, + "amount": 100, + "amount_received": 0, + "bitcoin_amount": 1757908, + "bitcoin_amount_received": 0, + "bitcoin_uri": "bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908", + "created": 1457643470, + "currency": "usd", + "description": "Receiver for John Doe", + "email": "test@example.com", + "filled": false, + "inbound_address": "test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1", + "livemode": false, + "metadata": {}, + "refund_address": null, + "uncaptured_funds": false, + "used_for_payment": false + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/bitcoin.receiver.filled.json b/src/webhooks/2016-03-07/bitcoin.receiver.filled.json new file mode 100644 index 0000000..8515019 --- /dev/null +++ b/src/webhooks/2016-03-07/bitcoin.receiver.filled.json @@ -0,0 +1,33 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "bitcoin.receiver.filled", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "btcrcv_00000000000000", + "object": "bitcoin_receiver", + "active": false, + "amount": 100, + "amount_received": 0, + "bitcoin_amount": 1757908, + "bitcoin_amount_received": 0, + "bitcoin_uri": "bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908", + "created": 1457643497, + "currency": "usd", + "description": "Receiver for John Doe", + "email": "test@example.com", + "filled": false, + "inbound_address": "test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1", + "livemode": false, + "metadata": {}, + "refund_address": null, + "uncaptured_funds": false, + "used_for_payment": false + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/bitcoin.receiver.transaction.created.json b/src/webhooks/2016-03-07/bitcoin.receiver.transaction.created.json new file mode 100644 index 0000000..f11846e --- /dev/null +++ b/src/webhooks/2016-03-07/bitcoin.receiver.transaction.created.json @@ -0,0 +1,21 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "bitcoin.receiver.transaction.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "btctxn_00000000000000", + "object": "bitcoin_transaction", + "amount": 2000, + "bitcoin_amount": 20000000, + "created": 1457643546, + "currency": "usd", + "receiver": "btcrcv_17nCME2eZvKYlo2CDDfUvLTW" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/bitcoin.receiver.updated.json b/src/webhooks/2016-03-07/bitcoin.receiver.updated.json new file mode 100644 index 0000000..4f12a3d --- /dev/null +++ b/src/webhooks/2016-03-07/bitcoin.receiver.updated.json @@ -0,0 +1,34 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "bitcoin.receiver.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "btcrcv_00000000000000", + "object": "bitcoin_receiver", + "active": false, + "amount": 100, + "amount_received": 0, + "bitcoin_amount": 1757908, + "bitcoin_amount_received": 0, + "bitcoin_uri": "bitcoin:test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1?amount=0.01757908", + "created": 1457643520, + "currency": "usd", + "description": "Receiver for John Doe", + "email": "test@example.com", + "filled": false, + "inbound_address": "test_7i9Fo4b5wXcUAuoVBFrc7nc9HDxD1", + "livemode": false, + "metadata": {}, + "refund_address": null, + "uncaptured_funds": false, + "used_for_payment": false + }, + "previous_attributes": null + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/charge.captured.json b/src/webhooks/2016-03-07/charge.captured.json new file mode 100644 index 0000000..aa580fa --- /dev/null +++ b/src/webhooks/2016-03-07/charge.captured.json @@ -0,0 +1,73 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.captured", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 0, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": true, + "created": 1457643567, + "currency": "usd", + "customer": null, + "description": "My First Test Charge (created for API docs)", + "destination": null, + "dispute": null, + "failure_code": null, + "failure_message": null, + "fraud_details": {}, + "invoice": null, + "livemode": false, + "metadata": {}, + "order": null, + "paid": true, + "receipt_email": null, + "receipt_number": null, + "refunded": false, + "refunds": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/charges/ch_17nasVIRVxWaBTbM5lQ590vp/refunds" + }, + "shipping": null, + "source": { + "id": "card_00000000000000", + "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": null, + "cvc_check": null, + "dynamic_last4": null, + "exp_month": 8, + "exp_year": 2017, + "funding": "credit", + "last4": "4242", + "metadata": {}, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "succeeded" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/charge.dispute.closed.json b/src/webhooks/2016-03-07/charge.dispute.closed.json new file mode 100644 index 0000000..41330b5 --- /dev/null +++ b/src/webhooks/2016-03-07/charge.dispute.closed.json @@ -0,0 +1,61 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.dispute.closed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "dp_00000000000000", + "object": "dispute", + "amount": 1000, + "balance_transactions": [], + "charge": "ch_00000000000000", + "created": 1457643699, + "currency": "usd", + "evidence": { + "access_activity_log": null, + "billing_address": null, + "cancellation_policy": null, + "cancellation_policy_disclosure": null, + "cancellation_rebuttal": null, + "customer_communication": null, + "customer_email_address": null, + "customer_name": null, + "customer_purchase_ip": null, + "customer_signature": null, + "duplicate_charge_documentation": null, + "duplicate_charge_explanation": null, + "duplicate_charge_id": null, + "product_description": null, + "receipt": null, + "refund_policy": null, + "refund_policy_disclosure": null, + "refund_refusal_explanation": null, + "service_date": null, + "service_documentation": null, + "shipping_address": null, + "shipping_carrier": null, + "shipping_date": null, + "shipping_documentation": null, + "shipping_tracking_number": null, + "uncategorized_file": null, + "uncategorized_text": "Here is some evidence" + }, + "evidence_details": { + "due_by": 1459295999, + "has_evidence": false, + "past_due": false, + "submission_count": 0 + }, + "is_charge_refundable": false, + "livemode": false, + "metadata": {}, + "reason": "general", + "status": "won" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/charge.dispute.created.json b/src/webhooks/2016-03-07/charge.dispute.created.json new file mode 100644 index 0000000..794b5f9 --- /dev/null +++ b/src/webhooks/2016-03-07/charge.dispute.created.json @@ -0,0 +1,61 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.dispute.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "dp_00000000000000", + "object": "dispute", + "amount": 1000, + "balance_transactions": [], + "charge": "ch_00000000000000", + "created": 1457643712, + "currency": "usd", + "evidence": { + "access_activity_log": null, + "billing_address": null, + "cancellation_policy": null, + "cancellation_policy_disclosure": null, + "cancellation_rebuttal": null, + "customer_communication": null, + "customer_email_address": null, + "customer_name": null, + "customer_purchase_ip": null, + "customer_signature": null, + "duplicate_charge_documentation": null, + "duplicate_charge_explanation": null, + "duplicate_charge_id": null, + "product_description": null, + "receipt": null, + "refund_policy": null, + "refund_policy_disclosure": null, + "refund_refusal_explanation": null, + "service_date": null, + "service_documentation": null, + "shipping_address": null, + "shipping_carrier": null, + "shipping_date": null, + "shipping_documentation": null, + "shipping_tracking_number": null, + "uncategorized_file": null, + "uncategorized_text": null + }, + "evidence_details": { + "due_by": 1459295999, + "has_evidence": false, + "past_due": false, + "submission_count": 0 + }, + "is_charge_refundable": false, + "livemode": false, + "metadata": {}, + "reason": "general", + "status": "needs_response" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/charge.dispute.funds_reinstated.json b/src/webhooks/2016-03-07/charge.dispute.funds_reinstated.json new file mode 100644 index 0000000..6efe7eb --- /dev/null +++ b/src/webhooks/2016-03-07/charge.dispute.funds_reinstated.json @@ -0,0 +1,61 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.dispute.funds_reinstated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "dp_00000000000000", + "object": "dispute", + "amount": 1000, + "balance_transactions": [], + "charge": "ch_00000000000000", + "created": 1457643733, + "currency": "usd", + "evidence": { + "access_activity_log": null, + "billing_address": null, + "cancellation_policy": null, + "cancellation_policy_disclosure": null, + "cancellation_rebuttal": null, + "customer_communication": null, + "customer_email_address": null, + "customer_name": null, + "customer_purchase_ip": null, + "customer_signature": null, + "duplicate_charge_documentation": null, + "duplicate_charge_explanation": null, + "duplicate_charge_id": null, + "product_description": null, + "receipt": null, + "refund_policy": null, + "refund_policy_disclosure": null, + "refund_refusal_explanation": null, + "service_date": null, + "service_documentation": null, + "shipping_address": null, + "shipping_carrier": null, + "shipping_date": null, + "shipping_documentation": null, + "shipping_tracking_number": null, + "uncategorized_file": null, + "uncategorized_text": null + }, + "evidence_details": { + "due_by": 1459295999, + "has_evidence": false, + "past_due": false, + "submission_count": 0 + }, + "is_charge_refundable": false, + "livemode": false, + "metadata": {}, + "reason": "general", + "status": "needs_response" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/charge.dispute.funds_withdrawn.json b/src/webhooks/2016-03-07/charge.dispute.funds_withdrawn.json new file mode 100644 index 0000000..d147b30 --- /dev/null +++ b/src/webhooks/2016-03-07/charge.dispute.funds_withdrawn.json @@ -0,0 +1,61 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.dispute.funds_withdrawn", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "dp_00000000000000", + "object": "dispute", + "amount": 1000, + "balance_transactions": [], + "charge": "ch_00000000000000", + "created": 1457643768, + "currency": "usd", + "evidence": { + "access_activity_log": null, + "billing_address": null, + "cancellation_policy": null, + "cancellation_policy_disclosure": null, + "cancellation_rebuttal": null, + "customer_communication": null, + "customer_email_address": null, + "customer_name": null, + "customer_purchase_ip": null, + "customer_signature": null, + "duplicate_charge_documentation": null, + "duplicate_charge_explanation": null, + "duplicate_charge_id": null, + "product_description": null, + "receipt": null, + "refund_policy": null, + "refund_policy_disclosure": null, + "refund_refusal_explanation": null, + "service_date": null, + "service_documentation": null, + "shipping_address": null, + "shipping_carrier": null, + "shipping_date": null, + "shipping_documentation": null, + "shipping_tracking_number": null, + "uncategorized_file": null, + "uncategorized_text": null + }, + "evidence_details": { + "due_by": 1459295999, + "has_evidence": false, + "past_due": false, + "submission_count": 0 + }, + "is_charge_refundable": false, + "livemode": false, + "metadata": {}, + "reason": "general", + "status": "needs_response" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/charge.dispute.updated.json b/src/webhooks/2016-03-07/charge.dispute.updated.json new file mode 100644 index 0000000..8e05e33 --- /dev/null +++ b/src/webhooks/2016-03-07/charge.dispute.updated.json @@ -0,0 +1,92 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.dispute.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "dp_00000000000000", + "object": "dispute", + "amount": 1000, + "balance_transactions": [], + "charge": "ch_00000000000000", + "created": 1457643793, + "currency": "usd", + "evidence": { + "access_activity_log": null, + "billing_address": null, + "cancellation_policy": null, + "cancellation_policy_disclosure": null, + "cancellation_rebuttal": null, + "customer_communication": null, + "customer_email_address": null, + "customer_name": null, + "customer_purchase_ip": null, + "customer_signature": null, + "duplicate_charge_documentation": null, + "duplicate_charge_explanation": null, + "duplicate_charge_id": null, + "product_description": null, + "receipt": null, + "refund_policy": null, + "refund_policy_disclosure": null, + "refund_refusal_explanation": null, + "service_date": null, + "service_documentation": null, + "shipping_address": null, + "shipping_carrier": null, + "shipping_date": null, + "shipping_documentation": null, + "shipping_tracking_number": null, + "uncategorized_file": null, + "uncategorized_text": "Here is some evidence" + }, + "evidence_details": { + "due_by": 1459295999, + "has_evidence": false, + "past_due": false, + "submission_count": 0 + }, + "is_charge_refundable": false, + "livemode": false, + "metadata": {}, + "reason": "general", + "status": "under_review" + }, + "previous_attributes": { + "evidence": { + "access_activity_log": null, + "billing_address": null, + "cancellation_policy": null, + "cancellation_policy_disclosure": null, + "cancellation_rebuttal": null, + "customer_communication": null, + "customer_email_address": null, + "customer_name": null, + "customer_purchase_ip": null, + "customer_signature": null, + "duplicate_charge_documentation": null, + "duplicate_charge_explanation": null, + "duplicate_charge_id": null, + "product_description": null, + "receipt": null, + "refund_policy": null, + "refund_policy_disclosure": null, + "refund_refusal_explanation": null, + "service_date": null, + "service_documentation": null, + "shipping_address": null, + "shipping_carrier": null, + "shipping_date": null, + "shipping_documentation": null, + "shipping_tracking_number": null, + "uncategorized_file": null, + "uncategorized_text": "Old uncategorized text" + } + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/charge.failed.json b/src/webhooks/2016-03-07/charge.failed.json new file mode 100644 index 0000000..75070a1 --- /dev/null +++ b/src/webhooks/2016-03-07/charge.failed.json @@ -0,0 +1,73 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.failed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 0, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": true, + "created": 1457643580, + "currency": "usd", + "customer": null, + "description": "My First Test Charge (created for API docs)", + "destination": null, + "dispute": null, + "failure_code": null, + "failure_message": null, + "fraud_details": {}, + "invoice": null, + "livemode": false, + "metadata": {}, + "order": null, + "paid": false, + "receipt_email": null, + "receipt_number": null, + "refunded": false, + "refunds": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/charges/ch_17nasiIRVxWaBTbMpMLzZCZU/refunds" + }, + "shipping": null, + "source": { + "id": "card_00000000000000", + "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": null, + "cvc_check": null, + "dynamic_last4": null, + "exp_month": 8, + "exp_year": 2017, + "funding": "credit", + "last4": "4242", + "metadata": {}, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "succeeded" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/charge.refunded.json b/src/webhooks/2016-03-07/charge.refunded.json new file mode 100644 index 0000000..215bfb7 --- /dev/null +++ b/src/webhooks/2016-03-07/charge.refunded.json @@ -0,0 +1,87 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.refunded", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 100, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": true, + "created": 1457643611, + "currency": "usd", + "customer": null, + "description": "My First Test Charge (created for API docs)", + "destination": null, + "dispute": null, + "failure_code": null, + "failure_message": null, + "fraud_details": {}, + "invoice": null, + "livemode": false, + "metadata": {}, + "order": null, + "paid": true, + "receipt_email": null, + "receipt_number": null, + "refunded": true, + "refunds": { + "object": "list", + "data": [ + { + "id": "re_83iJq9znzNcf7B", + "object": "refund", + "amount": 100, + "balance_transaction": "txn_83iJEO7HnQ1TeF", + "charge": "ch_83iJTQ2ecWIb5l", + "created": 1457643611, + "currency": "usd", + "metadata": {}, + "reason": null, + "receipt_number": "1071-7156" + } + ], + "has_more": false, + "total_count": 0, + "url": "/v1/charges/ch_17natDIRVxWaBTbMSfrfYGd3/refunds" + }, + "shipping": null, + "source": { + "id": "card_00000000000000", + "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": null, + "cvc_check": null, + "dynamic_last4": null, + "exp_month": 8, + "exp_year": 2017, + "funding": "credit", + "last4": "4242", + "metadata": {}, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "succeeded", + "fee": 0 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/charge.succeeded.json b/src/webhooks/2016-03-07/charge.succeeded.json new file mode 100644 index 0000000..7588889 --- /dev/null +++ b/src/webhooks/2016-03-07/charge.succeeded.json @@ -0,0 +1,73 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.succeeded", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 0, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": true, + "created": 1457643641, + "currency": "usd", + "customer": null, + "description": "My First Test Charge (created for API docs)", + "destination": null, + "dispute": null, + "failure_code": null, + "failure_message": null, + "fraud_details": {}, + "invoice": null, + "livemode": false, + "metadata": {}, + "order": null, + "paid": true, + "receipt_email": null, + "receipt_number": null, + "refunded": false, + "refunds": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/charges/ch_17nathIRVxWaBTbMPllCyHIz/refunds" + }, + "shipping": null, + "source": { + "id": "card_00000000000000", + "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": null, + "cvc_check": null, + "dynamic_last4": null, + "exp_month": 8, + "exp_year": 2017, + "funding": "credit", + "last4": "4242", + "metadata": {}, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "succeeded" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/charge.updated.json b/src/webhooks/2016-03-07/charge.updated.json new file mode 100644 index 0000000..bf0b7ce --- /dev/null +++ b/src/webhooks/2016-03-07/charge.updated.json @@ -0,0 +1,76 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 0, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": true, + "created": 1457643673, + "currency": "usd", + "customer": null, + "description": "My First Test Charge (created for API docs)", + "destination": null, + "dispute": null, + "failure_code": null, + "failure_message": null, + "fraud_details": {}, + "invoice": null, + "livemode": false, + "metadata": {}, + "order": null, + "paid": true, + "receipt_email": null, + "receipt_number": null, + "refunded": false, + "refunds": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/charges/ch_17nauDIRVxWaBTbMpUfwNrRg/refunds" + }, + "shipping": null, + "source": { + "id": "card_00000000000000", + "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": null, + "cvc_check": null, + "dynamic_last4": null, + "exp_month": 8, + "exp_year": 2017, + "funding": "credit", + "last4": "4242", + "metadata": {}, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "succeeded" + }, + "previous_attributes": { + "description": "Old description" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/coupon.created.json b/src/webhooks/2016-03-07/coupon.created.json new file mode 100644 index 0000000..3e5b4bc --- /dev/null +++ b/src/webhooks/2016-03-07/coupon.created.json @@ -0,0 +1,28 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "coupon.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1457643810, + "currency": "usd", + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": {}, + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/coupon.deleted.json b/src/webhooks/2016-03-07/coupon.deleted.json new file mode 100644 index 0000000..0c011a0 --- /dev/null +++ b/src/webhooks/2016-03-07/coupon.deleted.json @@ -0,0 +1,28 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "coupon.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1457643827, + "currency": "usd", + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": {}, + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/coupon.updated.json b/src/webhooks/2016-03-07/coupon.updated.json new file mode 100644 index 0000000..a7a16bf --- /dev/null +++ b/src/webhooks/2016-03-07/coupon.updated.json @@ -0,0 +1,29 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "coupon.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1457643840, + "currency": "usd", + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": {}, + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + }, + "previous_attributes": null + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.bank_account.deleted.json b/src/webhooks/2016-03-07/customer.bank_account.deleted.json new file mode 100644 index 0000000..49f5030 --- /dev/null +++ b/src/webhooks/2016-03-07/customer.bank_account.deleted.json @@ -0,0 +1,28 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.bank_account.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ba_00000000000000", + "object": "bank_account", + "account": "acct_00000000000000", + "account_holder_name": "Jane Austen", + "account_holder_type": "individual", + "bank_name": "STRIPE TEST BANK", + "country": "US", + "currency": "usd", + "default_for_currency": false, + "fingerprint": "3eH76iBTdLmlv8Hp", + "last4": "6789", + "metadata": {}, + "routing_number": "110000000", + "status": "new" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.created.json b/src/webhooks/2016-03-07/customer.created.json new file mode 100644 index 0000000..cff2218 --- /dev/null +++ b/src/webhooks/2016-03-07/customer.created.json @@ -0,0 +1,41 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "cus_00000000000000", + "object": "customer", + "account_balance": 0, + "created": 1457643861, + "currency": "usd", + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": null, + "livemode": false, + "metadata": {}, + "shipping": null, + "sources": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_83iOlPDJTWgAi8/sources" + }, + "subscriptions": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_83iOlPDJTWgAi8/subscriptions" + } + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.deleted.json b/src/webhooks/2016-03-07/customer.deleted.json new file mode 100644 index 0000000..99edaa8 --- /dev/null +++ b/src/webhooks/2016-03-07/customer.deleted.json @@ -0,0 +1,41 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "cus_00000000000000", + "object": "customer", + "account_balance": 0, + "created": 1457643877, + "currency": "usd", + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": null, + "livemode": false, + "metadata": {}, + "shipping": null, + "sources": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_83iO9cgahpBU5w/sources" + }, + "subscriptions": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_83iO9cgahpBU5w/subscriptions" + } + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.discount.created.json b/src/webhooks/2016-03-07/customer.discount.created.json new file mode 100644 index 0000000..f0334ba --- /dev/null +++ b/src/webhooks/2016-03-07/customer.discount.created.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.discount.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "object": "discount", + "coupon": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1457643966, + "currency": "usd", + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": {}, + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + }, + "customer": "cus_00000000000000", + "end": 1465592766, + "start": 1457643966, + "subscription": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.discount.deleted.json b/src/webhooks/2016-03-07/customer.discount.deleted.json new file mode 100644 index 0000000..32ee2dd --- /dev/null +++ b/src/webhooks/2016-03-07/customer.discount.deleted.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.discount.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "object": "discount", + "coupon": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1457643987, + "currency": "usd", + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": {}, + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + }, + "customer": "cus_00000000000000", + "end": 1465592787, + "start": 1457643987, + "subscription": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.discount.updated.json b/src/webhooks/2016-03-07/customer.discount.updated.json new file mode 100644 index 0000000..598f46e --- /dev/null +++ b/src/webhooks/2016-03-07/customer.discount.updated.json @@ -0,0 +1,53 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.discount.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "object": "discount", + "coupon": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1457644012, + "currency": "usd", + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": {}, + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + }, + "customer": "cus_00000000000000", + "end": 1465592812, + "start": 1457644012, + "subscription": null + }, + "previous_attributes": { + "coupon": { + "id": "OLD_COUPON_ID", + "object": "coupon", + "amount_off": null, + "created": 1457644012, + "currency": "usd", + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": {}, + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + } + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.source.created.json b/src/webhooks/2016-03-07/customer.source.created.json new file mode 100644 index 0000000..68dd678 --- /dev/null +++ b/src/webhooks/2016-03-07/customer.source.created.json @@ -0,0 +1,36 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.source.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "card_00000000000000", + "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": null, + "cvc_check": null, + "dynamic_last4": null, + "exp_month": 8, + "exp_year": 2017, + "funding": "credit", + "last4": "4242", + "metadata": {}, + "name": null, + "tokenization_method": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.source.deleted.json b/src/webhooks/2016-03-07/customer.source.deleted.json new file mode 100644 index 0000000..5a98789 --- /dev/null +++ b/src/webhooks/2016-03-07/customer.source.deleted.json @@ -0,0 +1,36 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.source.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "card_00000000000000", + "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": null, + "cvc_check": null, + "dynamic_last4": null, + "exp_month": 8, + "exp_year": 2017, + "funding": "credit", + "last4": "4242", + "metadata": {}, + "name": null, + "tokenization_method": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.source.updated.json b/src/webhooks/2016-03-07/customer.source.updated.json new file mode 100644 index 0000000..5a79327 --- /dev/null +++ b/src/webhooks/2016-03-07/customer.source.updated.json @@ -0,0 +1,37 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.source.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "card_00000000000000", + "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": null, + "cvc_check": null, + "dynamic_last4": null, + "exp_month": 8, + "exp_year": 2017, + "funding": "credit", + "last4": "4242", + "metadata": {}, + "name": null, + "tokenization_method": null + }, + "previous_attributes": null + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.subscription.created.json b/src/webhooks/2016-03-07/customer.subscription.created.json new file mode 100644 index 0000000..06ad2bd --- /dev/null +++ b/src/webhooks/2016-03-07/customer.subscription.created.json @@ -0,0 +1,45 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.subscription.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "sub_00000000000000", + "object": "subscription", + "application_fee_percent": null, + "cancel_at_period_end": false, + "canceled_at": null, + "current_period_end": 1460322504, + "current_period_start": 1457644104, + "customer": "cus_00000000000000", + "discount": null, + "ended_at": null, + "metadata": {}, + "plan": { + "id": "gold2132_00000000000000", + "object": "plan", + "amount": 2000, + "created": 1386249594, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold ", + "statement_descriptor": null, + "trial_period_days": null + }, + "quantity": 1, + "start": 1457644104, + "status": "active", + "tax_percent": null, + "trial_end": null, + "trial_start": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.subscription.deleted.json b/src/webhooks/2016-03-07/customer.subscription.deleted.json new file mode 100644 index 0000000..dab8253 --- /dev/null +++ b/src/webhooks/2016-03-07/customer.subscription.deleted.json @@ -0,0 +1,45 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.subscription.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "sub_00000000000000", + "object": "subscription", + "application_fee_percent": null, + "cancel_at_period_end": false, + "canceled_at": null, + "current_period_end": 1460322528, + "current_period_start": 1457644128, + "customer": "cus_00000000000000", + "discount": null, + "ended_at": 1457638573, + "metadata": {}, + "plan": { + "id": "gold2132_00000000000000", + "object": "plan", + "amount": 2000, + "created": 1386249594, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold ", + "statement_descriptor": null, + "trial_period_days": null + }, + "quantity": 1, + "start": 1457644128, + "status": "canceled", + "tax_percent": null, + "trial_end": null, + "trial_start": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.subscription.trial_will_end.json b/src/webhooks/2016-03-07/customer.subscription.trial_will_end.json new file mode 100644 index 0000000..1a6c3c3 --- /dev/null +++ b/src/webhooks/2016-03-07/customer.subscription.trial_will_end.json @@ -0,0 +1,45 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.subscription.trial_will_end", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "sub_00000000000000", + "object": "subscription", + "application_fee_percent": null, + "cancel_at_period_end": false, + "canceled_at": null, + "current_period_end": 1460322553, + "current_period_start": 1457644153, + "customer": "cus_00000000000000", + "discount": null, + "ended_at": null, + "metadata": {}, + "plan": { + "id": "gold2132_00000000000000", + "object": "plan", + "amount": 2000, + "created": 1386249594, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold ", + "statement_descriptor": null, + "trial_period_days": null + }, + "quantity": 1, + "start": 1457644153, + "status": "trialing", + "tax_percent": null, + "trial_end": 1457897775, + "trial_start": 1457638575 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.subscription.updated.json b/src/webhooks/2016-03-07/customer.subscription.updated.json new file mode 100644 index 0000000..e1128a5 --- /dev/null +++ b/src/webhooks/2016-03-07/customer.subscription.updated.json @@ -0,0 +1,61 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.subscription.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "sub_00000000000000", + "object": "subscription", + "application_fee_percent": null, + "cancel_at_period_end": false, + "canceled_at": null, + "current_period_end": 1460322566, + "current_period_start": 1457644166, + "customer": "cus_00000000000000", + "discount": null, + "ended_at": null, + "metadata": {}, + "plan": { + "id": "gold2132_00000000000000", + "object": "plan", + "amount": 2000, + "created": 1386249594, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold ", + "statement_descriptor": null, + "trial_period_days": null + }, + "quantity": 1, + "start": 1457644166, + "status": "active", + "tax_percent": null, + "trial_end": null, + "trial_start": null + }, + "previous_attributes": { + "plan": { + "id": "OLD_PLAN_ID", + "object": "plan", + "amount": 2000, + "created": 1457644166, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Old plan", + "statement_descriptor": null, + "trial_period_days": null + } + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/customer.updated.json b/src/webhooks/2016-03-07/customer.updated.json new file mode 100644 index 0000000..8fa0c88 --- /dev/null +++ b/src/webhooks/2016-03-07/customer.updated.json @@ -0,0 +1,44 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "cus_00000000000000", + "object": "customer", + "account_balance": 0, + "created": 1457643897, + "currency": "usd", + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": null, + "livemode": false, + "metadata": {}, + "shipping": null, + "sources": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_83iOwTXa5DnMeF/sources" + }, + "subscriptions": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_83iOwTXa5DnMeF/subscriptions" + } + }, + "previous_attributes": { + "description": "Old description" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/invoice.created.json b/src/webhooks/2016-03-07/invoice.created.json new file mode 100644 index 0000000..01b6c6e --- /dev/null +++ b/src/webhooks/2016-03-07/invoice.created.json @@ -0,0 +1,83 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoice.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "in_00000000000000", + "object": "invoice", + "amount_due": 0, + "application_fee": null, + "attempt_count": 0, + "attempted": false, + "charge": null, + "closed": false, + "currency": "usd", + "customer": "cus_00000000000000", + "date": 1457644190, + "description": null, + "discount": null, + "ending_balance": null, + "forgiven": false, + "lines": { + "data": [ + { + "id": "sub_83iTr0LeagvCDd", + "object": "line_item", + "amount": 2000, + "currency": "usd", + "description": null, + "discountable": true, + "livemode": true, + "metadata": {}, + "period": { + "start": 1460322590, + "end": 1462914590 + }, + "plan": { + "id": "gold", + "object": "plan", + "amount": 2000, + "created": 1457644190, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold Special", + "statement_descriptor": null, + "trial_period_days": null + }, + "proration": false, + "quantity": 1, + "subscription": null, + "type": "subscription" + } + ], + "total_count": 1, + "object": "list", + "url": "/v1/invoices/in_17nb2YIRVxWaBTbMsaXP7ZRM/lines" + }, + "livemode": false, + "metadata": {}, + "next_payment_attempt": 1457647790, + "paid": true, + "period_end": 1457644190, + "period_start": 1457644190, + "receipt_number": null, + "starting_balance": 0, + "statement_descriptor": null, + "subscription": null, + "subtotal": 0, + "tax": null, + "tax_percent": null, + "total": 0, + "webhooks_delivered_at": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/invoice.payment_failed.json b/src/webhooks/2016-03-07/invoice.payment_failed.json new file mode 100644 index 0000000..7ce4671 --- /dev/null +++ b/src/webhooks/2016-03-07/invoice.payment_failed.json @@ -0,0 +1,83 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoice.payment_failed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "in_00000000000000", + "object": "invoice", + "amount_due": 0, + "application_fee": null, + "attempt_count": 0, + "attempted": true, + "charge": null, + "closed": false, + "currency": "usd", + "customer": "cus_00000000000000", + "date": 1457644205, + "description": null, + "discount": null, + "ending_balance": null, + "forgiven": false, + "lines": { + "data": [ + { + "id": "sub_83iTCDPQsq90uO", + "object": "line_item", + "amount": 2000, + "currency": "usd", + "description": null, + "discountable": true, + "livemode": true, + "metadata": {}, + "period": { + "start": 1460322605, + "end": 1462914605 + }, + "plan": { + "id": "gold", + "object": "plan", + "amount": 2000, + "created": 1457644205, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold Special", + "statement_descriptor": null, + "trial_period_days": null + }, + "proration": false, + "quantity": 1, + "subscription": null, + "type": "subscription" + } + ], + "total_count": 1, + "object": "list", + "url": "/v1/invoices/in_17nb2nIRVxWaBTbMdGdJIQss/lines" + }, + "livemode": false, + "metadata": {}, + "next_payment_attempt": 1457647805, + "paid": false, + "period_end": 1457644205, + "period_start": 1457644205, + "receipt_number": null, + "starting_balance": 0, + "statement_descriptor": null, + "subscription": null, + "subtotal": 0, + "tax": null, + "tax_percent": null, + "total": 0, + "webhooks_delivered_at": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/invoice.payment_succeeded.json b/src/webhooks/2016-03-07/invoice.payment_succeeded.json new file mode 100644 index 0000000..b8113e3 --- /dev/null +++ b/src/webhooks/2016-03-07/invoice.payment_succeeded.json @@ -0,0 +1,83 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoice.payment_succeeded", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "in_00000000000000", + "object": "invoice", + "amount_due": 0, + "application_fee": null, + "attempt_count": 0, + "attempted": true, + "charge": "_00000000000000", + "closed": true, + "currency": "usd", + "customer": "cus_00000000000000", + "date": 1457644236, + "description": null, + "discount": null, + "ending_balance": null, + "forgiven": false, + "lines": { + "data": [ + { + "id": "sub_83iUN9cjwpp6rv", + "object": "line_item", + "amount": 2000, + "currency": "usd", + "description": null, + "discountable": true, + "livemode": true, + "metadata": {}, + "period": { + "start": 1460322637, + "end": 1462914637 + }, + "plan": { + "id": "gold", + "object": "plan", + "amount": 2000, + "created": 1457644237, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold Special", + "statement_descriptor": null, + "trial_period_days": null + }, + "proration": false, + "quantity": 1, + "subscription": null, + "type": "subscription" + } + ], + "total_count": 1, + "object": "list", + "url": "/v1/invoices/in_17nb3IIRVxWaBTbMEaNbTwYD/lines" + }, + "livemode": false, + "metadata": {}, + "next_payment_attempt": 1457647836, + "paid": true, + "period_end": 1457644236, + "period_start": 1457644236, + "receipt_number": null, + "starting_balance": 0, + "statement_descriptor": null, + "subscription": null, + "subtotal": 0, + "tax": null, + "tax_percent": null, + "total": 0, + "webhooks_delivered_at": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/invoice.updated.json b/src/webhooks/2016-03-07/invoice.updated.json new file mode 100644 index 0000000..f4e0e85 --- /dev/null +++ b/src/webhooks/2016-03-07/invoice.updated.json @@ -0,0 +1,86 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoice.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "in_00000000000000", + "object": "invoice", + "amount_due": 0, + "application_fee": null, + "attempt_count": 0, + "attempted": false, + "charge": null, + "closed": false, + "currency": "usd", + "customer": "cus_00000000000000", + "date": 1457644276, + "description": null, + "discount": null, + "ending_balance": null, + "forgiven": false, + "lines": { + "data": [ + { + "id": "sub_83iU44OTsgdUjr", + "object": "line_item", + "amount": 2000, + "currency": "usd", + "description": null, + "discountable": true, + "livemode": true, + "metadata": {}, + "period": { + "start": 1460322676, + "end": 1462914676 + }, + "plan": { + "id": "gold", + "object": "plan", + "amount": 2000, + "created": 1457644276, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold Special", + "statement_descriptor": null, + "trial_period_days": null + }, + "proration": false, + "quantity": 1, + "subscription": null, + "type": "subscription" + } + ], + "total_count": 1, + "object": "list", + "url": "/v1/invoices/in_17nb3wIRVxWaBTbMmjNlpPjN/lines" + }, + "livemode": false, + "metadata": {}, + "next_payment_attempt": 1457647876, + "paid": false, + "period_end": 1457644276, + "period_start": 1457644276, + "receipt_number": null, + "starting_balance": 0, + "statement_descriptor": null, + "subscription": null, + "subtotal": 0, + "tax": null, + "tax_percent": null, + "total": 0, + "webhooks_delivered_at": null + }, + "previous_attributes": { + "lines": [] + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/invoiceitem.created.json b/src/webhooks/2016-03-07/invoiceitem.created.json new file mode 100644 index 0000000..9ac7d78 --- /dev/null +++ b/src/webhooks/2016-03-07/invoiceitem.created.json @@ -0,0 +1,33 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoiceitem.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ii_00000000000000", + "object": "invoiceitem", + "amount": 1000, + "currency": "usd", + "customer": "cus_00000000000000", + "date": 1457644308, + "description": "My First Invoice Item (created for API docs)", + "discountable": true, + "invoice": null, + "livemode": false, + "metadata": {}, + "period": { + "start": 1457644308, + "end": 1457644308 + }, + "plan": null, + "proration": false, + "quantity": null, + "subscription": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/invoiceitem.deleted.json b/src/webhooks/2016-03-07/invoiceitem.deleted.json new file mode 100644 index 0000000..4392db7 --- /dev/null +++ b/src/webhooks/2016-03-07/invoiceitem.deleted.json @@ -0,0 +1,33 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoiceitem.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ii_00000000000000", + "object": "invoiceitem", + "amount": 1000, + "currency": "usd", + "customer": "cus_00000000000000", + "date": 1457644346, + "description": "My First Invoice Item (created for API docs)", + "discountable": true, + "invoice": null, + "livemode": false, + "metadata": {}, + "period": { + "start": 1457644346, + "end": 1457644346 + }, + "plan": null, + "proration": false, + "quantity": null, + "subscription": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/invoiceitem.updated.json b/src/webhooks/2016-03-07/invoiceitem.updated.json new file mode 100644 index 0000000..495ff08 --- /dev/null +++ b/src/webhooks/2016-03-07/invoiceitem.updated.json @@ -0,0 +1,38 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoiceitem.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "ii_00000000000000", + "object": "invoiceitem", + "amount": 1000, + "currency": "usd", + "customer": "cus_00000000000000", + "date": 1457644368, + "description": "My First Invoice Item (created for API docs)", + "discountable": true, + "invoice": null, + "livemode": false, + "metadata": {}, + "period": { + "start": 1457644368, + "end": 1457644368 + }, + "plan": null, + "proration": false, + "quantity": null, + "subscription": null + }, + "previous_attributes": { + "amount": 2121 + } + } +} +Response +ok diff --git a/src/webhooks/2016-03-07/order.created.json b/src/webhooks/2016-03-07/order.created.json new file mode 100644 index 0000000..0f347c6 --- /dev/null +++ b/src/webhooks/2016-03-07/order.created.json @@ -0,0 +1,54 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "order.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "or_00000000000000", + "object": "order", + "amount": 1500, + "application": null, + "application_fee": null, + "charge": null, + "created": 1457644387, + "currency": "usd", + "customer": null, + "email": null, + "items": [ + { + "object": "order_item", + "amount": 1500, + "currency": "usd", + "description": "T-shirt", + "parent": "sk_17naXwIRVxWaBTbMRrhbKum6", + "quantity": null, + "type": "sku" + } + ], + "livemode": false, + "metadata": {}, + "selected_shipping_method": null, + "shipping": { + "address": { + "city": "Anytown", + "country": "US", + "line1": "1234 Main street", + "line2": null, + "postal_code": "123456", + "state": null + }, + "name": "Jenny Rosen", + "phone": null + }, + "shipping_methods": null, + "status": "created", + "status_transitions": null, + "updated": 1457644387 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/order.payment_failed.json b/src/webhooks/2016-03-07/order.payment_failed.json new file mode 100644 index 0000000..65f7f08 --- /dev/null +++ b/src/webhooks/2016-03-07/order.payment_failed.json @@ -0,0 +1,54 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "order.payment_failed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "or_00000000000000", + "object": "order", + "amount": 1500, + "application": null, + "application_fee": null, + "charge": null, + "created": 1457644409, + "currency": "usd", + "customer": null, + "email": null, + "items": [ + { + "object": "order_item", + "amount": 1500, + "currency": "usd", + "description": "T-shirt", + "parent": "sk_17naXwIRVxWaBTbMRrhbKum6", + "quantity": null, + "type": "sku" + } + ], + "livemode": false, + "metadata": {}, + "selected_shipping_method": null, + "shipping": { + "address": { + "city": "Anytown", + "country": "US", + "line1": "1234 Main street", + "line2": null, + "postal_code": "123456", + "state": null + }, + "name": "Jenny Rosen", + "phone": null + }, + "shipping_methods": null, + "status": "created", + "status_transitions": null, + "updated": 1457644409 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/order.payment_succeeded.json b/src/webhooks/2016-03-07/order.payment_succeeded.json new file mode 100644 index 0000000..47f2155 --- /dev/null +++ b/src/webhooks/2016-03-07/order.payment_succeeded.json @@ -0,0 +1,54 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "order.payment_succeeded", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "or_00000000000000", + "object": "order", + "amount": 1500, + "application": null, + "application_fee": null, + "charge": null, + "created": 1457644433, + "currency": "usd", + "customer": null, + "email": null, + "items": [ + { + "object": "order_item", + "amount": 1500, + "currency": "usd", + "description": "T-shirt", + "parent": "sk_17naXwIRVxWaBTbMRrhbKum6", + "quantity": null, + "type": "sku" + } + ], + "livemode": false, + "metadata": {}, + "selected_shipping_method": null, + "shipping": { + "address": { + "city": "Anytown", + "country": "US", + "line1": "1234 Main street", + "line2": null, + "postal_code": "123456", + "state": null + }, + "name": "Jenny Rosen", + "phone": null + }, + "shipping_methods": null, + "status": "created", + "status_transitions": null, + "updated": 1457644433 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/order.updated.json b/src/webhooks/2016-03-07/order.updated.json new file mode 100644 index 0000000..07023c8 --- /dev/null +++ b/src/webhooks/2016-03-07/order.updated.json @@ -0,0 +1,55 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "order.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "or_00000000000000", + "object": "order", + "amount": 1500, + "application": null, + "application_fee": null, + "charge": null, + "created": 1457644459, + "currency": "usd", + "customer": null, + "email": null, + "items": [ + { + "object": "order_item", + "amount": 1500, + "currency": "usd", + "description": "T-shirt", + "parent": "sk_17naXwIRVxWaBTbMRrhbKum6", + "quantity": null, + "type": "sku" + } + ], + "livemode": false, + "metadata": {}, + "selected_shipping_method": null, + "shipping": { + "address": { + "city": "Anytown", + "country": "US", + "line1": "1234 Main street", + "line2": null, + "postal_code": "123456", + "state": null + }, + "name": "Jenny Rosen", + "phone": null + }, + "shipping_methods": null, + "status": "created", + "status_transitions": null, + "updated": 1457644459 + }, + "previous_attributes": null + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/plan.created.json b/src/webhooks/2016-03-07/plan.created.json new file mode 100644 index 0000000..d683f3a --- /dev/null +++ b/src/webhooks/2016-03-07/plan.created.json @@ -0,0 +1,26 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "plan.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "gold_00000000000000", + "object": "plan", + "amount": 2000, + "created": 1457644477, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold Special", + "statement_descriptor": null, + "trial_period_days": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/plan.deleted.json b/src/webhooks/2016-03-07/plan.deleted.json new file mode 100644 index 0000000..b03509d --- /dev/null +++ b/src/webhooks/2016-03-07/plan.deleted.json @@ -0,0 +1,26 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "plan.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "gold_00000000000000", + "object": "plan", + "amount": 2000, + "created": 1457644489, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold Special", + "statement_descriptor": null, + "trial_period_days": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/plan.updated.json b/src/webhooks/2016-03-07/plan.updated.json new file mode 100644 index 0000000..7c3bb41 --- /dev/null +++ b/src/webhooks/2016-03-07/plan.updated.json @@ -0,0 +1,29 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "plan.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "gold_00000000000000", + "object": "plan", + "amount": 2000, + "created": 1457644504, + "currency": "usd", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": {}, + "name": "Gold Special", + "statement_descriptor": null, + "trial_period_days": null + }, + "previous_attributes": { + "name": "Old name" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/product.created.json b/src/webhooks/2016-03-07/product.created.json new file mode 100644 index 0000000..29c30dd --- /dev/null +++ b/src/webhooks/2016-03-07/product.created.json @@ -0,0 +1,39 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "product.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "prod_00000000000000", + "object": "product", + "active": true, + "attributes": [ + "size", + "gender" + ], + "caption": null, + "created": 1457644523, + "description": "Comfortable gray cotton t-shirts", + "images": [], + "livemode": false, + "metadata": {}, + "name": "T-shirt", + "package_dimensions": null, + "shippable": true, + "skus": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/skus?product=prod_83iZwIzUQCvIB5&active=true" + }, + "updated": 1457644523, + "url": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/product.deleted.json b/src/webhooks/2016-03-07/product.deleted.json new file mode 100644 index 0000000..eebd59f --- /dev/null +++ b/src/webhooks/2016-03-07/product.deleted.json @@ -0,0 +1,39 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "product.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "prod_00000000000000", + "object": "product", + "active": true, + "attributes": [ + "size", + "gender" + ], + "caption": null, + "created": 1457644543, + "description": "Comfortable gray cotton t-shirts", + "images": [], + "livemode": false, + "metadata": {}, + "name": "T-shirt", + "package_dimensions": null, + "shippable": true, + "skus": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/skus?product=prod_83iZUCc6rgLsAB&active=true" + }, + "updated": 1457644543, + "url": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/product.updated.json b/src/webhooks/2016-03-07/product.updated.json new file mode 100644 index 0000000..462bbca --- /dev/null +++ b/src/webhooks/2016-03-07/product.updated.json @@ -0,0 +1,40 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "product.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "prod_00000000000000", + "object": "product", + "active": true, + "attributes": [ + "size", + "gender" + ], + "caption": null, + "created": 1457644563, + "description": "Comfortable gray cotton t-shirts", + "images": [], + "livemode": false, + "metadata": {}, + "name": "T-shirt", + "package_dimensions": null, + "shippable": true, + "skus": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/skus?product=prod_83iZoWPpT4tucy&active=true" + }, + "updated": 1457644563, + "url": null + }, + "previous_attributes": null + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/recipient.created.json b/src/webhooks/2016-03-07/recipient.created.json new file mode 100644 index 0000000..58e6fe1 --- /dev/null +++ b/src/webhooks/2016-03-07/recipient.created.json @@ -0,0 +1,34 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "recipient.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "rp_00000000000000", + "object": "recipient", + "active_account": null, + "cards": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/recipients/rp_17nb8sIRVxWaBTbMGzCeCybj/cards" + }, + "created": 1457644582, + "default_card": null, + "description": "Recipient for John Doe", + "email": "test@example.com", + "livemode": false, + "metadata": {}, + "migrated_to": null, + "name": "John Doe", + "type": "individual", + "verified": false + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/recipient.deleted.json b/src/webhooks/2016-03-07/recipient.deleted.json new file mode 100644 index 0000000..85cbf36 --- /dev/null +++ b/src/webhooks/2016-03-07/recipient.deleted.json @@ -0,0 +1,34 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "recipient.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "rp_00000000000000", + "object": "recipient", + "active_account": null, + "cards": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/recipients/rp_17nb9BIRVxWaBTbM3quZbUis/cards" + }, + "created": 1457644601, + "default_card": null, + "description": "Recipient for John Doe", + "email": "test@example.com", + "livemode": false, + "metadata": {}, + "migrated_to": null, + "name": "John Doe", + "type": "individual", + "verified": false + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/recipient.updated.json b/src/webhooks/2016-03-07/recipient.updated.json new file mode 100644 index 0000000..e5ea2ec --- /dev/null +++ b/src/webhooks/2016-03-07/recipient.updated.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "recipient.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "rp_00000000000000", + "object": "recipient", + "active_account": null, + "cards": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/recipients/rp_17nb9VIRVxWaBTbMO6aBgUYy/cards" + }, + "created": 1457644621, + "default_card": null, + "description": "Recipient for John Doe", + "email": "test@example.com", + "livemode": false, + "metadata": {}, + "migrated_to": null, + "name": "John Doe", + "type": "individual", + "verified": false + }, + "previous_attributes": null + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/sku.created.json b/src/webhooks/2016-03-07/sku.created.json new file mode 100644 index 0000000..51e1e0d --- /dev/null +++ b/src/webhooks/2016-03-07/sku.created.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "sku.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "sku_00000000000000", + "object": "sku", + "active": true, + "attributes": { + "size": "Medium", + "gender": "Unisex" + }, + "created": 1457644637, + "currency": "usd", + "image": null, + "inventory": { + "quantity": 50, + "type": "finite", + "value": null + }, + "livemode": false, + "metadata": {}, + "package_dimensions": null, + "price": 1500, + "product": "prod_00000000000000", + "updated": 1457644637 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/sku.deleted.json b/src/webhooks/2016-03-07/sku.deleted.json new file mode 100644 index 0000000..79b275e --- /dev/null +++ b/src/webhooks/2016-03-07/sku.deleted.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "sku.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "sku_00000000000000", + "object": "sku", + "active": true, + "attributes": { + "size": "Medium", + "gender": "Unisex" + }, + "created": 1457644654, + "currency": "usd", + "image": null, + "inventory": { + "quantity": 50, + "type": "finite", + "value": null + }, + "livemode": false, + "metadata": {}, + "package_dimensions": null, + "price": 1500, + "product": "prod_00000000000000", + "updated": 1457644654 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/sku.updated.json b/src/webhooks/2016-03-07/sku.updated.json new file mode 100644 index 0000000..7d94e5e --- /dev/null +++ b/src/webhooks/2016-03-07/sku.updated.json @@ -0,0 +1,36 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "sku.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "sku_00000000000000", + "object": "sku", + "active": true, + "attributes": { + "size": "Medium", + "gender": "Unisex" + }, + "created": 1457644675, + "currency": "usd", + "image": null, + "inventory": { + "quantity": 50, + "type": "finite", + "value": null + }, + "livemode": false, + "metadata": {}, + "package_dimensions": null, + "price": 1500, + "product": "prod_00000000000000", + "updated": 1457644675 + }, + "previous_attributes": null + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/transfer.created.json b/src/webhooks/2016-03-07/transfer.created.json new file mode 100644 index 0000000..eb9b45a --- /dev/null +++ b/src/webhooks/2016-03-07/transfer.created.json @@ -0,0 +1,43 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "transfer.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "tr_00000000000000", + "object": "transfer", + "amount": 1100, + "amount_reversed": 0, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "created": 1457644694, + "currency": "usd", + "date": 1457644694, + "description": "Transfer to test@example.com", + "destination": "ba_17nbAgIRVxWaBTbMLbozf92T", + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": {}, + "recipient": "rp_00000000000000", + "reversals": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/transfers/tr_17nbAgIRVxWaBTbMh9K0Dxx6/reversals" + }, + "reversed": false, + "source_transaction": null, + "source_type": "card", + "statement_descriptor": null, + "status": "pending", + "type": "bank_account" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/transfer.failed.json b/src/webhooks/2016-03-07/transfer.failed.json new file mode 100644 index 0000000..2526c73 --- /dev/null +++ b/src/webhooks/2016-03-07/transfer.failed.json @@ -0,0 +1,43 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "transfer.failed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "tr_00000000000000", + "object": "transfer", + "amount": 1100, + "amount_reversed": 0, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "created": 1457644709, + "currency": "usd", + "date": 1457644709, + "description": "Transfer to test@example.com", + "destination": "ba_17nbAvIRVxWaBTbMrQlanRnL", + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": {}, + "recipient": "rp_00000000000000", + "reversals": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/transfers/tr_17nbAvIRVxWaBTbMcUTyUyot/reversals" + }, + "reversed": false, + "source_transaction": null, + "source_type": "card", + "statement_descriptor": null, + "status": "failed", + "type": "bank_account" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/transfer.paid.json b/src/webhooks/2016-03-07/transfer.paid.json new file mode 100644 index 0000000..7c743de --- /dev/null +++ b/src/webhooks/2016-03-07/transfer.paid.json @@ -0,0 +1,43 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "transfer.paid", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "tr_00000000000000", + "object": "transfer", + "amount": 1100, + "amount_reversed": 0, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "created": 1457644732, + "currency": "usd", + "date": 1457644732, + "description": "Transfer to test@example.com", + "destination": "ba_17nbBIIRVxWaBTbMYIF2goXP", + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": {}, + "recipient": "rp_00000000000000", + "reversals": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/transfers/tr_17nbBIIRVxWaBTbMfM2lri4p/reversals" + }, + "reversed": false, + "source_transaction": null, + "source_type": "card", + "statement_descriptor": null, + "status": "paid", + "type": "bank_account" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/transfer.reversed.json b/src/webhooks/2016-03-07/transfer.reversed.json new file mode 100644 index 0000000..df5fd68 --- /dev/null +++ b/src/webhooks/2016-03-07/transfer.reversed.json @@ -0,0 +1,43 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "transfer.reversed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "tr_00000000000000", + "object": "transfer", + "amount": 1100, + "amount_reversed": 0, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "created": 1457644745, + "currency": "usd", + "date": 1457644745, + "description": "Transfer to test@example.com", + "destination": "ba_17nbBVIRVxWaBTbM5mnUfySM", + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": {}, + "recipient": "rp_00000000000000", + "reversals": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/transfers/tr_17nbBVIRVxWaBTbMzGZnXUMY/reversals" + }, + "reversed": false, + "source_transaction": null, + "source_type": "card", + "statement_descriptor": null, + "status": "in_transit", + "type": "bank_account" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2016-03-07/transfer.updated.json b/src/webhooks/2016-03-07/transfer.updated.json new file mode 100644 index 0000000..c0d2562 --- /dev/null +++ b/src/webhooks/2016-03-07/transfer.updated.json @@ -0,0 +1,46 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "transfer.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2016-03-07", + "data": { + "object": { + "id": "tr_00000000000000", + "object": "transfer", + "amount": 1100, + "amount_reversed": 0, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "created": 1457644764, + "currency": "usd", + "date": 1457644764, + "description": "Transfer to test@example.com", + "destination": "ba_17nbBnIRVxWaBTbMxmT8GsSS", + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": {}, + "recipient": "rp_00000000000000", + "reversals": { + "object": "list", + "data": [], + "has_more": false, + "total_count": 0, + "url": "/v1/transfers/tr_17nbBoIRVxWaBTbMJ81kpW8R/reversals" + }, + "reversed": false, + "source_transaction": null, + "source_type": "card", + "statement_descriptor": null, + "status": "pending", + "type": "bank_account" + }, + "previous_attributes": { + "description": "Old description" + } + } +} \ No newline at end of file