@moovio/sdk 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/README.md +8 -0
  2. package/docs/sdks/branding/README.md +113 -2
  3. package/funcs/brandingCreate.js +1 -1
  4. package/funcs/brandingCreate.js.map +1 -1
  5. package/funcs/brandingUpsert.d.ts +16 -0
  6. package/funcs/brandingUpsert.d.ts.map +1 -0
  7. package/funcs/brandingUpsert.js +132 -0
  8. package/funcs/brandingUpsert.js.map +1 -0
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/models/components/achcreditsamedaypaymentmethod.d.ts +5 -5
  13. package/models/components/achcreditsamedaypaymentmethod.d.ts.map +1 -1
  14. package/models/components/achcreditsamedaypaymentmethod.js +3 -3
  15. package/models/components/achcreditsamedaypaymentmethod.js.map +1 -1
  16. package/models/components/achcreditstandardpaymentmethod.d.ts +5 -5
  17. package/models/components/achcreditstandardpaymentmethod.d.ts.map +1 -1
  18. package/models/components/achcreditstandardpaymentmethod.js +3 -3
  19. package/models/components/achcreditstandardpaymentmethod.js.map +1 -1
  20. package/models/components/achdebitcollectpaymentmethod.d.ts +5 -5
  21. package/models/components/achdebitcollectpaymentmethod.d.ts.map +1 -1
  22. package/models/components/achdebitcollectpaymentmethod.js +3 -3
  23. package/models/components/achdebitcollectpaymentmethod.js.map +1 -1
  24. package/models/components/achdebitfundpaymentmethod.d.ts +5 -5
  25. package/models/components/achdebitfundpaymentmethod.d.ts.map +1 -1
  26. package/models/components/achdebitfundpaymentmethod.js +3 -3
  27. package/models/components/achdebitfundpaymentmethod.js.map +1 -1
  28. package/models/components/applepaypaymentmethod.d.ts +6 -2
  29. package/models/components/applepaypaymentmethod.d.ts.map +1 -1
  30. package/models/components/applepaypaymentmethod.js +3 -2
  31. package/models/components/applepaypaymentmethod.js.map +1 -1
  32. package/models/components/brandcolors.d.ts +35 -0
  33. package/models/components/brandcolors.d.ts.map +1 -0
  34. package/models/components/{colors.js → brandcolors.js} +17 -18
  35. package/models/components/brandcolors.js.map +1 -0
  36. package/models/components/brandproperties.d.ts +33 -0
  37. package/models/components/brandproperties.d.ts.map +1 -0
  38. package/models/components/{brand.js → brandproperties.js} +20 -21
  39. package/models/components/brandproperties.js.map +1 -0
  40. package/models/components/cardpaymentpaymentmethod.d.ts +5 -5
  41. package/models/components/cardpaymentpaymentmethod.d.ts.map +1 -1
  42. package/models/components/cardpaymentpaymentmethod.js +3 -3
  43. package/models/components/cardpaymentpaymentmethod.js.map +1 -1
  44. package/models/components/createrepresentative.d.ts +1 -1
  45. package/models/components/index.d.ts +5 -2
  46. package/models/components/index.d.ts.map +1 -1
  47. package/models/components/index.js +5 -2
  48. package/models/components/index.js.map +1 -1
  49. package/models/components/moovwalletpaymentmethod.d.ts +3 -2
  50. package/models/components/moovwalletpaymentmethod.d.ts.map +1 -1
  51. package/models/components/moovwalletpaymentmethod.js +3 -2
  52. package/models/components/moovwalletpaymentmethod.js.map +1 -1
  53. package/models/components/paymentmethodsbankaccount.d.ts +66 -0
  54. package/models/components/paymentmethodsbankaccount.d.ts.map +1 -0
  55. package/models/components/paymentmethodsbankaccount.js +90 -0
  56. package/models/components/paymentmethodsbankaccount.js.map +1 -0
  57. package/models/components/paymentmethodscard.d.ts +121 -0
  58. package/models/components/paymentmethodscard.d.ts.map +1 -0
  59. package/models/components/paymentmethodscard.js +109 -0
  60. package/models/components/paymentmethodscard.js.map +1 -0
  61. package/models/components/paymentmethodswallet.d.ts +29 -0
  62. package/models/components/paymentmethodswallet.d.ts.map +1 -0
  63. package/models/components/paymentmethodswallet.js +69 -0
  64. package/models/components/paymentmethodswallet.js.map +1 -0
  65. package/models/components/pullfromcardpaymentmethod.d.ts +5 -5
  66. package/models/components/pullfromcardpaymentmethod.d.ts.map +1 -1
  67. package/models/components/pullfromcardpaymentmethod.js +3 -3
  68. package/models/components/pullfromcardpaymentmethod.js.map +1 -1
  69. package/models/components/pushtocardpaymentmethod.d.ts +5 -5
  70. package/models/components/pushtocardpaymentmethod.d.ts.map +1 -1
  71. package/models/components/pushtocardpaymentmethod.js +3 -3
  72. package/models/components/pushtocardpaymentmethod.js.map +1 -1
  73. package/models/components/rtpcreditpaymentmethod.d.ts +5 -5
  74. package/models/components/rtpcreditpaymentmethod.d.ts.map +1 -1
  75. package/models/components/rtpcreditpaymentmethod.js +3 -3
  76. package/models/components/rtpcreditpaymentmethod.js.map +1 -1
  77. package/models/operations/createbrand.d.ts +4 -4
  78. package/models/operations/createbrand.d.ts.map +1 -1
  79. package/models/operations/createbrand.js +6 -6
  80. package/models/operations/createbrand.js.map +1 -1
  81. package/models/operations/getbrand.d.ts +2 -2
  82. package/models/operations/getbrand.d.ts.map +1 -1
  83. package/models/operations/getbrand.js +2 -2
  84. package/models/operations/getbrand.js.map +1 -1
  85. package/models/operations/index.d.ts +1 -0
  86. package/models/operations/index.d.ts.map +1 -1
  87. package/models/operations/index.js +1 -0
  88. package/models/operations/index.js.map +1 -1
  89. package/models/operations/updatebrand.d.ts +2 -2
  90. package/models/operations/updatebrand.d.ts.map +1 -1
  91. package/models/operations/updatebrand.js +2 -2
  92. package/models/operations/updatebrand.js.map +1 -1
  93. package/models/operations/upsertbrand.d.ts +101 -0
  94. package/models/operations/upsertbrand.d.ts.map +1 -0
  95. package/models/operations/upsertbrand.js +155 -0
  96. package/models/operations/upsertbrand.js.map +1 -0
  97. package/package.json +1 -1
  98. package/sdk/branding.d.ts +7 -0
  99. package/sdk/branding.d.ts.map +1 -1
  100. package/sdk/branding.js +10 -0
  101. package/sdk/branding.js.map +1 -1
  102. package/src/funcs/brandingCreate.ts +1 -1
  103. package/src/funcs/brandingUpsert.ts +165 -0
  104. package/src/lib/config.ts +3 -3
  105. package/src/models/components/achcreditsamedaypaymentmethod.ts +11 -11
  106. package/src/models/components/achcreditstandardpaymentmethod.ts +11 -11
  107. package/src/models/components/achdebitcollectpaymentmethod.ts +11 -11
  108. package/src/models/components/achdebitfundpaymentmethod.ts +11 -11
  109. package/src/models/components/applepaypaymentmethod.ts +13 -4
  110. package/src/models/components/brandcolors.ts +75 -0
  111. package/src/models/components/brandproperties.ts +73 -0
  112. package/src/models/components/cardpaymentpaymentmethod.ts +11 -11
  113. package/src/models/components/createrepresentative.ts +1 -1
  114. package/src/models/components/index.ts +5 -2
  115. package/src/models/components/moovwalletpaymentmethod.ts +10 -4
  116. package/src/models/components/paymentmethodsbankaccount.ts +133 -0
  117. package/src/models/components/paymentmethodscard.ts +226 -0
  118. package/src/models/components/paymentmethodswallet.ts +66 -0
  119. package/src/models/components/pullfromcardpaymentmethod.ts +11 -11
  120. package/src/models/components/pushtocardpaymentmethod.ts +11 -11
  121. package/src/models/components/rtpcreditpaymentmethod.ts +11 -11
  122. package/src/models/operations/createbrand.ts +10 -10
  123. package/src/models/operations/getbrand.ts +4 -4
  124. package/src/models/operations/index.ts +1 -0
  125. package/src/models/operations/updatebrand.ts +4 -4
  126. package/src/models/operations/upsertbrand.ts +231 -0
  127. package/src/sdk/branding.ts +18 -0
  128. package/models/components/brand.d.ts +0 -33
  129. package/models/components/brand.d.ts.map +0 -1
  130. package/models/components/brand.js.map +0 -1
  131. package/models/components/colors.d.ts +0 -32
  132. package/models/components/colors.d.ts.map +0 -1
  133. package/models/components/colors.js.map +0 -1
  134. package/src/models/components/brand.ts +0 -68
  135. package/src/models/components/colors.ts +0 -69
