@dynamic-labs/sdk-api-core 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 +1 -1
- package/src/models/AttachSourceRequest.d.ts +1 -1
- package/src/models/CheckoutSourceTypeEnum.cjs +1 -0
- package/src/models/CheckoutSourceTypeEnum.cjs.map +1 -1
- package/src/models/CheckoutSourceTypeEnum.d.ts +2 -1
- package/src/models/CheckoutSourceTypeEnum.js +1 -0
- package/src/models/CheckoutSourceTypeEnum.js.map +1 -1
package/package.json
CHANGED
|
@@ -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'
|
|
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);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutSourceTypeEnum.cjs","sources":["../../../../../libs/sdk-api-core/src/models/CheckoutSourceTypeEnum.ts"],"sourcesContent":null,"names":["CheckoutSourceTypeEnum"],"mappings":";;;;AAAA;AACA;AACA;;;;;;;;;;AAUG;AAEH;;;;AAIG;AACSA,
|
|
1
|
+
{"version":3,"file":"CheckoutSourceTypeEnum.cjs","sources":["../../../../../libs/sdk-api-core/src/models/CheckoutSourceTypeEnum.ts"],"sourcesContent":null,"names":["CheckoutSourceTypeEnum"],"mappings":";;;;AAAA;AACA;AACA;;;;;;;;;;AAUG;AAEH;;;;AAIG;AACSA,wCAIX;AAJD,CAAA,UAAY,sBAAsB,EAAA;AAC9B,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,sBAAA,CAAA,gBAAA,CAAA,GAAA,iBAAkC,CAAA;AACtC,CAAC,EAJWA,8BAAsB,KAAtBA,8BAAsB,GAIjC,EAAA,CAAA,CAAA,CAAA;AAEK,SAAU,8BAA8B,CAAC,IAAS,EAAA;AACpD,IAAA,OAAO,mCAAmC,CAAC,IAAW,CAAC,CAAC;AAC5D,CAAC;AAEe,SAAA,mCAAmC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACvF,IAAA,OAAO,IAA8B,CAAC;AAC1C,CAAC;AAEK,SAAU,4BAA4B,CAAC,KAAqC,EAAA;AAC9E,IAAA,OAAO,KAAY,CAAC;AACxB;;;;;;"}
|
|
@@ -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);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutSourceTypeEnum.js","sources":["../../../../../libs/sdk-api-core/src/models/CheckoutSourceTypeEnum.ts"],"sourcesContent":null,"names":[],"mappings":"AAAA;AACA;AACA;;;;;;;;;;AAUG;AAEH;;;;AAIG;IACS,
|
|
1
|
+
{"version":3,"file":"CheckoutSourceTypeEnum.js","sources":["../../../../../libs/sdk-api-core/src/models/CheckoutSourceTypeEnum.ts"],"sourcesContent":null,"names":[],"mappings":"AAAA;AACA;AACA;;;;;;;;;;AAUG;AAEH;;;;AAIG;IACS,uBAIX;AAJD,CAAA,UAAY,sBAAsB,EAAA;AAC9B,IAAA,sBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,sBAAA,CAAA,gBAAA,CAAA,GAAA,iBAAkC,CAAA;AACtC,CAAC,EAJW,sBAAsB,KAAtB,sBAAsB,GAIjC,EAAA,CAAA,CAAA,CAAA;AAEK,SAAU,8BAA8B,CAAC,IAAS,EAAA;AACpD,IAAA,OAAO,mCAAmC,CAAC,IAAW,CAAC,CAAC;AAC5D,CAAC;AAEe,SAAA,mCAAmC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACvF,IAAA,OAAO,IAA8B,CAAC;AAC1C,CAAC;AAEK,SAAU,4BAA4B,CAAC,KAAqC,EAAA;AAC9E,IAAA,OAAO,KAAY,CAAC;AACxB;;;;"}
|