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
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "sub_1McA4ZEvB7hJrWnu1o7GMybv",
|
|
3
|
+
"object": "subscription",
|
|
4
|
+
"application": null,
|
|
5
|
+
"application_fee_percent": null,
|
|
6
|
+
"automatic_tax": {
|
|
7
|
+
"enabled": false
|
|
8
|
+
},
|
|
9
|
+
"billing_cycle_anchor": 1676563959,
|
|
10
|
+
"billing_thresholds": null,
|
|
11
|
+
"cancel_at": null,
|
|
12
|
+
"cancel_at_period_end": false,
|
|
13
|
+
"canceled_at": null,
|
|
14
|
+
"cancellation_details": {
|
|
15
|
+
"comment": null,
|
|
16
|
+
"feedback": null,
|
|
17
|
+
"reason": null
|
|
18
|
+
},
|
|
19
|
+
"collection_method": "charge_automatically",
|
|
20
|
+
"created": 1676563959,
|
|
21
|
+
"currency": "usd",
|
|
22
|
+
"current_period_end": 1694880759,
|
|
23
|
+
"current_period_start": 1692202359,
|
|
24
|
+
"customer": "cus_NMts8MHfoEcsyX",
|
|
25
|
+
"days_until_due": null,
|
|
26
|
+
"default_payment_method": "pm_1McA4UEvB7hJrWnuuG62hoCJ",
|
|
27
|
+
"default_source": null,
|
|
28
|
+
"default_tax_rates": [],
|
|
29
|
+
"description": null,
|
|
30
|
+
"discount": null,
|
|
31
|
+
"ended_at": null,
|
|
32
|
+
"items": {
|
|
33
|
+
"object": "list",
|
|
34
|
+
"data": [{
|
|
35
|
+
"id": "si_NMtsCGRHYSBn3S",
|
|
36
|
+
"object": "subscription_item",
|
|
37
|
+
"billing_thresholds": null,
|
|
38
|
+
"created": 1676563959,
|
|
39
|
+
"metadata": {},
|
|
40
|
+
"plan": {
|
|
41
|
+
"id": "price_1JHRVAEvB7hJrWnuAth58S0b",
|
|
42
|
+
"object": "plan",
|
|
43
|
+
"active": true,
|
|
44
|
+
"aggregate_usage": null,
|
|
45
|
+
"amount": 600,
|
|
46
|
+
"amount_decimal": "600",
|
|
47
|
+
"billing_scheme": "per_unit",
|
|
48
|
+
"created": 1627297060,
|
|
49
|
+
"currency": "usd",
|
|
50
|
+
"interval": "month",
|
|
51
|
+
"interval_count": 1,
|
|
52
|
+
"livemode": true,
|
|
53
|
+
"metadata": {},
|
|
54
|
+
"nickname": null,
|
|
55
|
+
"product": "prod_JvI5la5XgSjpUj",
|
|
56
|
+
"tiers_mode": null,
|
|
57
|
+
"transform_usage": null,
|
|
58
|
+
"trial_period_days": null,
|
|
59
|
+
"usage_type": "licensed"
|
|
60
|
+
},
|
|
61
|
+
"price": {
|
|
62
|
+
"id": "price_1JHRVAEvB7hJrWnuAth58S0b",
|
|
63
|
+
"object": "price",
|
|
64
|
+
"active": true,
|
|
65
|
+
"billing_scheme": "per_unit",
|
|
66
|
+
"created": 1627297060,
|
|
67
|
+
"currency": "usd",
|
|
68
|
+
"custom_unit_amount": null,
|
|
69
|
+
"livemode": true,
|
|
70
|
+
"lookup_key": null,
|
|
71
|
+
"metadata": {},
|
|
72
|
+
"nickname": null,
|
|
73
|
+
"product": "prod_JvI5la5XgSjpUj",
|
|
74
|
+
"recurring": {
|
|
75
|
+
"aggregate_usage": null,
|
|
76
|
+
"interval": "month",
|
|
77
|
+
"interval_count": 1,
|
|
78
|
+
"trial_period_days": null,
|
|
79
|
+
"usage_type": "licensed"
|
|
80
|
+
},
|
|
81
|
+
"tax_behavior": "unspecified",
|
|
82
|
+
"tiers_mode": null,
|
|
83
|
+
"transform_quantity": null,
|
|
84
|
+
"type": "recurring",
|
|
85
|
+
"unit_amount": 600,
|
|
86
|
+
"unit_amount_decimal": "600"
|
|
87
|
+
},
|
|
88
|
+
"quantity": 1,
|
|
89
|
+
"subscription": "sub_1McA4ZEvB7hJrWnu1o7GMybv",
|
|
90
|
+
"tax_rates": []
|
|
91
|
+
}],
|
|
92
|
+
"has_more": false,
|
|
93
|
+
"total_count": 1,
|
|
94
|
+
"url": "/v1/subscription_items?subscription=sub_1McA4ZEvB7hJrWnu1o7GMybv"
|
|
95
|
+
},
|
|
96
|
+
"latest_invoice": {
|
|
97
|
+
"id": "in_1NfmLLEvB7hJrWnuspPgpbfY",
|
|
98
|
+
"object": "invoice",
|
|
99
|
+
"account_country": "US",
|
|
100
|
+
"account_name": "Slapform",
|
|
101
|
+
"account_tax_ids": null,
|
|
102
|
+
"amount_due": 600,
|
|
103
|
+
"amount_paid": 600,
|
|
104
|
+
"amount_remaining": 0,
|
|
105
|
+
"amount_shipping": 0,
|
|
106
|
+
"application": null,
|
|
107
|
+
"application_fee_amount": null,
|
|
108
|
+
"attempt_count": 1,
|
|
109
|
+
"attempted": true,
|
|
110
|
+
"auto_advance": false,
|
|
111
|
+
"automatic_tax": {
|
|
112
|
+
"enabled": false,
|
|
113
|
+
"status": null
|
|
114
|
+
},
|
|
115
|
+
"billing_reason": "subscription_cycle",
|
|
116
|
+
"charge": {
|
|
117
|
+
"id": "ch_3NfnMnEvB7hJrWnu0KXujmm5",
|
|
118
|
+
"object": "charge",
|
|
119
|
+
"amount": 600,
|
|
120
|
+
"amount_captured": 600,
|
|
121
|
+
"amount_refunded": 0,
|
|
122
|
+
"application": null,
|
|
123
|
+
"application_fee": null,
|
|
124
|
+
"application_fee_amount": null,
|
|
125
|
+
"balance_transaction": "txn_3NfnMnEvB7hJrWnu0kivRwm1",
|
|
126
|
+
"billing_details": {
|
|
127
|
+
"address": {
|
|
128
|
+
"city": "Dallas",
|
|
129
|
+
"country": "US",
|
|
130
|
+
"line1": "6114 Tulip Lane",
|
|
131
|
+
"line2": null,
|
|
132
|
+
"postal_code": "75244",
|
|
133
|
+
"state": "Texas"
|
|
134
|
+
},
|
|
135
|
+
"email": "rob@nuuds.com",
|
|
136
|
+
"name": "Robert Fletcher",
|
|
137
|
+
"phone": null
|
|
138
|
+
},
|
|
139
|
+
"calculated_statement_descriptor": "SLAPFORM",
|
|
140
|
+
"captured": true,
|
|
141
|
+
"created": 1692206326,
|
|
142
|
+
"currency": "usd",
|
|
143
|
+
"customer": "cus_NMts8MHfoEcsyX",
|
|
144
|
+
"description": "Subscription update",
|
|
145
|
+
"destination": null,
|
|
146
|
+
"dispute": null,
|
|
147
|
+
"disputed": false,
|
|
148
|
+
"failure_balance_transaction": null,
|
|
149
|
+
"failure_code": null,
|
|
150
|
+
"failure_message": null,
|
|
151
|
+
"fraud_details": {},
|
|
152
|
+
"invoice": "in_1NfmLLEvB7hJrWnuspPgpbfY",
|
|
153
|
+
"livemode": true,
|
|
154
|
+
"metadata": {},
|
|
155
|
+
"on_behalf_of": null,
|
|
156
|
+
"order": null,
|
|
157
|
+
"outcome": {
|
|
158
|
+
"network_status": "approved_by_network",
|
|
159
|
+
"reason": null,
|
|
160
|
+
"risk_level": "normal",
|
|
161
|
+
"seller_message": "Payment complete.",
|
|
162
|
+
"type": "authorized"
|
|
163
|
+
},
|
|
164
|
+
"paid": true,
|
|
165
|
+
"payment_intent": "pi_3NfnMnEvB7hJrWnu0QNd5aYc",
|
|
166
|
+
"payment_method": "pm_1McA4UEvB7hJrWnuuG62hoCJ",
|
|
167
|
+
"payment_method_details": {
|
|
168
|
+
"card": {
|
|
169
|
+
"brand": "visa",
|
|
170
|
+
"checks": {
|
|
171
|
+
"address_line1_check": "pass",
|
|
172
|
+
"address_postal_code_check": "fail",
|
|
173
|
+
"cvc_check": null
|
|
174
|
+
},
|
|
175
|
+
"country": "US",
|
|
176
|
+
"exp_month": 7,
|
|
177
|
+
"exp_year": 2027,
|
|
178
|
+
"fingerprint": "bxnFTeLsLlFZ7ny5",
|
|
179
|
+
"funding": "credit",
|
|
180
|
+
"installments": null,
|
|
181
|
+
"last4": "8548",
|
|
182
|
+
"mandate": null,
|
|
183
|
+
"network": "visa",
|
|
184
|
+
"network_token": {
|
|
185
|
+
"used": false
|
|
186
|
+
},
|
|
187
|
+
"three_d_secure": null,
|
|
188
|
+
"wallet": null
|
|
189
|
+
},
|
|
190
|
+
"type": "card"
|
|
191
|
+
},
|
|
192
|
+
"receipt_email": null,
|
|
193
|
+
"receipt_number": null,
|
|
194
|
+
"receipt_url": "https://pay.stripe.com/receipts/invoices/CAcQARoXChVhY2N0XzFKSFJLTUV2QjdoSnJXbnUoiLW1pwYyBurPhIWUwDosFvNbvNIHPRQ_v4HWzsK-UmTKy1KSGR6TUMK9h07pIqYp5Gi4KCL6njzuido?s=ap",
|
|
195
|
+
"refunded": false,
|
|
196
|
+
"refunds": {
|
|
197
|
+
"object": "list",
|
|
198
|
+
"data": [],
|
|
199
|
+
"has_more": false,
|
|
200
|
+
"total_count": 0,
|
|
201
|
+
"url": "/v1/charges/ch_3NfnMnEvB7hJrWnu0KXujmm5/refunds"
|
|
202
|
+
},
|
|
203
|
+
"review": null,
|
|
204
|
+
"shipping": null,
|
|
205
|
+
"source": null,
|
|
206
|
+
"source_transfer": null,
|
|
207
|
+
"statement_descriptor": null,
|
|
208
|
+
"statement_descriptor_suffix": null,
|
|
209
|
+
"status": "succeeded",
|
|
210
|
+
"transfer_data": null,
|
|
211
|
+
"transfer_group": null
|
|
212
|
+
},
|
|
213
|
+
"collection_method": "charge_automatically",
|
|
214
|
+
"created": 1692202391,
|
|
215
|
+
"currency": "usd",
|
|
216
|
+
"custom_fields": null,
|
|
217
|
+
"customer": "cus_NMts8MHfoEcsyX",
|
|
218
|
+
"customer_address": null,
|
|
219
|
+
"customer_email": "rob@nuuds.com",
|
|
220
|
+
"customer_name": null,
|
|
221
|
+
"customer_phone": null,
|
|
222
|
+
"customer_shipping": null,
|
|
223
|
+
"customer_tax_exempt": "none",
|
|
224
|
+
"customer_tax_ids": [],
|
|
225
|
+
"default_payment_method": null,
|
|
226
|
+
"default_source": null,
|
|
227
|
+
"default_tax_rates": [],
|
|
228
|
+
"description": null,
|
|
229
|
+
"discount": null,
|
|
230
|
+
"discounts": [],
|
|
231
|
+
"due_date": null,
|
|
232
|
+
"effective_at": 1692206325,
|
|
233
|
+
"ending_balance": 0,
|
|
234
|
+
"footer": null,
|
|
235
|
+
"from_invoice": null,
|
|
236
|
+
"hosted_invoice_url": "https://invoice.stripe.com/i/acct_1JHRKMEvB7hJrWnu/live_YWNjdF8xSkhSS01FdkI3aEpyV251LF9PU2hrR2Y0NHg1V3F3aTMyOXNyNzlvY3NzUFkwWk9kLDgzODE3NjA50200dEjQX1dW?s=ap",
|
|
237
|
+
"invoice_pdf": "https://pay.stripe.com/invoice/acct_1JHRKMEvB7hJrWnu/live_YWNjdF8xSkhSS01FdkI3aEpyV251LF9PU2hrR2Y0NHg1V3F3aTMyOXNyNzlvY3NzUFkwWk9kLDgzODE3NjA50200dEjQX1dW/pdf?s=ap",
|
|
238
|
+
"last_finalization_error": null,
|
|
239
|
+
"latest_revision": null,
|
|
240
|
+
"lines": {
|
|
241
|
+
"object": "list",
|
|
242
|
+
"data": [{
|
|
243
|
+
"id": "il_1NfmLLEvB7hJrWnuQ1W7sJXl",
|
|
244
|
+
"object": "line_item",
|
|
245
|
+
"amount": 600,
|
|
246
|
+
"amount_excluding_tax": 600,
|
|
247
|
+
"currency": "usd",
|
|
248
|
+
"description": "1 × Slapform Apprentice (Monthly) (at $6.00 / month)",
|
|
249
|
+
"discount_amounts": [],
|
|
250
|
+
"discountable": true,
|
|
251
|
+
"discounts": [],
|
|
252
|
+
"livemode": true,
|
|
253
|
+
"metadata": {
|
|
254
|
+
"clientOrderId": "1676563829749-0881"
|
|
255
|
+
},
|
|
256
|
+
"period": {
|
|
257
|
+
"end": 1694880759,
|
|
258
|
+
"start": 1692202359
|
|
259
|
+
},
|
|
260
|
+
"plan": {
|
|
261
|
+
"id": "price_1JHRVAEvB7hJrWnuAth58S0b",
|
|
262
|
+
"object": "plan",
|
|
263
|
+
"active": true,
|
|
264
|
+
"aggregate_usage": null,
|
|
265
|
+
"amount": 600,
|
|
266
|
+
"amount_decimal": "600",
|
|
267
|
+
"billing_scheme": "per_unit",
|
|
268
|
+
"created": 1627297060,
|
|
269
|
+
"currency": "usd",
|
|
270
|
+
"interval": "month",
|
|
271
|
+
"interval_count": 1,
|
|
272
|
+
"livemode": true,
|
|
273
|
+
"metadata": {},
|
|
274
|
+
"nickname": null,
|
|
275
|
+
"product": "prod_JvI5la5XgSjpUj",
|
|
276
|
+
"tiers_mode": null,
|
|
277
|
+
"transform_usage": null,
|
|
278
|
+
"trial_period_days": null,
|
|
279
|
+
"usage_type": "licensed"
|
|
280
|
+
},
|
|
281
|
+
"price": {
|
|
282
|
+
"id": "price_1JHRVAEvB7hJrWnuAth58S0b",
|
|
283
|
+
"object": "price",
|
|
284
|
+
"active": true,
|
|
285
|
+
"billing_scheme": "per_unit",
|
|
286
|
+
"created": 1627297060,
|
|
287
|
+
"currency": "usd",
|
|
288
|
+
"custom_unit_amount": null,
|
|
289
|
+
"livemode": true,
|
|
290
|
+
"lookup_key": null,
|
|
291
|
+
"metadata": {},
|
|
292
|
+
"nickname": null,
|
|
293
|
+
"product": "prod_JvI5la5XgSjpUj",
|
|
294
|
+
"recurring": {
|
|
295
|
+
"aggregate_usage": null,
|
|
296
|
+
"interval": "month",
|
|
297
|
+
"interval_count": 1,
|
|
298
|
+
"trial_period_days": null,
|
|
299
|
+
"usage_type": "licensed"
|
|
300
|
+
},
|
|
301
|
+
"tax_behavior": "unspecified",
|
|
302
|
+
"tiers_mode": null,
|
|
303
|
+
"transform_quantity": null,
|
|
304
|
+
"type": "recurring",
|
|
305
|
+
"unit_amount": 600,
|
|
306
|
+
"unit_amount_decimal": "600"
|
|
307
|
+
},
|
|
308
|
+
"proration": false,
|
|
309
|
+
"proration_details": {
|
|
310
|
+
"credited_items": null
|
|
311
|
+
},
|
|
312
|
+
"quantity": 1,
|
|
313
|
+
"subscription": "sub_1McA4ZEvB7hJrWnu1o7GMybv",
|
|
314
|
+
"subscription_item": "si_NMtsCGRHYSBn3S",
|
|
315
|
+
"tax_amounts": [],
|
|
316
|
+
"tax_rates": [],
|
|
317
|
+
"type": "subscription",
|
|
318
|
+
"unit_amount_excluding_tax": "600"
|
|
319
|
+
}],
|
|
320
|
+
"has_more": false,
|
|
321
|
+
"total_count": 1,
|
|
322
|
+
"url": "/v1/invoices/in_1NfmLLEvB7hJrWnuspPgpbfY/lines"
|
|
323
|
+
},
|
|
324
|
+
"livemode": true,
|
|
325
|
+
"metadata": {},
|
|
326
|
+
"next_payment_attempt": null,
|
|
327
|
+
"number": "F57A8D7B-0007",
|
|
328
|
+
"on_behalf_of": null,
|
|
329
|
+
"paid": true,
|
|
330
|
+
"paid_out_of_band": false,
|
|
331
|
+
"payment_intent": "pi_3NfnMnEvB7hJrWnu0QNd5aYc",
|
|
332
|
+
"payment_settings": {
|
|
333
|
+
"default_mandate": null,
|
|
334
|
+
"payment_method_options": null,
|
|
335
|
+
"payment_method_types": null
|
|
336
|
+
},
|
|
337
|
+
"period_end": 1692202359,
|
|
338
|
+
"period_start": 1689523959,
|
|
339
|
+
"post_payment_credit_notes_amount": 0,
|
|
340
|
+
"pre_payment_credit_notes_amount": 0,
|
|
341
|
+
"quote": null,
|
|
342
|
+
"receipt_number": null,
|
|
343
|
+
"rendering_options": null,
|
|
344
|
+
"shipping_cost": null,
|
|
345
|
+
"shipping_details": null,
|
|
346
|
+
"starting_balance": 0,
|
|
347
|
+
"statement_descriptor": null,
|
|
348
|
+
"status": "paid",
|
|
349
|
+
"status_transitions": {
|
|
350
|
+
"finalized_at": 1692206325,
|
|
351
|
+
"marked_uncollectible_at": null,
|
|
352
|
+
"paid_at": 1692206325,
|
|
353
|
+
"voided_at": null
|
|
354
|
+
},
|
|
355
|
+
"subscription": "sub_1McA4ZEvB7hJrWnu1o7GMybv",
|
|
356
|
+
"subscription_details": {
|
|
357
|
+
"metadata": {
|
|
358
|
+
"clientOrderId": "1676563829749-0881"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"subtotal": 600,
|
|
362
|
+
"subtotal_excluding_tax": 600,
|
|
363
|
+
"tax": null,
|
|
364
|
+
"test_clock": null,
|
|
365
|
+
"total": 600,
|
|
366
|
+
"total_discount_amounts": [],
|
|
367
|
+
"total_excluding_tax": 600,
|
|
368
|
+
"total_tax_amounts": [],
|
|
369
|
+
"transfer_data": null,
|
|
370
|
+
"webhooks_delivered_at": 1692202391
|
|
371
|
+
},
|
|
372
|
+
"livemode": true,
|
|
373
|
+
"metadata": {
|
|
374
|
+
"clientOrderId": "1676563829749-0881"
|
|
375
|
+
},
|
|
376
|
+
"next_pending_invoice_item_invoice": null,
|
|
377
|
+
"on_behalf_of": null,
|
|
378
|
+
"pause_collection": null,
|
|
379
|
+
"payment_settings": {
|
|
380
|
+
"payment_method_options": null,
|
|
381
|
+
"payment_method_types": null,
|
|
382
|
+
"save_default_payment_method": "off"
|
|
383
|
+
},
|
|
384
|
+
"pending_invoice_item_interval": null,
|
|
385
|
+
"pending_setup_intent": null,
|
|
386
|
+
"pending_update": null,
|
|
387
|
+
"plan": {
|
|
388
|
+
"id": "price_1JHRVAEvB7hJrWnuAth58S0b",
|
|
389
|
+
"object": "plan",
|
|
390
|
+
"active": true,
|
|
391
|
+
"aggregate_usage": null,
|
|
392
|
+
"amount": 600,
|
|
393
|
+
"amount_decimal": "600",
|
|
394
|
+
"billing_scheme": "per_unit",
|
|
395
|
+
"created": 1627297060,
|
|
396
|
+
"currency": "usd",
|
|
397
|
+
"interval": "month",
|
|
398
|
+
"interval_count": 1,
|
|
399
|
+
"livemode": true,
|
|
400
|
+
"metadata": {},
|
|
401
|
+
"nickname": null,
|
|
402
|
+
"product": "prod_JvI5la5XgSjpUj",
|
|
403
|
+
"tiers_mode": null,
|
|
404
|
+
"transform_usage": null,
|
|
405
|
+
"trial_period_days": null,
|
|
406
|
+
"usage_type": "licensed"
|
|
407
|
+
},
|
|
408
|
+
"quantity": 1,
|
|
409
|
+
"schedule": null,
|
|
410
|
+
"start_date": 1676563959,
|
|
411
|
+
"status": "active",
|
|
412
|
+
"test_clock": null,
|
|
413
|
+
"transfer_data": null,
|
|
414
|
+
"trial_end": null,
|
|
415
|
+
"trial_settings": {
|
|
416
|
+
"end_behavior": {
|
|
417
|
+
"missing_payment_method": "create_invoice"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"trial_start": null
|
|
421
|
+
}
|