@@ -0,0 +1,226 @@
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
+ CardAccountUpdater,
11
+ CardAccountUpdater$inboundSchema,
12
+ CardAccountUpdater$Outbound,
13
+ CardAccountUpdater$outboundSchema,
14
+ } from "./cardaccountupdater.js";
15
+ import {
16
+ CardAddress,
17
+ CardAddress$inboundSchema,
18
+ CardAddress$Outbound,
19
+ CardAddress$outboundSchema,
20
+ } from "./cardaddress.js";
21
+ import {
22
+ CardBrand,
23
+ CardBrand$inboundSchema,
24
+ CardBrand$outboundSchema,
25
+ } from "./cardbrand.js";
26
+ import {
27
+ CardExpiration,
28
+ CardExpiration$inboundSchema,
29
+ CardExpiration$Outbound,
30
+ CardExpiration$outboundSchema,
31
+ } from "./cardexpiration.js";
32
+ import {
33
+ CardType,
34
+ CardType$inboundSchema,
35
+ CardType$outboundSchema,
36
+ } from "./cardtype.js";
37
+ import {
38
+ CardVerification,
39
+ CardVerification$inboundSchema,
40
+ CardVerification$Outbound,
41
+ CardVerification$outboundSchema,
42
+ } from "./cardverification.js";
43
+ import {
44
+ DomesticPullFromCard,
45
+ DomesticPullFromCard$inboundSchema,
46
+ DomesticPullFromCard$outboundSchema,
47
+ } from "./domesticpullfromcard.js";
48
+ import {
49
+ DomesticPushToCard,
50
+ DomesticPushToCard$inboundSchema,
51
+ DomesticPushToCard$outboundSchema,
52
+ } from "./domesticpushtocard.js";
53
+
54
+ /**
55
+ * A card as contained within a payment method.
56
+ */
57
+ export type PaymentMethodsCard = {
58
+ /**
59
+ * ID of the card.
60
+ */
61
+ cardID: string;
62
+ /**
63
+ * Uniquely identifies a linked payment card or token.
64
+ *
65
+ * @remarks
66
+ * For Apple Pay, the fingerprint is based on the tokenized card number and may vary based on the user's device.
67
+ * This field can be used to identify specific payment methods across multiple accounts on your platform.
68
+ */
69
+ fingerprint: string;
70
+ /**
71
+ * The card brand.
72
+ */
73
+ brand: CardBrand;
74
+ /**
75
+ * The type of the card.
76
+ */
77
+ cardType: CardType;
78
+ /**
79
+ * Last four digits of the card number
80
+ */
81
+ lastFourCardNumber: string;
82
+ /**
83
+ * The first six to eight digits of the card number, which identifies the financial institution that issued the card.
84
+ */
85
+ bin: string;
86
+ /**
87
+ * The expiration date of the card or token.
88
+ */
89
+ expiration: CardExpiration;
90
+ /**
91
+ * The name of the cardholder as it appears on the card.
92
+ */
93
+ holderName: string;
94
+ billingAddress: CardAddress;
95
+ /**
96
+ * The results of submitting cardholder data to a card network for verification.
97
+ */
98
+ cardVerification: CardVerification;
99
+ /**
100
+ * Financial institution that issued the card.
101
+ */
102
+ issuer: string;
103
+ /**
104
+ * Country where the card was issued.
105
+ */
106
+ issuerCountry: string;
107
+ /**
108
+ * Indicates cardholder has authorized card to be stored for future payments.
109
+ */
110
+ cardOnFile?: boolean | undefined;
111
+ merchantAccountID?: string | undefined;
112
+ /**
113
+ * The results of the most recent card update request.
114
+ */
115
+ cardAccountUpdater?: CardAccountUpdater | undefined;
116
+ /**
117
+ * Indicates which level of domestic push-to-card transfer is supported by the card, if any.
118
+ */
119
+ domesticPushToCard: DomesticPushToCard;
120
+ /**
121
+ * Indicates if the card supports domestic pull-from-card transfer.
122
+ */
123
+ domesticPullFromCard: DomesticPullFromCard;
124
+ };
125
+
126
+ /** @internal */
127
+ export const PaymentMethodsCard$inboundSchema: z.ZodType<
128
+ PaymentMethodsCard,
129
+ z.ZodTypeDef,
130
+ unknown
131
+ > = z.object({
132
+ cardID: z.string(),
133
+ fingerprint: z.string(),
134
+ brand: CardBrand$inboundSchema,
135
+ cardType: CardType$inboundSchema,
136
+ lastFourCardNumber: z.string(),
137
+ bin: z.string(),
138
+ expiration: CardExpiration$inboundSchema,
139
+ holderName: z.string(),
140
+ billingAddress: CardAddress$inboundSchema,
141
+ cardVerification: CardVerification$inboundSchema,
142
+ issuer: z.string(),
143
+ issuerCountry: z.string(),
144
+ cardOnFile: z.boolean().optional(),
145
+ merchantAccountID: z.string().optional(),
146
+ cardAccountUpdater: CardAccountUpdater$inboundSchema.optional(),
147
+ domesticPushToCard: DomesticPushToCard$inboundSchema,
148
+ domesticPullFromCard: DomesticPullFromCard$inboundSchema,
149
+ });
150
+
151
+ /** @internal */
152
+ export type PaymentMethodsCard$Outbound = {
153
+ cardID: string;
154
+ fingerprint: string;
155
+ brand: string;
156
+ cardType: string;
157
+ lastFourCardNumber: string;
158
+ bin: string;
159
+ expiration: CardExpiration$Outbound;
160
+ holderName: string;
161
+ billingAddress: CardAddress$Outbound;
162
+ cardVerification: CardVerification$Outbound;
163
+ issuer: string;
164
+ issuerCountry: string;
165
+ cardOnFile?: boolean | undefined;
166
+ merchantAccountID?: string | undefined;
167
+ cardAccountUpdater?: CardAccountUpdater$Outbound | undefined;
168
+ domesticPushToCard: string;
169
+ domesticPullFromCard: string;
170
+ };
171
+
172
+ /** @internal */
173
+ export const PaymentMethodsCard$outboundSchema: z.ZodType<
174
+ PaymentMethodsCard$Outbound,
175
+ z.ZodTypeDef,
176
+ PaymentMethodsCard
177
+ > = z.object({
178
+ cardID: z.string(),
179
+ fingerprint: z.string(),
180
+ brand: CardBrand$outboundSchema,
181
+ cardType: CardType$outboundSchema,
182
+ lastFourCardNumber: z.string(),
183
+ bin: z.string(),
184
+ expiration: CardExpiration$outboundSchema,
185
+ holderName: z.string(),
186
+ billingAddress: CardAddress$outboundSchema,
187
+ cardVerification: CardVerification$outboundSchema,
188
+ issuer: z.string(),
189
+ issuerCountry: z.string(),
190
+ cardOnFile: z.boolean().optional(),
191
+ merchantAccountID: z.string().optional(),
192
+ cardAccountUpdater: CardAccountUpdater$outboundSchema.optional(),
193
+ domesticPushToCard: DomesticPushToCard$outboundSchema,
194
+ domesticPullFromCard: DomesticPullFromCard$outboundSchema,
195
+ });
196
+
197
+ /**
198
+ * @internal
199
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
200
+ */
201
+ export namespace PaymentMethodsCard$ {
202
+ /** @deprecated use `PaymentMethodsCard$inboundSchema` instead. */
203
+ export const inboundSchema = PaymentMethodsCard$inboundSchema;
204
+ /** @deprecated use `PaymentMethodsCard$outboundSchema` instead. */
205
+ export const outboundSchema = PaymentMethodsCard$outboundSchema;
206
+ /** @deprecated use `PaymentMethodsCard$Outbound` instead. */
207
+ export type Outbound = PaymentMethodsCard$Outbound;
208
+ }
209
+
210
+ export function paymentMethodsCardToJSON(
211
+ paymentMethodsCard: PaymentMethodsCard,
212
+ ): string {
213
+ return JSON.stringify(
214
+ PaymentMethodsCard$outboundSchema.parse(paymentMethodsCard),
215
+ );
216
+ }
217
+
218
+ export function paymentMethodsCardFromJSON(
219
+ jsonString: string,
220
+ ): SafeParseResult<PaymentMethodsCard, SDKValidationError> {
221
+ return safeParse(
222
+ jsonString,
223
+ (x) => PaymentMethodsCard$inboundSchema.parse(JSON.parse(x)),
224
+ `Failed to parse 'PaymentMethodsCard' from JSON`,
225
+ );
226
+ }
@@ -0,0 +1,66 @@
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 PaymentMethodsWallet = {
11
+ walletID: string;
12
+ };
13
+
14
+ /** @internal */
15
+ export const PaymentMethodsWallet$inboundSchema: z.ZodType<
16
+ PaymentMethodsWallet,
17
+ z.ZodTypeDef,
18
+ unknown
19
+ > = z.object({
20
+ walletID: z.string(),
21
+ });
22
+
23
+ /** @internal */
24
+ export type PaymentMethodsWallet$Outbound = {
25
+ walletID: string;
26
+ };
27
+
28
+ /** @internal */
29
+ export const PaymentMethodsWallet$outboundSchema: z.ZodType<
30
+ PaymentMethodsWallet$Outbound,
31
+ z.ZodTypeDef,
32
+ PaymentMethodsWallet
33
+ > = z.object({
34
+ walletID: z.string(),
35
+ });
36
+
37
+ /**
38
+ * @internal
39
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
40
+ */
41
+ export namespace PaymentMethodsWallet$ {
42
+ /** @deprecated use `PaymentMethodsWallet$inboundSchema` instead. */
43
+ export const inboundSchema = PaymentMethodsWallet$inboundSchema;
44
+ /** @deprecated use `PaymentMethodsWallet$outboundSchema` instead. */
45
+ export const outboundSchema = PaymentMethodsWallet$outboundSchema;
46
+ /** @deprecated use `PaymentMethodsWallet$Outbound` instead. */
47
+ export type Outbound = PaymentMethodsWallet$Outbound;
48
+ }
49
+
50
+ export function paymentMethodsWalletToJSON(
51
+ paymentMethodsWallet: PaymentMethodsWallet,
52
+ ): string {
53
+ return JSON.stringify(
54
+ PaymentMethodsWallet$outboundSchema.parse(paymentMethodsWallet),
55
+ );
56
+ }
57
+
58
+ export function paymentMethodsWalletFromJSON(
59
+ jsonString: string,
60
+ ): SafeParseResult<PaymentMethodsWallet, SDKValidationError> {
61
+ return safeParse(
62
+ jsonString,
63
+ (x) => PaymentMethodsWallet$inboundSchema.parse(JSON.parse(x)),
64
+ `Failed to parse 'PaymentMethodsWallet' from JSON`,
65
+ );
66
+ }
@@ -8,11 +8,11 @@ import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  import {
11
- Card,
12
- Card$inboundSchema,
13
- Card$Outbound,
14
- Card$outboundSchema,
15
- } from "./card.js";
11
+ PaymentMethodsCard,
12
+ PaymentMethodsCard$inboundSchema,
13
+ PaymentMethodsCard$Outbound,
14
+ PaymentMethodsCard$outboundSchema,
15
+ } from "./paymentmethodscard.js";
16
16
 
