@moovio/sdk 0.3.4 → 0.3.6

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 (77) hide show
  1. package/docs/sdks/accounts/README.md +2 -4
  2. package/funcs/accountsUpdate.d.ts.map +1 -1
  3. package/funcs/accountsUpdate.js +1 -3
  4. package/funcs/accountsUpdate.js.map +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +2 -2
  7. package/lib/config.js +2 -2
  8. package/models/components/index.d.ts +4 -7
  9. package/models/components/index.d.ts.map +1 -1
  10. package/models/components/index.js +4 -7
  11. package/models/components/index.js.map +1 -1
  12. package/models/components/patchaccount.d.ts +116 -0
  13. package/models/components/patchaccount.d.ts.map +1 -0
  14. package/models/components/patchaccount.js +153 -0
  15. package/models/components/patchaccount.js.map +1 -0
  16. package/models/components/{createbusinessprofileupdate.d.ts → patchbusiness.d.ts} +16 -20
  17. package/models/components/patchbusiness.d.ts.map +1 -0
  18. package/models/components/{createbusinessprofileupdate.js → patchbusiness.js} +19 -17
  19. package/models/components/patchbusiness.js.map +1 -0
  20. package/models/components/patchindividual.d.ts +47 -0
  21. package/models/components/patchindividual.d.ts.map +1 -0
  22. package/models/components/{createindividualprofileupdate.js → patchindividual.js} +17 -17
  23. package/models/components/patchindividual.js.map +1 -0
  24. package/models/components/patchprofile.d.ts +42 -0
  25. package/models/components/patchprofile.d.ts.map +1 -0
  26. package/models/components/{achpaymentsettingsupdate.js → patchprofile.js} +23 -19
  27. package/models/components/patchprofile.js.map +1 -0
  28. package/models/components/transfer.d.ts +2 -2
  29. package/models/components/transfer.js +2 -2
  30. package/models/components/transfer.js.map +1 -1
  31. package/models/errors/transfer.d.ts +3 -3
  32. package/models/errors/transfer.js +2 -2
  33. package/models/errors/transfer.js.map +1 -1
  34. package/models/operations/updateaccount.d.ts +2 -2
  35. package/models/operations/updateaccount.d.ts.map +1 -1
  36. package/models/operations/updateaccount.js +4 -4
  37. package/models/operations/updateaccount.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/funcs/accountsUpdate.ts +1 -3
  40. package/src/lib/config.ts +2 -2
  41. package/src/models/components/index.ts +4 -7
  42. package/src/models/components/patchaccount.ts +281 -0
  43. package/src/models/components/{createbusinessprofileupdate.ts → patchbusiness.ts} +24 -32
  44. package/src/models/components/{createindividualprofileupdate.ts → patchindividual.ts} +24 -25
  45. package/src/models/components/patchprofile.ts +87 -0
  46. package/src/models/components/transfer.ts +4 -4
  47. package/src/models/errors/transfer.ts +5 -5
  48. package/src/models/operations/updateaccount.ts +6 -6
  49. package/models/components/achpaymentsettingsupdate.d.ts +0 -32
  50. package/models/components/achpaymentsettingsupdate.d.ts.map +0 -1
  51. package/models/components/achpaymentsettingsupdate.js.map +0 -1
  52. package/models/components/createaccountupdate.d.ts +0 -93
  53. package/models/components/createaccountupdate.d.ts.map +0 -1
  54. package/models/components/createaccountupdate.js +0 -125
  55. package/models/components/createaccountupdate.js.map +0 -1
  56. package/models/components/createbusinessprofileupdate.d.ts.map +0 -1
  57. package/models/components/createbusinessprofileupdate.js.map +0 -1
  58. package/models/components/createindividualprofileupdate.d.ts +0 -44
  59. package/models/components/createindividualprofileupdate.d.ts.map +0 -1
  60. package/models/components/createindividualprofileupdate.js.map +0 -1
  61. package/models/components/createprofileupdate.d.ts +0 -33
  62. package/models/components/createprofileupdate.d.ts.map +0 -1
  63. package/models/components/createprofileupdate.js +0 -73
  64. package/models/components/createprofileupdate.js.map +0 -1
  65. package/models/components/customersupportupdate.d.ts +0 -43
  66. package/models/components/customersupportupdate.d.ts.map +0 -1
  67. package/models/components/customersupportupdate.js +0 -77
  68. package/models/components/customersupportupdate.js.map +0 -1
  69. package/models/components/settingsupdate.d.ts +0 -39
  70. package/models/components/settingsupdate.d.ts.map +0 -1
  71. package/models/components/settingsupdate.js +0 -73
  72. package/models/components/settingsupdate.js.map +0 -1
  73. package/src/models/components/achpaymentsettingsupdate.ts +0 -69
  74. package/src/models/components/createaccountupdate.ts +0 -227
  75. package/src/models/components/createprofileupdate.ts +0 -82
  76. package/src/models/components/customersupportupdate.ts +0 -96
  77. package/src/models/components/settingsupdate.ts +0 -84
