@polar-sh/sdk 0.35.1 → 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 (225) hide show
  1. package/README.md +25 -23
  2. package/bin/mcp-server.js +806 -635
  3. package/bin/mcp-server.js.map +15 -11
  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 +664 -664
  32. package/dist/commonjs/models/components/address.js +221 -221
  33. package/dist/commonjs/models/components/addressinput.d.ts +650 -650
  34. package/dist/commonjs/models/components/addressinput.js +216 -216
  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/customerstatesubscription.d.ts +38 -2
  64. package/dist/commonjs/models/components/customerstatesubscription.d.ts.map +1 -1
  65. package/dist/commonjs/models/components/customerstatesubscription.js +30 -3
  66. package/dist/commonjs/models/components/customerstatesubscription.js.map +1 -1
  67. package/dist/commonjs/models/components/customersubscription.d.ts +5 -0
  68. package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
  69. package/dist/commonjs/models/components/customersubscription.js +4 -0
  70. package/dist/commonjs/models/components/customersubscription.js.map +1 -1
  71. package/dist/commonjs/models/components/order.d.ts +5 -0
  72. package/dist/commonjs/models/components/order.d.ts.map +1 -1
  73. package/dist/commonjs/models/components/order.js +4 -0
  74. package/dist/commonjs/models/components/order.js.map +1 -1
  75. package/dist/commonjs/models/errors/customernotready.d.ts +39 -0
  76. package/dist/commonjs/models/errors/customernotready.d.ts.map +1 -0
  77. package/dist/commonjs/models/errors/customernotready.js +88 -0
  78. package/dist/commonjs/models/errors/customernotready.js.map +1 -0
  79. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts +29 -0
  80. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts.map +1 -0
  81. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.js +78 -0
  82. package/dist/commonjs/models/operations/customerportalcustomersconfirmpaymentmethod.js.map +1 -0
  83. package/dist/commonjs/models/operations/customersgetbalance.d.ts +32 -0
  84. package/dist/commonjs/models/operations/customersgetbalance.d.ts.map +1 -0
  85. package/dist/commonjs/models/operations/customersgetbalance.js +69 -0
  86. package/dist/commonjs/models/operations/customersgetbalance.js.map +1 -0
  87. package/dist/commonjs/models/operations/metersquantities.d.ts +6 -0
  88. package/dist/commonjs/models/operations/metersquantities.d.ts.map +1 -1
  89. package/dist/commonjs/models/operations/metersquantities.js +7 -0
  90. package/dist/commonjs/models/operations/metersquantities.js.map +1 -1
  91. package/dist/commonjs/sdk/customers.d.ts +11 -0
  92. package/dist/commonjs/sdk/customers.d.ts.map +1 -1
  93. package/dist/commonjs/sdk/customers.js +12 -0
  94. package/dist/commonjs/sdk/customers.js.map +1 -1
  95. package/dist/commonjs/sdk/polarcustomers.d.ts +13 -2
  96. package/dist/commonjs/sdk/polarcustomers.d.ts.map +1 -1
  97. package/dist/commonjs/sdk/polarcustomers.js +12 -0
  98. package/dist/commonjs/sdk/polarcustomers.js.map +1 -1
  99. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.d.ts +2 -2
  100. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.d.ts.map +1 -1
  101. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js +2 -2
  102. package/dist/esm/funcs/customerPortalCustomersAddPaymentMethod.js.map +1 -1
  103. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts +23 -0
  104. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.d.ts.map +1 -0
  105. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.js +90 -0
  106. package/dist/esm/funcs/customerPortalCustomersConfirmPaymentMethod.js.map +1 -0
  107. package/dist/esm/funcs/customersGetBalance.d.ts +22 -0
  108. package/dist/esm/funcs/customersGetBalance.d.ts.map +1 -0
  109. package/dist/esm/funcs/customersGetBalance.js +91 -0
  110. package/dist/esm/funcs/customersGetBalance.js.map +1 -0
  111. package/dist/esm/funcs/metersQuantities.js +1 -0
  112. package/dist/esm/funcs/metersQuantities.js.map +1 -1
  113. package/dist/esm/lib/config.d.ts +3 -3
  114. package/dist/esm/lib/config.js +3 -3
  115. package/dist/esm/lib/config.js.map +1 -1
  116. package/dist/esm/lib/url.js +1 -1
  117. package/dist/esm/lib/url.js.map +1 -1
  118. package/dist/esm/mcp-server/mcp-server.js +1 -1
  119. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  120. package/dist/esm/mcp-server/server.js +3 -1
  121. package/dist/esm/mcp-server/server.js.map +1 -1
  122. package/dist/esm/mcp-server/tools/customersGetBalance.d.ts +7 -0
  123. package/dist/esm/mcp-server/tools/customersGetBalance.d.ts.map +1 -0
  124. package/dist/esm/mcp-server/tools/customersGetBalance.js +31 -0
  125. package/dist/esm/mcp-server/tools/customersGetBalance.js.map +1 -0
  126. package/dist/esm/models/components/address.d.ts +664 -664
  127. package/dist/esm/models/components/address.js +221 -221
  128. package/dist/esm/models/components/addressinput.d.ts +650 -650
  129. package/dist/esm/models/components/addressinput.js +216 -216
  130. package/dist/esm/models/components/aggregationfunction.d.ts +40 -0
  131. package/dist/esm/models/components/aggregationfunction.d.ts.map +1 -0
  132. package/dist/esm/models/components/aggregationfunction.js +28 -0
  133. package/dist/esm/models/components/aggregationfunction.js.map +1 -0
  134. package/dist/esm/models/components/customerbalance.d.ts +40 -0
  135. package/dist/esm/models/components/customerbalance.d.ts.map +1 -0
  136. package/dist/esm/models/components/customerbalance.js +33 -0
  137. package/dist/esm/models/components/customerbalance.js.map +1 -0
  138. package/dist/esm/models/components/customerorder.d.ts +5 -0
  139. package/dist/esm/models/components/customerorder.d.ts.map +1 -1
  140. package/dist/esm/models/components/customerorder.js +4 -0
  141. package/dist/esm/models/components/customerorder.js.map +1 -1
  142. package/dist/esm/models/components/customerpaymentmethodconfirm.d.ts +31 -0
  143. package/dist/esm/models/components/customerpaymentmethodconfirm.d.ts.map +1 -0
  144. package/dist/esm/models/components/customerpaymentmethodconfirm.js +44 -0
  145. package/dist/esm/models/components/customerpaymentmethodconfirm.js.map +1 -0
  146. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts +31 -0
  147. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.d.ts.map +1 -0
  148. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.js +42 -0
  149. package/dist/esm/models/components/customerpaymentmethodcreaterequiresactionresponse.js.map +1 -0
  150. package/dist/esm/models/components/customerpaymentmethodcreateresponse.d.ts +35 -0
  151. package/dist/esm/models/components/customerpaymentmethodcreateresponse.d.ts.map +1 -0
  152. package/dist/esm/models/components/customerpaymentmethodcreateresponse.js +43 -0
  153. package/dist/esm/models/components/customerpaymentmethodcreateresponse.js.map +1 -0
  154. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.d.ts +32 -0
  155. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.d.ts.map +1 -0
  156. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.js +43 -0
  157. package/dist/esm/models/components/customerpaymentmethodcreatesucceededresponse.js.map +1 -0
  158. package/dist/esm/models/components/customerstatesubscription.d.ts +38 -2
  159. package/dist/esm/models/components/customerstatesubscription.d.ts.map +1 -1
  160. package/dist/esm/models/components/customerstatesubscription.js +29 -2
  161. package/dist/esm/models/components/customerstatesubscription.js.map +1 -1
  162. package/dist/esm/models/components/customersubscription.d.ts +5 -0
  163. package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
  164. package/dist/esm/models/components/customersubscription.js +4 -0
  165. package/dist/esm/models/components/customersubscription.js.map +1 -1
  166. package/dist/esm/models/components/order.d.ts +5 -0
  167. package/dist/esm/models/components/order.d.ts.map +1 -1
  168. package/dist/esm/models/components/order.js +4 -0
  169. package/dist/esm/models/components/order.js.map +1 -1
  170. package/dist/esm/models/errors/customernotready.d.ts +39 -0
  171. package/dist/esm/models/errors/customernotready.d.ts.map +1 -0
  172. package/dist/esm/models/errors/customernotready.js +51 -0
  173. package/dist/esm/models/errors/customernotready.js.map +1 -0
  174. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts +29 -0
  175. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.d.ts.map +1 -0
  176. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.js +40 -0
  177. package/dist/esm/models/operations/customerportalcustomersconfirmpaymentmethod.js.map +1 -0
  178. package/dist/esm/models/operations/customersgetbalance.d.ts +32 -0
  179. package/dist/esm/models/operations/customersgetbalance.d.ts.map +1 -0
  180. package/dist/esm/models/operations/customersgetbalance.js +31 -0
  181. package/dist/esm/models/operations/customersgetbalance.js.map +1 -0
  182. package/dist/esm/models/operations/metersquantities.d.ts +6 -0
  183. package/dist/esm/models/operations/metersquantities.d.ts.map +1 -1
  184. package/dist/esm/models/operations/metersquantities.js +7 -0
  185. package/dist/esm/models/operations/metersquantities.js.map +1 -1
  186. package/dist/esm/sdk/customers.d.ts +11 -0
  187. package/dist/esm/sdk/customers.d.ts.map +1 -1
  188. package/dist/esm/sdk/customers.js +12 -0
  189. package/dist/esm/sdk/customers.js.map +1 -1
  190. package/dist/esm/sdk/polarcustomers.d.ts +13 -2
  191. package/dist/esm/sdk/polarcustomers.d.ts.map +1 -1
  192. package/dist/esm/sdk/polarcustomers.js +12 -0
  193. package/dist/esm/sdk/polarcustomers.js.map +1 -1
  194. package/docs/sdks/customers/README.md +78 -0
  195. package/docs/sdks/polarcustomers/README.md +82 -1
  196. package/examples/package-lock.json +1 -1
  197. package/jsr.json +1 -1
  198. package/package.json +1 -1
  199. package/src/funcs/customerPortalCustomersAddPaymentMethod.ts +8 -8
  200. package/src/funcs/customerPortalCustomersConfirmPaymentMethod.ts +201 -0
  201. package/src/funcs/customersGetBalance.ts +195 -0
  202. package/src/funcs/metersQuantities.ts +1 -0
  203. package/src/lib/config.ts +3 -3
  204. package/src/lib/url.ts +1 -1
  205. package/src/mcp-server/mcp-server.ts +1 -1
  206. package/src/mcp-server/server.ts +3 -1
  207. package/src/mcp-server/tools/customersGetBalance.ts +40 -0
  208. package/src/models/components/address.ts +221 -221
  209. package/src/models/components/addressinput.ts +216 -216
  210. package/src/models/components/aggregationfunction.ts +37 -0
  211. package/src/models/components/customerbalance.ts +77 -0
  212. package/src/models/components/customerorder.ts +9 -0
  213. package/src/models/components/customerpaymentmethodconfirm.ts +83 -0
  214. package/src/models/components/customerpaymentmethodcreaterequiresactionresponse.ts +93 -0
  215. package/src/models/components/customerpaymentmethodcreateresponse.ts +107 -0
  216. package/src/models/components/customerpaymentmethodcreatesucceededresponse.ts +98 -0
  217. package/src/models/components/customerstatesubscription.ts +56 -4
  218. package/src/models/components/customersubscription.ts +9 -0
  219. package/src/models/components/order.ts +9 -0
  220. package/src/models/errors/customernotready.ts +85 -0
  221. package/src/models/operations/customerportalcustomersconfirmpaymentmethod.ts +89 -0
  222. package/src/models/operations/customersgetbalance.ts +69 -0
  223. package/src/models/operations/metersquantities.ts +16 -0
  224. package/src/sdk/customers.ts +22 -0
  225. 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
