@openmeter/client 1.0.0-beta-097ee6357e90 → 1.0.0-beta-d8b5c0006ffd
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/README.md +1 -0
- package/dist/funcs/customers.d.ts +2 -1
- package/dist/funcs/customers.js +8 -0
- package/dist/index.d.ts +1 -1
- package/dist/models/operations/customers.d.ts +8 -1
- package/dist/models/schemas.d.ts +990 -309
- package/dist/models/schemas.js +90 -13
- package/dist/models/types.d.ts +84 -14
- package/dist/sdk/customers.d.ts +2 -1
- package/dist/sdk/customers.js +4 -1
- package/package.json +1 -1
package/dist/models/schemas.d.ts
CHANGED
|
@@ -218,9 +218,6 @@ export declare const chargeStatus: z.ZodEnum<{
|
|
|
218
218
|
final: "final";
|
|
219
219
|
deleted: "deleted";
|
|
220
220
|
}>;
|
|
221
|
-
export declare const priceFree: z.ZodObject<{
|
|
222
|
-
type: z.ZodLiteral<"free">;
|
|
223
|
-
}, z.core.$strip>;
|
|
224
221
|
export declare const settlementMode: z.ZodEnum<{
|
|
225
222
|
credit_then_invoice: "credit_then_invoice";
|
|
226
223
|
credit_only: "credit_only";
|
|
@@ -239,6 +236,9 @@ export declare const rateCardProrationMode: z.ZodEnum<{
|
|
|
239
236
|
no_proration: "no_proration";
|
|
240
237
|
prorate_prices: "prorate_prices";
|
|
241
238
|
}>;
|
|
239
|
+
export declare const priceFree: z.ZodObject<{
|
|
240
|
+
type: z.ZodLiteral<"free">;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
242
|
export declare const subscriptionStatus: z.ZodEnum<{
|
|
243
243
|
active: "active";
|
|
244
244
|
inactive: "inactive";
|
|
@@ -452,6 +452,10 @@ export declare const createCurrencyCode: z.ZodUnion<readonly [z.ZodString]>;
|
|
|
452
452
|
export declare const listCostBasesParamsFilter: z.ZodObject<{
|
|
453
453
|
fiat_code: z.ZodOptional<z.ZodString>;
|
|
454
454
|
}, z.core.$strip>;
|
|
455
|
+
export declare const currencyAmount: z.ZodObject<{
|
|
456
|
+
amount: z.ZodString;
|
|
457
|
+
currency: z.ZodString;
|
|
458
|
+
}, z.core.$strip>;
|
|
455
459
|
export declare const priceFlat: z.ZodObject<{
|
|
456
460
|
type: z.ZodLiteral<"flat">;
|
|
457
461
|
amount: z.ZodString;
|
|
@@ -460,10 +464,6 @@ export declare const priceUnit: z.ZodObject<{
|
|
|
460
464
|
type: z.ZodLiteral<"unit">;
|
|
461
465
|
amount: z.ZodString;
|
|
462
466
|
}, z.core.$strip>;
|
|
463
|
-
export declare const currencyAmount: z.ZodObject<{
|
|
464
|
-
amount: z.ZodString;
|
|
465
|
-
currency: z.ZodString;
|
|
466
|
-
}, z.core.$strip>;
|
|
467
467
|
export declare const rateCardDiscounts: z.ZodObject<{
|
|
468
468
|
percentage: z.ZodOptional<z.ZodNumber>;
|
|
469
469
|
usage: z.ZodOptional<z.ZodString>;
|
|
@@ -2833,6 +2833,62 @@ export declare const creditGrant: z.ZodObject<{
|
|
|
2833
2833
|
voided: "voided";
|
|
2834
2834
|
}>;
|
|
2835
2835
|
}, z.core.$strip>;
|
|
2836
|
+
export declare const createFlatFeeChargeRequest: z.ZodObject<{
|
|
2837
|
+
name: z.ZodString;
|
|
2838
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2839
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2840
|
+
type: z.ZodLiteral<"flat_fee">;
|
|
2841
|
+
currency: z.ZodString;
|
|
2842
|
+
invoice_at: z.ZodString;
|
|
2843
|
+
service_period: z.ZodObject<{
|
|
2844
|
+
from: z.ZodString;
|
|
2845
|
+
to: z.ZodString;
|
|
2846
|
+
}, z.core.$strip>;
|
|
2847
|
+
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
2848
|
+
settlement_mode: z.ZodEnum<{
|
|
2849
|
+
credit_then_invoice: "credit_then_invoice";
|
|
2850
|
+
credit_only: "credit_only";
|
|
2851
|
+
}>;
|
|
2852
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
2853
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
2854
|
+
exclusive: "exclusive";
|
|
2855
|
+
inclusive: "inclusive";
|
|
2856
|
+
}>>;
|
|
2857
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
2858
|
+
code: z.ZodString;
|
|
2859
|
+
}, z.core.$strip>>;
|
|
2860
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
2861
|
+
code: z.ZodString;
|
|
2862
|
+
}, z.core.$strip>>;
|
|
2863
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
2864
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
2865
|
+
id: z.ZodString;
|
|
2866
|
+
}, z.core.$strip>>;
|
|
2867
|
+
}, z.core.$strip>>;
|
|
2868
|
+
payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
|
|
2869
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
2870
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
2871
|
+
}, z.core.$strip>>;
|
|
2872
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
2873
|
+
proration_configuration: z.ZodObject<{
|
|
2874
|
+
mode: z.ZodEnum<{
|
|
2875
|
+
no_proration: "no_proration";
|
|
2876
|
+
prorate_prices: "prorate_prices";
|
|
2877
|
+
}>;
|
|
2878
|
+
}, z.core.$strip>;
|
|
2879
|
+
amount_before_proration: z.ZodObject<{
|
|
2880
|
+
amount: z.ZodString;
|
|
2881
|
+
currency: z.ZodString;
|
|
2882
|
+
}, z.core.$strip>;
|
|
2883
|
+
full_service_period: z.ZodOptional<z.ZodObject<{
|
|
2884
|
+
from: z.ZodString;
|
|
2885
|
+
to: z.ZodString;
|
|
2886
|
+
}, z.core.$strip>>;
|
|
2887
|
+
billing_period: z.ZodOptional<z.ZodObject<{
|
|
2888
|
+
from: z.ZodString;
|
|
2889
|
+
to: z.ZodString;
|
|
2890
|
+
}, z.core.$strip>>;
|
|
2891
|
+
}, z.core.$strip>;
|
|
2836
2892
|
export declare const workflowTaxSettings: z.ZodObject<{
|
|
2837
2893
|
enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2838
2894
|
enforced: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
@@ -4223,41 +4279,6 @@ export declare const flatFeeCharge: z.ZodObject<{
|
|
|
4223
4279
|
to: z.ZodString;
|
|
4224
4280
|
}, z.core.$strip>;
|
|
4225
4281
|
advance_after: z.ZodOptional<z.ZodString>;
|
|
4226
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4227
|
-
type: z.ZodLiteral<"free">;
|
|
4228
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4229
|
-
type: z.ZodLiteral<"flat">;
|
|
4230
|
-
amount: z.ZodString;
|
|
4231
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4232
|
-
type: z.ZodLiteral<"unit">;
|
|
4233
|
-
amount: z.ZodString;
|
|
4234
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4235
|
-
type: z.ZodLiteral<"graduated">;
|
|
4236
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
4237
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4238
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4239
|
-
type: z.ZodLiteral<"flat">;
|
|
4240
|
-
amount: z.ZodString;
|
|
4241
|
-
}, z.core.$strip>>;
|
|
4242
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4243
|
-
type: z.ZodLiteral<"unit">;
|
|
4244
|
-
amount: z.ZodString;
|
|
4245
|
-
}, z.core.$strip>>;
|
|
4246
|
-
}, z.core.$strip>>;
|
|
4247
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4248
|
-
type: z.ZodLiteral<"volume">;
|
|
4249
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
4250
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4251
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4252
|
-
type: z.ZodLiteral<"flat">;
|
|
4253
|
-
amount: z.ZodString;
|
|
4254
|
-
}, z.core.$strip>>;
|
|
4255
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4256
|
-
type: z.ZodLiteral<"unit">;
|
|
4257
|
-
amount: z.ZodString;
|
|
4258
|
-
}, z.core.$strip>>;
|
|
4259
|
-
}, z.core.$strip>>;
|
|
4260
|
-
}, z.core.$strip>], "type">;
|
|
4261
4282
|
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
4262
4283
|
settlement_mode: z.ZodEnum<{
|
|
4263
4284
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -4290,10 +4311,49 @@ export declare const flatFeeCharge: z.ZodObject<{
|
|
|
4290
4311
|
prorate_prices: "prorate_prices";
|
|
4291
4312
|
}>;
|
|
4292
4313
|
}, z.core.$strip>;
|
|
4314
|
+
amount_before_proration: z.ZodObject<{
|
|
4315
|
+
amount: z.ZodString;
|
|
4316
|
+
currency: z.ZodString;
|
|
4317
|
+
}, z.core.$strip>;
|
|
4293
4318
|
amount_after_proration: z.ZodObject<{
|
|
4294
4319
|
amount: z.ZodString;
|
|
4295
4320
|
currency: z.ZodString;
|
|
4296
4321
|
}, z.core.$strip>;
|
|
4322
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4323
|
+
type: z.ZodLiteral<"free">;
|
|
4324
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4325
|
+
type: z.ZodLiteral<"flat">;
|
|
4326
|
+
amount: z.ZodString;
|
|
4327
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4328
|
+
type: z.ZodLiteral<"unit">;
|
|
4329
|
+
amount: z.ZodString;
|
|
4330
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4331
|
+
type: z.ZodLiteral<"graduated">;
|
|
4332
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
4333
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4334
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4335
|
+
type: z.ZodLiteral<"flat">;
|
|
4336
|
+
amount: z.ZodString;
|
|
4337
|
+
}, z.core.$strip>>;
|
|
4338
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4339
|
+
type: z.ZodLiteral<"unit">;
|
|
4340
|
+
amount: z.ZodString;
|
|
4341
|
+
}, z.core.$strip>>;
|
|
4342
|
+
}, z.core.$strip>>;
|
|
4343
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4344
|
+
type: z.ZodLiteral<"volume">;
|
|
4345
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
4346
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4347
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4348
|
+
type: z.ZodLiteral<"flat">;
|
|
4349
|
+
amount: z.ZodString;
|
|
4350
|
+
}, z.core.$strip>>;
|
|
4351
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4352
|
+
type: z.ZodLiteral<"unit">;
|
|
4353
|
+
amount: z.ZodString;
|
|
4354
|
+
}, z.core.$strip>>;
|
|
4355
|
+
}, z.core.$strip>>;
|
|
4356
|
+
}, z.core.$strip>], "type">;
|
|
4297
4357
|
}, z.core.$strip>;
|
|
4298
4358
|
export declare const usageBasedCharge: z.ZodObject<{
|
|
4299
4359
|
id: z.ZodString;
|
|
@@ -4342,6 +4402,54 @@ export declare const usageBasedCharge: z.ZodObject<{
|
|
|
4342
4402
|
to: z.ZodString;
|
|
4343
4403
|
}, z.core.$strip>;
|
|
4344
4404
|
advance_after: z.ZodOptional<z.ZodString>;
|
|
4405
|
+
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
4406
|
+
settlement_mode: z.ZodEnum<{
|
|
4407
|
+
credit_then_invoice: "credit_then_invoice";
|
|
4408
|
+
credit_only: "credit_only";
|
|
4409
|
+
}>;
|
|
4410
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
4411
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
4412
|
+
exclusive: "exclusive";
|
|
4413
|
+
inclusive: "inclusive";
|
|
4414
|
+
}>>;
|
|
4415
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
4416
|
+
code: z.ZodString;
|
|
4417
|
+
}, z.core.$strip>>;
|
|
4418
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
4419
|
+
code: z.ZodString;
|
|
4420
|
+
}, z.core.$strip>>;
|
|
4421
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
4422
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
4423
|
+
id: z.ZodString;
|
|
4424
|
+
}, z.core.$strip>>;
|
|
4425
|
+
}, z.core.$strip>>;
|
|
4426
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
4427
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
4428
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
4429
|
+
}, z.core.$strip>>;
|
|
4430
|
+
feature_key: z.ZodString;
|
|
4431
|
+
totals: z.ZodObject<{
|
|
4432
|
+
booked: z.ZodObject<{
|
|
4433
|
+
amount: z.ZodString;
|
|
4434
|
+
taxes_total: z.ZodString;
|
|
4435
|
+
taxes_inclusive_total: z.ZodString;
|
|
4436
|
+
taxes_exclusive_total: z.ZodString;
|
|
4437
|
+
charges_total: z.ZodString;
|
|
4438
|
+
discounts_total: z.ZodString;
|
|
4439
|
+
credits_total: z.ZodString;
|
|
4440
|
+
total: z.ZodString;
|
|
4441
|
+
}, z.core.$strip>;
|
|
4442
|
+
realtime: z.ZodOptional<z.ZodObject<{
|
|
4443
|
+
amount: z.ZodString;
|
|
4444
|
+
taxes_total: z.ZodString;
|
|
4445
|
+
taxes_inclusive_total: z.ZodString;
|
|
4446
|
+
taxes_exclusive_total: z.ZodString;
|
|
4447
|
+
charges_total: z.ZodString;
|
|
4448
|
+
discounts_total: z.ZodString;
|
|
4449
|
+
credits_total: z.ZodString;
|
|
4450
|
+
total: z.ZodString;
|
|
4451
|
+
}, z.core.$strip>>;
|
|
4452
|
+
}, z.core.$strip>;
|
|
4345
4453
|
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4346
4454
|
type: z.ZodLiteral<"free">;
|
|
4347
4455
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4377,6 +4485,18 @@ export declare const usageBasedCharge: z.ZodObject<{
|
|
|
4377
4485
|
}, z.core.$strip>>;
|
|
4378
4486
|
}, z.core.$strip>>;
|
|
4379
4487
|
}, z.core.$strip>], "type">;
|
|
4488
|
+
}, z.core.$strip>;
|
|
4489
|
+
export declare const createUsageBasedChargeRequest: z.ZodObject<{
|
|
4490
|
+
name: z.ZodString;
|
|
4491
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4492
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4493
|
+
type: z.ZodLiteral<"usage_based">;
|
|
4494
|
+
currency: z.ZodString;
|
|
4495
|
+
invoice_at: z.ZodString;
|
|
4496
|
+
service_period: z.ZodObject<{
|
|
4497
|
+
from: z.ZodString;
|
|
4498
|
+
to: z.ZodString;
|
|
4499
|
+
}, z.core.$strip>;
|
|
4380
4500
|
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
4381
4501
|
settlement_mode: z.ZodEnum<{
|
|
4382
4502
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -4403,38 +4523,6 @@ export declare const usageBasedCharge: z.ZodObject<{
|
|
|
4403
4523
|
usage: z.ZodOptional<z.ZodString>;
|
|
4404
4524
|
}, z.core.$strip>>;
|
|
4405
4525
|
feature_key: z.ZodString;
|
|
4406
|
-
totals: z.ZodObject<{
|
|
4407
|
-
booked: z.ZodObject<{
|
|
4408
|
-
amount: z.ZodString;
|
|
4409
|
-
taxes_total: z.ZodString;
|
|
4410
|
-
taxes_inclusive_total: z.ZodString;
|
|
4411
|
-
taxes_exclusive_total: z.ZodString;
|
|
4412
|
-
charges_total: z.ZodString;
|
|
4413
|
-
discounts_total: z.ZodString;
|
|
4414
|
-
credits_total: z.ZodString;
|
|
4415
|
-
total: z.ZodString;
|
|
4416
|
-
}, z.core.$strip>;
|
|
4417
|
-
realtime: z.ZodOptional<z.ZodObject<{
|
|
4418
|
-
amount: z.ZodString;
|
|
4419
|
-
taxes_total: z.ZodString;
|
|
4420
|
-
taxes_inclusive_total: z.ZodString;
|
|
4421
|
-
taxes_exclusive_total: z.ZodString;
|
|
4422
|
-
charges_total: z.ZodString;
|
|
4423
|
-
discounts_total: z.ZodString;
|
|
4424
|
-
credits_total: z.ZodString;
|
|
4425
|
-
total: z.ZodString;
|
|
4426
|
-
}, z.core.$strip>>;
|
|
4427
|
-
}, z.core.$strip>;
|
|
4428
|
-
}, z.core.$strip>;
|
|
4429
|
-
export declare const rateCard: z.ZodObject<{
|
|
4430
|
-
name: z.ZodString;
|
|
4431
|
-
description: z.ZodOptional<z.ZodString>;
|
|
4432
|
-
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4433
|
-
key: z.ZodString;
|
|
4434
|
-
feature: z.ZodOptional<z.ZodObject<{
|
|
4435
|
-
id: z.ZodString;
|
|
4436
|
-
}, z.core.$strip>>;
|
|
4437
|
-
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
4438
4526
|
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4439
4527
|
type: z.ZodLiteral<"free">;
|
|
4440
4528
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4470,30 +4558,83 @@ export declare const rateCard: z.ZodObject<{
|
|
|
4470
4558
|
}, z.core.$strip>>;
|
|
4471
4559
|
}, z.core.$strip>>;
|
|
4472
4560
|
}, z.core.$strip>], "type">;
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
4477
|
-
}, z.core.$strip>>;
|
|
4478
|
-
discounts: z.ZodOptional<z.ZodObject<{
|
|
4479
|
-
percentage: z.ZodOptional<z.ZodNumber>;
|
|
4480
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
4561
|
+
full_service_period: z.ZodOptional<z.ZodObject<{
|
|
4562
|
+
from: z.ZodString;
|
|
4563
|
+
to: z.ZodString;
|
|
4481
4564
|
}, z.core.$strip>>;
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
inclusive: "inclusive";
|
|
4486
|
-
}>>;
|
|
4487
|
-
code: z.ZodObject<{
|
|
4488
|
-
id: z.ZodString;
|
|
4489
|
-
}, z.core.$strip>;
|
|
4565
|
+
billing_period: z.ZodOptional<z.ZodObject<{
|
|
4566
|
+
from: z.ZodString;
|
|
4567
|
+
to: z.ZodString;
|
|
4490
4568
|
}, z.core.$strip>>;
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4569
|
+
}, z.core.$strip>;
|
|
4570
|
+
export declare const rateCard: z.ZodObject<{
|
|
4571
|
+
name: z.ZodString;
|
|
4572
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4573
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4574
|
+
key: z.ZodString;
|
|
4575
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
4576
|
+
id: z.ZodString;
|
|
4577
|
+
}, z.core.$strip>>;
|
|
4578
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
4579
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4580
|
+
type: z.ZodLiteral<"free">;
|
|
4581
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4582
|
+
type: z.ZodLiteral<"flat">;
|
|
4583
|
+
amount: z.ZodString;
|
|
4584
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4585
|
+
type: z.ZodLiteral<"unit">;
|
|
4586
|
+
amount: z.ZodString;
|
|
4587
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4588
|
+
type: z.ZodLiteral<"graduated">;
|
|
4589
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
4590
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4591
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4592
|
+
type: z.ZodLiteral<"flat">;
|
|
4593
|
+
amount: z.ZodString;
|
|
4594
|
+
}, z.core.$strip>>;
|
|
4595
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4596
|
+
type: z.ZodLiteral<"unit">;
|
|
4597
|
+
amount: z.ZodString;
|
|
4598
|
+
}, z.core.$strip>>;
|
|
4599
|
+
}, z.core.$strip>>;
|
|
4600
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4601
|
+
type: z.ZodLiteral<"volume">;
|
|
4602
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
4603
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4604
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4605
|
+
type: z.ZodLiteral<"flat">;
|
|
4606
|
+
amount: z.ZodString;
|
|
4607
|
+
}, z.core.$strip>>;
|
|
4608
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4609
|
+
type: z.ZodLiteral<"unit">;
|
|
4610
|
+
amount: z.ZodString;
|
|
4611
|
+
}, z.core.$strip>>;
|
|
4612
|
+
}, z.core.$strip>>;
|
|
4613
|
+
}, z.core.$strip>], "type">;
|
|
4614
|
+
payment_term: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>>>;
|
|
4615
|
+
commitments: z.ZodOptional<z.ZodObject<{
|
|
4616
|
+
minimum_amount: z.ZodOptional<z.ZodString>;
|
|
4617
|
+
maximum_amount: z.ZodOptional<z.ZodString>;
|
|
4618
|
+
}, z.core.$strip>>;
|
|
4619
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
4620
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
4621
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
4622
|
+
}, z.core.$strip>>;
|
|
4623
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
4624
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
4625
|
+
exclusive: "exclusive";
|
|
4626
|
+
inclusive: "inclusive";
|
|
4627
|
+
}>>;
|
|
4628
|
+
code: z.ZodObject<{
|
|
4629
|
+
id: z.ZodString;
|
|
4630
|
+
}, z.core.$strip>;
|
|
4631
|
+
}, z.core.$strip>>;
|
|
4632
|
+
entitlement: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4633
|
+
type: z.ZodLiteral<"metered">;
|
|
4634
|
+
is_soft_limit: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4635
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
4636
|
+
usage_period: z.ZodOptional<z.ZodString>;
|
|
4637
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4497
4638
|
type: z.ZodLiteral<"static">;
|
|
4498
4639
|
config: z.ZodUnknown;
|
|
4499
4640
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4670,41 +4811,6 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4670
4811
|
to: z.ZodString;
|
|
4671
4812
|
}, z.core.$strip>;
|
|
4672
4813
|
advance_after: z.ZodOptional<z.ZodString>;
|
|
4673
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4674
|
-
type: z.ZodLiteral<"free">;
|
|
4675
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4676
|
-
type: z.ZodLiteral<"flat">;
|
|
4677
|
-
amount: z.ZodString;
|
|
4678
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4679
|
-
type: z.ZodLiteral<"unit">;
|
|
4680
|
-
amount: z.ZodString;
|
|
4681
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4682
|
-
type: z.ZodLiteral<"graduated">;
|
|
4683
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
4684
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4685
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4686
|
-
type: z.ZodLiteral<"flat">;
|
|
4687
|
-
amount: z.ZodString;
|
|
4688
|
-
}, z.core.$strip>>;
|
|
4689
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4690
|
-
type: z.ZodLiteral<"unit">;
|
|
4691
|
-
amount: z.ZodString;
|
|
4692
|
-
}, z.core.$strip>>;
|
|
4693
|
-
}, z.core.$strip>>;
|
|
4694
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
4695
|
-
type: z.ZodLiteral<"volume">;
|
|
4696
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
4697
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4698
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4699
|
-
type: z.ZodLiteral<"flat">;
|
|
4700
|
-
amount: z.ZodString;
|
|
4701
|
-
}, z.core.$strip>>;
|
|
4702
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4703
|
-
type: z.ZodLiteral<"unit">;
|
|
4704
|
-
amount: z.ZodString;
|
|
4705
|
-
}, z.core.$strip>>;
|
|
4706
|
-
}, z.core.$strip>>;
|
|
4707
|
-
}, z.core.$strip>], "type">;
|
|
4708
4814
|
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
4709
4815
|
settlement_mode: z.ZodEnum<{
|
|
4710
4816
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -4737,10 +4843,49 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4737
4843
|
prorate_prices: "prorate_prices";
|
|
4738
4844
|
}>;
|
|
4739
4845
|
}, z.core.$strip>;
|
|
4846
|
+
amount_before_proration: z.ZodObject<{
|
|
4847
|
+
amount: z.ZodString;
|
|
4848
|
+
currency: z.ZodString;
|
|
4849
|
+
}, z.core.$strip>;
|
|
4740
4850
|
amount_after_proration: z.ZodObject<{
|
|
4741
4851
|
amount: z.ZodString;
|
|
4742
4852
|
currency: z.ZodString;
|
|
4743
4853
|
}, z.core.$strip>;
|
|
4854
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4855
|
+
type: z.ZodLiteral<"free">;
|
|
4856
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4857
|
+
type: z.ZodLiteral<"flat">;
|
|
4858
|
+
amount: z.ZodString;
|
|
4859
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4860
|
+
type: z.ZodLiteral<"unit">;
|
|
4861
|
+
amount: z.ZodString;
|
|
4862
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4863
|
+
type: z.ZodLiteral<"graduated">;
|
|
4864
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
4865
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4866
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4867
|
+
type: z.ZodLiteral<"flat">;
|
|
4868
|
+
amount: z.ZodString;
|
|
4869
|
+
}, z.core.$strip>>;
|
|
4870
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4871
|
+
type: z.ZodLiteral<"unit">;
|
|
4872
|
+
amount: z.ZodString;
|
|
4873
|
+
}, z.core.$strip>>;
|
|
4874
|
+
}, z.core.$strip>>;
|
|
4875
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4876
|
+
type: z.ZodLiteral<"volume">;
|
|
4877
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
4878
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
4879
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
4880
|
+
type: z.ZodLiteral<"flat">;
|
|
4881
|
+
amount: z.ZodString;
|
|
4882
|
+
}, z.core.$strip>>;
|
|
4883
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
4884
|
+
type: z.ZodLiteral<"unit">;
|
|
4885
|
+
amount: z.ZodString;
|
|
4886
|
+
}, z.core.$strip>>;
|
|
4887
|
+
}, z.core.$strip>>;
|
|
4888
|
+
}, z.core.$strip>], "type">;
|
|
4744
4889
|
}, z.core.$strip>, z.ZodObject<{
|
|
4745
4890
|
id: z.ZodString;
|
|
4746
4891
|
name: z.ZodString;
|
|
@@ -4788,6 +4933,54 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4788
4933
|
to: z.ZodString;
|
|
4789
4934
|
}, z.core.$strip>;
|
|
4790
4935
|
advance_after: z.ZodOptional<z.ZodString>;
|
|
4936
|
+
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
4937
|
+
settlement_mode: z.ZodEnum<{
|
|
4938
|
+
credit_then_invoice: "credit_then_invoice";
|
|
4939
|
+
credit_only: "credit_only";
|
|
4940
|
+
}>;
|
|
4941
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
4942
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
4943
|
+
exclusive: "exclusive";
|
|
4944
|
+
inclusive: "inclusive";
|
|
4945
|
+
}>>;
|
|
4946
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
4947
|
+
code: z.ZodString;
|
|
4948
|
+
}, z.core.$strip>>;
|
|
4949
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
4950
|
+
code: z.ZodString;
|
|
4951
|
+
}, z.core.$strip>>;
|
|
4952
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
4953
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
4954
|
+
id: z.ZodString;
|
|
4955
|
+
}, z.core.$strip>>;
|
|
4956
|
+
}, z.core.$strip>>;
|
|
4957
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
4958
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
4959
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
4960
|
+
}, z.core.$strip>>;
|
|
4961
|
+
feature_key: z.ZodString;
|
|
4962
|
+
totals: z.ZodObject<{
|
|
4963
|
+
booked: z.ZodObject<{
|
|
4964
|
+
amount: z.ZodString;
|
|
4965
|
+
taxes_total: z.ZodString;
|
|
4966
|
+
taxes_inclusive_total: z.ZodString;
|
|
4967
|
+
taxes_exclusive_total: z.ZodString;
|
|
4968
|
+
charges_total: z.ZodString;
|
|
4969
|
+
discounts_total: z.ZodString;
|
|
4970
|
+
credits_total: z.ZodString;
|
|
4971
|
+
total: z.ZodString;
|
|
4972
|
+
}, z.core.$strip>;
|
|
4973
|
+
realtime: z.ZodOptional<z.ZodObject<{
|
|
4974
|
+
amount: z.ZodString;
|
|
4975
|
+
taxes_total: z.ZodString;
|
|
4976
|
+
taxes_inclusive_total: z.ZodString;
|
|
4977
|
+
taxes_exclusive_total: z.ZodString;
|
|
4978
|
+
charges_total: z.ZodString;
|
|
4979
|
+
discounts_total: z.ZodString;
|
|
4980
|
+
credits_total: z.ZodString;
|
|
4981
|
+
total: z.ZodString;
|
|
4982
|
+
}, z.core.$strip>>;
|
|
4983
|
+
}, z.core.$strip>;
|
|
4791
4984
|
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4792
4985
|
type: z.ZodLiteral<"free">;
|
|
4793
4986
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -4823,6 +5016,18 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4823
5016
|
}, z.core.$strip>>;
|
|
4824
5017
|
}, z.core.$strip>>;
|
|
4825
5018
|
}, z.core.$strip>], "type">;
|
|
5019
|
+
}, z.core.$strip>], "type">;
|
|
5020
|
+
export declare const createChargeRequest: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5021
|
+
name: z.ZodString;
|
|
5022
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5023
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5024
|
+
type: z.ZodLiteral<"flat_fee">;
|
|
5025
|
+
currency: z.ZodString;
|
|
5026
|
+
invoice_at: z.ZodString;
|
|
5027
|
+
service_period: z.ZodObject<{
|
|
5028
|
+
from: z.ZodString;
|
|
5029
|
+
to: z.ZodString;
|
|
5030
|
+
}, z.core.$strip>;
|
|
4826
5031
|
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
4827
5032
|
settlement_mode: z.ZodEnum<{
|
|
4828
5033
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -4844,51 +5049,127 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4844
5049
|
id: z.ZodString;
|
|
4845
5050
|
}, z.core.$strip>>;
|
|
4846
5051
|
}, z.core.$strip>>;
|
|
5052
|
+
payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
|
|
4847
5053
|
discounts: z.ZodOptional<z.ZodObject<{
|
|
4848
5054
|
percentage: z.ZodOptional<z.ZodNumber>;
|
|
4849
|
-
usage: z.ZodOptional<z.ZodString>;
|
|
4850
5055
|
}, z.core.$strip>>;
|
|
4851
|
-
feature_key: z.ZodString
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
taxes_exclusive_total: z.ZodString;
|
|
4858
|
-
charges_total: z.ZodString;
|
|
4859
|
-
discounts_total: z.ZodString;
|
|
4860
|
-
credits_total: z.ZodString;
|
|
4861
|
-
total: z.ZodString;
|
|
4862
|
-
}, z.core.$strip>;
|
|
4863
|
-
realtime: z.ZodOptional<z.ZodObject<{
|
|
4864
|
-
amount: z.ZodString;
|
|
4865
|
-
taxes_total: z.ZodString;
|
|
4866
|
-
taxes_inclusive_total: z.ZodString;
|
|
4867
|
-
taxes_exclusive_total: z.ZodString;
|
|
4868
|
-
charges_total: z.ZodString;
|
|
4869
|
-
discounts_total: z.ZodString;
|
|
4870
|
-
credits_total: z.ZodString;
|
|
4871
|
-
total: z.ZodString;
|
|
4872
|
-
}, z.core.$strip>>;
|
|
5056
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
5057
|
+
proration_configuration: z.ZodObject<{
|
|
5058
|
+
mode: z.ZodEnum<{
|
|
5059
|
+
no_proration: "no_proration";
|
|
5060
|
+
prorate_prices: "prorate_prices";
|
|
5061
|
+
}>;
|
|
4873
5062
|
}, z.core.$strip>;
|
|
4874
|
-
|
|
4875
|
-
|
|
5063
|
+
amount_before_proration: z.ZodObject<{
|
|
5064
|
+
amount: z.ZodString;
|
|
5065
|
+
currency: z.ZodString;
|
|
5066
|
+
}, z.core.$strip>;
|
|
5067
|
+
full_service_period: z.ZodOptional<z.ZodObject<{
|
|
5068
|
+
from: z.ZodString;
|
|
5069
|
+
to: z.ZodString;
|
|
5070
|
+
}, z.core.$strip>>;
|
|
5071
|
+
billing_period: z.ZodOptional<z.ZodObject<{
|
|
5072
|
+
from: z.ZodString;
|
|
5073
|
+
to: z.ZodString;
|
|
5074
|
+
}, z.core.$strip>>;
|
|
5075
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4876
5076
|
name: z.ZodString;
|
|
4877
5077
|
description: z.ZodOptional<z.ZodString>;
|
|
4878
5078
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
5079
|
+
type: z.ZodLiteral<"usage_based">;
|
|
5080
|
+
currency: z.ZodString;
|
|
5081
|
+
invoice_at: z.ZodString;
|
|
5082
|
+
service_period: z.ZodObject<{
|
|
5083
|
+
from: z.ZodString;
|
|
5084
|
+
to: z.ZodString;
|
|
5085
|
+
}, z.core.$strip>;
|
|
5086
|
+
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
5087
|
+
settlement_mode: z.ZodEnum<{
|
|
5088
|
+
credit_then_invoice: "credit_then_invoice";
|
|
5089
|
+
credit_only: "credit_only";
|
|
5090
|
+
}>;
|
|
5091
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
5092
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
5093
|
+
exclusive: "exclusive";
|
|
5094
|
+
inclusive: "inclusive";
|
|
5095
|
+
}>>;
|
|
5096
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
5097
|
+
code: z.ZodString;
|
|
5098
|
+
}, z.core.$strip>>;
|
|
5099
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
5100
|
+
code: z.ZodString;
|
|
5101
|
+
}, z.core.$strip>>;
|
|
5102
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
5103
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
5104
|
+
id: z.ZodString;
|
|
5105
|
+
}, z.core.$strip>>;
|
|
5106
|
+
}, z.core.$strip>>;
|
|
5107
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
5108
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
5109
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
5110
|
+
}, z.core.$strip>>;
|
|
5111
|
+
feature_key: z.ZodString;
|
|
5112
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5113
|
+
type: z.ZodLiteral<"free">;
|
|
5114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5115
|
+
type: z.ZodLiteral<"flat">;
|
|
5116
|
+
amount: z.ZodString;
|
|
5117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5118
|
+
type: z.ZodLiteral<"unit">;
|
|
5119
|
+
amount: z.ZodString;
|
|
5120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5121
|
+
type: z.ZodLiteral<"graduated">;
|
|
5122
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5123
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5124
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5125
|
+
type: z.ZodLiteral<"flat">;
|
|
5126
|
+
amount: z.ZodString;
|
|
5127
|
+
}, z.core.$strip>>;
|
|
5128
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5129
|
+
type: z.ZodLiteral<"unit">;
|
|
5130
|
+
amount: z.ZodString;
|
|
5131
|
+
}, z.core.$strip>>;
|
|
5132
|
+
}, z.core.$strip>>;
|
|
5133
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5134
|
+
type: z.ZodLiteral<"volume">;
|
|
5135
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5136
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5137
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5138
|
+
type: z.ZodLiteral<"flat">;
|
|
5139
|
+
amount: z.ZodString;
|
|
5140
|
+
}, z.core.$strip>>;
|
|
5141
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5142
|
+
type: z.ZodLiteral<"unit">;
|
|
5143
|
+
amount: z.ZodString;
|
|
5144
|
+
}, z.core.$strip>>;
|
|
5145
|
+
}, z.core.$strip>>;
|
|
5146
|
+
}, z.core.$strip>], "type">;
|
|
5147
|
+
full_service_period: z.ZodOptional<z.ZodObject<{
|
|
5148
|
+
from: z.ZodString;
|
|
5149
|
+
to: z.ZodString;
|
|
5150
|
+
}, z.core.$strip>>;
|
|
5151
|
+
billing_period: z.ZodOptional<z.ZodObject<{
|
|
5152
|
+
from: z.ZodString;
|
|
5153
|
+
to: z.ZodString;
|
|
5154
|
+
}, z.core.$strip>>;
|
|
5155
|
+
}, z.core.$strip>], "type">;
|
|
5156
|
+
export declare const planPhase: z.ZodObject<{
|
|
5157
|
+
name: z.ZodString;
|
|
5158
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5159
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5160
|
+
key: z.ZodString;
|
|
5161
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
5162
|
+
rate_cards: z.ZodArray<z.ZodObject<{
|
|
5163
|
+
name: z.ZodString;
|
|
5164
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5165
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5166
|
+
key: z.ZodString;
|
|
5167
|
+
feature: z.ZodOptional<z.ZodObject<{
|
|
5168
|
+
id: z.ZodString;
|
|
5169
|
+
}, z.core.$strip>>;
|
|
5170
|
+
billing_cadence: z.ZodOptional<z.ZodString>;
|
|
5171
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5172
|
+
type: z.ZodLiteral<"free">;
|
|
4892
5173
|
}, z.core.$strip>, z.ZodObject<{
|
|
4893
5174
|
type: z.ZodLiteral<"flat">;
|
|
4894
5175
|
amount: z.ZodString;
|
|
@@ -5508,41 +5789,6 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
|
|
|
5508
5789
|
to: z.ZodString;
|
|
5509
5790
|
}, z.core.$strip>;
|
|
5510
5791
|
advance_after: z.ZodOptional<z.ZodString>;
|
|
5511
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5512
|
-
type: z.ZodLiteral<"free">;
|
|
5513
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5514
|
-
type: z.ZodLiteral<"flat">;
|
|
5515
|
-
amount: z.ZodString;
|
|
5516
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5517
|
-
type: z.ZodLiteral<"unit">;
|
|
5518
|
-
amount: z.ZodString;
|
|
5519
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5520
|
-
type: z.ZodLiteral<"graduated">;
|
|
5521
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
5522
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5523
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5524
|
-
type: z.ZodLiteral<"flat">;
|
|
5525
|
-
amount: z.ZodString;
|
|
5526
|
-
}, z.core.$strip>>;
|
|
5527
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5528
|
-
type: z.ZodLiteral<"unit">;
|
|
5529
|
-
amount: z.ZodString;
|
|
5530
|
-
}, z.core.$strip>>;
|
|
5531
|
-
}, z.core.$strip>>;
|
|
5532
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5533
|
-
type: z.ZodLiteral<"volume">;
|
|
5534
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
5535
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5536
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5537
|
-
type: z.ZodLiteral<"flat">;
|
|
5538
|
-
amount: z.ZodString;
|
|
5539
|
-
}, z.core.$strip>>;
|
|
5540
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5541
|
-
type: z.ZodLiteral<"unit">;
|
|
5542
|
-
amount: z.ZodString;
|
|
5543
|
-
}, z.core.$strip>>;
|
|
5544
|
-
}, z.core.$strip>>;
|
|
5545
|
-
}, z.core.$strip>], "type">;
|
|
5546
5792
|
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
5547
5793
|
settlement_mode: z.ZodEnum<{
|
|
5548
5794
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -5575,10 +5821,49 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
|
|
|
5575
5821
|
prorate_prices: "prorate_prices";
|
|
5576
5822
|
}>;
|
|
5577
5823
|
}, z.core.$strip>;
|
|
5824
|
+
amount_before_proration: z.ZodObject<{
|
|
5825
|
+
amount: z.ZodString;
|
|
5826
|
+
currency: z.ZodString;
|
|
5827
|
+
}, z.core.$strip>;
|
|
5578
5828
|
amount_after_proration: z.ZodObject<{
|
|
5579
5829
|
amount: z.ZodString;
|
|
5580
5830
|
currency: z.ZodString;
|
|
5581
5831
|
}, z.core.$strip>;
|
|
5832
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5833
|
+
type: z.ZodLiteral<"free">;
|
|
5834
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5835
|
+
type: z.ZodLiteral<"flat">;
|
|
5836
|
+
amount: z.ZodString;
|
|
5837
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5838
|
+
type: z.ZodLiteral<"unit">;
|
|
5839
|
+
amount: z.ZodString;
|
|
5840
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5841
|
+
type: z.ZodLiteral<"graduated">;
|
|
5842
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5843
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5844
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5845
|
+
type: z.ZodLiteral<"flat">;
|
|
5846
|
+
amount: z.ZodString;
|
|
5847
|
+
}, z.core.$strip>>;
|
|
5848
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5849
|
+
type: z.ZodLiteral<"unit">;
|
|
5850
|
+
amount: z.ZodString;
|
|
5851
|
+
}, z.core.$strip>>;
|
|
5852
|
+
}, z.core.$strip>>;
|
|
5853
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5854
|
+
type: z.ZodLiteral<"volume">;
|
|
5855
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5856
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5857
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5858
|
+
type: z.ZodLiteral<"flat">;
|
|
5859
|
+
amount: z.ZodString;
|
|
5860
|
+
}, z.core.$strip>>;
|
|
5861
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5862
|
+
type: z.ZodLiteral<"unit">;
|
|
5863
|
+
amount: z.ZodString;
|
|
5864
|
+
}, z.core.$strip>>;
|
|
5865
|
+
}, z.core.$strip>>;
|
|
5866
|
+
}, z.core.$strip>], "type">;
|
|
5582
5867
|
}, z.core.$strip>, z.ZodObject<{
|
|
5583
5868
|
id: z.ZodString;
|
|
5584
5869
|
name: z.ZodString;
|
|
@@ -5626,41 +5911,6 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
|
|
|
5626
5911
|
to: z.ZodString;
|
|
5627
5912
|
}, z.core.$strip>;
|
|
5628
5913
|
advance_after: z.ZodOptional<z.ZodString>;
|
|
5629
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5630
|
-
type: z.ZodLiteral<"free">;
|
|
5631
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5632
|
-
type: z.ZodLiteral<"flat">;
|
|
5633
|
-
amount: z.ZodString;
|
|
5634
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5635
|
-
type: z.ZodLiteral<"unit">;
|
|
5636
|
-
amount: z.ZodString;
|
|
5637
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5638
|
-
type: z.ZodLiteral<"graduated">;
|
|
5639
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
5640
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5641
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5642
|
-
type: z.ZodLiteral<"flat">;
|
|
5643
|
-
amount: z.ZodString;
|
|
5644
|
-
}, z.core.$strip>>;
|
|
5645
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5646
|
-
type: z.ZodLiteral<"unit">;
|
|
5647
|
-
amount: z.ZodString;
|
|
5648
|
-
}, z.core.$strip>>;
|
|
5649
|
-
}, z.core.$strip>>;
|
|
5650
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5651
|
-
type: z.ZodLiteral<"volume">;
|
|
5652
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
5653
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5654
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5655
|
-
type: z.ZodLiteral<"flat">;
|
|
5656
|
-
amount: z.ZodString;
|
|
5657
|
-
}, z.core.$strip>>;
|
|
5658
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5659
|
-
type: z.ZodLiteral<"unit">;
|
|
5660
|
-
amount: z.ZodString;
|
|
5661
|
-
}, z.core.$strip>>;
|
|
5662
|
-
}, z.core.$strip>>;
|
|
5663
|
-
}, z.core.$strip>], "type">;
|
|
5664
5914
|
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
5665
5915
|
settlement_mode: z.ZodEnum<{
|
|
5666
5916
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -5709,6 +5959,41 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
|
|
|
5709
5959
|
total: z.ZodString;
|
|
5710
5960
|
}, z.core.$strip>>;
|
|
5711
5961
|
}, z.core.$strip>;
|
|
5962
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5963
|
+
type: z.ZodLiteral<"free">;
|
|
5964
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5965
|
+
type: z.ZodLiteral<"flat">;
|
|
5966
|
+
amount: z.ZodString;
|
|
5967
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5968
|
+
type: z.ZodLiteral<"unit">;
|
|
5969
|
+
amount: z.ZodString;
|
|
5970
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5971
|
+
type: z.ZodLiteral<"graduated">;
|
|
5972
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5973
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5974
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5975
|
+
type: z.ZodLiteral<"flat">;
|
|
5976
|
+
amount: z.ZodString;
|
|
5977
|
+
}, z.core.$strip>>;
|
|
5978
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5979
|
+
type: z.ZodLiteral<"unit">;
|
|
5980
|
+
amount: z.ZodString;
|
|
5981
|
+
}, z.core.$strip>>;
|
|
5982
|
+
}, z.core.$strip>>;
|
|
5983
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5984
|
+
type: z.ZodLiteral<"volume">;
|
|
5985
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
5986
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
5987
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
5988
|
+
type: z.ZodLiteral<"flat">;
|
|
5989
|
+
amount: z.ZodString;
|
|
5990
|
+
}, z.core.$strip>>;
|
|
5991
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
5992
|
+
type: z.ZodLiteral<"unit">;
|
|
5993
|
+
amount: z.ZodString;
|
|
5994
|
+
}, z.core.$strip>>;
|
|
5995
|
+
}, z.core.$strip>>;
|
|
5996
|
+
}, z.core.$strip>], "type">;
|
|
5712
5997
|
}, z.core.$strip>], "type">>;
|
|
5713
5998
|
meta: z.ZodObject<{
|
|
5714
5999
|
page: z.ZodObject<{
|
|
@@ -7557,41 +7842,6 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
|
|
|
7557
7842
|
to: z.ZodString;
|
|
7558
7843
|
}, z.core.$strip>;
|
|
7559
7844
|
advance_after: z.ZodOptional<z.ZodString>;
|
|
7560
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7561
|
-
type: z.ZodLiteral<"free">;
|
|
7562
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7563
|
-
type: z.ZodLiteral<"flat">;
|
|
7564
|
-
amount: z.ZodString;
|
|
7565
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7566
|
-
type: z.ZodLiteral<"unit">;
|
|
7567
|
-
amount: z.ZodString;
|
|
7568
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7569
|
-
type: z.ZodLiteral<"graduated">;
|
|
7570
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7571
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7572
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7573
|
-
type: z.ZodLiteral<"flat">;
|
|
7574
|
-
amount: z.ZodString;
|
|
7575
|
-
}, z.core.$strip>>;
|
|
7576
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7577
|
-
type: z.ZodLiteral<"unit">;
|
|
7578
|
-
amount: z.ZodString;
|
|
7579
|
-
}, z.core.$strip>>;
|
|
7580
|
-
}, z.core.$strip>>;
|
|
7581
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7582
|
-
type: z.ZodLiteral<"volume">;
|
|
7583
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7584
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7585
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7586
|
-
type: z.ZodLiteral<"flat">;
|
|
7587
|
-
amount: z.ZodString;
|
|
7588
|
-
}, z.core.$strip>>;
|
|
7589
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7590
|
-
type: z.ZodLiteral<"unit">;
|
|
7591
|
-
amount: z.ZodString;
|
|
7592
|
-
}, z.core.$strip>>;
|
|
7593
|
-
}, z.core.$strip>>;
|
|
7594
|
-
}, z.core.$strip>], "type">;
|
|
7595
7845
|
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
7596
7846
|
settlement_mode: z.ZodEnum<{
|
|
7597
7847
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -7624,10 +7874,49 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
|
|
|
7624
7874
|
prorate_prices: "prorate_prices";
|
|
7625
7875
|
}>;
|
|
7626
7876
|
}, z.core.$strip>;
|
|
7877
|
+
amount_before_proration: z.ZodObject<{
|
|
7878
|
+
amount: z.ZodString;
|
|
7879
|
+
currency: z.ZodString;
|
|
7880
|
+
}, z.core.$strip>;
|
|
7627
7881
|
amount_after_proration: z.ZodObject<{
|
|
7628
7882
|
amount: z.ZodString;
|
|
7629
7883
|
currency: z.ZodString;
|
|
7630
7884
|
}, z.core.$strip>;
|
|
7885
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7886
|
+
type: z.ZodLiteral<"free">;
|
|
7887
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7888
|
+
type: z.ZodLiteral<"flat">;
|
|
7889
|
+
amount: z.ZodString;
|
|
7890
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7891
|
+
type: z.ZodLiteral<"unit">;
|
|
7892
|
+
amount: z.ZodString;
|
|
7893
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7894
|
+
type: z.ZodLiteral<"graduated">;
|
|
7895
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7896
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7897
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7898
|
+
type: z.ZodLiteral<"flat">;
|
|
7899
|
+
amount: z.ZodString;
|
|
7900
|
+
}, z.core.$strip>>;
|
|
7901
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7902
|
+
type: z.ZodLiteral<"unit">;
|
|
7903
|
+
amount: z.ZodString;
|
|
7904
|
+
}, z.core.$strip>>;
|
|
7905
|
+
}, z.core.$strip>>;
|
|
7906
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
7907
|
+
type: z.ZodLiteral<"volume">;
|
|
7908
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
7909
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7910
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7911
|
+
type: z.ZodLiteral<"flat">;
|
|
7912
|
+
amount: z.ZodString;
|
|
7913
|
+
}, z.core.$strip>>;
|
|
7914
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7915
|
+
type: z.ZodLiteral<"unit">;
|
|
7916
|
+
amount: z.ZodString;
|
|
7917
|
+
}, z.core.$strip>>;
|
|
7918
|
+
}, z.core.$strip>>;
|
|
7919
|
+
}, z.core.$strip>], "type">;
|
|
7631
7920
|
}, z.core.$strip>, z.ZodObject<{
|
|
7632
7921
|
id: z.ZodString;
|
|
7633
7922
|
name: z.ZodString;
|
|
@@ -7675,41 +7964,6 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
|
|
|
7675
7964
|
to: z.ZodString;
|
|
7676
7965
|
}, z.core.$strip>;
|
|
7677
7966
|
advance_after: z.ZodOptional<z.ZodString>;
|
|
7678
|
-
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7679
|
-
type: z.ZodLiteral<"free">;
|
|
7680
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7681
|
-
type: z.ZodLiteral<"flat">;
|
|
7682
|
-
amount: z.ZodString;
|
|
7683
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7684
|
-
type: z.ZodLiteral<"unit">;
|
|
7685
|
-
amount: z.ZodString;
|
|
7686
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7687
|
-
type: z.ZodLiteral<"graduated">;
|
|
7688
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7689
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7690
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7691
|
-
type: z.ZodLiteral<"flat">;
|
|
7692
|
-
amount: z.ZodString;
|
|
7693
|
-
}, z.core.$strip>>;
|
|
7694
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7695
|
-
type: z.ZodLiteral<"unit">;
|
|
7696
|
-
amount: z.ZodString;
|
|
7697
|
-
}, z.core.$strip>>;
|
|
7698
|
-
}, z.core.$strip>>;
|
|
7699
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
7700
|
-
type: z.ZodLiteral<"volume">;
|
|
7701
|
-
tiers: z.ZodArray<z.ZodObject<{
|
|
7702
|
-
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
7703
|
-
flat_price: z.ZodOptional<z.ZodObject<{
|
|
7704
|
-
type: z.ZodLiteral<"flat">;
|
|
7705
|
-
amount: z.ZodString;
|
|
7706
|
-
}, z.core.$strip>>;
|
|
7707
|
-
unit_price: z.ZodOptional<z.ZodObject<{
|
|
7708
|
-
type: z.ZodLiteral<"unit">;
|
|
7709
|
-
amount: z.ZodString;
|
|
7710
|
-
}, z.core.$strip>>;
|
|
7711
|
-
}, z.core.$strip>>;
|
|
7712
|
-
}, z.core.$strip>], "type">;
|
|
7713
7967
|
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
7714
7968
|
settlement_mode: z.ZodEnum<{
|
|
7715
7969
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -7758,6 +8012,41 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
|
|
|
7758
8012
|
total: z.ZodString;
|
|
7759
8013
|
}, z.core.$strip>>;
|
|
7760
8014
|
}, z.core.$strip>;
|
|
8015
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8016
|
+
type: z.ZodLiteral<"free">;
|
|
8017
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8018
|
+
type: z.ZodLiteral<"flat">;
|
|
8019
|
+
amount: z.ZodString;
|
|
8020
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8021
|
+
type: z.ZodLiteral<"unit">;
|
|
8022
|
+
amount: z.ZodString;
|
|
8023
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8024
|
+
type: z.ZodLiteral<"graduated">;
|
|
8025
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8026
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8027
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8028
|
+
type: z.ZodLiteral<"flat">;
|
|
8029
|
+
amount: z.ZodString;
|
|
8030
|
+
}, z.core.$strip>>;
|
|
8031
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8032
|
+
type: z.ZodLiteral<"unit">;
|
|
8033
|
+
amount: z.ZodString;
|
|
8034
|
+
}, z.core.$strip>>;
|
|
8035
|
+
}, z.core.$strip>>;
|
|
8036
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8037
|
+
type: z.ZodLiteral<"volume">;
|
|
8038
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8039
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8040
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8041
|
+
type: z.ZodLiteral<"flat">;
|
|
8042
|
+
amount: z.ZodString;
|
|
8043
|
+
}, z.core.$strip>>;
|
|
8044
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8045
|
+
type: z.ZodLiteral<"unit">;
|
|
8046
|
+
amount: z.ZodString;
|
|
8047
|
+
}, z.core.$strip>>;
|
|
8048
|
+
}, z.core.$strip>>;
|
|
8049
|
+
}, z.core.$strip>], "type">;
|
|
7761
8050
|
}, z.core.$strip>], "type">>;
|
|
7762
8051
|
meta: z.ZodObject<{
|
|
7763
8052
|
page: z.ZodObject<{
|
|
@@ -7767,6 +8056,398 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
|
|
|
7767
8056
|
}, z.core.$strip>;
|
|
7768
8057
|
}, z.core.$strip>;
|
|
7769
8058
|
}, z.core.$strip>;
|
|
8059
|
+
export declare const createCustomerChargesPathParams: z.ZodObject<{
|
|
8060
|
+
customerId: z.ZodString;
|
|
8061
|
+
}, z.core.$strip>;
|
|
8062
|
+
export declare const createCustomerChargesBody: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8063
|
+
name: z.ZodString;
|
|
8064
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8065
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8066
|
+
type: z.ZodLiteral<"flat_fee">;
|
|
8067
|
+
currency: z.ZodString;
|
|
8068
|
+
invoice_at: z.ZodString;
|
|
8069
|
+
service_period: z.ZodObject<{
|
|
8070
|
+
from: z.ZodString;
|
|
8071
|
+
to: z.ZodString;
|
|
8072
|
+
}, z.core.$strip>;
|
|
8073
|
+
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
8074
|
+
settlement_mode: z.ZodEnum<{
|
|
8075
|
+
credit_then_invoice: "credit_then_invoice";
|
|
8076
|
+
credit_only: "credit_only";
|
|
8077
|
+
}>;
|
|
8078
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
8079
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
8080
|
+
exclusive: "exclusive";
|
|
8081
|
+
inclusive: "inclusive";
|
|
8082
|
+
}>>;
|
|
8083
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
8084
|
+
code: z.ZodString;
|
|
8085
|
+
}, z.core.$strip>>;
|
|
8086
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
8087
|
+
code: z.ZodString;
|
|
8088
|
+
}, z.core.$strip>>;
|
|
8089
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
8090
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
8091
|
+
id: z.ZodString;
|
|
8092
|
+
}, z.core.$strip>>;
|
|
8093
|
+
}, z.core.$strip>>;
|
|
8094
|
+
payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
|
|
8095
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8096
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
8097
|
+
}, z.core.$strip>>;
|
|
8098
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
8099
|
+
proration_configuration: z.ZodObject<{
|
|
8100
|
+
mode: z.ZodEnum<{
|
|
8101
|
+
no_proration: "no_proration";
|
|
8102
|
+
prorate_prices: "prorate_prices";
|
|
8103
|
+
}>;
|
|
8104
|
+
}, z.core.$strip>;
|
|
8105
|
+
amount_before_proration: z.ZodObject<{
|
|
8106
|
+
amount: z.ZodString;
|
|
8107
|
+
currency: z.ZodString;
|
|
8108
|
+
}, z.core.$strip>;
|
|
8109
|
+
full_service_period: z.ZodOptional<z.ZodObject<{
|
|
8110
|
+
from: z.ZodString;
|
|
8111
|
+
to: z.ZodString;
|
|
8112
|
+
}, z.core.$strip>>;
|
|
8113
|
+
billing_period: z.ZodOptional<z.ZodObject<{
|
|
8114
|
+
from: z.ZodString;
|
|
8115
|
+
to: z.ZodString;
|
|
8116
|
+
}, z.core.$strip>>;
|
|
8117
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8118
|
+
name: z.ZodString;
|
|
8119
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8120
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8121
|
+
type: z.ZodLiteral<"usage_based">;
|
|
8122
|
+
currency: z.ZodString;
|
|
8123
|
+
invoice_at: z.ZodString;
|
|
8124
|
+
service_period: z.ZodObject<{
|
|
8125
|
+
from: z.ZodString;
|
|
8126
|
+
to: z.ZodString;
|
|
8127
|
+
}, z.core.$strip>;
|
|
8128
|
+
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
8129
|
+
settlement_mode: z.ZodEnum<{
|
|
8130
|
+
credit_then_invoice: "credit_then_invoice";
|
|
8131
|
+
credit_only: "credit_only";
|
|
8132
|
+
}>;
|
|
8133
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
8134
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
8135
|
+
exclusive: "exclusive";
|
|
8136
|
+
inclusive: "inclusive";
|
|
8137
|
+
}>>;
|
|
8138
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
8139
|
+
code: z.ZodString;
|
|
8140
|
+
}, z.core.$strip>>;
|
|
8141
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
8142
|
+
code: z.ZodString;
|
|
8143
|
+
}, z.core.$strip>>;
|
|
8144
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
8145
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
8146
|
+
id: z.ZodString;
|
|
8147
|
+
}, z.core.$strip>>;
|
|
8148
|
+
}, z.core.$strip>>;
|
|
8149
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8150
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
8151
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
8152
|
+
}, z.core.$strip>>;
|
|
8153
|
+
feature_key: z.ZodString;
|
|
8154
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8155
|
+
type: z.ZodLiteral<"free">;
|
|
8156
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8157
|
+
type: z.ZodLiteral<"flat">;
|
|
8158
|
+
amount: z.ZodString;
|
|
8159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8160
|
+
type: z.ZodLiteral<"unit">;
|
|
8161
|
+
amount: z.ZodString;
|
|
8162
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8163
|
+
type: z.ZodLiteral<"graduated">;
|
|
8164
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8165
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8166
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8167
|
+
type: z.ZodLiteral<"flat">;
|
|
8168
|
+
amount: z.ZodString;
|
|
8169
|
+
}, z.core.$strip>>;
|
|
8170
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8171
|
+
type: z.ZodLiteral<"unit">;
|
|
8172
|
+
amount: z.ZodString;
|
|
8173
|
+
}, z.core.$strip>>;
|
|
8174
|
+
}, z.core.$strip>>;
|
|
8175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8176
|
+
type: z.ZodLiteral<"volume">;
|
|
8177
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8178
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8179
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8180
|
+
type: z.ZodLiteral<"flat">;
|
|
8181
|
+
amount: z.ZodString;
|
|
8182
|
+
}, z.core.$strip>>;
|
|
8183
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8184
|
+
type: z.ZodLiteral<"unit">;
|
|
8185
|
+
amount: z.ZodString;
|
|
8186
|
+
}, z.core.$strip>>;
|
|
8187
|
+
}, z.core.$strip>>;
|
|
8188
|
+
}, z.core.$strip>], "type">;
|
|
8189
|
+
full_service_period: z.ZodOptional<z.ZodObject<{
|
|
8190
|
+
from: z.ZodString;
|
|
8191
|
+
to: z.ZodString;
|
|
8192
|
+
}, z.core.$strip>>;
|
|
8193
|
+
billing_period: z.ZodOptional<z.ZodObject<{
|
|
8194
|
+
from: z.ZodString;
|
|
8195
|
+
to: z.ZodString;
|
|
8196
|
+
}, z.core.$strip>>;
|
|
8197
|
+
}, z.core.$strip>], "type">;
|
|
8198
|
+
export declare const createCustomerChargesResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8199
|
+
id: z.ZodString;
|
|
8200
|
+
name: z.ZodString;
|
|
8201
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8202
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8203
|
+
created_at: z.ZodString;
|
|
8204
|
+
updated_at: z.ZodString;
|
|
8205
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
8206
|
+
type: z.ZodLiteral<"flat_fee">;
|
|
8207
|
+
customer: z.ZodObject<{
|
|
8208
|
+
id: z.ZodString;
|
|
8209
|
+
}, z.core.$strip>;
|
|
8210
|
+
managed_by: z.ZodEnum<{
|
|
8211
|
+
manual: "manual";
|
|
8212
|
+
system: "system";
|
|
8213
|
+
subscription: "subscription";
|
|
8214
|
+
}>;
|
|
8215
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
8216
|
+
id: z.ZodString;
|
|
8217
|
+
phase: z.ZodObject<{
|
|
8218
|
+
id: z.ZodString;
|
|
8219
|
+
item: z.ZodObject<{
|
|
8220
|
+
id: z.ZodString;
|
|
8221
|
+
}, z.core.$strip>;
|
|
8222
|
+
}, z.core.$strip>;
|
|
8223
|
+
}, z.core.$strip>>;
|
|
8224
|
+
currency: z.ZodString;
|
|
8225
|
+
status: z.ZodEnum<{
|
|
8226
|
+
active: "active";
|
|
8227
|
+
created: "created";
|
|
8228
|
+
final: "final";
|
|
8229
|
+
deleted: "deleted";
|
|
8230
|
+
}>;
|
|
8231
|
+
invoice_at: z.ZodString;
|
|
8232
|
+
service_period: z.ZodObject<{
|
|
8233
|
+
from: z.ZodString;
|
|
8234
|
+
to: z.ZodString;
|
|
8235
|
+
}, z.core.$strip>;
|
|
8236
|
+
full_service_period: z.ZodObject<{
|
|
8237
|
+
from: z.ZodString;
|
|
8238
|
+
to: z.ZodString;
|
|
8239
|
+
}, z.core.$strip>;
|
|
8240
|
+
billing_period: z.ZodObject<{
|
|
8241
|
+
from: z.ZodString;
|
|
8242
|
+
to: z.ZodString;
|
|
8243
|
+
}, z.core.$strip>;
|
|
8244
|
+
advance_after: z.ZodOptional<z.ZodString>;
|
|
8245
|
+
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
8246
|
+
settlement_mode: z.ZodEnum<{
|
|
8247
|
+
credit_then_invoice: "credit_then_invoice";
|
|
8248
|
+
credit_only: "credit_only";
|
|
8249
|
+
}>;
|
|
8250
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
8251
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
8252
|
+
exclusive: "exclusive";
|
|
8253
|
+
inclusive: "inclusive";
|
|
8254
|
+
}>>;
|
|
8255
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
8256
|
+
code: z.ZodString;
|
|
8257
|
+
}, z.core.$strip>>;
|
|
8258
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
8259
|
+
code: z.ZodString;
|
|
8260
|
+
}, z.core.$strip>>;
|
|
8261
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
8262
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
8263
|
+
id: z.ZodString;
|
|
8264
|
+
}, z.core.$strip>>;
|
|
8265
|
+
}, z.core.$strip>>;
|
|
8266
|
+
payment_term: z.ZodUnion<readonly [z.ZodLiteral<"in_advance">, z.ZodLiteral<"in_arrears">]>;
|
|
8267
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8268
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
8269
|
+
}, z.core.$strip>>;
|
|
8270
|
+
feature_key: z.ZodOptional<z.ZodString>;
|
|
8271
|
+
proration_configuration: z.ZodObject<{
|
|
8272
|
+
mode: z.ZodEnum<{
|
|
8273
|
+
no_proration: "no_proration";
|
|
8274
|
+
prorate_prices: "prorate_prices";
|
|
8275
|
+
}>;
|
|
8276
|
+
}, z.core.$strip>;
|
|
8277
|
+
amount_before_proration: z.ZodObject<{
|
|
8278
|
+
amount: z.ZodString;
|
|
8279
|
+
currency: z.ZodString;
|
|
8280
|
+
}, z.core.$strip>;
|
|
8281
|
+
amount_after_proration: z.ZodObject<{
|
|
8282
|
+
amount: z.ZodString;
|
|
8283
|
+
currency: z.ZodString;
|
|
8284
|
+
}, z.core.$strip>;
|
|
8285
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8286
|
+
type: z.ZodLiteral<"free">;
|
|
8287
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8288
|
+
type: z.ZodLiteral<"flat">;
|
|
8289
|
+
amount: z.ZodString;
|
|
8290
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8291
|
+
type: z.ZodLiteral<"unit">;
|
|
8292
|
+
amount: z.ZodString;
|
|
8293
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8294
|
+
type: z.ZodLiteral<"graduated">;
|
|
8295
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8296
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8297
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8298
|
+
type: z.ZodLiteral<"flat">;
|
|
8299
|
+
amount: z.ZodString;
|
|
8300
|
+
}, z.core.$strip>>;
|
|
8301
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8302
|
+
type: z.ZodLiteral<"unit">;
|
|
8303
|
+
amount: z.ZodString;
|
|
8304
|
+
}, z.core.$strip>>;
|
|
8305
|
+
}, z.core.$strip>>;
|
|
8306
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8307
|
+
type: z.ZodLiteral<"volume">;
|
|
8308
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8309
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8310
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8311
|
+
type: z.ZodLiteral<"flat">;
|
|
8312
|
+
amount: z.ZodString;
|
|
8313
|
+
}, z.core.$strip>>;
|
|
8314
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8315
|
+
type: z.ZodLiteral<"unit">;
|
|
8316
|
+
amount: z.ZodString;
|
|
8317
|
+
}, z.core.$strip>>;
|
|
8318
|
+
}, z.core.$strip>>;
|
|
8319
|
+
}, z.core.$strip>], "type">;
|
|
8320
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8321
|
+
id: z.ZodString;
|
|
8322
|
+
name: z.ZodString;
|
|
8323
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8324
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
8325
|
+
created_at: z.ZodString;
|
|
8326
|
+
updated_at: z.ZodString;
|
|
8327
|
+
deleted_at: z.ZodOptional<z.ZodString>;
|
|
8328
|
+
type: z.ZodLiteral<"usage_based">;
|
|
8329
|
+
customer: z.ZodObject<{
|
|
8330
|
+
id: z.ZodString;
|
|
8331
|
+
}, z.core.$strip>;
|
|
8332
|
+
managed_by: z.ZodEnum<{
|
|
8333
|
+
manual: "manual";
|
|
8334
|
+
system: "system";
|
|
8335
|
+
subscription: "subscription";
|
|
8336
|
+
}>;
|
|
8337
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
8338
|
+
id: z.ZodString;
|
|
8339
|
+
phase: z.ZodObject<{
|
|
8340
|
+
id: z.ZodString;
|
|
8341
|
+
item: z.ZodObject<{
|
|
8342
|
+
id: z.ZodString;
|
|
8343
|
+
}, z.core.$strip>;
|
|
8344
|
+
}, z.core.$strip>;
|
|
8345
|
+
}, z.core.$strip>>;
|
|
8346
|
+
currency: z.ZodString;
|
|
8347
|
+
status: z.ZodEnum<{
|
|
8348
|
+
active: "active";
|
|
8349
|
+
created: "created";
|
|
8350
|
+
final: "final";
|
|
8351
|
+
deleted: "deleted";
|
|
8352
|
+
}>;
|
|
8353
|
+
invoice_at: z.ZodString;
|
|
8354
|
+
service_period: z.ZodObject<{
|
|
8355
|
+
from: z.ZodString;
|
|
8356
|
+
to: z.ZodString;
|
|
8357
|
+
}, z.core.$strip>;
|
|
8358
|
+
full_service_period: z.ZodObject<{
|
|
8359
|
+
from: z.ZodString;
|
|
8360
|
+
to: z.ZodString;
|
|
8361
|
+
}, z.core.$strip>;
|
|
8362
|
+
billing_period: z.ZodObject<{
|
|
8363
|
+
from: z.ZodString;
|
|
8364
|
+
to: z.ZodString;
|
|
8365
|
+
}, z.core.$strip>;
|
|
8366
|
+
advance_after: z.ZodOptional<z.ZodString>;
|
|
8367
|
+
unique_reference_id: z.ZodOptional<z.ZodString>;
|
|
8368
|
+
settlement_mode: z.ZodEnum<{
|
|
8369
|
+
credit_then_invoice: "credit_then_invoice";
|
|
8370
|
+
credit_only: "credit_only";
|
|
8371
|
+
}>;
|
|
8372
|
+
tax_config: z.ZodOptional<z.ZodObject<{
|
|
8373
|
+
behavior: z.ZodOptional<z.ZodEnum<{
|
|
8374
|
+
exclusive: "exclusive";
|
|
8375
|
+
inclusive: "inclusive";
|
|
8376
|
+
}>>;
|
|
8377
|
+
stripe: z.ZodOptional<z.ZodObject<{
|
|
8378
|
+
code: z.ZodString;
|
|
8379
|
+
}, z.core.$strip>>;
|
|
8380
|
+
external_invoicing: z.ZodOptional<z.ZodObject<{
|
|
8381
|
+
code: z.ZodString;
|
|
8382
|
+
}, z.core.$strip>>;
|
|
8383
|
+
tax_code_id: z.ZodOptional<z.ZodString>;
|
|
8384
|
+
tax_code: z.ZodOptional<z.ZodObject<{
|
|
8385
|
+
id: z.ZodString;
|
|
8386
|
+
}, z.core.$strip>>;
|
|
8387
|
+
}, z.core.$strip>>;
|
|
8388
|
+
discounts: z.ZodOptional<z.ZodObject<{
|
|
8389
|
+
percentage: z.ZodOptional<z.ZodNumber>;
|
|
8390
|
+
usage: z.ZodOptional<z.ZodString>;
|
|
8391
|
+
}, z.core.$strip>>;
|
|
8392
|
+
feature_key: z.ZodString;
|
|
8393
|
+
totals: z.ZodObject<{
|
|
8394
|
+
booked: z.ZodObject<{
|
|
8395
|
+
amount: z.ZodString;
|
|
8396
|
+
taxes_total: z.ZodString;
|
|
8397
|
+
taxes_inclusive_total: z.ZodString;
|
|
8398
|
+
taxes_exclusive_total: z.ZodString;
|
|
8399
|
+
charges_total: z.ZodString;
|
|
8400
|
+
discounts_total: z.ZodString;
|
|
8401
|
+
credits_total: z.ZodString;
|
|
8402
|
+
total: z.ZodString;
|
|
8403
|
+
}, z.core.$strip>;
|
|
8404
|
+
realtime: z.ZodOptional<z.ZodObject<{
|
|
8405
|
+
amount: z.ZodString;
|
|
8406
|
+
taxes_total: z.ZodString;
|
|
8407
|
+
taxes_inclusive_total: z.ZodString;
|
|
8408
|
+
taxes_exclusive_total: z.ZodString;
|
|
8409
|
+
charges_total: z.ZodString;
|
|
8410
|
+
discounts_total: z.ZodString;
|
|
8411
|
+
credits_total: z.ZodString;
|
|
8412
|
+
total: z.ZodString;
|
|
8413
|
+
}, z.core.$strip>>;
|
|
8414
|
+
}, z.core.$strip>;
|
|
8415
|
+
price: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8416
|
+
type: z.ZodLiteral<"free">;
|
|
8417
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8418
|
+
type: z.ZodLiteral<"flat">;
|
|
8419
|
+
amount: z.ZodString;
|
|
8420
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8421
|
+
type: z.ZodLiteral<"unit">;
|
|
8422
|
+
amount: z.ZodString;
|
|
8423
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8424
|
+
type: z.ZodLiteral<"graduated">;
|
|
8425
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8426
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8427
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8428
|
+
type: z.ZodLiteral<"flat">;
|
|
8429
|
+
amount: z.ZodString;
|
|
8430
|
+
}, z.core.$strip>>;
|
|
8431
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8432
|
+
type: z.ZodLiteral<"unit">;
|
|
8433
|
+
amount: z.ZodString;
|
|
8434
|
+
}, z.core.$strip>>;
|
|
8435
|
+
}, z.core.$strip>>;
|
|
8436
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
8437
|
+
type: z.ZodLiteral<"volume">;
|
|
8438
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
8439
|
+
up_to_amount: z.ZodOptional<z.ZodString>;
|
|
8440
|
+
flat_price: z.ZodOptional<z.ZodObject<{
|
|
8441
|
+
type: z.ZodLiteral<"flat">;
|
|
8442
|
+
amount: z.ZodString;
|
|
8443
|
+
}, z.core.$strip>>;
|
|
8444
|
+
unit_price: z.ZodOptional<z.ZodObject<{
|
|
8445
|
+
type: z.ZodLiteral<"unit">;
|
|
8446
|
+
amount: z.ZodString;
|
|
8447
|
+
}, z.core.$strip>>;
|
|
8448
|
+
}, z.core.$strip>>;
|
|
8449
|
+
}, z.core.$strip>], "type">;
|
|
8450
|
+
}, z.core.$strip>], "type">;
|
|
7770
8451
|
export declare const createSubscriptionBody: z.ZodObject<{
|
|
7771
8452
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
7772
8453
|
settlement_mode: z.ZodOptional<z.ZodEnum<{
|