chargebee 3.25.0-beta.1 → 3.26.0
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/CHANGELOG.md +103 -4
- package/README.md +0 -39
- package/cjs/RequestWrapper.js +1 -28
- package/cjs/chargebee.cjs.js +0 -3
- package/cjs/chargebee.cjs.worker.js +0 -2
- package/cjs/createChargebee.js +0 -5
- package/cjs/environment.js +1 -1
- package/cjs/resources/api_endpoints.js +121 -3
- package/cjs/resources/webhook/eventType.js +2 -0
- package/esm/RequestWrapper.js +1 -28
- package/esm/chargebee.esm.js +0 -2
- package/esm/chargebee.esm.worker.js +0 -1
- package/esm/createChargebee.js +0 -5
- package/esm/environment.js +1 -1
- package/esm/resources/api_endpoints.js +121 -3
- package/esm/resources/webhook/eventType.js +2 -0
- package/package.json +1 -4
- package/types/core.d.ts +24 -6
- package/types/index.d.ts +8 -17
- package/types/resources/Content.d.ts +4 -1
- package/types/resources/CreditNote.d.ts +1 -0
- package/types/resources/Customer.d.ts +14 -4
- package/types/resources/Estimate.d.ts +14 -4
- package/types/resources/Event.d.ts +2 -0
- package/types/resources/Gift.d.ts +23 -6
- package/types/resources/GrantBlock.d.ts +59 -0
- package/types/resources/HostedPage.d.ts +6 -1
- package/types/resources/Invoice.d.ts +14 -5
- package/types/resources/LedgerAccountBalance.d.ts +50 -0
- package/types/resources/LedgerOperation.d.ts +141 -0
- package/types/resources/OmnichannelSubscription.d.ts +8 -0
- package/types/resources/OmnichannelSubscriptionItem.d.ts +1 -0
- package/types/resources/PaymentIntent.d.ts +35 -10
- package/types/resources/PaymentSource.d.ts +7 -2
- package/types/resources/PromotionalGrant.d.ts +37 -0
- package/types/resources/Purchase.d.ts +7 -2
- package/types/resources/Subscription.d.ts +49 -14
- package/types/resources/WebhookEvent.d.ts +22 -4
- package/cjs/chargebeeZodValidationError.js +0 -18
- package/cjs/schema/addon.schema.js +0 -153
- package/cjs/schema/address.schema.js +0 -35
- package/cjs/schema/alert.schema.js +0 -38
- package/cjs/schema/attached_item.schema.js +0 -58
- package/cjs/schema/business_entity.schema.js +0 -46
- package/cjs/schema/card.schema.js +0 -165
- package/cjs/schema/comment.schema.js +0 -69
- package/cjs/schema/coupon.schema.js +0 -209
- package/cjs/schema/coupon_code.schema.js +0 -14
- package/cjs/schema/coupon_set.schema.js +0 -28
- package/cjs/schema/credit_note.schema.js +0 -288
- package/cjs/schema/currency.schema.js +0 -32
- package/cjs/schema/customer.schema.js +0 -986
- package/cjs/schema/customer_entitlement.schema.js +0 -14
- package/cjs/schema/differential_price.schema.js +0 -68
- package/cjs/schema/entitlement.schema.js +0 -27
- package/cjs/schema/entitlement_override.schema.js +0 -33
- package/cjs/schema/estimate.schema.js +0 -1525
- package/cjs/schema/export.schema.js +0 -1545
- package/cjs/schema/feature.schema.js +0 -37
- package/cjs/schema/gift.schema.js +0 -277
- package/cjs/schema/hosted_page.schema.js +0 -1649
- package/cjs/schema/in_app_subscription.schema.js +0 -68
- package/cjs/schema/index.js +0 -80
- package/cjs/schema/invoice.schema.js +0 -1467
- package/cjs/schema/item.schema.js +0 -91
- package/cjs/schema/item_entitlement.schema.js +0 -45
- package/cjs/schema/item_family.schema.js +0 -21
- package/cjs/schema/item_price.schema.js +0 -190
- package/cjs/schema/non_subscription.schema.js +0 -28
- package/cjs/schema/offer_event.schema.js +0 -13
- package/cjs/schema/offer_fulfillment.schema.js +0 -20
- package/cjs/schema/omnichannel_one_time_order.schema.js +0 -26
- package/cjs/schema/omnichannel_subscription.schema.js +0 -89
- package/cjs/schema/omnichannel_subscription_item.schema.js +0 -13
- package/cjs/schema/order.schema.js +0 -273
- package/cjs/schema/payment_intent.schema.js +0 -117
- package/cjs/schema/payment_schedule_scheme.schema.js +0 -20
- package/cjs/schema/payment_source.schema.js +0 -358
- package/cjs/schema/payment_voucher.schema.js +0 -57
- package/cjs/schema/personalized_offer.schema.js +0 -28
- package/cjs/schema/plan.schema.js +0 -225
- package/cjs/schema/portal_session.schema.js +0 -22
- package/cjs/schema/price_variant.schema.js +0 -36
- package/cjs/schema/pricing_page_session.schema.js +0 -135
- package/cjs/schema/promotional_credit.schema.js +0 -78
- package/cjs/schema/purchase.schema.js +0 -272
- package/cjs/schema/quote.schema.js +0 -1557
- package/cjs/schema/ramp.schema.js +0 -209
- package/cjs/schema/recorded_purchase.schema.js +0 -32
- package/cjs/schema/resource_migration.schema.js +0 -14
- package/cjs/schema/site_migration_detail.schema.js +0 -81
- package/cjs/schema/subscription.schema.js +0 -2993
- package/cjs/schema/subscription_entitlement.schema.js +0 -25
- package/cjs/schema/time_machine.schema.js +0 -17
- package/cjs/schema/transaction.schema.js +0 -70
- package/cjs/schema/unbilled_charge.schema.js +0 -113
- package/cjs/schema/usage.schema.js +0 -93
- package/cjs/schema/usage_charge.schema.js +0 -17
- package/cjs/schema/usage_event.schema.js +0 -28
- package/cjs/schema/usage_file.schema.js +0 -13
- package/cjs/schema/usage_summary.schema.js +0 -17
- package/cjs/schema/virtual_bank_account.schema.js +0 -43
- package/cjs/schema/webhook_endpoint.schema.js +0 -504
- package/cjs/validationLoader.js +0 -59
- package/esm/chargebeeZodValidationError.js +0 -14
- package/esm/schema/addon.schema.js +0 -150
- package/esm/schema/address.schema.js +0 -32
- package/esm/schema/alert.schema.js +0 -35
- package/esm/schema/attached_item.schema.js +0 -55
- package/esm/schema/business_entity.schema.js +0 -43
- package/esm/schema/card.schema.js +0 -162
- package/esm/schema/comment.schema.js +0 -66
- package/esm/schema/coupon.schema.js +0 -206
- package/esm/schema/coupon_code.schema.js +0 -11
- package/esm/schema/coupon_set.schema.js +0 -25
- package/esm/schema/credit_note.schema.js +0 -285
- package/esm/schema/currency.schema.js +0 -29
- package/esm/schema/customer.schema.js +0 -983
- package/esm/schema/customer_entitlement.schema.js +0 -11
- package/esm/schema/differential_price.schema.js +0 -65
- package/esm/schema/entitlement.schema.js +0 -24
- package/esm/schema/entitlement_override.schema.js +0 -30
- package/esm/schema/estimate.schema.js +0 -1522
- package/esm/schema/export.schema.js +0 -1542
- package/esm/schema/feature.schema.js +0 -34
- package/esm/schema/gift.schema.js +0 -274
- package/esm/schema/hosted_page.schema.js +0 -1646
- package/esm/schema/in_app_subscription.schema.js +0 -65
- package/esm/schema/index.js +0 -64
- package/esm/schema/invoice.schema.js +0 -1464
- package/esm/schema/item.schema.js +0 -88
- package/esm/schema/item_entitlement.schema.js +0 -42
- package/esm/schema/item_family.schema.js +0 -18
- package/esm/schema/item_price.schema.js +0 -187
- package/esm/schema/non_subscription.schema.js +0 -25
- package/esm/schema/offer_event.schema.js +0 -10
- package/esm/schema/offer_fulfillment.schema.js +0 -17
- package/esm/schema/omnichannel_one_time_order.schema.js +0 -23
- package/esm/schema/omnichannel_subscription.schema.js +0 -86
- package/esm/schema/omnichannel_subscription_item.schema.js +0 -10
- package/esm/schema/order.schema.js +0 -270
- package/esm/schema/payment_intent.schema.js +0 -114
- package/esm/schema/payment_schedule_scheme.schema.js +0 -17
- package/esm/schema/payment_source.schema.js +0 -355
- package/esm/schema/payment_voucher.schema.js +0 -54
- package/esm/schema/personalized_offer.schema.js +0 -25
- package/esm/schema/plan.schema.js +0 -222
- package/esm/schema/portal_session.schema.js +0 -19
- package/esm/schema/price_variant.schema.js +0 -33
- package/esm/schema/pricing_page_session.schema.js +0 -132
- package/esm/schema/promotional_credit.schema.js +0 -75
- package/esm/schema/purchase.schema.js +0 -269
- package/esm/schema/quote.schema.js +0 -1554
- package/esm/schema/ramp.schema.js +0 -206
- package/esm/schema/recorded_purchase.schema.js +0 -29
- package/esm/schema/resource_migration.schema.js +0 -11
- package/esm/schema/site_migration_detail.schema.js +0 -78
- package/esm/schema/subscription.schema.js +0 -2990
- package/esm/schema/subscription_entitlement.schema.js +0 -22
- package/esm/schema/time_machine.schema.js +0 -14
- package/esm/schema/transaction.schema.js +0 -67
- package/esm/schema/unbilled_charge.schema.js +0 -110
- package/esm/schema/usage.schema.js +0 -90
- package/esm/schema/usage_charge.schema.js +0 -14
- package/esm/schema/usage_event.schema.js +0 -25
- package/esm/schema/usage_file.schema.js +0 -10
- package/esm/schema/usage_summary.schema.js +0 -14
- package/esm/schema/virtual_bank_account.schema.js +0 -40
- package/esm/schema/webhook_endpoint.schema.js +0 -501
- package/esm/validationLoader.js +0 -56
- package/types/resources/QuoteEntitlement.d.ts +0 -16
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Generated Zod schemas: InAppSubscription
|
|
3
|
-
// Actions: processReceipt, importReceipt, importSubscription, retrieveStoreSubs
|
|
4
|
-
// Do not edit manually – regenerate via sdk-generator
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.RetrieveStoreSubsInAppSubscriptionBodySchema = exports.ImportSubscriptionInAppSubscriptionBodySchema = exports.ImportReceiptInAppSubscriptionBodySchema = exports.ProcessReceiptInAppSubscriptionBodySchema = void 0;
|
|
7
|
-
const zod_1 = require("zod");
|
|
8
|
-
//InAppSubscription.processReceipt
|
|
9
|
-
const ProcessReceiptInAppSubscriptionProductSchema = zod_1.z.object({
|
|
10
|
-
id: zod_1.z.string().max(96),
|
|
11
|
-
currency_code: zod_1.z.string().max(3),
|
|
12
|
-
price: zod_1.z.number().int().min(0),
|
|
13
|
-
name: zod_1.z.string().max(46).optional(),
|
|
14
|
-
price_in_decimal: zod_1.z.string().max(39).optional(),
|
|
15
|
-
period: zod_1.z.string().max(3).optional(),
|
|
16
|
-
period_unit: zod_1.z.string().max(3).optional(),
|
|
17
|
-
});
|
|
18
|
-
const ProcessReceiptInAppSubscriptionCustomerSchema = zod_1.z.object({
|
|
19
|
-
id: zod_1.z.string().max(50).optional(),
|
|
20
|
-
email: zod_1.z.string().email().max(70).optional(),
|
|
21
|
-
first_name: zod_1.z.string().max(150).optional(),
|
|
22
|
-
last_name: zod_1.z.string().max(150).optional(),
|
|
23
|
-
});
|
|
24
|
-
const ProcessReceiptInAppSubscriptionBodySchema = zod_1.z.looseObject({
|
|
25
|
-
receipt: zod_1.z.string().max(65000),
|
|
26
|
-
product: ProcessReceiptInAppSubscriptionProductSchema.optional(),
|
|
27
|
-
customer: ProcessReceiptInAppSubscriptionCustomerSchema.optional(),
|
|
28
|
-
});
|
|
29
|
-
exports.ProcessReceiptInAppSubscriptionBodySchema = ProcessReceiptInAppSubscriptionBodySchema;
|
|
30
|
-
//InAppSubscription.importReceipt
|
|
31
|
-
const ImportReceiptInAppSubscriptionProductSchema = zod_1.z.object({
|
|
32
|
-
currency_code: zod_1.z.string().max(3),
|
|
33
|
-
});
|
|
34
|
-
const ImportReceiptInAppSubscriptionCustomerSchema = zod_1.z.object({
|
|
35
|
-
id: zod_1.z.string().max(50).optional(),
|
|
36
|
-
email: zod_1.z.string().email().max(70).optional(),
|
|
37
|
-
});
|
|
38
|
-
const ImportReceiptInAppSubscriptionBodySchema = zod_1.z.looseObject({
|
|
39
|
-
receipt: zod_1.z.string().max(65000),
|
|
40
|
-
product: ImportReceiptInAppSubscriptionProductSchema.optional(),
|
|
41
|
-
customer: ImportReceiptInAppSubscriptionCustomerSchema.optional(),
|
|
42
|
-
});
|
|
43
|
-
exports.ImportReceiptInAppSubscriptionBodySchema = ImportReceiptInAppSubscriptionBodySchema;
|
|
44
|
-
//InAppSubscription.importSubscription
|
|
45
|
-
const ImportSubscriptionInAppSubscriptionSubscriptionSchema = zod_1.z.object({
|
|
46
|
-
id: zod_1.z.string().max(50),
|
|
47
|
-
started_at: zod_1.z.number().int(),
|
|
48
|
-
term_start: zod_1.z.number().int(),
|
|
49
|
-
term_end: zod_1.z.number().int(),
|
|
50
|
-
product_id: zod_1.z.string().max(96),
|
|
51
|
-
currency_code: zod_1.z.string().max(3),
|
|
52
|
-
transaction_id: zod_1.z.string().max(43),
|
|
53
|
-
is_trial: zod_1.z.boolean().default(false).optional(),
|
|
54
|
-
});
|
|
55
|
-
const ImportSubscriptionInAppSubscriptionCustomerSchema = zod_1.z.object({
|
|
56
|
-
id: zod_1.z.string().max(50).optional(),
|
|
57
|
-
email: zod_1.z.string().email().max(70).optional(),
|
|
58
|
-
});
|
|
59
|
-
const ImportSubscriptionInAppSubscriptionBodySchema = zod_1.z.looseObject({
|
|
60
|
-
subscription: ImportSubscriptionInAppSubscriptionSubscriptionSchema.optional(),
|
|
61
|
-
customer: ImportSubscriptionInAppSubscriptionCustomerSchema.optional(),
|
|
62
|
-
});
|
|
63
|
-
exports.ImportSubscriptionInAppSubscriptionBodySchema = ImportSubscriptionInAppSubscriptionBodySchema;
|
|
64
|
-
//InAppSubscription.retrieveStoreSubs
|
|
65
|
-
const RetrieveStoreSubsInAppSubscriptionBodySchema = zod_1.z.looseObject({
|
|
66
|
-
receipt: zod_1.z.string().max(65000),
|
|
67
|
-
});
|
|
68
|
-
exports.RetrieveStoreSubsInAppSubscriptionBodySchema = RetrieveStoreSubsInAppSubscriptionBodySchema;
|
package/cjs/schema/index.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
// Auto-generated barrel export for Zod validators
|
|
18
|
-
__exportStar(require("./addon.schema.js"), exports);
|
|
19
|
-
__exportStar(require("./address.schema.js"), exports);
|
|
20
|
-
__exportStar(require("./alert.schema.js"), exports);
|
|
21
|
-
__exportStar(require("./attached_item.schema.js"), exports);
|
|
22
|
-
__exportStar(require("./business_entity.schema.js"), exports);
|
|
23
|
-
__exportStar(require("./card.schema.js"), exports);
|
|
24
|
-
__exportStar(require("./comment.schema.js"), exports);
|
|
25
|
-
__exportStar(require("./coupon.schema.js"), exports);
|
|
26
|
-
__exportStar(require("./coupon_code.schema.js"), exports);
|
|
27
|
-
__exportStar(require("./coupon_set.schema.js"), exports);
|
|
28
|
-
__exportStar(require("./credit_note.schema.js"), exports);
|
|
29
|
-
__exportStar(require("./currency.schema.js"), exports);
|
|
30
|
-
__exportStar(require("./customer.schema.js"), exports);
|
|
31
|
-
__exportStar(require("./customer_entitlement.schema.js"), exports);
|
|
32
|
-
__exportStar(require("./differential_price.schema.js"), exports);
|
|
33
|
-
__exportStar(require("./entitlement.schema.js"), exports);
|
|
34
|
-
__exportStar(require("./entitlement_override.schema.js"), exports);
|
|
35
|
-
__exportStar(require("./estimate.schema.js"), exports);
|
|
36
|
-
__exportStar(require("./export.schema.js"), exports);
|
|
37
|
-
__exportStar(require("./feature.schema.js"), exports);
|
|
38
|
-
__exportStar(require("./gift.schema.js"), exports);
|
|
39
|
-
__exportStar(require("./hosted_page.schema.js"), exports);
|
|
40
|
-
__exportStar(require("./in_app_subscription.schema.js"), exports);
|
|
41
|
-
__exportStar(require("./invoice.schema.js"), exports);
|
|
42
|
-
__exportStar(require("./item.schema.js"), exports);
|
|
43
|
-
__exportStar(require("./item_entitlement.schema.js"), exports);
|
|
44
|
-
__exportStar(require("./item_family.schema.js"), exports);
|
|
45
|
-
__exportStar(require("./item_price.schema.js"), exports);
|
|
46
|
-
__exportStar(require("./non_subscription.schema.js"), exports);
|
|
47
|
-
__exportStar(require("./offer_event.schema.js"), exports);
|
|
48
|
-
__exportStar(require("./offer_fulfillment.schema.js"), exports);
|
|
49
|
-
__exportStar(require("./omnichannel_one_time_order.schema.js"), exports);
|
|
50
|
-
__exportStar(require("./omnichannel_subscription.schema.js"), exports);
|
|
51
|
-
__exportStar(require("./omnichannel_subscription_item.schema.js"), exports);
|
|
52
|
-
__exportStar(require("./order.schema.js"), exports);
|
|
53
|
-
__exportStar(require("./payment_intent.schema.js"), exports);
|
|
54
|
-
__exportStar(require("./payment_schedule_scheme.schema.js"), exports);
|
|
55
|
-
__exportStar(require("./payment_source.schema.js"), exports);
|
|
56
|
-
__exportStar(require("./payment_voucher.schema.js"), exports);
|
|
57
|
-
__exportStar(require("./personalized_offer.schema.js"), exports);
|
|
58
|
-
__exportStar(require("./plan.schema.js"), exports);
|
|
59
|
-
__exportStar(require("./portal_session.schema.js"), exports);
|
|
60
|
-
__exportStar(require("./price_variant.schema.js"), exports);
|
|
61
|
-
__exportStar(require("./pricing_page_session.schema.js"), exports);
|
|
62
|
-
__exportStar(require("./promotional_credit.schema.js"), exports);
|
|
63
|
-
__exportStar(require("./purchase.schema.js"), exports);
|
|
64
|
-
__exportStar(require("./quote.schema.js"), exports);
|
|
65
|
-
__exportStar(require("./ramp.schema.js"), exports);
|
|
66
|
-
__exportStar(require("./recorded_purchase.schema.js"), exports);
|
|
67
|
-
__exportStar(require("./resource_migration.schema.js"), exports);
|
|
68
|
-
__exportStar(require("./site_migration_detail.schema.js"), exports);
|
|
69
|
-
__exportStar(require("./subscription.schema.js"), exports);
|
|
70
|
-
__exportStar(require("./subscription_entitlement.schema.js"), exports);
|
|
71
|
-
__exportStar(require("./time_machine.schema.js"), exports);
|
|
72
|
-
__exportStar(require("./transaction.schema.js"), exports);
|
|
73
|
-
__exportStar(require("./unbilled_charge.schema.js"), exports);
|
|
74
|
-
__exportStar(require("./usage.schema.js"), exports);
|
|
75
|
-
__exportStar(require("./usage_charge.schema.js"), exports);
|
|
76
|
-
__exportStar(require("./usage_event.schema.js"), exports);
|
|
77
|
-
__exportStar(require("./usage_file.schema.js"), exports);
|
|
78
|
-
__exportStar(require("./usage_summary.schema.js"), exports);
|
|
79
|
-
__exportStar(require("./virtual_bank_account.schema.js"), exports);
|
|
80
|
-
__exportStar(require("./webhook_endpoint.schema.js"), exports);
|