@financeable/aggregation 0.7.3 → 0.8.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.
Files changed (90) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +3 -3
  3. package/lib/config.js +3 -3
  4. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts +192 -14
  5. package/models/components/commercialsecuredloancommercialapplicationrelationships.d.ts.map +1 -1
  6. package/models/components/commercialsecuredloancommercialapplicationrelationships.js +186 -19
  7. package/models/components/commercialsecuredloancommercialapplicationrelationships.js.map +1 -1
  8. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts +192 -14
  9. package/models/components/consumersecuredloanconsumerapplicationrelationships.d.ts.map +1 -1
  10. package/models/components/consumersecuredloanconsumerapplicationrelationships.js +191 -20
  11. package/models/components/consumersecuredloanconsumerapplicationrelationships.js.map +1 -1
  12. package/models/components/currencycodeiso4217.d.ts +25 -0
  13. package/models/components/currencycodeiso4217.d.ts.map +1 -0
  14. package/models/components/currencycodeiso4217.js +59 -0
  15. package/models/components/currencycodeiso4217.js.map +1 -0
  16. package/models/components/customerassetattributes.d.ts +37 -0
  17. package/models/components/customerassetattributes.d.ts.map +1 -0
  18. package/models/components/customerassetattributes.js +77 -0
  19. package/models/components/customerassetattributes.js.map +1 -0
  20. package/models/components/customerassettype.d.ts +46 -0
  21. package/models/components/customerassettype.d.ts.map +1 -0
  22. package/models/components/customerassettype.js +66 -0
  23. package/models/components/customerassettype.js.map +1 -0
  24. package/models/components/customerattributes.d.ts +14 -0
  25. package/models/components/customerattributes.d.ts.map +1 -1
  26. package/models/components/customerattributes.js +11 -0
  27. package/models/components/customerattributes.js.map +1 -1
  28. package/models/components/customerliabilityattributes.d.ts +46 -0
  29. package/models/components/customerliabilityattributes.d.ts.map +1 -0
  30. package/models/components/customerliabilityattributes.js +88 -0
  31. package/models/components/customerliabilityattributes.js.map +1 -0
  32. package/models/components/customerliabilityrepaymentfrequency.d.ts +31 -0
  33. package/models/components/customerliabilityrepaymentfrequency.d.ts.map +1 -0
  34. package/models/components/customerliabilityrepaymentfrequency.js +61 -0
  35. package/models/components/customerliabilityrepaymentfrequency.js.map +1 -0
  36. package/models/components/customerliabilitytype.d.ts +40 -0
  37. package/models/components/customerliabilitytype.d.ts.map +1 -0
  38. package/models/components/customerliabilitytype.js +64 -0
  39. package/models/components/customerliabilitytype.js.map +1 -0
  40. package/models/components/index.d.ts +11 -0
  41. package/models/components/index.d.ts.map +1 -1
  42. package/models/components/index.js +11 -0
  43. package/models/components/index.js.map +1 -1
  44. package/models/components/livingarrangements.d.ts +34 -0
  45. package/models/components/livingarrangements.d.ts.map +1 -0
  46. package/models/components/livingarrangements.js +62 -0
  47. package/models/components/livingarrangements.js.map +1 -0
  48. package/models/components/loandetailsattributes.d.ts +252 -30
  49. package/models/components/loandetailsattributes.d.ts.map +1 -1
  50. package/models/components/loandetailsattributes.js +266 -19
  51. package/models/components/loandetailsattributes.js.map +1 -1
  52. package/models/components/maritalstatus.d.ts +28 -0
  53. package/models/components/maritalstatus.d.ts.map +1 -0
  54. package/models/components/maritalstatus.js +60 -0
  55. package/models/components/maritalstatus.js.map +1 -0
  56. package/models/components/monetaryquantity.d.ts +63 -0
  57. package/models/components/monetaryquantity.d.ts.map +1 -0
  58. package/models/components/monetaryquantity.js +93 -0
  59. package/models/components/monetaryquantity.js.map +1 -0
  60. package/models/components/percentagequantity.d.ts +57 -0
  61. package/models/components/percentagequantity.d.ts.map +1 -0
  62. package/models/components/percentagequantity.js +89 -0
  63. package/models/components/percentagequantity.js.map +1 -0
  64. package/models/components/residencystatus.d.ts +37 -0
  65. package/models/components/residencystatus.d.ts.map +1 -0
  66. package/models/components/residencystatus.js +63 -0
  67. package/models/components/residencystatus.js.map +1 -0
  68. package/models/operations/createapplication.d.ts +102 -4
  69. package/models/operations/createapplication.d.ts.map +1 -1
  70. package/models/operations/createapplication.js +107 -1
  71. package/models/operations/createapplication.js.map +1 -1
  72. package/package.json +2 -2
  73. package/src/lib/config.ts +3 -3
  74. package/src/models/components/commercialsecuredloancommercialapplicationrelationships.ts +426 -25
  75. package/src/models/components/consumersecuredloanconsumerapplicationrelationships.ts +480 -26
  76. package/src/models/components/currencycodeiso4217.ts +32 -0
  77. package/src/models/components/customerassetattributes.ts +89 -0
  78. package/src/models/components/customerassettype.ts +39 -0
  79. package/src/models/components/customerattributes.ts +34 -0
  80. package/src/models/components/customerliabilityattributes.ts +114 -0
  81. package/src/models/components/customerliabilityrepaymentfrequency.ts +38 -0
  82. package/src/models/components/customerliabilitytype.ts +37 -0
  83. package/src/models/components/index.ts +11 -0
  84. package/src/models/components/livingarrangements.ts +35 -0
  85. package/src/models/components/loandetailsattributes.ts +537 -48
  86. package/src/models/components/maritalstatus.ts +33 -0
  87. package/src/models/components/monetaryquantity.ts +110 -0
  88. package/src/models/components/percentagequantity.ts +102 -0
  89. package/src/models/components/residencystatus.ts +36 -0
  90. package/src/models/operations/createapplication.ts +191 -3
