@flexprice/sdk 2.1.44-dev.1 → 2.1.44-dev.3

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.
Files changed (59) hide show
  1. package/docs/sdk/models/invoice-sync-settings.md +1 -0
  2. package/docs/sdk/models/self-billing-charge-response.md +35 -0
  3. package/docs/sdk/models/self-billing-plan-response.md +18 -0
  4. package/docs/sdk/models/self-billing-summary-response.md +1 -0
  5. package/docs/sdk/models/zoho-pay-pal-payment-method.md +17 -0
  6. package/docs/sdk/models/zoho-payment-gateway-settings.md +17 -0
  7. package/docs/sdk/models/zoho-payment-gateway.md +17 -0
  8. package/docs/sdks/selfbilling/README.md +1 -1
  9. package/esm/funcs/self-billing-get-self-billing-summary.d.ts +1 -1
  10. package/esm/funcs/self-billing-get-self-billing-summary.js +1 -1
  11. package/esm/lib/config.d.ts +3 -3
  12. package/esm/lib/config.js +3 -3
  13. package/esm/sdk/models/index.d.ts +5 -0
  14. package/esm/sdk/models/index.d.ts.map +1 -1
  15. package/esm/sdk/models/index.js +5 -0
  16. package/esm/sdk/models/index.js.map +1 -1
  17. package/esm/sdk/models/invoice-sync-settings.d.ts +2 -0
  18. package/esm/sdk/models/invoice-sync-settings.d.ts.map +1 -1
  19. package/esm/sdk/models/invoice-sync-settings.js +3 -0
  20. package/esm/sdk/models/invoice-sync-settings.js.map +1 -1
  21. package/esm/sdk/models/self-billing-charge-response.d.ts +45 -0
  22. package/esm/sdk/models/self-billing-charge-response.d.ts.map +1 -0
  23. package/esm/sdk/models/self-billing-charge-response.js +63 -0
  24. package/esm/sdk/models/self-billing-charge-response.js.map +1 -0
  25. package/esm/sdk/models/self-billing-plan-response.d.ts +14 -0
  26. package/esm/sdk/models/self-billing-plan-response.d.ts.map +1 -0
  27. package/esm/sdk/models/self-billing-plan-response.js +18 -0
  28. package/esm/sdk/models/self-billing-plan-response.js.map +1 -0
  29. package/esm/sdk/models/self-billing-summary-response.d.ts +2 -0
  30. package/esm/sdk/models/self-billing-summary-response.d.ts.map +1 -1
  31. package/esm/sdk/models/self-billing-summary-response.js +2 -0
  32. package/esm/sdk/models/self-billing-summary-response.js.map +1 -1
  33. package/esm/sdk/models/zoho-pay-pal-payment-method.d.ts +10 -0
  34. package/esm/sdk/models/zoho-pay-pal-payment-method.d.ts.map +1 -0
  35. package/esm/sdk/models/zoho-pay-pal-payment-method.js +11 -0
  36. package/esm/sdk/models/zoho-pay-pal-payment-method.js.map +1 -0
  37. package/esm/sdk/models/zoho-payment-gateway-settings.d.ts +14 -0
  38. package/esm/sdk/models/zoho-payment-gateway-settings.d.ts.map +1 -0
  39. package/esm/sdk/models/zoho-payment-gateway-settings.js +23 -0
  40. package/esm/sdk/models/zoho-payment-gateway-settings.js.map +1 -0
  41. package/esm/sdk/models/zoho-payment-gateway.d.ts +15 -0
  42. package/esm/sdk/models/zoho-payment-gateway.d.ts.map +1 -0
  43. package/esm/sdk/models/zoho-payment-gateway.js +16 -0
  44. package/esm/sdk/models/zoho-payment-gateway.js.map +1 -0
  45. package/esm/sdk/self-billing.d.ts +1 -1
  46. package/esm/sdk/self-billing.js +1 -1
  47. package/jsr.json +1 -1
  48. package/package.json +1 -1
  49. package/src/funcs/self-billing-get-self-billing-summary.ts +1 -1
  50. package/src/lib/config.ts +3 -3
  51. package/src/sdk/models/index.ts +5 -0
  52. package/src/sdk/models/invoice-sync-settings.ts +7 -0
  53. package/src/sdk/models/self-billing-charge-response.ts +124 -0
  54. package/src/sdk/models/self-billing-plan-response.ts +41 -0
  55. package/src/sdk/models/self-billing-summary-response.ts +6 -0
  56. package/src/sdk/models/zoho-pay-pal-payment-method.ts +19 -0
  57. package/src/sdk/models/zoho-payment-gateway-settings.ts +53 -0
  58. package/src/sdk/models/zoho-payment-gateway.ts +24 -0
  59. package/src/sdk/self-billing.ts +1 -1
