Skip to content

Add Paddle Billing samples, then rename Paddle to Paddle Classic #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions providers/paddlebilling/current/address.created.json
Original file line number Diff line number Diff line change
@@ -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"
}
61 changes: 61 additions & 0 deletions providers/paddlebilling/current/adjustment.created.json
Original file line number Diff line number Diff line change
@@ -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"
}
61 changes: 61 additions & 0 deletions providers/paddlebilling/current/adjustment.updated.json
Original file line number Diff line number Diff line change
@@ -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"
}
30 changes: 30 additions & 0 deletions providers/paddlebilling/current/customer.created.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"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"
}
164 changes: 164 additions & 0 deletions providers/paddlebilling/current/subscription.activated.json
Original file line number Diff line number Diff line change
@@ -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"
}
Loading