@@ -19,12 +19,24 @@ import {
19
19
  ConsumerSecuredLoanAssetAttributes$Outbound,
20
20
  ConsumerSecuredLoanAssetAttributes$outboundSchema,
21
21
  } from "./consumersecuredloanassetattributes.js";
22
+ import {
23
+ CustomerAssetAttributes,
24
+ CustomerAssetAttributes$inboundSchema,
25
+ CustomerAssetAttributes$Outbound,
26
+ CustomerAssetAttributes$outboundSchema,
27
+ } from "./customerassetattributes.js";
22
28
  import {
23
29
  CustomerAttributes,
24
30
  CustomerAttributes$inboundSchema,
25
31
  CustomerAttributes$Outbound,
26
32
  CustomerAttributes$outboundSchema,
27
33
  } from "./customerattributes.js";
34
+ import {
35
+ CustomerLiabilityAttributes,
36
+ CustomerLiabilityAttributes$inboundSchema,
37
+ CustomerLiabilityAttributes$Outbound,
38
+ CustomerLiabilityAttributes$outboundSchema,
39
+ } from "./customerliabilityattributes.js";
28
40
  import {
29
41
  LinkObject,
30
42
  LinkObject$inboundSchema,
@@ -76,7 +88,7 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType
76
88
  typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType
77
89
  >;
78
90
 
79
- export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData =
91
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData =
80
92
  {
81
93
  type: ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType;
82
94
  attributes: AddressAttributes;
@@ -85,15 +97,69 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
85
97
  };
86
98
 
87
99
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses = {
100
+ data: Array<
101
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData
102
+ >;
103
+ };
104
+
105
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType =
106
+ {
107
+ CustomerLiabilities: "customer-liabilities",
108
+ } as const;
109
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType =
110
+ ClosedEnum<
111
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType
112
+ >;
113
+
114
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData =
115
+ {
116
+ type:
117
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType;
118
+ attributes: CustomerLiabilityAttributes;
119
+ links?: { [k: string]: LinkObject } | undefined;
120
+ meta?: { [k: string]: any } | undefined;
121
+ };
122
+
123
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities = {
88
124
  data: Array<
89
125
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
90
126
  >;
91
127
  };
92
128
 
129
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType =
130
+ {
131
+ CustomerAssets: "customer-assets",
132
+ } as const;
133
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType =
134
+ ClosedEnum<
135
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType
136
+ >;
137
+
138
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData =
139
+ {
140
+ type:
141
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType;
142
+ attributes: CustomerAssetAttributes;
143
+ links?: { [k: string]: LinkObject } | undefined;
144
+ meta?: { [k: string]: any } | undefined;
145
+ };
146
+
147
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssets = {
148
+ data: Array<
149
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData
150
+ >;
151
+ };
152
+
93
153
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships = {
94
154
  addresses?:
95
155
  | ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses
96
156
  | undefined;
157
+ liabilities?:
158
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities
159
+ | undefined;
160
+ assets?:
161
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsAssets
162
+ | undefined;
97
163
  };
98
164
 
99
165
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersData = {
@@ -374,9 +440,9 @@ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDat
374
440
  }
375
441
 
376
442
  /** @internal */
377
- export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema:
443
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema:
378
444
  z.ZodType<
379
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
445
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData,
380
446
  z.ZodTypeDef,
381
447
  unknown
382
448
  > = z.object({
@@ -388,7 +454,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDat
388
454
  });
389
455
 
390
456
  /** @internal */
391
- export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound =
457
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound =
392
458
  {
393
459
  type: string;
394
460
  attributes: AddressAttributes$Outbound;
@@ -397,11 +463,11 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
397
463
  };
398
464
 
399
465
  /** @internal */
400
- export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema:
466
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema:
401
467
  z.ZodType<
402
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound,
468
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound,
403
469
  z.ZodTypeDef,
404
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
470
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData
405
471
  > = z.object({
406
472
  type:
407
473
  ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataType$outboundSchema,
@@ -414,42 +480,42 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDat
414
480
  * @internal
415
481
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
416
482
  */
417
- export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$ {
418
- /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema` instead. */
483
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$ {
484
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema` instead. */
419
485
  export const inboundSchema =
420
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema;
421
- /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema` instead. */
486
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema;
487
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema` instead. */
422
488
  export const outboundSchema =
423
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema;
424
- /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound` instead. */
489
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema;
490
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound` instead. */
425
491
  export type Outbound =
426
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound;
492
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound;
427
493
  }
428
494
 
429
- export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataToJSON(
430
- consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData:
431
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
495
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesDataToJSON(
496
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData:
497
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData,
432
498
  ): string {
433
499
  return JSON.stringify(
434
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
500
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
435
501
  .parse(
436
- consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
502
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData,
437
503
  ),
438
504
  );
439
505
  }
440
506
 
441
- export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataFromJSON(
507
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesDataFromJSON(
442
508
  jsonString: string,
443
509
  ): SafeParseResult<
444
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
510
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData,
445
511
  SDKValidationError
446
512
  > {
447
513
  return safeParse(
448
514
  jsonString,
449
515
  (x) =>
450
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
516
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema
451
517
  .parse(JSON.parse(x)),
452
- `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData' from JSON`,
518
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData' from JSON`,
453
519
  );
454
520
  }
455
521
 
@@ -462,7 +528,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboun
462
528
  > = z.object({
463
529
  data: z.array(
464
530
  z.lazy(() =>
465
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
531
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$inboundSchema
466
532
  ),
467
533
  ),
468
534
  });
@@ -471,7 +537,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboun
471
537
  export type ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound =
472
538
  {
473
539
  data: Array<
474
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound
540
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$Outbound
475
541
  >;
476
542
  };
477
543
 
@@ -484,7 +550,7 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outbou
484
550
  > = z.object({
485
551
  data: z.array(
486
552
  z.lazy(() =>
487
- ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
553
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAddressesData$outboundSchema
488
554
  ),
489
555
  ),
490
556
  });
@@ -530,6 +596,376 @@ export function consumerSecuredLoanConsumerApplicationRelationshipsAddressesFrom
530
596
  );
531
597
  }
532
598
 
599
+ /** @internal */
600
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema:
601
+ z.ZodNativeEnum<
602
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType
603
+ > = z.nativeEnum(
604
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType,
605
+ );
606
+
607
+ /** @internal */
608
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema:
609
+ z.ZodNativeEnum<
610
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType
611
+ > =
612
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
613
+
614
+ /**
615
+ * @internal
616
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
617
+ */
618
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$ {
619
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema` instead. */
620
+ export const inboundSchema =
621
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema;
622
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema` instead. */
623
+ export const outboundSchema =
624
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema;
625
+ }
626
+
627
+ /** @internal */
628
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema:
629
+ z.ZodType<
630
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
631
+ z.ZodTypeDef,
632
+ unknown
633
+ > = z.object({
634
+ type:
635
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$inboundSchema,
636
+ attributes: CustomerLiabilityAttributes$inboundSchema,
637
+ links: z.record(LinkObject$inboundSchema).optional(),
638
+ meta: z.record(z.any()).optional(),
639
+ });
640
+
641
+ /** @internal */
642
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound =
643
+ {
644
+ type: string;
645
+ attributes: CustomerLiabilityAttributes$Outbound;
646
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
647
+ meta?: { [k: string]: any } | undefined;
648
+ };
649
+
650
+ /** @internal */
651
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema:
652
+ z.ZodType<
653
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound,
654
+ z.ZodTypeDef,
655
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData
656
+ > = z.object({
657
+ type:
658
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsType$outboundSchema,
659
+ attributes: CustomerLiabilityAttributes$outboundSchema,
660
+ links: z.record(LinkObject$outboundSchema).optional(),
661
+ meta: z.record(z.any()).optional(),
662
+ });
663
+
664
+ /**
665
+ * @internal
666
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
667
+ */
668
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$ {
669
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema` instead. */
670
+ export const inboundSchema =
671
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema;
672
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema` instead. */
673
+ export const outboundSchema =
674
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema;
675
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound` instead. */
676
+ export type Outbound =
677
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound;
678
+ }
679
+
680
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataToJSON(
681
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData:
682
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
683
+ ): string {
684
+ return JSON.stringify(
685
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
686
+ .parse(
687
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
688
+ ),
689
+ );
690
+ }
691
+
692
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataDataFromJSON(
693
+ jsonString: string,
694
+ ): SafeParseResult<
695
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData,
696
+ SDKValidationError
697
+ > {
698
+ return safeParse(
699
+ jsonString,
700
+ (x) =>
701
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
702
+ .parse(JSON.parse(x)),
703
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData' from JSON`,
704
+ );
705
+ }
706
+
707
+ /** @internal */
708
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$inboundSchema:
709
+ z.ZodType<
710
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities,
711
+ z.ZodTypeDef,
712
+ unknown
713
+ > = z.object({
714
+ data: z.array(
715
+ z.lazy(() =>
716
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$inboundSchema
717
+ ),
718
+ ),
719
+ });
720
+
721
+ /** @internal */
722
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound =
723
+ {
724
+ data: Array<
725
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$Outbound
726
+ >;
727
+ };
728
+
729
+ /** @internal */
730
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema:
731
+ z.ZodType<
732
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound,
733
+ z.ZodTypeDef,
734
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities
735
+ > = z.object({
736
+ data: z.array(
737
+ z.lazy(() =>
738
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataData$outboundSchema
739
+ ),
740
+ ),
741
+ });
742
+
743
+ /**
744
+ * @internal
745
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
746
+ */
747
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$ {
748
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$inboundSchema` instead. */
749
+ export const inboundSchema =
750
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$inboundSchema;
751
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema` instead. */
752
+ export const outboundSchema =
753
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema;
754
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound` instead. */
755
+ export type Outbound =
756
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound;
757
+ }
758
+
759
+ export function consumerSecuredLoanConsumerApplicationRelationshipsLiabilitiesToJSON(
760
+ consumerSecuredLoanConsumerApplicationRelationshipsLiabilities:
761
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities,
762
+ ): string {
763
+ return JSON.stringify(
764
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema
765
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsLiabilities),
766
+ );
767
+ }
768
+
769
+ export function consumerSecuredLoanConsumerApplicationRelationshipsLiabilitiesFromJSON(
770
+ jsonString: string,
771
+ ): SafeParseResult<
772
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities,
773
+ SDKValidationError
774
+ > {
775
+ return safeParse(
776
+ jsonString,
777
+ (x) =>
778
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$inboundSchema
779
+ .parse(JSON.parse(x)),
780
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities' from JSON`,
781
+ );
782
+ }
783
+
784
+ /** @internal */
785
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema:
786
+ z.ZodNativeEnum<
787
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType
788
+ > = z.nativeEnum(
789
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType,
790
+ );
791
+
792
+ /** @internal */
793
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema:
794
+ z.ZodNativeEnum<
795
+ typeof ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType
796
+ > =
797
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
798
+
799
+ /**
800
+ * @internal
801
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
802
+ */
803
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$ {
804
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema` instead. */
805
+ export const inboundSchema =
806
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema;
807
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema` instead. */
808
+ export const outboundSchema =
809
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema;
810
+ }
811
+
812
+ /** @internal */
813
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema:
814
+ z.ZodType<
815
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
816
+ z.ZodTypeDef,
817
+ unknown
818
+ > = z.object({
819
+ type:
820
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$inboundSchema,
821
+ attributes: CustomerAssetAttributes$inboundSchema,
822
+ links: z.record(LinkObject$inboundSchema).optional(),
823
+ meta: z.record(z.any()).optional(),
824
+ });
825
+
826
+ /** @internal */
827
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound =
828
+ {
829
+ type: string;
830
+ attributes: CustomerAssetAttributes$Outbound;
831
+ links?: { [k: string]: LinkObject$Outbound } | undefined;
832
+ meta?: { [k: string]: any } | undefined;
833
+ };
834
+
835
+ /** @internal */
836
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema:
837
+ z.ZodType<
838
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound,
839
+ z.ZodTypeDef,
840
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData
841
+ > = z.object({
842
+ type:
843
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsAssetsType$outboundSchema,
844
+ attributes: CustomerAssetAttributes$outboundSchema,
845
+ links: z.record(LinkObject$outboundSchema).optional(),
846
+ meta: z.record(z.any()).optional(),
847
+ });
848
+
849
+ /**
850
+ * @internal
851
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
852
+ */
853
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$ {
854
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema` instead. */
855
+ export const inboundSchema =
856
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema;
857
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema` instead. */
858
+ export const outboundSchema =
859
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema;
860
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound` instead. */
861
+ export type Outbound =
862
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound;
863
+ }
864
+
865
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsDataToJSON(
866
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData:
867
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
868
+ ): string {
869
+ return JSON.stringify(
870
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
871
+ .parse(
872
+ consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
873
+ ),
874
+ );
875
+ }
876
+
877
+ export function consumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsDataFromJSON(
878
+ jsonString: string,
879
+ ): SafeParseResult<
880
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData,
881
+ SDKValidationError
882
+ > {
883
+ return safeParse(
884
+ jsonString,
885
+ (x) =>
886
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
887
+ .parse(JSON.parse(x)),
888
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData' from JSON`,
889
+ );
890
+ }
891
+
892
+ /** @internal */
893
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$inboundSchema:
894
+ z.ZodType<
895
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets,
896
+ z.ZodTypeDef,
897
+ unknown
898
+ > = z.object({
899
+ data: z.array(
900
+ z.lazy(() =>
901
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$inboundSchema
902
+ ),
903
+ ),
904
+ });
905
+
906
+ /** @internal */
907
+ export type ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$Outbound =
908
+ {
909
+ data: Array<
910
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$Outbound
911
+ >;
912
+ };
913
+
914
+ /** @internal */
915
+ export const ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$outboundSchema:
916
+ z.ZodType<
917
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$Outbound,
918
+ z.ZodTypeDef,
919
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets
920
+ > = z.object({
921
+ data: z.array(
922
+ z.lazy(() =>
923
+ ConsumerSecuredLoanConsumerApplicationRelationshipsCustomersDataRelationshipsData$outboundSchema
924
+ ),
925
+ ),
926
+ });
927
+
928
+ /**
929
+ * @internal
930
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
931
+ */
932
+ export namespace ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$ {
933
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$inboundSchema` instead. */
934
+ export const inboundSchema =
935
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$inboundSchema;
936
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$outboundSchema` instead. */
937
+ export const outboundSchema =
938
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$outboundSchema;
939
+ /** @deprecated use `ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$Outbound` instead. */
940
+ export type Outbound =
941
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$Outbound;
942
+ }
943
+
944
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAssetsToJSON(
945
+ consumerSecuredLoanConsumerApplicationRelationshipsAssets:
946
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets,
947
+ ): string {
948
+ return JSON.stringify(
949
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$outboundSchema
950
+ .parse(consumerSecuredLoanConsumerApplicationRelationshipsAssets),
951
+ );
952
+ }
953
+
954
+ export function consumerSecuredLoanConsumerApplicationRelationshipsAssetsFromJSON(
955
+ jsonString: string,
956
+ ): SafeParseResult<
957
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets,
958
+ SDKValidationError
959
+ > {
960
+ return safeParse(
961
+ jsonString,
962
+ (x) =>
963
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$inboundSchema
964
+ .parse(JSON.parse(x)),
965
+ `Failed to parse 'ConsumerSecuredLoanConsumerApplicationRelationshipsAssets' from JSON`,
966
+ );
967
+ }
968
+
533
969
  /** @internal */