17
17
  export const PullFromCardPaymentMethodPaymentMethodType = {
18
18
  PullFromCard: "pull-from-card",
@@ -26,11 +26,11 @@ export type PullFromCardPaymentMethod = {
26
26
  * ID of the payment method.
27
27
  */
28
28
  paymentMethodID: string;
29
+ paymentMethodType: PullFromCardPaymentMethodPaymentMethodType;
29
30
  /**
30
- * Describes a card on a Moov account.
31
+ * A card as contained within a payment method.
31
32
  */
32
- card: Card;
33
- paymentMethodType: PullFromCardPaymentMethodPaymentMethodType;
33
+ card: PaymentMethodsCard;
34
34
  };
35
35
 
36
36
  /** @internal */
@@ -63,15 +63,15 @@ export const PullFromCardPaymentMethod$inboundSchema: z.ZodType<
63
63
  unknown
64
64
  > = z.object({
65
65
  paymentMethodID: z.string(),
66
- card: Card$inboundSchema,
67
66
  paymentMethodType: PullFromCardPaymentMethodPaymentMethodType$inboundSchema,
67
+ card: PaymentMethodsCard$inboundSchema,
68
68
  });
69
69
 
70
70
  /** @internal */
71
71
  export type PullFromCardPaymentMethod$Outbound = {
72
72
  paymentMethodID: string;
73
- card: Card$Outbound;
74
73
  paymentMethodType: string;
74
+ card: PaymentMethodsCard$Outbound;
75
75
  };
76
76
 
77
77
  /** @internal */
@@ -81,8 +81,8 @@ export const PullFromCardPaymentMethod$outboundSchema: z.ZodType<
81
81
  PullFromCardPaymentMethod
82
82
  > = z.object({
83
83
  paymentMethodID: z.string(),
84
- card: Card$outboundSchema,
85
84
  paymentMethodType: PullFromCardPaymentMethodPaymentMethodType$outboundSchema,
85
+ card: PaymentMethodsCard$outboundSchema,
86
86
  });
87
87
 
88
88
  /**
@@ -8,11 +8,11 @@ import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  import {
11
- Card,
12
- Card$inboundSchema,
13
- Card$Outbound,
14
- Card$outboundSchema,
15
- } from "./card.js";
11
+ PaymentMethodsCard,
12
+ PaymentMethodsCard$inboundSchema,
13
+ PaymentMethodsCard$Outbound,
14
+ PaymentMethodsCard$outboundSchema,
15
+ } from "./paymentmethodscard.js";
16
16
 
17
17
  export const PushToCardPaymentMethodPaymentMethodType = {
18
18
  PushToCard: "push-to-card",
@@ -26,11 +26,11 @@ export type PushToCardPaymentMethod = {
26
26
  * ID of the payment method.
27
27
  */
28
28
  paymentMethodID: string;
29
+ paymentMethodType: PushToCardPaymentMethodPaymentMethodType;
29
30
  /**
30
- * Describes a card on a Moov account.
31
+ * A card as contained within a payment method.
31
32
  */
32
- card: Card;
33
- paymentMethodType: PushToCardPaymentMethodPaymentMethodType;
33
+ card: PaymentMethodsCard;
34
34
  };