@@ -0,0 +1,63 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as types from "../../types/primitives.js";
8
+ import { BillingModel$inboundSchema } from "./billing-model.js";
9
+ import { BillingPeriod$inboundSchema, } from "./billing-period.js";
10
+ import { BillingTier$inboundSchema } from "./billing-tier.js";
11
+ import { InvoiceCadence$inboundSchema, } from "./invoice-cadence.js";
12
+ import { PricePriceTier$inboundSchema, } from "./price-price-tier.js";
13
+ import { PriceTransformQuantity$inboundSchema, } from "./price-transform-quantity.js";
14
+ import { PriceType$inboundSchema } from "./price-type.js";
15
+ import { PriceUnitType$inboundSchema, } from "./price-unit-type.js";
16
+ import { WindowSize$inboundSchema } from "./window-size.js";
17
+ /** @internal */
18
+ export const SelfBillingChargeResponse$inboundSchema = z.pipe(z.object({
19
+ amount: types.optional(types.string()),
20
+ billing_model: types.optional(BillingModel$inboundSchema),
21
+ billing_period: types.optional(BillingPeriod$inboundSchema),
22
+ billing_period_count: types.optional(types.number()),
23
+ bucket_size: types.optional(WindowSize$inboundSchema),
24
+ currency: types.optional(types.string()),
25
+ display_name: types.optional(types.string()),
26
+ invoice_cadence: types.optional(InvoiceCadence$inboundSchema),
27
+ line_item_id: types.optional(types.string()),
28
+ meter_display_name: types.optional(types.string()),
29
+ meter_id: types.optional(types.string()),
30
+ price_id: types.optional(types.string()),
31
+ price_unit: types.optional(types.string()),
32
+ price_unit_amount: types.optional(types.string()),
33
+ price_unit_tiers: types.optional(z.array(PricePriceTier$inboundSchema)),
34
+ price_unit_type: types.optional(PriceUnitType$inboundSchema),
35
+ quantity: types.optional(types.string()),
36
+ tier_mode: types.optional(BillingTier$inboundSchema),
37
+ tiers: types.optional(z.array(PricePriceTier$inboundSchema)),
38
+ transform_quantity: types.optional(PriceTransformQuantity$inboundSchema),
39
+ type: types.optional(PriceType$inboundSchema),
40
+ }), z.transform((v) => {
41
+ return remap$(v, {
42
+ "billing_model": "billingModel",
43
+ "billing_period": "billingPeriod",
44
+ "billing_period_count": "billingPeriodCount",
45
+ "bucket_size": "bucketSize",
46
+ "display_name": "displayName",
47
+ "invoice_cadence": "invoiceCadence",
48
+ "line_item_id": "lineItemId",
49
+ "meter_display_name": "meterDisplayName",
50
+ "meter_id": "meterId",
51
+ "price_id": "priceId",
52
+ "price_unit": "priceUnit",
53
+ "price_unit_amount": "priceUnitAmount",
54
+ "price_unit_tiers": "priceUnitTiers",
55
+ "price_unit_type": "priceUnitType",
56
+ "tier_mode": "tierMode",
57
+ "transform_quantity": "transformQuantity",
58
+ });
59
+ }));
60
+ export function selfBillingChargeResponseFromJSON(jsonString) {
61
+ return safeParse(jsonString, (x) => SelfBillingChargeResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SelfBillingChargeResponse' from JSON`);
62
+ }
63
+ //# sourceMappingURL=self-billing-charge-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"self-billing-charge-response.js","sourceRoot":"","sources":["../../../src/sdk/models/self-billing-charge-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAgB,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAEL,2BAA2B,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAe,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAEL,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,oCAAoC,GACrC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAa,uBAAuB,EAAE,MAAM,iBAAiB,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xD,CAAC;AAAA,CACH"}
@@ -0,0 +1,14 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "./sdk-validation-error.js";
4
+ import { SelfBillingChargeResponse } from "./self-billing-charge-response.js";
5
+ export type SelfBillingPlanResponse = {
6
+ charges?: Array<SelfBillingChargeResponse> | undefined;
7
+ description?: string | undefined;
8
+ id?: string | undefined;
9
+ name?: string | undefined;
10
+ };
11
+ /** @internal */
12
+ export declare const SelfBillingPlanResponse$inboundSchema: z.ZodMiniType<SelfBillingPlanResponse, unknown>;
13
+ export declare function selfBillingPlanResponseFromJSON(jsonString: string): SafeParseResult<SelfBillingPlanResponse, SDKValidationError>;
14
+ //# sourceMappingURL=self-billing-plan-response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"self-billing-plan-response.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/self-billing-plan-response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,yBAAyB,EAE1B,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC;IACvD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAMP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { safeParse } from "../../lib/schemas.js";
6
+ import * as types from "../../types/primitives.js";
7
+ import { SelfBillingChargeResponse$inboundSchema, } from "./self-billing-charge-response.js";
8
+ /** @internal */
9
+ export const SelfBillingPlanResponse$inboundSchema = z.object({
10
+ charges: types.optional(z.array(SelfBillingChargeResponse$inboundSchema)),
11
+ description: types.optional(types.string()),
12
+ id: types.optional(types.string()),
13
+ name: types.optional(types.string()),
14
+ });
15
+ export function selfBillingPlanResponseFromJSON(jsonString) {
16
+ return safeParse(jsonString, (x) => SelfBillingPlanResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SelfBillingPlanResponse' from JSON`);
17
+ }
18
+ //# sourceMappingURL=self-billing-plan-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"self-billing-plan-response.js","sourceRoot":"","sources":["../../../src/sdk/models/self-billing-plan-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAEnD,OAAO,EAEL,uCAAuC,GACxC,MAAM,mCAAmC,CAAC;AAS3C,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACzE,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAC3C,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IAClC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACrC,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAC7C,UAAkB,EAC4C;IAC9D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AAAA,CACH"}
@@ -3,10 +3,12 @@ import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { CustomerUsageSummaryResponse } from "./customer-usage-summary-response.js";
4
4
  import { SDKValidationError } from "./sdk-validation-error.js";
5
5
  import { SelfBillingInvoice } from "./self-billing-invoice.js";
6
+ import { SelfBillingPlanResponse } from "./self-billing-plan-response.js";
6
7
  import { SubscriptionStatus } from "./subscription-status.js";
7
8
  import { TenantInternalStatus } from "./tenant-internal-status.js";
8
9
  export type SelfBillingSummaryResponse = {
9
10
  invoices?: Array<SelfBillingInvoice> | undefined;
11
+ plan?: SelfBillingPlanResponse | undefined;
10
12
  status?: TenantInternalStatus | undefined;
11
13
  subscriptionStatus?: SubscriptionStatus | undefined;
12
14
  trialEndsAt?: Date | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"self-billing-summary-response.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/self-billing-summary-response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EACL,4BAA4B,EAE7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,oBAAoB,EAErB,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;IACjD,MAAM,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC1C,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpD,WAAW,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC/B,KAAK,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,0BAA0B,EAC1B,OAAO,CAeR,CAAC;AAEF,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
1
+ {"version":3,"file":"self-billing-summary-response.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/self-billing-summary-response.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EACL,4BAA4B,EAE7B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,uBAAuB,EAExB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,oBAAoB,EAErB,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;IACjD,IAAI,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAC3C,MAAM,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC1C,kBAAkB,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpD,WAAW,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC/B,KAAK,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,0BAA0B,EAC1B,OAAO,CAgBR,CAAC;AAEF,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -7,11 +7,13 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import * as types from "../../types/primitives.js";
8
8
  import { CustomerUsageSummaryResponse$inboundSchema, } from "./customer-usage-summary-response.js";
9
9
  import { SelfBillingInvoice$inboundSchema, } from "./self-billing-invoice.js";
10
+ import { SelfBillingPlanResponse$inboundSchema, } from "./self-billing-plan-response.js";
10
11
  import { SubscriptionStatus$inboundSchema, } from "./subscription-status.js";
11
12
  import { TenantInternalStatus$inboundSchema, } from "./tenant-internal-status.js";
12
13
  /** @internal */
13
14
  export const SelfBillingSummaryResponse$inboundSchema = z.pipe(z.object({
14
15
  invoices: types.optional(z.array(SelfBillingInvoice$inboundSchema)),
16
+ plan: types.optional(SelfBillingPlanResponse$inboundSchema),
15
17
  status: types.optional(TenantInternalStatus$inboundSchema),
16
18
  subscription_status: types.optional(SubscriptionStatus$inboundSchema),
17
19
  trial_ends_at: types.optional(types.date()),
@@ -1 +1 @@
1
- {"version":3,"file":"self-billing-summary-response.js","sourceRoot":"","sources":["../../../src/sdk/models/self-billing-summary-response.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,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M,UAAU,kCAAkC,CAChD,UAAkB,EAC+C;IACjE,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AAAA,CACH"}
@@ -0,0 +1,10 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { OpenEnum } from "../../types/enums.js";
3
+ export declare const ZohoPayPalPaymentMethod: {
4
+ readonly Standard: "standard";
5
+ readonly Adaptive: "adaptive";
6
+ };
7
+ export type ZohoPayPalPaymentMethod = OpenEnum<typeof ZohoPayPalPaymentMethod>;
8
+ /** @internal */
9
+ export declare const ZohoPayPalPaymentMethod$inboundSchema: z.ZodMiniType<ZohoPayPalPaymentMethod, unknown>;
10
+ //# sourceMappingURL=zoho-pay-pal-payment-method.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoho-pay-pal-payment-method.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/zoho-pay-pal-payment-method.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE/E,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,WAAW,CAC/D,uBAAuB,EACvB,OAAO,CAC2C,CAAC"}
@@ -0,0 +1,11 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as openEnums from "../../types/enums.js";
5
+ export const ZohoPayPalPaymentMethod = {
6
+ Standard: "standard",
7
+ Adaptive: "adaptive",
8
+ };
9
+ /** @internal */
10
+ export const ZohoPayPalPaymentMethod$inboundSchema = openEnums.inboundSchema(ZohoPayPalPaymentMethod);
11
+ //# sourceMappingURL=zoho-pay-pal-payment-method.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoho-pay-pal-payment-method.js","sourceRoot":"","sources":["../../../src/sdk/models/zoho-pay-pal-payment-method.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGX,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,SAAS,CAAC,aAAa,CAAC,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "./sdk-validation-error.js";
4
+ import { ZohoPayPalPaymentMethod } from "./zoho-pay-pal-payment-method.js";
5
+ import { ZohoPaymentGateway } from "./zoho-payment-gateway.js";
6
+ export type ZohoPaymentGatewaySettings = {
7
+ enabled?: boolean | undefined;
8
+ gateways?: Array<ZohoPaymentGateway> | undefined;
9
+ paypalPaymentMethod?: ZohoPayPalPaymentMethod | undefined;
10
+ };
11
+ /** @internal */
12
+ export declare const ZohoPaymentGatewaySettings$inboundSchema: z.ZodMiniType<ZohoPaymentGatewaySettings, unknown>;
13
+ export declare function zohoPaymentGatewaySettingsFromJSON(jsonString: string): SafeParseResult<ZohoPaymentGatewaySettings, SDKValidationError>;
14
+ //# sourceMappingURL=zoho-payment-gateway-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoho-payment-gateway-settings.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/zoho-payment-gateway-settings.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,uBAAuB,EAExB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,kBAAkB,EAEnB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,GAAG,SAAS,CAAC;IACjD,mBAAmB,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;CAC3D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,0BAA0B,EAC1B,OAAO,CAcR,CAAC;AAEF,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4-mini";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as types from "../../types/primitives.js";
8
+ import { ZohoPayPalPaymentMethod$inboundSchema, } from "./zoho-pay-pal-payment-method.js";
9
+ import { ZohoPaymentGateway$inboundSchema, } from "./zoho-payment-gateway.js";
10
+ /** @internal */
11
+ export const ZohoPaymentGatewaySettings$inboundSchema = z.pipe(z.object({
12
+ enabled: types.optional(types.boolean()),
13
+ gateways: types.optional(z.array(ZohoPaymentGateway$inboundSchema)),
14
+ paypal_payment_method: types.optional(ZohoPayPalPaymentMethod$inboundSchema),
15
+ }), z.transform((v) => {
16
+ return remap$(v, {
17
+ "paypal_payment_method": "paypalPaymentMethod",
18
+ });
19
+ }));
20
+ export function zohoPaymentGatewaySettingsFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => ZohoPaymentGatewaySettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ZohoPaymentGatewaySettings' from JSON`);
22
+ }
23
+ //# sourceMappingURL=zoho-payment-gateway-settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoho-payment-gateway-settings.js","sourceRoot":"","sources":["../../../src/sdk/models/zoho-payment-gateway-settings.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAEnD,OAAO,EAEL,qCAAqC,GACtC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,gCAAgC,GACjC,MAAM,2BAA2B,CAAC;AAQnC,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAGjD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IACxC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACnE,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CACnC,qCAAqC,CACtC;CACF,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,uBAAuB,EAAE,qBAAqB;KAC/C,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,kCAAkC,CAChD,UAAkB,EAC+C;IACjE,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AAAA,CACH"}
@@ -0,0 +1,15 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { OpenEnum } from "../../types/enums.js";
3
+ export declare const ZohoPaymentGateway: {
4
+ readonly Paypal: "paypal";
5
+ readonly Stripe: "stripe";
6
+ readonly AuthorizeNet: "authorize_net";
7
+ readonly PayflowPro: "payflow_pro";
8
+ readonly Twocheckout: "2checkout";
9
+ readonly Braintree: "braintree";
10
+ readonly Razorpay: "razorpay";
11
+ };
12
+ export type ZohoPaymentGateway = OpenEnum<typeof ZohoPaymentGateway>;
13
+ /** @internal */
14
+ export declare const ZohoPaymentGateway$inboundSchema: z.ZodMiniType<ZohoPaymentGateway, unknown>;
15
+ //# sourceMappingURL=zoho-payment-gateway.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoho-payment-gateway.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/zoho-payment-gateway.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,eAAO,MAAM,kBAAkB;;;;;;;;CAQrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAErE,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,kBAAkB,EAClB,OAAO,CACsC,CAAC"}
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as openEnums from "../../types/enums.js";
5
+ export const ZohoPaymentGateway = {
6
+ Paypal: "paypal",
7
+ Stripe: "stripe",
8
+ AuthorizeNet: "authorize_net",
9
+ PayflowPro: "payflow_pro",
10
+ Twocheckout: "2checkout",
11
+ Braintree: "braintree",
12
+ Razorpay: "razorpay",
13
+ };
14
+ /** @internal */
15
+ export const ZohoPaymentGateway$inboundSchema = openEnums.inboundSchema(ZohoPaymentGateway);
16
+ //# sourceMappingURL=zoho-payment-gateway.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoho-payment-gateway.js","sourceRoot":"","sources":["../../../src/sdk/models/zoho-payment-gateway.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,aAAa;IACzB,WAAW,EAAE,WAAW;IACxB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGX,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,SAAS,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC"}
@@ -40,7 +40,7 @@ export declare class SelfBilling extends ClientSDK {
40
40
  * Get self-billing summary
41
41
  *
42
42
  * @remarks
43
- * Returns the caller tenant's billing status, subscription, recent invoices and usage.
43
+ * Returns billing status, recent invoices, usage and a plan with charges. Charges use expanded subscription line-item prices, including overrides; without a current subscription they use the configured self-serve plan. Pricing terms are not an invoice total.
44
44
  */
45
45
  getSelfBillingSummary(options?: RequestOptions): Promise<models.SelfBillingSummaryResponse>;
46
46
  /**
@@ -60,7 +60,7 @@ export class SelfBilling extends ClientSDK {
60
60
  * Get self-billing summary
61
61
  *
62
62
  * @remarks
63
- * Returns the caller tenant's billing status, subscription, recent invoices and usage.
63
+ * Returns billing status, recent invoices, usage and a plan with charges. Charges use expanded subscription line-item prices, including overrides; without a current subscription they use the configured self-serve plan. Pricing terms are not an invoice total.
64
64
  */
65
65
  async getSelfBillingSummary(options) {
66
66
  return unwrapAsync(selfBillingGetSelfBillingSummary(this, options));
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@flexprice/sdk",
5
- "version": "2.1.44-dev.1",
5
+ "version": "2.1.44-dev.3",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./sdk/models": "./src/sdk/models/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexprice/sdk",
3
- "version": "2.1.44-dev.1",
3
+ "version": "2.1.44-dev.3",
4
4
  "author": "FlexPrice",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
27
27
  * Get self-billing summary
28
28
  *
29
29
  * @remarks
30
- * Returns the caller tenant's billing status, subscription, recent invoices and usage.
30
+ * Returns billing status, recent invoices, usage and a plan with charges. Charges use expanded subscription line-item prices, including overrides; without a current subscription they use the configured self-serve plan. Pricing terms are not an invoice total.
31
31
  */
32
32
  export function selfBillingGetSelfBillingSummary(
33
33
  client: FlexpriceCore,
package/src/lib/config.ts CHANGED
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
69
69
  export const SDK_METADATA = {
70
70
  language: "typescript",
71
71
  openapiDocVersion: "1.0",
72
- sdkVersion: "2.1.44-dev.1",
73
- genVersion: "2.952.5",
74
- userAgent: "speakeasy-sdk/typescript 2.1.44-dev.1 2.952.5 1.0 @flexprice/sdk",
72
+ sdkVersion: "2.1.44-dev.3",
73
+ genVersion: "2.954.8",
74
+ userAgent: "speakeasy-sdk/typescript 2.1.44-dev.3 2.954.8 1.0 @flexprice/sdk",
75
75
  } as const;
@@ -597,9 +597,11 @@ export * from "./secret-provider.js";
597
597
  export * from "./secret-response.js";
598
598
  export * from "./secret-type.js";
599
599
  export * from "./security.js";
600
+ export * from "./self-billing-charge-response.js";
600
601
  export * from "./self-billing-checkout-request.js";
601
602
  export * from "./self-billing-checkout-response.js";
602
603
  export * from "./self-billing-invoice.js";
604
+ export * from "./self-billing-plan-response.js";
603
605
  export * from "./self-billing-portal-response.js";
604
606
  export * from "./self-billing-status-response.js";
605
607
  export * from "./self-billing-summary-response.js";
@@ -838,3 +840,6 @@ export * from "./webhook-event-name.js";
838
840
  export * from "./window-size.js";
839
841
  export * from "./workflow-execution-dto.js";
840
842
  export * from "./workflow-execution-filter.js";
843
+ export * from "./zoho-pay-pal-payment-method.js";
844
+ export * from "./zoho-payment-gateway-settings.js";
845
+ export * from "./zoho-payment-gateway.js";
@@ -24,6 +24,10 @@ import {
24
24
  ServicePeriodCustomFields,
25
25
  ServicePeriodCustomFields$inboundSchema,
26
26
  } from "./service-period-custom-fields.js";
27
+ import {
28
+ ZohoPaymentGatewaySettings,
29
+ ZohoPaymentGatewaySettings$inboundSchema,
30
+ } from "./zoho-payment-gateway-settings.js";
27
31
 
28
32
  export type InvoiceSyncSettings = {
29
33
  /**
@@ -45,6 +49,7 @@ export type InvoiceSyncSettings = {
45
49
  */
46
50
  metadataCustomFields?: Array<MetadataCustomField> | undefined;
47
51
  normalizeFixedTo?: BillingPeriod | undefined;
52
+ paymentGateways?: ZohoPaymentGatewaySettings | undefined;
48
53
  /**
49
54
  * Zoho payment modes are merchant-editable free strings with no id, so this is passed
50
55
  *
@@ -76,6 +81,7 @@ export const InvoiceSyncSettings$inboundSchema: z.ZodMiniType<
76
81
  z.array(MetadataCustomField$inboundSchema),
77
82
  ),
78
83
  normalize_fixed_to: types.optional(BillingPeriod$inboundSchema),
84
+ payment_gateways: types.optional(ZohoPaymentGatewaySettings$inboundSchema),
79
85
  payment_mode: types.optional(types.string()),
80
86
  service_period_custom_fields: types.optional(
81
87
  ServicePeriodCustomFields$inboundSchema,
@@ -88,6 +94,7 @@ export const InvoiceSyncSettings$inboundSchema: z.ZodMiniType<
88
94
  "global_custom_fields": "globalCustomFields",
89
95
  "metadata_custom_fields": "metadataCustomFields",
90
96
  "normalize_fixed_to": "normalizeFixedTo",
97
+ "payment_gateways": "paymentGateways",
91
98
  "payment_mode": "paymentMode",
92
99
  "service_period_custom_fields": "servicePeriodCustomFields",
93
100
  "submit_for_approval": "submitForApproval",
@@ -0,0 +1,124 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as types from "../../types/primitives.js";
10
+ import { BillingModel, BillingModel$inboundSchema } from "./billing-model.js";
11
+ import {
12
+ BillingPeriod,
13
+ BillingPeriod$inboundSchema,
14
+ } from "./billing-period.js";
15
+ import { BillingTier, BillingTier$inboundSchema } from "./billing-tier.js";
16
+ import {
17
+ InvoiceCadence,
18
+ InvoiceCadence$inboundSchema,
19
+ } from "./invoice-cadence.js";
20
+ import {
21
+ PricePriceTier,
22
+ PricePriceTier$inboundSchema,
23
+ } from "./price-price-tier.js";
24
+ import {
25
+ PriceTransformQuantity,
26
+ PriceTransformQuantity$inboundSchema,
27
+ } from "./price-transform-quantity.js";
28
+ import { PriceType, PriceType$inboundSchema } from "./price-type.js";
29
+ import {
30
+ PriceUnitType,
31
+ PriceUnitType$inboundSchema,
32
+ } from "./price-unit-type.js";
33
+ import { SDKValidationError } from "./sdk-validation-error.js";
34
+ import { WindowSize, WindowSize$inboundSchema } from "./window-size.js";
35
+
36
+ export type SelfBillingChargeResponse = {
37
+ /**
38
+ * Amount is a unit rate; tiered charges use tiers instead.
39
+ */
40
+ amount?: string | undefined;
41
+ billingModel?: BillingModel | undefined;
42
+ billingPeriod?: BillingPeriod | undefined;
43
+ billingPeriodCount?: number | undefined;
44
+ bucketSize?: WindowSize | undefined;
45
+ currency?: string | undefined;
46
+ displayName?: string | undefined;
47
+ invoiceCadence?: InvoiceCadence | undefined;
48
+ lineItemId?: string | undefined;
49
+ meterDisplayName?: string | undefined;
50
+ meterId?: string | undefined;
51
+ priceId?: string | undefined;
52
+ priceUnit?: string | undefined;
53
+ priceUnitAmount?: string | undefined;
54
+ priceUnitTiers?: Array<PricePriceTier> | undefined;
55
+ priceUnitType?: PriceUnitType | undefined;
56
+ /**
57
+ * Quantity is the configured quantity; metered usage is returned in summary.usage.
58
+ */
59
+ quantity?: string | undefined;
60
+ tierMode?: BillingTier | undefined;
61
+ tiers?: Array<PricePriceTier> | undefined;
62
+ transformQuantity?: PriceTransformQuantity | undefined;
63
+ type?: PriceType | undefined;
64
+ };
65
+
66
+ /** @internal */
67
+ export const SelfBillingChargeResponse$inboundSchema: z.ZodMiniType<
68
+ SelfBillingChargeResponse,
69
+ unknown
70
+ > = z.pipe(
71
+ z.object({
72
+ amount: types.optional(types.string()),
73
+ billing_model: types.optional(BillingModel$inboundSchema),
74
+ billing_period: types.optional(BillingPeriod$inboundSchema),
75
+ billing_period_count: types.optional(types.number()),
76
+ bucket_size: types.optional(WindowSize$inboundSchema),
77
+ currency: types.optional(types.string()),
78
+ display_name: types.optional(types.string()),
79
+ invoice_cadence: types.optional(InvoiceCadence$inboundSchema),
80
+ line_item_id: types.optional(types.string()),
81
+ meter_display_name: types.optional(types.string()),
82
+ meter_id: types.optional(types.string()),
83
+ price_id: types.optional(types.string()),
84
+ price_unit: types.optional(types.string()),
85
+ price_unit_amount: types.optional(types.string()),
86
+ price_unit_tiers: types.optional(z.array(PricePriceTier$inboundSchema)),
87
+ price_unit_type: types.optional(PriceUnitType$inboundSchema),
88
+ quantity: types.optional(types.string()),
89
+ tier_mode: types.optional(BillingTier$inboundSchema),
90
+ tiers: types.optional(z.array(PricePriceTier$inboundSchema)),
91
+ transform_quantity: types.optional(PriceTransformQuantity$inboundSchema),
92
+ type: types.optional(PriceType$inboundSchema),
93
+ }),
94
+ z.transform((v) => {
95
+ return remap$(v, {
96
+ "billing_model": "billingModel",
97
+ "billing_period": "billingPeriod",
98
+ "billing_period_count": "billingPeriodCount",
99
+ "bucket_size": "bucketSize",
100
+ "display_name": "displayName",
101
+ "invoice_cadence": "invoiceCadence",
102
+ "line_item_id": "lineItemId",
103
+ "meter_display_name": "meterDisplayName",
104
+ "meter_id": "meterId",
105
+ "price_id": "priceId",
106
+ "price_unit": "priceUnit",
107
+ "price_unit_amount": "priceUnitAmount",
108
+ "price_unit_tiers": "priceUnitTiers",
109
+ "price_unit_type": "priceUnitType",
110
+ "tier_mode": "tierMode",
111
+ "transform_quantity": "transformQuantity",
112
+ });
113
+ }),
114
+ );
115
+
116
+ export function selfBillingChargeResponseFromJSON(
117
+ jsonString: string,
118
+ ): SafeParseResult<SelfBillingChargeResponse, SDKValidationError> {
119
+ return safeParse(
120
+ jsonString,
121
+ (x) => SelfBillingChargeResponse$inboundSchema.parse(JSON.parse(x)),
122
+ `Failed to parse 'SelfBillingChargeResponse' from JSON`,
123
+ );
124
+ }
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import * as types from "../../types/primitives.js";
9
+ import { SDKValidationError } from "./sdk-validation-error.js";
10
+ import {
11
+ SelfBillingChargeResponse,
12
+ SelfBillingChargeResponse$inboundSchema,
13
+ } from "./self-billing-charge-response.js";
14
+
15
+ export type SelfBillingPlanResponse = {
16
+ charges?: Array<SelfBillingChargeResponse> | undefined;
17
+ description?: string | undefined;
18
+ id?: string | undefined;
19
+ name?: string | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const SelfBillingPlanResponse$inboundSchema: z.ZodMiniType<
24
+ SelfBillingPlanResponse,
25
+ unknown
26
+ > = z.object({
27
+ charges: types.optional(z.array(SelfBillingChargeResponse$inboundSchema)),
28
+ description: types.optional(types.string()),
29
+ id: types.optional(types.string()),
30
+ name: types.optional(types.string()),
31
+ });
32
+
33
+ export function selfBillingPlanResponseFromJSON(
34
+ jsonString: string,
35
+ ): SafeParseResult<SelfBillingPlanResponse, SDKValidationError> {
36
+ return safeParse(
37
+ jsonString,
38
+ (x) => SelfBillingPlanResponse$inboundSchema.parse(JSON.parse(x)),
39
+ `Failed to parse 'SelfBillingPlanResponse' from JSON`,
40
+ );
41
+ }
@@ -16,6 +16,10 @@ import {
16
16
  SelfBillingInvoice,
17
17
  SelfBillingInvoice$inboundSchema,
18
18
  } from "./self-billing-invoice.js";
19
+ import {
20
+ SelfBillingPlanResponse,
21
+ SelfBillingPlanResponse$inboundSchema,
22
+ } from "./self-billing-plan-response.js";
19
23
  import {
20
24
  SubscriptionStatus,
21
25
  SubscriptionStatus$inboundSchema,
@@ -27,6 +31,7 @@ import {
27
31
 
28
32
  export type SelfBillingSummaryResponse = {
29
33
  invoices?: Array<SelfBillingInvoice> | undefined;
34
+ plan?: SelfBillingPlanResponse | undefined;
30
35
  status?: TenantInternalStatus | undefined;
31
36
  subscriptionStatus?: SubscriptionStatus | undefined;
32
37
  trialEndsAt?: Date | undefined;
@@ -40,6 +45,7 @@ export const SelfBillingSummaryResponse$inboundSchema: z.ZodMiniType<
40
45
  > = z.pipe(
41
46
  z.object({
42
47
  invoices: types.optional(z.array(SelfBillingInvoice$inboundSchema)),
48
+ plan: types.optional(SelfBillingPlanResponse$inboundSchema),
43
49
  status: types.optional(TenantInternalStatus$inboundSchema),
44
50
  subscription_status: types.optional(SubscriptionStatus$inboundSchema),
45
51
  trial_ends_at: types.optional(types.date()),
@@ -0,0 +1,19 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4-mini";
6
+ import * as openEnums from "../../types/enums.js";
7
+ import { OpenEnum } from "../../types/enums.js";
8
+
9
+ export const ZohoPayPalPaymentMethod = {
10
+ Standard: "standard",
11
+ Adaptive: "adaptive",
12
+ } as const;
13
+ export type ZohoPayPalPaymentMethod = OpenEnum<typeof ZohoPayPalPaymentMethod>;
14
+
15
+ /** @internal */
16
+ export const ZohoPayPalPaymentMethod$inboundSchema: z.ZodMiniType<
17
+ ZohoPayPalPaymentMethod,
18
+ unknown
19
+ > = openEnums.inboundSchema(ZohoPayPalPaymentMethod);