diff --git a/src/webhooks/2018-05-21/account.external_account.created.json b/src/webhooks/2018-05-21/account.external_account.created.json new file mode 100644 index 0000000..c52369a --- /dev/null +++ b/src/webhooks/2018-05-21/account.external_account.created.json @@ -0,0 +1,29 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "account.external_account.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "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": "cad", + "default_for_currency": false, + "fingerprint": "ndtaInq1OCmTFQgY", + "last4": "6789", + "metadata": { + }, + "routing_number": "110000000", + "status": "new" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/account.external_account.deleted.json b/src/webhooks/2018-05-21/account.external_account.deleted.json new file mode 100644 index 0000000..2f2f142 --- /dev/null +++ b/src/webhooks/2018-05-21/account.external_account.deleted.json @@ -0,0 +1,29 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "account.external_account.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "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": "cad", + "default_for_currency": false, + "fingerprint": "ndtaInq1OCmTFQgY", + "last4": "6789", + "metadata": { + }, + "routing_number": "110000000", + "status": "new" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/account.external_account.updated.json b/src/webhooks/2018-05-21/account.external_account.updated.json new file mode 100644 index 0000000..5c15630 --- /dev/null +++ b/src/webhooks/2018-05-21/account.external_account.updated.json @@ -0,0 +1,31 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "account.external_account.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "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": "cad", + "default_for_currency": false, + "fingerprint": "ndtaInq1OCmTFQgY", + "last4": "6789", + "metadata": { + }, + "routing_number": "110000000", + "status": "new" + }, + "previous_attributes": { + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/account.updated.json b/src/webhooks/2018-05-21/account.updated.json new file mode 100644 index 0000000..e31cee2 --- /dev/null +++ b/src/webhooks/2018-05-21/account.updated.json @@ -0,0 +1,112 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "account.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "acct_00000000000000", + "object": "account", + "business_name": null, + "business_url": null, + "charges_enabled": false, + "country": "CA", + "created": 1523046273, + "debit_negative_balances": true, + "decline_charge_on": { + "avs_failure": false, + "cvc_failure": true + }, + "default_currency": "cad", + "details_submitted": true, + "display_name": "Device Pixel", + "email": "test@stripe.com", + "external_accounts": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/accounts/acct_1CE16rLOXa6akpHR/external_accounts" + }, + "legal_entity": { + "additional_owners": [ + + ], + "address": { + "city": null, + "country": "CA", + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "business_name": null, + "business_tax_id_provided": false, + "dob": { + "day": null, + "month": null, + "year": null + }, + "first_name": null, + "last_name": null, + "personal_address": { + "city": null, + "country": "CA", + "line1": null, + "line2": null, + "postal_code": null, + "state": null + }, + "personal_id_number_provided": false, + "type": null, + "verification": { + "details": null, + "details_code": null, + "document": null, + "document_back": null, + "status": "unverified" + } + }, + "metadata": { + }, + "payout_schedule": { + "delay_days": 7, + "interval": "daily" + }, + "payout_statement_descriptor": null, + "payouts_enabled": false, + "product_description": null, + "statement_descriptor": "TEST", + "support_email": null, + "support_phone": null, + "timezone": "America/Toronto", + "tos_acceptance": { + "date": null, + "ip": null, + "user_agent": null + }, + "type": "standard", + "verification": { + "disabled_reason": "fields_needed", + "due_by": 1531782129, + "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/2018-05-21/balance.available.json b/src/webhooks/2018-05-21/balance.available.json new file mode 100644 index 0000000..7bffb33 --- /dev/null +++ b/src/webhooks/2018-05-21/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": "2018-05-21", + "data": { + "object": { + "object": "balance", + "available": [ + { + "currency": "cad", + "amount": 10133, + "source_types": { + "card": 10133 + } + } + ], + "livemode": false, + "pending": [ + { + "currency": "cad", + "amount": 33937, + "source_types": { + "card": 33937 + } + } + ] + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/batch.request.json b/src/webhooks/2018-05-21/batch.request.json new file mode 100644 index 0000000..198a5ea --- /dev/null +++ b/src/webhooks/2018-05-21/batch.request.json @@ -0,0 +1,27 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "batch.request", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "batch_00000000000000", + "object": "batch", + "completed": null, + "content_sha256": "cbe0622601f94e9d84f5335c6273a3e15245db9a3db7791dada8edd3e96bbf12", + "created": 1531522937, + "error": null, + "livemode": false, + "metadata": { + }, + "results": null, + "started": null, + "status": "new", + "upload_url": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/charge.captured.json b/src/webhooks/2018-05-21/charge.captured.json new file mode 100644 index 0000000..b8224af --- /dev/null +++ b/src/webhooks/2018-05-21/charge.captured.json @@ -0,0 +1,84 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.captured", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 0, + "application": null, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": true, + "created": 1531522942, + "currency": "cad", + "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": { + }, + "on_behalf_of": null, + "order": null, + "outcome": 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_1CnaHKLOXa6akpHRTcfmCykr/refunds" + }, + "review": null, + "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": "cus_00000000000000", + "cvc_check": "pass", + "dynamic_last4": null, + "exp_month": 7, + "exp_year": 2019, + "fingerprint": "EB8zTN6S64nsJn2C", + "funding": "credit", + "last4": "4242", + "metadata": { + }, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "succeeded", + "transfer_group": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/charge.dispute.closed.json b/src/webhooks/2018-05-21/charge.dispute.closed.json new file mode 100644 index 0000000..1ccd783 --- /dev/null +++ b/src/webhooks/2018-05-21/charge.dispute.closed.json @@ -0,0 +1,65 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.dispute.closed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "dp_00000000000000", + "object": "dispute", + "amount": 1000, + "balance_transaction": "txn_00000000000000", + "balance_transactions": [ + + ], + "charge": "ch_00000000000000", + "created": 1531522946, + "currency": "cad", + "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": 1533167999, + "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/2018-05-21/charge.dispute.created.json b/src/webhooks/2018-05-21/charge.dispute.created.json new file mode 100644 index 0000000..76985a5 --- /dev/null +++ b/src/webhooks/2018-05-21/charge.dispute.created.json @@ -0,0 +1,65 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.dispute.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "dp_00000000000000", + "object": "dispute", + "amount": 1000, + "balance_transaction": "txn_00000000000000", + "balance_transactions": [ + + ], + "charge": "ch_00000000000000", + "created": 1531522951, + "currency": "cad", + "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": 1533167999, + "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/2018-05-21/charge.dispute.funds_reinstated.json b/src/webhooks/2018-05-21/charge.dispute.funds_reinstated.json new file mode 100644 index 0000000..ab6677c --- /dev/null +++ b/src/webhooks/2018-05-21/charge.dispute.funds_reinstated.json @@ -0,0 +1,65 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.dispute.funds_reinstated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "dp_00000000000000", + "object": "dispute", + "amount": 1000, + "balance_transaction": "txn_00000000000000", + "balance_transactions": [ + + ], + "charge": "ch_00000000000000", + "created": 1531522958, + "currency": "cad", + "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": 1533167999, + "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/2018-05-21/charge.dispute.funds_withdrawn.json b/src/webhooks/2018-05-21/charge.dispute.funds_withdrawn.json new file mode 100644 index 0000000..b698042 --- /dev/null +++ b/src/webhooks/2018-05-21/charge.dispute.funds_withdrawn.json @@ -0,0 +1,65 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.dispute.funds_withdrawn", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "dp_00000000000000", + "object": "dispute", + "amount": 1000, + "balance_transaction": "txn_00000000000000", + "balance_transactions": [ + + ], + "charge": "ch_00000000000000", + "created": 1531522964, + "currency": "cad", + "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": 1533167999, + "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/2018-05-21/charge.dispute.updated.json b/src/webhooks/2018-05-21/charge.dispute.updated.json new file mode 100644 index 0000000..b1dda36 --- /dev/null +++ b/src/webhooks/2018-05-21/charge.dispute.updated.json @@ -0,0 +1,96 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.dispute.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "dp_00000000000000", + "object": "dispute", + "amount": 1000, + "balance_transaction": "txn_00000000000000", + "balance_transactions": [ + + ], + "charge": "ch_00000000000000", + "created": 1531522968, + "currency": "cad", + "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": 1533167999, + "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/2018-05-21/charge.expired.json b/src/webhooks/2018-05-21/charge.expired.json new file mode 100644 index 0000000..6297d0c --- /dev/null +++ b/src/webhooks/2018-05-21/charge.expired.json @@ -0,0 +1,84 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.expired", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 0, + "application": null, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": false, + "created": 1531522973, + "currency": "cad", + "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": { + }, + "on_behalf_of": null, + "order": null, + "outcome": 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_1CnaHpLOXa6akpHRKg60rZ7F/refunds" + }, + "review": null, + "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": "cus_00000000000000", + "cvc_check": "pass", + "dynamic_last4": null, + "exp_month": 7, + "exp_year": 2019, + "fingerprint": "EB8zTN6S64nsJn2C", + "funding": "credit", + "last4": "4242", + "metadata": { + }, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "succeeded", + "transfer_group": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/charge.failed.json b/src/webhooks/2018-05-21/charge.failed.json new file mode 100644 index 0000000..2f5e5be --- /dev/null +++ b/src/webhooks/2018-05-21/charge.failed.json @@ -0,0 +1,84 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.failed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 0, + "application": null, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": false, + "created": 1531522977, + "currency": "cad", + "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": { + }, + "on_behalf_of": null, + "order": null, + "outcome": 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_1CnaHtLOXa6akpHR3TUxvURt/refunds" + }, + "review": null, + "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": "cus_00000000000000", + "cvc_check": "pass", + "dynamic_last4": null, + "exp_month": 7, + "exp_year": 2019, + "fingerprint": "EB8zTN6S64nsJn2C", + "funding": "credit", + "last4": "4242", + "metadata": { + }, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "failed", + "transfer_group": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/charge.pending.json b/src/webhooks/2018-05-21/charge.pending.json new file mode 100644 index 0000000..030f18e --- /dev/null +++ b/src/webhooks/2018-05-21/charge.pending.json @@ -0,0 +1,84 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.pending", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 0, + "application": null, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": false, + "created": 1531522985, + "currency": "cad", + "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": { + }, + "on_behalf_of": null, + "order": null, + "outcome": 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_1CnaI1LOXa6akpHRFoLCm18s/refunds" + }, + "review": null, + "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": "cus_00000000000000", + "cvc_check": "pass", + "dynamic_last4": null, + "exp_month": 7, + "exp_year": 2019, + "fingerprint": "EB8zTN6S64nsJn2C", + "funding": "credit", + "last4": "4242", + "metadata": { + }, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "pending", + "transfer_group": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/charge.refund.updated.json b/src/webhooks/2018-05-21/charge.refund.updated.json new file mode 100644 index 0000000..4c29489 --- /dev/null +++ b/src/webhooks/2018-05-21/charge.refund.updated.json @@ -0,0 +1,28 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.refund.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "re_00000000000000", + "object": "refund", + "amount": 100, + "balance_transaction": null, + "charge": "ch_00000000000000", + "created": 1531522989, + "currency": "cad", + "metadata": { + }, + "reason": null, + "receipt_number": null, + "status": "succeeded" + }, + "previous_attributes": { + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/charge.refunded.json b/src/webhooks/2018-05-21/charge.refunded.json new file mode 100644 index 0000000..cb2ca8c --- /dev/null +++ b/src/webhooks/2018-05-21/charge.refunded.json @@ -0,0 +1,98 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.refunded", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 100, + "application": null, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": false, + "created": 1531523000, + "currency": "cad", + "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": { + }, + "on_behalf_of": null, + "order": null, + "outcome": null, + "paid": true, + "receipt_email": null, + "receipt_number": null, + "refunded": true, + "refunds": { + "object": "list", + "data": [ + { + "id": "re_DE2Nb7jEMsjZsi", + "object": "refund", + "amount": 100, + "balance_transaction": "txn_DE2Nmm8074zvGI", + "charge": "ch_1CnaIGLOXa6akpHR5AWiUhfo", + "created": 1531523000, + "currency": "cad", + "metadata": { + }, + "reason": null, + "receipt_number": "1885-8495", + "status": "succeeded" + } + ], + "has_more": false, + "total_count": 0, + "url": "/v1/charges/ch_1CnaIGLOXa6akpHR5AWiUhfo/refunds" + }, + "review": null, + "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": "cus_00000000000000", + "cvc_check": "pass", + "dynamic_last4": null, + "exp_month": 7, + "exp_year": 2019, + "fingerprint": "EB8zTN6S64nsJn2C", + "funding": "credit", + "last4": "4242", + "metadata": { + }, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "succeeded", + "transfer_group": null, + "fee": 0 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/charge.succeeded.json b/src/webhooks/2018-05-21/charge.succeeded.json new file mode 100644 index 0000000..eee845f --- /dev/null +++ b/src/webhooks/2018-05-21/charge.succeeded.json @@ -0,0 +1,84 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.succeeded", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 0, + "application": null, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": false, + "created": 1531523025, + "currency": "cad", + "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": { + }, + "on_behalf_of": null, + "order": null, + "outcome": 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_1CnaIfLOXa6akpHRr2y632GC/refunds" + }, + "review": null, + "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": "cus_00000000000000", + "cvc_check": "pass", + "dynamic_last4": null, + "exp_month": 7, + "exp_year": 2019, + "fingerprint": "EB8zTN6S64nsJn2C", + "funding": "credit", + "last4": "4242", + "metadata": { + }, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "succeeded", + "transfer_group": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/charge.updated.json b/src/webhooks/2018-05-21/charge.updated.json new file mode 100644 index 0000000..ade8af8 --- /dev/null +++ b/src/webhooks/2018-05-21/charge.updated.json @@ -0,0 +1,87 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "charge.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "ch_00000000000000", + "object": "charge", + "amount": 100, + "amount_refunded": 0, + "application": null, + "application_fee": null, + "balance_transaction": "txn_00000000000000", + "captured": false, + "created": 1531523031, + "currency": "cad", + "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": { + }, + "on_behalf_of": null, + "order": null, + "outcome": 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_1CnaIlLOXa6akpHRryAf4jJy/refunds" + }, + "review": null, + "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": "cus_00000000000000", + "cvc_check": "pass", + "dynamic_last4": null, + "exp_month": 7, + "exp_year": 2019, + "fingerprint": "EB8zTN6S64nsJn2C", + "funding": "credit", + "last4": "4242", + "metadata": { + }, + "name": null, + "tokenization_method": null + }, + "source_transfer": null, + "statement_descriptor": null, + "status": "succeeded", + "transfer_group": null + }, + "previous_attributes": { + "description": "Old description" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/coupon.created.json b/src/webhooks/2018-05-21/coupon.created.json new file mode 100644 index 0000000..158ec1a --- /dev/null +++ b/src/webhooks/2018-05-21/coupon.created.json @@ -0,0 +1,30 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "coupon.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1531523035, + "currency": null, + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": { + }, + "name": "25% off", + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/coupon.deleted.json b/src/webhooks/2018-05-21/coupon.deleted.json new file mode 100644 index 0000000..35482e5 --- /dev/null +++ b/src/webhooks/2018-05-21/coupon.deleted.json @@ -0,0 +1,30 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "coupon.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1531523040, + "currency": null, + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": { + }, + "name": "25% off", + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/coupon.updated.json b/src/webhooks/2018-05-21/coupon.updated.json new file mode 100644 index 0000000..5b0a168 --- /dev/null +++ b/src/webhooks/2018-05-21/coupon.updated.json @@ -0,0 +1,32 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "coupon.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1531523044, + "currency": null, + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": { + }, + "name": "25% off", + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + }, + "previous_attributes": { + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.bank_account.deleted.json b/src/webhooks/2018-05-21/customer.bank_account.deleted.json new file mode 100644 index 0000000..3cbb313 --- /dev/null +++ b/src/webhooks/2018-05-21/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": "2018-05-21", + "data": { + "object": { + "id": "ba_00000000000000", + "object": "bank_account", + "account_holder_name": "Jane Austen", + "account_holder_type": "individual", + "bank_name": "STRIPE TEST BANK", + "country": "US", + "currency": "cad", + "customer": null, + "fingerprint": "ndtaInq1OCmTFQgY", + "last4": "6789", + "metadata": { + }, + "routing_number": "110000000", + "status": "new" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.created.json b/src/webhooks/2018-05-21/customer.created.json new file mode 100644 index 0000000..5dcb5bf --- /dev/null +++ b/src/webhooks/2018-05-21/customer.created.json @@ -0,0 +1,47 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "cus_00000000000000", + "object": "customer", + "account_balance": 0, + "created": 1531523054, + "currency": "cad", + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": null, + "invoice_prefix": "1B81D6E", + "livemode": false, + "metadata": { + }, + "shipping": null, + "sources": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_DE2Nnu5234kFxj/sources" + }, + "subscriptions": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_DE2Nnu5234kFxj/subscriptions" + } + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.deleted.json b/src/webhooks/2018-05-21/customer.deleted.json new file mode 100644 index 0000000..3d160a4 --- /dev/null +++ b/src/webhooks/2018-05-21/customer.deleted.json @@ -0,0 +1,47 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "cus_00000000000000", + "object": "customer", + "account_balance": 0, + "created": 1531523059, + "currency": "cad", + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": null, + "invoice_prefix": "5529DDA", + "livemode": false, + "metadata": { + }, + "shipping": null, + "sources": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_DE2NYQGSuLUZRh/sources" + }, + "subscriptions": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_DE2NYQGSuLUZRh/subscriptions" + } + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.discount.created.json b/src/webhooks/2018-05-21/customer.discount.created.json new file mode 100644 index 0000000..ae08a63 --- /dev/null +++ b/src/webhooks/2018-05-21/customer.discount.created.json @@ -0,0 +1,37 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.discount.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "object": "discount", + "coupon": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1531523064, + "currency": null, + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": { + }, + "name": "25% off", + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + }, + "customer": "cus_00000000000000", + "end": 1539471864, + "start": 1531523064, + "subscription": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.discount.deleted.json b/src/webhooks/2018-05-21/customer.discount.deleted.json new file mode 100644 index 0000000..b1cfbeb --- /dev/null +++ b/src/webhooks/2018-05-21/customer.discount.deleted.json @@ -0,0 +1,37 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.discount.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "object": "discount", + "coupon": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1531523068, + "currency": null, + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": { + }, + "name": "25% off", + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + }, + "customer": "cus_00000000000000", + "end": 1539471868, + "start": 1531523068, + "subscription": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.discount.updated.json b/src/webhooks/2018-05-21/customer.discount.updated.json new file mode 100644 index 0000000..0cd73c3 --- /dev/null +++ b/src/webhooks/2018-05-21/customer.discount.updated.json @@ -0,0 +1,57 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.discount.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "object": "discount", + "coupon": { + "id": "25OFF_00000000000000", + "object": "coupon", + "amount_off": null, + "created": 1531523073, + "currency": null, + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": { + }, + "name": "25% off", + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + }, + "customer": "cus_00000000000000", + "end": 1539471873, + "start": 1531523073, + "subscription": null + }, + "previous_attributes": { + "coupon": { + "id": "OLD_COUPON_ID", + "object": "coupon", + "amount_off": null, + "created": 1531523073, + "currency": null, + "duration": "repeating", + "duration_in_months": 3, + "livemode": false, + "max_redemptions": null, + "metadata": { + }, + "name": "25% off", + "percent_off": 25, + "redeem_by": null, + "times_redeemed": 0, + "valid": true + } + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.source.created.json b/src/webhooks/2018-05-21/customer.source.created.json new file mode 100644 index 0000000..dcad268 --- /dev/null +++ b/src/webhooks/2018-05-21/customer.source.created.json @@ -0,0 +1,53 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.source.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2OQHmus4D3nf2zhTtyEf3e", + "created": 1531523078, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.source.deleted.json b/src/webhooks/2018-05-21/customer.source.deleted.json new file mode 100644 index 0000000..c60fb89 --- /dev/null +++ b/src/webhooks/2018-05-21/customer.source.deleted.json @@ -0,0 +1,53 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.source.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2OCIiq2nH0jWYIB3z1hxn2", + "created": 1531523083, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.source.expiring.json b/src/webhooks/2018-05-21/customer.source.expiring.json new file mode 100644 index 0000000..2d9e35b --- /dev/null +++ b/src/webhooks/2018-05-21/customer.source.expiring.json @@ -0,0 +1,53 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.source.expiring", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2OByGzQKnwM7OXm4HlTzgM", + "created": 1531523087, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.source.updated.json b/src/webhooks/2018-05-21/customer.source.updated.json new file mode 100644 index 0000000..c8bfa10 --- /dev/null +++ b/src/webhooks/2018-05-21/customer.source.updated.json @@ -0,0 +1,56 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.source.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2OWmU7wF06BA4B3SqZ76ac", + "created": 1531523091, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + }, + "previous_attributes": { + "exp_year": "2013" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.subscription.created.json b/src/webhooks/2018-05-21/customer.subscription.created.json new file mode 100644 index 0000000..8bb01a1 --- /dev/null +++ b/src/webhooks/2018-05-21/customer.subscription.created.json @@ -0,0 +1,98 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.subscription.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "sub_00000000000000", + "object": "subscription", + "application_fee_percent": null, + "billing": "charge_automatically", + "billing_cycle_anchor": 1531523096, + "cancel_at_period_end": false, + "canceled_at": null, + "created": 1531523096, + "current_period_end": 1534201496, + "current_period_start": 1531523096, + "customer": "cus_00000000000000", + "days_until_due": null, + "discount": null, + "ended_at": null, + "items": { + "object": "list", + "data": [ + { + "id": "si_DE2OMw3vrYuIOR", + "object": "subscription_item", + "created": 1531523096, + "metadata": { + }, + "plan": { + "id": "gold", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_BTMywD3UV6AkeY", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "quantity": 1, + "subscription": "sub_DE2OR53upD379a" + } + ], + "has_more": false, + "total_count": 1, + "url": "/v1/subscription_items?subscription=sub_DE2OR53upD379a" + }, + "livemode": false, + "metadata": { + }, + "plan": { + "id": "gold_00000000000000", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_00000000000000", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "quantity": 1, + "start": 1531523096, + "status": "active", + "tax_percent": null, + "trial_end": null, + "trial_start": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.subscription.deleted.json b/src/webhooks/2018-05-21/customer.subscription.deleted.json new file mode 100644 index 0000000..68f3e90 --- /dev/null +++ b/src/webhooks/2018-05-21/customer.subscription.deleted.json @@ -0,0 +1,98 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.subscription.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "sub_00000000000000", + "object": "subscription", + "application_fee_percent": null, + "billing": "charge_automatically", + "billing_cycle_anchor": 1531523101, + "cancel_at_period_end": false, + "canceled_at": null, + "created": 1531523101, + "current_period_end": 1534201501, + "current_period_start": 1531523101, + "customer": "cus_00000000000000", + "days_until_due": null, + "discount": null, + "ended_at": 1531522249, + "items": { + "object": "list", + "data": [ + { + "id": "si_DE2OHe906KvQct", + "object": "subscription_item", + "created": 1531523101, + "metadata": { + }, + "plan": { + "id": "gold", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_BTMywD3UV6AkeY", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "quantity": 1, + "subscription": "sub_DE2OkqXiQTDPEs" + } + ], + "has_more": false, + "total_count": 1, + "url": "/v1/subscription_items?subscription=sub_DE2OkqXiQTDPEs" + }, + "livemode": false, + "metadata": { + }, + "plan": { + "id": "gold_00000000000000", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_00000000000000", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "quantity": 1, + "start": 1531523101, + "status": "canceled", + "tax_percent": null, + "trial_end": null, + "trial_start": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.subscription.trial_will_end.json b/src/webhooks/2018-05-21/customer.subscription.trial_will_end.json new file mode 100644 index 0000000..00571b1 --- /dev/null +++ b/src/webhooks/2018-05-21/customer.subscription.trial_will_end.json @@ -0,0 +1,98 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.subscription.trial_will_end", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "sub_00000000000000", + "object": "subscription", + "application_fee_percent": null, + "billing": "charge_automatically", + "billing_cycle_anchor": 1531523105, + "cancel_at_period_end": false, + "canceled_at": null, + "created": 1531523105, + "current_period_end": 1534201505, + "current_period_start": 1531523105, + "customer": "cus_00000000000000", + "days_until_due": null, + "discount": null, + "ended_at": null, + "items": { + "object": "list", + "data": [ + { + "id": "si_DE2Oc4R1iDNOgN", + "object": "subscription_item", + "created": 1531523106, + "metadata": { + }, + "plan": { + "id": "gold", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_BTMywD3UV6AkeY", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "quantity": 1, + "subscription": "sub_DE2OARkydsIBWL" + } + ], + "has_more": false, + "total_count": 1, + "url": "/v1/subscription_items?subscription=sub_DE2OARkydsIBWL" + }, + "livemode": false, + "metadata": { + }, + "plan": { + "id": "gold_00000000000000", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_00000000000000", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "quantity": 1, + "start": 1531523105, + "status": "trialing", + "tax_percent": null, + "trial_end": 1531781451, + "trial_start": 1531522251 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.subscription.updated.json b/src/webhooks/2018-05-21/customer.subscription.updated.json new file mode 100644 index 0000000..2cab996 --- /dev/null +++ b/src/webhooks/2018-05-21/customer.subscription.updated.json @@ -0,0 +1,123 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.subscription.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "sub_00000000000000", + "object": "subscription", + "application_fee_percent": null, + "billing": "charge_automatically", + "billing_cycle_anchor": 1531523109, + "cancel_at_period_end": false, + "canceled_at": null, + "created": 1531523109, + "current_period_end": 1534201509, + "current_period_start": 1531523109, + "customer": "cus_00000000000000", + "days_until_due": null, + "discount": null, + "ended_at": null, + "items": { + "object": "list", + "data": [ + { + "id": "si_DE2OHZNbRkCh2N", + "object": "subscription_item", + "created": 1531523110, + "metadata": { + }, + "plan": { + "id": "gold", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_BTMywD3UV6AkeY", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "quantity": 1, + "subscription": "sub_DE2O5H5h4GqIYR" + } + ], + "has_more": false, + "total_count": 1, + "url": "/v1/subscription_items?subscription=sub_DE2O5H5h4GqIYR" + }, + "livemode": false, + "metadata": { + }, + "plan": { + "id": "gold_00000000000000", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_00000000000000", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "quantity": 1, + "start": 1531523109, + "status": "active", + "tax_percent": null, + "trial_end": null, + "trial_start": null + }, + "previous_attributes": { + "plan": { + "id": "OLD_PLAN_ID", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1531523110, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_DDgwrXKudnbB0d", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed", + "name": "Old plan" + } + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/customer.updated.json b/src/webhooks/2018-05-21/customer.updated.json new file mode 100644 index 0000000..fb0535d --- /dev/null +++ b/src/webhooks/2018-05-21/customer.updated.json @@ -0,0 +1,50 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "customer.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "cus_00000000000000", + "object": "customer", + "account_balance": 0, + "created": 1531523114, + "currency": "cad", + "default_source": null, + "delinquent": false, + "description": null, + "discount": null, + "email": null, + "invoice_prefix": "3283DD7", + "livemode": false, + "metadata": { + }, + "shipping": null, + "sources": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_DE2OakJU7AN6Ro/sources" + }, + "subscriptions": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/customers/cus_DE2OakJU7AN6Ro/subscriptions" + } + }, + "previous_attributes": { + "description": "Old description" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/invoice.created.json b/src/webhooks/2018-05-21/invoice.created.json new file mode 100644 index 0000000..4954b40 --- /dev/null +++ b/src/webhooks/2018-05-21/invoice.created.json @@ -0,0 +1,103 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoice.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "in_00000000000000", + "object": "invoice", + "amount_due": 0, + "amount_paid": 0, + "amount_remaining": 0, + "application_fee": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": true, + "billing": "charge_automatically", + "billing_reason": "manual", + "charge": null, + "closed": false, + "currency": "cad", + "customer": "cus_00000000000000", + "date": 1531523161, + "description": null, + "discount": null, + "due_date": null, + "ending_balance": null, + "forgiven": false, + "hosted_invoice_url": null, + "invoice_pdf": null, + "lines": { + "data": [ + { + "id": "sli_ba3c864ee0398d", + "object": "line_item", + "amount": 2000, + "currency": "cad", + "description": "1 × Gold Special (at $20.00 / month)", + "discountable": true, + "livemode": false, + "metadata": { + }, + "period": { + "end": 1534201561, + "start": 1531523161 + }, + "plan": { + "id": "gold", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_BTMywD3UV6AkeY", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "proration": false, + "quantity": 1, + "subscription": "sub_DE2PMnPFtcwD46", + "subscription_item": "si_DE2PyLETb6jd4L", + "type": "subscription" + } + ], + "has_more": false, + "object": "list", + "url": "/v1/invoices/in_1CnaKrLOXa6akpHR4LwTA0N6/lines" + }, + "livemode": false, + "metadata": { + }, + "next_payment_attempt": 1531526761, + "number": "8EB0141-0001", + "paid": true, + "period_end": 1531523161, + "period_start": 1531523161, + "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/2018-05-21/invoice.payment_failed.json b/src/webhooks/2018-05-21/invoice.payment_failed.json new file mode 100644 index 0000000..4ad07c8 --- /dev/null +++ b/src/webhooks/2018-05-21/invoice.payment_failed.json @@ -0,0 +1,103 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoice.payment_failed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "in_00000000000000", + "object": "invoice", + "amount_due": 0, + "amount_paid": 0, + "amount_remaining": 0, + "application_fee": null, + "attempt_count": 0, + "attempted": true, + "auto_advance": true, + "billing": "charge_automatically", + "billing_reason": "manual", + "charge": null, + "closed": false, + "currency": "cad", + "customer": "cus_00000000000000", + "date": 1531523167, + "description": null, + "discount": null, + "due_date": null, + "ending_balance": null, + "forgiven": false, + "hosted_invoice_url": null, + "invoice_pdf": null, + "lines": { + "data": [ + { + "id": "sli_4bf235fe511c0b", + "object": "line_item", + "amount": 2000, + "currency": "cad", + "description": "1 × Gold Special (at $20.00 / month)", + "discountable": true, + "livemode": false, + "metadata": { + }, + "period": { + "end": 1534201567, + "start": 1531523167 + }, + "plan": { + "id": "gold", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_BTMywD3UV6AkeY", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "proration": false, + "quantity": 1, + "subscription": "sub_DE2PBjk56LoyXF", + "subscription_item": "si_DE2PH0YABEppf5", + "type": "subscription" + } + ], + "has_more": false, + "object": "list", + "url": "/v1/invoices/in_1CnaKxLOXa6akpHRtsOldsbk/lines" + }, + "livemode": false, + "metadata": { + }, + "next_payment_attempt": 1531526767, + "number": "E14B1C4-0001", + "paid": false, + "period_end": 1531523167, + "period_start": 1531523167, + "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/2018-05-21/invoice.payment_succeeded.json b/src/webhooks/2018-05-21/invoice.payment_succeeded.json new file mode 100644 index 0000000..751537c --- /dev/null +++ b/src/webhooks/2018-05-21/invoice.payment_succeeded.json @@ -0,0 +1,103 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoice.payment_succeeded", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "in_00000000000000", + "object": "invoice", + "amount_due": 0, + "amount_paid": 0, + "amount_remaining": 0, + "application_fee": null, + "attempt_count": 0, + "attempted": true, + "auto_advance": true, + "billing": "charge_automatically", + "billing_reason": "manual", + "charge": "_00000000000000", + "closed": true, + "currency": "cad", + "customer": "cus_00000000000000", + "date": 1531523172, + "description": null, + "discount": null, + "due_date": null, + "ending_balance": null, + "forgiven": false, + "hosted_invoice_url": null, + "invoice_pdf": null, + "lines": { + "data": [ + { + "id": "sli_94fc1fc228f372", + "object": "line_item", + "amount": 2000, + "currency": "cad", + "description": "1 × Gold Special (at $20.00 / month)", + "discountable": true, + "livemode": false, + "metadata": { + }, + "period": { + "end": 1534201572, + "start": 1531523172 + }, + "plan": { + "id": "gold", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_BTMywD3UV6AkeY", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "proration": false, + "quantity": 1, + "subscription": "sub_DE2PMNO9Z5fASo", + "subscription_item": "si_DE2P91eRaXatBj", + "type": "subscription" + } + ], + "has_more": false, + "object": "list", + "url": "/v1/invoices/in_1CnaL2LOXa6akpHRoq8lWcLu/lines" + }, + "livemode": false, + "metadata": { + }, + "next_payment_attempt": 1531526772, + "number": "C756AEF-0001", + "paid": true, + "period_end": 1531523172, + "period_start": 1531523172, + "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/2018-05-21/invoice.sent.json b/src/webhooks/2018-05-21/invoice.sent.json new file mode 100644 index 0000000..33c2bb5 --- /dev/null +++ b/src/webhooks/2018-05-21/invoice.sent.json @@ -0,0 +1,103 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoice.sent", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "in_00000000000000", + "object": "invoice", + "amount_due": 0, + "amount_paid": 0, + "amount_remaining": 0, + "application_fee": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": true, + "billing": "charge_automatically", + "billing_reason": "manual", + "charge": null, + "closed": false, + "currency": "cad", + "customer": "cus_00000000000000", + "date": 1531523176, + "description": null, + "discount": null, + "due_date": null, + "ending_balance": null, + "forgiven": false, + "hosted_invoice_url": null, + "invoice_pdf": null, + "lines": { + "data": [ + { + "id": "sli_114c76a3fa5f6a", + "object": "line_item", + "amount": 2000, + "currency": "cad", + "description": "1 × Gold Special (at $20.00 / month)", + "discountable": true, + "livemode": false, + "metadata": { + }, + "period": { + "end": 1534201576, + "start": 1531523176 + }, + "plan": { + "id": "gold", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_BTMywD3UV6AkeY", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "proration": false, + "quantity": 1, + "subscription": "sub_DE2PmylMrxqPVV", + "subscription_item": "si_DE2PoGLTilH27i", + "type": "subscription" + } + ], + "has_more": false, + "object": "list", + "url": "/v1/invoices/in_1CnaL6LOXa6akpHR4b7ZSuz3/lines" + }, + "livemode": false, + "metadata": { + }, + "next_payment_attempt": 1531526776, + "number": "2031521-0001", + "paid": false, + "period_end": 1531523176, + "period_start": 1531523176, + "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/2018-05-21/invoice.upcoming.json b/src/webhooks/2018-05-21/invoice.upcoming.json new file mode 100644 index 0000000..30d1b43 --- /dev/null +++ b/src/webhooks/2018-05-21/invoice.upcoming.json @@ -0,0 +1,103 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoice.upcoming", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": null, + "object": "invoice", + "amount_due": 0, + "amount_paid": 0, + "amount_remaining": 0, + "application_fee": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": true, + "billing": "charge_automatically", + "billing_reason": "manual", + "charge": null, + "closed": false, + "currency": "cad", + "customer": "cus_00000000000000", + "date": 1531523181, + "description": null, + "discount": null, + "due_date": null, + "ending_balance": null, + "forgiven": false, + "hosted_invoice_url": null, + "invoice_pdf": null, + "lines": { + "data": [ + { + "id": "sli_16b2440846c21a", + "object": "line_item", + "amount": 2000, + "currency": "cad", + "description": "1 × Gold Special (at $20.00 / month)", + "discountable": true, + "livemode": false, + "metadata": { + }, + "period": { + "end": 1534201581, + "start": 1531523181 + }, + "plan": { + "id": "gold", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_BTMywD3UV6AkeY", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "proration": false, + "quantity": 1, + "subscription": "sub_DE2QFOMybc4VkW", + "subscription_item": "si_DE2QDJNiQLlMVF", + "type": "subscription" + } + ], + "has_more": false, + "object": "list", + "url": "/v1/invoices/in_1CnaLBLOXa6akpHRrqaCOkoC/lines" + }, + "livemode": false, + "metadata": { + }, + "next_payment_attempt": 1531526781, + "number": "31DB512-0001", + "paid": false, + "period_end": 1531523181, + "period_start": 1531523181, + "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/2018-05-21/invoice.updated.json b/src/webhooks/2018-05-21/invoice.updated.json new file mode 100644 index 0000000..265e446 --- /dev/null +++ b/src/webhooks/2018-05-21/invoice.updated.json @@ -0,0 +1,108 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoice.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "in_00000000000000", + "object": "invoice", + "amount_due": 0, + "amount_paid": 0, + "amount_remaining": 0, + "application_fee": null, + "attempt_count": 0, + "attempted": false, + "auto_advance": true, + "billing": "charge_automatically", + "billing_reason": "manual", + "charge": null, + "closed": false, + "currency": "cad", + "customer": "cus_00000000000000", + "date": 1531523189, + "description": null, + "discount": null, + "due_date": null, + "ending_balance": null, + "forgiven": false, + "hosted_invoice_url": null, + "invoice_pdf": null, + "lines": { + "data": [ + { + "id": "sli_fb95d63a685a27", + "object": "line_item", + "amount": 2000, + "currency": "cad", + "description": "1 × Gold Special (at $20.00 / month)", + "discountable": true, + "livemode": false, + "metadata": { + }, + "period": { + "end": 1534201589, + "start": 1531523189 + }, + "plan": { + "id": "gold", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1394782612, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_BTMywD3UV6AkeY", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "proration": false, + "quantity": 1, + "subscription": "sub_DE2QkA0GwRux1c", + "subscription_item": "si_DE2QyQDyp1WBMy", + "type": "subscription" + } + ], + "has_more": false, + "object": "list", + "url": "/v1/invoices/in_1CnaLJLOXa6akpHRo4vWkcJ5/lines" + }, + "livemode": false, + "metadata": { + }, + "next_payment_attempt": 1531526789, + "number": "81E1E2C-0001", + "paid": false, + "period_end": 1531523189, + "period_start": 1531523189, + "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/2018-05-21/invoiceitem.created.json b/src/webhooks/2018-05-21/invoiceitem.created.json new file mode 100644 index 0000000..9d38290 --- /dev/null +++ b/src/webhooks/2018-05-21/invoiceitem.created.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoiceitem.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "ii_00000000000000", + "object": "invoiceitem", + "amount": 1000, + "currency": "cad", + "customer": "cus_00000000000000", + "date": 1531523194, + "description": "My First Invoice Item (created for API docs)", + "discountable": true, + "invoice": null, + "livemode": false, + "metadata": { + }, + "period": { + "start": 1531523194, + "end": 1531523194 + }, + "plan": null, + "proration": false, + "quantity": 1, + "subscription": null, + "unit_amount": 1000 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/invoiceitem.deleted.json b/src/webhooks/2018-05-21/invoiceitem.deleted.json new file mode 100644 index 0000000..571c809 --- /dev/null +++ b/src/webhooks/2018-05-21/invoiceitem.deleted.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "invoiceitem.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "ii_00000000000000", + "object": "invoiceitem", + "amount": 1000, + "currency": "cad", + "customer": "cus_00000000000000", + "date": 1531523198, + "description": "My First Invoice Item (created for API docs)", + "discountable": true, + "invoice": null, + "livemode": false, + "metadata": { + }, + "period": { + "start": 1531523198, + "end": 1531523198 + }, + "plan": null, + "proration": false, + "quantity": 1, + "subscription": null, + "unit_amount": 1000 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/invoiceitem.updated.json b/src/webhooks/2018-05-21/invoiceitem.updated.json new file mode 100644 index 0000000..b388157 --- /dev/null +++ b/src/webhooks/2018-05-21/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": "2018-05-21", + "data": { + "object": { + "id": "ii_00000000000000", + "object": "invoiceitem", + "amount": 1000, + "currency": "cad", + "customer": "cus_00000000000000", + "date": 1531523203, + "description": "My First Invoice Item (created for API docs)", + "discountable": true, + "invoice": null, + "livemode": false, + "metadata": { + }, + "period": { + "start": 1531523203, + "end": 1531523203 + }, + "plan": null, + "proration": false, + "quantity": 1, + "subscription": null, + "unit_amount": 1000 + }, + "previous_attributes": { + "amount": 2121 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/issuer_fraud_record.created.json b/src/webhooks/2018-05-21/issuer_fraud_record.created.json new file mode 100644 index 0000000..cea8e87 --- /dev/null +++ b/src/webhooks/2018-05-21/issuer_fraud_record.created.json @@ -0,0 +1,21 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "issuer_fraud_record.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "issfr_00000000000000", + "object": "issuer_fraud_record", + "charge": "ch_00000000000000", + "created": 123456789, + "fraud_type": "misc", + "livemode": false, + "post_date": 123456789 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/order.created.json b/src/webhooks/2018-05-21/order.created.json new file mode 100644 index 0000000..32b22bb --- /dev/null +++ b/src/webhooks/2018-05-21/order.created.json @@ -0,0 +1,72 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "order.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "or_00000000000000", + "object": "order", + "amount": 1500, + "amount_returned": null, + "application": null, + "application_fee": null, + "charge": null, + "created": 1531523269, + "currency": "cad", + "customer": null, + "email": null, + "items": [ + { + "object": "order_item", + "amount": 1500, + "currency": "cad", + "description": "T-shirt", + "parent": "sk_1CFYxcLOXa6akpHR3rggfLol", + "quantity": null, + "type": "sku" + } + ], + "livemode": false, + "metadata": { + }, + "returns": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/order_returns?order=or_1CnaMbLOXa6akpHRyQRUQLAK" + }, + "selected_shipping_method": null, + "shipping": { + "address": { + "city": "Anytown", + "country": "US", + "line1": "1234 Main street", + "line2": null, + "postal_code": "123456", + "state": null + }, + "carrier": null, + "name": "Jenny Rosen", + "phone": null, + "tracking_number": null + }, + "shipping_methods": null, + "status": "created", + "status_transitions": { + "canceled": null, + "fulfiled": null, + "paid": null, + "returned": null + }, + "updated": 1531523269 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/order.payment_failed.json b/src/webhooks/2018-05-21/order.payment_failed.json new file mode 100644 index 0000000..b85f1aa --- /dev/null +++ b/src/webhooks/2018-05-21/order.payment_failed.json @@ -0,0 +1,72 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "order.payment_failed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "or_00000000000000", + "object": "order", + "amount": 1500, + "amount_returned": null, + "application": null, + "application_fee": null, + "charge": null, + "created": 1531523273, + "currency": "cad", + "customer": null, + "email": null, + "items": [ + { + "object": "order_item", + "amount": 1500, + "currency": "cad", + "description": "T-shirt", + "parent": "sk_1CFYxcLOXa6akpHR3rggfLol", + "quantity": null, + "type": "sku" + } + ], + "livemode": false, + "metadata": { + }, + "returns": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/order_returns?order=or_1CnaMfLOXa6akpHRavQJLO7C" + }, + "selected_shipping_method": null, + "shipping": { + "address": { + "city": "Anytown", + "country": "US", + "line1": "1234 Main street", + "line2": null, + "postal_code": "123456", + "state": null + }, + "carrier": null, + "name": "Jenny Rosen", + "phone": null, + "tracking_number": null + }, + "shipping_methods": null, + "status": "created", + "status_transitions": { + "canceled": null, + "fulfiled": null, + "paid": null, + "returned": null + }, + "updated": 1531523273 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/order.payment_succeeded.json b/src/webhooks/2018-05-21/order.payment_succeeded.json new file mode 100644 index 0000000..67c3520 --- /dev/null +++ b/src/webhooks/2018-05-21/order.payment_succeeded.json @@ -0,0 +1,72 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "order.payment_succeeded", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "or_00000000000000", + "object": "order", + "amount": 1500, + "amount_returned": null, + "application": null, + "application_fee": null, + "charge": null, + "created": 1531523277, + "currency": "cad", + "customer": null, + "email": null, + "items": [ + { + "object": "order_item", + "amount": 1500, + "currency": "cad", + "description": "T-shirt", + "parent": "sk_1CFYxcLOXa6akpHR3rggfLol", + "quantity": null, + "type": "sku" + } + ], + "livemode": false, + "metadata": { + }, + "returns": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/order_returns?order=or_1CnaMjLOXa6akpHR5a3bJlA8" + }, + "selected_shipping_method": null, + "shipping": { + "address": { + "city": "Anytown", + "country": "US", + "line1": "1234 Main street", + "line2": null, + "postal_code": "123456", + "state": null + }, + "carrier": null, + "name": "Jenny Rosen", + "phone": null, + "tracking_number": null + }, + "shipping_methods": null, + "status": "created", + "status_transitions": { + "canceled": null, + "fulfiled": null, + "paid": null, + "returned": null + }, + "updated": 1531523277 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/order.updated.json b/src/webhooks/2018-05-21/order.updated.json new file mode 100644 index 0000000..50ae402 --- /dev/null +++ b/src/webhooks/2018-05-21/order.updated.json @@ -0,0 +1,74 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "order.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "or_00000000000000", + "object": "order", + "amount": 1500, + "amount_returned": null, + "application": null, + "application_fee": null, + "charge": null, + "created": 1531523282, + "currency": "cad", + "customer": null, + "email": null, + "items": [ + { + "object": "order_item", + "amount": 1500, + "currency": "cad", + "description": "T-shirt", + "parent": "sk_1CFYxcLOXa6akpHR3rggfLol", + "quantity": null, + "type": "sku" + } + ], + "livemode": false, + "metadata": { + }, + "returns": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/order_returns?order=or_1CnaMoLOXa6akpHRRMdfqASA" + }, + "selected_shipping_method": null, + "shipping": { + "address": { + "city": "Anytown", + "country": "US", + "line1": "1234 Main street", + "line2": null, + "postal_code": "123456", + "state": null + }, + "carrier": null, + "name": "Jenny Rosen", + "phone": null, + "tracking_number": null + }, + "shipping_methods": null, + "status": "created", + "status_transitions": { + "canceled": null, + "fulfiled": null, + "paid": null, + "returned": null + }, + "updated": 1531523282 + }, + "previous_attributes": { + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/order_return.created.json b/src/webhooks/2018-05-21/order_return.created.json new file mode 100644 index 0000000..8ade25a --- /dev/null +++ b/src/webhooks/2018-05-21/order_return.created.json @@ -0,0 +1,33 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "order_return.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "orret_00000000000000", + "object": "order_return", + "amount": 1500, + "created": 1531523286, + "currency": "cad", + "items": [ + { + "object": "order_item", + "amount": 1500, + "currency": "cad", + "description": "aut", + "parent": "sk_1CnaMsLOXa6akpHRBjPb7VR7", + "quantity": null, + "type": "sku" + } + ], + "livemode": false, + "order": "or_00000000000000", + "refund": "re_00000000000000" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/payout.canceled.json b/src/webhooks/2018-05-21/payout.canceled.json new file mode 100644 index 0000000..76cbf17 --- /dev/null +++ b/src/webhooks/2018-05-21/payout.canceled.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "payout.canceled", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "po_00000000000000", + "object": "payout", + "amount": 1100, + "arrival_date": 1531523290, + "automatic": true, + "balance_transaction": "txn_00000000000000", + "created": 1531523290, + "currency": "cad", + "description": "STRIPE PAYOUT", + "destination": "ba_1CnaMwLOXa6akpHR8Rm7cQbL", + "failure_balance_transaction": null, + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": { + }, + "method": "standard", + "source_type": "card", + "statement_descriptor": null, + "status": "in_transit", + "type": "bank_account" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/payout.created.json b/src/webhooks/2018-05-21/payout.created.json new file mode 100644 index 0000000..9b8ec4c --- /dev/null +++ b/src/webhooks/2018-05-21/payout.created.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "payout.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "po_00000000000000", + "object": "payout", + "amount": 1100, + "arrival_date": 1531523294, + "automatic": true, + "balance_transaction": "txn_00000000000000", + "created": 1531523294, + "currency": "cad", + "description": "STRIPE PAYOUT", + "destination": "ba_1CnaN0LOXa6akpHRN6Gca2SG", + "failure_balance_transaction": null, + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": { + }, + "method": "standard", + "source_type": "card", + "statement_descriptor": null, + "status": "in_transit", + "type": "bank_account" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/payout.failed.json b/src/webhooks/2018-05-21/payout.failed.json new file mode 100644 index 0000000..0bf9cea --- /dev/null +++ b/src/webhooks/2018-05-21/payout.failed.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "payout.failed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "po_00000000000000", + "object": "payout", + "amount": 1100, + "arrival_date": 1531523300, + "automatic": true, + "balance_transaction": "txn_00000000000000", + "created": 1531523300, + "currency": "cad", + "description": "STRIPE PAYOUT", + "destination": "ba_1CnaN6LOXa6akpHRE6mljRit", + "failure_balance_transaction": null, + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": { + }, + "method": "standard", + "source_type": "card", + "statement_descriptor": null, + "status": "in_transit", + "type": "bank_account" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/payout.paid.json b/src/webhooks/2018-05-21/payout.paid.json new file mode 100644 index 0000000..195d022 --- /dev/null +++ b/src/webhooks/2018-05-21/payout.paid.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "payout.paid", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "po_00000000000000", + "object": "payout", + "amount": 1100, + "arrival_date": 1531523305, + "automatic": true, + "balance_transaction": "txn_00000000000000", + "created": 1531523305, + "currency": "cad", + "description": "STRIPE PAYOUT", + "destination": "ba_1CnaNBLOXa6akpHRES4XjNAo", + "failure_balance_transaction": null, + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": { + }, + "method": "standard", + "source_type": "card", + "statement_descriptor": null, + "status": "in_transit", + "type": "bank_account" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/payout.updated.json b/src/webhooks/2018-05-21/payout.updated.json new file mode 100644 index 0000000..7ce7128 --- /dev/null +++ b/src/webhooks/2018-05-21/payout.updated.json @@ -0,0 +1,37 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "payout.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "po_00000000000000", + "object": "payout", + "amount": 1100, + "arrival_date": 1531523310, + "automatic": true, + "balance_transaction": "txn_00000000000000", + "created": 1531523310, + "currency": "cad", + "description": "STRIPE PAYOUT", + "destination": "ba_1CnaNGLOXa6akpHRfQKrdmRb", + "failure_balance_transaction": null, + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": { + }, + "method": "standard", + "source_type": "card", + "statement_descriptor": null, + "status": "in_transit", + "type": "bank_account" + }, + "previous_attributes": { + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/plan.created.json b/src/webhooks/2018-05-21/plan.created.json new file mode 100644 index 0000000..ddeb032 --- /dev/null +++ b/src/webhooks/2018-05-21/plan.created.json @@ -0,0 +1,34 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "plan.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "gold_00000000000000", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1531523315, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_00000000000000", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/plan.deleted.json b/src/webhooks/2018-05-21/plan.deleted.json new file mode 100644 index 0000000..e5f2b60 --- /dev/null +++ b/src/webhooks/2018-05-21/plan.deleted.json @@ -0,0 +1,34 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "plan.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "gold_00000000000000", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1531523319, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_00000000000000", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/plan.updated.json b/src/webhooks/2018-05-21/plan.updated.json new file mode 100644 index 0000000..c6e0dc6 --- /dev/null +++ b/src/webhooks/2018-05-21/plan.updated.json @@ -0,0 +1,37 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "plan.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "gold_00000000000000", + "object": "plan", + "active": true, + "aggregate_usage": null, + "amount": 2000, + "billing_scheme": "per_unit", + "created": 1531523323, + "currency": "cad", + "interval": "month", + "interval_count": 1, + "livemode": false, + "metadata": { + }, + "nickname": null, + "product": "prod_00000000000000", + "tiers": null, + "tiers_mode": null, + "transform_usage": null, + "trial_period_days": null, + "usage_type": "licensed" + }, + "previous_attributes": { + "name": "Old name" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/product.created.json b/src/webhooks/2018-05-21/product.created.json new file mode 100644 index 0000000..6c054f7 --- /dev/null +++ b/src/webhooks/2018-05-21/product.created.json @@ -0,0 +1,40 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "product.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "prod_00000000000000", + "object": "product", + "active": true, + "attributes": [ + + ], + "caption": null, + "created": 1531443303, + "deactivate_on": [ + + ], + "description": null, + "images": [ + + ], + "livemode": false, + "metadata": { + }, + "name": "aut", + "package_dimensions": null, + "shippable": null, + "statement_descriptor": null, + "type": "service", + "unit_label": null, + "updated": 1531443303, + "url": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/product.deleted.json b/src/webhooks/2018-05-21/product.deleted.json new file mode 100644 index 0000000..68eadfb --- /dev/null +++ b/src/webhooks/2018-05-21/product.deleted.json @@ -0,0 +1,40 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "product.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "prod_00000000000000", + "object": "product", + "active": true, + "attributes": [ + + ], + "caption": null, + "created": 1531443303, + "deactivate_on": [ + + ], + "description": null, + "images": [ + + ], + "livemode": false, + "metadata": { + }, + "name": "aut", + "package_dimensions": null, + "shippable": null, + "statement_descriptor": null, + "type": "service", + "unit_label": null, + "updated": 1531443303, + "url": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/product.updated.json b/src/webhooks/2018-05-21/product.updated.json new file mode 100644 index 0000000..45692dc --- /dev/null +++ b/src/webhooks/2018-05-21/product.updated.json @@ -0,0 +1,42 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "product.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "prod_00000000000000", + "object": "product", + "active": true, + "attributes": [ + + ], + "caption": null, + "created": 1531443303, + "deactivate_on": [ + + ], + "description": null, + "images": [ + + ], + "livemode": false, + "metadata": { + }, + "name": "aut", + "package_dimensions": null, + "shippable": null, + "statement_descriptor": null, + "type": "service", + "unit_label": null, + "updated": 1531443303, + "url": null + }, + "previous_attributes": { + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/recipient.created.json b/src/webhooks/2018-05-21/recipient.created.json new file mode 100644 index 0000000..5899996 --- /dev/null +++ b/src/webhooks/2018-05-21/recipient.created.json @@ -0,0 +1,37 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "recipient.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "rp_00000000000000", + "object": "recipient", + "active_account": null, + "cards": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/recipients/rp_1CnaNkLOXa6akpHRIrKCw0Uw/cards" + }, + "created": 1531523340, + "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/2018-05-21/recipient.deleted.json b/src/webhooks/2018-05-21/recipient.deleted.json new file mode 100644 index 0000000..1e08715 --- /dev/null +++ b/src/webhooks/2018-05-21/recipient.deleted.json @@ -0,0 +1,37 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "recipient.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "rp_00000000000000", + "object": "recipient", + "active_account": null, + "cards": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/recipients/rp_1CnaNpLOXa6akpHRnY5OngxY/cards" + }, + "created": 1531523345, + "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/2018-05-21/recipient.updated.json b/src/webhooks/2018-05-21/recipient.updated.json new file mode 100644 index 0000000..d186b02 --- /dev/null +++ b/src/webhooks/2018-05-21/recipient.updated.json @@ -0,0 +1,39 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "recipient.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "rp_00000000000000", + "object": "recipient", + "active_account": null, + "cards": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/recipients/rp_1CnaNtLOXa6akpHRXU34gscS/cards" + }, + "created": 1531523349, + "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": { + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/review.closed.json b/src/webhooks/2018-05-21/review.closed.json new file mode 100644 index 0000000..f8b565d --- /dev/null +++ b/src/webhooks/2018-05-21/review.closed.json @@ -0,0 +1,21 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "review.closed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "prv_00000000000000", + "object": "review", + "charge": "ch_00000000000000", + "created": 1531523353, + "livemode": false, + "open": true, + "reason": "rule" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/review.opened.json b/src/webhooks/2018-05-21/review.opened.json new file mode 100644 index 0000000..40784bf --- /dev/null +++ b/src/webhooks/2018-05-21/review.opened.json @@ -0,0 +1,21 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "review.opened", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "prv_00000000000000", + "object": "review", + "charge": "ch_00000000000000", + "created": 1531523357, + "livemode": false, + "open": true, + "reason": "rule" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/sigma.scheduled_query_run.created.json b/src/webhooks/2018-05-21/sigma.scheduled_query_run.created.json new file mode 100644 index 0000000..e34950b --- /dev/null +++ b/src/webhooks/2018-05-21/sigma.scheduled_query_run.created.json @@ -0,0 +1,35 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "sigma.scheduled_query_run.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "sqr_00000000000000", + "object": "scheduled_query_run", + "created": 1531523362, + "data_load_time": 1531267200, + "error": null, + "file": { + "id": "file_00000000000000", + "object": "file", + "created": 1523414725, + "filename": "path", + "purpose": "sigma_scheduled_query", + "size": 500, + "title": null, + "type": "csv", + "url": "https://files.stripe.com/v1/files/file_1CFYxdLOXa6akpHRUfLxoMek/contents" + }, + "livemode": false, + "result_available_until": 1562976000, + "sql": "SELECT count(*) from charges", + "status": "completed", + "title": "Count all charges" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/sku.created.json b/src/webhooks/2018-05-21/sku.created.json new file mode 100644 index 0000000..948dccc --- /dev/null +++ b/src/webhooks/2018-05-21/sku.created.json @@ -0,0 +1,36 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "sku.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "sku_00000000000000", + "object": "sku", + "active": true, + "attributes": { + "size": "Medium", + "gender": "Unisex" + }, + "created": 1531523366, + "currency": "cad", + "image": null, + "inventory": { + "quantity": 50, + "type": "finite", + "value": null + }, + "livemode": false, + "metadata": { + }, + "package_dimensions": null, + "price": 1500, + "product": "prod_00000000000000", + "updated": 1531523366 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/sku.deleted.json b/src/webhooks/2018-05-21/sku.deleted.json new file mode 100644 index 0000000..01757b6 --- /dev/null +++ b/src/webhooks/2018-05-21/sku.deleted.json @@ -0,0 +1,36 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "sku.deleted", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "sku_00000000000000", + "object": "sku", + "active": true, + "attributes": { + "size": "Medium", + "gender": "Unisex" + }, + "created": 1531523370, + "currency": "cad", + "image": null, + "inventory": { + "quantity": 50, + "type": "finite", + "value": null + }, + "livemode": false, + "metadata": { + }, + "package_dimensions": null, + "price": 1500, + "product": "prod_00000000000000", + "updated": 1531523370 + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/sku.updated.json b/src/webhooks/2018-05-21/sku.updated.json new file mode 100644 index 0000000..e3eb04f --- /dev/null +++ b/src/webhooks/2018-05-21/sku.updated.json @@ -0,0 +1,38 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "sku.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "sku_00000000000000", + "object": "sku", + "active": true, + "attributes": { + "size": "Medium", + "gender": "Unisex" + }, + "created": 1531523374, + "currency": "cad", + "image": null, + "inventory": { + "quantity": 50, + "type": "finite", + "value": null + }, + "livemode": false, + "metadata": { + }, + "package_dimensions": null, + "price": 1500, + "product": "prod_00000000000000", + "updated": 1531523374 + }, + "previous_attributes": { + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/source.canceled.json b/src/webhooks/2018-05-21/source.canceled.json new file mode 100644 index 0000000..14b6475 --- /dev/null +++ b/src/webhooks/2018-05-21/source.canceled.json @@ -0,0 +1,53 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "source.canceled", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2T7iD2O3i64i85pXdkCGOG", + "created": 1531523379, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/source.chargeable.json b/src/webhooks/2018-05-21/source.chargeable.json new file mode 100644 index 0000000..f387818 --- /dev/null +++ b/src/webhooks/2018-05-21/source.chargeable.json @@ -0,0 +1,53 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "source.chargeable", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2To7TD98pQMmUMfdcen4Os", + "created": 1531523383, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/source.failed.json b/src/webhooks/2018-05-21/source.failed.json new file mode 100644 index 0000000..6c36758 --- /dev/null +++ b/src/webhooks/2018-05-21/source.failed.json @@ -0,0 +1,53 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "source.failed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2TpTpaANSOa3hjI5QfeRW8", + "created": 1531523387, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/source.mandate_notification.json b/src/webhooks/2018-05-21/source.mandate_notification.json new file mode 100644 index 0000000..5be1c6b --- /dev/null +++ b/src/webhooks/2018-05-21/source.mandate_notification.json @@ -0,0 +1,53 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "source.mandate_notification", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2T14HQj1uGOf83TAklZqvb", + "created": 1531523391, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/source.transaction.created.json b/src/webhooks/2018-05-21/source.transaction.created.json new file mode 100644 index 0000000..95f2c15 --- /dev/null +++ b/src/webhooks/2018-05-21/source.transaction.created.json @@ -0,0 +1,21 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "source.transaction.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "btctxn_00000000000000", + "object": "bitcoin_transaction", + "amount": 100, + "bitcoin_amount": 1757908, + "created": 1531523396, + "currency": "cad", + "receiver": "btcrcv_15XzOW285d61s2cIMV0LBVFv" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/topup.created.json b/src/webhooks/2018-05-21/topup.created.json new file mode 100644 index 0000000..ef79480 --- /dev/null +++ b/src/webhooks/2018-05-21/topup.created.json @@ -0,0 +1,71 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "topup.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "tu_00000000000000", + "object": "topup", + "amount": 1000, + "balance_transaction": null, + "created": 123456789, + "currency": "cad", + "description": "Top-up description", + "expected_availability_date": null, + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": { + "order_id": "12345678" + }, + "source": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2THfFImkJluo0QpTUFiyWh", + "created": 1531523400, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + }, + "statement_descriptor": null, + "status": "pending" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/topup.failed.json b/src/webhooks/2018-05-21/topup.failed.json new file mode 100644 index 0000000..40bf644 --- /dev/null +++ b/src/webhooks/2018-05-21/topup.failed.json @@ -0,0 +1,71 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "topup.failed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "tu_00000000000000", + "object": "topup", + "amount": 1000, + "balance_transaction": null, + "created": 123456789, + "currency": "cad", + "description": "Top-up description", + "expected_availability_date": null, + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": { + "order_id": "12345678" + }, + "source": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2TwkqK4yNokCsbvxWs18zu", + "created": 1531523405, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + }, + "statement_descriptor": null, + "status": "pending" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/topup.reversed.json b/src/webhooks/2018-05-21/topup.reversed.json new file mode 100644 index 0000000..f259691 --- /dev/null +++ b/src/webhooks/2018-05-21/topup.reversed.json @@ -0,0 +1,71 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "topup.reversed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "tu_00000000000000", + "object": "topup", + "amount": 1000, + "balance_transaction": null, + "created": 123456789, + "currency": "cad", + "description": "Top-up description", + "expected_availability_date": null, + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": { + "order_id": "12345678" + }, + "source": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2T1JzPmdvcyLzWU0rahIuO", + "created": 1531523409, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + }, + "statement_descriptor": null, + "status": "pending" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/topup.succeeded.json b/src/webhooks/2018-05-21/topup.succeeded.json new file mode 100644 index 0000000..9b66e7b --- /dev/null +++ b/src/webhooks/2018-05-21/topup.succeeded.json @@ -0,0 +1,71 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "topup.succeeded", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "tu_00000000000000", + "object": "topup", + "amount": 1000, + "balance_transaction": null, + "created": 123456789, + "currency": "cad", + "description": "Top-up description", + "expected_availability_date": null, + "failure_code": null, + "failure_message": null, + "livemode": false, + "metadata": { + "order_id": "12345678" + }, + "source": { + "id": "src_00000000000000", + "object": "source", + "ach_credit_transfer": { + "account_number": "test_52796e3294dc", + "routing_number": "110000000", + "fingerprint": "ecpwEzmBOSMOqQTL", + "bank_name": "TEST BANK", + "swift_code": "TSTEZ122" + }, + "amount": null, + "client_secret": "src_client_secret_DE2TdYfeIAipeqRd5d6qdEVt", + "created": 1531523413, + "currency": "cad", + "flow": "receiver", + "livemode": false, + "metadata": { + }, + "owner": { + "address": null, + "email": "jenny.rosen@example.com", + "name": null, + "phone": null, + "verified_address": null, + "verified_email": null, + "verified_name": null, + "verified_phone": null + }, + "receiver": { + "address": "121042882-38381234567890123", + "amount_charged": 0, + "amount_received": 0, + "amount_returned": 0, + "refund_attributes_method": "email", + "refund_attributes_status": "missing" + }, + "statement_descriptor": null, + "status": "pending", + "type": "ach_credit_transfer", + "usage": "reusable" + }, + "statement_descriptor": null, + "status": "pending" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/transfer.created.json b/src/webhooks/2018-05-21/transfer.created.json new file mode 100644 index 0000000..eca493f --- /dev/null +++ b/src/webhooks/2018-05-21/transfer.created.json @@ -0,0 +1,41 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "transfer.created", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "tr_00000000000000", + "object": "transfer", + "amount": 1100, + "amount_reversed": 0, + "balance_transaction": "txn_00000000000000", + "created": 1531523418, + "currency": "cad", + "description": null, + "destination": "acct_1CE16rLOXa6akpHR", + "destination_payment": "py_DE2TFRQ6quMO55", + "livemode": false, + "metadata": { + }, + "reversals": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/transfers/tr_1CnaP0LOXa6akpHRrVCXqIIp/reversals" + }, + "reversed": false, + "source_transaction": null, + "source_type": "card", + "transfer_group": null, + "status": "pending" + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/transfer.reversed.json b/src/webhooks/2018-05-21/transfer.reversed.json new file mode 100644 index 0000000..3de1b11 --- /dev/null +++ b/src/webhooks/2018-05-21/transfer.reversed.json @@ -0,0 +1,40 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "transfer.reversed", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "tr_00000000000000", + "object": "transfer", + "amount": 1100, + "amount_reversed": 0, + "balance_transaction": "txn_00000000000000", + "created": 1531523422, + "currency": "cad", + "description": null, + "destination": "acct_1CE16rLOXa6akpHR", + "destination_payment": "py_DE2UNRjRSzRCjm", + "livemode": false, + "metadata": { + }, + "reversals": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/transfers/tr_1CnaP4LOXa6akpHRCn7Li8lp/reversals" + }, + "reversed": false, + "source_transaction": null, + "source_type": "card", + "transfer_group": null + } + } +} \ No newline at end of file diff --git a/src/webhooks/2018-05-21/transfer.updated.json b/src/webhooks/2018-05-21/transfer.updated.json new file mode 100644 index 0000000..5d35f4f --- /dev/null +++ b/src/webhooks/2018-05-21/transfer.updated.json @@ -0,0 +1,44 @@ +{ + "created": 1326853478, + "livemode": false, + "id": "evt_00000000000000", + "type": "transfer.updated", + "object": "event", + "request": null, + "pending_webhooks": 1, + "api_version": "2018-05-21", + "data": { + "object": { + "id": "tr_00000000000000", + "object": "transfer", + "amount": 1100, + "amount_reversed": 0, + "balance_transaction": "txn_00000000000000", + "created": 1531523426, + "currency": "cad", + "description": null, + "destination": "acct_1CE16rLOXa6akpHR", + "destination_payment": "py_DE2UOGXC26DGbJ", + "livemode": false, + "metadata": { + }, + "reversals": { + "object": "list", + "data": [ + + ], + "has_more": false, + "total_count": 0, + "url": "/v1/transfers/tr_1CnaP8LOXa6akpHRdkvo4Xa3/reversals" + }, + "reversed": false, + "source_transaction": null, + "source_type": "card", + "transfer_group": null, + "status": "pending" + }, + "previous_attributes": { + "description": "Old description" + } + } +} \ No newline at end of file