@polar-sh/sdk 0.35.2 → 0.35.3

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 (216) hide show
  1. package/README.md +25 -23
  2. package/bin/mcp-server.js +771 -618
  3. package/bin/mcp-server.js.map +14 -10
  4. package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.d.ts +2 -2
  5. package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.d.ts.map +1 -1
  6. package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.js +2 -2
  7. package/dist/commonjs/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
  8. package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts +23 -0
  9. package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.js +126 -0
  11. package/dist/commonjs/funcs/customerPortalCustomersConfirmPaymentMethod.js.map +1 -0
  12. package/dist/commonjs/funcs/customersGetBalance.d.ts +22 -0
  13. package/dist/commonjs/funcs/customersGetBalance.d.ts.map +1 -0
  14. package/dist/commonjs/funcs/customersGetBalance.js +127 -0
  15. package/dist/commonjs/funcs/customersGetBalance.js.map +1 -0
  16. package/dist/commonjs/funcs/metersQuantities.js +1 -0
  17. package/dist/commonjs/funcs/metersQuantities.js.map +1 -1
  18. package/dist/commonjs/lib/config.d.ts +3 -3
  19. package/dist/commonjs/lib/config.js +3 -3
  20. package/dist/commonjs/lib/config.js.map +1 -1
  21. package/dist/commonjs/lib/url.js +1 -1
  22. package/dist/commonjs/lib/url.js.map +1 -1
  23. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  24. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  25. package/dist/commonjs/mcp-server/server.js +3 -1
  26. package/dist/commonjs/mcp-server/server.js.map +1 -1
  27. package/dist/commonjs/mcp-server/tools/customersGetBalance.d.ts +7 -0
  28. package/dist/commonjs/mcp-server/tools/customersGetBalance.d.ts.map +1 -0
  29. package/dist/commonjs/mcp-server/tools/customersGetBalance.js +34 -0
  30. package/dist/commonjs/mcp-server/tools/customersGetBalance.js.map +1 -0
  31. package/dist/commonjs/models/components/address.d.ts +669 -669
  32. package/dist/commonjs/models/components/address.js +223 -223
  33. package/dist/commonjs/models/components/addressinput.d.ts +652 -652
  34. package/dist/commonjs/models/components/addressinput.js +218 -218
  35. package/dist/commonjs/models/components/aggregationfunction.d.ts +40 -0
  36. package/dist/commonjs/models/components/aggregationfunction.d.ts.map +1 -0
  37. package/dist/commonjs/models/components/aggregationfunction.js +64 -0
  38. package/dist/commonjs/models/components/aggregationfunction.js.map +1 -0
  39. package/dist/commonjs/models/components/customerbalance.d.ts +40 -0
  40. package/dist/commonjs/models/components/customerbalance.d.ts.map +1 -0
  41. package/dist/commonjs/models/components/customerbalance.js +71 -0
  42. package/dist/commonjs/models/components/customerbalance.js.map +1 -0
  43. package/dist/commonjs/models/components/customerorder.d.ts +5 -0
  44. package/dist/commonjs/models/components/customerorder.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/customerorder.js +4 -0
  46. package/dist/commonjs/models/components/customerorder.js.map +1 -1
  47. package/dist/commonjs/models/components/customerpaymentmethodconfirm.d.ts +31 -0
  48. package/dist/commonjs/models/components/customerpaymentmethodconfirm.d.ts.map +1 -0
  49. package/dist/commonjs/models/components/customerpaymentmethodconfirm.js +82 -0
  50. package/dist/commonjs/models/components/customerpaymentmethodconfirm.js.map +1 -0
  51. package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts +31 -0
  52. package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts.map +1 -0
  53. package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.js +80 -0
  54. package/dist/commonjs/models/components/customerpaymentmethodcreaterequiresactionresponse.js.map +1 -0
  55. package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.d.ts +35 -0
  56. package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.d.ts.map +1 -0
  57. package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.js +81 -0
  58. package/dist/commonjs/models/components/customerpaymentmethodcreateresponse.js.map +1 -0
  59. package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.d.ts +32 -0
  60. package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.d.ts.map +1 -0
  61. package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.js +81 -0
  62. package/dist/commonjs/models/components/customerpaymentmethodcreatesucceededresponse.js.map +1 -0
  63. package/dist/commonjs/models/components/customersubscription.d.ts +5 -0
  64. package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/customersubscription.js +4 -0
  66. package/dist/commonjs/models/components/customersubscription.js.map +1 -1
  67. package/dist/commonjs/models/components/order.d.ts +5 -0
  68. package/dist/commonjs/models/components/order.d.ts.map +1 -1
  69. package/dist/commonjs/models/components/order.js +4 -0
  70. package/dist/commonjs/models/components/order.js.map +1 -1
  71. package/dist/commonjs/models/errors/customernotready.d.ts +39 -0
  72. package/dist/commonjs/models/errors/customernotready.d.ts.map +1 -0
  73. package/dist/commonjs/models/errors/customernotready.js +88 -0
  74. package/dist/commonjs/models/errors/customernotready.js.map +1 -0
  75. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts +29 -0
  76. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts.map +1 -0
  77. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.js +78 -0
  78. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.js.map +1 -0
  79. package/dist/commonjs/models/operations/customersgetbalance.d.ts +32 -0
  80. package/dist/commonjs/models/operations/customersgetbalance.d.ts.map +1 -0
  81. package/dist/commonjs/models/operations/customersgetbalance.js +69 -0
  82. package/dist/commonjs/models/operations/customersgetbalance.js.map +1 -0
  83. package/dist/commonjs/models/operations/metersquantities.d.ts +6 -0
  84. package/dist/commonjs/models/operations/metersquantities.d.ts.map +1 -1
  85. package/dist/commonjs/models/operations/metersquantities.js +7 -0
  86. package/dist/commonjs/models/operations/metersquantities.js.map +1 -1
  87. package/dist/commonjs/sdk/customers.d.ts +11 -0
  88. package/dist/commonjs/sdk/customers.d.ts.map +1 -1
  89. package/dist/commonjs/sdk/customers.js +12 -0
  90. package/dist/commonjs/sdk/customers.js.map +1 -1
  91. package/dist/commonjs/sdk/polarcustomers.d.ts +13 -2
  92. package/dist/commonjs/sdk/polarcustomers.d.ts.map +1 -1
  93. package/dist/commonjs/sdk/polarcustomers.js +12 -0
  94. package/dist/commonjs/sdk/polarcustomers.js.map +1 -1
  95. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.d.ts +2 -2
  96. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.d.ts.map +1 -1
  97. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js +2 -2
  98. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
  99. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts +23 -0
  100. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts.map +1 -0
  101. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.js +90 -0
  102. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.js.map +1 -0
  103. package/dist/esm/funcs/customersGetBalance.d.ts +22 -0
  104. package/dist/esm/funcs/customersGetBalance.d.ts.map +1 -0
  105. package/dist/esm/funcs/customersGetBalance.js +91 -0
  106. package/dist/esm/funcs/customersGetBalance.js.map +1 -0
  107. package/dist/esm/funcs/metersQuantities.js +1 -0
  108. package/dist/esm/funcs/metersQuantities.js.map +1 -1
  109. package/dist/esm/lib/config.d.ts +3 -3
  110. package/dist/esm/lib/config.js +3 -3
  111. package/dist/esm/lib/config.js.map +1 -1
  112. package/dist/esm/lib/url.js +1 -1
  113. package/dist/esm/lib/url.js.map +1 -1
  114. package/dist/esm/mcp-server/mcp-server.js +1 -1
  115. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  116. package/dist/esm/mcp-server/server.js +3 -1
  117. package/dist/esm/mcp-server/server.js.map +1 -1
  118. package/dist/esm/mcp-server/tools/customersGetBalance.d.ts +7 -0
  119. package/dist/esm/mcp-server/tools/customersGetBalance.d.ts.map +1 -0
  120. package/dist/esm/mcp-server/tools/customersGetBalance.js +31 -0
  121. package/dist/esm/mcp-server/tools/customersGetBalance.js.map +1 -0
  122. package/dist/esm/models/components/address.d.ts +669 -669
  123. package/dist/esm/models/components/address.js +223 -223
  124. package/dist/esm/models/components/addressinput.d.ts +652 -652
  125. package/dist/esm/models/components/addressinput.js +218 -218
  126. package/dist/esm/models/components/aggregationfunction.d.ts +40 -0
  127. package/dist/esm/models/components/aggregationfunction.d.ts.map +1 -0
  128. package/dist/esm/models/components/aggregationfunction.js +28 -0
  129. package/dist/esm/models/components/aggregationfunction.js.map +1 -0
  130. package/dist/esm/models/components/customerbalance.d.ts +40 -0
  131. package/dist/esm/models/components/customerbalance.d.ts.map +1 -0
  132. package/dist/esm/models/components/customerbalance.js +33 -0
  133. package/dist/esm/models/components/customerbalance.js.map +1 -0
  134. package/dist/esm/models/components/customerorder.d.ts +5 -0
  135. package/dist/esm/models/components/customerorder.d.ts.map +1 -1
  136. package/dist/esm/models/components/customerorder.js +4 -0
  137. package/dist/esm/models/components/customerorder.js.map +1 -1
  138. package/dist/esm/models/components/customerpaymentmethodconfirm.d.ts +31 -0
  139. package/dist/esm/models/components/customerpaymentmethodconfirm.d.ts.map +1 -0
  140. package/dist/esm/models/components/customerpaymentmethodconfirm.js +44 -0
  141. package/dist/esm/models/components/customerpaymentmethodconfirm.js.map +1 -0
  142. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts +31 -0
  143. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts.map +1 -0
  144. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.js +42 -0
  145. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.js.map +1 -0
  146. package/dist/esm/models/components/customerpaymentmethodcreateresponse.d.ts +35 -0
  147. package/dist/esm/models/components/customerpaymentmethodcreateresponse.d.ts.map +1 -0
  148. package/dist/esm/models/components/customerpaymentmethodcreateresponse.js +43 -0
  149. package/dist/esm/models/components/customerpaymentmethodcreateresponse.js.map +1 -0
  150. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.d.ts +32 -0
  151. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.d.ts.map +1 -0
  152. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.js +43 -0
  153. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.js.map +1 -0
  154. package/dist/esm/models/components/customersubscription.d.ts +5 -0
  155. package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
  156. package/dist/esm/models/components/customersubscription.js +4 -0
  157. package/dist/esm/models/components/customersubscription.js.map +1 -1
  158. package/dist/esm/models/components/order.d.ts +5 -0
  159. package/dist/esm/models/components/order.d.ts.map +1 -1
  160. package/dist/esm/models/components/order.js +4 -0
  161. package/dist/esm/models/components/order.js.map +1 -1
  162. package/dist/esm/models/errors/customernotready.d.ts +39 -0
  163. package/dist/esm/models/errors/customernotready.d.ts.map +1 -0
  164. package/dist/esm/models/errors/customernotready.js +51 -0
  165. package/dist/esm/models/errors/customernotready.js.map +1 -0
  166. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts +29 -0
  167. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts.map +1 -0
  168. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.js +40 -0
  169. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.js.map +1 -0
  170. package/dist/esm/models/operations/customersgetbalance.d.ts +32 -0
  171. package/dist/esm/models/operations/customersgetbalance.d.ts.map +1 -0
  172. package/dist/esm/models/operations/customersgetbalance.js +31 -0
  173. package/dist/esm/models/operations/customersgetbalance.js.map +1 -0
  174. package/dist/esm/models/operations/metersquantities.d.ts +6 -0
  175. package/dist/esm/models/operations/metersquantities.d.ts.map +1 -1
  176. package/dist/esm/models/operations/metersquantities.js +7 -0
  177. package/dist/esm/models/operations/metersquantities.js.map +1 -1
  178. package/dist/esm/sdk/customers.d.ts +11 -0
  179. package/dist/esm/sdk/customers.d.ts.map +1 -1
  180. package/dist/esm/sdk/customers.js +12 -0
  181. package/dist/esm/sdk/customers.js.map +1 -1
  182. package/dist/esm/sdk/polarcustomers.d.ts +13 -2
  183. package/dist/esm/sdk/polarcustomers.d.ts.map +1 -1
  184. package/dist/esm/sdk/polarcustomers.js +12 -0
  185. package/dist/esm/sdk/polarcustomers.js.map +1 -1
  186. package/docs/sdks/customers/README.md +78 -0
  187. package/docs/sdks/polarcustomers/README.md +82 -1
  188. package/examples/package-lock.json +1 -1
  189. package/jsr.json +1 -1
  190. package/package.json +1 -1
  191. package/src/funcs/customerPortalCustomersAddPaymentMethod.ts +8 -8
  192. package/src/funcs/customerPortalCustomersConfirmPaymentMethod.ts +201 -0
  193. package/src/funcs/customersGetBalance.ts +195 -0
  194. package/src/funcs/metersQuantities.ts +1 -0
  195. package/src/lib/config.ts +3 -3
  196. package/src/lib/url.ts +1 -1
  197. package/src/mcp-server/mcp-server.ts +1 -1
  198. package/src/mcp-server/server.ts +3 -1
  199. package/src/mcp-server/tools/customersGetBalance.ts +40 -0
  200. package/src/models/components/address.ts +223 -223
  201. package/src/models/components/addressinput.ts +218 -218
  202. package/src/models/components/aggregationfunction.ts +37 -0
  203. package/src/models/components/customerbalance.ts +77 -0
  204. package/src/models/components/customerorder.ts +9 -0
  205. package/src/models/components/customerpaymentmethodconfirm.ts +83 -0
  206. package/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts +93 -0
  207. package/src/models/components/customerpaymentmethodcreateresponse.ts +107 -0
  208. package/src/models/components/customerpaymentmethodcreatesucceededresponse.ts +98 -0
  209. package/src/models/components/customersubscription.ts +9 -0
  210. package/src/models/components/order.ts +9 -0
  211. package/src/models/errors/customernotready.ts +85 -0
  212. package/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts +89 -0
  213. package/src/models/operations/customersgetbalance.ts +69 -0
  214. package/src/models/operations/metersquantities.ts +16 -0
  215. package/src/sdk/customers.ts +22 -0
  216. package/src/sdk/polarcustomers.ts +26 -2
