@klingis/sdk 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2950,6 +2950,8 @@ export type PostV1PaymentMethodsSetupBodyOneMetadata = {
2950
2950
  };
2951
2951
  export type PostV1PaymentMethodsSetupBodyOne = {
2952
2952
  customer_id: string;
2953
+ /** ID of one of this customer's subscriptions. When the customer saves the card, it becomes the card the subscription is charged on, and a past_due subscription's unpaid payment is charged on it right away. Without this, the card is only saved to the customer and no subscription changes. The metadata keys 'sourceType' and 'subscriptionId' are reserved when this is set. */
2954
+ subscription?: string;
2953
2955
  success_url: string;
2954
2956
  cancel_url?: string;
2955
2957
  metadata?: PostV1PaymentMethodsSetupBodyOneMetadata;
@@ -2959,6 +2961,8 @@ export type PostV1PaymentMethodsSetupBodyTwoMetadata = {
2959
2961
  };
2960
2962
  export type PostV1PaymentMethodsSetupBodyTwo = {
2961
2963
  customer_id: string;
2964
+ /** ID of one of this customer's subscriptions. When the customer saves the card, it becomes the card the subscription is charged on, and a past_due subscription's unpaid payment is charged on it right away. Without this, the card is only saved to the customer and no subscription changes. The metadata keys 'sourceType' and 'subscriptionId' are reserved when this is set. */
2965
+ subscription?: string;
2962
2966
  success_url: string;
2963
2967
  cancel_url?: string;
2964
2968
  metadata?: PostV1PaymentMethodsSetupBodyTwoMetadata;
@@ -2968,6 +2972,8 @@ export type PostV1PaymentMethodsSetupBodyThreeMetadata = {
2968
2972
  };
2969
2973
  export type PostV1PaymentMethodsSetupBodyThree = {
2970
2974
  customer_id: string;
2975
+ /** ID of one of this customer's subscriptions. When the customer saves the card, it becomes the card the subscription is charged on, and a past_due subscription's unpaid payment is charged on it right away. Without this, the card is only saved to the customer and no subscription changes. The metadata keys 'sourceType' and 'subscriptionId' are reserved when this is set. */
2976
+ subscription?: string;
2971
2977
  success_url: string;
2972
2978
  cancel_url?: string;
2973
2979
  metadata?: PostV1PaymentMethodsSetupBodyThreeMetadata;
@@ -2977,6 +2983,7 @@ export type PostV1PaymentMethodsSetup200One = {
2977
2983
  object: 'setup_session';
2978
2984
  url: string;
2979
2985
  customer: string;
2986
+ subscription: string | null;
2980
2987
  expires_at: number;
2981
2988
  created_at: number;
2982
2989
  };
@@ -2985,6 +2992,7 @@ export type PostV1PaymentMethodsSetup200Two = {
2985
2992
  object: 'setup_session';
2986
2993
  url: string;
2987
2994
  customer: string;
2995
+ subscription: string | null;
2988
2996
  expires_at: number;
2989
2997
  created_at: number;
2990
2998
  };
@@ -2993,9 +3001,34 @@ export type PostV1PaymentMethodsSetup200Three = {
2993
3001
  object: 'setup_session';
2994
3002
  url: string;
2995
3003
  customer: string;
3004
+ subscription: string | null;
2996
3005
  expires_at: number;
2997
3006
  created_at: number;
2998
3007
  };
3008
+ export type PostV1PaymentMethodsSetup400OneError = {
3009
+ type: string;
3010
+ message: string;
3011
+ code?: string;
3012
+ };
3013
+ export type PostV1PaymentMethodsSetup400One = {
3014
+ error: PostV1PaymentMethodsSetup400OneError;
3015
+ };
3016
+ export type PostV1PaymentMethodsSetup400TwoError = {
3017
+ type: string;
3018
+ message: string;
3019
+ code?: string;
3020
+ };
3021
+ export type PostV1PaymentMethodsSetup400Two = {
3022
+ error: PostV1PaymentMethodsSetup400TwoError;
3023
+ };
3024
+ export type PostV1PaymentMethodsSetup400ThreeError = {
3025
+ type: string;
3026
+ message: string;
3027
+ code?: string;
3028
+ };
3029
+ export type PostV1PaymentMethodsSetup400Three = {
3030
+ error: PostV1PaymentMethodsSetup400ThreeError;
3031
+ };
2999
3032
  export type PostV1PaymentMethodsSetup404OneError = {
3000
3033
  type: string;
3001
3034
  message: string;
@@ -4261,6 +4294,666 @@ export type PostV1PaymentIntentsByIdRefund404ThreeError = {
4261
4294
  export type PostV1PaymentIntentsByIdRefund404Three = {
4262
4295
  error: PostV1PaymentIntentsByIdRefund404ThreeError;
4263
4296
  };
4297
+ export type PostV1ProductsCopyToLiveBodyOne = {
4298
+ /** Plan only: report what a run would do and write nothing, not even a run record (the returned id is null). Allowed with a test or a live key. */
4299
+ dry_run?: boolean;
4300
+ /** Also overwrite live copies that differ from test (and reactivate archived ones). Default false: after go-live the merchant edits live directly, so a re-run only adds what is missing. */
4301
+ update_existing?: boolean;
4302
+ };
4303
+ export type PostV1ProductsCopyToLiveBodyTwo = {
4304
+ /** Plan only: report what a run would do and write nothing, not even a run record (the returned id is null). Allowed with a test or a live key. */
4305
+ dry_run?: boolean;
4306
+ /** Also overwrite live copies that differ from test (and reactivate archived ones). Default false: after go-live the merchant edits live directly, so a re-run only adds what is missing. */
4307
+ update_existing?: boolean;
4308
+ };
4309
+ export type PostV1ProductsCopyToLiveBodyThree = {
4310
+ /** Plan only: report what a run would do and write nothing, not even a run record (the returned id is null). Allowed with a test or a live key. */
4311
+ dry_run?: boolean;
4312
+ /** Also overwrite live copies that differ from test (and reactivate archived ones). Default false: after go-live the merchant edits live directly, so a re-run only adds what is missing. */
4313
+ update_existing?: boolean;
4314
+ };
4315
+ export type PostV1ProductsCopyToLive200OneError = {
4316
+ code: string;
4317
+ message: string;
4318
+ } | null;
4319
+ export type PostV1ProductsCopyToLive200OneResultCountsProducts = {
4320
+ create: string | number;
4321
+ update: string | number;
4322
+ unchanged: string | number;
4323
+ differs: string | number;
4324
+ };
4325
+ export type PostV1ProductsCopyToLive200OneResultCountsVariants = {
4326
+ create: string | number;
4327
+ update: string | number;
4328
+ unchanged: string | number;
4329
+ };
4330
+ export type PostV1ProductsCopyToLive200OneResultCountsPaymentLinks = {
4331
+ create: string | number;
4332
+ update: string | number;
4333
+ unchanged: string | number;
4334
+ differs: string | number;
4335
+ };
4336
+ export type PostV1ProductsCopyToLive200OneResultCountsStock = {
4337
+ copied: string | number;
4338
+ };
4339
+ export type PostV1ProductsCopyToLive200OneResultCounts = {
4340
+ products: PostV1ProductsCopyToLive200OneResultCountsProducts;
4341
+ variants: PostV1ProductsCopyToLive200OneResultCountsVariants;
4342
+ payment_links: PostV1ProductsCopyToLive200OneResultCountsPaymentLinks;
4343
+ stock: PostV1ProductsCopyToLive200OneResultCountsStock;
4344
+ };
4345
+ export type PostV1ProductsCopyToLive200OneResultProductsItem = {
4346
+ test_id: string;
4347
+ live_id: string | null;
4348
+ name: string;
4349
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4350
+ changed: string[];
4351
+ missing_image: boolean;
4352
+ kp_qty: string | number | null;
4353
+ variants: string | number;
4354
+ warnings: string[];
4355
+ };
4356
+ export type PostV1ProductsCopyToLive200OneResultPaymentLinksItem = {
4357
+ test_id: string;
4358
+ live_id: string | null;
4359
+ name: string;
4360
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4361
+ changed: string[];
4362
+ };
4363
+ export type PostV1ProductsCopyToLive200OneResult = {
4364
+ /** After the run, every active test product and active test payment link has a live counterpart. For a dry run: already true before copying. */
4365
+ in_sync: boolean;
4366
+ counts: PostV1ProductsCopyToLive200OneResultCounts;
4367
+ products: PostV1ProductsCopyToLive200OneResultProductsItem[];
4368
+ payment_links: PostV1ProductsCopyToLive200OneResultPaymentLinksItem[];
4369
+ } | null;
4370
+ export type PostV1ProductsCopyToLive200One = {
4371
+ id: string | null;
4372
+ object: 'product_copy_run';
4373
+ status: 'succeeded' | 'failed';
4374
+ dry_run: boolean;
4375
+ update_existing: boolean;
4376
+ created_at: string | number;
4377
+ finished_at: string | number | null;
4378
+ error: PostV1ProductsCopyToLive200OneError;
4379
+ result: PostV1ProductsCopyToLive200OneResult;
4380
+ };
4381
+ export type PostV1ProductsCopyToLive200TwoError = {
4382
+ code: string;
4383
+ message: string;
4384
+ } | null;
4385
+ export type PostV1ProductsCopyToLive200TwoResultCountsProducts = {
4386
+ create: string | number;
4387
+ update: string | number;
4388
+ unchanged: string | number;
4389
+ differs: string | number;
4390
+ };
4391
+ export type PostV1ProductsCopyToLive200TwoResultCountsVariants = {
4392
+ create: string | number;
4393
+ update: string | number;
4394
+ unchanged: string | number;
4395
+ };
4396
+ export type PostV1ProductsCopyToLive200TwoResultCountsPaymentLinks = {
4397
+ create: string | number;
4398
+ update: string | number;
4399
+ unchanged: string | number;
4400
+ differs: string | number;
4401
+ };
4402
+ export type PostV1ProductsCopyToLive200TwoResultCountsStock = {
4403
+ copied: string | number;
4404
+ };
4405
+ export type PostV1ProductsCopyToLive200TwoResultCounts = {
4406
+ products: PostV1ProductsCopyToLive200TwoResultCountsProducts;
4407
+ variants: PostV1ProductsCopyToLive200TwoResultCountsVariants;
4408
+ payment_links: PostV1ProductsCopyToLive200TwoResultCountsPaymentLinks;
4409
+ stock: PostV1ProductsCopyToLive200TwoResultCountsStock;
4410
+ };
4411
+ export type PostV1ProductsCopyToLive200TwoResultProductsItem = {
4412
+ test_id: string;
4413
+ live_id: string | null;
4414
+ name: string;
4415
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4416
+ changed: string[];
4417
+ missing_image: boolean;
4418
+ kp_qty: string | number | null;
4419
+ variants: string | number;
4420
+ warnings: string[];
4421
+ };
4422
+ export type PostV1ProductsCopyToLive200TwoResultPaymentLinksItem = {
4423
+ test_id: string;
4424
+ live_id: string | null;
4425
+ name: string;
4426
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4427
+ changed: string[];
4428
+ };
4429
+ export type PostV1ProductsCopyToLive200TwoResult = {
4430
+ /** After the run, every active test product and active test payment link has a live counterpart. For a dry run: already true before copying. */
4431
+ in_sync: boolean;
4432
+ counts: PostV1ProductsCopyToLive200TwoResultCounts;
4433
+ products: PostV1ProductsCopyToLive200TwoResultProductsItem[];
4434
+ payment_links: PostV1ProductsCopyToLive200TwoResultPaymentLinksItem[];
4435
+ } | null;
4436
+ export type PostV1ProductsCopyToLive200Two = {
4437
+ id: string | null;
4438
+ object: 'product_copy_run';
4439
+ status: 'succeeded' | 'failed';
4440
+ dry_run: boolean;
4441
+ update_existing: boolean;
4442
+ created_at: string | number;
4443
+ finished_at: string | number | null;
4444
+ error: PostV1ProductsCopyToLive200TwoError;
4445
+ result: PostV1ProductsCopyToLive200TwoResult;
4446
+ };
4447
+ export type PostV1ProductsCopyToLive200ThreeError = {
4448
+ code: string;
4449
+ message: string;
4450
+ } | null;
4451
+ export type PostV1ProductsCopyToLive200ThreeResultCountsProducts = {
4452
+ create: string | number;
4453
+ update: string | number;
4454
+ unchanged: string | number;
4455
+ differs: string | number;
4456
+ };
4457
+ export type PostV1ProductsCopyToLive200ThreeResultCountsVariants = {
4458
+ create: string | number;
4459
+ update: string | number;
4460
+ unchanged: string | number;
4461
+ };
4462
+ export type PostV1ProductsCopyToLive200ThreeResultCountsPaymentLinks = {
4463
+ create: string | number;
4464
+ update: string | number;
4465
+ unchanged: string | number;
4466
+ differs: string | number;
4467
+ };
4468
+ export type PostV1ProductsCopyToLive200ThreeResultCountsStock = {
4469
+ copied: string | number;
4470
+ };
4471
+ export type PostV1ProductsCopyToLive200ThreeResultCounts = {
4472
+ products: PostV1ProductsCopyToLive200ThreeResultCountsProducts;
4473
+ variants: PostV1ProductsCopyToLive200ThreeResultCountsVariants;
4474
+ payment_links: PostV1ProductsCopyToLive200ThreeResultCountsPaymentLinks;
4475
+ stock: PostV1ProductsCopyToLive200ThreeResultCountsStock;
4476
+ };
4477
+ export type PostV1ProductsCopyToLive200ThreeResultProductsItem = {
4478
+ test_id: string;
4479
+ live_id: string | null;
4480
+ name: string;
4481
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4482
+ changed: string[];
4483
+ missing_image: boolean;
4484
+ kp_qty: string | number | null;
4485
+ variants: string | number;
4486
+ warnings: string[];
4487
+ };
4488
+ export type PostV1ProductsCopyToLive200ThreeResultPaymentLinksItem = {
4489
+ test_id: string;
4490
+ live_id: string | null;
4491
+ name: string;
4492
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4493
+ changed: string[];
4494
+ };
4495
+ export type PostV1ProductsCopyToLive200ThreeResult = {
4496
+ /** After the run, every active test product and active test payment link has a live counterpart. For a dry run: already true before copying. */
4497
+ in_sync: boolean;
4498
+ counts: PostV1ProductsCopyToLive200ThreeResultCounts;
4499
+ products: PostV1ProductsCopyToLive200ThreeResultProductsItem[];
4500
+ payment_links: PostV1ProductsCopyToLive200ThreeResultPaymentLinksItem[];
4501
+ } | null;
4502
+ export type PostV1ProductsCopyToLive200Three = {
4503
+ id: string | null;
4504
+ object: 'product_copy_run';
4505
+ status: 'succeeded' | 'failed';
4506
+ dry_run: boolean;
4507
+ update_existing: boolean;
4508
+ created_at: string | number;
4509
+ finished_at: string | number | null;
4510
+ error: PostV1ProductsCopyToLive200ThreeError;
4511
+ result: PostV1ProductsCopyToLive200ThreeResult;
4512
+ };
4513
+ export type PostV1ProductsCopyToLive403OneError = {
4514
+ type: string;
4515
+ message: string;
4516
+ code?: string;
4517
+ };
4518
+ export type PostV1ProductsCopyToLive403One = {
4519
+ error: PostV1ProductsCopyToLive403OneError;
4520
+ };
4521
+ export type PostV1ProductsCopyToLive403TwoError = {
4522
+ type: string;
4523
+ message: string;
4524
+ code?: string;
4525
+ };
4526
+ export type PostV1ProductsCopyToLive403Two = {
4527
+ error: PostV1ProductsCopyToLive403TwoError;
4528
+ };
4529
+ export type PostV1ProductsCopyToLive403ThreeError = {
4530
+ type: string;
4531
+ message: string;
4532
+ code?: string;
4533
+ };
4534
+ export type PostV1ProductsCopyToLive403Three = {
4535
+ error: PostV1ProductsCopyToLive403ThreeError;
4536
+ };
4537
+ export type PostV1ProductsCopyToLive500OneError = {
4538
+ code: string;
4539
+ message: string;
4540
+ } | null;
4541
+ export type PostV1ProductsCopyToLive500OneResultCountsProducts = {
4542
+ create: string | number;
4543
+ update: string | number;
4544
+ unchanged: string | number;
4545
+ differs: string | number;
4546
+ };
4547
+ export type PostV1ProductsCopyToLive500OneResultCountsVariants = {
4548
+ create: string | number;
4549
+ update: string | number;
4550
+ unchanged: string | number;
4551
+ };
4552
+ export type PostV1ProductsCopyToLive500OneResultCountsPaymentLinks = {
4553
+ create: string | number;
4554
+ update: string | number;
4555
+ unchanged: string | number;
4556
+ differs: string | number;
4557
+ };
4558
+ export type PostV1ProductsCopyToLive500OneResultCountsStock = {
4559
+ copied: string | number;
4560
+ };
4561
+ export type PostV1ProductsCopyToLive500OneResultCounts = {
4562
+ products: PostV1ProductsCopyToLive500OneResultCountsProducts;
4563
+ variants: PostV1ProductsCopyToLive500OneResultCountsVariants;
4564
+ payment_links: PostV1ProductsCopyToLive500OneResultCountsPaymentLinks;
4565
+ stock: PostV1ProductsCopyToLive500OneResultCountsStock;
4566
+ };
4567
+ export type PostV1ProductsCopyToLive500OneResultProductsItem = {
4568
+ test_id: string;
4569
+ live_id: string | null;
4570
+ name: string;
4571
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4572
+ changed: string[];
4573
+ missing_image: boolean;
4574
+ kp_qty: string | number | null;
4575
+ variants: string | number;
4576
+ warnings: string[];
4577
+ };
4578
+ export type PostV1ProductsCopyToLive500OneResultPaymentLinksItem = {
4579
+ test_id: string;
4580
+ live_id: string | null;
4581
+ name: string;
4582
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4583
+ changed: string[];
4584
+ };
4585
+ export type PostV1ProductsCopyToLive500OneResult = {
4586
+ /** After the run, every active test product and active test payment link has a live counterpart. For a dry run: already true before copying. */
4587
+ in_sync: boolean;
4588
+ counts: PostV1ProductsCopyToLive500OneResultCounts;
4589
+ products: PostV1ProductsCopyToLive500OneResultProductsItem[];
4590
+ payment_links: PostV1ProductsCopyToLive500OneResultPaymentLinksItem[];
4591
+ } | null;
4592
+ export type PostV1ProductsCopyToLive500One = {
4593
+ id: string | null;
4594
+ object: 'product_copy_run';
4595
+ status: 'succeeded' | 'failed';
4596
+ dry_run: boolean;
4597
+ update_existing: boolean;
4598
+ created_at: string | number;
4599
+ finished_at: string | number | null;
4600
+ error: PostV1ProductsCopyToLive500OneError;
4601
+ result: PostV1ProductsCopyToLive500OneResult;
4602
+ };
4603
+ export type PostV1ProductsCopyToLive500TwoError = {
4604
+ code: string;
4605
+ message: string;
4606
+ } | null;
4607
+ export type PostV1ProductsCopyToLive500TwoResultCountsProducts = {
4608
+ create: string | number;
4609
+ update: string | number;
4610
+ unchanged: string | number;
4611
+ differs: string | number;
4612
+ };
4613
+ export type PostV1ProductsCopyToLive500TwoResultCountsVariants = {
4614
+ create: string | number;
4615
+ update: string | number;
4616
+ unchanged: string | number;
4617
+ };
4618
+ export type PostV1ProductsCopyToLive500TwoResultCountsPaymentLinks = {
4619
+ create: string | number;
4620
+ update: string | number;
4621
+ unchanged: string | number;
4622
+ differs: string | number;
4623
+ };
4624
+ export type PostV1ProductsCopyToLive500TwoResultCountsStock = {
4625
+ copied: string | number;
4626
+ };
4627
+ export type PostV1ProductsCopyToLive500TwoResultCounts = {
4628
+ products: PostV1ProductsCopyToLive500TwoResultCountsProducts;
4629
+ variants: PostV1ProductsCopyToLive500TwoResultCountsVariants;
4630
+ payment_links: PostV1ProductsCopyToLive500TwoResultCountsPaymentLinks;
4631
+ stock: PostV1ProductsCopyToLive500TwoResultCountsStock;
4632
+ };
4633
+ export type PostV1ProductsCopyToLive500TwoResultProductsItem = {
4634
+ test_id: string;
4635
+ live_id: string | null;
4636
+ name: string;
4637
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4638
+ changed: string[];
4639
+ missing_image: boolean;
4640
+ kp_qty: string | number | null;
4641
+ variants: string | number;
4642
+ warnings: string[];
4643
+ };
4644
+ export type PostV1ProductsCopyToLive500TwoResultPaymentLinksItem = {
4645
+ test_id: string;
4646
+ live_id: string | null;
4647
+ name: string;
4648
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4649
+ changed: string[];
4650
+ };
4651
+ export type PostV1ProductsCopyToLive500TwoResult = {
4652
+ /** After the run, every active test product and active test payment link has a live counterpart. For a dry run: already true before copying. */
4653
+ in_sync: boolean;
4654
+ counts: PostV1ProductsCopyToLive500TwoResultCounts;
4655
+ products: PostV1ProductsCopyToLive500TwoResultProductsItem[];
4656
+ payment_links: PostV1ProductsCopyToLive500TwoResultPaymentLinksItem[];
4657
+ } | null;
4658
+ export type PostV1ProductsCopyToLive500Two = {
4659
+ id: string | null;
4660
+ object: 'product_copy_run';
4661
+ status: 'succeeded' | 'failed';
4662
+ dry_run: boolean;
4663
+ update_existing: boolean;
4664
+ created_at: string | number;
4665
+ finished_at: string | number | null;
4666
+ error: PostV1ProductsCopyToLive500TwoError;
4667
+ result: PostV1ProductsCopyToLive500TwoResult;
4668
+ };
4669
+ export type PostV1ProductsCopyToLive500ThreeError = {
4670
+ code: string;
4671
+ message: string;
4672
+ } | null;
4673
+ export type PostV1ProductsCopyToLive500ThreeResultCountsProducts = {
4674
+ create: string | number;
4675
+ update: string | number;
4676
+ unchanged: string | number;
4677
+ differs: string | number;
4678
+ };
4679
+ export type PostV1ProductsCopyToLive500ThreeResultCountsVariants = {
4680
+ create: string | number;
4681
+ update: string | number;
4682
+ unchanged: string | number;
4683
+ };
4684
+ export type PostV1ProductsCopyToLive500ThreeResultCountsPaymentLinks = {
4685
+ create: string | number;
4686
+ update: string | number;
4687
+ unchanged: string | number;
4688
+ differs: string | number;
4689
+ };
4690
+ export type PostV1ProductsCopyToLive500ThreeResultCountsStock = {
4691
+ copied: string | number;
4692
+ };
4693
+ export type PostV1ProductsCopyToLive500ThreeResultCounts = {
4694
+ products: PostV1ProductsCopyToLive500ThreeResultCountsProducts;
4695
+ variants: PostV1ProductsCopyToLive500ThreeResultCountsVariants;
4696
+ payment_links: PostV1ProductsCopyToLive500ThreeResultCountsPaymentLinks;
4697
+ stock: PostV1ProductsCopyToLive500ThreeResultCountsStock;
4698
+ };
4699
+ export type PostV1ProductsCopyToLive500ThreeResultProductsItem = {
4700
+ test_id: string;
4701
+ live_id: string | null;
4702
+ name: string;
4703
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4704
+ changed: string[];
4705
+ missing_image: boolean;
4706
+ kp_qty: string | number | null;
4707
+ variants: string | number;
4708
+ warnings: string[];
4709
+ };
4710
+ export type PostV1ProductsCopyToLive500ThreeResultPaymentLinksItem = {
4711
+ test_id: string;
4712
+ live_id: string | null;
4713
+ name: string;
4714
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4715
+ changed: string[];
4716
+ };
4717
+ export type PostV1ProductsCopyToLive500ThreeResult = {
4718
+ /** After the run, every active test product and active test payment link has a live counterpart. For a dry run: already true before copying. */
4719
+ in_sync: boolean;
4720
+ counts: PostV1ProductsCopyToLive500ThreeResultCounts;
4721
+ products: PostV1ProductsCopyToLive500ThreeResultProductsItem[];
4722
+ payment_links: PostV1ProductsCopyToLive500ThreeResultPaymentLinksItem[];
4723
+ } | null;
4724
+ export type PostV1ProductsCopyToLive500Three = {
4725
+ id: string | null;
4726
+ object: 'product_copy_run';
4727
+ status: 'succeeded' | 'failed';
4728
+ dry_run: boolean;
4729
+ update_existing: boolean;
4730
+ created_at: string | number;
4731
+ finished_at: string | number | null;
4732
+ error: PostV1ProductsCopyToLive500ThreeError;
4733
+ result: PostV1ProductsCopyToLive500ThreeResult;
4734
+ };
4735
+ export type GetV1ProductsCopyToLiveById200OneError = {
4736
+ code: string;
4737
+ message: string;
4738
+ } | null;
4739
+ export type GetV1ProductsCopyToLiveById200OneResultCountsProducts = {
4740
+ create: string | number;
4741
+ update: string | number;
4742
+ unchanged: string | number;
4743
+ differs: string | number;
4744
+ };
4745
+ export type GetV1ProductsCopyToLiveById200OneResultCountsVariants = {
4746
+ create: string | number;
4747
+ update: string | number;
4748
+ unchanged: string | number;
4749
+ };
4750
+ export type GetV1ProductsCopyToLiveById200OneResultCountsPaymentLinks = {
4751
+ create: string | number;
4752
+ update: string | number;
4753
+ unchanged: string | number;
4754
+ differs: string | number;
4755
+ };
4756
+ export type GetV1ProductsCopyToLiveById200OneResultCountsStock = {
4757
+ copied: string | number;
4758
+ };
4759
+ export type GetV1ProductsCopyToLiveById200OneResultCounts = {
4760
+ products: GetV1ProductsCopyToLiveById200OneResultCountsProducts;
4761
+ variants: GetV1ProductsCopyToLiveById200OneResultCountsVariants;
4762
+ payment_links: GetV1ProductsCopyToLiveById200OneResultCountsPaymentLinks;
4763
+ stock: GetV1ProductsCopyToLiveById200OneResultCountsStock;
4764
+ };
4765
+ export type GetV1ProductsCopyToLiveById200OneResultProductsItem = {
4766
+ test_id: string;
4767
+ live_id: string | null;
4768
+ name: string;
4769
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4770
+ changed: string[];
4771
+ missing_image: boolean;
4772
+ kp_qty: string | number | null;
4773
+ variants: string | number;
4774
+ warnings: string[];
4775
+ };
4776
+ export type GetV1ProductsCopyToLiveById200OneResultPaymentLinksItem = {
4777
+ test_id: string;
4778
+ live_id: string | null;
4779
+ name: string;
4780
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4781
+ changed: string[];
4782
+ };
4783
+ export type GetV1ProductsCopyToLiveById200OneResult = {
4784
+ /** After the run, every active test product and active test payment link has a live counterpart. For a dry run: already true before copying. */
4785
+ in_sync: boolean;
4786
+ counts: GetV1ProductsCopyToLiveById200OneResultCounts;
4787
+ products: GetV1ProductsCopyToLiveById200OneResultProductsItem[];
4788
+ payment_links: GetV1ProductsCopyToLiveById200OneResultPaymentLinksItem[];
4789
+ } | null;
4790
+ export type GetV1ProductsCopyToLiveById200One = {
4791
+ id: string | null;
4792
+ object: 'product_copy_run';
4793
+ status: 'succeeded' | 'failed';
4794
+ dry_run: boolean;
4795
+ update_existing: boolean;
4796
+ created_at: string | number;
4797
+ finished_at: string | number | null;
4798
+ error: GetV1ProductsCopyToLiveById200OneError;
4799
+ result: GetV1ProductsCopyToLiveById200OneResult;
4800
+ };
4801
+ export type GetV1ProductsCopyToLiveById200TwoError = {
4802
+ code: string;
4803
+ message: string;
4804
+ } | null;
4805
+ export type GetV1ProductsCopyToLiveById200TwoResultCountsProducts = {
4806
+ create: string | number;
4807
+ update: string | number;
4808
+ unchanged: string | number;
4809
+ differs: string | number;
4810
+ };
4811
+ export type GetV1ProductsCopyToLiveById200TwoResultCountsVariants = {
4812
+ create: string | number;
4813
+ update: string | number;
4814
+ unchanged: string | number;
4815
+ };
4816
+ export type GetV1ProductsCopyToLiveById200TwoResultCountsPaymentLinks = {
4817
+ create: string | number;
4818
+ update: string | number;
4819
+ unchanged: string | number;
4820
+ differs: string | number;
4821
+ };
4822
+ export type GetV1ProductsCopyToLiveById200TwoResultCountsStock = {
4823
+ copied: string | number;
4824
+ };
4825
+ export type GetV1ProductsCopyToLiveById200TwoResultCounts = {
4826
+ products: GetV1ProductsCopyToLiveById200TwoResultCountsProducts;
4827
+ variants: GetV1ProductsCopyToLiveById200TwoResultCountsVariants;
4828
+ payment_links: GetV1ProductsCopyToLiveById200TwoResultCountsPaymentLinks;
4829
+ stock: GetV1ProductsCopyToLiveById200TwoResultCountsStock;
4830
+ };
4831
+ export type GetV1ProductsCopyToLiveById200TwoResultProductsItem = {
4832
+ test_id: string;
4833
+ live_id: string | null;
4834
+ name: string;
4835
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4836
+ changed: string[];
4837
+ missing_image: boolean;
4838
+ kp_qty: string | number | null;
4839
+ variants: string | number;
4840
+ warnings: string[];
4841
+ };
4842
+ export type GetV1ProductsCopyToLiveById200TwoResultPaymentLinksItem = {
4843
+ test_id: string;
4844
+ live_id: string | null;
4845
+ name: string;
4846
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4847
+ changed: string[];
4848
+ };
4849
+ export type GetV1ProductsCopyToLiveById200TwoResult = {
4850
+ /** After the run, every active test product and active test payment link has a live counterpart. For a dry run: already true before copying. */
4851
+ in_sync: boolean;
4852
+ counts: GetV1ProductsCopyToLiveById200TwoResultCounts;
4853
+ products: GetV1ProductsCopyToLiveById200TwoResultProductsItem[];
4854
+ payment_links: GetV1ProductsCopyToLiveById200TwoResultPaymentLinksItem[];
4855
+ } | null;
4856
+ export type GetV1ProductsCopyToLiveById200Two = {
4857
+ id: string | null;
4858
+ object: 'product_copy_run';
4859
+ status: 'succeeded' | 'failed';
4860
+ dry_run: boolean;
4861
+ update_existing: boolean;
4862
+ created_at: string | number;
4863
+ finished_at: string | number | null;
4864
+ error: GetV1ProductsCopyToLiveById200TwoError;
4865
+ result: GetV1ProductsCopyToLiveById200TwoResult;
4866
+ };
4867
+ export type GetV1ProductsCopyToLiveById200ThreeError = {
4868
+ code: string;
4869
+ message: string;
4870
+ } | null;
4871
+ export type GetV1ProductsCopyToLiveById200ThreeResultCountsProducts = {
4872
+ create: string | number;
4873
+ update: string | number;
4874
+ unchanged: string | number;
4875
+ differs: string | number;
4876
+ };
4877
+ export type GetV1ProductsCopyToLiveById200ThreeResultCountsVariants = {
4878
+ create: string | number;
4879
+ update: string | number;
4880
+ unchanged: string | number;
4881
+ };
4882
+ export type GetV1ProductsCopyToLiveById200ThreeResultCountsPaymentLinks = {
4883
+ create: string | number;
4884
+ update: string | number;
4885
+ unchanged: string | number;
4886
+ differs: string | number;
4887
+ };
4888
+ export type GetV1ProductsCopyToLiveById200ThreeResultCountsStock = {
4889
+ copied: string | number;
4890
+ };
4891
+ export type GetV1ProductsCopyToLiveById200ThreeResultCounts = {
4892
+ products: GetV1ProductsCopyToLiveById200ThreeResultCountsProducts;
4893
+ variants: GetV1ProductsCopyToLiveById200ThreeResultCountsVariants;
4894
+ payment_links: GetV1ProductsCopyToLiveById200ThreeResultCountsPaymentLinks;
4895
+ stock: GetV1ProductsCopyToLiveById200ThreeResultCountsStock;
4896
+ };
4897
+ export type GetV1ProductsCopyToLiveById200ThreeResultProductsItem = {
4898
+ test_id: string;
4899
+ live_id: string | null;
4900
+ name: string;
4901
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4902
+ changed: string[];
4903
+ missing_image: boolean;
4904
+ kp_qty: string | number | null;
4905
+ variants: string | number;
4906
+ warnings: string[];
4907
+ };
4908
+ export type GetV1ProductsCopyToLiveById200ThreeResultPaymentLinksItem = {
4909
+ test_id: string;
4910
+ live_id: string | null;
4911
+ name: string;
4912
+ action: 'create' | 'update' | 'unchanged' | 'differs';
4913
+ changed: string[];
4914
+ };
4915
+ export type GetV1ProductsCopyToLiveById200ThreeResult = {
4916
+ /** After the run, every active test product and active test payment link has a live counterpart. For a dry run: already true before copying. */
4917
+ in_sync: boolean;
4918
+ counts: GetV1ProductsCopyToLiveById200ThreeResultCounts;
4919
+ products: GetV1ProductsCopyToLiveById200ThreeResultProductsItem[];
4920
+ payment_links: GetV1ProductsCopyToLiveById200ThreeResultPaymentLinksItem[];
4921
+ } | null;
4922
+ export type GetV1ProductsCopyToLiveById200Three = {
4923
+ id: string | null;
4924
+ object: 'product_copy_run';
4925
+ status: 'succeeded' | 'failed';
4926
+ dry_run: boolean;
4927
+ update_existing: boolean;
4928
+ created_at: string | number;
4929
+ finished_at: string | number | null;
4930
+ error: GetV1ProductsCopyToLiveById200ThreeError;
4931
+ result: GetV1ProductsCopyToLiveById200ThreeResult;
4932
+ };
4933
+ export type GetV1ProductsCopyToLiveById404OneError = {
4934
+ type: string;
4935
+ message: string;
4936
+ code?: string;
4937
+ };
4938
+ export type GetV1ProductsCopyToLiveById404One = {
4939
+ error: GetV1ProductsCopyToLiveById404OneError;
4940
+ };
4941
+ export type GetV1ProductsCopyToLiveById404TwoError = {
4942
+ type: string;
4943
+ message: string;
4944
+ code?: string;
4945
+ };
4946
+ export type GetV1ProductsCopyToLiveById404Two = {
4947
+ error: GetV1ProductsCopyToLiveById404TwoError;
4948
+ };
4949
+ export type GetV1ProductsCopyToLiveById404ThreeError = {
4950
+ type: string;
4951
+ message: string;
4952
+ code?: string;
4953
+ };
4954
+ export type GetV1ProductsCopyToLiveById404Three = {
4955
+ error: GetV1ProductsCopyToLiveById404ThreeError;
4956
+ };
4264
4957
  export type PostV1ProductsBodyOneMetadata = {
4265
4958
  [key: string]: unknown;
4266
4959
  };
@@ -8610,6 +9303,7 @@ export type PostV1TerminalRequests200One = {
8610
9303
  status: 'pending' | 'claimed' | 'completed' | 'failed' | 'canceled' | 'expired';
8611
9304
  /** Unix seconds; a pending request the phone has not picked up by then expires */
8612
9305
  expires_at: number;
9306
+ latest_event_id?: string | null;
8613
9307
  };
8614
9308
  export type PostV1TerminalRequests200TwoPaymentLink = {
8615
9309
  id: string;
@@ -8629,6 +9323,7 @@ export type PostV1TerminalRequests200Two = {
8629
9323
  status: 'pending' | 'claimed' | 'completed' | 'failed' | 'canceled' | 'expired';
8630
9324
  /** Unix seconds; a pending request the phone has not picked up by then expires */
8631
9325
  expires_at: number;
9326
+ latest_event_id?: string | null;
8632
9327
  };
8633
9328
  export type PostV1TerminalRequests200ThreePaymentLink = {
8634
9329
  id: string;
@@ -8648,6 +9343,7 @@ export type PostV1TerminalRequests200Three = {
8648
9343
  status: 'pending' | 'claimed' | 'completed' | 'failed' | 'canceled' | 'expired';
8649
9344
  /** Unix seconds; a pending request the phone has not picked up by then expires */
8650
9345
  expires_at: number;
9346
+ latest_event_id?: string | null;
8651
9347
  };
8652
9348
  export type PostV1TerminalRequests400OneError = {
8653
9349
  type: string;
@@ -9028,6 +9724,7 @@ export type GetV1TerminalRequestsById200One = {
9028
9724
  receipt_url: string | null;
9029
9725
  /** `failed` only: nobody knows whether the card was charged (the phone stopped answering mid-sale). An approval may still arrive and be captured. Check the phone before charging again. */
9030
9726
  outcome_uncertain: boolean;
9727
+ latest_event_id?: string | null;
9031
9728
  };
9032
9729
  export type GetV1TerminalRequestsById200TwoPaymentIntentError = {
9033
9730
  code: string;
@@ -9089,6 +9786,7 @@ export type GetV1TerminalRequestsById200Two = {
9089
9786
  receipt_url: string | null;
9090
9787
  /** `failed` only: nobody knows whether the card was charged (the phone stopped answering mid-sale). An approval may still arrive and be captured. Check the phone before charging again. */
9091
9788
  outcome_uncertain: boolean;
9789
+ latest_event_id?: string | null;
9092
9790
  };
9093
9791
  export type GetV1TerminalRequestsById200ThreePaymentIntentError = {
9094
9792
  code: string;
@@ -9150,6 +9848,7 @@ export type GetV1TerminalRequestsById200Three = {
9150
9848
  receipt_url: string | null;
9151
9849
  /** `failed` only: nobody knows whether the card was charged (the phone stopped answering mid-sale). An approval may still arrive and be captured. Check the phone before charging again. */
9152
9850
  outcome_uncertain: boolean;
9851
+ latest_event_id?: string | null;
9153
9852
  };
9154
9853
  export type GetV1TerminalRequestsById404OneError = {
9155
9854
  type: string;
@@ -9277,6 +9976,7 @@ export type PostV1TerminalRequestsByIdComplete200One = {
9277
9976
  receipt_url: string | null;
9278
9977
  /** `failed` only: nobody knows whether the card was charged (the phone stopped answering mid-sale). An approval may still arrive and be captured. Check the phone before charging again. */
9279
9978
  outcome_uncertain: boolean;
9979
+ latest_event_id?: string | null;
9280
9980
  };
9281
9981
  export type PostV1TerminalRequestsByIdComplete200TwoPaymentIntentError = {
9282
9982
  code: string;
@@ -9338,6 +10038,7 @@ export type PostV1TerminalRequestsByIdComplete200Two = {
9338
10038
  receipt_url: string | null;
9339
10039
  /** `failed` only: nobody knows whether the card was charged (the phone stopped answering mid-sale). An approval may still arrive and be captured. Check the phone before charging again. */
9340
10040
  outcome_uncertain: boolean;
10041
+ latest_event_id?: string | null;
9341
10042
  };
9342
10043
  export type PostV1TerminalRequestsByIdComplete200ThreePaymentIntentError = {
9343
10044
  code: string;
@@ -9399,6 +10100,7 @@ export type PostV1TerminalRequestsByIdComplete200Three = {
9399
10100
  receipt_url: string | null;
9400
10101
  /** `failed` only: nobody knows whether the card was charged (the phone stopped answering mid-sale). An approval may still arrive and be captured. Check the phone before charging again. */
9401
10102
  outcome_uncertain: boolean;
10103
+ latest_event_id?: string | null;
9402
10104
  };
9403
10105
  export type PostV1TerminalRequestsByIdComplete400OneError = {
9404
10106
  type: string;
@@ -9556,6 +10258,7 @@ export type PostV1TerminalRequestsByIdCancel200One = {
9556
10258
  receipt_url: string | null;
9557
10259
  /** `failed` only: nobody knows whether the card was charged (the phone stopped answering mid-sale). An approval may still arrive and be captured. Check the phone before charging again. */
9558
10260
  outcome_uncertain: boolean;
10261
+ latest_event_id?: string | null;
9559
10262
  };
9560
10263
  export type PostV1TerminalRequestsByIdCancel200TwoPaymentIntentError = {
9561
10264
  code: string;
@@ -9617,6 +10320,7 @@ export type PostV1TerminalRequestsByIdCancel200Two = {
9617
10320
  receipt_url: string | null;
9618
10321
  /** `failed` only: nobody knows whether the card was charged (the phone stopped answering mid-sale). An approval may still arrive and be captured. Check the phone before charging again. */
9619
10322
  outcome_uncertain: boolean;
10323
+ latest_event_id?: string | null;
9620
10324
  };
9621
10325
  export type PostV1TerminalRequestsByIdCancel200ThreePaymentIntentError = {
9622
10326
  code: string;
@@ -9678,6 +10382,7 @@ export type PostV1TerminalRequestsByIdCancel200Three = {
9678
10382
  receipt_url: string | null;
9679
10383
  /** `failed` only: nobody knows whether the card was charged (the phone stopped answering mid-sale). An approval may still arrive and be captured. Check the phone before charging again. */
9680
10384
  outcome_uncertain: boolean;
10385
+ latest_event_id?: string | null;
9681
10386
  };
9682
10387
  export type PostV1TerminalRequestsByIdCancel400OneError = {
9683
10388
  type: string;
@@ -11954,6 +12659,16 @@ export type GetV1DeliverySetup200OnePrefill = {
11954
12659
  postal_code: string | null;
11955
12660
  city: string | null;
11956
12661
  };
12662
+ /**
12663
+ * The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key.
12664
+ */
12665
+ export type GetV1DeliverySetup200OneLiveBooking = {
12666
+ /** Where the merchant stands on real (live) Dropp bookings, in order: `not_connected` (nothing yet, or an application whose mail failed), `applied` (an application is with Dropp, waiting for Dropp's key), `sandbox_only` (a key is stored, but only in test or on Dropp's test host; the merchant saves their production key in live mode), `awaiting_approval` (a live production key is stored, waiting for Kling to approve live bookings), `approved` (real parcels book). */
12667
+ state: 'not_connected' | 'applied' | 'sandbox_only' | 'awaiting_approval' | 'approved';
12668
+ applied_at: string | number | null;
12669
+ key_at: string | number | null;
12670
+ approved_at: string | number | null;
12671
+ };
11957
12672
  export type GetV1DeliverySetup200One = {
11958
12673
  carrier: 'dropp';
11959
12674
  /** Whether an active Dropp key is stored for this merchant in this environment. */
@@ -11964,6 +12679,8 @@ export type GetV1DeliverySetup200One = {
11964
12679
  application: GetV1DeliverySetup200OneApplication;
11965
12680
  /** What Kling already knows about the merchant, to pre-fill the application form. The contact is the account owner. Null where Kling knows nothing. */
11966
12681
  prefill: GetV1DeliverySetup200OnePrefill;
12682
+ /** The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key. */
12683
+ live_booking: GetV1DeliverySetup200OneLiveBooking;
11967
12684
  };
11968
12685
  export type GetV1DeliverySetup200TwoApplication = {
11969
12686
  /** `pending` while the mail is going out, `sent` once Dropp has it, `mail_failed` if the mail did not go out (submit again), `key_received` once a key has been saved. */
@@ -11986,6 +12703,16 @@ export type GetV1DeliverySetup200TwoPrefill = {
11986
12703
  postal_code: string | null;
11987
12704
  city: string | null;
11988
12705
  };
12706
+ /**
12707
+ * The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key.
12708
+ */
12709
+ export type GetV1DeliverySetup200TwoLiveBooking = {
12710
+ /** Where the merchant stands on real (live) Dropp bookings, in order: `not_connected` (nothing yet, or an application whose mail failed), `applied` (an application is with Dropp, waiting for Dropp's key), `sandbox_only` (a key is stored, but only in test or on Dropp's test host; the merchant saves their production key in live mode), `awaiting_approval` (a live production key is stored, waiting for Kling to approve live bookings), `approved` (real parcels book). */
12711
+ state: 'not_connected' | 'applied' | 'sandbox_only' | 'awaiting_approval' | 'approved';
12712
+ applied_at: string | number | null;
12713
+ key_at: string | number | null;
12714
+ approved_at: string | number | null;
12715
+ };
11989
12716
  export type GetV1DeliverySetup200Two = {
11990
12717
  carrier: 'dropp';
11991
12718
  /** Whether an active Dropp key is stored for this merchant in this environment. */
@@ -11996,6 +12723,8 @@ export type GetV1DeliverySetup200Two = {
11996
12723
  application: GetV1DeliverySetup200TwoApplication;
11997
12724
  /** What Kling already knows about the merchant, to pre-fill the application form. The contact is the account owner. Null where Kling knows nothing. */
11998
12725
  prefill: GetV1DeliverySetup200TwoPrefill;
12726
+ /** The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key. */
12727
+ live_booking: GetV1DeliverySetup200TwoLiveBooking;
11999
12728
  };
12000
12729
  export type GetV1DeliverySetup200ThreeApplication = {
12001
12730
  /** `pending` while the mail is going out, `sent` once Dropp has it, `mail_failed` if the mail did not go out (submit again), `key_received` once a key has been saved. */
@@ -12018,6 +12747,16 @@ export type GetV1DeliverySetup200ThreePrefill = {
12018
12747
  postal_code: string | null;
12019
12748
  city: string | null;
12020
12749
  };
12750
+ /**
12751
+ * The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key.
12752
+ */
12753
+ export type GetV1DeliverySetup200ThreeLiveBooking = {
12754
+ /** Where the merchant stands on real (live) Dropp bookings, in order: `not_connected` (nothing yet, or an application whose mail failed), `applied` (an application is with Dropp, waiting for Dropp's key), `sandbox_only` (a key is stored, but only in test or on Dropp's test host; the merchant saves their production key in live mode), `awaiting_approval` (a live production key is stored, waiting for Kling to approve live bookings), `approved` (real parcels book). */
12755
+ state: 'not_connected' | 'applied' | 'sandbox_only' | 'awaiting_approval' | 'approved';
12756
+ applied_at: string | number | null;
12757
+ key_at: string | number | null;
12758
+ approved_at: string | number | null;
12759
+ };
12021
12760
  export type GetV1DeliverySetup200Three = {
12022
12761
  carrier: 'dropp';
12023
12762
  /** Whether an active Dropp key is stored for this merchant in this environment. */
@@ -12028,6 +12767,8 @@ export type GetV1DeliverySetup200Three = {
12028
12767
  application: GetV1DeliverySetup200ThreeApplication;
12029
12768
  /** What Kling already knows about the merchant, to pre-fill the application form. The contact is the account owner. Null where Kling knows nothing. */
12030
12769
  prefill: GetV1DeliverySetup200ThreePrefill;
12770
+ /** The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key. */
12771
+ live_booking: GetV1DeliverySetup200ThreeLiveBooking;
12031
12772
  };
12032
12773
  export type PostV1DeliverySetupKeyBodyOne = {
12033
12774
  /**
@@ -12077,6 +12818,16 @@ export type PostV1DeliverySetupKey200OnePrefill = {
12077
12818
  postal_code: string | null;
12078
12819
  city: string | null;
12079
12820
  };
12821
+ /**
12822
+ * The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key.
12823
+ */
12824
+ export type PostV1DeliverySetupKey200OneLiveBooking = {
12825
+ /** Where the merchant stands on real (live) Dropp bookings, in order: `not_connected` (nothing yet, or an application whose mail failed), `applied` (an application is with Dropp, waiting for Dropp's key), `sandbox_only` (a key is stored, but only in test or on Dropp's test host; the merchant saves their production key in live mode), `awaiting_approval` (a live production key is stored, waiting for Kling to approve live bookings), `approved` (real parcels book). */
12826
+ state: 'not_connected' | 'applied' | 'sandbox_only' | 'awaiting_approval' | 'approved';
12827
+ applied_at: string | number | null;
12828
+ key_at: string | number | null;
12829
+ approved_at: string | number | null;
12830
+ };
12080
12831
  export type PostV1DeliverySetupKey200One = {
12081
12832
  carrier: 'dropp';
12082
12833
  /** Whether an active Dropp key is stored for this merchant in this environment. */
@@ -12087,6 +12838,8 @@ export type PostV1DeliverySetupKey200One = {
12087
12838
  application: PostV1DeliverySetupKey200OneApplication;
12088
12839
  /** What Kling already knows about the merchant, to pre-fill the application form. The contact is the account owner. Null where Kling knows nothing. */
12089
12840
  prefill: PostV1DeliverySetupKey200OnePrefill;
12841
+ /** The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key. */
12842
+ live_booking: PostV1DeliverySetupKey200OneLiveBooking;
12090
12843
  };
12091
12844
  export type PostV1DeliverySetupKey200TwoApplication = {
12092
12845
  /** `pending` while the mail is going out, `sent` once Dropp has it, `mail_failed` if the mail did not go out (submit again), `key_received` once a key has been saved. */
@@ -12109,6 +12862,16 @@ export type PostV1DeliverySetupKey200TwoPrefill = {
12109
12862
  postal_code: string | null;
12110
12863
  city: string | null;
12111
12864
  };
12865
+ /**
12866
+ * The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key.
12867
+ */
12868
+ export type PostV1DeliverySetupKey200TwoLiveBooking = {
12869
+ /** Where the merchant stands on real (live) Dropp bookings, in order: `not_connected` (nothing yet, or an application whose mail failed), `applied` (an application is with Dropp, waiting for Dropp's key), `sandbox_only` (a key is stored, but only in test or on Dropp's test host; the merchant saves their production key in live mode), `awaiting_approval` (a live production key is stored, waiting for Kling to approve live bookings), `approved` (real parcels book). */
12870
+ state: 'not_connected' | 'applied' | 'sandbox_only' | 'awaiting_approval' | 'approved';
12871
+ applied_at: string | number | null;
12872
+ key_at: string | number | null;
12873
+ approved_at: string | number | null;
12874
+ };
12112
12875
  export type PostV1DeliverySetupKey200Two = {
12113
12876
  carrier: 'dropp';
12114
12877
  /** Whether an active Dropp key is stored for this merchant in this environment. */
@@ -12119,6 +12882,8 @@ export type PostV1DeliverySetupKey200Two = {
12119
12882
  application: PostV1DeliverySetupKey200TwoApplication;
12120
12883
  /** What Kling already knows about the merchant, to pre-fill the application form. The contact is the account owner. Null where Kling knows nothing. */
12121
12884
  prefill: PostV1DeliverySetupKey200TwoPrefill;
12885
+ /** The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key. */
12886
+ live_booking: PostV1DeliverySetupKey200TwoLiveBooking;
12122
12887
  };
12123
12888
  export type PostV1DeliverySetupKey200ThreeApplication = {
12124
12889
  /** `pending` while the mail is going out, `sent` once Dropp has it, `mail_failed` if the mail did not go out (submit again), `key_received` once a key has been saved. */
@@ -12141,6 +12906,16 @@ export type PostV1DeliverySetupKey200ThreePrefill = {
12141
12906
  postal_code: string | null;
12142
12907
  city: string | null;
12143
12908
  };
12909
+ /**
12910
+ * The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key.
12911
+ */
12912
+ export type PostV1DeliverySetupKey200ThreeLiveBooking = {
12913
+ /** Where the merchant stands on real (live) Dropp bookings, in order: `not_connected` (nothing yet, or an application whose mail failed), `applied` (an application is with Dropp, waiting for Dropp's key), `sandbox_only` (a key is stored, but only in test or on Dropp's test host; the merchant saves their production key in live mode), `awaiting_approval` (a live production key is stored, waiting for Kling to approve live bookings), `approved` (real parcels book). */
12914
+ state: 'not_connected' | 'applied' | 'sandbox_only' | 'awaiting_approval' | 'approved';
12915
+ applied_at: string | number | null;
12916
+ key_at: string | number | null;
12917
+ approved_at: string | number | null;
12918
+ };
12144
12919
  export type PostV1DeliverySetupKey200Three = {
12145
12920
  carrier: 'dropp';
12146
12921
  /** Whether an active Dropp key is stored for this merchant in this environment. */
@@ -12151,6 +12926,8 @@ export type PostV1DeliverySetupKey200Three = {
12151
12926
  application: PostV1DeliverySetupKey200ThreeApplication;
12152
12927
  /** What Kling already knows about the merchant, to pre-fill the application form. The contact is the account owner. Null where Kling knows nothing. */
12153
12928
  prefill: PostV1DeliverySetupKey200ThreePrefill;
12929
+ /** The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key. */
12930
+ live_booking: PostV1DeliverySetupKey200ThreeLiveBooking;
12154
12931
  };
12155
12932
  export type PostV1DeliverySetupKey400OneError = {
12156
12933
  type: string;
@@ -12314,6 +13091,16 @@ export type PostV1DeliverySetupApplication200OnePrefill = {
12314
13091
  postal_code: string | null;
12315
13092
  city: string | null;
12316
13093
  };
13094
+ /**
13095
+ * The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key.
13096
+ */
13097
+ export type PostV1DeliverySetupApplication200OneLiveBooking = {
13098
+ /** Where the merchant stands on real (live) Dropp bookings, in order: `not_connected` (nothing yet, or an application whose mail failed), `applied` (an application is with Dropp, waiting for Dropp's key), `sandbox_only` (a key is stored, but only in test or on Dropp's test host; the merchant saves their production key in live mode), `awaiting_approval` (a live production key is stored, waiting for Kling to approve live bookings), `approved` (real parcels book). */
13099
+ state: 'not_connected' | 'applied' | 'sandbox_only' | 'awaiting_approval' | 'approved';
13100
+ applied_at: string | number | null;
13101
+ key_at: string | number | null;
13102
+ approved_at: string | number | null;
13103
+ };
12317
13104
  export type PostV1DeliverySetupApplication200One = {
12318
13105
  carrier: 'dropp';
12319
13106
  /** Whether an active Dropp key is stored for this merchant in this environment. */
@@ -12324,6 +13111,8 @@ export type PostV1DeliverySetupApplication200One = {
12324
13111
  application: PostV1DeliverySetupApplication200OneApplication;
12325
13112
  /** What Kling already knows about the merchant, to pre-fill the application form. The contact is the account owner. Null where Kling knows nothing. */
12326
13113
  prefill: PostV1DeliverySetupApplication200OnePrefill;
13114
+ /** The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key. */
13115
+ live_booking: PostV1DeliverySetupApplication200OneLiveBooking;
12327
13116
  };
12328
13117
  export type PostV1DeliverySetupApplication200TwoApplication = {
12329
13118
  /** `pending` while the mail is going out, `sent` once Dropp has it, `mail_failed` if the mail did not go out (submit again), `key_received` once a key has been saved. */
@@ -12346,6 +13135,16 @@ export type PostV1DeliverySetupApplication200TwoPrefill = {
12346
13135
  postal_code: string | null;
12347
13136
  city: string | null;
12348
13137
  };
13138
+ /**
13139
+ * The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key.
13140
+ */
13141
+ export type PostV1DeliverySetupApplication200TwoLiveBooking = {
13142
+ /** Where the merchant stands on real (live) Dropp bookings, in order: `not_connected` (nothing yet, or an application whose mail failed), `applied` (an application is with Dropp, waiting for Dropp's key), `sandbox_only` (a key is stored, but only in test or on Dropp's test host; the merchant saves their production key in live mode), `awaiting_approval` (a live production key is stored, waiting for Kling to approve live bookings), `approved` (real parcels book). */
13143
+ state: 'not_connected' | 'applied' | 'sandbox_only' | 'awaiting_approval' | 'approved';
13144
+ applied_at: string | number | null;
13145
+ key_at: string | number | null;
13146
+ approved_at: string | number | null;
13147
+ };
12349
13148
  export type PostV1DeliverySetupApplication200Two = {
12350
13149
  carrier: 'dropp';
12351
13150
  /** Whether an active Dropp key is stored for this merchant in this environment. */
@@ -12356,6 +13155,8 @@ export type PostV1DeliverySetupApplication200Two = {
12356
13155
  application: PostV1DeliverySetupApplication200TwoApplication;
12357
13156
  /** What Kling already knows about the merchant, to pre-fill the application form. The contact is the account owner. Null where Kling knows nothing. */
12358
13157
  prefill: PostV1DeliverySetupApplication200TwoPrefill;
13158
+ /** The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key. */
13159
+ live_booking: PostV1DeliverySetupApplication200TwoLiveBooking;
12359
13160
  };
12360
13161
  export type PostV1DeliverySetupApplication200ThreeApplication = {
12361
13162
  /** `pending` while the mail is going out, `sent` once Dropp has it, `mail_failed` if the mail did not go out (submit again), `key_received` once a key has been saved. */
@@ -12378,6 +13179,16 @@ export type PostV1DeliverySetupApplication200ThreePrefill = {
12378
13179
  postal_code: string | null;
12379
13180
  city: string | null;
12380
13181
  };
13182
+ /**
13183
+ * The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key.
13184
+ */
13185
+ export type PostV1DeliverySetupApplication200ThreeLiveBooking = {
13186
+ /** Where the merchant stands on real (live) Dropp bookings, in order: `not_connected` (nothing yet, or an application whose mail failed), `applied` (an application is with Dropp, waiting for Dropp's key), `sandbox_only` (a key is stored, but only in test or on Dropp's test host; the merchant saves their production key in live mode), `awaiting_approval` (a live production key is stored, waiting for Kling to approve live bookings), `approved` (real parcels book). */
13187
+ state: 'not_connected' | 'applied' | 'sandbox_only' | 'awaiting_approval' | 'approved';
13188
+ applied_at: string | number | null;
13189
+ key_at: string | number | null;
13190
+ approved_at: string | number | null;
13191
+ };
12381
13192
  export type PostV1DeliverySetupApplication200Three = {
12382
13193
  carrier: 'dropp';
12383
13194
  /** Whether an active Dropp key is stored for this merchant in this environment. */
@@ -12388,6 +13199,8 @@ export type PostV1DeliverySetupApplication200Three = {
12388
13199
  application: PostV1DeliverySetupApplication200ThreeApplication;
12389
13200
  /** What Kling already knows about the merchant, to pre-fill the application form. The contact is the account owner. Null where Kling knows nothing. */
12390
13201
  prefill: PostV1DeliverySetupApplication200ThreePrefill;
13202
+ /** The live-booking summary across environments: the same answer whether a test or a live key asks, so a site still in test can show what it is waiting for. Never contains the key. */
13203
+ live_booking: PostV1DeliverySetupApplication200ThreeLiveBooking;
12391
13204
  };
12392
13205
  export type PostV1DeliverySetupApplication400OneError = {
12393
13206
  type: string;