35
35
 
36
36
  /** @internal */
@@ -63,15 +63,15 @@ export const PushToCardPaymentMethod$inboundSchema: z.ZodType<
63
63
  unknown
64
64
  > = z.object({
65
65
  paymentMethodID: z.string(),
66
- card: Card$inboundSchema,
67
66
  paymentMethodType: PushToCardPaymentMethodPaymentMethodType$inboundSchema,
67
+ card: PaymentMethodsCard$inboundSchema,
68
68
  });
69
69
 
70
70
  /** @internal */
71
71
  export type PushToCardPaymentMethod$Outbound = {
72
72
  paymentMethodID: string;
73
- card: Card$Outbound;
74
73
  paymentMethodType: string;
74
+ card: PaymentMethodsCard$Outbound;
75
75
  };
76
76
 
77
77
  /** @internal */
@@ -81,8 +81,8 @@ export const PushToCardPaymentMethod$outboundSchema: z.ZodType<
81
81
  PushToCardPaymentMethod
82
82
  > = z.object({
83
83
  paymentMethodID: z.string(),
84
- card: Card$outboundSchema,
85
84
  paymentMethodType: PushToCardPaymentMethodPaymentMethodType$outboundSchema,
85
+ card: PaymentMethodsCard$outboundSchema,
86
86
  });
