@gr4vy/sdk 2.3.21 → 2.3.23

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 (70) hide show
  1. package/README.md +7 -0
  2. package/funcs/transactionsRefundSettlementsGet.d.ts +18 -0
  3. package/funcs/transactionsRefundSettlementsGet.d.ts.map +1 -0
  4. package/funcs/transactionsRefundSettlementsGet.js +145 -0
  5. package/funcs/transactionsRefundSettlementsGet.js.map +1 -0
  6. package/funcs/transactionsRefundSettlementsList.d.ts +18 -0
  7. package/funcs/transactionsRefundSettlementsList.d.ts.map +1 -0
  8. package/funcs/transactionsRefundSettlementsList.js +140 -0
  9. package/funcs/transactionsRefundSettlementsList.js.map +1 -0
  10. package/jsr.json +1 -1
  11. package/lib/config.d.ts +3 -3
  12. package/lib/config.js +3 -3
  13. package/models/components/digitalwallet.d.ts +2 -2
  14. package/models/components/digitalwallet.d.ts.map +1 -1
  15. package/models/components/digitalwallet.js +2 -2
  16. package/models/components/digitalwallet.js.map +1 -1
  17. package/models/components/digitalwalletaddress.d.ts +5 -0
  18. package/models/components/digitalwalletaddress.d.ts.map +1 -1
  19. package/models/components/digitalwalletaddress.js +19 -1
  20. package/models/components/digitalwalletaddress.js.map +1 -1
  21. package/models/components/index.d.ts +2 -1
  22. package/models/components/index.d.ts.map +1 -1
  23. package/models/components/index.js +2 -1
  24. package/models/components/index.js.map +1 -1
  25. package/models/components/refundsettlement.d.ts +84 -0
  26. package/models/components/refundsettlement.d.ts.map +1 -0
  27. package/models/components/refundsettlement.js +82 -0
  28. package/models/components/refundsettlement.js.map +1 -0
  29. package/models/components/refundsettlements.d.ts +17 -0
  30. package/models/components/refundsettlements.d.ts.map +1 -0
  31. package/models/components/refundsettlements.js +51 -0
  32. package/models/components/refundsettlements.js.map +1 -0
  33. package/models/operations/gettransactionrefundsettlement.d.ts +28 -0
  34. package/models/operations/gettransactionrefundsettlement.d.ts.map +1 -0
  35. package/models/{components/apitypesdigitalwalletaddress.js → operations/gettransactionrefundsettlement.js} +11 -14
  36. package/models/operations/gettransactionrefundsettlement.js.map +1 -0
  37. package/models/operations/index.d.ts +2 -0
  38. package/models/operations/index.d.ts.map +1 -1
  39. package/models/operations/index.js +2 -0
  40. package/models/operations/index.js.map +1 -1
  41. package/models/operations/listtransactionrefundsettlements.d.ts +23 -0
  42. package/models/operations/listtransactionrefundsettlements.d.ts.map +1 -0
  43. package/models/operations/listtransactionrefundsettlements.js +55 -0
  44. package/models/operations/listtransactionrefundsettlements.js.map +1 -0
  45. package/package.json +1 -1
  46. package/sdk/refundsettlements.d.ts +19 -0
  47. package/sdk/refundsettlements.d.ts.map +1 -0
  48. package/sdk/refundsettlements.js +32 -0
  49. package/sdk/refundsettlements.js.map +1 -0
  50. package/sdk/transactions.d.ts +3 -0
  51. package/sdk/transactions.d.ts.map +1 -1
  52. package/sdk/transactions.js +4 -0
  53. package/sdk/transactions.js.map +1 -1
  54. package/src/funcs/transactionsRefundSettlementsGet.ts +257 -0
  55. package/src/funcs/transactionsRefundSettlementsList.ts +249 -0
  56. package/src/lib/config.ts +3 -3
  57. package/src/models/components/digitalwallet.ts +5 -5
  58. package/src/models/components/digitalwalletaddress.ts +29 -0
  59. package/src/models/components/index.ts +2 -1
  60. package/src/models/components/refundsettlement.ts +139 -0
  61. package/src/models/components/refundsettlements.ts +41 -0
  62. package/src/models/operations/gettransactionrefundsettlement.ts +58 -0
  63. package/src/models/operations/index.ts +2 -0
  64. package/src/models/operations/listtransactionrefundsettlements.ts +52 -0
  65. package/src/sdk/refundsettlements.ts +51 -0
  66. package/src/sdk/transactions.ts +6 -0
  67. package/models/components/apitypesdigitalwalletaddress.d.ts +0 -14
  68. package/models/components/apitypesdigitalwalletaddress.d.ts.map +0 -1
  69. package/models/components/apitypesdigitalwalletaddress.js.map +0 -1
  70. package/src/models/components/apitypesdigitalwalletaddress.ts +0 -45