534
970
  export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$inboundSchema:
535
971
  z.ZodType<
@@ -540,6 +976,12 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$in
540
976
  addresses: z.lazy(() =>
541
977
  ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$inboundSchema
542
978
  ).optional(),
979
+ liabilities: z.lazy(() =>
980
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$inboundSchema
981
+ ).optional(),
982
+ assets: z.lazy(() =>
983
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$inboundSchema
984
+ ).optional(),
543
985
  });
544
986
 
545
987
  /** @internal */
@@ -548,6 +990,12 @@ export type ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$Out
548
990
  addresses?:
549
991
  | ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$Outbound
550
992
  | undefined;
993
+ liabilities?:
994
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$Outbound
995
+ | undefined;
996
+ assets?:
997
+ | ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$Outbound
998
+ | undefined;
551
999
  };
552
1000
 
553
1001
  /** @internal */
@@ -560,6 +1008,12 @@ export const ConsumerSecuredLoanConsumerApplicationRelationshipsRelationships$ou
560
1008
  addresses: z.lazy(() =>
561
1009
  ConsumerSecuredLoanConsumerApplicationRelationshipsAddresses$outboundSchema
562
1010
  ).optional(),
1011
+ liabilities: z.lazy(() =>
1012
+ ConsumerSecuredLoanConsumerApplicationRelationshipsLiabilities$outboundSchema
1013
+ ).optional(),
1014
+ assets: z.lazy(() =>
1015
+ ConsumerSecuredLoanConsumerApplicationRelationshipsAssets$outboundSchema
1016
+ ).optional(),
563
1017
  });