87
87
 
88
88
  /**
@@ -8,11 +8,11 @@ import { ClosedEnum } from "../../types/enums.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  import {
11
- BankAccount,
12
- BankAccount$inboundSchema,
13
- BankAccount$Outbound,
14
- BankAccount$outboundSchema,
15
- } from "./bankaccount.js";
11
+ PaymentMethodsBankAccount,
12
+ PaymentMethodsBankAccount$inboundSchema,
13
+ PaymentMethodsBankAccount$Outbound,
14
+ PaymentMethodsBankAccount$outboundSchema,
15
+ } from "./paymentmethodsbankaccount.js";
16
16
 
17
17
  export const RtpCreditPaymentMethodPaymentMethodType = {
18
18
  RtpCredit: "rtp-credit",
@@ -26,11 +26,11 @@ export type RtpCreditPaymentMethod = {
26
26
  * ID of the payment method.
27
27
  */
28
28
  paymentMethodID: string;
29
+ paymentMethodType: RtpCreditPaymentMethodPaymentMethodType;
29
30
  /**
30
- * Describes a bank account linked to a Moov account.
31
+ * A bank account as contained within a payment method.
31
32
  */
32
- bankAccount: BankAccount;
33
- paymentMethodType: RtpCreditPaymentMethodPaymentMethodType;
33
+ bankAccount: PaymentMethodsBankAccount;
34
34
  };