@@ -0,0 +1,139 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * A settlement record for a refund on a transaction.
13
+ */
14
+ export type RefundSettlement = {
15
+ /**
16
+ * The unique identifier for the record.
17
+ */
18
+ id: string;
19
+ /**
20
+ * The merchant account this record belongs to.
21
+ */
22
+ merchantAccountId: string;
23
+ /**
24
+ * The date and time the record was created, in ISO 8601 format.
25
+ */
26
+ createdAt: Date;
27
+ /**
28
+ * The date and time the record was last updated, in ISO 8601 format.
29
+ */
30
+ updatedAt: Date;
31
+ /**
32
+ * The date and time the record was posted, in ISO 8601 format.
33
+ */
34
+ postedAt: Date;
35
+ /**
36
+ * The date and time the record was ingested, in ISO 8601 format.
37
+ */
38
+ ingestedAt: Date;
39
+ /**
40
+ * ISO 4217 currency code.
41
+ */
42
+ currency: string;
43
+ /**
44
+ * The total amount in the smallest currency unit (e.g. cents).
45
+ */
46
+ amount: number;
47
+ /**
48
+ * The exchange rate, if applicable.
49
+ */
50
+ exchangeRate?: number | null | undefined;
51
+ /**
52
+ * The commission amount deducted in the smallest currency unit.
53
+ */
54
+ commission: number;
55
+ /**
56
+ * The interchange fee, if applicable, in the smallest currency unit.
57
+ */
58
+ interchange?: number | null | undefined;
59
+ /**
60
+ * The markup fee, if applicable, in the smallest currency unit.
61
+ */
62
+ markup?: number | null | undefined;
63
+ /**
64
+ * The scheme fee, if applicable, in the smallest currency unit.
65
+ */
66
+ schemeFee?: number | null | undefined;
67
+ /**
68
+ * The report ID from the payment service.
69
+ */
70
+ paymentServiceReportId: string;
71
+ /**
72
+ * List of file IDs for the payment service report.
73
+ */
74
+ paymentServiceReportFileIds: Array<string>;
75
+ /**
76
+ * The transaction this record is associated with.
77
+ */
78
+ transactionId: string;
79
+ /**
80
+ * Always `refund-settlement`.
81
+ */
82
+ type: "refund-settlement";
83
+ /**
84
+ * The refund this settlement is associated with.
85
+ */
86
+ refundId: string;
87
+ };
88
+
89
+ /** @internal */
90
+ export const RefundSettlement$inboundSchema: z.ZodType<
91
+ RefundSettlement,
92
+ z.ZodTypeDef,
93
+ unknown
94
+ > = z.object({
95
+ id: z.string(),
96
+ merchant_account_id: z.string(),
97
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
98
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
99
+ posted_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
100
+ ingested_at: z.string().datetime({ offset: true }).transform(v =>
101
+ new Date(v)
102
+ ),
103
+ currency: z.string(),
104
+ amount: z.number().int(),
105
+ exchange_rate: z.nullable(z.number()).optional(),
106
+ commission: z.number().int(),
107
+ interchange: z.nullable(z.number().int()).optional(),
108
+ markup: z.nullable(z.number().int()).optional(),
109
+ scheme_fee: z.nullable(z.number().int()).optional(),
110
+ payment_service_report_id: z.string(),
111
+ payment_service_report_file_ids: z.array(z.string()),
112
+ transaction_id: z.string(),
113
+ type: z.literal("refund-settlement").default("refund-settlement"),
114
+ refund_id: z.string(),
115
+ }).transform((v) => {
116
+ return remap$(v, {
117
+ "merchant_account_id": "merchantAccountId",
118
+ "created_at": "createdAt",
119
+ "updated_at": "updatedAt",
120
+ "posted_at": "postedAt",
121
+ "ingested_at": "ingestedAt",
122
+ "exchange_rate": "exchangeRate",
123
+ "scheme_fee": "schemeFee",
124
+ "payment_service_report_id": "paymentServiceReportId",
125
+ "payment_service_report_file_ids": "paymentServiceReportFileIds",
126
+ "transaction_id": "transactionId",
127
+ "refund_id": "refundId",
128
+ });
129
+ });
130
+
131
+ export function refundSettlementFromJSON(
132
+ jsonString: string,
133
+ ): SafeParseResult<RefundSettlement, SDKValidationError> {
134
+ return safeParse(
135
+ jsonString,
136
+ (x) => RefundSettlement$inboundSchema.parse(JSON.parse(x)),
137
+ `Failed to parse 'RefundSettlement' from JSON`,
138
+ );
139
+ }
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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
+ RefundSettlement,
11
+ RefundSettlement$inboundSchema,
12
+ } from "./refundsettlement.js";
13
+
14
+ /**
15
+ * A list of settlement records for the refunds on a transaction.
16
+ */
17
+ export type RefundSettlements = {
18
+ /**
19
+ * The list of refund settlement objects.
20
+ */
21
+ items: Array<RefundSettlement>;
22
+ };
23
+
24
+ /** @internal */
25
+ export const RefundSettlements$inboundSchema: z.ZodType<
26
+ RefundSettlements,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({
30
+ items: z.array(RefundSettlement$inboundSchema),
31
+ });
32
+
33
+ export function refundSettlementsFromJSON(
34
+ jsonString: string,
35
+ ): SafeParseResult<RefundSettlements, SDKValidationError> {
36
+ return safeParse(
37
+ jsonString,
38
+ (x) => RefundSettlements$inboundSchema.parse(JSON.parse(x)),
39
+ `Failed to parse 'RefundSettlements' from JSON`,
40
+ );
41
+ }
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type GetTransactionRefundSettlementGlobals = {
9
+ merchantAccountId?: string | undefined;
10
+ };
11
+
12
+ export type GetTransactionRefundSettlementRequest = {
13
+ /**
14
+ * The unique identifier of the transaction.
15
+ */
16
+ transactionId: string;
17
+ /**
18
+ * The unique identifier of the refund settlement.
19
+ */
20
+ settlementId: string;
21
+ /**
22
+ * The ID of the merchant account to use for this request.
23
+ */
24
+ merchantAccountId?: string | null | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export type GetTransactionRefundSettlementRequest$Outbound = {
29
+ transaction_id: string;
30
+ settlement_id: string;
31
+ merchantAccountId?: string | null | undefined;
32
+ };
33
+
34
+ /** @internal */
35
+ export const GetTransactionRefundSettlementRequest$outboundSchema: z.ZodType<
36
+ GetTransactionRefundSettlementRequest$Outbound,
37
+ z.ZodTypeDef,
38
+ GetTransactionRefundSettlementRequest
39
+ > = z.object({
40
+ transactionId: z.string(),
41
+ settlementId: z.string(),
42
+ merchantAccountId: z.nullable(z.string()).optional(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ transactionId: "transaction_id",
46
+ settlementId: "settlement_id",
47
+ });
48
+ });
49
+
50
+ export function getTransactionRefundSettlementRequestToJSON(
51
+ getTransactionRefundSettlementRequest: GetTransactionRefundSettlementRequest,
52
+ ): string {
53
+ return JSON.stringify(
54
+ GetTransactionRefundSettlementRequest$outboundSchema.parse(
55
+ getTransactionRefundSettlementRequest,
56
+ ),
57
+ );
58
+ }
@@ -64,6 +64,7 @@ export * from "./getthreedsscenario.js";
64
64
  export * from "./gettransaction.js";