- Am: "AM",
47
- Na: "NA",
48
- Sx: "SX",
49
- Gp: "GP",
50
- Mq: "MQ",
51
- Pk: "PK",
52
- Ne: "NE",
53
- Tj: "TJ",
54
- Ws: "WS",
46
+ Ad: "AD",
47
+ Ae: "AE",
48
+ Af: "AF",
49
+ Ag: "AG",
50
+ Ai: "AI",
55
51
  Al: "AL",
56
- Gs: "GS",
57
- Sr: "SR",
58
- Hu: "HU",
59
- Bv: "BV",
60
- Il: "IL",
61
- Vc: "VC",
62
- La: "LA",
63
- Cl: "CL",
64
- Ee: "EE",
65
- Fi: "FI",
66
- Pt: "PT",
67
- Lc: "LC",
68
- By: "BY",
69
- Co: "CO",
70
- Tt: "TT",
71
- Mf: "MF",
72
- De: "DE",
73
- Iq: "IQ",
52
+ Am: "AM",
53
+ Ao: "AO",
54
+ Aq: "AQ",
55
+ Ar: "AR",
56
+ As: "AS",
74
57
  At: "AT",
75
- Km: "KM",
76
- Ni: "NI",
77
- Sc: "SC",
78
- Sd: "SD",
79
- Cn: "CN",
80
- Ng: "NG",
81
- Br: "BR",
82
- Ph: "PH",
83
- Tm: "TM",
84
- Va: "VA",
85
- Ga: "GA",
58
+ Au: "AU",
59
+ Aw: "AW",
60
+ Ax: "AX",
61
+ Az: "AZ",
62
+ Ba: "BA",
86
63
  Bb: "BB",
