@moovio/sdk 0.8.0 → 0.8.1

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 (88) hide show
  1. package/bin/mcp-server.js +185 -64
  2. package/bin/mcp-server.js.map +22 -18
  3. package/funcs/receiptsCreate.js +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/components/cardpresentpaymentpaymentmethod.d.ts +66 -0
  10. package/models/components/cardpresentpaymentpaymentmethod.d.ts.map +1 -0
  11. package/models/components/cardpresentpaymentpaymentmethod.js +93 -0
  12. package/models/components/cardpresentpaymentpaymentmethod.js.map +1 -0
  13. package/models/components/entrymode.d.ts +31 -0
  14. package/models/components/entrymode.d.ts.map +1 -0
  15. package/models/components/entrymode.js +63 -0
  16. package/models/components/entrymode.js.map +1 -0
  17. package/models/components/feeplan.d.ts +6 -0
  18. package/models/components/feeplan.d.ts.map +1 -1
  19. package/models/components/feeplan.js +3 -0
  20. package/models/components/feeplan.js.map +1 -1
  21. package/models/components/feeplanagreement.d.ts +6 -0
  22. package/models/components/feeplanagreement.d.ts.map +1 -1
  23. package/models/components/feeplanagreement.js +3 -0
  24. package/models/components/feeplanagreement.js.map +1 -1
  25. package/models/components/governmentid.d.ts +30 -30
  26. package/models/components/governmentid.d.ts.map +1 -1
  27. package/models/components/governmentid.js +38 -35
  28. package/models/components/governmentid.js.map +1 -1
  29. package/models/components/governmentiderror.d.ts +30 -30
  30. package/models/components/governmentiderror.d.ts.map +1 -1
  31. package/models/components/governmentiderror.js +35 -38
  32. package/models/components/governmentiderror.js.map +1 -1
  33. package/models/components/index.d.ts +4 -0
  34. package/models/components/index.d.ts.map +1 -1
  35. package/models/components/index.js +4 -0
  36. package/models/components/index.js.map +1 -1
  37. package/models/components/minimumcommitment.d.ts +44 -0
  38. package/models/components/minimumcommitment.d.ts.map +1 -0
  39. package/models/components/minimumcommitment.js +71 -0
  40. package/models/components/minimumcommitment.js.map +1 -0
  41. package/models/components/partnerpricing.d.ts +6 -0
  42. package/models/components/partnerpricing.d.ts.map +1 -1
  43. package/models/components/partnerpricing.js +3 -0
  44. package/models/components/partnerpricing.js.map +1 -1
  45. package/models/components/partnerpricingagreement.d.ts +6 -0
  46. package/models/components/partnerpricingagreement.d.ts.map +1 -1
  47. package/models/components/partnerpricingagreement.js +3 -0
  48. package/models/components/partnerpricingagreement.js.map +1 -1
  49. package/models/components/paymentmethod.d.ts +5 -0
  50. package/models/components/paymentmethod.d.ts.map +1 -1
  51. package/models/components/paymentmethod.js +5 -0
  52. package/models/components/paymentmethod.js.map +1 -1
  53. package/models/components/paymentmethodtype.d.ts +3 -0
  54. package/models/components/paymentmethodtype.d.ts.map +1 -1
  55. package/models/components/paymentmethodtype.js +1 -0
  56. package/models/components/paymentmethodtype.js.map +1 -1
  57. package/models/components/taxid.d.ts +15 -15
  58. package/models/components/taxid.d.ts.map +1 -1
  59. package/models/components/taxid.js +20 -18
  60. package/models/components/taxid.js.map +1 -1
  61. package/models/components/taxidupdate.d.ts +15 -15
  62. package/models/components/taxidupdate.d.ts.map +1 -1
  63. package/models/components/taxidupdate.js +18 -20
  64. package/models/components/taxidupdate.js.map +1 -1
  65. package/models/components/terminalcard.d.ts +85 -0
  66. package/models/components/terminalcard.d.ts.map +1 -0
  67. package/models/components/terminalcard.js +91 -0
  68. package/models/components/terminalcard.js.map +1 -0
  69. package/package.json +1 -1
  70. package/src/funcs/receiptsCreate.ts +1 -1
  71. package/src/lib/config.ts +3 -3
  72. package/src/mcp-server/mcp-server.ts +1 -1
  73. package/src/mcp-server/server.ts +1 -1
  74. package/src/models/components/cardpresentpaymentpaymentmethod.ts +124 -0
  75. package/src/models/components/entrymode.ts +36 -0
  76. package/src/models/components/feeplan.ts +13 -0
  77. package/src/models/components/feeplanagreement.ts +13 -0
  78. package/src/models/components/governmentid.ts +58 -76
  79. package/src/models/components/governmentiderror.ts +78 -58
  80. package/src/models/components/index.ts +4 -0
  81. package/src/models/components/minimumcommitment.ts +83 -0
  82. package/src/models/components/partnerpricing.ts +13 -0
  83. package/src/models/components/partnerpricingagreement.ts +13 -0
  84. package/src/models/components/paymentmethod.ts +22 -2
  85. package/src/models/components/paymentmethodtype.ts +1 -0
  86. package/src/models/components/taxid.ts +27 -33
  87. package/src/models/components/taxidupdate.ts +33 -27
  88. package/src/models/components/terminalcard.ts +153 -0