65
65
  export * from "./gettransactioncapture.js";
66
66
  export * from "./gettransactionrefund.js";
67
+ export * from "./gettransactionrefundsettlement.js";
67
68
  export * from "./gettransactionsettlement.js";
68
69
  export * from "./listallreportexecutions.js";
69
70
  export * from "./listapikeypairs.js";
@@ -92,6 +93,7 @@ export * from "./listtransactionactions.js";
92
93
  export * from "./listtransactioncaptures.js";
93
94
  export * from "./listtransactionevents.js";
94
95
  export * from "./listtransactionrefunds.js";
96
+ export * from "./listtransactionrefundsettlements.js";
95
97
  export * from "./listtransactions.js";
96
98
  export * from "./listtransactionsettlements.js";
97
99
  export * from "./registerdigitalwalletdomain.js";
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+
8
+ export type ListTransactionRefundSettlementsGlobals = {
9
+ merchantAccountId?: string | undefined;
10
+ };
11
+
12
+ export type ListTransactionRefundSettlementsRequest = {
13
+ /**
14
+ * The unique identifier of the transaction.
15
+ */
16
+ transactionId: string;
17
+ /**
18
+ * The ID of the merchant account to use for this request.
19
+ */
20
+ merchantAccountId?: string | null | undefined;
21
+ };
22
+
23
+ /** @internal */
24
+ export type ListTransactionRefundSettlementsRequest$Outbound = {
25
+ transaction_id: string;
26
+ merchantAccountId?: string | null | undefined;
27
+ };
28
+
29
+ /** @internal */
30
+ export const ListTransactionRefundSettlementsRequest$outboundSchema: z.ZodType<
31
+ ListTransactionRefundSettlementsRequest$Outbound,
32
+ z.ZodTypeDef,
33
+ ListTransactionRefundSettlementsRequest
34
+ > = z.object({
35
+ transactionId: z.string(),
36
+ merchantAccountId: z.nullable(z.string()).optional(),
37
+ }).transform((v) => {
38
+ return remap$(v, {
39
+ transactionId: "transaction_id",
40
+ });
41
+ });
42
+
43
+ export function listTransactionRefundSettlementsRequestToJSON(
44
+ listTransactionRefundSettlementsRequest:
45
+ ListTransactionRefundSettlementsRequest,
46
+ ): string {
47
+ return JSON.stringify(
48
+ ListTransactionRefundSettlementsRequest$outboundSchema.parse(
49
+ listTransactionRefundSettlementsRequest,
50
+ ),
51
+ );
52
+ }
@@ -0,0 +1,51 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { transactionsRefundSettlementsGet } from "../funcs/transactionsRefundSettlementsGet.js";
6
+ import { transactionsRefundSettlementsList } from "../funcs/transactionsRefundSettlementsList.js";
7
+ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
+ import * as components from "../models/components/index.js";
9
+ import { unwrapAsync } from "../types/fp.js";
10
+
11
+ export class RefundSettlements extends ClientSDK {
12
+ /**
13
+ * Get transaction refund settlement
14
+ *
15
+ * @remarks
16
+ * Retrieve a specific refund settlement for a transaction by its unique identifier.
17
+ */
18
+ async get(
19
+ transactionId: string,
20
+ settlementId: string,
21
+ merchantAccountId?: string | null | undefined,
22
+ options?: RequestOptions,
23
+ ): Promise<components.RefundSettlement> {
24
+ return unwrapAsync(transactionsRefundSettlementsGet(
25
+ this,
26
+ transactionId,
27
+ settlementId,
28
+ merchantAccountId,
29
+ options,
30
+ ));
31
+ }
32
+
33
+ /**
34
+ * List transaction refund settlements
35
+ *
36
+ * @remarks
37
+ * List all refund settlements for a specific transaction.
38
+ */
39
+ async list(
40
+ transactionId: string,
41
+ merchantAccountId?: string | null | undefined,
42
+ options?: RequestOptions,
43
+ ): Promise<components.RefundSettlements> {
44
+ return unwrapAsync(transactionsRefundSettlementsList(
45
+ this,
46
+ transactionId,
47
+ merchantAccountId,
48
+ options,
49
+ ));
50
+ }
51
+ }
@@ -19,6 +19,7 @@ import { Actions } from "./actions.js";
19
19
  import { Captures } from "./captures.js";