564
1018
 
565
1019
  /**
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ export const CurrencyCodeIso4217 = {
9
+ Aud: "AUD",
10
+ } as const;
11
+ export type CurrencyCodeIso4217 = ClosedEnum<typeof CurrencyCodeIso4217>;
12
+
13
+ /** @internal */
14
+ export const CurrencyCodeIso4217$inboundSchema: z.ZodNativeEnum<
15
+ typeof CurrencyCodeIso4217
16
+ > = z.nativeEnum(CurrencyCodeIso4217);
17
+
18
+ /** @internal */
19
+ export const CurrencyCodeIso4217$outboundSchema: z.ZodNativeEnum<
20
+ typeof CurrencyCodeIso4217
21
+ > = CurrencyCodeIso4217$inboundSchema;
22
+
23
+ /**
24
+ * @internal
25
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
26
+ */
27
+ export namespace CurrencyCodeIso4217$ {
28
+ /** @deprecated use `CurrencyCodeIso4217$inboundSchema` instead. */
29
+ export const inboundSchema = CurrencyCodeIso4217$inboundSchema;
30
+ /** @deprecated use `CurrencyCodeIso4217$outboundSchema` instead. */
31
+ export const outboundSchema = CurrencyCodeIso4217$outboundSchema;
32
+ }