35
35
 
36
36
  /** @internal */
@@ -63,15 +63,15 @@ export const RtpCreditPaymentMethod$inboundSchema: z.ZodType<
63
63
  unknown
64
64
  > = z.object({
65
65
  paymentMethodID: z.string(),
66
- bankAccount: BankAccount$inboundSchema,
67
66
  paymentMethodType: RtpCreditPaymentMethodPaymentMethodType$inboundSchema,
67
+ bankAccount: PaymentMethodsBankAccount$inboundSchema,
68
68
  });
69
69
 
70
70
  /** @internal */
71
71
  export type RtpCreditPaymentMethod$Outbound = {
72
72
  paymentMethodID: string;
73
- bankAccount: BankAccount$Outbound;
74
73
  paymentMethodType: string;
74
+ bankAccount: PaymentMethodsBankAccount$Outbound;
75
75
  };
76
76
 
77
77
  /** @internal */
@@ -81,8 +81,8 @@ export const RtpCreditPaymentMethod$outboundSchema: z.ZodType<
81
81
  RtpCreditPaymentMethod
82
82
  > = z.object({
83
83
  paymentMethodID: z.string(),
84
- bankAccount: BankAccount$outboundSchema,
85
84
  paymentMethodType: RtpCreditPaymentMethodPaymentMethodType$outboundSchema,
85
+ bankAccount: PaymentMethodsBankAccount$outboundSchema,
86
86
  });
