backend-manager 5.9.6 → 5.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -3
- package/src/manager/events/cron/runner.js +0 -1
- package/src/manager/libraries/email/data/disposable-domains.json +21 -0
- package/src/test/fixtures/firebase-project/.temp/test-mode.json +1 -1
- package/src/test/fixtures/firebase-project/database-debug.log +8 -8
- package/src/test/fixtures/firebase-project/firestore-debug.log +55 -59
- package/src/test/fixtures/firebase-project/pubsub-debug.log +3 -3
- package/templates/_.env +42 -0
- package/templates/_.gitignore +60 -0
- package/templates/backend-manager-config.json +249 -0
- package/templates/database.rules.json +83 -0
- package/templates/firebase.json +66 -0
- package/templates/firestore.indexes.json +4 -0
- package/templates/firestore.rules +112 -0
- package/templates/public/404.html +26 -0
- package/templates/public/index.html +24 -0
- package/templates/remoteconfig.template.json +1 -0
- package/templates/storage-lifecycle-config-1-day.json +9 -0
- package/templates/storage-lifecycle-config-30-days.json +9 -0
- package/templates/storage.rules +8 -0
- package/test/_init/accounts-validation.js +58 -0
- package/test/_legacy/ai/index.js +231 -0
- package/test/_legacy/ai/test.jpg +0 -0
- package/test/_legacy/ai/test.pdf +0 -0
- package/test/_legacy/index.js +31 -0
- package/test/_legacy/payment-resolver/chargebee/orders/refunded.json +0 -0
- package/test/_legacy/payment-resolver/chargebee/orders/unpaid.json +98 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/active.json +578 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-in-trial.json +38 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-skipped-to-active.json +135 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-to-active-to-cancelled.json +42 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-to-active.json +44 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-to-cancelled.json +39 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-to-refund.json +143 -0
- package/test/_legacy/payment-resolver/chargebee/subscriptions/trial-to-suspended.json +48 -0
- package/test/_legacy/payment-resolver/coinbase/orders/regular.json +204 -0
- package/test/_legacy/payment-resolver/coinbase/subscriptions/cancelled.json +204 -0
- package/test/_legacy/payment-resolver/coinbase/subscriptions/paid-2.json +125 -0
- package/test/_legacy/payment-resolver/index.js +1558 -0
- package/test/_legacy/payment-resolver/paypal/orders/refunded.json +0 -0
- package/test/_legacy/payment-resolver/paypal/orders/regular.json +120 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/active-refund-previous-stmnt.json +323 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/active.json +192 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-in-trial.json +125 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-payment-not-complete.json +76 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-payment-overdue-2.json +114 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-payment-overdue.json +114 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-active-to-cancelled.json +111 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-active.json +132 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-cancelled.json +107 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-expired.json +91 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-refund.json +147 -0
- package/test/_legacy/payment-resolver/paypal/subscriptions/trial-to-suspended.json +120 -0
- package/test/_legacy/payment-resolver/stripe/orders/refunded.json +0 -0
- package/test/_legacy/payment-resolver/stripe/orders/regular.json +91 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/active.json +421 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-in-trial.json +349 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-to-active-failed-authorization.json +430 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-to-active.json +319 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-to-cancelled.json +319 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-to-refund.json +414 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/trial-to-suspended.json +319 -0
- package/test/_legacy/payment-resolver/stripe/subscriptions/unsure.json +339 -0
- package/test/_legacy/test-new +1178 -0
- package/test/_legacy/test.md +89 -0
- package/test/_legacy/usage.js +175 -0
- package/test/_legacy/user.js +31 -0
- package/test/ai/tools-live.js +170 -0
- package/test/boot/emulator-boots.js +37 -0
- package/test/content/blog-generate.js +160 -0
- package/test/email/campaign-send.js +45 -0
- package/test/email/consent-lifecycle.js +257 -0
- package/test/email/feedback-and-plain-send.js +52 -0
- package/test/email/fixtures/clean.json +30 -0
- package/test/email/fixtures/editorial.json +30 -0
- package/test/email/fixtures/field-report.json +53 -0
- package/test/email/marketing-lifecycle.js +132 -0
- package/test/email/newsletter-generate.js +819 -0
- package/test/email/newsletter-templates.js +491 -0
- package/test/email/templates.js +207 -0
- package/test/email/transactional-send.js +34 -0
- package/test/email/transactional.js +560 -0
- package/test/email/validation.js +710 -0
- package/test/events/auth-delete-race.js +201 -0
- package/test/events/payments/journey-payments-cancel-endpoint.js +100 -0
- package/test/events/payments/journey-payments-cancel.js +182 -0
- package/test/events/payments/journey-payments-discount.js +89 -0
- package/test/events/payments/journey-payments-failure.js +146 -0
- package/test/events/payments/journey-payments-legacy-product.js +149 -0
- package/test/events/payments/journey-payments-one-time-failure.js +111 -0
- package/test/events/payments/journey-payments-one-time.js +136 -0
- package/test/events/payments/journey-payments-plan-change.js +144 -0
- package/test/events/payments/journey-payments-refund-webhook.js +180 -0
- package/test/events/payments/journey-payments-suspend.js +181 -0
- package/test/events/payments/journey-payments-trial-cancel.js +130 -0
- package/test/events/payments/journey-payments-trial.js +171 -0
- package/test/events/payments/journey-payments-uid-resolution.js +132 -0
- package/test/events/payments/journey-payments-upgrade.js +135 -0
- package/test/fixtures/chargebee/invoice-one-time.json +27 -0
- package/test/fixtures/chargebee/subscription-active.json +44 -0
- package/test/fixtures/chargebee/subscription-cancelled.json +42 -0
- package/test/fixtures/chargebee/subscription-in-trial.json +41 -0
- package/test/fixtures/chargebee/subscription-legacy-plan.json +41 -0
- package/test/fixtures/chargebee/subscription-non-renewing.json +41 -0
- package/test/fixtures/chargebee/subscription-paused.json +42 -0
- package/test/fixtures/chargebee/webhook-payment-failed.json +51 -0
- package/test/fixtures/chargebee/webhook-subscription-created.json +47 -0
- package/test/fixtures/paypal/order-approved.json +62 -0
- package/test/fixtures/paypal/order-completed.json +110 -0
- package/test/fixtures/paypal/subscription-active.json +76 -0
- package/test/fixtures/paypal/subscription-cancelled.json +50 -0
- package/test/fixtures/paypal/subscription-suspended.json +65 -0
- package/test/fixtures/stripe/checkout-session-completed.json +130 -0
- package/test/fixtures/stripe/invoice-payment-failed.json +148 -0
- package/test/fixtures/stripe/invoice-subscription-payment-failed.json +28 -0
- package/test/fixtures/stripe/subscription-active.json +161 -0
- package/test/fixtures/stripe/subscription-canceled.json +161 -0
- package/test/fixtures/stripe/subscription-trialing.json +161 -0
- package/test/functions/admin/database-read.js +134 -0
- package/test/functions/admin/database-write.js +159 -0
- package/test/functions/admin/edit-post.js +366 -0
- package/test/functions/admin/firestore-query.js +207 -0
- package/test/functions/admin/firestore-read.js +129 -0
- package/test/functions/admin/firestore-write.js +105 -0
- package/test/functions/admin/get-stats.js +115 -0
- package/test/functions/admin/send-email.js +119 -0
- package/test/functions/admin/send-notification.js +208 -0
- package/test/functions/admin/write-repo-content.js +223 -0
- package/test/functions/general/add-marketing-contact.js +335 -0
- package/test/functions/general/fetch-post.js +54 -0
- package/test/functions/general/generate-uuid.js +114 -0
- package/test/functions/test/authenticate.js +64 -0
- package/test/functions/user/create-custom-token.js +73 -0
- package/test/functions/user/delete.js +135 -0
- package/test/functions/user/get-active-sessions.js +111 -0
- package/test/functions/user/get-subscription-info.js +99 -0
- package/test/functions/user/regenerate-api-keys.js +156 -0
- package/test/functions/user/resolve.js +52 -0
- package/test/functions/user/sign-out-all-sessions.js +94 -0
- package/test/functions/user/sign-up.js +252 -0
- package/test/functions/user/submit-feedback.js +104 -0
- package/test/functions/user/validate-settings.js +82 -0
- package/test/helpers/ai-request-payload.js +300 -0
- package/test/helpers/ai-test-provider.js +202 -0
- package/test/helpers/ai-tools-format.js +383 -0
- package/test/helpers/content/blog-auto-publisher.js +484 -0
- package/test/helpers/content/feed-parser.js +528 -0
- package/test/helpers/content/ghostii-blocks.js +134 -0
- package/test/helpers/content/ghostii-feed-integration.js +404 -0
- package/test/helpers/content/ghostii-write-article.js +243 -0
- package/test/helpers/environment.js +230 -0
- package/test/helpers/infer-contact.js +113 -0
- package/test/helpers/merge-line-files.js +271 -0
- package/test/helpers/payment/chargebee/parse-webhook.js +413 -0
- package/test/helpers/payment/chargebee/to-unified-one-time.js +147 -0
- package/test/helpers/payment/chargebee/to-unified-subscription.js +648 -0
- package/test/helpers/payment/paypal/parse-webhook.js +539 -0
- package/test/helpers/payment/paypal/to-unified-one-time.js +382 -0
- package/test/helpers/payment/paypal/to-unified-subscription.js +820 -0
- package/test/helpers/payment/stripe/parse-webhook.js +447 -0
- package/test/helpers/payment/stripe/to-unified-one-time.js +306 -0
- package/test/helpers/payment/stripe/to-unified-subscription.js +708 -0
- package/test/helpers/sanitize.js +222 -0
- package/test/helpers/slugify.js +394 -0
- package/test/helpers/storage.js +194 -0
- package/test/helpers/user.js +755 -0
- package/test/helpers/webhook-forward.js +418 -0
- package/test/mcp/discovery.js +53 -0
- package/test/mcp/oauth.js +161 -0
- package/test/mcp/protocol.js +268 -0
- package/test/mcp/roles.js +188 -0
- package/test/mcp/utils.js +245 -0
- package/test/routes/admin/create-post.js +364 -0
- package/test/routes/admin/database.js +131 -0
- package/test/routes/admin/deduplicate-image-alts.js +190 -0
- package/test/routes/admin/email.js +114 -0
- package/test/routes/admin/firestore-query.js +204 -0
- package/test/routes/admin/firestore.js +127 -0
- package/test/routes/admin/infer-contact.js +218 -0
- package/test/routes/admin/notification.js +198 -0
- package/test/routes/admin/post-resize-image.js +184 -0
- package/test/routes/admin/post.js +368 -0
- package/test/routes/admin/repo-content.js +223 -0
- package/test/routes/admin/stats.js +112 -0
- package/test/routes/content/post.js +54 -0
- package/test/routes/general/uuid.js +115 -0
- package/test/routes/marketing/campaign.js +125 -0
- package/test/routes/marketing/contact.js +370 -0
- package/test/routes/marketing/email-preferences.js +292 -0
- package/test/routes/marketing/push-send.js +32 -0
- package/test/routes/marketing/webhook-forward.js +61 -0
- package/test/routes/marketing/webhook.js +639 -0
- package/test/routes/payments/cancel.js +163 -0
- package/test/routes/payments/discount.js +80 -0
- package/test/routes/payments/dispute-alert.js +320 -0
- package/test/routes/payments/intent.js +336 -0
- package/test/routes/payments/portal.js +92 -0
- package/test/routes/payments/refund.js +179 -0
- package/test/routes/payments/trial-eligibility.js +71 -0
- package/test/routes/payments/webhook.js +107 -0
- package/test/routes/test/authenticate.js +59 -0
- package/test/routes/test/schema.js +554 -0
- package/test/routes/test/usage.js +342 -0
- package/test/routes/user/api-keys.js +156 -0
- package/test/routes/user/delete.js +136 -0
- package/test/routes/user/feedback.js +104 -0
- package/test/routes/user/sessions.js +199 -0
- package/test/routes/user/settings-validate.js +82 -0
- package/test/routes/user/signup.js +542 -0
- package/test/routes/user/subscription.js +99 -0
- package/test/routes/user/token.js +73 -0
- package/test/routes/user/user.js +157 -0
- package/test/rules/notifications.js +410 -0
- package/test/rules/payments-carts.js +371 -0
- package/test/rules/user.js +396 -0
|
File without changes
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "5CA68427PY850452F",
|
|
3
|
+
"intent": "CAPTURE",
|
|
4
|
+
"status": "COMPLETED",
|
|
5
|
+
"payment_source": {
|
|
6
|
+
"paypal": {
|
|
7
|
+
"email_address": "client@gmail.com",
|
|
8
|
+
"account_id": "DQ3E2AURE5JJN",
|
|
9
|
+
"name": {
|
|
10
|
+
"given_name": "Test",
|
|
11
|
+
"surname": "Lastname"
|
|
12
|
+
},
|
|
13
|
+
"address": {
|
|
14
|
+
"country_code": "US"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"purchase_units": [
|
|
19
|
+
{
|
|
20
|
+
"reference_id": "default",
|
|
21
|
+
"amount": {
|
|
22
|
+
"currency_code": "USD",
|
|
23
|
+
"value": "1.00"
|
|
24
|
+
},
|
|
25
|
+
"payee": {
|
|
26
|
+
"email_address": "client@gmail.com",
|
|
27
|
+
"merchant_id": "7DH38EWJF939D"
|
|
28
|
+
},
|
|
29
|
+
"description": "Spotify Playlist",
|
|
30
|
+
"custom_id": "1682566496984-0545",
|
|
31
|
+
"soft_descriptor": "PAYPAL *ITWCW SPOTIFY ",
|
|
32
|
+
"shipping": {
|
|
33
|
+
"name": {
|
|
34
|
+
"full_name": "Test Lastname"
|
|
35
|
+
},
|
|
36
|
+
"address": {
|
|
37
|
+
"address_line_1": "1234 Main Street",
|
|
38
|
+
"admin_area_2": "Los Angeles",
|
|
39
|
+
"admin_area_1": "CA",
|
|
40
|
+
"postal_code": "90000",
|
|
41
|
+
"country_code": "US"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"payments": {
|
|
45
|
+
"captures": [
|
|
46
|
+
{
|
|
47
|
+
"id": "1HG55291LY6744213",
|
|
48
|
+
"status": "COMPLETED",
|
|
49
|
+
"amount": {
|
|
50
|
+
"currency_code": "USD",
|
|
51
|
+
"value": "1.00"
|
|
52
|
+
},
|
|
53
|
+
"final_capture": true,
|
|
54
|
+
"seller_protection": {
|
|
55
|
+
"status": "ELIGIBLE",
|
|
56
|
+
"dispute_categories": [
|
|
57
|
+
"ITEM_NOT_RECEIVED",
|
|
58
|
+
"UNAUTHORIZED_TRANSACTION"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"seller_receivable_breakdown": {
|
|
62
|
+
"gross_amount": {
|
|
63
|
+
"currency_code": "USD",
|
|
64
|
+
"value": "1.00"
|
|
65
|
+
},
|
|
66
|
+
"paypal_fee": {
|
|
67
|
+
"currency_code": "USD",
|
|
68
|
+
"value": "0.52"
|
|
69
|
+
},
|
|
70
|
+
"net_amount": {
|
|
71
|
+
"currency_code": "USD",
|
|
72
|
+
"value": "0.48"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"custom_id": "1682566496984-0545",
|
|
76
|
+
"links": [
|
|
77
|
+
{
|
|
78
|
+
"href": "https://api.paypal.com/v2/payments/captures/1HG55291LY6744213",
|
|
79
|
+
"rel": "self",
|
|
80
|
+
"method": "GET"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"href": "https://api.paypal.com/v2/payments/captures/1HG55291LY6744213/refund",
|
|
84
|
+
"rel": "refund",
|
|
85
|
+
"method": "POST"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"href": "https://api.paypal.com/v2/checkout/orders/5CA68427PY850452F",
|
|
89
|
+
"rel": "up",
|
|
90
|
+
"method": "GET"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"create_time": "2023-04-27T03:40:38Z",
|
|
94
|
+
"update_time": "2023-04-27T03:40:38Z"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"payer": {
|
|
101
|
+
"name": {
|
|
102
|
+
"given_name": "Test",
|
|
103
|
+
"surname": "Lastname"
|
|
104
|
+
},
|
|
105
|
+
"email_address": "customer@gmail.com",
|
|
106
|
+
"payer_id": "98FJ29FJ389TH",
|
|
107
|
+
"address": {
|
|
108
|
+
"country_code": "US"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"create_time": "2023-04-27T03:39:50Z",
|
|
112
|
+
"update_time": "2023-04-27T03:40:38Z",
|
|
113
|
+
"links": [
|
|
114
|
+
{
|
|
115
|
+
"href": "https://api.paypal.com/v2/checkout/orders/5CA68427PY850452F",
|
|
116
|
+
"rel": "self",
|
|
117
|
+
"method": "GET"
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": "ACTIVE",
|
|
3
|
+
"status_update_time": "2024-01-18T12:32:53Z",
|
|
4
|
+
"id": "I-PXC8BVN91X5W",
|
|
5
|
+
"plan_id": "P-10V185024H967894YMBE2XEQ",
|
|
6
|
+
"start_time": "2023-02-12T13:34:46Z",
|
|
7
|
+
"quantity": "1",
|
|
8
|
+
"shipping_amount": {
|
|
9
|
+
"currency_code": "USD",
|
|
10
|
+
"value": "0.0"
|
|
11
|
+
},
|
|
12
|
+
"subscriber": {
|
|
13
|
+
"email_address": "valueyournetwork@gmail.com",
|
|
14
|
+
"payer_id": "CVPVMLXCN65JU",
|
|
15
|
+
"name": {
|
|
16
|
+
"given_name": "Bertrand",
|
|
17
|
+
"surname": "Dolbeau"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"billing_info": {
|
|
21
|
+
"outstanding_balance": {
|
|
22
|
+
"currency_code": "USD",
|
|
23
|
+
"value": "0.0"
|
|
24
|
+
},
|
|
25
|
+
"cycle_executions": [{
|
|
26
|
+
"tenure_type": "REGULAR",
|
|
27
|
+
"sequence": 1,
|
|
28
|
+
"cycles_completed": 12,
|
|
29
|
+
"cycles_remaining": 0,
|
|
30
|
+
"current_pricing_scheme_version": 2,
|
|
31
|
+
"total_cycles": 0
|
|
32
|
+
}],
|
|
33
|
+
"last_payment": {
|
|
34
|
+
"amount": {
|
|
35
|
+
"currency_code": "USD",
|
|
36
|
+
"value": "19.95"
|
|
37
|
+
},
|
|
38
|
+
"time": "2024-01-12T10:29:45Z"
|
|
39
|
+
},
|
|
40
|
+
"failed_payments_count": 0
|
|
41
|
+
},
|
|
42
|
+
"create_time": "2023-02-12T13:35:12Z",
|
|
43
|
+
"update_time": "2024-01-18T12:32:53Z",
|
|
44
|
+
"custom_id": "1676208874533-0516",
|
|
45
|
+
"plan_overridden": false,
|
|
46
|
+
"plan": {
|
|
47
|
+
"product_id": "somiibo-premium-1",
|
|
48
|
+
"name": "Somiibo Premium (Monthly)",
|
|
49
|
+
"description": "A free social media automation platform that organically grows your online presence and gets you more followers.",
|
|
50
|
+
"billing_cycles": [{
|
|
51
|
+
"pricing_scheme": {
|
|
52
|
+
"fixed_price": {
|
|
53
|
+
"currency_code": "USD",
|
|
54
|
+
"value": "19.95"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"frequency": {
|
|
58
|
+
"interval_unit": "MONTH",
|
|
59
|
+
"interval_count": 1
|
|
60
|
+
},
|
|
61
|
+
"tenure_type": "REGULAR",
|
|
62
|
+
"sequence": 1,
|
|
63
|
+
"total_cycles": 0
|
|
64
|
+
}],
|
|
65
|
+
"payment_preferences": {
|
|
66
|
+
"service_type": "PREPAID",
|
|
67
|
+
"auto_bill_outstanding": true,
|
|
68
|
+
"setup_fee": {
|
|
69
|
+
"currency_code": "USD",
|
|
70
|
+
"value": "0.0"
|
|
71
|
+
},
|
|
72
|
+
"setup_fee_failure_action": "CANCEL",
|
|
73
|
+
"payment_failure_threshold": 0
|
|
74
|
+
},
|
|
75
|
+
"quantity_supported": true
|
|
76
|
+
},
|
|
77
|
+
"links": [{
|
|
78
|
+
"href": "https://api.paypal.com/v1/billing/subscriptions/I-PXC8BVN91X5W?fields=plan",
|
|
79
|
+
"rel": "self",
|
|
80
|
+
"method": "GET"
|
|
81
|
+
}],
|
|
82
|
+
"transactions": [{
|
|
83
|
+
"status": "HELD",
|
|
84
|
+
"id": "5VJ49181YC978572C",
|
|
85
|
+
"amount_with_breakdown": {
|
|
86
|
+
"gross_amount": {
|
|
87
|
+
"currency_code": "USD",
|
|
88
|
+
"value": "19.95"
|
|
89
|
+
},
|
|
90
|
+
"fee_amount": {
|
|
91
|
+
"currency_code": "USD",
|
|
92
|
+
"value": "1.49"
|
|
93
|
+
},
|
|
94
|
+
"net_amount": {
|
|
95
|
+
"currency_code": "USD",
|
|
96
|
+
"value": "18.46"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"payer_name": {},
|
|
100
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
101
|
+
"time": "2024-01-12T10:29:45.000Z"
|
|
102
|
+
}, {
|
|
103
|
+
"status": "COMPLETED",
|
|
104
|
+
"id": "76E70166T15960016",
|
|
105
|
+
"amount_with_breakdown": {
|
|
106
|
+
"gross_amount": {
|
|
107
|
+
"currency_code": "USD",
|
|
108
|
+
"value": "19.95"
|
|
109
|
+
},
|
|
110
|
+
"fee_amount": {
|
|
111
|
+
"currency_code": "USD",
|
|
112
|
+
"value": "1.49"
|
|
113
|
+
},
|
|
114
|
+
"net_amount": {
|
|
115
|
+
"currency_code": "USD",
|
|
116
|
+
"value": "18.46"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"payer_name": {},
|
|
120
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
121
|
+
"time": "2023-12-12T11:07:05.000Z"
|
|
122
|
+
}, {
|
|
123
|
+
"status": "COMPLETED",
|
|
124
|
+
"id": "10E00037LN3466131",
|
|
125
|
+
"amount_with_breakdown": {
|
|
126
|
+
"gross_amount": {
|
|
127
|
+
"currency_code": "USD",
|
|
128
|
+
"value": "19.95"
|
|
129
|
+
},
|
|
130
|
+
"fee_amount": {
|
|
131
|
+
"currency_code": "USD",
|
|
132
|
+
"value": "1.49"
|
|
133
|
+
},
|
|
134
|
+
"net_amount": {
|
|
135
|
+
"currency_code": "USD",
|
|
136
|
+
"value": "18.46"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"payer_name": {},
|
|
140
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
141
|
+
"time": "2023-11-12T11:22:39.000Z"
|
|
142
|
+
}, {
|
|
143
|
+
"status": "COMPLETED",
|
|
144
|
+
"id": "02D13956H0210330C",
|
|
145
|
+
"amount_with_breakdown": {
|
|
146
|
+
"gross_amount": {
|
|
147
|
+
"currency_code": "USD",
|
|
148
|
+
"value": "19.95"
|
|
149
|
+
},
|
|
150
|
+
"fee_amount": {
|
|
151
|
+
"currency_code": "USD",
|
|
152
|
+
"value": "1.49"
|
|
153
|
+
},
|
|
154
|
+
"net_amount": {
|
|
155
|
+
"currency_code": "USD",
|
|
156
|
+
"value": "18.46"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
"payer_name": {},
|
|
160
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
161
|
+
"time": "2023-10-12T11:20:24.000Z"
|
|
162
|
+
}, {
|
|
163
|
+
"status": "REFUNDED",
|
|
164
|
+
"id": "13X09084AW3591226",
|
|
165
|
+
"amount_with_breakdown": {
|
|
166
|
+
"gross_amount": {
|
|
167
|
+
"currency_code": "USD",
|
|
168
|
+
"value": "19.95"
|
|
169
|
+
},
|
|
170
|
+
"fee_amount": {
|
|
171
|
+
"currency_code": "USD",
|
|
172
|
+
"value": "1.49"
|
|
173
|
+
},
|
|
174
|
+
"net_amount": {
|
|
175
|
+
"currency_code": "USD",
|
|
176
|
+
"value": "18.46"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"payer_name": {},
|
|
180
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
181
|
+
"time": "2023-09-12T11:30:15.000Z"
|
|
182
|
+
}, {
|
|
183
|
+
"status": "REFUNDED",
|
|
184
|
+
"id": "7WK170085B2522010",
|
|
185
|
+
"amount_with_breakdown": {
|
|
186
|
+
"gross_amount": {
|
|
187
|
+
"currency_code": "USD",
|
|
188
|
+
"value": "19.95"
|
|
189
|
+
},
|
|
190
|
+
"fee_amount": {
|
|
191
|
+
"currency_code": "USD",
|
|
192
|
+
"value": "1.49"
|
|
193
|
+
},
|
|
194
|
+
"net_amount": {
|
|
195
|
+
"currency_code": "USD",
|
|
196
|
+
"value": "18.46"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"payer_name": {},
|
|
200
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
201
|
+
"time": "2023-08-12T10:46:12.000Z"
|
|
202
|
+
}, {
|
|
203
|
+
"status": "REFUNDED",
|
|
204
|
+
"id": "67C16195BG287701E",
|
|
205
|
+
"amount_with_breakdown": {
|
|
206
|
+
"gross_amount": {
|
|
207
|
+
"currency_code": "USD",
|
|
208
|
+
"value": "19.95"
|
|
209
|
+
},
|
|
210
|
+
"fee_amount": {
|
|
211
|
+
"currency_code": "USD",
|
|
212
|
+
"value": "1.49"
|
|
213
|
+
},
|
|
214
|
+
"net_amount": {
|
|
215
|
+
"currency_code": "USD",
|
|
216
|
+
"value": "18.46"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"payer_name": {},
|
|
220
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
221
|
+
"time": "2023-07-12T10:48:22.000Z"
|
|
222
|
+
}, {
|
|
223
|
+
"status": "COMPLETED",
|
|
224
|
+
"id": "03G34761BH814324U",
|
|
225
|
+
"amount_with_breakdown": {
|
|
226
|
+
"gross_amount": {
|
|
227
|
+
"currency_code": "USD",
|
|
228
|
+
"value": "19.95"
|
|
229
|
+
},
|
|
230
|
+
"fee_amount": {
|
|
231
|
+
"currency_code": "USD",
|
|
232
|
+
"value": "1.49"
|
|
233
|
+
},
|
|
234
|
+
"net_amount": {
|
|
235
|
+
"currency_code": "USD",
|
|
236
|
+
"value": "18.46"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"payer_name": {},
|
|
240
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
241
|
+
"time": "2023-06-12T10:22:59.000Z"
|
|
242
|
+
}, {
|
|
243
|
+
"status": "COMPLETED",
|
|
244
|
+
"id": "7VJ692573X8193742",
|
|
245
|
+
"amount_with_breakdown": {
|
|
246
|
+
"gross_amount": {
|
|
247
|
+
"currency_code": "USD",
|
|
248
|
+
"value": "19.95"
|
|
249
|
+
},
|
|
250
|
+
"fee_amount": {
|
|
251
|
+
"currency_code": "USD",
|
|
252
|
+
"value": "1.49"
|
|
253
|
+
},
|
|
254
|
+
"net_amount": {
|
|
255
|
+
"currency_code": "USD",
|
|
256
|
+
"value": "18.46"
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"payer_name": {},
|
|
260
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
261
|
+
"time": "2023-05-12T10:47:07.000Z"
|
|
262
|
+
}, {
|
|
263
|
+
"status": "COMPLETED",
|
|
264
|
+
"id": "1MU53011BA108752K",
|
|
265
|
+
"amount_with_breakdown": {
|
|
266
|
+
"gross_amount": {
|
|
267
|
+
"currency_code": "USD",
|
|
268
|
+
"value": "19.95"
|
|
269
|
+
},
|
|
270
|
+
"fee_amount": {
|
|
271
|
+
"currency_code": "USD",
|
|
272
|
+
"value": "1.49"
|
|
273
|
+
},
|
|
274
|
+
"net_amount": {
|
|
275
|
+
"currency_code": "USD",
|
|
276
|
+
"value": "18.46"
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
"payer_name": {},
|
|
280
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
281
|
+
"time": "2023-04-12T11:32:48.000Z"
|
|
282
|
+
}, {
|
|
283
|
+
"status": "COMPLETED",
|
|
284
|
+
"id": "3SM59944C89293912",
|
|
285
|
+
"amount_with_breakdown": {
|
|
286
|
+
"gross_amount": {
|
|
287
|
+
"currency_code": "USD",
|
|
288
|
+
"value": "14.95"
|
|
289
|
+
},
|
|
290
|
+
"fee_amount": {
|
|
291
|
+
"currency_code": "USD",
|
|
292
|
+
"value": "1.24"
|
|
293
|
+
},
|
|
294
|
+
"net_amount": {
|
|
295
|
+
"currency_code": "USD",
|
|
296
|
+
"value": "13.71"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"payer_name": {},
|
|
300
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
301
|
+
"time": "2023-03-12T10:41:40.000Z"
|
|
302
|
+
}, {
|
|
303
|
+
"status": "COMPLETED",
|
|
304
|
+
"id": "9W200388HJ765311C",
|
|
305
|
+
"amount_with_breakdown": {
|
|
306
|
+
"gross_amount": {
|
|
307
|
+
"currency_code": "USD",
|
|
308
|
+
"value": "14.95"
|
|
309
|
+
},
|
|
310
|
+
"fee_amount": {
|
|
311
|
+
"currency_code": "USD",
|
|
312
|
+
"value": "1.24"
|
|
313
|
+
},
|
|
314
|
+
"net_amount": {
|
|
315
|
+
"currency_code": "USD",
|
|
316
|
+
"value": "13.71"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"payer_name": {},
|
|
320
|
+
"payer_email": "valueyournetwork@gmail.com",
|
|
321
|
+
"time": "2023-02-12T13:35:12.000Z"
|
|
322
|
+
}]
|
|
323
|
+
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": "ACTIVE",
|
|
3
|
+
"status_update_time": "2023-08-22T11:03:16Z",
|
|
4
|
+
"id": "I-GLYNACJCERDD",
|
|
5
|
+
"plan_id": "P-10V185024H967894YMBE2XEQ",
|
|
6
|
+
"start_time": "2023-03-22T22:38:03Z",
|
|
7
|
+
"quantity": "1",
|
|
8
|
+
"shipping_amount": {
|
|
9
|
+
"currency_code": "USD",
|
|
10
|
+
"value": "0.0"
|
|
11
|
+
},
|
|
12
|
+
"subscriber": {
|
|
13
|
+
"email_address": "lonobristol@Gmail.com",
|
|
14
|
+
"payer_id": "MLXEKAUCX6CL2",
|
|
15
|
+
"name": {
|
|
16
|
+
"given_name": "Jason",
|
|
17
|
+
"surname": "fish"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"billing_info": {
|
|
21
|
+
"outstanding_balance": {
|
|
22
|
+
"currency_code": "USD",
|
|
23
|
+
"value": "0.0"
|
|
24
|
+
},
|
|
25
|
+
"cycle_executions": [{
|
|
26
|
+
"tenure_type": "REGULAR",
|
|
27
|
+
"sequence": 1,
|
|
28
|
+
"cycles_completed": 6,
|
|
29
|
+
"cycles_remaining": 0,
|
|
30
|
+
"current_pricing_scheme_version": 2,
|
|
31
|
+
"total_cycles": 0
|
|
32
|
+
}],
|
|
33
|
+
"last_payment": {
|
|
34
|
+
"amount": {
|
|
35
|
+
"currency_code": "USD",
|
|
36
|
+
"value": "59.85"
|
|
37
|
+
},
|
|
38
|
+
"time": "2023-08-22T11:03:15Z"
|
|
39
|
+
},
|
|
40
|
+
"next_billing_time": "2023-09-22T10:00:00Z",
|
|
41
|
+
"failed_payments_count": 0
|
|
42
|
+
},
|
|
43
|
+
"create_time": "2023-03-22T22:39:32Z",
|
|
44
|
+
"update_time": "2023-08-22T11:03:16Z",
|
|
45
|
+
"custom_id": "1679524171883-0183",
|
|
46
|
+
"plan_overridden": false,
|
|
47
|
+
"plan": {
|
|
48
|
+
"product_id": "somiibo-premium-1",
|
|
49
|
+
"name": "Somiibo Premium (Monthly)",
|
|
50
|
+
"description": "A free social media automation platform that organically grows your online presence and gets you more followers.",
|
|
51
|
+
"billing_cycles": [{
|
|
52
|
+
"pricing_scheme": {
|
|
53
|
+
"fixed_price": {
|
|
54
|
+
"currency_code": "USD",
|
|
55
|
+
"value": "19.95"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"frequency": {
|
|
59
|
+
"interval_unit": "MONTH",
|
|
60
|
+
"interval_count": 1
|
|
61
|
+
},
|
|
62
|
+
"tenure_type": "REGULAR",
|
|
63
|
+
"sequence": 1,
|
|
64
|
+
"total_cycles": 0
|
|
65
|
+
}],
|
|
66
|
+
"payment_preferences": {
|
|
67
|
+
"service_type": "PREPAID",
|
|
68
|
+
"auto_bill_outstanding": true,
|
|
69
|
+
"setup_fee": {
|
|
70
|
+
"currency_code": "USD",
|
|
71
|
+
"value": "0.0"
|
|
72
|
+
},
|
|
73
|
+
"setup_fee_failure_action": "CANCEL",
|
|
74
|
+
"payment_failure_threshold": 0
|
|
75
|
+
},
|
|
76
|
+
"quantity_supported": true
|
|
77
|
+
},
|
|
78
|
+
"links": [{
|
|
79
|
+
"href": "https://api.paypal.com/v1/billing/subscriptions/I-GLYNACJCERDD/cancel",
|
|
80
|
+
"rel": "cancel",
|
|
81
|
+
"method": "POST"
|
|
82
|
+
}, {
|
|
83
|
+
"href": "https://api.paypal.com/v1/billing/subscriptions/I-GLYNACJCERDD",
|
|
84
|
+
"rel": "edit",
|
|
85
|
+
"method": "PATCH"
|
|
86
|
+
}, {
|
|
87
|
+
"href": "https://api.paypal.com/v1/billing/subscriptions/I-GLYNACJCERDD?fields=plan",
|
|
88
|
+
"rel": "self",
|
|
89
|
+
"method": "GET"
|
|
90
|
+
}, {
|
|
91
|
+
"href": "https://api.paypal.com/v1/billing/subscriptions/I-GLYNACJCERDD/suspend",
|
|
92
|
+
"rel": "suspend",
|
|
93
|
+
"method": "POST"
|
|
94
|
+
}, {
|
|
95
|
+
"href": "https://api.paypal.com/v1/billing/subscriptions/I-GLYNACJCERDD/capture",
|
|
96
|
+
"rel": "capture",
|
|
97
|
+
"method": "POST"
|
|
98
|
+
}],
|
|
99
|
+
"transactions": [{
|
|
100
|
+
"status": "COMPLETED",
|
|
101
|
+
"id": "7KX90535E6515060M",
|
|
102
|
+
"amount_with_breakdown": {
|
|
103
|
+
"gross_amount": {
|
|
104
|
+
"currency_code": "USD",
|
|
105
|
+
"value": "59.85"
|
|
106
|
+
},
|
|
107
|
+
"fee_amount": {
|
|
108
|
+
"currency_code": "USD",
|
|
109
|
+
"value": "2.58"
|
|
110
|
+
},
|
|
111
|
+
"net_amount": {
|
|
112
|
+
"currency_code": "USD",
|
|
113
|
+
"value": "57.27"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"payer_name": {
|
|
117
|
+
"given_name": "Jason",
|
|
118
|
+
"surname": "fish"
|
|
119
|
+
},
|
|
120
|
+
"payer_email": "lonobristol@Gmail.com",
|
|
121
|
+
"time": "2023-08-22T11:03:15.000Z"
|
|
122
|
+
}, {
|
|
123
|
+
"status": "COMPLETED",
|
|
124
|
+
"id": "5VM484746W3107616",
|
|
125
|
+
"amount_with_breakdown": {
|
|
126
|
+
"gross_amount": {
|
|
127
|
+
"currency_code": "USD",
|
|
128
|
+
"value": "19.95"
|
|
129
|
+
},
|
|
130
|
+
"fee_amount": {
|
|
131
|
+
"currency_code": "USD",
|
|
132
|
+
"value": "1.19"
|
|
133
|
+
},
|
|
134
|
+
"net_amount": {
|
|
135
|
+
"currency_code": "USD",
|
|
136
|
+
"value": "18.76"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"payer_name": {
|
|
140
|
+
"given_name": "Jason",
|
|
141
|
+
"surname": "fish"
|
|
142
|
+
},
|
|
143
|
+
"payer_email": "lonobristol@Gmail.com",
|
|
144
|
+
"time": "2023-05-22T11:28:19.000Z"
|
|
145
|
+
}, {
|
|
146
|
+
"status": "COMPLETED",
|
|
147
|
+
"id": "3D889516S86193235",
|
|
148
|
+
"amount_with_breakdown": {
|
|
149
|
+
"gross_amount": {
|
|
150
|
+
"currency_code": "USD",
|
|
151
|
+
"value": "19.95"
|
|
152
|
+
},
|
|
153
|
+
"fee_amount": {
|
|
154
|
+
"currency_code": "USD",
|
|
155
|
+
"value": "1.19"
|
|
156
|
+
},
|
|
157
|
+
"net_amount": {
|
|
158
|
+
"currency_code": "USD",
|
|
159
|
+
"value": "18.76"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"payer_name": {
|
|
163
|
+
"given_name": "Jason",
|
|
164
|
+
"surname": "fish"
|
|
165
|
+
},
|
|
166
|
+
"payer_email": "lonobristol@Gmail.com",
|
|
167
|
+
"time": "2023-04-22T10:05:07.000Z"
|
|
168
|
+
}, {
|
|
169
|
+
"status": "COMPLETED",
|
|
170
|
+
"id": "4WA03938SW3393725",
|
|
171
|
+
"amount_with_breakdown": {
|
|
172
|
+
"gross_amount": {
|
|
173
|
+
"currency_code": "USD",
|
|
174
|
+
"value": "19.95"
|
|
175
|
+
},
|
|
176
|
+
"fee_amount": {
|
|
177
|
+
"currency_code": "USD",
|
|
178
|
+
"value": "1.19"
|
|
179
|
+
},
|
|
180
|
+
"net_amount": {
|
|
181
|
+
"currency_code": "USD",
|
|
182
|
+
"value": "18.76"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"payer_name": {
|
|
186
|
+
"given_name": "Jason",
|
|
187
|
+
"surname": "fish"
|
|
188
|
+
},
|
|
189
|
+
"payer_email": "lonobristol@Gmail.com",
|
|
190
|
+
"time": "2023-03-22T22:39:33.000Z"
|
|
191
|
+
}]
|
|
192
|
+
}
|