87
- Gt: "GT",
88
- Ps: "PS",
89
- Gd: "GD",
90
- Tn: "TN",
91
- Zw: "ZW",
92
- Ca: "CA",
93
- Tz: "TZ",
94
- Eh: "EH",
95
- Pn: "PN",
96
- Cw: "CW",
97
- Lu: "LU",
98
- Ug: "UG",
99
- In: "IN",
100
- Pa: "PA",
101
- Hk: "HK",
102
- Pr: "PR",
103
- Ki: "KI",
104
- Aq: "AQ",
64
+ Bd: "BD",
65
+ Be: "BE",
66
+ Bf: "BF",
67
+ Bg: "BG",
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",
105
82
  Bz: "BZ",
106
- Fr: "FR",
107
- Yt: "YT",
108
- Ie: "IE",
109
- Um: "UM",
110
- Gu: "GU",
111
- Jo: "JO",
83
+ Ca: "CA",
112
84
  Cc: "CC",
113
- Vi: "VI",
114
- Nc: "NC",
115
- Do: "DO",
85
+ Cd: "CD",
86
+ Cf: "CF",
87
+ Cg: "CG",
88
+ Ch: "CH",
89
+ Ci: "CI",
90
+ Ck: "CK",
91
+ Cl: "CL",
92
+ Cm: "CM",
93
+ Cn: "CN",
94
+ Co: "CO",
116
95
  Cr: "CR",