87
87
 
88
88
  /**
@@ -28,12 +28,12 @@ export type CreateBrandGlobals = {
28
28
 
29
29
  export type CreateBrandRequest = {
30
30
  accountID: string;
31
- brand: components.Brand;
31
+ brandProperties: components.BrandProperties;
32
32
  };
33
33
 
34
34
  export type CreateBrandResponse = {
35
35
  headers: { [k: string]: Array<string> };
36
- result: components.Brand;
36
+ result: components.BrandProperties;
37
37
  };
38
38
 
39
39
  /** @internal */
@@ -105,17 +105,17 @@ export const CreateBrandRequest$inboundSchema: z.ZodType<
105
105
  unknown
106
106
  > = z.object({
107
107
  accountID: z.string(),
108
- Brand: components.Brand$inboundSchema,
108
+ BrandProperties: components.BrandProperties$inboundSchema,
109
109
  }).transform((v) => {
110
110
  return remap$(v, {
111
- "Brand": "brand",
111
+ "BrandProperties": "brandProperties",
112
112
  });
113
113
  });
114
114
 
115
115
  /** @internal */
116
116
  export type CreateBrandRequest$Outbound = {
117
117
  accountID: string;
118
- Brand: components.Brand$Outbound;
118
+ BrandProperties: components.BrandProperties$Outbound;
119
119
  };
120
120
 
121
121
  /** @internal */
@@ -125,10 +125,10 @@ export const CreateBrandRequest$outboundSchema: z.ZodType<
125
125
  CreateBrandRequest
126
126
  > = z.object({
127
127
  accountID: z.string(),
128
- brand: components.Brand$outboundSchema,
128
+ brandProperties: components.BrandProperties$outboundSchema,
129
129
  }).transform((v) => {
130
130
  return remap$(v, {
131
- brand: "Brand",
131
+ brandProperties: "BrandProperties",
132
132
  });
133
133
  });
134
134
 
@@ -170,7 +170,7 @@ export const CreateBrandResponse$inboundSchema: z.ZodType<
170
170
  unknown