@@ -7,130 +7,112 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
- export type GovernmentIDSsn = {
10
+ export type Ssn = {
11
11
  full?: string | undefined;
12
12
  lastFour?: string | undefined;
13
13
  };
14
14
 
15
- export type GovernmentIDItin = {
15
+ export type Itin = {
16
16
  full?: string | undefined;
17
17
  lastFour?: string | undefined;
18
18
  };
19
19
 
20
20
  export type GovernmentID = {
21
- ssn?: GovernmentIDSsn | undefined;
22
- itin?: GovernmentIDItin | undefined;
21
+ ssn?: Ssn | undefined;
22
+ itin?: Itin | undefined;
23
23
  };
24
24
 
25
25
  /** @internal */
26
- export const GovernmentIDSsn$inboundSchema: z.ZodType<
27
- GovernmentIDSsn,
28
- z.ZodTypeDef,
29
- unknown
30
- > = z.object({
31
- full: z.string().optional(),
32
- lastFour: z.string().optional(),
33
- });
26
+ export const Ssn$inboundSchema: z.ZodType<Ssn, z.ZodTypeDef, unknown> = z
27
+ .object({
28
+ full: z.string().optional(),
29
+ lastFour: z.string().optional(),
30
+ });
34
31
 
35
32
  /** @internal */
36
- export type GovernmentIDSsn$Outbound = {
33
+ export type Ssn$Outbound = {
37
34
  full?: string | undefined;
38
35
  lastFour?: string | undefined;
39
36
  };
40
37
 
41
38
  /** @internal */
42
- export const GovernmentIDSsn$outboundSchema: z.ZodType<
43
- GovernmentIDSsn$Outbound,
44
- z.ZodTypeDef,
45
- GovernmentIDSsn
46
- > = z.object({
47
- full: z.string().optional(),
48
- lastFour: z.string().optional(),
49
- });
39
+ export const Ssn$outboundSchema: z.ZodType<Ssn$Outbound, z.ZodTypeDef, Ssn> = z
40
+ .object({
41
+ full: z.string().optional(),
42
+ lastFour: z.string().optional(),
43
+ });
50
44
 
51
45
  /**
52
46
  * @internal
53
47
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
54
48
  */
55
- export namespace GovernmentIDSsn$ {
56
- /** @deprecated use `GovernmentIDSsn$inboundSchema` instead. */
57
- export const inboundSchema = GovernmentIDSsn$inboundSchema;
58
- /** @deprecated use `GovernmentIDSsn$outboundSchema` instead. */
59
- export const outboundSchema = GovernmentIDSsn$outboundSchema;
60
- /** @deprecated use `GovernmentIDSsn$Outbound` instead. */
61
- export type Outbound = GovernmentIDSsn$Outbound;
49
+ export namespace Ssn$ {
50
+ /** @deprecated use `Ssn$inboundSchema` instead. */
51
+ export const inboundSchema = Ssn$inboundSchema;
52
+ /** @deprecated use `Ssn$outboundSchema` instead. */
53
+ export const outboundSchema = Ssn$outboundSchema;
54
+ /** @deprecated use `Ssn$Outbound` instead. */
55
+ export type Outbound = Ssn$Outbound;
62
56
  }
63
57
 
64
- export function governmentIDSsnToJSON(
65
- governmentIDSsn: GovernmentIDSsn,
66
- ): string {
67
- return JSON.stringify(GovernmentIDSsn$outboundSchema.parse(governmentIDSsn));
58
+ export function ssnToJSON(ssn: Ssn): string {
59
+ return JSON.stringify(Ssn$outboundSchema.parse(ssn));
68
60
  }
69
61
 
70
- export function governmentIDSsnFromJSON(
62
+ export function ssnFromJSON(
71
63
  jsonString: string,
72
- ): SafeParseResult<GovernmentIDSsn, SDKValidationError> {
64
+ ): SafeParseResult<Ssn, SDKValidationError> {
73
65
  return safeParse(
74
66
  jsonString,
75
- (x) => GovernmentIDSsn$inboundSchema.parse(JSON.parse(x)),
76
- `Failed to parse 'GovernmentIDSsn' from JSON`,
67
+ (x) => Ssn$inboundSchema.parse(JSON.parse(x)),
68
+ `Failed to parse 'Ssn' from JSON`,
77
69
  );
78
70
  }
79
71
 
80
72
  /** @internal */
81
- export const GovernmentIDItin$inboundSchema: z.ZodType<
82
- GovernmentIDItin,
83
- z.ZodTypeDef,
84
- unknown
85
- > = z.object({
86
- full: z.string().optional(),
87
- lastFour: z.string().optional(),
88
- });
73
+ export const Itin$inboundSchema: z.ZodType<Itin, z.ZodTypeDef, unknown> = z
74
+ .object({
75
+ full: z.string().optional(),
76
+ lastFour: z.string().optional(),
77
+ });
89
78
 
90
79
  /** @internal */
91
- export type GovernmentIDItin$Outbound = {
80
+ export type Itin$Outbound = {
92
81
  full?: string | undefined;
93
82
  lastFour?: string | undefined;
94
83
  };
95
84
 
96
85
  /** @internal */
97
- export const GovernmentIDItin$outboundSchema: z.ZodType<
98
- GovernmentIDItin$Outbound,
99
- z.ZodTypeDef,
100
- GovernmentIDItin
101
- > = z.object({
102
- full: z.string().optional(),
103
- lastFour: z.string().optional(),
104
- });
86
+ export const Itin$outboundSchema: z.ZodType<Itin$Outbound, z.ZodTypeDef, Itin> =
87
+ z.object({
88
+ full: z.string().optional(),
89
+ lastFour: z.string().optional(),
90
+ });
105
91
 
106
92
  /**
107
93
  * @internal
108
94
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
109
95
  */
110
- export namespace GovernmentIDItin$ {
111
- /** @deprecated use `GovernmentIDItin$inboundSchema` instead. */
112
- export const inboundSchema = GovernmentIDItin$inboundSchema;
113
- /** @deprecated use `GovernmentIDItin$outboundSchema` instead. */
114
- export const outboundSchema = GovernmentIDItin$outboundSchema;
115
- /** @deprecated use `GovernmentIDItin$Outbound` instead. */
116
- export type Outbound = GovernmentIDItin$Outbound;
96
+ export namespace Itin$ {
97
+ /** @deprecated use `Itin$inboundSchema` instead. */
98
+ export const inboundSchema = Itin$inboundSchema;
99
+ /** @deprecated use `Itin$outboundSchema` instead. */
100
+ export const outboundSchema = Itin$outboundSchema;
101
+ /** @deprecated use `Itin$Outbound` instead. */
102
+ export type Outbound = Itin$Outbound;
117
103
  }
118
104
 
119
- export function governmentIDItinToJSON(
120
- governmentIDItin: GovernmentIDItin,
121
- ): string {
122
- return JSON.stringify(
123
- GovernmentIDItin$outboundSchema.parse(governmentIDItin),
124
- );
105
+ export function itinToJSON(itin: Itin): string {
106
+ return JSON.stringify(Itin$outboundSchema.parse(itin));
125
107
  }
126
108
 
127
- export function governmentIDItinFromJSON(
109
+ export function itinFromJSON(
128
110
  jsonString: string,
129
- ): SafeParseResult<GovernmentIDItin, SDKValidationError> {
111
+ ): SafeParseResult<Itin, SDKValidationError> {
130
112
  return safeParse(
131
113
  jsonString,
132
- (x) => GovernmentIDItin$inboundSchema.parse(JSON.parse(x)),
133
- `Failed to parse 'GovernmentIDItin' from JSON`,
114
+ (x) => Itin$inboundSchema.parse(JSON.parse(x)),
115
+ `Failed to parse 'Itin' from JSON`,
134
116
  );
135
117
  }
136
118
 
@@ -140,14 +122,14 @@ export const GovernmentID$inboundSchema: z.ZodType<
140
122
  z.ZodTypeDef,
141
123
  unknown
142
124
  > = z.object({
143
- ssn: z.lazy(() => GovernmentIDSsn$inboundSchema).optional(),
144
- itin: z.lazy(() => GovernmentIDItin$inboundSchema).optional(),
125
+ ssn: z.lazy(() => Ssn$inboundSchema).optional(),
126
+ itin: z.lazy(() => Itin$inboundSchema).optional(),
145
127
  });
146
128
 
147
129
  /** @internal */
148
130
  export type GovernmentID$Outbound = {
149
- ssn?: GovernmentIDSsn$Outbound | undefined;
150
- itin?: GovernmentIDItin$Outbound | undefined;
131
+ ssn?: Ssn$Outbound | undefined;
132
+ itin?: Itin$Outbound | undefined;
151
133
  };
152
134
 
153
135
  /** @internal */
@@ -156,8 +138,8 @@ export const GovernmentID$outboundSchema: z.ZodType<
156
138
  z.ZodTypeDef,
157
139
  GovernmentID
158
140
  > = z.object({
159
- ssn: z.lazy(() => GovernmentIDSsn$outboundSchema).optional(),
160
- itin: z.lazy(() => GovernmentIDItin$outboundSchema).optional(),
141
+ ssn: z.lazy(() => Ssn$outboundSchema).optional(),
142
+ itin: z.lazy(() => Itin$outboundSchema).optional(),
161
143
  });
162
144
 
163
145
  /**
@@ -7,112 +7,132 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
- export type Ssn = {
10
+ export type GovernmentIDErrorSsn = {
11
11
  full?: string | undefined;
12
12
  lastFour?: string | undefined;
13
13
  };
14
14
 
15
- export type Itin = {
15
+ export type GovernmentIDErrorItin = {
16
16
  full?: string | undefined;
17
17
  lastFour?: string | undefined;
18
18
  };
19
19
 
20
20
  export type GovernmentIDError = {
21
- ssn?: Ssn | undefined;
22
- itin?: Itin | undefined;
21
+ ssn?: GovernmentIDErrorSsn | undefined;
22
+ itin?: GovernmentIDErrorItin | undefined;
23
23
  };
24
24
 
25
25
  /** @internal */
26
- export const Ssn$inboundSchema: z.ZodType<Ssn, z.ZodTypeDef, unknown> = z
27
- .object({
28
- full: z.string().optional(),
29
- lastFour: z.string().optional(),
30
- });
26
+ export const GovernmentIDErrorSsn$inboundSchema: z.ZodType<
27
+ GovernmentIDErrorSsn,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ full: z.string().optional(),
32
+ lastFour: z.string().optional(),
33
+ });
31
34
 
32
35
  /** @internal */
33
- export type Ssn$Outbound = {
36
+ export type GovernmentIDErrorSsn$Outbound = {
34
37
  full?: string | undefined;
35
38
  lastFour?: string | undefined;
36
39
  };
37
40
 
38
41
  /** @internal */
39
- export const Ssn$outboundSchema: z.ZodType<Ssn$Outbound, z.ZodTypeDef, Ssn> = z
40
- .object({
41
- full: z.string().optional(),
42
- lastFour: z.string().optional(),
43
- });
42
+ export const GovernmentIDErrorSsn$outboundSchema: z.ZodType<
43
+ GovernmentIDErrorSsn$Outbound,
44
+ z.ZodTypeDef,
45
+ GovernmentIDErrorSsn
46
+ > = z.object({
47
+ full: z.string().optional(),
48
+ lastFour: z.string().optional(),
49
+ });
44
50
 
45
51
  /**
46
52
  * @internal
47
53
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
54
  */
49
- export namespace Ssn$ {
50
- /** @deprecated use `Ssn$inboundSchema` instead. */
51
- export const inboundSchema = Ssn$inboundSchema;
52
- /** @deprecated use `Ssn$outboundSchema` instead. */
53
- export const outboundSchema = Ssn$outboundSchema;
54
- /** @deprecated use `Ssn$Outbound` instead. */
55
- export type Outbound = Ssn$Outbound;
55
+ export namespace GovernmentIDErrorSsn$ {
56
+ /** @deprecated use `GovernmentIDErrorSsn$inboundSchema` instead. */
57
+ export const inboundSchema = GovernmentIDErrorSsn$inboundSchema;
58
+ /** @deprecated use `GovernmentIDErrorSsn$outboundSchema` instead. */
59
+ export const outboundSchema = GovernmentIDErrorSsn$outboundSchema;
60
+ /** @deprecated use `GovernmentIDErrorSsn$Outbound` instead. */
61
+ export type Outbound = GovernmentIDErrorSsn$Outbound;
56
62
  }
57
63
 
58
- export function ssnToJSON(ssn: Ssn): string {
59
- return JSON.stringify(Ssn$outboundSchema.parse(ssn));
64
+ export function governmentIDErrorSsnToJSON(
65
+ governmentIDErrorSsn: GovernmentIDErrorSsn,
66
+ ): string {
67
+ return JSON.stringify(
68
+ GovernmentIDErrorSsn$outboundSchema.parse(governmentIDErrorSsn),
69
+ );
60
70
  }
61
71
 
62
- export function ssnFromJSON(
72
+ export function governmentIDErrorSsnFromJSON(
63
73
  jsonString: string,
64
- ): SafeParseResult<Ssn, SDKValidationError> {
74
+ ): SafeParseResult<GovernmentIDErrorSsn, SDKValidationError> {
65
75
  return safeParse(
66
76
  jsonString,
67
- (x) => Ssn$inboundSchema.parse(JSON.parse(x)),
68
- `Failed to parse 'Ssn' from JSON`,
77
+ (x) => GovernmentIDErrorSsn$inboundSchema.parse(JSON.parse(x)),
78
+ `Failed to parse 'GovernmentIDErrorSsn' from JSON`,
69
79
  );
70
80
  }
71
81
 
72
82
  /** @internal */
73
- export const Itin$inboundSchema: z.ZodType<Itin, z.ZodTypeDef, unknown> = z
74
- .object({
75
- full: z.string().optional(),
76
- lastFour: z.string().optional(),
77
- });
83
+ export const GovernmentIDErrorItin$inboundSchema: z.ZodType<
84
+ GovernmentIDErrorItin,
85
+ z.ZodTypeDef,
86
+ unknown
87
+ > = z.object({
88
+ full: z.string().optional(),
89
+ lastFour: z.string().optional(),
90
+ });
78
91
 
79
92
  /** @internal */
80
- export type Itin$Outbound = {
93
+ export type GovernmentIDErrorItin$Outbound = {
81
94
  full?: string | undefined;
82
95
  lastFour?: string | undefined;
83
96
  };
84
97
 
85
98
  /** @internal */
86
- export const Itin$outboundSchema: z.ZodType<Itin$Outbound, z.ZodTypeDef, Itin> =
87
- z.object({
88
- full: z.string().optional(),
89
- lastFour: z.string().optional(),
90
- });
99
+ export const GovernmentIDErrorItin$outboundSchema: z.ZodType<
100
+ GovernmentIDErrorItin$Outbound,
101
+ z.ZodTypeDef,
102
+ GovernmentIDErrorItin
103
+ > = z.object({
104
+ full: z.string().optional(),
105
+ lastFour: z.string().optional(),
106
+ });
91
107
 
92
108
  /**
93
109
  * @internal
94
110
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
95
111
  */
96
- export namespace Itin$ {
97
- /** @deprecated use `Itin$inboundSchema` instead. */
98
- export const inboundSchema = Itin$inboundSchema;
99
- /** @deprecated use `Itin$outboundSchema` instead. */
100
- export const outboundSchema = Itin$outboundSchema;
101
- /** @deprecated use `Itin$Outbound` instead. */
102
- export type Outbound = Itin$Outbound;
112
+ export namespace GovernmentIDErrorItin$ {
113
+ /** @deprecated use `GovernmentIDErrorItin$inboundSchema` instead. */
114
+ export const inboundSchema = GovernmentIDErrorItin$inboundSchema;
115
+ /** @deprecated use `GovernmentIDErrorItin$outboundSchema` instead. */
116
+ export const outboundSchema = GovernmentIDErrorItin$outboundSchema;
117
+ /** @deprecated use `GovernmentIDErrorItin$Outbound` instead. */
118
+ export type Outbound = GovernmentIDErrorItin$Outbound;
103
119
  }
104
120
 
105
- export function itinToJSON(itin: Itin): string {
106
- return JSON.stringify(Itin$outboundSchema.parse(itin));
121
+ export function governmentIDErrorItinToJSON(
122
+ governmentIDErrorItin: GovernmentIDErrorItin,
123
+ ): string {
124
+ return JSON.stringify(
125
+ GovernmentIDErrorItin$outboundSchema.parse(governmentIDErrorItin),
126
+ );
107
127
  }
108
128
 
109
- export function itinFromJSON(
129
+ export function governmentIDErrorItinFromJSON(
110
130
  jsonString: string,
111
- ): SafeParseResult<Itin, SDKValidationError> {
131
+ ): SafeParseResult<GovernmentIDErrorItin, SDKValidationError> {
112
132
  return safeParse(
113
133
  jsonString,
114
- (x) => Itin$inboundSchema.parse(JSON.parse(x)),
115
- `Failed to parse 'Itin' from JSON`,
134
+ (x) => GovernmentIDErrorItin$inboundSchema.parse(JSON.parse(x)),
135
+ `Failed to parse 'GovernmentIDErrorItin' from JSON`,
116
136
  );
117
137
  }
118
138
 
@@ -122,14 +142,14 @@ export const GovernmentIDError$inboundSchema: z.ZodType<
122
142
  z.ZodTypeDef,
123
143
  unknown
124
144
  > = z.object({
125
- ssn: z.lazy(() => Ssn$inboundSchema).optional(),
126
- itin: z.lazy(() => Itin$inboundSchema).optional(),
145
+ ssn: z.lazy(() => GovernmentIDErrorSsn$inboundSchema).optional(),
146
+ itin: z.lazy(() => GovernmentIDErrorItin$inboundSchema).optional(),
127
147
  });
128
148
 
129
149
  /** @internal */
130
150
  export type GovernmentIDError$Outbound = {
131
- ssn?: Ssn$Outbound | undefined;
132
- itin?: Itin$Outbound | undefined;
151
+ ssn?: GovernmentIDErrorSsn$Outbound | undefined;
152
+ itin?: GovernmentIDErrorItin$Outbound | undefined;
133
153
  };
134
154
 
135
155
  /** @internal */
@@ -138,8 +158,8 @@ export const GovernmentIDError$outboundSchema: z.ZodType<
138
158
  z.ZodTypeDef,
139
159
  GovernmentIDError
140
160
  > = z.object({
141
- ssn: z.lazy(() => Ssn$outboundSchema).optional(),
142
- itin: z.lazy(() => Itin$outboundSchema).optional(),
161
+ ssn: z.lazy(() => GovernmentIDErrorSsn$outboundSchema).optional(),
162
+ itin: z.lazy(() => GovernmentIDErrorItin$outboundSchema).optional(),
143
163
  });
144
164
 
145
165
  /**
@@ -89,6 +89,7 @@ export * from "./cardpaymentdetails.js";
89
89
  export * from "./cardpaymentdetailserror.js";
90
90
  export * from "./cardpaymentpaymentmethod.js";
91
91
  export * from "./cardpaymentsettings.js";
92
+ export * from "./cardpresentpaymentpaymentmethod.js";
92
93
  export * from "./cardtransactiondetails.js";
93
94
  export * from "./cardtransactionfailurecode.js";
94
95
  export * from "./cardtransactionstatus.js";
@@ -158,6 +159,7 @@ export * from "./enrichedbusinessresponse.js";
158
159
  export * from "./enrichedindustries.js";
159
160
  export * from "./enrichedindustry.js";
160
161
  export * from "./enrichedindustrycodes.js";
162
+ export * from "./entrymode.js";
161
163
  export * from "./evidencetextresponse.js";
162
164
  export * from "./evidencetype.js";
163
165
  export * from "./evidenceuploadresponse.js";
@@ -219,6 +221,7 @@ export * from "./listfeesfetchrequest.js";
219
221
  export * from "./manualtermsofservice.js";
220
222
  export * from "./manualtermsofserviceupdate.js";
221
223
  export * from "./microdepositstatus.js";
224
+ export * from "./minimumcommitment.js";
222
225
  export * from "./mode.js";
223
226
  export * from "./moovfeedetails.js";
224
227
  export * from "./moovwalletpaymentmethod.js";
@@ -314,6 +317,7 @@ export * from "./taxidupdate.js";
314
317
  export * from "./terminalapplication.js";
315
318
  export * from "./terminalapplicationplatform.js";
316
319
  export * from "./terminalapplicationstatus.js";
320
+ export * from "./terminalcard.js";
317
321
  export * from "./termsofservice.js";
318
322
  export * from "./termsofserviceerror.js";
319
323
  export * from "./termsofservicetoken.js";
@@ -0,0 +1,83 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference.
12
+ */
13
+ export type MinimumCommitment = {
14
+ /**
15
+ * A 3-letter ISO 4217 currency code.
16
+ */
17
+ currency: string;
18
+ /**
19
+ * A decimal-formatted numerical string that represents up to 9 decimal place precision.
20
+ *
21
+ * @remarks
22
+ *
23
+ * For example, $12.987654321 is '12.987654321'.
24
+ */
25
+ valueDecimal: string;
26
+ };
27
+
28
+ /** @internal */
29
+ export const MinimumCommitment$inboundSchema: z.ZodType<
30
+ MinimumCommitment,
31
+ z.ZodTypeDef,
32
+ unknown
33
+ > = z.object({
34
+ currency: z.string(),
35
+ valueDecimal: z.string(),
36
+ });
37
+
38
+ /** @internal */
39
+ export type MinimumCommitment$Outbound = {
40
+ currency: string;
41
+ valueDecimal: string;
42
+ };
43
+
44
+ /** @internal */
45
+ export const MinimumCommitment$outboundSchema: z.ZodType<
46
+ MinimumCommitment$Outbound,
47
+ z.ZodTypeDef,
48
+ MinimumCommitment
49
+ > = z.object({
50
+ currency: z.string(),
51
+ valueDecimal: z.string(),
52
+ });
53
+
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ export namespace MinimumCommitment$ {
59
+ /** @deprecated use `MinimumCommitment$inboundSchema` instead. */
60
+ export const inboundSchema = MinimumCommitment$inboundSchema;
61
+ /** @deprecated use `MinimumCommitment$outboundSchema` instead. */
62
+ export const outboundSchema = MinimumCommitment$outboundSchema;
63
+ /** @deprecated use `MinimumCommitment$Outbound` instead. */
64
+ export type Outbound = MinimumCommitment$Outbound;
65
+ }
66
+
67
+ export function minimumCommitmentToJSON(
68
+ minimumCommitment: MinimumCommitment,
69
+ ): string {
70
+ return JSON.stringify(
71
+ MinimumCommitment$outboundSchema.parse(minimumCommitment),
72
+ );
73
+ }
74
+
75
+ export function minimumCommitmentFromJSON(
76
+ jsonString: string,
77
+ ): SafeParseResult<MinimumCommitment, SDKValidationError> {
78
+ return safeParse(
79
+ jsonString,
80
+ (x) => MinimumCommitment$inboundSchema.parse(JSON.parse(x)),
81
+ `Failed to parse 'MinimumCommitment' from JSON`,
82
+ );
83
+ }
@@ -17,6 +17,12 @@ import {
17
17
  CardAcquiringModel$inboundSchema,
18
18
  CardAcquiringModel$outboundSchema,
19
19
  } from "./cardacquiringmodel.js";
20
+ import {
21
+ MinimumCommitment,
22
+ MinimumCommitment$inboundSchema,
23
+ MinimumCommitment$Outbound,
24
+ MinimumCommitment$outboundSchema,
25
+ } from "./minimumcommitment.js";
20
26
 
21
27
  export type PartnerPricing = {
22
28
  planID: string;
@@ -37,6 +43,10 @@ export type PartnerPricing = {
37
43
  */
38
44
  cardAcquiringModel: CardAcquiringModel;
39
45
  billableFees: Array<BillableFee>;
46
+ /**
47
+ * The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference.
48
+ */
49
+ minimumCommitment: MinimumCommitment;
40
50
  createdAt: Date;
41
51
  };
42
52
 
@@ -52,6 +62,7 @@ export const PartnerPricing$inboundSchema: z.ZodType<
52
62
  revenueShare: z.number().int(),
53
63
  cardAcquiringModel: CardAcquiringModel$inboundSchema,
54
64
  billableFees: z.array(BillableFee$inboundSchema),
65
+ minimumCommitment: MinimumCommitment$inboundSchema,
55
66
  createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
56
67
  });
57
68
 
@@ -63,6 +74,7 @@ export type PartnerPricing$Outbound = {
63
74
  revenueShare: number;
64
75
  cardAcquiringModel: string;
65
76
  billableFees: Array<BillableFee$Outbound>;
77
+ minimumCommitment: MinimumCommitment$Outbound;
66
78
  createdAt: string;
67
79
  };
68
80
 
@@ -78,6 +90,7 @@ export const PartnerPricing$outboundSchema: z.ZodType<
78
90
  revenueShare: z.number().int(),
79
91
  cardAcquiringModel: CardAcquiringModel$outboundSchema,
80
92
  billableFees: z.array(BillableFee$outboundSchema),
93
+ minimumCommitment: MinimumCommitment$outboundSchema,
81
94
  createdAt: z.date().transform(v => v.toISOString()),
82
95
  });
83
96
 
@@ -22,6 +22,12 @@ import {
22
22
  FeePlanAgreementStatus$inboundSchema,
23
23
  FeePlanAgreementStatus$outboundSchema,
24
24
  } from "./feeplanagreementstatus.js";
25
+ import {
26
+ MinimumCommitment,
27
+ MinimumCommitment$inboundSchema,
28
+ MinimumCommitment$Outbound,
29
+ MinimumCommitment$outboundSchema,
30
+ } from "./minimumcommitment.js";
25
31
 
26
32
  export type PartnerPricingAgreement = {
27
33
  agreementID: string;
@@ -42,6 +48,10 @@ export type PartnerPricingAgreement = {
42
48
  */
43
49
  cardAcquiringModel: CardAcquiringModel;
44
50
  billableFees: Array<BillableFee>;
51
+ /**
52
+ * The minimum spending amount that must be met in the billing period. If actual usage is below the minimum amount, account is charged the difference.
53
+ */
54
+ minimumCommitment: MinimumCommitment;
45
55
  /**
46
56
  * The integer percentage value of the revenue split for partner.
47
57
  */
@@ -63,6 +73,7 @@ export const PartnerPricingAgreement$inboundSchema: z.ZodType<
63
73
  status: FeePlanAgreementStatus$inboundSchema,
64
74
  cardAcquiringModel: CardAcquiringModel$inboundSchema,
65
75
  billableFees: z.array(BillableFee$inboundSchema),
76
+ minimumCommitment: MinimumCommitment$inboundSchema,
66
77
  revenueShare: z.number().int(),
67
78
  });
68
79
 
@@ -77,6 +88,7 @@ export type PartnerPricingAgreement$Outbound = {
77
88
  status: string;
78
89
  cardAcquiringModel: string;
79
90
  billableFees: Array<BillableFee$Outbound>;
91
+ minimumCommitment: MinimumCommitment$Outbound;
80
92
  revenueShare: number;
81
93
  };
82
94
 
@@ -95,6 +107,7 @@ export const PartnerPricingAgreement$outboundSchema: z.ZodType<
95
107
  status: FeePlanAgreementStatus$outboundSchema,
96
108
  cardAcquiringModel: CardAcquiringModel$outboundSchema,
97
109
  billableFees: z.array(BillableFee$outboundSchema),
110
+ minimumCommitment: MinimumCommitment$outboundSchema,
98
111
  revenueShare: z.number().int(),
99
112
  });
100
113