backend-manager 5.9.7 → 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/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
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
{
|
|
2
|
+
"addresses": {
|
|
3
|
+
"pusdc": "0x21a82002d9d144a88da763429332ae66abccc489",
|
|
4
|
+
"dai": "0xd521590a206b7a768c2b91e76b1e55416cc957a4",
|
|
5
|
+
"polygon": "0x1103a791462d893b47d557b797a8373cb369923a",
|
|
6
|
+
"bitcoin": "34fzH947Xbb9frUHQgxDkdeeZ5CHQkVdG5",
|
|
7
|
+
"apecoin": "0xd197eb4d9e4bdb124c99903157287bef2c1ec83b",
|
|
8
|
+
"pweth": "0x3ebfa486147820d1d155d88f8a5c1b4fe2c749bc",
|
|
9
|
+
"usdc": "0x21a82002d9d144a88da763429332ae66abccc489",
|
|
10
|
+
"litecoin": "MTfdmP8hknqi8Jv7oyFHPQcDA21XiXSS9d",
|
|
11
|
+
"dogecoin": "D8G1MzRrdifM9Cq6wELyCde7VF52TnmdGH",
|
|
12
|
+
"ethereum": "0x3ebfa486147820d1d155d88f8a5c1b4fe2c749bc",
|
|
13
|
+
"tether": "0x1016c9d7f623d73825ede16c718b7d5c18650ac2",
|
|
14
|
+
"shibainu": "0xa00b30d38c5d878d7556e8d380fee19d1c0747c4",
|
|
15
|
+
"bitcoincash": "qpurv662v6kt7t2ugg23x0lv9t4d44cyvgx4mzxgfp"
|
|
16
|
+
},
|
|
17
|
+
"brand_color": "#122332",
|
|
18
|
+
"brand_logo_url": "https://res.cloudinary.com/commerce/image/upload/v1669469783/o5msi7avehknjrpyjwts.png",
|
|
19
|
+
"code": "FBHJR22R",
|
|
20
|
+
"coinbase_managed_merchant": true,
|
|
21
|
+
"confirmed_at": "2023-04-26T10:31:42Z",
|
|
22
|
+
"created_at": "2023-04-26T09:59:19Z",
|
|
23
|
+
"description": "Slapform Sumo",
|
|
24
|
+
"exchange_rates": {
|
|
25
|
+
"USDC-USD": "1.0",
|
|
26
|
+
"LTC-USD": "91.1",
|
|
27
|
+
"SHIB-USD": "0.000010505",
|
|
28
|
+
"PMATIC-USD": "1.0148",
|
|
29
|
+
"BCH-USD": "120.33",
|
|
30
|
+
"USDT-USD": "1.000225",
|
|
31
|
+
"ETH-USD": "1897.2",
|
|
32
|
+
"DOGE-USD": "0.081105",
|
|
33
|
+
"APE-USD": "4.027",
|
|
34
|
+
"BTC-USD": "28883.255",
|
|
35
|
+
"DAI-USD": "0.99995",
|
|
36
|
+
"PWETH-USD": "1896.73",
|
|
37
|
+
"PUSDC-USD": "1.0"
|
|
38
|
+
},
|
|
39
|
+
"expires_at": "2023-04-26T10:29:19Z",
|
|
40
|
+
"fee_rate": 0.01,
|
|
41
|
+
"hosted_url": "https://commerce.coinbase.com/charges/FBHJR22R",
|
|
42
|
+
"id": "8f783fa6-eaa3-4460-af64-cac26b183ed1",
|
|
43
|
+
"local_exchange_rates": {
|
|
44
|
+
"USDC-USD": "1.0",
|
|
45
|
+
"LTC-USD": "91.1",
|
|
46
|
+
"SHIB-USD": "0.000010505",
|
|
47
|
+
"PMATIC-USD": "1.0148",
|
|
48
|
+
"BCH-USD": "120.33",
|
|
49
|
+
"USDT-USD": "1.000225",
|
|
50
|
+
"ETH-USD": "1897.2",
|
|
51
|
+
"DOGE-USD": "0.081105",
|
|
52
|
+
"APE-USD": "4.027",
|
|
53
|
+
"BTC-USD": "28883.255",
|
|
54
|
+
"DAI-USD": "0.99995",
|
|
55
|
+
"PWETH-USD": "1896.73",
|
|
56
|
+
"PUSDC-USD": "1.0"
|
|
57
|
+
},
|
|
58
|
+
"logo_url": "https://res.cloudinary.com/commerce/image/upload/v1669469783/o5msi7avehknjrpyjwts.png",
|
|
59
|
+
"metadata": {
|
|
60
|
+
"uid": "O4Env11pWgSCYnQ0zSfwSjv44ak2",
|
|
61
|
+
"email": "customer@gmail.com",
|
|
62
|
+
"planId": "sumo",
|
|
63
|
+
"clientOrderId": "1682503105825-0982",
|
|
64
|
+
"name": null
|
|
65
|
+
},
|
|
66
|
+
"name": "Slapform Sumo",
|
|
67
|
+
"offchain_eligible": true,
|
|
68
|
+
"organization_name": "ITW Creative Works",
|
|
69
|
+
"payment_threshold": {
|
|
70
|
+
"overpayment_absolute_threshold": {
|
|
71
|
+
"amount": "9999.00",
|
|
72
|
+
"currency": "USD"
|
|
73
|
+
},
|
|
74
|
+
"underpayment_relative_threshold": "0.05"
|
|
75
|
+
},
|
|
76
|
+
"payments": [{
|
|
77
|
+
"payment_id": "23668f49-5b1f-43cc-8d43-0e0a4aa373ea",
|
|
78
|
+
"network": "bitcoin",
|
|
79
|
+
"transaction_id": "5f77305b7d09572cb4cd4bf758baf7d59bffebd55cfe727362646cdd08fbaee9",
|
|
80
|
+
"status": "CONFIRMED",
|
|
81
|
+
"detected_at": "2023-04-26T10:06:55Z",
|
|
82
|
+
"value": {
|
|
83
|
+
"local": {
|
|
84
|
+
"amount": "16.00",
|
|
85
|
+
"currency": "USD"
|
|
86
|
+
},
|
|
87
|
+
"crypto": {
|
|
88
|
+
"amount": "0.00055395",
|
|
89
|
+
"currency": "BTC"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"block": {
|
|
93
|
+
"height": 787072,
|
|
94
|
+
"hash": "00000000000000000000032c1682e545847242a8486a8c0ceb996af46eeb1c57",
|
|
95
|
+
"confirmations": 1,
|
|
96
|
+
"confirmations_required": 1
|
|
97
|
+
},
|
|
98
|
+
"deposited": {
|
|
99
|
+
"autoconversion_enabled": true,
|
|
100
|
+
"autoconversion_status": "PENDING",
|
|
101
|
+
"status": "PENDING",
|
|
102
|
+
"destination": "hello@business.com",
|
|
103
|
+
"exchange_rate": null,
|
|
104
|
+
"amount": {
|
|
105
|
+
"gross": {
|
|
106
|
+
"local": null,
|
|
107
|
+
"crypto": {
|
|
108
|
+
"amount": "0.00055395",
|
|
109
|
+
"currency": "BTC"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"net": {
|
|
113
|
+
"local": null,
|
|
114
|
+
"crypto": {
|
|
115
|
+
"amount": "0.00054842",
|
|
116
|
+
"currency": "BTC"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"coinbase_fee": {
|
|
120
|
+
"local": null,
|
|
121
|
+
"crypto": {
|
|
122
|
+
"amount": "0.00000553",
|
|
123
|
+
"currency": "BTC"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}],
|
|
129
|
+
"pricing": {
|
|
130
|
+
"local": {
|
|
131
|
+
"amount": "16.00",
|
|
132
|
+
"currency": "USD"
|
|
133
|
+
},
|
|
134
|
+
"pusdc": {
|
|
135
|
+
"amount": "16.000000",
|
|
136
|
+
"currency": "PUSDC"
|
|
137
|
+
},
|
|
138
|
+
"dai": {
|
|
139
|
+
"amount": "16.000800048000000000",
|
|
140
|
+
"currency": "DAI"
|
|
141
|
+
},
|
|
142
|
+
"polygon": {
|
|
143
|
+
"amount": "15.766654000",
|
|
144
|
+
"currency": "PMATIC"
|
|
145
|
+
},
|
|
146
|
+
"bitcoin": {
|
|
147
|
+
"amount": "0.00055395",
|
|
148
|
+
"currency": "BTC"
|
|
149
|
+
},
|
|
150
|
+
"apecoin": {
|
|
151
|
+
"amount": "3.973181028060591011",
|
|
152
|
+
"currency": "APE"
|
|
153
|
+
},
|
|
154
|
+
"pweth": {
|
|
155
|
+
"amount": "0.008435570692718521",
|
|
156
|
+
"currency": "PWETH"
|
|
157
|
+
},
|
|
158
|
+
"usdc": {
|
|
159
|
+
"amount": "16.000000",
|
|
160
|
+
"currency": "USDC"
|
|
161
|
+
},
|
|
162
|
+
"litecoin": {
|
|
163
|
+
"amount": "0.17563117",
|
|
164
|
+
"currency": "LTC"
|
|
165
|
+
},
|
|
166
|
+
"dogecoin": {
|
|
167
|
+
"amount": "197.27513717",
|
|
168
|
+
"currency": "DOGE"
|
|
169
|
+
},
|
|
170
|
+
"ethereum": {
|
|
171
|
+
"amount": "0.008433000",
|
|
172
|
+
"currency": "ETH"
|
|
173
|
+
},
|
|
174
|
+
"tether": {
|
|
175
|
+
"amount": "15.996401",
|
|
176
|
+
"currency": "USDT"
|
|
177
|
+
},
|
|
178
|
+
"shibainu": {
|
|
179
|
+
"amount": "1523084.245597328000000000",
|
|
180
|
+
"currency": "SHIB"
|
|
181
|
+
},
|
|
182
|
+
"bitcoincash": {
|
|
183
|
+
"amount": "0.13296767",
|
|
184
|
+
"currency": "BCH"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"pricing_type": "fixed_price",
|
|
188
|
+
"pwcb_only": false,
|
|
189
|
+
"resource": "charge",
|
|
190
|
+
"support_email": "support@business.com",
|
|
191
|
+
"timeline": [{
|
|
192
|
+
"status": "NEW",
|
|
193
|
+
"context": "OTHER",
|
|
194
|
+
"time": "2023-04-26T09:59:19Z"
|
|
195
|
+
}, {
|
|
196
|
+
"status": "PENDING",
|
|
197
|
+
"context": "OTHER",
|
|
198
|
+
"time": "2023-04-26T10:07:02Z"
|
|
199
|
+
}, {
|
|
200
|
+
"status": "COMPLETED",
|
|
201
|
+
"context": "OTHER",
|
|
202
|
+
"time": "2023-04-26T10:31:42Z"
|
|
203
|
+
}]
|
|
204
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"brand_color": "#122332",
|
|
3
|
+
"brand_logo_url": "https://res.cloudinary.com/commerce/image/upload/v1669469783/o5msi7avehknjrpyjwts.png",
|
|
4
|
+
"charge_kind": "WEB3",
|
|
5
|
+
"code": "2ZHK2BXQ",
|
|
6
|
+
"collected_email": true,
|
|
7
|
+
"confirmed_at": "2024-01-23T22:42:27Z",
|
|
8
|
+
"created_at": "2024-01-23T21:59:03Z",
|
|
9
|
+
"description": "StudyMonkey Homework Helper Plus Essay",
|
|
10
|
+
"expires_at": "2024-01-25T21:59:03Z",
|
|
11
|
+
"hosted_url": "https://commerce.coinbase.com/pay/1baa71fb-318c-400c-9020-08b894a1fa6e",
|
|
12
|
+
"id": "1baa71fb-318c-400c-9020-08b894a1fa6e",
|
|
13
|
+
"metadata": {
|
|
14
|
+
"uid": "oHrxWjSX87OenjCOxzE4PFw0JNy2",
|
|
15
|
+
"planId": "homework-helper-plus-essay",
|
|
16
|
+
"clientOrderId": "1706046998706-0362",
|
|
17
|
+
"email": "savaignjat@gmail.com"
|
|
18
|
+
},
|
|
19
|
+
"name": "StudyMonkey Homework Helper Plus Essay",
|
|
20
|
+
"organization_name": "ITW Creative Works",
|
|
21
|
+
"payments": [{
|
|
22
|
+
"payment_id": "0x479cda3dc208156a7ce99093c2de583997cad04081542e753e70210fb0a4b250",
|
|
23
|
+
"network": "ethereum",
|
|
24
|
+
"transaction_id": "0x479cda3dc208156a7ce99093c2de583997cad04081542e753e70210fb0a4b250",
|
|
25
|
+
"status": "confirmed",
|
|
26
|
+
"detected_at": "2024-01-23T22:40:35Z",
|
|
27
|
+
"value": {
|
|
28
|
+
"local": {
|
|
29
|
+
"amount": "10.00",
|
|
30
|
+
"currency": "USD"
|
|
31
|
+
},
|
|
32
|
+
"crypto": {
|
|
33
|
+
"amount": "10",
|
|
34
|
+
"currency": "USDC"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"payer_addresses": ["0x1b4747367a4259573dde79745b66f16fac2b5aa0"]
|
|
38
|
+
}],
|
|
39
|
+
"pricing": {
|
|
40
|
+
"local": {
|
|
41
|
+
"amount": "10.00",
|
|
42
|
+
"currency": "USD"
|
|
43
|
+
},
|
|
44
|
+
"settlement": {
|
|
45
|
+
"amount": "10",
|
|
46
|
+
"currency": "USDC"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"pricing_type": "fixed_price",
|
|
50
|
+
"redirects": {
|
|
51
|
+
"cancel_url": "",
|
|
52
|
+
"success_url": "",
|
|
53
|
+
"will_redirect_after_success": false
|
|
54
|
+
},
|
|
55
|
+
"support_email": "support@itwcreativeworks.com",
|
|
56
|
+
"timeline": [{
|
|
57
|
+
"status": "NEW",
|
|
58
|
+
"time": "2024-01-23T21:59:03Z"
|
|
59
|
+
}, {
|
|
60
|
+
"status": "SIGNED",
|
|
61
|
+
"time": "2024-01-23T22:29:08Z"
|
|
62
|
+
}, {
|
|
63
|
+
"status": "PENDING",
|
|
64
|
+
"time": "2024-01-23T22:41:43Z"
|
|
65
|
+
}, {
|
|
66
|
+
"status": "COMPLETED",
|
|
67
|
+
"time": "2024-01-23T22:42:27Z"
|
|
68
|
+
}],
|
|
69
|
+
"web3_data": {
|
|
70
|
+
"transfer_intent": {
|
|
71
|
+
"call_data": {
|
|
72
|
+
"deadline": "2024-01-25T21:59:03Z",
|
|
73
|
+
"fee_amount": "100000",
|
|
74
|
+
"id": "0x9e72e7f23f3f42bfbb6370766172ba5b",
|
|
75
|
+
"operator": "0x8fccc78dae0a8f93b0fe6799de888d4c57e273db",
|
|
76
|
+
"prefix": "0x4b3220496e666f726d6174696f6e616c204d6573736167653a20333220",
|
|
77
|
+
"recipient": "0x2a37eB9C24e73fAFFd30383adB894e2529Ad41Be",
|
|
78
|
+
"recipient_amount": "9900000",
|
|
79
|
+
"recipient_currency": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
80
|
+
"refund_destination": "0x1b4747367a4259573DDE79745B66F16fAc2b5Aa0",
|
|
81
|
+
"signature": "0x3fd8cea54247b157cf226a86dd56bd134595ce03568320471cda0c1e3ec1179f232eb4b78dd1956e9110cba85cf36c00119e74f53ecc994f1642006e7c6585991c"
|
|
82
|
+
},
|
|
83
|
+
"metadata": {
|
|
84
|
+
"chain_id": 1,
|
|
85
|
+
"contract_address": "0x7915f087685fffD71608E5d118f3B70c27D9eF4e",
|
|
86
|
+
"sender": "0x1b4747367a4259573DDE79745B66F16fAc2b5Aa0"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"success_events": [{
|
|
90
|
+
"chain_id": 1,
|
|
91
|
+
"finalized": false,
|
|
92
|
+
"input_token_address": "0x0000000000000000000000000000000000000000",
|
|
93
|
+
"input_token_amount": "4504845007298104",
|
|
94
|
+
"network_fee_paid": "2212192382700300",
|
|
95
|
+
"network_fee_paid_local": "4.918411568304985862",
|
|
96
|
+
"recipient": "0x2a37eb9c24e73faffd30383adb894e2529ad41be",
|
|
97
|
+
"sender": "0x1b4747367a4259573dde79745b66f16fac2b5aa0",
|
|
98
|
+
"timestamp": "2024-01-23T22:40:35Z",
|
|
99
|
+
"tx_hsh": "0x479cda3dc208156a7ce99093c2de583997cad04081542e753e70210fb0a4b250"
|
|
100
|
+
}, {
|
|
101
|
+
"chain_id": 1,
|
|
102
|
+
"finalized": true,
|
|
103
|
+
"input_token_address": "0x0000000000000000000000000000000000000000",
|
|
104
|
+
"input_token_amount": "4504845007298104",
|
|
105
|
+
"network_fee_paid": "2212192382700300",
|
|
106
|
+
"network_fee_paid_local": "4.918411568304985862",
|
|
107
|
+
"recipient": "0x2a37eb9c24e73faffd30383adb894e2529ad41be",
|
|
108
|
+
"sender": "0x1b4747367a4259573dde79745b66f16fac2b5aa0",
|
|
109
|
+
"timestamp": "2024-01-23T22:40:35Z",
|
|
110
|
+
"tx_hsh": "0x479cda3dc208156a7ce99093c2de583997cad04081542e753e70210fb0a4b250"
|
|
111
|
+
}],
|
|
112
|
+
"failure_events": [],
|
|
113
|
+
"contract_addresses": {
|
|
114
|
+
"1": "0x7915f087685fffD71608E5d118f3B70c27D9eF4e",
|
|
115
|
+
"137": "0x7f52269092F2a5EF06C36C91e46F9196deb90336",
|
|
116
|
+
"8453": "0x9Bb4D44e6963260A1850926E8f6bEB8d5803836F"
|
|
117
|
+
},
|
|
118
|
+
"settlement_currency_addresses": {
|
|
119
|
+
"1": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
120
|
+
"137": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
|
|
121
|
+
"8453": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"web3_retail_payments_enabled": true
|
|
125
|
+
}
|