117
- Ar: "AR",
118
- Ai: "AI",
119
- Bf: "BF",
120
- Ec: "EC",
121
- Im: "IM",
122
- Za: "ZA",
123
- Tf: "TF",
124
- Bd: "BD",
125
- Mx: "MX",
96
+ Cv: "CV",
97
+ Cw: "CW",
98
+ Cx: "CX",
126
99
  Cy: "CY",
127
- Vu: "VU",
128
- Mp: "MP",
129
- Mz: "MZ",
130
- Mu: "MU",
131
- Lk: "LK",
132
- Bo: "BO",
133
- Sa: "SA",
134
- Bn: "BN",
135
- Sl: "SL",
136
- Lr: "LR",
137
100
  Cz: "CZ",
101
+ De: "DE",
102
+ Dj: "DJ",
103
+ Dk: "DK",
104
+ Dm: "DM",
105
+ Do: "DO",
106
+ Dz: "DZ",
107
+ Ec: "EC",
108
+ Ee: "EE",
109
+ Eg: "EG",
110
+ Eh: "EH",
111
+ Er: "ER",
112
+ Es: "ES",
138
113
  Et: "ET",
139
- Re: "RE",
140
- Tk: "TK",
141
- Io: "IO",
142
- Sm: "SM",
143
- Pw: "PW",
144
- Kn: "KN",
145
- Cv: "CV",
146
- To: "TO",
147
- Tw: "TW",
148
- Nr: "NR",
149
- Ma: "MA",
150
- Gr: "GR",
151
- Bh: "BH",
152
- Th: "TH",
153
- Jm: "JM",
154
- Vn: "VN",
155
- Ch: "CH",
156
- Pl: "PL",
157
- Me: "ME",
158
- Fo: "FO",
114
+ Fi: "FI",
159
115
  Fj: "FJ",