@@ -1 +0,0 @@
1
- {"version":3,"file":"customersupportupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/customersupportupdate.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;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,KAAK,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAC7C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAMrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
@@ -1,77 +0,0 @@
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.CustomerSupportUpdate$ = exports.CustomerSupportUpdate$outboundSchema = exports.CustomerSupportUpdate$inboundSchema = void 0;
40
- exports.customerSupportUpdateToJSON = customerSupportUpdateToJSON;
41
- exports.customerSupportUpdateFromJSON = customerSupportUpdateFromJSON;
42
- const z = __importStar(require("zod"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- const addressupdate_js_1 = require("./addressupdate.js");
45
- const phonenumber_js_1 = require("./phonenumber.js");
46
- /** @internal */
47
- exports.CustomerSupportUpdate$inboundSchema = z.object({
48
- phone: phonenumber_js_1.PhoneNumber$inboundSchema.optional(),
49
- email: z.string().optional(),
50
- address: addressupdate_js_1.AddressUpdate$inboundSchema.optional(),
51
- website: z.string().optional(),
52
- });
53
- /** @internal */
54
- exports.CustomerSupportUpdate$outboundSchema = z.object({
55
- phone: phonenumber_js_1.PhoneNumber$outboundSchema.optional(),
56
- email: z.string().optional(),
57
- address: addressupdate_js_1.AddressUpdate$outboundSchema.optional(),
58
- website: z.string().optional(),
59
- });
60
- /**
61
- * @internal
62
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
- */
64
- var CustomerSupportUpdate$;
65
- (function (CustomerSupportUpdate$) {
66
- /** @deprecated use `CustomerSupportUpdate$inboundSchema` instead. */
67
- CustomerSupportUpdate$.inboundSchema = exports.CustomerSupportUpdate$inboundSchema;
68
- /** @deprecated use `CustomerSupportUpdate$outboundSchema` instead. */
69
- CustomerSupportUpdate$.outboundSchema = exports.CustomerSupportUpdate$outboundSchema;
70
- })(CustomerSupportUpdate$ || (exports.CustomerSupportUpdate$ = CustomerSupportUpdate$ = {}));
71
- function customerSupportUpdateToJSON(customerSupportUpdate) {
72
- return JSON.stringify(exports.CustomerSupportUpdate$outboundSchema.parse(customerSupportUpdate));
73
- }
74
- function customerSupportUpdateFromJSON(jsonString) {
75
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CustomerSupportUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CustomerSupportUpdate' from JSON`);
76
- }
77
- //# sourceMappingURL=customersupportupdate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"customersupportupdate.js","sourceRoot":"","sources":["../../src/models/components/customersupportupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EH,kEAMC;AAED,sEAQC;AA3FD,uCAAyB;AACzB,qDAAiD;AAGjD,yDAK4B;AAC5B,qDAK0B;AAe1B,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,0CAAyB,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,OAAO,EAAE,8CAA2B,CAAC,QAAQ,EAAE;IAC/C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,2CAA0B,CAAC,QAAQ,EAAE;IAC5C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,OAAO,EAAE,+CAA4B,CAAC,QAAQ,EAAE;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
@@ -1,39 +0,0 @@
1
- import * as z from "zod";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { ACHPaymentSettingsUpdate, ACHPaymentSettingsUpdate$Outbound } from "./achpaymentsettingsupdate.js";
5
- import { CardPaymentSettings, CardPaymentSettings$Outbound } from "./cardpaymentsettings.js";
6
- /**
7
- * User provided settings to manage an account.
8
- */
9
- export type SettingsUpdate = {
10
- /**
11
- * User provided settings to manage card payments. This data is only allowed on a business account.
12
- */
13
- cardPayment?: CardPaymentSettings | undefined;
14
- achPayment?: ACHPaymentSettingsUpdate | undefined;
15
- };
16
- /** @internal */
17
- export declare const SettingsUpdate$inboundSchema: z.ZodType<SettingsUpdate, z.ZodTypeDef, unknown>;
18
- /** @internal */
19
- export type SettingsUpdate$Outbound = {
20
- cardPayment?: CardPaymentSettings$Outbound | undefined;
21
- achPayment?: ACHPaymentSettingsUpdate$Outbound | undefined;
22
- };
23
- /** @internal */
24
- export declare const SettingsUpdate$outboundSchema: z.ZodType<SettingsUpdate$Outbound, z.ZodTypeDef, SettingsUpdate>;
25
- /**
26
- * @internal
27
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
28
- */
29
- export declare namespace SettingsUpdate$ {
30
- /** @deprecated use `SettingsUpdate$inboundSchema` instead. */
31
- const inboundSchema: z.ZodType<SettingsUpdate, z.ZodTypeDef, unknown>;
32
- /** @deprecated use `SettingsUpdate$outboundSchema` instead. */
33
- const outboundSchema: z.ZodType<SettingsUpdate$Outbound, z.ZodTypeDef, SettingsUpdate>;
34
- /** @deprecated use `SettingsUpdate$Outbound` instead. */
35
- type Outbound = SettingsUpdate$Outbound;
36
- }
37
- export declare function settingsUpdateToJSON(settingsUpdate: SettingsUpdate): string;
38
- export declare function settingsUpdateFromJSON(jsonString: string): SafeParseResult<SettingsUpdate, SDKValidationError>;
39
- //# sourceMappingURL=settingsupdate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settingsupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/settingsupdate.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;AACrE,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAC9C,UAAU,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CACnD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,WAAW,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACvD,UAAU,CAAC,EAAE,iCAAiC,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAId,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -1,73 +0,0 @@
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.SettingsUpdate$ = exports.SettingsUpdate$outboundSchema = exports.SettingsUpdate$inboundSchema = void 0;
40
- exports.settingsUpdateToJSON = settingsUpdateToJSON;
41
- exports.settingsUpdateFromJSON = settingsUpdateFromJSON;
42
- const z = __importStar(require("zod"));
43
- const schemas_js_1 = require("../../lib/schemas.js");
44
- const achpaymentsettingsupdate_js_1 = require("./achpaymentsettingsupdate.js");
45
- const cardpaymentsettings_js_1 = require("./cardpaymentsettings.js");
46
- /** @internal */
47
- exports.SettingsUpdate$inboundSchema = z.object({
48
- cardPayment: cardpaymentsettings_js_1.CardPaymentSettings$inboundSchema.optional(),
49
- achPayment: achpaymentsettingsupdate_js_1.ACHPaymentSettingsUpdate$inboundSchema.optional(),
50
- });
51
- /** @internal */
52
- exports.SettingsUpdate$outboundSchema = z.object({
53
- cardPayment: cardpaymentsettings_js_1.CardPaymentSettings$outboundSchema.optional(),
54
- achPayment: achpaymentsettingsupdate_js_1.ACHPaymentSettingsUpdate$outboundSchema.optional(),
55
- });
56
- /**
57
- * @internal
58
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
- */
60
- var SettingsUpdate$;
61
- (function (SettingsUpdate$) {
62
- /** @deprecated use `SettingsUpdate$inboundSchema` instead. */
63
- SettingsUpdate$.inboundSchema = exports.SettingsUpdate$inboundSchema;
64
- /** @deprecated use `SettingsUpdate$outboundSchema` instead. */
65
- SettingsUpdate$.outboundSchema = exports.SettingsUpdate$outboundSchema;
66
- })(SettingsUpdate$ || (exports.SettingsUpdate$ = SettingsUpdate$ = {}));
67
- function settingsUpdateToJSON(settingsUpdate) {
68
- return JSON.stringify(exports.SettingsUpdate$outboundSchema.parse(settingsUpdate));
69
- }
70
- function settingsUpdateFromJSON(jsonString) {
71
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SettingsUpdate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SettingsUpdate' from JSON`);
72
- }
73
- //# sourceMappingURL=settingsupdate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"settingsupdate.js","sourceRoot":"","sources":["../../src/models/components/settingsupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqEH,oDAEC;AAED,wDAQC;AA/ED,uCAAyB;AACzB,qDAAiD;AAGjD,+EAKuC;AACvC,qEAKkC;AAalC,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,0DAAiC,CAAC,QAAQ,EAAE;IACzD,UAAU,EAAE,oEAAsC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,2DAAkC,CAAC,QAAQ,EAAE;IAC1D,UAAU,EAAE,qEAAuC,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,eAAe,CAO/B;AAPD,WAAiB,eAAe;IAC9B,8DAA8D;IACjD,6BAAa,GAAG,oCAA4B,CAAC;IAC1D,+DAA+D;IAClD,8BAAc,GAAG,qCAA6B,CAAC;AAG9D,CAAC,EAPgB,eAAe,+BAAf,eAAe,QAO/B;AAED,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -1,69 +0,0 @@
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
- export type ACHPaymentSettingsUpdate = {
11
- /**
12
- * The description that shows up on ACH transactions. This will default to the account's display name on account creation.
13
- */
14
- companyName?: string | undefined;
15
- };
16
-
17
- /** @internal */
18
- export const ACHPaymentSettingsUpdate$inboundSchema: z.ZodType<
19
- ACHPaymentSettingsUpdate,
20
- z.ZodTypeDef,
21
- unknown
22
- > = z.object({
23
- companyName: z.string().optional(),
24
- });
25
-
26
- /** @internal */
27
- export type ACHPaymentSettingsUpdate$Outbound = {
28
- companyName?: string | undefined;
29
- };
30
-
31
- /** @internal */
32
- export const ACHPaymentSettingsUpdate$outboundSchema: z.ZodType<
33
- ACHPaymentSettingsUpdate$Outbound,
34
- z.ZodTypeDef,
35
- ACHPaymentSettingsUpdate
36
- > = z.object({
37
- companyName: z.string().optional(),
38
- });
39
-
40
- /**
41
- * @internal
42
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
- */
44
- export namespace ACHPaymentSettingsUpdate$ {
45
- /** @deprecated use `ACHPaymentSettingsUpdate$inboundSchema` instead. */
46
- export const inboundSchema = ACHPaymentSettingsUpdate$inboundSchema;
47
- /** @deprecated use `ACHPaymentSettingsUpdate$outboundSchema` instead. */
48
- export const outboundSchema = ACHPaymentSettingsUpdate$outboundSchema;
49
- /** @deprecated use `ACHPaymentSettingsUpdate$Outbound` instead. */
50
- export type Outbound = ACHPaymentSettingsUpdate$Outbound;
51
- }
52
-
53
- export function achPaymentSettingsUpdateToJSON(
54
- achPaymentSettingsUpdate: ACHPaymentSettingsUpdate,
55
- ): string {
56
- return JSON.stringify(
57
- ACHPaymentSettingsUpdate$outboundSchema.parse(achPaymentSettingsUpdate),
58
- );
59
- }
60
-
61
- export function achPaymentSettingsUpdateFromJSON(
62
- jsonString: string,
63
- ): SafeParseResult<ACHPaymentSettingsUpdate, SDKValidationError> {
64
- return safeParse(
65
- jsonString,
66
- (x) => ACHPaymentSettingsUpdate$inboundSchema.parse(JSON.parse(x)),
67
- `Failed to parse 'ACHPaymentSettingsUpdate' from JSON`,
68
- );
69
- }
@@ -1,227 +0,0 @@
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
- import {
10
- AccountType,
11
- AccountType$inboundSchema,
12
- AccountType$outboundSchema,
13
- } from "./accounttype.js";
14
- import {
15
- CapabilityID,
16
- CapabilityID$inboundSchema,
17
- CapabilityID$outboundSchema,
18
- } from "./capabilityid.js";
19
- import {
20
- CreateProfileUpdate,
21
- CreateProfileUpdate$inboundSchema,
22
- CreateProfileUpdate$Outbound,
23
- CreateProfileUpdate$outboundSchema,
24
- } from "./createprofileupdate.js";
25
- import {
26
- CustomerSupportUpdate,
27
- CustomerSupportUpdate$inboundSchema,
28
- CustomerSupportUpdate$Outbound,
29
- CustomerSupportUpdate$outboundSchema,
30
- } from "./customersupportupdate.js";
31
- import {
32
- ManualTermsOfServiceUpdate,
33
- ManualTermsOfServiceUpdate$inboundSchema,
34
- ManualTermsOfServiceUpdate$Outbound,
35
- ManualTermsOfServiceUpdate$outboundSchema,
36
- } from "./manualtermsofserviceupdate.js";
37
- import {
38
- SettingsUpdate,
39
- SettingsUpdate$inboundSchema,
40
- SettingsUpdate$Outbound,
41
- SettingsUpdate$outboundSchema,
42
- } from "./settingsupdate.js";
43
- import {
44
- TermsOfServiceTokenUpdate,
45
- TermsOfServiceTokenUpdate$inboundSchema,
46
- TermsOfServiceTokenUpdate$Outbound,
47
- TermsOfServiceTokenUpdate$outboundSchema,
48
- } from "./termsofservicetokenupdate.js";
49
-
50
- export type CreateAccountUpdateTermsOfService =
51
- | TermsOfServiceTokenUpdate
52
- | ManualTermsOfServiceUpdate;
53
-
54
- export type CreateAccountUpdate = {
55
- /**
56
- * The type of entity represented by this account.
57
- */
58
- accountType?: AccountType | undefined;
59
- profile?: CreateProfileUpdate | undefined;
60
- /**
61
- * Free-form key-value pair list. Useful for storing information that is not captured elsewhere.
62
- */
63
- metadata?: { [k: string]: string } | undefined;
64
- termsOfService?:
65
- | TermsOfServiceTokenUpdate
66
- | ManualTermsOfServiceUpdate
67
- | undefined;
68
- /**
69
- * Optional alias from a foreign/external system which can be used to reference this resource.
70
- */
71
- foreignID?: string | undefined;
72
- /**
73
- * User-provided information that can be displayed on credit card transactions for customers to use when
74
- *
75
- * @remarks
76
- * contacting a customer support team. This data is only allowed on a business account.
77
- */
78
- customerSupport?: CustomerSupportUpdate | undefined;
79
- /**
80
- * User provided settings to manage an account.
81
- */
82
- settings?: SettingsUpdate | undefined;
83
- capabilities?: Array<CapabilityID> | undefined;
84
- };
85
-
86
- /** @internal */
87
- export const CreateAccountUpdateTermsOfService$inboundSchema: z.ZodType<
88
- CreateAccountUpdateTermsOfService,
89
- z.ZodTypeDef,
90
- unknown
91
- > = z.union([
92
- TermsOfServiceTokenUpdate$inboundSchema,
93
- ManualTermsOfServiceUpdate$inboundSchema,
94
- ]);
95
-
96
- /** @internal */
97
- export type CreateAccountUpdateTermsOfService$Outbound =
98
- | TermsOfServiceTokenUpdate$Outbound
99
- | ManualTermsOfServiceUpdate$Outbound;
100
-
101
- /** @internal */
102
- export const CreateAccountUpdateTermsOfService$outboundSchema: z.ZodType<
103
- CreateAccountUpdateTermsOfService$Outbound,
104
- z.ZodTypeDef,
105
- CreateAccountUpdateTermsOfService
106
- > = z.union([
107
- TermsOfServiceTokenUpdate$outboundSchema,
108
- ManualTermsOfServiceUpdate$outboundSchema,
109
- ]);
110
-
111
- /**
112
- * @internal
113
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
114
- */
115
- export namespace CreateAccountUpdateTermsOfService$ {
116
- /** @deprecated use `CreateAccountUpdateTermsOfService$inboundSchema` instead. */
117
- export const inboundSchema = CreateAccountUpdateTermsOfService$inboundSchema;
118
- /** @deprecated use `CreateAccountUpdateTermsOfService$outboundSchema` instead. */
119
- export const outboundSchema =
120
- CreateAccountUpdateTermsOfService$outboundSchema;
121
- /** @deprecated use `CreateAccountUpdateTermsOfService$Outbound` instead. */
122
- export type Outbound = CreateAccountUpdateTermsOfService$Outbound;
123
- }
124
-
125
- export function createAccountUpdateTermsOfServiceToJSON(
126
- createAccountUpdateTermsOfService: CreateAccountUpdateTermsOfService,
127
- ): string {
128
- return JSON.stringify(
129
- CreateAccountUpdateTermsOfService$outboundSchema.parse(
130
- createAccountUpdateTermsOfService,
131
- ),
132
- );
133
- }
134
-
135
- export function createAccountUpdateTermsOfServiceFromJSON(
136
- jsonString: string,
137
- ): SafeParseResult<CreateAccountUpdateTermsOfService, SDKValidationError> {
138
- return safeParse(
139
- jsonString,
140
- (x) => CreateAccountUpdateTermsOfService$inboundSchema.parse(JSON.parse(x)),
141
- `Failed to parse 'CreateAccountUpdateTermsOfService' from JSON`,
142
- );
143
- }
144
-
145
- /** @internal */
146
- export const CreateAccountUpdate$inboundSchema: z.ZodType<
147
- CreateAccountUpdate,
148
- z.ZodTypeDef,
149
- unknown
150
- > = z.object({
151
- accountType: AccountType$inboundSchema.optional(),
152
- profile: CreateProfileUpdate$inboundSchema.optional(),
153
- metadata: z.record(z.string()).optional(),
154
- termsOfService: z.union([
155
- TermsOfServiceTokenUpdate$inboundSchema,
156
- ManualTermsOfServiceUpdate$inboundSchema,
157
- ]).optional(),
158
- foreignID: z.string().optional(),
159
- customerSupport: CustomerSupportUpdate$inboundSchema.optional(),
160
- settings: SettingsUpdate$inboundSchema.optional(),
161
- capabilities: z.array(CapabilityID$inboundSchema).optional(),
162
- });
163
-
164
- /** @internal */
165
- export type CreateAccountUpdate$Outbound = {
166
- accountType?: string | undefined;
167
- profile?: CreateProfileUpdate$Outbound | undefined;
168
- metadata?: { [k: string]: string } | undefined;
169
- termsOfService?:
170
- | TermsOfServiceTokenUpdate$Outbound
171
- | ManualTermsOfServiceUpdate$Outbound
172
- | undefined;
173
- foreignID?: string | undefined;
174
- customerSupport?: CustomerSupportUpdate$Outbound | undefined;
175
- settings?: SettingsUpdate$Outbound | undefined;
176
- capabilities?: Array<string> | undefined;
177
- };
178
-
179
- /** @internal */
180
- export const CreateAccountUpdate$outboundSchema: z.ZodType<
181
- CreateAccountUpdate$Outbound,
182
- z.ZodTypeDef,
183
- CreateAccountUpdate
184
- > = z.object({
185
- accountType: AccountType$outboundSchema.optional(),
186
- profile: CreateProfileUpdate$outboundSchema.optional(),
187
- metadata: z.record(z.string()).optional(),
188
- termsOfService: z.union([
189
- TermsOfServiceTokenUpdate$outboundSchema,
190
- ManualTermsOfServiceUpdate$outboundSchema,
191
- ]).optional(),
192
- foreignID: z.string().optional(),
193
- customerSupport: CustomerSupportUpdate$outboundSchema.optional(),
194
- settings: SettingsUpdate$outboundSchema.optional(),
195
- capabilities: z.array(CapabilityID$outboundSchema).optional(),
196
- });
197
-
198
- /**
199
- * @internal
200
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
201
- */
202
- export namespace CreateAccountUpdate$ {
203
- /** @deprecated use `CreateAccountUpdate$inboundSchema` instead. */
204
- export const inboundSchema = CreateAccountUpdate$inboundSchema;
205
- /** @deprecated use `CreateAccountUpdate$outboundSchema` instead. */
206
- export const outboundSchema = CreateAccountUpdate$outboundSchema;
207
- /** @deprecated use `CreateAccountUpdate$Outbound` instead. */
208
- export type Outbound = CreateAccountUpdate$Outbound;
209
- }
210
-
211
- export function createAccountUpdateToJSON(
212
- createAccountUpdate: CreateAccountUpdate,
213
- ): string {
214
- return JSON.stringify(
215
- CreateAccountUpdate$outboundSchema.parse(createAccountUpdate),
216
- );
217
- }
218
-
219
- export function createAccountUpdateFromJSON(
220
- jsonString: string,
221
- ): SafeParseResult<CreateAccountUpdate, SDKValidationError> {
222
- return safeParse(
223
- jsonString,
224
- (x) => CreateAccountUpdate$inboundSchema.parse(JSON.parse(x)),
225
- `Failed to parse 'CreateAccountUpdate' from JSON`,
226
- );
227
- }
@@ -1,82 +0,0 @@
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
- import {
10
- CreateBusinessProfileUpdate,
11
- CreateBusinessProfileUpdate$inboundSchema,
12
- CreateBusinessProfileUpdate$Outbound,
13
- CreateBusinessProfileUpdate$outboundSchema,
14
- } from "./createbusinessprofileupdate.js";
15
- import {
16
- CreateIndividualProfileUpdate,
17
- CreateIndividualProfileUpdate$inboundSchema,
18
- CreateIndividualProfileUpdate$Outbound,
19
- CreateIndividualProfileUpdate$outboundSchema,
20
- } from "./createindividualprofileupdate.js";
21
-
22
- export type CreateProfileUpdate = {
23
- individual?: CreateIndividualProfileUpdate | undefined;
24
- business?: CreateBusinessProfileUpdate | undefined;
25
- };
26
-
27
- /** @internal */
28
- export const CreateProfileUpdate$inboundSchema: z.ZodType<
29
- CreateProfileUpdate,
30
- z.ZodTypeDef,
31
- unknown
32
- > = z.object({
33
- individual: CreateIndividualProfileUpdate$inboundSchema.optional(),
34
- business: CreateBusinessProfileUpdate$inboundSchema.optional(),
35
- });
36
-
37
- /** @internal */
38
- export type CreateProfileUpdate$Outbound = {
39
- individual?: CreateIndividualProfileUpdate$Outbound | undefined;
40
- business?: CreateBusinessProfileUpdate$Outbound | undefined;
41
- };
42
-
43
- /** @internal */
44
- export const CreateProfileUpdate$outboundSchema: z.ZodType<
45
- CreateProfileUpdate$Outbound,
46
- z.ZodTypeDef,
47
- CreateProfileUpdate
48
- > = z.object({
49
- individual: CreateIndividualProfileUpdate$outboundSchema.optional(),
50
- business: CreateBusinessProfileUpdate$outboundSchema.optional(),
51
- });
52
-
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
- export namespace CreateProfileUpdate$ {
58
- /** @deprecated use `CreateProfileUpdate$inboundSchema` instead. */
59
- export const inboundSchema = CreateProfileUpdate$inboundSchema;
60
- /** @deprecated use `CreateProfileUpdate$outboundSchema` instead. */
61
- export const outboundSchema = CreateProfileUpdate$outboundSchema;
62
- /** @deprecated use `CreateProfileUpdate$Outbound` instead. */
63
- export type Outbound = CreateProfileUpdate$Outbound;
64
- }
65
-
66
- export function createProfileUpdateToJSON(
67
- createProfileUpdate: CreateProfileUpdate,
68
- ): string {
69
- return JSON.stringify(
70
- CreateProfileUpdate$outboundSchema.parse(createProfileUpdate),
71
- );
72
- }
73
-
74
- export function createProfileUpdateFromJSON(
75
- jsonString: string,
76
- ): SafeParseResult<CreateProfileUpdate, SDKValidationError> {
77
- return safeParse(
78
- jsonString,
79
- (x) => CreateProfileUpdate$inboundSchema.parse(JSON.parse(x)),
80
- `Failed to parse 'CreateProfileUpdate' from JSON`,
81
- );
82
- }