@@ -43,250 +43,250 @@ const z = __importStar(require("zod"));
43
43
  const primitives_js_1 = require("../../lib/primitives.js");
44
44
  const schemas_js_1 = require("../../lib/schemas.js");
45
45
  exports.CountryAlpha2Input = {
46
- Cw: "CW",
47
- Ms: "MS",
48
- Ph: "PH",
49
- Gw: "GW",
50
- Tf: "TF",
51
- Jm: "JM",
52
- Ly: "LY",
53
- Tw: "TW",
54
- Gy: "GY",
55
- Um: "UM",
56
- Er: "ER",
57
- Mv: "MV",
58
- At: "AT",
59
- In: "IN",
60
- Sd: "SD",
61
- Vc: "VC",
62
- Us: "US",
63
- Aq: "AQ",
46
+ Ad: "AD",
64
47
  Ae: "AE",
65
- Nf: "NF",
66
- Lk: "LK",
67
- Co: "CO",
68
- Qa: "QA",
69
- Nz: "NZ",
70
- Pr: "PR",
71
- Tl: "TL",
72
- Mz: "MZ",
73
- Tn: "TN",
74
- Bm: "BM",
75
- Ht: "HT",
76
- Je: "JE",
77
- Lc: "LC",
78
- Cy: "CY",
79
- Lv: "LV",
80
- Ml: "ML",
81
- Dz: "DZ",
82
- Ps: "PS",
83
- Ve: "VE",
84
- Bh: "BH",
85
- Et: "ET",
86
- By: "BY",
87
- Mp: "MP",
88
- Bo: "BO",
89
- Sh: "SH",
90
- Kw: "KW",
91
- Sg: "SG",
92
- Mx: "MX",
93
- Pa: "PA",
94
- Zm: "ZM",
95
- To: "TO",
96
- Kn: "KN",
97
- Pt: "PT",
98
- Ws: "WS",
99
- Bs: "BS",
100
- Za: "ZA",
101
- Mo: "MO",
102
- Ie: "IE",
103
- Br: "BR",
48
+ Af: "AF",
49
+ Ag: "AG",
50
+ Ai: "AI",
51
+ Al: "AL",
52
+ Am: "AM",
53
+ Ao: "AO",
54
+ Aq: "AQ",
55
+ Ar: "AR",
104
56
  As: "AS",
105
- Es: "ES",
106
- Pf: "PF",
107
- Ke: "KE",
57
+ At: "AT",
58
+ Au: "AU",
59
+ Aw: "AW",
60
+ Ax: "AX",
61
+ Az: "AZ",
62
+ Ba: "BA",
108
63
  Bb: "BB",
109
- Re: "RE",
110
- Tv: "TV",
111
- Gh: "GH",
112
- Tz: "TZ",
113
- Kz: "KZ",
114
- Sx: "SX",
115
- Cx: "CX",
116
- Mm: "MM",
117
- Pk: "PK",
118
- Na: "NA",
64
+ Bd: "BD",
119
65
  Be: "BE",
120
- Fj: "FJ",
121
- Lr: "LR",
122
- Ua: "UA",
123
- Me: "ME",
124
- Mw: "MW",
125
- Vn: "VN",
126
- Lu: "LU",
127
- Mu: "MU",
128
- Is: "IS",
129
- Nu: "NU",
130
- Pm: "PM",
131
- Bw: "BW",
132
- Td: "TD",
133
- Yt: "YT",
134
- Fo: "FO",
135
- Tr: "TR",
136
- Rw: "RW",
137
- Id: "ID",
138
- No: "NO",
139
- Ck: "CK",
140
- Ss: "SS",
141
- De: "DE",
142
- Mk: "MK",
143
- La: "LA",
144
- Ee: "EE",
145
- Mn: "MN",
146
- Gi: "GI",
147
- Vu: "VU",
148
- Ro: "RO",
149
- Ao: "AO",
150
- Ar: "AR",
151
- Tk: "TK",
152
- Uy: "UY",
153
- Kh: "KH",
66
+ Bf: "BF",
154
67
  Bg: "BG",
155
- Tj: "TJ",
156
- Ug: "UG",
68
+ Bh: "BH",
69
+ Bi: "BI",
70
+ Bj: "BJ",
71
+ Bl: "BL",
72
+ Bm: "BM",
73
+ Bn: "BN",
74
+ Bo: "BO",
75
+ Bq: "BQ",
76
+ Br: "BR",
77
+ Bs: "BS",
78
+ Bt: "BT",
79
+ Bv: "BV",
80
+ Bw: "BW",
81
+ By: "BY",
82
+ Bz: "BZ",
83
+ Ca: "CA",
157
84
  Cc: "CC",
158
85
  Cd: "CD",
159
- Gd: "GD",
86
+ Cf: "CF",
87
+ Cg: "CG",
88
+ Ch: "CH",
89
+ Ci: "CI",
90
+ Ck: "CK",
160
91
  Cl: "CL",
161
- Gu: "GU",
162
- Il: "IL",
163
- Kr: "KR",
164
- Pe: "PE",
165
- Sn: "SN",
166
- Sm: "SM",
167
- Nl: "NL",
168
- Sk: "SK",
169
- Hm: "HM",
170
- Mq: "MQ",
171
- Mr: "MR",
172
- It: "IT",
173
92
  Cm: "CM",
174
- Dm: "DM",
175
- Sv: "SV",
93
+ Cn: "CN",
94
+ Co: "CO",
95
+ Cr: "CR",
96
+ Cv: "CV",
97
+ Cw: "CW",
98
+ Cx: "CX",
99
+ Cy: "CY",
100
+ Cz: "CZ",
101
+ De: "DE",
102
+ Dj: "DJ",
176
103
  Dk: "DK",
177
- Zw: "ZW",
178
- Jo: "JO",
179
- Om: "OM",
180
- Sl: "SL",
181
- So: "SO",
182
- Tg: "TG",
183
- Pw: "PW",
184
- Ye: "YE",
185
- Iq: "IQ",
186
- Ma: "MA",
187
- Cg: "CG",
188
- Mf: "MF",
189
- St: "ST",
190
- Bi: "BI",
104
+ Dm: "DM",
105
+ Do: "DO",
106
+ Dz: "DZ",
107
+ Ec: "EC",
108
+ Ee: "EE",
191
109
  Eg: "EG",
192
- Ax: "AX",
193
- Gm: "GM",
194
- Gr: "GR",
195
- Az: "AZ",
196
110
  Eh: "EH",
111
+ Er: "ER",
112
+ Es: "ES",
113
+ Et: "ET",
114
+ Fi: "FI",
115
+ Fj: "FJ",
116
+ Fk: "FK",
117
+ Fm: "FM",
118
+ Fo: "FO",
119
+ Fr: "FR",
120
+ Ga: "GA",
121
+ Gb: "GB",
122
+ Gd: "GD",
197
123
  Ge: "GE",
198
- Gt: "GT",
199
- Cf: "CF",
200
- Ng: "NG",
201
- Kg: "KG",
202
- Ag: "AG",
203
- Ai: "AI",
204
- Dj: "DJ",
205
- Sr: "SR",
206
- Np: "NP",
207
- Hu: "HU",
208
- Io: "IO",
209
- Mc: "MC",
210
124
  Gf: "GF",
211
- Sj: "SJ",
212
- Hr: "HR",
213
- Bj: "BJ",
214
- Fm: "FM",
215
- Bl: "BL",
216
- Ls: "LS",
217
- Mg: "MG",
218
- Sc: "SC",
219
- Vg: "VG",
220
- Ci: "CI",
221
125
  Gg: "GG",
222
- Ad: "AD",
223
- Cr: "CR",
126
+ Gh: "GH",
127
+ Gi: "GI",
128
+ Gl: "GL",
129
+ Gm: "GM",
130
+ Gn: "GN",
224
131
  Gp: "GP",
225
- Au: "AU",
226
- Hk: "HK",
227
- Fr: "FR",
132
+ Gq: "GQ",
133
+ Gr: "GR",
228
134
  Gs: "GS",
229
- Si: "SI",
230
- Mh: "MH",
231
- Fi: "FI",
232
- Do: "DO",
233
- Tm: "TM",
234
- Gl: "GL",
235
- Ca: "CA",
236
- Mt: "MT",
237
- Rs: "RS",
238
- Km: "KM",
239
- Sz: "SZ",
135
+ Gt: "GT",
136
+ Gu: "GU",
137
+ Gw: "GW",
138
+ Gy: "GY",
139
+ Hk: "HK",
140
+ Hm: "HM",
141
+ Hn: "HN",
142
+ Hr: "HR",
143
+ Ht: "HT",
144
+ Hu: "HU",
145
+ Id: "ID",
146
+ Ie: "IE",
147
+ Il: "IL",
240
148
  Im: "IM",
149
+ In: "IN",
150
+ Io: "IO",
151
+ Iq: "IQ",
152
+ Is: "IS",
153
+ It: "IT",
154
+ Je: "JE",
155
+ Jm: "JM",
156
+ Jo: "JO",
241
157
  Jp: "JP",
242
- Th: "TH",
243
- Tt: "TT",
244
- Sb: "SB",
245
- Ga: "GA",
246
- Nc: "NC",
247
- Bv: "BV",
248
- Fk: "FK",
249
- Af: "AF",
158
+ Ke: "KE",
159
+ Kg: "KG",
160
+ Kh: "KH",
250
161
  Ki: "KI",
162
+ Km: "KM",
163
+ Kn: "KN",
164
+ Kr: "KR",
165
+ Kw: "KW",
166
+ Ky: "KY",
167
+ Kz: "KZ",
168
+ La: "LA",
169
+ Lb: "LB",
170
+ Lc: "LC",
171
+ Li: "LI",
172
+ Lk: "LK",
173
+ Lr: "LR",
174
+ Ls: "LS",
175
+ Lt: "LT",
176
+ Lu: "LU",
177
+ Lv: "LV",
178
+ Ly: "LY",
179
+ Ma: "MA",
180
+ Mc: "MC",
251
181
  Md: "MD",
252
- Tc: "TC",
253
- Bn: "BN",
254
- Hn: "HN",
255
- Vi: "VI",
256
- Gn: "GN",
257
- Wf: "WF",
258
- Se: "SE",
259
- Ec: "EC",
182
+ Me: "ME",
183
+ Mf: "MF",
184
+ Mg: "MG",
185
+ Mh: "MH",
186
+ Mk: "MK",
187
+ Ml: "ML",
188
+ Mm: "MM",
189
+ Mn: "MN",
190
+ Mo: "MO",
191
+ Mp: "MP",
192
+ Mq: "MQ",
193
+ Mr: "MR",
194
+ Ms: "MS",
195
+ Mt: "MT",
196
+ Mu: "MU",
197
+ Mv: "MV",
198
+ Mw: "MW",
199
+ Mx: "MX",
200
+ My: "MY",
201
+ Mz: "MZ",
202
+ Na: "NA",
203
+ Nc: "NC",
260
204
  Ne: "NE",
261
- Pl: "PL",
262
- Gq: "GQ",
263
- Bt: "BT",
264
- Bz: "BZ",
265
- Uz: "UZ",
266
- Lt: "LT",
267
- Cz: "CZ",
268
- Lb: "LB",
269
- Gb: "GB",
205
+ Nf: "NF",
206
+ Ng: "NG",
207
+ Ni: "NI",
208
+ Nl: "NL",
209
+ No: "NO",
210
+ Np: "NP",
211
+ Nr: "NR",
212
+ Nu: "NU",
213
+ Nz: "NZ",
214
+ Om: "OM",
215
+ Pa: "PA",
216
+ Pe: "PE",
217
+ Pf: "PF",
270
218
  Pg: "PG",
271
- Py: "PY",
272
- Bq: "BQ",
273
- Ky: "KY",
219
+ Ph: "PH",
220
+ Pk: "PK",
221
+ Pl: "PL",
222
+ Pm: "PM",
274
223
  Pn: "PN",
224
+ Pr: "PR",
225
+ Ps: "PS",
226
+ Pt: "PT",
227
+ Pw: "PW",
228
+ Py: "PY",
229
+ Qa: "QA",
230
+ Re: "RE",
231
+ Ro: "RO",
232
+ Rs: "RS",
233
+ Rw: "RW",
275
234
  Sa: "SA",
276
- Ch: "CH",
235
+ Sb: "SB",
236
+ Sc: "SC",
237
+ Sd: "SD",
238
+ Se: "SE",
239
+ Sg: "SG",
240
+ Sh: "SH",
241
+ Si: "SI",
242
+ Sj: "SJ",
243
+ Sk: "SK",
244
+ Sl: "SL",
245
+ Sm: "SM",
246
+ Sn: "SN",
247
+ So: "SO",
248
+ Sr: "SR",
249
+ Ss: "SS",
250
+ St: "ST",
251
+ Sv: "SV",
252
+ Sx: "SX",
253
+ Sz: "SZ",
254
+ Tc: "TC",
255
+ Td: "TD",
256
+ Tf: "TF",
257
+ Tg: "TG",
258
+ Th: "TH",
259
+ Tj: "TJ",
260
+ Tk: "TK",
261
+ Tl: "TL",
262
+ Tm: "TM",
263
+ Tn: "TN",
264
+ To: "TO",
265
+ Tr: "TR",
266
+ Tt: "TT",
267
+ Tv: "TV",
268
+ Tw: "TW",
269
+ Tz: "TZ",
270
+ Ua: "UA",
271
+ Ug: "UG",
272
+ Um: "UM",
273
+ Us: "US",
274
+ Uy: "UY",
275
+ Uz: "UZ",
277
276
  Va: "VA",
278
- Bf: "BF",
279
- My: "MY",
280
- Nr: "NR",
281
- Cv: "CV",
282
- Al: "AL",
283
- Cn: "CN",
284
- Am: "AM",
285
- Ni: "NI",
286
- Aw: "AW",
287
- Li: "LI",
288
- Ba: "BA",
289
- Bd: "BD",
277
+ Vc: "VC",
278
+ Ve: "VE",
279
+ Vg: "VG",
280
+ Vi: "VI",
281
+ Vn: "VN",
282
+ Vu: "VU",
283
+ Wf: "WF",
284
+ Ws: "WS",
285
+ Ye: "YE",
286
+ Yt: "YT",
287
+ Za: "ZA",
288
+ Zm: "ZM",
289
+ Zw: "ZW",
290
290
  };
