@openmeter/client 1.0.0-beta-fa13eb487bc4 → 1.0.0-beta-3793a9fca317
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/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/models/schemas.d.ts +70 -0
- package/dist/models/schemas.js +6 -0
- package/dist/models/types.d.ts +90 -0
- package/package.json +1 -1
package/dist/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.0-beta-
|
|
1
|
+
export declare const SDK_VERSION = "1.0.0-beta-3793a9fca317";
|
package/dist/lib/version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
// The committed value is a dev placeholder. The publish flow
|
|
3
3
|
// (`make -C api/spec publish-aip-sdk`) stamps the real release version here
|
|
4
4
|
// before `pnpm publish`, after `pnpm version` updates package.json.
|
|
5
|
-
export const SDK_VERSION = '1.0.0-beta-
|
|
5
|
+
export const SDK_VERSION = '1.0.0-beta-3793a9fca317';
|
package/dist/models/schemas.d.ts
CHANGED
|
@@ -4317,6 +4317,7 @@ export declare const subscriptionBase: z.ZodObject<{
|
|
|
4317
4317
|
}>;
|
|
4318
4318
|
}, z.core.$strip>>;
|
|
4319
4319
|
billingAnchor: z.ZodDate;
|
|
4320
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
4320
4321
|
status: z.ZodEnum<{
|
|
4321
4322
|
active: "active";
|
|
4322
4323
|
canceled: "canceled";
|
|
@@ -15693,6 +15694,7 @@ export declare const subscription: z.ZodObject<{
|
|
|
15693
15694
|
}>;
|
|
15694
15695
|
}, z.core.$strip>>;
|
|
15695
15696
|
billingAnchor: z.ZodDate;
|
|
15697
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
15696
15698
|
status: z.ZodEnum<{
|
|
15697
15699
|
active: "active";
|
|
15698
15700
|
canceled: "canceled";
|
|
@@ -15817,6 +15819,7 @@ export declare const subscription: z.ZodObject<{
|
|
|
15817
15819
|
}, z.core.$strip>;
|
|
15818
15820
|
export declare const subscriptionCreate: z.ZodObject<{
|
|
15819
15821
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
15822
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
15820
15823
|
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
15821
15824
|
credit_only: "credit_only";
|
|
15822
15825
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -20067,6 +20070,7 @@ export declare const subscriptionOrReference: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
20067
20070
|
}>;
|
|
20068
20071
|
}, z.core.$strip>>;
|
|
20069
20072
|
billingAnchor: z.ZodDate;
|
|
20073
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
20070
20074
|
status: z.ZodEnum<{
|
|
20071
20075
|
active: "active";
|
|
20072
20076
|
canceled: "canceled";
|
|
@@ -20235,6 +20239,7 @@ export declare const subscriptionPagePaginatedResponse: z.ZodObject<{
|
|
|
20235
20239
|
}>;
|
|
20236
20240
|
}, z.core.$strip>>;
|
|
20237
20241
|
billingAnchor: z.ZodDate;
|
|
20242
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
20238
20243
|
status: z.ZodEnum<{
|
|
20239
20244
|
active: "active";
|
|
20240
20245
|
canceled: "canceled";
|
|
@@ -20402,6 +20407,7 @@ export declare const subscriptionChangeResponse: z.ZodObject<{
|
|
|
20402
20407
|
}>;
|
|
20403
20408
|
}, z.core.$strip>>;
|
|
20404
20409
|
billingAnchor: z.ZodDate;
|
|
20410
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
20405
20411
|
status: z.ZodEnum<{
|
|
20406
20412
|
active: "active";
|
|
20407
20413
|
canceled: "canceled";
|
|
@@ -20560,6 +20566,7 @@ export declare const subscriptionChangeResponse: z.ZodObject<{
|
|
|
20560
20566
|
}>;
|
|
20561
20567
|
}, z.core.$strip>>;
|
|
20562
20568
|
billingAnchor: z.ZodDate;
|
|
20569
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
20563
20570
|
status: z.ZodEnum<{
|
|
20564
20571
|
active: "active";
|
|
20565
20572
|
canceled: "canceled";
|
|
@@ -20720,6 +20727,7 @@ export declare const subscriptionMigrateResponse: z.ZodObject<{
|
|
|
20720
20727
|
}>;
|
|
20721
20728
|
}, z.core.$strip>>;
|
|
20722
20729
|
billingAnchor: z.ZodDate;
|
|
20730
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
20723
20731
|
status: z.ZodEnum<{
|
|
20724
20732
|
active: "active";
|
|
20725
20733
|
canceled: "canceled";
|
|
@@ -20767,6 +20775,7 @@ export declare const subscriptionMigrateResponse: z.ZodObject<{
|
|
|
20767
20775
|
}>;
|
|
20768
20776
|
}, z.core.$strip>>;
|
|
20769
20777
|
billingAnchor: z.ZodDate;
|
|
20778
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
20770
20779
|
status: z.ZodEnum<{
|
|
20771
20780
|
active: "active";
|
|
20772
20781
|
canceled: "canceled";
|
|
@@ -23510,6 +23519,7 @@ export declare const chargeFlatFee: z.ZodObject<{
|
|
|
23510
23519
|
}>;
|
|
23511
23520
|
}, z.core.$strip>>;
|
|
23512
23521
|
billingAnchor: z.ZodDate;
|
|
23522
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
23513
23523
|
status: z.ZodEnum<{
|
|
23514
23524
|
active: "active";
|
|
23515
23525
|
canceled: "canceled";
|
|
@@ -24133,6 +24143,7 @@ export declare const chargeUsageBased: z.ZodObject<{
|
|
|
24133
24143
|
}>;
|
|
24134
24144
|
}, z.core.$strip>>;
|
|
24135
24145
|
billingAnchor: z.ZodDate;
|
|
24146
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
24136
24147
|
status: z.ZodEnum<{
|
|
24137
24148
|
active: "active";
|
|
24138
24149
|
canceled: "canceled";
|
|
@@ -28021,6 +28032,7 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
28021
28032
|
}>;
|
|
28022
28033
|
}, z.core.$strip>>;
|
|
28023
28034
|
billingAnchor: z.ZodDate;
|
|
28035
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
28024
28036
|
status: z.ZodEnum<{
|
|
28025
28037
|
active: "active";
|
|
28026
28038
|
canceled: "canceled";
|
|
@@ -28643,6 +28655,7 @@ export declare const charge: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
28643
28655
|
}>;
|
|
28644
28656
|
}, z.core.$strip>>;
|
|
28645
28657
|
billingAnchor: z.ZodDate;
|
|
28658
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
28646
28659
|
status: z.ZodEnum<{
|
|
28647
28660
|
active: "active";
|
|
28648
28661
|
canceled: "canceled";
|
|
@@ -31864,6 +31877,7 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
|
|
|
31864
31877
|
}>;
|
|
31865
31878
|
}, z.core.$strip>>;
|
|
31866
31879
|
billingAnchor: z.ZodDate;
|
|
31880
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
31867
31881
|
status: z.ZodEnum<{
|
|
31868
31882
|
active: "active";
|
|
31869
31883
|
canceled: "canceled";
|
|
@@ -32486,6 +32500,7 @@ export declare const chargePagePaginatedResponse: z.ZodObject<{
|
|
|
32486
32500
|
}>;
|
|
32487
32501
|
}, z.core.$strip>>;
|
|
32488
32502
|
billingAnchor: z.ZodDate;
|
|
32503
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
32489
32504
|
status: z.ZodEnum<{
|
|
32490
32505
|
active: "active";
|
|
32491
32506
|
canceled: "canceled";
|
|
@@ -38265,6 +38280,7 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
|
|
|
38265
38280
|
}>;
|
|
38266
38281
|
}, z.core.$strip>>;
|
|
38267
38282
|
billingAnchor: z.ZodDate;
|
|
38283
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
38268
38284
|
status: z.ZodEnum<{
|
|
38269
38285
|
active: "active";
|
|
38270
38286
|
canceled: "canceled";
|
|
@@ -38887,6 +38903,7 @@ export declare const listCustomerChargesResponse: z.ZodObject<{
|
|
|
38887
38903
|
}>;
|
|
38888
38904
|
}, z.core.$strip>>;
|
|
38889
38905
|
billingAnchor: z.ZodDate;
|
|
38906
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
38890
38907
|
status: z.ZodEnum<{
|
|
38891
38908
|
active: "active";
|
|
38892
38909
|
canceled: "canceled";
|
|
@@ -39796,6 +39813,7 @@ export declare const createCustomerChargesResponse: z.ZodDiscriminatedUnion<[z.Z
|
|
|
39796
39813
|
}>;
|
|
39797
39814
|
}, z.core.$strip>>;
|
|
39798
39815
|
billingAnchor: z.ZodDate;
|
|
39816
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
39799
39817
|
status: z.ZodEnum<{
|
|
39800
39818
|
active: "active";
|
|
39801
39819
|
canceled: "canceled";
|
|
@@ -40418,6 +40436,7 @@ export declare const createCustomerChargesResponse: z.ZodDiscriminatedUnion<[z.Z
|
|
|
40418
40436
|
}>;
|
|
40419
40437
|
}, z.core.$strip>>;
|
|
40420
40438
|
billingAnchor: z.ZodDate;
|
|
40439
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
40421
40440
|
status: z.ZodEnum<{
|
|
40422
40441
|
active: "active";
|
|
40423
40442
|
canceled: "canceled";
|
|
@@ -41427,6 +41446,7 @@ export declare const invoiceCustomerChargesResponse: z.ZodObject<{
|
|
|
41427
41446
|
}, z.core.$strip>;
|
|
41428
41447
|
export declare const createSubscriptionBody: z.ZodObject<{
|
|
41429
41448
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
41449
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
41430
41450
|
settlementMode: z.ZodOptional<z.ZodEnum<{
|
|
41431
41451
|
credit_only: "credit_only";
|
|
41432
41452
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -41591,6 +41611,7 @@ export declare const createSubscriptionResponse: z.ZodObject<{
|
|
|
41591
41611
|
}>;
|
|
41592
41612
|
}, z.core.$strip>>;
|
|
41593
41613
|
billingAnchor: z.ZodDate;
|
|
41614
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
41594
41615
|
status: z.ZodEnum<{
|
|
41595
41616
|
active: "active";
|
|
41596
41617
|
canceled: "canceled";
|
|
@@ -41787,6 +41808,7 @@ export declare const listSubscriptionsResponse: z.ZodObject<{
|
|
|
41787
41808
|
}>;
|
|
41788
41809
|
}, z.core.$strip>>;
|
|
41789
41810
|
billingAnchor: z.ZodDate;
|
|
41811
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
41790
41812
|
status: z.ZodEnum<{
|
|
41791
41813
|
active: "active";
|
|
41792
41814
|
canceled: "canceled";
|
|
@@ -41956,6 +41978,7 @@ export declare const getSubscriptionResponse: z.ZodObject<{
|
|
|
41956
41978
|
}>;
|
|
41957
41979
|
}, z.core.$strip>>;
|
|
41958
41980
|
billingAnchor: z.ZodDate;
|
|
41981
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
41959
41982
|
status: z.ZodEnum<{
|
|
41960
41983
|
active: "active";
|
|
41961
41984
|
canceled: "canceled";
|
|
@@ -42123,6 +42146,7 @@ export declare const cancelSubscriptionResponse: z.ZodObject<{
|
|
|
42123
42146
|
}>;
|
|
42124
42147
|
}, z.core.$strip>>;
|
|
42125
42148
|
billingAnchor: z.ZodDate;
|
|
42149
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
42126
42150
|
status: z.ZodEnum<{
|
|
42127
42151
|
active: "active";
|
|
42128
42152
|
canceled: "canceled";
|
|
@@ -42284,6 +42308,7 @@ export declare const unscheduleCancelationResponse: z.ZodObject<{
|
|
|
42284
42308
|
}>;
|
|
42285
42309
|
}, z.core.$strip>>;
|
|
42286
42310
|
billingAnchor: z.ZodDate;
|
|
42311
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
42287
42312
|
status: z.ZodEnum<{
|
|
42288
42313
|
active: "active";
|
|
42289
42314
|
canceled: "canceled";
|
|
@@ -42448,6 +42473,7 @@ export declare const restoreSubscriptionResponse: z.ZodObject<{
|
|
|
42448
42473
|
}>;
|
|
42449
42474
|
}, z.core.$strip>>;
|
|
42450
42475
|
billingAnchor: z.ZodDate;
|
|
42476
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
42451
42477
|
status: z.ZodEnum<{
|
|
42452
42478
|
active: "active";
|
|
42453
42479
|
canceled: "canceled";
|
|
@@ -42741,6 +42767,7 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
|
|
|
42741
42767
|
}>;
|
|
42742
42768
|
}, z.core.$strip>>;
|
|
42743
42769
|
billingAnchor: z.ZodDate;
|
|
42770
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
42744
42771
|
status: z.ZodEnum<{
|
|
42745
42772
|
active: "active";
|
|
42746
42773
|
canceled: "canceled";
|
|
@@ -42899,6 +42926,7 @@ export declare const changeSubscriptionResponse: z.ZodObject<{
|
|
|
42899
42926
|
}>;
|
|
42900
42927
|
}, z.core.$strip>>;
|
|
42901
42928
|
billingAnchor: z.ZodDate;
|
|
42929
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
42902
42930
|
status: z.ZodEnum<{
|
|
42903
42931
|
active: "active";
|
|
42904
42932
|
canceled: "canceled";
|
|
@@ -43071,6 +43099,7 @@ export declare const migrateSubscriptionResponse: z.ZodObject<{
|
|
|
43071
43099
|
}>;
|
|
43072
43100
|
}, z.core.$strip>>;
|
|
43073
43101
|
billingAnchor: z.ZodDate;
|
|
43102
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
43074
43103
|
status: z.ZodEnum<{
|
|
43075
43104
|
active: "active";
|
|
43076
43105
|
canceled: "canceled";
|
|
@@ -43118,6 +43147,7 @@ export declare const migrateSubscriptionResponse: z.ZodObject<{
|
|
|
43118
43147
|
}>;
|
|
43119
43148
|
}, z.core.$strip>>;
|
|
43120
43149
|
billingAnchor: z.ZodDate;
|
|
43150
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
43121
43151
|
status: z.ZodEnum<{
|
|
43122
43152
|
active: "active";
|
|
43123
43153
|
canceled: "canceled";
|
|
@@ -43406,6 +43436,7 @@ export declare const editSubscriptionResponse: z.ZodObject<{
|
|
|
43406
43436
|
}>;
|
|
43407
43437
|
}, z.core.$strip>>;
|
|
43408
43438
|
billingAnchor: z.ZodDate;
|
|
43439
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
43409
43440
|
status: z.ZodEnum<{
|
|
43410
43441
|
active: "active";
|
|
43411
43442
|
canceled: "canceled";
|
|
@@ -48266,6 +48297,7 @@ export declare const getChargeResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
48266
48297
|
}>;
|
|
48267
48298
|
}, z.core.$strip>>;
|
|
48268
48299
|
billingAnchor: z.ZodDate;
|
|
48300
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
48269
48301
|
status: z.ZodEnum<{
|
|
48270
48302
|
active: "active";
|
|
48271
48303
|
canceled: "canceled";
|
|
@@ -48888,6 +48920,7 @@ export declare const getChargeResponse: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
48888
48920
|
}>;
|
|
48889
48921
|
}, z.core.$strip>>;
|
|
48890
48922
|
billingAnchor: z.ZodDate;
|
|
48923
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
48891
48924
|
status: z.ZodEnum<{
|
|
48892
48925
|
active: "active";
|
|
48893
48926
|
canceled: "canceled";
|
|
@@ -49669,6 +49702,7 @@ export declare const listChargesResponse: z.ZodObject<{
|
|
|
49669
49702
|
}>;
|
|
49670
49703
|
}, z.core.$strip>>;
|
|
49671
49704
|
billingAnchor: z.ZodDate;
|
|
49705
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
49672
49706
|
status: z.ZodEnum<{
|
|
49673
49707
|
active: "active";
|
|
49674
49708
|
canceled: "canceled";
|
|
@@ -50291,6 +50325,7 @@ export declare const listChargesResponse: z.ZodObject<{
|
|
|
50291
50325
|
}>;
|
|
50292
50326
|
}, z.core.$strip>>;
|
|
50293
50327
|
billingAnchor: z.ZodDate;
|
|
50328
|
+
billingStartsAt: z.ZodOptional<z.ZodDate>;
|
|
50294
50329
|
status: z.ZodEnum<{
|
|
50295
50330
|
active: "active";
|
|
50296
50331
|
canceled: "canceled";
|
|
@@ -66826,6 +66861,7 @@ export declare const subscriptionBaseWire: z.ZodObject<{
|
|
|
66826
66861
|
}>;
|
|
66827
66862
|
}, z.core.$strict>>;
|
|
66828
66863
|
billing_anchor: z.ZodString;
|
|
66864
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
66829
66865
|
status: z.ZodEnum<{
|
|
66830
66866
|
active: "active";
|
|
66831
66867
|
canceled: "canceled";
|
|
@@ -78202,6 +78238,7 @@ export declare const subscriptionWire: z.ZodObject<{
|
|
|
78202
78238
|
}>;
|
|
78203
78239
|
}, z.core.$strict>>;
|
|
78204
78240
|
billing_anchor: z.ZodString;
|
|
78241
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
78205
78242
|
status: z.ZodEnum<{
|
|
78206
78243
|
active: "active";
|
|
78207
78244
|
canceled: "canceled";
|
|
@@ -78326,6 +78363,7 @@ export declare const subscriptionWire: z.ZodObject<{
|
|
|
78326
78363
|
}, z.core.$strict>;
|
|
78327
78364
|
export declare const subscriptionCreateWire: z.ZodObject<{
|
|
78328
78365
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
78366
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
78329
78367
|
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
78330
78368
|
credit_only: "credit_only";
|
|
78331
78369
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -82576,6 +82614,7 @@ export declare const subscriptionOrReferenceWire: z.ZodUnion<readonly [z.ZodObje
|
|
|
82576
82614
|
}>;
|
|
82577
82615
|
}, z.core.$strict>>;
|
|
82578
82616
|
billing_anchor: z.ZodString;
|
|
82617
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
82579
82618
|
status: z.ZodEnum<{
|
|
82580
82619
|
active: "active";
|
|
82581
82620
|
canceled: "canceled";
|
|
@@ -82744,6 +82783,7 @@ export declare const subscriptionPagePaginatedResponseWire: z.ZodObject<{
|
|
|
82744
82783
|
}>;
|
|
82745
82784
|
}, z.core.$strict>>;
|
|
82746
82785
|
billing_anchor: z.ZodString;
|
|
82786
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
82747
82787
|
status: z.ZodEnum<{
|
|
82748
82788
|
active: "active";
|
|
82749
82789
|
canceled: "canceled";
|
|
@@ -82911,6 +82951,7 @@ export declare const subscriptionChangeResponseWire: z.ZodObject<{
|
|
|
82911
82951
|
}>;
|
|
82912
82952
|
}, z.core.$strict>>;
|
|
82913
82953
|
billing_anchor: z.ZodString;
|
|
82954
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
82914
82955
|
status: z.ZodEnum<{
|
|
82915
82956
|
active: "active";
|
|
82916
82957
|
canceled: "canceled";
|
|
@@ -83069,6 +83110,7 @@ export declare const subscriptionChangeResponseWire: z.ZodObject<{
|
|
|
83069
83110
|
}>;
|
|
83070
83111
|
}, z.core.$strict>>;
|
|
83071
83112
|
billing_anchor: z.ZodString;
|
|
83113
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
83072
83114
|
status: z.ZodEnum<{
|
|
83073
83115
|
active: "active";
|
|
83074
83116
|
canceled: "canceled";
|
|
@@ -83229,6 +83271,7 @@ export declare const subscriptionMigrateResponseWire: z.ZodObject<{
|
|
|
83229
83271
|
}>;
|
|
83230
83272
|
}, z.core.$strict>>;
|
|
83231
83273
|
billing_anchor: z.ZodString;
|
|
83274
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
83232
83275
|
status: z.ZodEnum<{
|
|
83233
83276
|
active: "active";
|
|
83234
83277
|
canceled: "canceled";
|
|
@@ -83276,6 +83319,7 @@ export declare const subscriptionMigrateResponseWire: z.ZodObject<{
|
|
|
83276
83319
|
}>;
|
|
83277
83320
|
}, z.core.$strict>>;
|
|
83278
83321
|
billing_anchor: z.ZodString;
|
|
83322
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
83279
83323
|
status: z.ZodEnum<{
|
|
83280
83324
|
active: "active";
|
|
83281
83325
|
canceled: "canceled";
|
|
@@ -86019,6 +86063,7 @@ export declare const chargeFlatFeeWire: z.ZodObject<{
|
|
|
86019
86063
|
}>;
|
|
86020
86064
|
}, z.core.$strict>>;
|
|
86021
86065
|
billing_anchor: z.ZodString;
|
|
86066
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
86022
86067
|
status: z.ZodEnum<{
|
|
86023
86068
|
active: "active";
|
|
86024
86069
|
canceled: "canceled";
|
|
@@ -86642,6 +86687,7 @@ export declare const chargeUsageBasedWire: z.ZodObject<{
|
|
|
86642
86687
|
}>;
|
|
86643
86688
|
}, z.core.$strict>>;
|
|
86644
86689
|
billing_anchor: z.ZodString;
|
|
86690
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
86645
86691
|
status: z.ZodEnum<{
|
|
86646
86692
|
active: "active";
|
|
86647
86693
|
canceled: "canceled";
|
|
@@ -90530,6 +90576,7 @@ export declare const chargeWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
90530
90576
|
}>;
|
|
90531
90577
|
}, z.core.$strict>>;
|
|
90532
90578
|
billing_anchor: z.ZodString;
|
|
90579
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
90533
90580
|
status: z.ZodEnum<{
|
|
90534
90581
|
active: "active";
|
|
90535
90582
|
canceled: "canceled";
|
|
@@ -91152,6 +91199,7 @@ export declare const chargeWire: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
91152
91199
|
}>;
|
|
91153
91200
|
}, z.core.$strict>>;
|
|
91154
91201
|
billing_anchor: z.ZodString;
|
|
91202
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
91155
91203
|
status: z.ZodEnum<{
|
|
91156
91204
|
active: "active";
|
|
91157
91205
|
canceled: "canceled";
|
|
@@ -94373,6 +94421,7 @@ export declare const chargePagePaginatedResponseWire: z.ZodObject<{
|
|
|
94373
94421
|
}>;
|
|
94374
94422
|
}, z.core.$strict>>;
|
|
94375
94423
|
billing_anchor: z.ZodString;
|
|
94424
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
94376
94425
|
status: z.ZodEnum<{
|
|
94377
94426
|
active: "active";
|
|
94378
94427
|
canceled: "canceled";
|
|
@@ -94995,6 +95044,7 @@ export declare const chargePagePaginatedResponseWire: z.ZodObject<{
|
|
|
94995
95044
|
}>;
|
|
94996
95045
|
}, z.core.$strict>>;
|
|
94997
95046
|
billing_anchor: z.ZodString;
|
|
95047
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
94998
95048
|
status: z.ZodEnum<{
|
|
94999
95049
|
active: "active";
|
|
95000
95050
|
canceled: "canceled";
|
|
@@ -100747,6 +100797,7 @@ export declare const listCustomerChargesResponseWire: z.ZodObject<{
|
|
|
100747
100797
|
}>;
|
|
100748
100798
|
}, z.core.$strict>>;
|
|
100749
100799
|
billing_anchor: z.ZodString;
|
|
100800
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
100750
100801
|
status: z.ZodEnum<{
|
|
100751
100802
|
active: "active";
|
|
100752
100803
|
canceled: "canceled";
|
|
@@ -101369,6 +101420,7 @@ export declare const listCustomerChargesResponseWire: z.ZodObject<{
|
|
|
101369
101420
|
}>;
|
|
101370
101421
|
}, z.core.$strict>>;
|
|
101371
101422
|
billing_anchor: z.ZodString;
|
|
101423
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
101372
101424
|
status: z.ZodEnum<{
|
|
101373
101425
|
active: "active";
|
|
101374
101426
|
canceled: "canceled";
|
|
@@ -102278,6 +102330,7 @@ export declare const createCustomerChargesResponseWire: z.ZodDiscriminatedUnion<
|
|
|
102278
102330
|
}>;
|
|
102279
102331
|
}, z.core.$strict>>;
|
|
102280
102332
|
billing_anchor: z.ZodString;
|
|
102333
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
102281
102334
|
status: z.ZodEnum<{
|
|
102282
102335
|
active: "active";
|
|
102283
102336
|
canceled: "canceled";
|
|
@@ -102900,6 +102953,7 @@ export declare const createCustomerChargesResponseWire: z.ZodDiscriminatedUnion<
|
|
|
102900
102953
|
}>;
|
|
102901
102954
|
}, z.core.$strict>>;
|
|
102902
102955
|
billing_anchor: z.ZodString;
|
|
102956
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
102903
102957
|
status: z.ZodEnum<{
|
|
102904
102958
|
active: "active";
|
|
102905
102959
|
canceled: "canceled";
|
|
@@ -103909,6 +103963,7 @@ export declare const invoiceCustomerChargesResponseWire: z.ZodObject<{
|
|
|
103909
103963
|
}, z.core.$strict>;
|
|
103910
103964
|
export declare const createSubscriptionBodyWire: z.ZodObject<{
|
|
103911
103965
|
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
103966
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
103912
103967
|
settlement_mode: z.ZodOptional<z.ZodEnum<{
|
|
103913
103968
|
credit_only: "credit_only";
|
|
103914
103969
|
credit_then_invoice: "credit_then_invoice";
|
|
@@ -104073,6 +104128,7 @@ export declare const createSubscriptionResponseWire: z.ZodObject<{
|
|
|
104073
104128
|
}>;
|
|
104074
104129
|
}, z.core.$strict>>;
|
|
104075
104130
|
billing_anchor: z.ZodString;
|
|
104131
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
104076
104132
|
status: z.ZodEnum<{
|
|
104077
104133
|
active: "active";
|
|
104078
104134
|
canceled: "canceled";
|
|
@@ -104266,6 +104322,7 @@ export declare const listSubscriptionsResponseWire: z.ZodObject<{
|
|
|
104266
104322
|
}>;
|
|
104267
104323
|
}, z.core.$strict>>;
|
|
104268
104324
|
billing_anchor: z.ZodString;
|
|
104325
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
104269
104326
|
status: z.ZodEnum<{
|
|
104270
104327
|
active: "active";
|
|
104271
104328
|
canceled: "canceled";
|
|
@@ -104435,6 +104492,7 @@ export declare const getSubscriptionResponseWire: z.ZodObject<{
|
|
|
104435
104492
|
}>;
|
|
104436
104493
|
}, z.core.$strict>>;
|
|
104437
104494
|
billing_anchor: z.ZodString;
|
|
104495
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
104438
104496
|
status: z.ZodEnum<{
|
|
104439
104497
|
active: "active";
|
|
104440
104498
|
canceled: "canceled";
|
|
@@ -104602,6 +104660,7 @@ export declare const cancelSubscriptionResponseWire: z.ZodObject<{
|
|
|
104602
104660
|
}>;
|
|
104603
104661
|
}, z.core.$strict>>;
|
|
104604
104662
|
billing_anchor: z.ZodString;
|
|
104663
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
104605
104664
|
status: z.ZodEnum<{
|
|
104606
104665
|
active: "active";
|
|
104607
104666
|
canceled: "canceled";
|
|
@@ -104763,6 +104822,7 @@ export declare const unscheduleCancelationResponseWire: z.ZodObject<{
|
|
|
104763
104822
|
}>;
|
|
104764
104823
|
}, z.core.$strict>>;
|
|
104765
104824
|
billing_anchor: z.ZodString;
|
|
104825
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
104766
104826
|
status: z.ZodEnum<{
|
|
104767
104827
|
active: "active";
|
|
104768
104828
|
canceled: "canceled";
|
|
@@ -104927,6 +104987,7 @@ export declare const restoreSubscriptionResponseWire: z.ZodObject<{
|
|
|
104927
104987
|
}>;
|
|
104928
104988
|
}, z.core.$strict>>;
|
|
104929
104989
|
billing_anchor: z.ZodString;
|
|
104990
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
104930
104991
|
status: z.ZodEnum<{
|
|
104931
104992
|
active: "active";
|
|
104932
104993
|
canceled: "canceled";
|
|
@@ -105220,6 +105281,7 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
|
|
|
105220
105281
|
}>;
|
|
105221
105282
|
}, z.core.$strict>>;
|
|
105222
105283
|
billing_anchor: z.ZodString;
|
|
105284
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
105223
105285
|
status: z.ZodEnum<{
|
|
105224
105286
|
active: "active";
|
|
105225
105287
|
canceled: "canceled";
|
|
@@ -105378,6 +105440,7 @@ export declare const changeSubscriptionResponseWire: z.ZodObject<{
|
|
|
105378
105440
|
}>;
|
|
105379
105441
|
}, z.core.$strict>>;
|
|
105380
105442
|
billing_anchor: z.ZodString;
|
|
105443
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
105381
105444
|
status: z.ZodEnum<{
|
|
105382
105445
|
active: "active";
|
|
105383
105446
|
canceled: "canceled";
|
|
@@ -105550,6 +105613,7 @@ export declare const migrateSubscriptionResponseWire: z.ZodObject<{
|
|
|
105550
105613
|
}>;
|
|
105551
105614
|
}, z.core.$strict>>;
|
|
105552
105615
|
billing_anchor: z.ZodString;
|
|
105616
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
105553
105617
|
status: z.ZodEnum<{
|
|
105554
105618
|
active: "active";
|
|
105555
105619
|
canceled: "canceled";
|
|
@@ -105597,6 +105661,7 @@ export declare const migrateSubscriptionResponseWire: z.ZodObject<{
|
|
|
105597
105661
|
}>;
|
|
105598
105662
|
}, z.core.$strict>>;
|
|
105599
105663
|
billing_anchor: z.ZodString;
|
|
105664
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
105600
105665
|
status: z.ZodEnum<{
|
|
105601
105666
|
active: "active";
|
|
105602
105667
|
canceled: "canceled";
|
|
@@ -105885,6 +105950,7 @@ export declare const editSubscriptionResponseWire: z.ZodObject<{
|
|
|
105885
105950
|
}>;
|
|
105886
105951
|
}, z.core.$strict>>;
|
|
105887
105952
|
billing_anchor: z.ZodString;
|
|
105953
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
105888
105954
|
status: z.ZodEnum<{
|
|
105889
105955
|
active: "active";
|
|
105890
105956
|
canceled: "canceled";
|
|
@@ -110733,6 +110799,7 @@ export declare const getChargeResponseWire: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
110733
110799
|
}>;
|
|
110734
110800
|
}, z.core.$strict>>;
|
|
110735
110801
|
billing_anchor: z.ZodString;
|
|
110802
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
110736
110803
|
status: z.ZodEnum<{
|
|
110737
110804
|
active: "active";
|
|
110738
110805
|
canceled: "canceled";
|
|
@@ -111355,6 +111422,7 @@ export declare const getChargeResponseWire: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
111355
111422
|
}>;
|
|
111356
111423
|
}, z.core.$strict>>;
|
|
111357
111424
|
billing_anchor: z.ZodString;
|
|
111425
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
111358
111426
|
status: z.ZodEnum<{
|
|
111359
111427
|
active: "active";
|
|
111360
111428
|
canceled: "canceled";
|
|
@@ -112133,6 +112201,7 @@ export declare const listChargesResponseWire: z.ZodObject<{
|
|
|
112133
112201
|
}>;
|
|
112134
112202
|
}, z.core.$strict>>;
|
|
112135
112203
|
billing_anchor: z.ZodString;
|
|
112204
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
112136
112205
|
status: z.ZodEnum<{
|
|
112137
112206
|
active: "active";
|
|
112138
112207
|
canceled: "canceled";
|
|
@@ -112755,6 +112824,7 @@ export declare const listChargesResponseWire: z.ZodObject<{
|
|
|
112755
112824
|
}>;
|
|
112756
112825
|
}, z.core.$strict>>;
|
|
112757
112826
|
billing_anchor: z.ZodString;
|
|
112827
|
+
billing_starts_at: z.ZodOptional<z.ZodString>;
|
|
112758
112828
|
status: z.ZodEnum<{
|
|
112759
112829
|
active: "active";
|
|
112760
112830
|
canceled: "canceled";
|
package/dist/models/schemas.js
CHANGED
|
@@ -4783,6 +4783,7 @@ export const subscriptionBase = z
|
|
|
4783
4783
|
billingCadence: iso8601Duration,
|
|
4784
4784
|
proRatingConfig: subscriptionProRatingConfig.optional(),
|
|
4785
4785
|
billingAnchor: dateTime,
|
|
4786
|
+
billingStartsAt: dateTime.optional(),
|
|
4786
4787
|
status: subscriptionStatus,
|
|
4787
4788
|
settlementMode: settlementMode.optional(),
|
|
4788
4789
|
})
|
|
@@ -7496,6 +7497,7 @@ export const subscription = z
|
|
|
7496
7497
|
billingCadence: iso8601Duration,
|
|
7497
7498
|
proRatingConfig: subscriptionProRatingConfig.optional(),
|
|
7498
7499
|
billingAnchor: dateTime,
|
|
7500
|
+
billingStartsAt: dateTime.optional(),
|
|
7499
7501
|
status: subscriptionStatus,
|
|
7500
7502
|
settlementMode: settlementMode.optional(),
|
|
7501
7503
|
currentPeriod: closedPeriod.optional(),
|
|
@@ -7506,6 +7508,7 @@ export const subscription = z
|
|
|
7506
7508
|
.describe('Subscription.');
|
|
7507
7509
|
export const subscriptionCreate = z.object({
|
|
7508
7510
|
labels: labels.optional(),
|
|
7511
|
+
billingStartsAt: dateTime.optional(),
|
|
7509
7512
|
settlementMode: settlementMode.optional(),
|
|
7510
7513
|
customer: z
|
|
7511
7514
|
.object({
|
|
@@ -14087,6 +14090,7 @@ export const subscriptionBaseWire = z
|
|
|
14087
14090
|
billing_cadence: iso8601DurationWire,
|
|
14088
14091
|
pro_rating_config: subscriptionProRatingConfigWire.optional(),
|
|
14089
14092
|
billing_anchor: dateTimeWire,
|
|
14093
|
+
billing_starts_at: dateTimeWire.optional(),
|
|
14090
14094
|
status: subscriptionStatusWire,
|
|
14091
14095
|
settlement_mode: settlementModeWire.optional(),
|
|
14092
14096
|
})
|
|
@@ -16873,6 +16877,7 @@ export const subscriptionWire = z
|
|
|
16873
16877
|
billing_cadence: iso8601DurationWire,
|
|
16874
16878
|
pro_rating_config: subscriptionProRatingConfigWire.optional(),
|
|
16875
16879
|
billing_anchor: dateTimeWire,
|
|
16880
|
+
billing_starts_at: dateTimeWire.optional(),
|
|
16876
16881
|
status: subscriptionStatusWire,
|
|
16877
16882
|
settlement_mode: settlementModeWire.optional(),
|
|
16878
16883
|
current_period: closedPeriodWire.optional(),
|
|
@@ -16883,6 +16888,7 @@ export const subscriptionWire = z
|
|
|
16883
16888
|
.describe('Subscription.');
|
|
16884
16889
|
export const subscriptionCreateWire = z.strictObject({
|
|
16885
16890
|
labels: labelsWire.optional(),
|
|
16891
|
+
billing_starts_at: dateTimeWire.optional(),
|
|
16886
16892
|
settlement_mode: settlementModeWire.optional(),
|
|
16887
16893
|
customer: z
|
|
16888
16894
|
.strictObject({
|
package/dist/models/types.d.ts
CHANGED
|
@@ -4943,6 +4943,21 @@ export interface SubscriptionBase {
|
|
|
4943
4943
|
* - Custom date (customer-specified day)
|
|
4944
4944
|
*/
|
|
4945
4945
|
billingAnchor: Date;
|
|
4946
|
+
/**
|
|
4947
|
+
* When billing starts for the subscription. Nothing is billed for service before
|
|
4948
|
+
* this time, while access, entitlements and metering start with the subscription.
|
|
4949
|
+
* Use it when the time before was already billed elsewhere, for example when
|
|
4950
|
+
* importing a subscription from another billing system.
|
|
4951
|
+
*
|
|
4952
|
+
* It cannot be before the start of the subscription and cannot be changed later.
|
|
4953
|
+
* On subscriptions billed through invoice lines it must be the start of a billing
|
|
4954
|
+
* period. If not provided, billing starts with the subscription.
|
|
4955
|
+
*
|
|
4956
|
+
* When billing starts inside a billing period, we recommend enabling price
|
|
4957
|
+
* pro-rating (`prorate_prices`) on the plan. Without it that billing period's flat
|
|
4958
|
+
* fees are billed in full.
|
|
4959
|
+
*/
|
|
4960
|
+
billingStartsAt?: Date;
|
|
4946
4961
|
/** The status of the subscription. */
|
|
4947
4962
|
status: 'active' | 'inactive' | 'canceled' | 'scheduled';
|
|
4948
4963
|
/**
|
|
@@ -8661,6 +8676,21 @@ export interface Subscription {
|
|
|
8661
8676
|
* - Custom date (customer-specified day)
|
|
8662
8677
|
*/
|
|
8663
8678
|
billingAnchor: Date;
|
|
8679
|
+
/**
|
|
8680
|
+
* When billing starts for the subscription. Nothing is billed for service before
|
|
8681
|
+
* this time, while access, entitlements and metering start with the subscription.
|
|
8682
|
+
* Use it when the time before was already billed elsewhere, for example when
|
|
8683
|
+
* importing a subscription from another billing system.
|
|
8684
|
+
*
|
|
8685
|
+
* It cannot be before the start of the subscription and cannot be changed later.
|
|
8686
|
+
* On subscriptions billed through invoice lines it must be the start of a billing
|
|
8687
|
+
* period. If not provided, billing starts with the subscription.
|
|
8688
|
+
*
|
|
8689
|
+
* When billing starts inside a billing period, we recommend enabling price
|
|
8690
|
+
* pro-rating (`prorate_prices`) on the plan. Without it that billing period's flat
|
|
8691
|
+
* fees are billed in full.
|
|
8692
|
+
*/
|
|
8693
|
+
billingStartsAt?: Date;
|
|
8664
8694
|
/** The status of the subscription. */
|
|
8665
8695
|
status: 'active' | 'inactive' | 'canceled' | 'scheduled';
|
|
8666
8696
|
/**
|
|
@@ -8686,6 +8716,21 @@ export interface Subscription {
|
|
|
8686
8716
|
}
|
|
8687
8717
|
export interface SubscriptionCreate {
|
|
8688
8718
|
labels?: Labels;
|
|
8719
|
+
/**
|
|
8720
|
+
* When billing starts for the subscription. Nothing is billed for service before
|
|
8721
|
+
* this time, while access, entitlements and metering start with the subscription.
|
|
8722
|
+
* Use it when the time before was already billed elsewhere, for example when
|
|
8723
|
+
* importing a subscription from another billing system.
|
|
8724
|
+
*
|
|
8725
|
+
* It cannot be before the start of the subscription and cannot be changed later.
|
|
8726
|
+
* On subscriptions billed through invoice lines it must be the start of a billing
|
|
8727
|
+
* period. If not provided, billing starts with the subscription.
|
|
8728
|
+
*
|
|
8729
|
+
* When billing starts inside a billing period, we recommend enabling price
|
|
8730
|
+
* pro-rating (`prorate_prices`) on the plan. Without it that billing period's flat
|
|
8731
|
+
* fees are billed in full.
|
|
8732
|
+
*/
|
|
8733
|
+
billingStartsAt?: Date;
|
|
8689
8734
|
/**
|
|
8690
8735
|
* Settlement mode for billing.
|
|
8691
8736
|
*
|
|
@@ -10578,6 +10623,21 @@ export interface SubscriptionBaseInput {
|
|
|
10578
10623
|
* - Custom date (customer-specified day)
|
|
10579
10624
|
*/
|
|
10580
10625
|
billingAnchor: Date;
|
|
10626
|
+
/**
|
|
10627
|
+
* When billing starts for the subscription. Nothing is billed for service before
|
|
10628
|
+
* this time, while access, entitlements and metering start with the subscription.
|
|
10629
|
+
* Use it when the time before was already billed elsewhere, for example when
|
|
10630
|
+
* importing a subscription from another billing system.
|
|
10631
|
+
*
|
|
10632
|
+
* It cannot be before the start of the subscription and cannot be changed later.
|
|
10633
|
+
* On subscriptions billed through invoice lines it must be the start of a billing
|
|
10634
|
+
* period. If not provided, billing starts with the subscription.
|
|
10635
|
+
*
|
|
10636
|
+
* When billing starts inside a billing period, we recommend enabling price
|
|
10637
|
+
* pro-rating (`prorate_prices`) on the plan. Without it that billing period's flat
|
|
10638
|
+
* fees are billed in full.
|
|
10639
|
+
*/
|
|
10640
|
+
billingStartsAt?: Date;
|
|
10581
10641
|
/** The status of the subscription. */
|
|
10582
10642
|
status: 'active' | 'inactive' | 'canceled' | 'scheduled';
|
|
10583
10643
|
/**
|
|
@@ -12262,6 +12322,21 @@ export interface SubscriptionInput {
|
|
|
12262
12322
|
* - Custom date (customer-specified day)
|
|
12263
12323
|
*/
|
|
12264
12324
|
billingAnchor: Date;
|
|
12325
|
+
/**
|
|
12326
|
+
* When billing starts for the subscription. Nothing is billed for service before
|
|
12327
|
+
* this time, while access, entitlements and metering start with the subscription.
|
|
12328
|
+
* Use it when the time before was already billed elsewhere, for example when
|
|
12329
|
+
* importing a subscription from another billing system.
|
|
12330
|
+
*
|
|
12331
|
+
* It cannot be before the start of the subscription and cannot be changed later.
|
|
12332
|
+
* On subscriptions billed through invoice lines it must be the start of a billing
|
|
12333
|
+
* period. If not provided, billing starts with the subscription.
|
|
12334
|
+
*
|
|
12335
|
+
* When billing starts inside a billing period, we recommend enabling price
|
|
12336
|
+
* pro-rating (`prorate_prices`) on the plan. Without it that billing period's flat
|
|
12337
|
+
* fees are billed in full.
|
|
12338
|
+
*/
|
|
12339
|
+
billingStartsAt?: Date;
|
|
12265
12340
|
/** The status of the subscription. */
|
|
12266
12341
|
status: 'active' | 'inactive' | 'canceled' | 'scheduled';
|
|
12267
12342
|
/**
|
|
@@ -12287,6 +12362,21 @@ export interface SubscriptionInput {
|
|
|
12287
12362
|
}
|
|
12288
12363
|
export interface SubscriptionCreateInput {
|
|
12289
12364
|
labels?: Labels;
|
|
12365
|
+
/**
|
|
12366
|
+
* When billing starts for the subscription. Nothing is billed for service before
|
|
12367
|
+
* this time, while access, entitlements and metering start with the subscription.
|
|
12368
|
+
* Use it when the time before was already billed elsewhere, for example when
|
|
12369
|
+
* importing a subscription from another billing system.
|
|
12370
|
+
*
|
|
12371
|
+
* It cannot be before the start of the subscription and cannot be changed later.
|
|
12372
|
+
* On subscriptions billed through invoice lines it must be the start of a billing
|
|
12373
|
+
* period. If not provided, billing starts with the subscription.
|
|
12374
|
+
*
|
|
12375
|
+
* When billing starts inside a billing period, we recommend enabling price
|
|
12376
|
+
* pro-rating (`prorate_prices`) on the plan. Without it that billing period's flat
|
|
12377
|
+
* fees are billed in full.
|
|
12378
|
+
*/
|
|
12379
|
+
billingStartsAt?: Date;
|
|
12290
12380
|
/**
|
|
12291
12381
|
* Settlement mode for billing.
|
|
12292
12382
|
*
|