From 5c634b4f8bda8486ed4e7377c3d962e4a61c7b91 Mon Sep 17 00:00:00 2001 From: heymcgovern <25659933+heymcgovern@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:52:14 +0100 Subject: [PATCH 1/2] Add Paddle Billing examples --- .../current/address.created.json | 34 ++ .../current/adjustment.created.json | 61 ++++ .../current/adjustment.updated.json | 61 ++++ .../current/customer.created.json | 30 ++ .../current/subscription.activated.json | 164 +++++++++ .../current/subscription.created.json | 164 +++++++++ .../current/subscription.past_due.json | 163 +++++++++ .../current/subscription.updated.json | 163 +++++++++ .../current/transaction.billed.json | 224 ++++++++++++ .../current/transaction.completed.json | 318 ++++++++++++++++++ .../current/transaction.created.json | 280 +++++++++++++++ .../current/transaction.paid.json | 301 +++++++++++++++++ .../current/transaction.past_due.json | 245 ++++++++++++++ .../current/transaction.payment_failed.json | 245 ++++++++++++++ .../current/transaction.ready.json | 280 +++++++++++++++ .../current/transaction.updated.json | 318 ++++++++++++++++++ providers/paddlebilling/index.json | 7 + 17 files changed, 3058 insertions(+) create mode 100644 providers/paddlebilling/current/address.created.json create mode 100644 providers/paddlebilling/current/adjustment.created.json create mode 100644 providers/paddlebilling/current/adjustment.updated.json create mode 100644 providers/paddlebilling/current/customer.created.json create mode 100644 providers/paddlebilling/current/subscription.activated.json create mode 100644 providers/paddlebilling/current/subscription.created.json create mode 100644 providers/paddlebilling/current/subscription.past_due.json create mode 100644 providers/paddlebilling/current/subscription.updated.json create mode 100644 providers/paddlebilling/current/transaction.billed.json create mode 100644 providers/paddlebilling/current/transaction.completed.json create mode 100644 providers/paddlebilling/current/transaction.created.json create mode 100644 providers/paddlebilling/current/transaction.paid.json create mode 100644 providers/paddlebilling/current/transaction.past_due.json create mode 100644 providers/paddlebilling/current/transaction.payment_failed.json create mode 100644 providers/paddlebilling/current/transaction.ready.json create mode 100644 providers/paddlebilling/current/transaction.updated.json create mode 100644 providers/paddlebilling/index.json diff --git a/providers/paddlebilling/current/address.created.json b/providers/paddlebilling/current/address.created.json new file mode 100644 index 0000000..740db9a --- /dev/null +++ b/providers/paddlebilling/current/address.created.json @@ -0,0 +1,34 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "525", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897649;h1=a1e461e5c70fc10e2f697e645cc2fd05125fc9df3c72be90523023560c0734f0", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "add_01j7br89t3wgn5v5w49hm1mepv", + "city": null, + "region": null, + "status": "active", + "created_at": "2024-09-09T16:00:47.939Z", + "first_line": null, + "updated_at": "2024-09-09T16:00:47.939Z", + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "description": null, + "import_meta": null, + "postal_code": "10021", + "second_line": null, + "country_code": "US" + }, + "event_id": "evt_01j7br8a9wah2vavmp3pe9k6r1", + "event_type": "address.created", + "occurred_at": "2024-09-09T16:00:48.444751Z", + "notification_id": "ntf_01j7br8ap7fjjm2424q81qt5zc" + }, + "topic": "address.created" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/adjustment.created.json b/providers/paddlebilling/current/adjustment.created.json new file mode 100644 index 0000000..4d6474d --- /dev/null +++ b/providers/paddlebilling/current/adjustment.created.json @@ -0,0 +1,61 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "998", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725898283;h1=0a40da64af54c31ea22c4a637b2d519a81f83b2ca437f52e1eab9d403e4ca9f8", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "adj_01j7brvp4836axtqpwvpgdssh7", + "items": [ + { + "id": "adjitm_01j7brvp4836axtqpwvqa6z30p", + "type": "full", + "amount": "10887", + "totals": { + "tax": "887", + "total": "10887", + "subtotal": "10000" + }, + "item_id": "txnitm_01j7br8aez018mgmrj3bpmxmh7", + "proration": null + } + ], + "action": "refund", + "reason": "error", + "status": "pending_approval", + "totals": { + "fee": "553", + "tax": "887", + "total": "10887", + "earnings": "9447", + "subtotal": "10000", + "currency_code": "USD" + }, + "created_at": "2024-09-09T16:11:23.156526Z", + "updated_at": "2024-09-09T16:11:23Z", + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "currency_code": "USD", + "payout_totals": { + "fee": "553", + "tax": "887", + "total": "10887", + "earnings": "9447", + "subtotal": "10000", + "currency_code": "USD" + }, + "transaction_id": "txn_01j7br78cgr083zqw1jhqym40s", + "subscription_id": "sub_01j7br9jpk4rmmcd5crn2th1bq", + "credit_applied_to_balance": null + }, + "event_id": "evt_01j7brvpf76ndzrenetzbk8m0x", + "event_type": "adjustment.created", + "occurred_at": "2024-09-09T16:11:23.495326Z", + "notification_id": "ntf_01j7brvpnh3dbqmpnz2skccsq0" + }, + "topic": "adjustment.created" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/adjustment.updated.json b/providers/paddlebilling/current/adjustment.updated.json new file mode 100644 index 0000000..419feb4 --- /dev/null +++ b/providers/paddlebilling/current/adjustment.updated.json @@ -0,0 +1,61 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "997", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725898802;h1=76bcd3928b2bbfa92836c550aa5942880c35926edc6944beadca504f7389a5dc", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "adj_01j7brvp4836axtqpwvpgdssh7", + "items": [ + { + "id": "adjitm_01j7brvp4836axtqpwvqa6z30p", + "type": "full", + "amount": "10887", + "totals": { + "tax": "887", + "total": "10887", + "subtotal": "10000" + }, + "item_id": "txnitm_01j7br8aez018mgmrj3bpmxmh7", + "proration": null + } + ], + "action": "refund", + "reason": "error", + "status": "approved", + "totals": { + "fee": "553", + "tax": "887", + "total": "10887", + "earnings": "9447", + "subtotal": "10000", + "currency_code": "USD" + }, + "created_at": "2024-09-09T16:11:23.156526Z", + "updated_at": "2024-09-09T16:20:01.336183Z", + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "currency_code": "USD", + "payout_totals": { + "fee": "553", + "tax": "887", + "total": "10887", + "earnings": "9447", + "subtotal": "10000", + "currency_code": "USD" + }, + "transaction_id": "txn_01j7br78cgr083zqw1jhqym40s", + "subscription_id": "sub_01j7br9jpk4rmmcd5crn2th1bq", + "credit_applied_to_balance": null + }, + "event_id": "evt_01j7bsbgpvc60cc727n9k76xcd", + "event_type": "adjustment.updated", + "occurred_at": "2024-09-09T16:20:01.883390Z", + "notification_id": "ntf_01j7bsbh2d217449az4tf0k7m6" + }, + "topic": "adjustment.updated" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/customer.created.json b/providers/paddlebilling/current/customer.created.json new file mode 100644 index 0000000..443e1d2 --- /dev/null +++ b/providers/paddlebilling/current/customer.created.json @@ -0,0 +1,30 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "433", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897649;h1=b24e1131c7ba70f1f4d012dab650851a3f5e03e07130fffb20be1e3e3f3a0f30", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "ctm_01j7br89shp7xpaenx22h8qetw", + "name": null, + "email": "sam@example.com", + "locale": "en", + "status": "active", + "created_at": "2024-09-09T16:00:47.921Z", + "updated_at": "2024-09-09T16:00:47.921Z", + "custom_data": null, + "import_meta": null, + "marketing_consent": false + }, + "event_id": "evt_01j7br8aax25dzcc8xe1xq32d0", + "event_type": "customer.created", + "occurred_at": "2024-09-09T16:00:48.477852Z", + "notification_id": "ntf_01j7br8ancx88m6hp38d3ecvab" + }, + "topic": "customer.created" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/subscription.activated.json b/providers/paddlebilling/current/subscription.activated.json new file mode 100644 index 0000000..915aa0d --- /dev/null +++ b/providers/paddlebilling/current/subscription.activated.json @@ -0,0 +1,164 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "3913", + "accept": "application/json", + "accept-encoding": "gzip", + "connection": "keep-alive", + "content-type": "application/json", + "paddle-signature": "ts=1725897691;h1=5524fec5b8b95afa597199724e545cec680d9bd0ee27ea5f4619cb321c693372", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "sub_01j7br9jpk4rmmcd5crn2th1bq", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "import_meta": null, + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "status": "active", + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "import_meta": null, + "tax_category": "standard" + }, + "quantity": 10, + "recurring": true, + "created_at": "2024-09-09T16:01:29.811Z", + "updated_at": "2024-09-09T16:01:29.811Z", + "trial_dates": null, + "next_billed_at": "2024-10-09T16:01:29.378686Z", + "previously_billed_at": "2024-09-09T16:01:29.378686Z" + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "import_meta": null, + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "status": "active", + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "import_meta": null, + "tax_category": "standard" + }, + "quantity": 1, + "recurring": true, + "created_at": "2024-09-09T16:01:29.811Z", + "updated_at": "2024-09-09T16:01:29.811Z", + "trial_dates": null, + "next_billed_at": "2024-10-09T16:01:29.378686Z", + "previously_billed_at": "2024-09-09T16:01:29.378686Z" + } + ], + "status": "active", + "discount": null, + "paused_at": null, + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:01:29.811Z", + "started_at": "2024-09-09T16:01:29.378686Z", + "updated_at": "2024-09-09T16:01:29.811Z", + "business_id": null, + "canceled_at": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "import_meta": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "currency_code": "USD", + "next_billed_at": "2024-10-09T16:01:29.378686Z", + "billing_details": null, + "collection_mode": "automatic", + "first_billed_at": "2024-09-09T16:01:29.378686Z", + "scheduled_change": null, + "current_billing_period": { + "ends_at": "2024-10-09T16:01:29.378686Z", + "starts_at": "2024-09-09T16:01:29.378686Z" + } + }, + "event_id": "evt_01j7br9m1s4bh0db0sb8n9wfdp", + "event_type": "subscription.activated", + "occurred_at": "2024-09-09T16:01:31.193492Z", + "notification_id": "ntf_01j7br9m6xfnajmm0mbr0zm0tg" + }, + "topic": "subscription.activated" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/subscription.created.json b/providers/paddlebilling/current/subscription.created.json new file mode 100644 index 0000000..bb63b78 --- /dev/null +++ b/providers/paddlebilling/current/subscription.created.json @@ -0,0 +1,164 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "3961", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897691;h1=6771a1f118f1284830b62d063891549463feae9c2b53eddc7aaa55be487dd6b2", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "sub_01j7br9jpk4rmmcd5crn2th1bq", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "import_meta": null, + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "status": "active", + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "import_meta": null, + "tax_category": "standard" + }, + "quantity": 10, + "recurring": true, + "created_at": "2024-09-09T16:01:29.811Z", + "updated_at": "2024-09-09T16:01:29.811Z", + "trial_dates": null, + "next_billed_at": "2024-10-09T16:01:29.378686Z", + "previously_billed_at": "2024-09-09T16:01:29.378686Z" + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "import_meta": null, + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "status": "active", + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "import_meta": null, + "tax_category": "standard" + }, + "quantity": 1, + "recurring": true, + "created_at": "2024-09-09T16:01:29.811Z", + "updated_at": "2024-09-09T16:01:29.811Z", + "trial_dates": null, + "next_billed_at": "2024-10-09T16:01:29.378686Z", + "previously_billed_at": "2024-09-09T16:01:29.378686Z" + } + ], + "status": "active", + "discount": null, + "paused_at": null, + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:01:29.811Z", + "started_at": "2024-09-09T16:01:29.378686Z", + "updated_at": "2024-09-09T16:01:29.811Z", + "business_id": null, + "canceled_at": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "import_meta": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "currency_code": "USD", + "next_billed_at": "2024-10-09T16:01:29.378686Z", + "transaction_id": "txn_01j7br78cgr083zqw1jhqym40s", + "billing_details": null, + "collection_mode": "automatic", + "first_billed_at": "2024-09-09T16:01:29.378686Z", + "scheduled_change": null, + "current_billing_period": { + "ends_at": "2024-10-09T16:01:29.378686Z", + "starts_at": "2024-09-09T16:01:29.378686Z" + } + }, + "event_id": "evt_01j7br9m2aesan7r77ckkast3s", + "event_type": "subscription.created", + "occurred_at": "2024-09-09T16:01:31.210540Z", + "notification_id": "ntf_01j7br9m7y1vm3ms0jxd7jf8v9" + }, + "topic": "subscription.created" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/subscription.past_due.json b/providers/paddlebilling/current/subscription.past_due.json new file mode 100644 index 0000000..1aedac6 --- /dev/null +++ b/providers/paddlebilling/current/subscription.past_due.json @@ -0,0 +1,163 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "3923", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897846;h1=49204a26e1dd42a5275e0489b0aa29059eed8e229d6c45c3c7269ef2c8903f59", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "sub_01j7br9jpk4rmmcd5crn2th1bq", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "import_meta": null, + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "status": "active", + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "import_meta": null, + "tax_category": "standard" + }, + "quantity": 10, + "recurring": true, + "created_at": "2024-09-09T16:01:29.811Z", + "updated_at": "2024-10-09T16:01:39.146686Z", + "trial_dates": null, + "next_billed_at": "2024-11-09T16:01:29.378686Z", + "previously_billed_at": "2024-10-09T16:01:29.378686Z" + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "import_meta": null, + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "status": "active", + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "import_meta": null, + "tax_category": "standard" + }, + "quantity": 1, + "recurring": true, + "created_at": "2024-09-09T16:01:29.811Z", + "updated_at": "2024-10-09T16:01:39.147686Z", + "trial_dates": null, + "next_billed_at": "2024-11-09T16:01:29.378686Z", + "previously_billed_at": "2024-10-09T16:01:29.378686Z" + } + ], + "status": "past_due", + "discount": null, + "paused_at": null, + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:01:29.811Z", + "started_at": "2024-09-09T16:01:29.378686Z", + "updated_at": "2024-10-09T16:01:39.148686Z", + "business_id": null, + "canceled_at": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "import_meta": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "currency_code": "USD", + "next_billed_at": "2024-11-09T16:01:29.378686Z", + "billing_details": null, + "collection_mode": "automatic", + "first_billed_at": "2024-09-09T16:01:29.378686Z", + "scheduled_change": null, + "current_billing_period": { + "ends_at": "2024-11-09T16:01:29.378686Z", + "starts_at": "2024-10-09T16:01:29.378686Z" + } + }, + "event_id": "evt_01j7breb96dre2qv2bf7eq07d3", + "event_type": "subscription.past_due", + "occurred_at": "2024-09-09T16:04:06.054130Z", + "notification_id": "ntf_01j7brebh5yztyk1f98vyj25xt" + }, + "topic": "subscription.past_due" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/subscription.updated.json b/providers/paddlebilling/current/subscription.updated.json new file mode 100644 index 0000000..4e468b5 --- /dev/null +++ b/providers/paddlebilling/current/subscription.updated.json @@ -0,0 +1,163 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "3922", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897846;h1=58eacbf176d8ac6a408c862f15f6c66c18d74700f8c0bf6a87ff2627be8fcdf1", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "sub_01j7br9jpk4rmmcd5crn2th1bq", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "import_meta": null, + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "status": "active", + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "import_meta": null, + "tax_category": "standard" + }, + "quantity": 10, + "recurring": true, + "created_at": "2024-09-09T16:01:29.811Z", + "updated_at": "2024-10-09T16:01:39.146686Z", + "trial_dates": null, + "next_billed_at": "2024-11-09T16:01:29.378686Z", + "previously_billed_at": "2024-10-09T16:01:29.378686Z" + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "import_meta": null, + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "status": "active", + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "import_meta": null, + "tax_category": "standard" + }, + "quantity": 1, + "recurring": true, + "created_at": "2024-09-09T16:01:29.811Z", + "updated_at": "2024-10-09T16:01:39.147686Z", + "trial_dates": null, + "next_billed_at": "2024-11-09T16:01:29.378686Z", + "previously_billed_at": "2024-10-09T16:01:29.378686Z" + } + ], + "status": "past_due", + "discount": null, + "paused_at": null, + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:01:29.811Z", + "started_at": "2024-09-09T16:01:29.378686Z", + "updated_at": "2024-10-09T16:01:39.148686Z", + "business_id": null, + "canceled_at": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "import_meta": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "currency_code": "USD", + "next_billed_at": "2024-11-09T16:01:29.378686Z", + "billing_details": null, + "collection_mode": "automatic", + "first_billed_at": "2024-09-09T16:01:29.378686Z", + "scheduled_change": null, + "current_billing_period": { + "ends_at": "2024-11-09T16:01:29.378686Z", + "starts_at": "2024-10-09T16:01:29.378686Z" + } + }, + "event_id": "evt_01j7breb93syekfvzq86r4940f", + "event_type": "subscription.updated", + "occurred_at": "2024-09-09T16:04:06.051917Z", + "notification_id": "ntf_01j7brebggpc2gcq38bzpphzmd" + }, + "topic": "subscription.updated" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/transaction.billed.json b/providers/paddlebilling/current/transaction.billed.json new file mode 100644 index 0000000..3be56a2 --- /dev/null +++ b/providers/paddlebilling/current/transaction.billed.json @@ -0,0 +1,224 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "4627", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897843;h1=5f7df304e6d1d0b12c345e1407d1f33722b09957a687be21235dd58a8df68c8d", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "txn_01j7bre7fka75pa1k8arkf0by3", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "proration": null + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "proration": null + } + ], + "origin": "subscription_recurring", + "status": "billed", + "details": { + "totals": { + "fee": null, + "tax": "3549", + "total": "43549", + "credit": "0", + "balance": "43549", + "discount": "0", + "earnings": null, + "subtotal": "40000", + "grand_total": "43549", + "currency_code": "USD", + "credit_to_balance": "0" + }, + "line_items": [ + { + "id": "txnitm_01j7bre7vtfvxd0mvhr7s4x55h", + "totals": { + "tax": "2662", + "total": "32662", + "discount": "0", + "subtotal": "30000" + }, + "item_id": null, + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "266", + "total": "3266", + "discount": "0", + "subtotal": "3000" + } + }, + { + "id": "txnitm_01j7bre7vvfcpg0hjkgypbp002", + "totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + }, + "item_id": null, + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "tax_category": "standard" + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + } + } + ], + "payout_totals": null, + "tax_rates_used": [ + { + "totals": { + "tax": "3549", + "total": "43549", + "discount": "0", + "subtotal": "40000" + }, + "tax_rate": "0.08875" + } + ], + "adjusted_totals": { + "fee": "0", + "tax": "3549", + "total": "43549", + "earnings": "0", + "subtotal": "40000", + "grand_total": "43549", + "currency_code": "USD" + } + }, + "checkout": { + "url": "https://magnificent-entremet-7ae0c6.netlify.app/default/overlay?_ptxn=txn_01j7bre7fka75pa1k8arkf0by3" + }, + "payments": [], + "billed_at": "2024-09-09T16:04:02.163775934Z", + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:04:02.613735612Z", + "invoice_id": null, + "updated_at": "2024-09-09T16:04:02.613735612Z", + "business_id": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "discount_id": null, + "receipt_data": null, + "currency_code": "USD", + "billing_period": { + "ends_at": "2024-11-09T16:01:29.378686Z", + "starts_at": "2024-10-09T16:01:29.378686Z" + }, + "invoice_number": null, + "billing_details": null, + "collection_mode": "automatic", + "subscription_id": "sub_01j7br9jpk4rmmcd5crn2th1bq" + }, + "event_id": "evt_01j7bre89dmgqdecwpznemhjxz", + "event_type": "transaction.billed", + "occurred_at": "2024-09-09T16:04:02.989795Z", + "notification_id": "ntf_01j7bre8fzam079nxvx1808trs" + }, + "topic": "transaction.billed" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/transaction.completed.json b/providers/paddlebilling/current/transaction.completed.json new file mode 100644 index 0000000..6f9c628 --- /dev/null +++ b/providers/paddlebilling/current/transaction.completed.json @@ -0,0 +1,318 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "6687", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897692;h1=749c3d9bbada0041ae9ca3540bd00ca54e974a4aa8a583f724eea0c8557f6195", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "txn_01j7br78cgr083zqw1jhqym40s", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "proration": null + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "proration": null + }, + { + "price": { + "id": "pri_01gsz98e27ak2tyhexptwc58yk", + "name": "One-time addon", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 1, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T14:01:28.391712Z", + "product_id": "pro_01gsz97mq9pa4fkyy0wqenepkz", + "unit_price": { + "amount": "19900", + "currency_code": "USD" + }, + "updated_at": "2024-04-09T07:23:10.921392Z", + "custom_data": null, + "description": "One-time addon", + "trial_period": null, + "billing_cycle": null, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz98e27ak2tyhexptwc58yk", + "quantity": 1, + "proration": null + } + ], + "origin": "web", + "status": "completed", + "details": { + "totals": { + "fee": "3311", + "tax": "5315", + "total": "65215", + "credit": "0", + "balance": "0", + "discount": "0", + "earnings": "56589", + "subtotal": "59900", + "grand_total": "65215", + "currency_code": "USD", + "credit_to_balance": "0" + }, + "line_items": [ + { + "id": "txnitm_01j7br8aeyz8r6wm2zywjw97d4", + "totals": { + "tax": "2662", + "total": "32662", + "discount": "0", + "subtotal": "30000" + }, + "item_id": null, + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "266", + "total": "3266", + "discount": "0", + "subtotal": "3000" + } + }, + { + "id": "txnitm_01j7br8aez018mgmrj3bpmxmh7", + "totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + }, + "item_id": null, + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "tax_category": "standard" + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + } + }, + { + "id": "txnitm_01j7br8aez018mgmrj3e9nbbr7", + "totals": { + "tax": "1766", + "total": "21666", + "discount": "0", + "subtotal": "19900" + }, + "item_id": null, + "product": { + "id": "pro_01gsz97mq9pa4fkyy0wqenepkz", + "name": "Custom domains", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/XIG7UXoJQHmlIAiKcnkA_custom-domains.png", + "created_at": "2023-02-23T14:01:02.441Z", + "updated_at": "2024-04-05T15:43:28.971Z", + "custom_data": null, + "description": "Make AeroEdit truly your own with custom domains. Custom domains reinforce your brand identity and make it easy for your team to access your account.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz98e27ak2tyhexptwc58yk", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "1766", + "total": "21666", + "discount": "0", + "subtotal": "19900" + } + } + ], + "payout_totals": { + "fee": "3311", + "tax": "5315", + "total": "65215", + "credit": "0", + "balance": "0", + "discount": "0", + "earnings": "56589", + "fee_rate": "0.05", + "subtotal": "59900", + "grand_total": "65215", + "currency_code": "USD", + "exchange_rate": "1", + "credit_to_balance": "0" + }, + "tax_rates_used": [ + { + "totals": { + "tax": "5315", + "total": "65215", + "discount": "0", + "subtotal": "59900" + }, + "tax_rate": "0.08875" + } + ], + "adjusted_totals": { + "fee": "3311", + "tax": "5315", + "total": "65215", + "earnings": "56589", + "subtotal": "59900", + "grand_total": "65215", + "currency_code": "USD" + } + }, + "checkout": { + "url": "https://magnificent-entremet-7ae0c6.netlify.app/default/overlay?_ptxn=txn_01j7br78cgr083zqw1jhqym40s" + }, + "payments": [ + { + "amount": "65215", + "status": "captured", + "created_at": "2024-09-09T16:01:17.683756Z", + "error_code": null, + "captured_at": "2024-09-09T16:01:29.378686Z", + "method_details": { + "card": { + "type": "visa", + "last4": "3184", + "expiry_year": 2029, + "expiry_month": 10, + "cardholder_name": "Michael McGovern" + }, + "type": "card" + }, + "payment_method_id": "paymtd_01j7br96tsmrhw9zef1dc0rmef", + "payment_attempt_id": "01e1c65b-3eca-4fca-b160-f162d641852e", + "stored_payment_method_id": "9708381b-bd52-4c65-abc0-705e636c5c47" + } + ], + "billed_at": "2024-09-09T16:01:29.536914Z", + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:00:13.888989Z", + "invoice_id": "inv_01j7br9jq8k57phrbkyehe9kwj", + "updated_at": "2024-09-09T16:01:31.565947359Z", + "business_id": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "discount_id": null, + "receipt_data": null, + "currency_code": "USD", + "billing_period": { + "ends_at": "2024-10-09T16:01:29.378686Z", + "starts_at": "2024-09-09T16:01:29.378686Z" + }, + "invoice_number": "325-11889", + "billing_details": null, + "collection_mode": "automatic", + "subscription_id": "sub_01j7br9jpk4rmmcd5crn2th1bq" + }, + "event_id": "evt_01j7br9myw2s8wzb7t8x73f7sn", + "event_type": "transaction.completed", + "occurred_at": "2024-09-09T16:01:32.124939Z", + "notification_id": "ntf_01j7br9n4yhaq2r7hzndzaa33d" + }, + "topic": "transaction.completed" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/transaction.created.json b/providers/paddlebilling/current/transaction.created.json new file mode 100644 index 0000000..ff14374 --- /dev/null +++ b/providers/paddlebilling/current/transaction.created.json @@ -0,0 +1,280 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "5740", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897614;h1=bf5051f6c5309c2d25bc1e08ff070cf53174839f20de4a0567eea6e1a3dce67b", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "txn_01j7br78cgr083zqw1jhqym40s", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "proration": null + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "proration": null + }, + { + "price": { + "id": "pri_01gsz98e27ak2tyhexptwc58yk", + "name": "One-time addon", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 1, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T14:01:28.391712Z", + "product_id": "pro_01gsz97mq9pa4fkyy0wqenepkz", + "unit_price": { + "amount": "19900", + "currency_code": "USD" + }, + "updated_at": "2024-04-09T07:23:10.921392Z", + "custom_data": null, + "description": "One-time addon", + "trial_period": null, + "billing_cycle": null, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz98e27ak2tyhexptwc58yk", + "quantity": 1, + "proration": null + } + ], + "origin": "web", + "status": "draft", + "details": { + "totals": { + "fee": null, + "tax": "9157", + "total": "54940", + "credit": "0", + "balance": "54940", + "discount": "0", + "earnings": null, + "subtotal": "45783", + "grand_total": "54940", + "currency_code": "GBP", + "credit_to_balance": "0" + }, + "line_items": [ + { + "id": "txnitm_01j7br78hpq4j57aq69gp6cvp8", + "totals": { + "tax": "4586", + "total": "27516", + "discount": "0", + "subtotal": "22930" + }, + "item_id": null, + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "tax_rate": "0.2", + "unit_totals": { + "tax": "459", + "total": "2752", + "discount": "0", + "subtotal": "2293" + } + }, + { + "id": "txnitm_01j7br78hpq4j57aq69p5eh0ra", + "totals": { + "tax": "1529", + "total": "9172", + "discount": "0", + "subtotal": "7643" + }, + "item_id": null, + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "tax_category": "standard" + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "tax_rate": "0.2", + "unit_totals": { + "tax": "1529", + "total": "9172", + "discount": "0", + "subtotal": "7643" + } + }, + { + "id": "txnitm_01j7br78hpq4j57aq69sc1dxje", + "totals": { + "tax": "3042", + "total": "18252", + "discount": "0", + "subtotal": "15210" + }, + "item_id": null, + "product": { + "id": "pro_01gsz97mq9pa4fkyy0wqenepkz", + "name": "Custom domains", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/XIG7UXoJQHmlIAiKcnkA_custom-domains.png", + "created_at": "2023-02-23T14:01:02.441Z", + "updated_at": "2024-04-05T15:43:28.971Z", + "custom_data": null, + "description": "Make AeroEdit truly your own with custom domains. Custom domains reinforce your brand identity and make it easy for your team to access your account.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz98e27ak2tyhexptwc58yk", + "quantity": 1, + "tax_rate": "0.2", + "unit_totals": { + "tax": "3042", + "total": "18252", + "discount": "0", + "subtotal": "15210" + } + } + ], + "payout_totals": null, + "tax_rates_used": [ + { + "totals": { + "tax": "9157", + "total": "54940", + "discount": "0", + "subtotal": "45783" + }, + "tax_rate": "0.2" + } + ], + "adjusted_totals": { + "fee": "0", + "tax": "9157", + "total": "54940", + "earnings": "0", + "subtotal": "45783", + "grand_total": "54940", + "currency_code": "GBP" + } + }, + "checkout": { + "url": "https://magnificent-entremet-7ae0c6.netlify.app/default/overlay?_ptxn=txn_01j7br78cgr083zqw1jhqym40s" + }, + "payments": [], + "billed_at": null, + "address_id": null, + "created_at": "2024-09-09T16:00:13.888989481Z", + "invoice_id": null, + "updated_at": "2024-09-09T16:00:13.888989481Z", + "business_id": null, + "custom_data": null, + "customer_id": null, + "discount_id": null, + "receipt_data": null, + "currency_code": "GBP", + "billing_period": null, + "invoice_number": null, + "billing_details": null, + "collection_mode": "automatic", + "subscription_id": null + }, + "event_id": "evt_01j7br78zywewybejv0njrzhan", + "event_type": "transaction.created", + "occurred_at": "2024-09-09T16:00:14.334401Z", + "notification_id": "ntf_01j7br797ss25hp5rnshksjq6y" + }, + "topic": "transaction.created" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/transaction.paid.json b/providers/paddlebilling/current/transaction.paid.json new file mode 100644 index 0000000..7873cca --- /dev/null +++ b/providers/paddlebilling/current/transaction.paid.json @@ -0,0 +1,301 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "6300", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897690;h1=620340be70dbf4ac79d809ab15f026902998513f4cd274068ddd84affab36929", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "txn_01j7br78cgr083zqw1jhqym40s", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "proration": null + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "proration": null + }, + { + "price": { + "id": "pri_01gsz98e27ak2tyhexptwc58yk", + "name": "One-time addon", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 1, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T14:01:28.391712Z", + "product_id": "pro_01gsz97mq9pa4fkyy0wqenepkz", + "unit_price": { + "amount": "19900", + "currency_code": "USD" + }, + "updated_at": "2024-04-09T07:23:10.921392Z", + "custom_data": null, + "description": "One-time addon", + "trial_period": null, + "billing_cycle": null, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz98e27ak2tyhexptwc58yk", + "quantity": 1, + "proration": null + } + ], + "origin": "web", + "status": "paid", + "details": { + "totals": { + "fee": null, + "tax": "5315", + "total": "65215", + "credit": "0", + "balance": "0", + "discount": "0", + "earnings": null, + "subtotal": "59900", + "grand_total": "65215", + "currency_code": "USD", + "credit_to_balance": "0" + }, + "line_items": [ + { + "id": "txnitm_01j7br8aeyz8r6wm2zywjw97d4", + "totals": { + "tax": "2662", + "total": "32662", + "discount": "0", + "subtotal": "30000" + }, + "item_id": null, + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "266", + "total": "3266", + "discount": "0", + "subtotal": "3000" + } + }, + { + "id": "txnitm_01j7br8aez018mgmrj3bpmxmh7", + "totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + }, + "item_id": null, + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "tax_category": "standard" + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + } + }, + { + "id": "txnitm_01j7br8aez018mgmrj3e9nbbr7", + "totals": { + "tax": "1766", + "total": "21666", + "discount": "0", + "subtotal": "19900" + }, + "item_id": null, + "product": { + "id": "pro_01gsz97mq9pa4fkyy0wqenepkz", + "name": "Custom domains", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/XIG7UXoJQHmlIAiKcnkA_custom-domains.png", + "created_at": "2023-02-23T14:01:02.441Z", + "updated_at": "2024-04-05T15:43:28.971Z", + "custom_data": null, + "description": "Make AeroEdit truly your own with custom domains. Custom domains reinforce your brand identity and make it easy for your team to access your account.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz98e27ak2tyhexptwc58yk", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "1766", + "total": "21666", + "discount": "0", + "subtotal": "19900" + } + } + ], + "payout_totals": null, + "tax_rates_used": [ + { + "totals": { + "tax": "5315", + "total": "65215", + "discount": "0", + "subtotal": "59900" + }, + "tax_rate": "0.08875" + } + ], + "adjusted_totals": { + "fee": "0", + "tax": "5315", + "total": "65215", + "earnings": "0", + "subtotal": "59900", + "grand_total": "65215", + "currency_code": "USD" + } + }, + "checkout": { + "url": "https://magnificent-entremet-7ae0c6.netlify.app/default/overlay?_ptxn=txn_01j7br78cgr083zqw1jhqym40s" + }, + "payments": [ + { + "amount": "65215", + "status": "captured", + "created_at": "2024-09-09T16:01:17.683756Z", + "error_code": null, + "captured_at": "2024-09-09T16:01:29.378686Z", + "method_details": { + "card": { + "type": "visa", + "last4": "3184", + "expiry_year": 2029, + "expiry_month": 10, + "cardholder_name": "Michael McGovern" + }, + "type": "card" + }, + "payment_method_id": "paymtd_01j7br96tsmrhw9zef1dc0rmef", + "payment_attempt_id": "01e1c65b-3eca-4fca-b160-f162d641852e", + "stored_payment_method_id": "9708381b-bd52-4c65-abc0-705e636c5c47" + } + ], + "billed_at": "2024-09-09T16:01:29.53691403Z", + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:00:13.888989Z", + "invoice_id": null, + "updated_at": "2024-09-09T16:01:29.536915778Z", + "business_id": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "discount_id": null, + "receipt_data": null, + "currency_code": "USD", + "billing_period": null, + "invoice_number": null, + "billing_details": null, + "collection_mode": "automatic", + "subscription_id": null + }, + "event_id": "evt_01j7br9jtryxbtd89yzj3pkyec", + "event_type": "transaction.paid", + "occurred_at": "2024-09-09T16:01:29.944764Z", + "notification_id": "ntf_01j7br9k4jznazhz99sb26z34t" + }, + "topic": "transaction.paid" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/transaction.past_due.json b/providers/paddlebilling/current/transaction.past_due.json new file mode 100644 index 0000000..c4605fa --- /dev/null +++ b/providers/paddlebilling/current/transaction.past_due.json @@ -0,0 +1,245 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "5086", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897845;h1=e45b8dc45a7b8fcac79579cf1b32613998b490ce5de548de697faa1aa9d0914d", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "txn_01j7bre7fka75pa1k8arkf0by3", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "proration": null + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "proration": null + } + ], + "origin": "subscription_recurring", + "status": "past_due", + "details": { + "totals": { + "fee": null, + "tax": "3549", + "total": "43549", + "credit": "0", + "balance": "43549", + "discount": "0", + "earnings": null, + "subtotal": "40000", + "grand_total": "43549", + "currency_code": "USD", + "credit_to_balance": "0" + }, + "line_items": [ + { + "id": "txnitm_01j7bre7vtfvxd0mvhr7s4x55h", + "totals": { + "tax": "2662", + "total": "32662", + "discount": "0", + "subtotal": "30000" + }, + "item_id": null, + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "266", + "total": "3266", + "discount": "0", + "subtotal": "3000" + } + }, + { + "id": "txnitm_01j7bre7vvfcpg0hjkgypbp002", + "totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + }, + "item_id": null, + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "tax_category": "standard" + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + } + } + ], + "payout_totals": null, + "tax_rates_used": [ + { + "totals": { + "tax": "3549", + "total": "43549", + "discount": "0", + "subtotal": "40000" + }, + "tax_rate": "0.08875" + } + ], + "adjusted_totals": { + "fee": "0", + "tax": "3549", + "total": "43549", + "earnings": "0", + "subtotal": "40000", + "grand_total": "43549", + "currency_code": "USD" + } + }, + "checkout": { + "url": "https://magnificent-entremet-7ae0c6.netlify.app/default/overlay?_ptxn=txn_01j7bre7fka75pa1k8arkf0by3" + }, + "payments": [ + { + "amount": "43549", + "status": "error", + "created_at": "2024-09-09T16:04:02.697051Z", + "error_code": "authentication_failed", + "captured_at": null, + "method_details": { + "card": { + "type": "visa", + "last4": "3184", + "expiry_year": 2029, + "expiry_month": 10, + "cardholder_name": "Michael McGovern" + }, + "type": "card" + }, + "payment_method_id": "paymtd_01j7br96tsmrhw9zef1dc0rmef", + "payment_attempt_id": "58c9c9a3-593c-428b-a2d4-cfc1603d4c36", + "stored_payment_method_id": "9708381b-bd52-4c65-abc0-705e636c5c47" + } + ], + "billed_at": "2024-09-09T16:04:02.163775Z", + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:04:02.613735Z", + "invoice_id": null, + "updated_at": "2024-09-09T16:04:04.278528938Z", + "business_id": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "discount_id": null, + "receipt_data": null, + "currency_code": "USD", + "billing_period": { + "ends_at": "2024-11-09T16:01:29.378686Z", + "starts_at": "2024-10-09T16:01:29.378686Z" + }, + "invoice_number": null, + "billing_details": null, + "collection_mode": "automatic", + "subscription_id": "sub_01j7br9jpk4rmmcd5crn2th1bq" + }, + "event_id": "evt_01j7brea32v1fg5hzt0fdyc7x1", + "event_type": "transaction.past_due", + "occurred_at": "2024-09-09T16:04:04.834513Z", + "notification_id": "ntf_01j7breaj7w2vemrk7f92vmgbj" + }, + "topic": "transaction.past_due" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/transaction.payment_failed.json b/providers/paddlebilling/current/transaction.payment_failed.json new file mode 100644 index 0000000..f2c91a0 --- /dev/null +++ b/providers/paddlebilling/current/transaction.payment_failed.json @@ -0,0 +1,245 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "5087", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897845;h1=2692cf82aa593f40017eee406a6aadea4c153e543053b9b43e4f85489d8adf69", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "txn_01j7bre7fka75pa1k8arkf0by3", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "proration": null + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "proration": null + } + ], + "origin": "subscription_recurring", + "status": "billed", + "details": { + "totals": { + "fee": null, + "tax": "3549", + "total": "43549", + "credit": "0", + "balance": "43549", + "discount": "0", + "earnings": null, + "subtotal": "40000", + "grand_total": "43549", + "currency_code": "USD", + "credit_to_balance": "0" + }, + "line_items": [ + { + "id": "txnitm_01j7bre7vtfvxd0mvhr7s4x55h", + "totals": { + "tax": "2662", + "total": "32662", + "discount": "0", + "subtotal": "30000" + }, + "item_id": null, + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "266", + "total": "3266", + "discount": "0", + "subtotal": "3000" + } + }, + { + "id": "txnitm_01j7bre7vvfcpg0hjkgypbp002", + "totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + }, + "item_id": null, + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "tax_category": "standard" + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + } + } + ], + "payout_totals": null, + "tax_rates_used": [ + { + "totals": { + "tax": "3549", + "total": "43549", + "discount": "0", + "subtotal": "40000" + }, + "tax_rate": "0.08875" + } + ], + "adjusted_totals": { + "fee": "0", + "tax": "3549", + "total": "43549", + "earnings": "0", + "subtotal": "40000", + "grand_total": "43549", + "currency_code": "USD" + } + }, + "checkout": { + "url": "https://magnificent-entremet-7ae0c6.netlify.app/default/overlay?_ptxn=txn_01j7bre7fka75pa1k8arkf0by3" + }, + "payments": [ + { + "amount": "43549", + "status": "error", + "created_at": "2024-09-09T16:04:02.697051Z", + "error_code": "authentication_failed", + "captured_at": null, + "method_details": { + "card": { + "type": "visa", + "last4": "3184", + "expiry_year": 2029, + "expiry_month": 10, + "cardholder_name": "Michael McGovern" + }, + "type": "card" + }, + "payment_method_id": "paymtd_01j7br96tsmrhw9zef1dc0rmef", + "payment_attempt_id": "58c9c9a3-593c-428b-a2d4-cfc1603d4c36", + "stored_payment_method_id": "9708381b-bd52-4c65-abc0-705e636c5c47" + } + ], + "billed_at": "2024-09-09T16:04:02.163775Z", + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:04:02.613735Z", + "invoice_id": null, + "updated_at": "2024-09-09T16:04:02.613735Z", + "business_id": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "discount_id": null, + "receipt_data": null, + "currency_code": "USD", + "billing_period": { + "ends_at": "2024-11-09T16:01:29.378686Z", + "starts_at": "2024-10-09T16:01:29.378686Z" + }, + "invoice_number": null, + "billing_details": null, + "collection_mode": "automatic", + "subscription_id": "sub_01j7br9jpk4rmmcd5crn2th1bq" + }, + "event_id": "evt_01j7brea33qcp49ab8c1n6q034", + "event_type": "transaction.payment_failed", + "occurred_at": "2024-09-09T16:04:04.835508Z", + "notification_id": "ntf_01j7breaj8kq311b1514ytt040" + }, + "topic": "transaction.payment_failed" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/transaction.ready.json b/providers/paddlebilling/current/transaction.ready.json new file mode 100644 index 0000000..c551aad --- /dev/null +++ b/providers/paddlebilling/current/transaction.ready.json @@ -0,0 +1,280 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "5809", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897649;h1=73041d87b9858cad71e175f04ba55f759a9e9b0fb06554e6105bfaa161dafa30", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "txn_01j7br78cgr083zqw1jhqym40s", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "proration": null + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "proration": null + }, + { + "price": { + "id": "pri_01gsz98e27ak2tyhexptwc58yk", + "name": "One-time addon", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 1, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T14:01:28.391712Z", + "product_id": "pro_01gsz97mq9pa4fkyy0wqenepkz", + "unit_price": { + "amount": "19900", + "currency_code": "USD" + }, + "updated_at": "2024-04-09T07:23:10.921392Z", + "custom_data": null, + "description": "One-time addon", + "trial_period": null, + "billing_cycle": null, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz98e27ak2tyhexptwc58yk", + "quantity": 1, + "proration": null + } + ], + "origin": "web", + "status": "ready", + "details": { + "totals": { + "fee": null, + "tax": "5315", + "total": "65215", + "credit": "0", + "balance": "65215", + "discount": "0", + "earnings": null, + "subtotal": "59900", + "grand_total": "65215", + "currency_code": "USD", + "credit_to_balance": "0" + }, + "line_items": [ + { + "id": "txnitm_01j7br8aeyz8r6wm2zywjw97d4", + "totals": { + "tax": "2662", + "total": "32662", + "discount": "0", + "subtotal": "30000" + }, + "item_id": null, + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "266", + "total": "3266", + "discount": "0", + "subtotal": "3000" + } + }, + { + "id": "txnitm_01j7br8aez018mgmrj3bpmxmh7", + "totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + }, + "item_id": null, + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "tax_category": "standard" + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + } + }, + { + "id": "txnitm_01j7br8aez018mgmrj3e9nbbr7", + "totals": { + "tax": "1766", + "total": "21666", + "discount": "0", + "subtotal": "19900" + }, + "item_id": null, + "product": { + "id": "pro_01gsz97mq9pa4fkyy0wqenepkz", + "name": "Custom domains", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/XIG7UXoJQHmlIAiKcnkA_custom-domains.png", + "created_at": "2023-02-23T14:01:02.441Z", + "updated_at": "2024-04-05T15:43:28.971Z", + "custom_data": null, + "description": "Make AeroEdit truly your own with custom domains. Custom domains reinforce your brand identity and make it easy for your team to access your account.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz98e27ak2tyhexptwc58yk", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "1766", + "total": "21666", + "discount": "0", + "subtotal": "19900" + } + } + ], + "payout_totals": null, + "tax_rates_used": [ + { + "totals": { + "tax": "5315", + "total": "65215", + "discount": "0", + "subtotal": "59900" + }, + "tax_rate": "0.08875" + } + ], + "adjusted_totals": { + "fee": "0", + "tax": "5315", + "total": "65215", + "earnings": "0", + "subtotal": "59900", + "grand_total": "65215", + "currency_code": "USD" + } + }, + "checkout": { + "url": "https://magnificent-entremet-7ae0c6.netlify.app/default/overlay?_ptxn=txn_01j7br78cgr083zqw1jhqym40s" + }, + "payments": [], + "billed_at": null, + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:00:13.888989Z", + "invoice_id": null, + "updated_at": "2024-09-09T16:00:48.609971244Z", + "business_id": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "discount_id": null, + "receipt_data": null, + "currency_code": "USD", + "billing_period": null, + "invoice_number": null, + "billing_details": null, + "collection_mode": "automatic", + "subscription_id": null + }, + "event_id": "evt_01j7br8avv2rjxwfgkqt26232e", + "event_type": "transaction.ready", + "occurred_at": "2024-09-09T16:00:49.019800Z", + "notification_id": "ntf_01j7br8b12tc3egc4ej67je35y" + }, + "topic": "transaction.ready" +} \ No newline at end of file diff --git a/providers/paddlebilling/current/transaction.updated.json b/providers/paddlebilling/current/transaction.updated.json new file mode 100644 index 0000000..42617d8 --- /dev/null +++ b/providers/paddlebilling/current/transaction.updated.json @@ -0,0 +1,318 @@ +{ + "headers": { + "user-agent": "Paddle", + "content-length": "6685", + "accept": "application/json", + "accept-encoding": "gzip", + "content-type": "application/json", + "paddle-signature": "ts=1725897692;h1=66c74fadeaf56f23556971f4c4d8e2d4dca7b18481401bf874d5f7a2ce9cd269", + "paddle-version": "1" + }, + "body": { + "data": { + "id": "txn_01j7br78cgr083zqw1jhqym40s", + "items": [ + { + "price": { + "id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "name": "Monthly (per seat)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 999, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T13:55:22.538367Z", + "product_id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "unit_price": { + "amount": "3000", + "currency_code": "USD" + }, + "updated_at": "2024-04-11T13:54:52.254748Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "proration": null + }, + { + "price": { + "id": "pri_01h1vjfevh5etwq3rb416a23h2", + "name": "Monthly (recurring addon)", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 100, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-06-01T13:31:12.625056Z", + "product_id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "unit_price": { + "amount": "10000", + "currency_code": "USD" + }, + "updated_at": "2024-04-12T10:42:45.476453Z", + "custom_data": null, + "description": "Monthly", + "trial_period": null, + "billing_cycle": { + "interval": "month", + "frequency": 1 + }, + "unit_price_overrides": [] + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "proration": null + }, + { + "price": { + "id": "pri_01gsz98e27ak2tyhexptwc58yk", + "name": "One-time addon", + "type": "standard", + "status": "active", + "quantity": { + "maximum": 1, + "minimum": 1 + }, + "tax_mode": "account_setting", + "created_at": "2023-02-23T14:01:28.391712Z", + "product_id": "pro_01gsz97mq9pa4fkyy0wqenepkz", + "unit_price": { + "amount": "19900", + "currency_code": "USD" + }, + "updated_at": "2024-04-09T07:23:10.921392Z", + "custom_data": null, + "description": "One-time addon", + "trial_period": null, + "billing_cycle": null, + "unit_price_overrides": [] + }, + "price_id": "pri_01gsz98e27ak2tyhexptwc58yk", + "quantity": 1, + "proration": null + } + ], + "origin": "web", + "status": "completed", + "details": { + "totals": { + "fee": "3311", + "tax": "5315", + "total": "65215", + "credit": "0", + "balance": "0", + "discount": "0", + "earnings": "56589", + "subtotal": "59900", + "grand_total": "65215", + "currency_code": "USD", + "credit_to_balance": "0" + }, + "line_items": [ + { + "id": "txnitm_01j7br8aeyz8r6wm2zywjw97d4", + "totals": { + "tax": "2662", + "total": "32662", + "discount": "0", + "subtotal": "30000" + }, + "item_id": null, + "product": { + "id": "pro_01gsz4t5hdjse780zja8vvr7jg", + "name": "AeroEdit Pro", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/bT1XUOJAQhOUxGs83cbk_pro.png", + "created_at": "2023-02-23T12:43:46.605Z", + "updated_at": "2024-04-05T15:53:44.687Z", + "custom_data": { + "features": { + "sso": false, + "route_planning": true, + "payment_by_invoice": false, + "aircraft_performance": true, + "compliance_monitoring": true, + "flight_log_management": true + }, + "suggested_addons": [ + "pro_01h1vjes1y163xfj1rh1tkfb65", + "pro_01gsz97mq9pa4fkyy0wqenepkz" + ], + "upgrade_description": "Move from Basic to Pro to take advantage of aircraft performance, advanced route planning, and compliance monitoring." + }, + "description": "Designed for professional pilots, including all features plus in Basic plus compliance monitoring, route optimization, and third-party integrations.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz8x8sawmvhz1pv30nge1ke", + "quantity": 10, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "266", + "total": "3266", + "discount": "0", + "subtotal": "3000" + } + }, + { + "id": "txnitm_01j7br8aez018mgmrj3bpmxmh7", + "totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + }, + "item_id": null, + "product": { + "id": "pro_01h1vjes1y163xfj1rh1tkfb65", + "name": "Analytics addon", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/97dRpA6SXzcE6ekK9CAr_analytics.png", + "created_at": "2023-06-01T13:30:50.302Z", + "updated_at": "2024-04-05T15:47:17.163Z", + "custom_data": null, + "description": "Unlock advanced insights into your flight data with enhanced analytics and reporting features. Includes customizable reporting templates and trend analysis across flights.", + "tax_category": "standard" + }, + "price_id": "pri_01h1vjfevh5etwq3rb416a23h2", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "887", + "total": "10887", + "discount": "0", + "subtotal": "10000" + } + }, + { + "id": "txnitm_01j7br8aez018mgmrj3e9nbbr7", + "totals": { + "tax": "1766", + "total": "21666", + "discount": "0", + "subtotal": "19900" + }, + "item_id": null, + "product": { + "id": "pro_01gsz97mq9pa4fkyy0wqenepkz", + "name": "Custom domains", + "type": "standard", + "status": "active", + "image_url": "https://paddle.s3.amazonaws.com/user/165798/XIG7UXoJQHmlIAiKcnkA_custom-domains.png", + "created_at": "2023-02-23T14:01:02.441Z", + "updated_at": "2024-04-05T15:43:28.971Z", + "custom_data": null, + "description": "Make AeroEdit truly your own with custom domains. Custom domains reinforce your brand identity and make it easy for your team to access your account.", + "tax_category": "standard" + }, + "price_id": "pri_01gsz98e27ak2tyhexptwc58yk", + "quantity": 1, + "tax_rate": "0.08875", + "unit_totals": { + "tax": "1766", + "total": "21666", + "discount": "0", + "subtotal": "19900" + } + } + ], + "payout_totals": { + "fee": "3311", + "tax": "5315", + "total": "65215", + "credit": "0", + "balance": "0", + "discount": "0", + "earnings": "56589", + "fee_rate": "0.05", + "subtotal": "59900", + "grand_total": "65215", + "currency_code": "USD", + "exchange_rate": "1", + "credit_to_balance": "0" + }, + "tax_rates_used": [ + { + "totals": { + "tax": "5315", + "total": "65215", + "discount": "0", + "subtotal": "59900" + }, + "tax_rate": "0.08875" + } + ], + "adjusted_totals": { + "fee": "3311", + "tax": "5315", + "total": "65215", + "earnings": "56589", + "subtotal": "59900", + "grand_total": "65215", + "currency_code": "USD" + } + }, + "checkout": { + "url": "https://magnificent-entremet-7ae0c6.netlify.app/default/overlay?_ptxn=txn_01j7br78cgr083zqw1jhqym40s" + }, + "payments": [ + { + "amount": "65215", + "status": "captured", + "created_at": "2024-09-09T16:01:17.683756Z", + "error_code": null, + "captured_at": "2024-09-09T16:01:29.378686Z", + "method_details": { + "card": { + "type": "visa", + "last4": "3184", + "expiry_year": 2029, + "expiry_month": 10, + "cardholder_name": "Michael McGovern" + }, + "type": "card" + }, + "payment_method_id": "paymtd_01j7br96tsmrhw9zef1dc0rmef", + "payment_attempt_id": "01e1c65b-3eca-4fca-b160-f162d641852e", + "stored_payment_method_id": "9708381b-bd52-4c65-abc0-705e636c5c47" + } + ], + "billed_at": "2024-09-09T16:01:29.536914Z", + "address_id": "add_01j7br89t3wgn5v5w49hm1mepv", + "created_at": "2024-09-09T16:00:13.888989Z", + "invoice_id": "inv_01j7br9jq8k57phrbkyehe9kwj", + "updated_at": "2024-09-09T16:01:31.565947359Z", + "business_id": null, + "custom_data": null, + "customer_id": "ctm_01j7br89shp7xpaenx22h8qetw", + "discount_id": null, + "receipt_data": null, + "currency_code": "USD", + "billing_period": { + "ends_at": "2024-10-09T16:01:29.378686Z", + "starts_at": "2024-09-09T16:01:29.378686Z" + }, + "invoice_number": "325-11889", + "billing_details": null, + "collection_mode": "automatic", + "subscription_id": "sub_01j7br9jpk4rmmcd5crn2th1bq" + }, + "event_id": "evt_01j7br9myygc09mszbeh4d808h", + "event_type": "transaction.updated", + "occurred_at": "2024-09-09T16:01:32.126219Z", + "notification_id": "ntf_01j7br9n5mk8wgrdcfj6y03xey" + }, + "topic": "transaction.updated" +} \ No newline at end of file diff --git a/providers/paddlebilling/index.json b/providers/paddlebilling/index.json new file mode 100644 index 0000000..73b2d47 --- /dev/null +++ b/providers/paddlebilling/index.json @@ -0,0 +1,7 @@ +{ + "label": "Paddle Billing", + "configs": { + "latest_version": "current", + "topic_identifier": "event_type" + } + } From b3c78a816484b974b366aee58b3be1700025c27e Mon Sep 17 00:00:00 2001 From: heymcgovern <25659933+heymcgovern@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:52:55 +0100 Subject: [PATCH 2/2] Rename Paddle to Paddle Classic --- .../current/payment_dispute_closed.json | 0 .../current/payment_dispute_created.json | 0 .../{paddle => paddleclassic}/current/payment_refunded.json | 0 .../{paddle => paddleclassic}/current/payment_succeeded.json | 0 .../{paddle => paddleclassic}/current/subscription_created.json | 0 .../{paddle => paddleclassic}/current/subscription_updated.json | 0 .../{paddle => paddleclassic}/current/transfer_created.json | 0 providers/{paddle => paddleclassic}/current/transfer_paid.json | 0 providers/{paddle => paddleclassic}/index.json | 2 +- 9 files changed, 1 insertion(+), 1 deletion(-) rename providers/{paddle => paddleclassic}/current/payment_dispute_closed.json (100%) rename providers/{paddle => paddleclassic}/current/payment_dispute_created.json (100%) rename providers/{paddle => paddleclassic}/current/payment_refunded.json (100%) rename providers/{paddle => paddleclassic}/current/payment_succeeded.json (100%) rename providers/{paddle => paddleclassic}/current/subscription_created.json (100%) rename providers/{paddle => paddleclassic}/current/subscription_updated.json (100%) rename providers/{paddle => paddleclassic}/current/transfer_created.json (100%) rename providers/{paddle => paddleclassic}/current/transfer_paid.json (100%) rename providers/{paddle => paddleclassic}/index.json (76%) diff --git a/providers/paddle/current/payment_dispute_closed.json b/providers/paddleclassic/current/payment_dispute_closed.json similarity index 100% rename from providers/paddle/current/payment_dispute_closed.json rename to providers/paddleclassic/current/payment_dispute_closed.json diff --git a/providers/paddle/current/payment_dispute_created.json b/providers/paddleclassic/current/payment_dispute_created.json similarity index 100% rename from providers/paddle/current/payment_dispute_created.json rename to providers/paddleclassic/current/payment_dispute_created.json diff --git a/providers/paddle/current/payment_refunded.json b/providers/paddleclassic/current/payment_refunded.json similarity index 100% rename from providers/paddle/current/payment_refunded.json rename to providers/paddleclassic/current/payment_refunded.json diff --git a/providers/paddle/current/payment_succeeded.json b/providers/paddleclassic/current/payment_succeeded.json similarity index 100% rename from providers/paddle/current/payment_succeeded.json rename to providers/paddleclassic/current/payment_succeeded.json diff --git a/providers/paddle/current/subscription_created.json b/providers/paddleclassic/current/subscription_created.json similarity index 100% rename from providers/paddle/current/subscription_created.json rename to providers/paddleclassic/current/subscription_created.json diff --git a/providers/paddle/current/subscription_updated.json b/providers/paddleclassic/current/subscription_updated.json similarity index 100% rename from providers/paddle/current/subscription_updated.json rename to providers/paddleclassic/current/subscription_updated.json diff --git a/providers/paddle/current/transfer_created.json b/providers/paddleclassic/current/transfer_created.json similarity index 100% rename from providers/paddle/current/transfer_created.json rename to providers/paddleclassic/current/transfer_created.json diff --git a/providers/paddle/current/transfer_paid.json b/providers/paddleclassic/current/transfer_paid.json similarity index 100% rename from providers/paddle/current/transfer_paid.json rename to providers/paddleclassic/current/transfer_paid.json diff --git a/providers/paddle/index.json b/providers/paddleclassic/index.json similarity index 76% rename from providers/paddle/index.json rename to providers/paddleclassic/index.json index 077320b..2fdc433 100644 --- a/providers/paddle/index.json +++ b/providers/paddleclassic/index.json @@ -1,5 +1,5 @@ { - "label": "Paddle", + "label": "Paddle Classic", "configs": { "latest_version": "current", "topic_identifier": "alert_name"