291
291
  /** @internal */
292
292
  exports.CountryAlpha2Input$inboundSchema = z.nativeEnum(exports.CountryAlpha2Input);
@@ -0,0 +1,40 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const AggregationFunction: {
4
+ readonly Count: "count";
5
+ readonly Sum: "sum";
6
+ readonly Max: "max";
7
+ readonly Min: "min";
8
+ readonly Avg: "avg";
9
+ readonly Unique: "unique";
10
+ };
11
+ export type AggregationFunction = ClosedEnum<typeof AggregationFunction>;
12
+ /** @internal */
13
+ export declare const AggregationFunction$inboundSchema: z.ZodNativeEnum<typeof AggregationFunction>;
14
+ /** @internal */
15
+ export declare const AggregationFunction$outboundSchema: z.ZodNativeEnum<typeof AggregationFunction>;
16
+ /**
17
+ * @internal
18
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
19
+ */
20
+ export declare namespace AggregationFunction$ {
21
+ /** @deprecated use `AggregationFunction$inboundSchema` instead. */
22
+ const inboundSchema: z.ZodNativeEnum<{
23
+ readonly Count: "count";
24
+ readonly Sum: "sum";
25
+ readonly Max: "max";
26
+ readonly Min: "min";
27
+ readonly Avg: "avg";
28
+ readonly Unique: "unique";
29
+ }>;
30
+ /** @deprecated use `AggregationFunction$outboundSchema` instead. */
31
+ const outboundSchema: z.ZodNativeEnum<{
32
+ readonly Count: "count";
33
+ readonly Sum: "sum";
34
+ readonly Max: "max";
35
+ readonly Min: "min";
36
+ readonly Avg: "avg";
37
+ readonly Unique: "unique";
38
+ }>;
39
+ }
40
+ //# sourceMappingURL=aggregationfunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregationfunction.d.ts","sourceRoot":"","sources":["../../../../src/models/components/aggregationfunction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,mBAAmB;;;;;;;CAOtB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,aAAa,CAC7D,OAAO,mBAAmB,CACS,CAAC;AAEtC,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,aAAa,CAC9D,OAAO,mBAAmB,CACS,CAAC;AAEtC;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa;;;;;;;MAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc;;;;;;;MAAqC,CAAC;CAClE"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.AggregationFunction$ = exports.AggregationFunction$outboundSchema = exports.AggregationFunction$inboundSchema = exports.AggregationFunction = void 0;
40
+ const z = __importStar(require("zod"));
41
+ exports.AggregationFunction = {
42
+ Count: "count",
43
+ Sum: "sum",
44
+ Max: "max",
45
+ Min: "min",
46
+ Avg: "avg",
47
+ Unique: "unique",
48
+ };
49
+ /** @internal */
50
+ exports.AggregationFunction$inboundSchema = z.nativeEnum(exports.AggregationFunction);
51
+ /** @internal */
52
+ exports.AggregationFunction$outboundSchema = exports.AggregationFunction$inboundSchema;
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ var AggregationFunction$;
58
+ (function (AggregationFunction$) {
59
+ /** @deprecated use `AggregationFunction$inboundSchema` instead. */
60
+ AggregationFunction$.inboundSchema = exports.AggregationFunction$inboundSchema;
61
+ /** @deprecated use `AggregationFunction$outboundSchema` instead. */
62
+ AggregationFunction$.outboundSchema = exports.AggregationFunction$outboundSchema;
63
+ })(AggregationFunction$ || (exports.AggregationFunction$ = AggregationFunction$ = {}));
64
+ //# sourceMappingURL=aggregationfunction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregationfunction.js","sourceRoot":"","sources":["../../../../src/models/components/aggregationfunction.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,mBAAmB,GAAG;IACjC,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,CAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC,CAAC;AAEtC,gBAAgB;AACH,QAAA,kCAAkC,GAE3C,yCAAiC,CAAC;AAEtC;;;GAGG;AACH,IAAiB,oBAAoB,CAKpC;AALD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,yCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,0CAAkC,CAAC;AACnE,CAAC,EALgB,oBAAoB,oCAApB,oBAAoB,QAKpC"}
@@ -0,0 +1,40 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ /**
5
+ * Customer balance information.
6
+ */
7
+ export type CustomerBalance = {
8
+ /**
9
+ * Customer balance in cents. Positive values represent credit (customer is owed money), negative values represent debit (customer owes money).
10
+ */
11
+ balance: number;
12
+ /**
13
+ * The currency code (ISO 4217) for the balance amount.
14
+ */
15
+ currency: string;
16
+ };
17
+ /** @internal */
18
+ export declare const CustomerBalance$inboundSchema: z.ZodType<CustomerBalance, z.ZodTypeDef, unknown>;
19
+ /** @internal */
20
+ export type CustomerBalance$Outbound = {
21
+ balance: number;
22
+ currency: string;
23
+ };
24
+ /** @internal */
25
+ export declare const CustomerBalance$outboundSchema: z.ZodType<CustomerBalance$Outbound, z.ZodTypeDef, CustomerBalance>;
26
+ /**
27
+ * @internal
28
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
+ */
30
+ export declare namespace CustomerBalance$ {
31
+ /** @deprecated use `CustomerBalance$inboundSchema` instead. */
32
+ const inboundSchema: z.ZodType<CustomerBalance, z.ZodTypeDef, unknown>;
33
+ /** @deprecated use `CustomerBalance$outboundSchema` instead. */
34
+ const outboundSchema: z.ZodType<CustomerBalance$Outbound, z.ZodTypeDef, CustomerBalance>;
35
+ /** @deprecated use `CustomerBalance$Outbound` instead. */
36
+ type Outbound = CustomerBalance$Outbound;
37
+ }
38
+ export declare function customerBalanceToJSON(customerBalance: CustomerBalance): string;
39
+ export declare function customerBalanceFromJSON(jsonString: string): SafeParseResult<CustomerBalance, SDKValidationError>;
40
+ //# sourceMappingURL=customerbalance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"customerbalance.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customerbalance.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAIf,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,+DAA+D;IACxD,MAAM,aAAa,mDAAgC,CAAC;IAC3D,gEAAgE;IACzD,MAAM,cAAc,oEAAiC,CAAC;IAC7D,0DAA0D;IAC1D,KAAY,QAAQ,GAAG,wBAAwB,CAAC;CACjD;AAED,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}