160
- Ve: "VE",
161
- Gw: "GW",
162
- Ck: "CK",
163
- Dm: "DM",
164
- Gy: "GY",
165
- Dk: "DK",
166
- Pf: "PF",
167
- Sk: "SK",
168
- Rw: "RW",
169
- Bt: "BT",
170
- Ye: "YE",
171
- Ss: "SS",
172
- Lb: "LB",
173
116
  Fk: "FK",
117
+ Fm: "FM",
118
+ Fo: "FO",
119
+ Fr: "FR",
120
+ Ga: "GA",
121
+ Gb: "GB",
122
+ Gd: "GD",
123
+ Ge: "GE",
124
+ Gf: "GF",
125
+ Gg: "GG",
126
+ Gh: "GH",
127
+ Gi: "GI",
128
+ Gl: "GL",
129
+ Gm: "GM",
174
130
  Gn: "GN",
175
- Zm: "ZM",
176
- Mm: "MM",
177
- Eg: "EG",
178
- Je: "JE",
131
+ Gp: "GP",
132
+ Gq: "GQ",
133
+ Gr: "GR",
134
+ Gs: "GS",
135
+ Gt: "GT",
136
+ Gu: "GU",
137
+ Gw: "GW",
138
+ Gy: "GY",
139
+ Hk: "HK",
179
140
  Hm: "HM",
180
- Be: "BE",
181
- Ax: "AX",
182
- Sh: "SH",
183
- Tg: "TG",
184
- Mn: "MN",
185
- Bg: "BG",
141
+ Hn: "HN",
142
+ Hr: "HR",
143
+ Ht: "HT",
144
+ Hu: "HU",
145
+ Id: "ID",
146
+ Ie: "IE",
147
+ Il: "IL",
148
+ Im: "IM",
149
+ In: "IN",
150
+ Io: "IO",
151
+ Iq: "IQ",
152
+ Is: "IS",
186
153
  It: "IT",
187
- Gh: "GH",
188
- Gl: "GL",
189
- Nu: "NU",
190
- Om: "OM",
191
- Ua: "UA",
192
- Gi: "GI",
154
+ Je: "JE",
155
+ Jm: "JM",
156
+ Jo: "JO",
157
+ Jp: "JP",
193
158
  Ke: "KE",
194
- Nl: "NL",
195
- Fm: "FM",
196
- Bm: "BM",
197
- Gb: "GB",
198
- Rs: "RS",
199
- Tr: "TR",
200
- Mc: "MC",
201
- Ci: "CI",
202
- Tv: "TV",
159
+ Kg: "KG",
203
160
  Kh: "KH",
204
- Vg: "VG",
205
- Mw: "MW",
206
- Id: "ID",
207
- Np: "NP",
208
- Lv: "LV",
209
- Si: "SI",
210
- Cx: "CX",
211
- Ls: "LS",
212
- Ad: "AD",
213
- Ms: "MS",
214
- Bs: "BS",
215
- Hn: "HN",
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",
216
171
  Li: "LI",
