@corsa-labs/sdk 3.25.0 → 3.26.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.
@@ -4,9 +4,9 @@ export type AlertCustomFieldDataDto = {
4
4
  */
5
5
  label: string;
6
6
  /**
7
- * Value of the custom field. It can be a string, number, boolean. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
7
+ * Value of the custom field. It can be a string, number, boolean, object (JSON), or array of objects. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
8
8
  */
9
- value: (string | number | boolean);
9
+ value: (string | number | boolean | Record<string, any>);
10
10
  /**
11
11
  * Description of the custom field
12
12
  */
@@ -4,9 +4,9 @@ export type CorporateClientCustomFieldDataDto = {
4
4
  */
5
5
  label: string;
6
6
  /**
7
- * Value of the custom field. It can be a string, number, boolean. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
7
+ * Value of the custom field. It can be a string, number, boolean, object (JSON), or array of objects. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
8
8
  */
9
- value: (string | number | boolean);
9
+ value: (string | number | boolean | Record<string, any>);
10
10
  /**
11
11
  * Description of the custom field
12
12
  */
@@ -4,9 +4,9 @@ export type IndividualClientCustomFieldDataDto = {
4
4
  */
5
5
  label: string;
6
6
  /**
7
- * Value of the custom field. It can be a string, number, boolean. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
7
+ * Value of the custom field. It can be a string, number, boolean, object (JSON), or array of objects. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
8
8
  */
9
- value: (string | number | boolean);
9
+ value: (string | number | boolean | Record<string, any>);
10
10
  /**
11
11
  * Description of the custom field
12
12
  */
@@ -4,9 +4,9 @@ export type TransactionCustomFieldDto = {
4
4
  */
5
5
  label: string;
6
6
  /**
7
- * Value of the custom field. It can be a string, number, boolean. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
7
+ * Value of the custom field. It can be a string, number, boolean, object (JSON), or array of objects. If you'd like to submit a country code, use the ISO 3166-1 alpha-2 code. If you'd like to submit a date, use the ISO 8601 format.
8
8
  */
9
- value: (string | number | boolean);
9
+ value: (string | number | boolean | Record<string, any>);
10
10
  /**
11
11
  * Description of the custom field
12
12
  */
@@ -8,12 +8,13 @@ export declare class BlockchainWalletsService {
8
8
  readonly httpRequest: BaseHttpRequest;
9
9
  constructor(httpRequest: BaseHttpRequest);
10
10
  /**
11
- * Create a new blockchain wallet
11
+ * Create a new blockchain wallet. If upsert is true, update existing wallet if found by referenceId or address
12
12
  * @param requestBody
13
+ * @param upsert If true, update existing blockchain wallet instead of creating if wallet already exists
13
14
  * @returns BlockchainWalletDto
14
15
  * @throws ApiError
15
16
  */
16
- createBlockchainWallet(requestBody: CreateBlockchainWalletDto): CancelablePromise<BlockchainWalletDto>;
17
+ createBlockchainWallet(requestBody: CreateBlockchainWalletDto, upsert?: boolean): CancelablePromise<BlockchainWalletDto>;
17
18
  /**
18
19
  * Get a blockchain wallet by ID or reference ID
19
20
  * @param blockchainWalletId
@@ -7,15 +7,19 @@ class BlockchainWalletsService {
7
7
  this.httpRequest = httpRequest;
8
8
  }
9
9
  /**
10
- * Create a new blockchain wallet
10
+ * Create a new blockchain wallet. If upsert is true, update existing wallet if found by referenceId or address
11
11
  * @param requestBody
12
+ * @param upsert If true, update existing blockchain wallet instead of creating if wallet already exists
12
13
  * @returns BlockchainWalletDto
13
14
  * @throws ApiError
14
15
  */
15
- createBlockchainWallet(requestBody) {
16
+ createBlockchainWallet(requestBody, upsert) {
16
17
  return this.httpRequest.request({
17
18
  method: 'POST',
18
19
  url: '/v1/blockchain-wallets',
20
+ query: {
21
+ 'upsert': upsert,
22
+ },
19
23
  body: requestBody,
20
24
  mediaType: 'application/json',
21
25
  });
@@ -1 +1 @@
1
- {"version":3,"file":"BlockchainWalletsService.js","sourceRoot":"","sources":["../../services/BlockchainWalletsService.ts"],"names":[],"mappings":";;;AAUA,MAAa,wBAAwB;IACL;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;OAKG;IACI,sBAAsB,CACzB,WAAsC;QAEtC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,wBAAwB;YAC7B,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,mBAAmB,CACtB,kBAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;YAClD,IAAI,EAAE;gBACF,oBAAoB,EAAE,kBAAkB;aAC3C;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,sBAAsB,CACzB,kBAA0B,EAC1B,WAAsC;QAEtC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;YAClD,IAAI,EAAE;gBACF,oBAAoB,EAAE,kBAAkB;aAC3C;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,oCAAoC,CACvC,kBAA0B,EAC1B,WAAmD;QAEnD,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,qDAAqD;YAC1D,IAAI,EAAE;gBACF,oBAAoB,EAAE,kBAAkB;aAC3C;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AA7ED,4DA6EC"}
1
+ {"version":3,"file":"BlockchainWalletsService.js","sourceRoot":"","sources":["../../services/BlockchainWalletsService.ts"],"names":[],"mappings":";;;AAUA,MAAa,wBAAwB;IACL;IAA5B,YAA4B,WAA4B;QAA5B,gBAAW,GAAX,WAAW,CAAiB;IAAG,CAAC;IAC5D;;;;;;OAMG;IACI,sBAAsB,CACzB,WAAsC,EACtC,MAAgB;QAEhB,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,wBAAwB;YAC7B,KAAK,EAAE;gBACH,QAAQ,EAAE,MAAM;aACnB;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;OAKG;IACI,mBAAmB,CACtB,kBAA0B;QAE1B,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;YAClD,IAAI,EAAE;gBACF,oBAAoB,EAAE,kBAAkB;aAC3C;SACJ,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,sBAAsB,CACzB,kBAA0B,EAC1B,WAAsC;QAEtC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,6CAA6C;YAClD,IAAI,EAAE;gBACF,oBAAoB,EAAE,kBAAkB;aAC3C;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;IACD;;;;;;OAMG;IACI,oCAAoC,CACvC,kBAA0B,EAC1B,WAAmD;QAEnD,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC;YAC5B,MAAM,EAAE,MAAM;YACd,GAAG,EAAE,qDAAqD;YAC1D,IAAI,EAAE;gBACF,oBAAoB,EAAE,kBAAkB;aAC3C;YACD,IAAI,EAAE,WAAW;YACjB,SAAS,EAAE,kBAAkB;SAChC,CAAC,CAAC;IACP,CAAC;CACJ;AAlFD,4DAkFC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corsa-labs/sdk",
3
- "version": "3.25.0",
3
+ "version": "3.26.0",
4
4
  "description": "SDK for Corsa API",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",