171
171
  > = z.object({
172
172
  Headers: z.record(z.array(z.string())),
173
- Result: components.Brand$inboundSchema,
173
+ Result: components.BrandProperties$inboundSchema,
174
174
  }).transform((v) => {
175
175
  return remap$(v, {
176
176
  "Headers": "headers",
@@ -181,7 +181,7 @@ export const CreateBrandResponse$inboundSchema: z.ZodType<
181
181
  /** @internal */
182
182
  export type CreateBrandResponse$Outbound = {
183
183
  Headers: { [k: string]: Array<string> };
184
- Result: components.Brand$Outbound;
184
+ Result: components.BrandProperties$Outbound;
185
185
  };
186
186
 
187
187
  /** @internal */
@@ -191,7 +191,7 @@ export const CreateBrandResponse$outboundSchema: z.ZodType<
191
191
  CreateBrandResponse
192
192
  > = z.object({
193
193
  headers: z.record(z.array(z.string())),
194
- result: components.Brand$outboundSchema,
194
+ result: components.BrandProperties$outboundSchema,
195
195
  }).transform((v) => {
196
196
  return remap$(v, {
197
197
  headers: "Headers",
@@ -32,7 +32,7 @@ export type GetBrandRequest = {
32
32
 
33
33
  export type GetBrandResponse = {
34
34
  headers: { [k: string]: Array<string> };
35
- result: components.Brand;
35
+ result: components.BrandProperties;
36
36
  };
37
37
 
38
38
  /** @internal */
@@ -154,7 +154,7 @@ export const GetBrandResponse$inboundSchema: z.ZodType<
154
154
  unknown
155
155
  > = z.object({
156
156
  Headers: z.record(z.array(z.string())),
157
- Result: components.Brand$inboundSchema,
157
+ Result: components.BrandProperties$inboundSchema,
158
158
  }).transform((v) => {
159
159
  return remap$(v, {
160
160
  "Headers": "headers",
@@ -165,7 +165,7 @@ export const GetBrandResponse$inboundSchema: z.ZodType<
165
165
  /** @internal */
166
166
  export type GetBrandResponse$Outbound = {
167
167
  Headers: { [k: string]: Array<string> };
168
- Result: components.Brand$Outbound;
168
+ Result: components.BrandProperties$Outbound;
169
169
  };
170
170
 
171
171
  /** @internal */
@@ -175,7 +175,7 @@ export const GetBrandResponse$outboundSchema: z.ZodType<
175
175
  GetBrandResponse
176
176
  > = z.object({
177
177
  headers: z.record(z.array(z.string())),
178
- result: components.Brand$outboundSchema,
178
+ result: components.BrandProperties$outboundSchema,
179
179
  }).transform((v) => {
180
180
  return remap$(v, {
181
181
  headers: "Headers",
@@ -122,3 +122,4 @@ export * from "./updateunderwriting.js";
122
122
  export * from "./uploaddisputeevidencefile.js";
123
123
  export * from "./uploaddisputeevidencetext.js";
124
124
  export * from "./uploadfile.js";
125
+ export * from "./upsertbrand.js";
@@ -33,7 +33,7 @@ export type UpdateBrandRequest = {
33
33
 
34
34
  export type UpdateBrandResponse = {
35
35
  headers: { [k: string]: Array<string> };
36
- result: components.Brand;
36
+ result: components.BrandProperties;
37
37
  };
38
38
 
39
39
  /** @internal */
@@ -170,7 +170,7 @@ export const UpdateBrandResponse$inboundSchema: z.ZodType<
170
170
  unknown
171
171
  > = z.object({
172
172
  Headers: z.record(z.array(z.string())),
173
- Result: components.Brand$inboundSchema,
173
+ Result: components.BrandProperties$inboundSchema,
174
174
  }).transform((v) => {
175
175
  return remap$(v, {
176
176
  "Headers": "headers",
@@ -181,7 +181,7 @@ export const UpdateBrandResponse$inboundSchema: z.ZodType<
181
181
  /** @internal */
182
182
  export type UpdateBrandResponse$Outbound = {
183
183
  Headers: { [k: string]: Array<string> };
184
- Result: components.Brand$Outbound;
184
+ Result: components.BrandProperties$Outbound;
185
185
  };
186
186
 
187
187
  /** @internal */
@@ -191,7 +191,7 @@ export const UpdateBrandResponse$outboundSchema: z.ZodType<
191
191
  UpdateBrandResponse
192
192
  > = z.object({
193
193
  headers: z.record(z.array(z.string())),
194
- result: components.Brand$outboundSchema,
194
+ result: components.BrandProperties$outboundSchema,
195
195
  }).transform((v) => {
196
196
  return remap$(v, {
197
197
  headers: "Headers",