@dynamic-labs/sdk-api 0.0.1035 → 0.0.1037

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.1035",
3
+ "version": "0.0.1037",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -13,7 +13,7 @@ import { ChainEnum } from './ChainEnum';
13
13
  import { CheckoutSourceTypeEnum } from './CheckoutSourceTypeEnum';
14
14
  import { ExchangeKeyEnum } from './ExchangeKeyEnum';
15
15
  /**
16
- * fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet' and optional when sourceType is 'exchange'. When sourceType is 'exchange', pass exchangeProvider to generate the buy URL and create the exchange source record server-side.
16
+ * fromAddress, fromChainId, and fromChainName are required when sourceType is 'wallet'. When sourceType is 'exchange', they are optional; pass exchangeProvider to generate the buy URL and create the exchange source record server-side. When sourceType is 'deposit_address', fromChainId and fromChainName are required so the bridge provider knows the source chain; fromAddress is optional (omit when the customer pays from a CEX with no connected wallet).
17
17
  * @export
18
18
  * @interface AttachSourceRequest
19
19
  */
@@ -24,6 +24,7 @@ exports.CheckoutSourceTypeEnum = void 0;
24
24
  (function (CheckoutSourceTypeEnum) {
25
25
  CheckoutSourceTypeEnum["Wallet"] = "wallet";
26
26
  CheckoutSourceTypeEnum["Exchange"] = "exchange";
27
+ CheckoutSourceTypeEnum["DepositAddress"] = "deposit_address";
27
28
  })(exports.CheckoutSourceTypeEnum || (exports.CheckoutSourceTypeEnum = {}));
28
29
  function CheckoutSourceTypeEnumFromJSON(json) {
29
30
  return CheckoutSourceTypeEnumFromJSONTyped(json);
@@ -16,7 +16,8 @@
16
16
  */
17
17
  export declare enum CheckoutSourceTypeEnum {
18
18
  Wallet = "wallet",
19
- Exchange = "exchange"
19
+ Exchange = "exchange",
20
+ DepositAddress = "deposit_address"
20
21
  }
21
22
  export declare function CheckoutSourceTypeEnumFromJSON(json: any): CheckoutSourceTypeEnum;
22
23
  export declare function CheckoutSourceTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): CheckoutSourceTypeEnum;
@@ -20,6 +20,7 @@ var CheckoutSourceTypeEnum;
20
20
  (function (CheckoutSourceTypeEnum) {
21
21
  CheckoutSourceTypeEnum["Wallet"] = "wallet";
22
22
  CheckoutSourceTypeEnum["Exchange"] = "exchange";
23
+ CheckoutSourceTypeEnum["DepositAddress"] = "deposit_address";
23
24
  })(CheckoutSourceTypeEnum || (CheckoutSourceTypeEnum = {}));
24
25
  function CheckoutSourceTypeEnumFromJSON(json) {
25
26
  return CheckoutSourceTypeEnumFromJSONTyped(json);