20
20
  import { Events } from "./events.js";
21
21
  import { Gr4vyRefunds } from "./gr4vyrefunds.js";
22
+ import { RefundSettlements } from "./refundsettlements.js";
22
23
  import { Settlements } from "./settlements.js";
23
24
 
24
25
  export class Transactions extends ClientSDK {
@@ -42,6 +43,11 @@ export class Transactions extends ClientSDK {
42
43
  return (this._settlements ??= new Settlements(this._options));
43
44
  }
44
45
 
46
+ private _refundSettlements?: RefundSettlements;
47
+ get refundSettlements(): RefundSettlements {
48
+ return (this._refundSettlements ??= new RefundSettlements(this._options));
49
+ }
50
+
45
51
  private _captures?: Captures;
46
52
  get captures(): Captures {
47
53
  return (this._captures ??= new Captures(this._options));
@@ -1,14 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- export type ApiTypesDigitalWalletAddress = {
5
- line1: string;
6
- line2: string | null;
7
- city: string;
8
- stateCode: string;
9
- postalCode: string;
10
- };
11
- /** @internal */
12
- export declare const ApiTypesDigitalWalletAddress$inboundSchema: z.ZodType<ApiTypesDigitalWalletAddress, z.ZodTypeDef, unknown>;
13
- export declare function apiTypesDigitalWalletAddressFromJSON(jsonString: string): SafeParseResult<ApiTypesDigitalWalletAddress, SDKValidationError>;
14
- //# sourceMappingURL=apitypesdigitalwalletaddress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"apitypesdigitalwalletaddress.d.ts","sourceRoot":"","sources":["../../src/models/components/apitypesdigitalwalletaddress.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"apitypesdigitalwalletaddress.js","sourceRoot":"","sources":["../../src/models/components/apitypesdigitalwalletaddress.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCH,oFAQC;AAxCD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAYjD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
@@ -1,45 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type ApiTypesDigitalWalletAddress = {
12
- line1: string;
13
- line2: string | null;
14
- city: string;
15
- stateCode: string;
16
- postalCode: string;
17
- };
18
-
19
- /** @internal */
20
- export const ApiTypesDigitalWalletAddress$inboundSchema: z.ZodType<
21
- ApiTypesDigitalWalletAddress,
22
- z.ZodTypeDef,
23
- unknown
24
- > = z.object({
25
- line1: z.string(),
26
- line2: z.nullable(z.string()),
27
- city: z.string(),
28
- state_code: z.string(),
29
- postal_code: z.string(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- "state_code": "stateCode",
33
- "postal_code": "postalCode",
34
- });
35
- });
36
-
37
- export function apiTypesDigitalWalletAddressFromJSON(
38
- jsonString: string,
39
- ): SafeParseResult<ApiTypesDigitalWalletAddress, SDKValidationError> {
40
- return safeParse(
41
- jsonString,
42
- (x) => ApiTypesDigitalWalletAddress$inboundSchema.parse(JSON.parse(x)),
43
- `Failed to parse 'ApiTypesDigitalWalletAddress' from JSON`,
44
- );
45
- }