217
- Sv: "SV",
218
- Bw: "BW",
219
- Aw: "AW",
220
- Bq: "BQ",
221
- Uy: "UY",
222
- Az: "AZ",
223
- Ba: "BA",
172
+ Lk: "LK",
173
+ Lr: "LR",
174
+ Ls: "LS",
175
+ Lt: "LT",
176
+ Lu: "LU",
177
+ Lv: "LV",
224
178
  Ly: "LY",
179
+ Ma: "MA",
180
+ Mc: "MC",
181
+ Md: "MD",
182
+ Me: "ME",
183
+ Mf: "MF",
184
+ Mg: "MG",
185
+ Mh: "MH",
186
+ Mk: "MK",
225
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",
204
+ Ne: "NE",
226
205
  Nf: "NF",
227
- Sn: "SN",
228
- Mh: "MH",
229
- Us: "US",
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",
230
216
  Pe: "PE",
231
- Uz: "UZ",
232
- Kw: "KW",
233
- Td: "TD",
234
- Kz: "KZ",
217
+ Pf: "PF",
218
+ Pg: "PG",
219
+ Ph: "PH",
220
+ Pk: "PK",
221
+ Pl: "PL",
222
+ Pm: "PM",
223
+ Pn: "PN",
224
+ Pr: "PR",
225
+ Ps: "PS",
226
+ Pt: "PT",
227
+ Pw: "PW",
235
228
  Py: "PY",
236
- Dz: "DZ",
237
- Hr: "HR",
238
- Kr: "KR",
239
- Au: "AU",
240
- Tc: "TC",
241
- Mv: "MV",
242
- Mt: "MT",
243
- Nz: "NZ",
244
- Jp: "JP",
245
- Lt: "LT",
246
- Cm: "CM",
247
- Ag: "AG",
229
+ Qa: "QA",
230
+ Re: "RE",
248
231
  Ro: "RO",
249
- As: "AS",
250
- Md: "MD",
251
- Mg: "MG",
232
+ Rs: "RS",
233
+ Rw: "RW",
234
+ Sa: "SA",
235
+ Sb: "SB",
236
+ Sc: "SC",
237
+ Sd: "SD",
252
238
  Se: "SE",
253
- Cg: "CG",
254
- Cd: "CD",
255
- Pg: "PG",
256
- Wf: "WF",
257
- Gq: "GQ",
258
- Bj: "BJ",
259
- Gg: "GG",
260
- Mr: "MR",
261
- Is: "IS",
262
- Bi: "BI",
263
- Gm: "GM",
264
- Er: "ER",
265
- Ky: "KY",
266
- Gf: "GF",
267
- Ge: "GE",
239
+ Sg: "SG",
240
+ Sh: "SH",
241
+ Si: "SI",
268
242
  Sj: "SJ",
269
- Ao: "AO",
270
- Mk: "MK",
271
- St: "ST",
272
- Mo: "MO",
243
+ Sk: "SK",
244
+ Sl: "SL",
245
+ Sm: "SM",
246
+ Sn: "SN",
273
247
  So: "SO",
248
+ Sr: "SR",
249
+ Ss: "SS",
250
+ St: "ST",
251
+ Sv: "SV",
252
+ Sx: "SX",
274
253
  Sz: "SZ",
275
- Pm: "PM",
276
- Es: "ES",
254
+ Tc: "TC",
255
+ Td: "TD",
256
+ Tf: "TF",
257
+ Tg: "TG",
258
+ Th: "TH",
259
+ Tj: "TJ",
260
+ Tk: "TK",
277
261
  Tl: "TL",
278
- Bl: "BL",
279
- Ae: "AE",
280
- Cf: "CF",
281
- Dj: "DJ",
282
- Kg: "KG",
283
- Qa: "QA",
284
- Ht: "HT",
285
- No: "NO",
286
- Sg: "SG",
287
- Sb: "SB",
288
- Af: "AF",
289
- My: "MY",
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",
276
+ Va: "VA",
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"}