squarefi-bff-api-module 1.32.8 → 1.32.10
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/dist/api/types/types.d.ts +6 -13
- package/dist/constants.d.ts +7 -4
- package/dist/constants.js +16 -12
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CurrencyType, IssuingProgramStatus,
|
|
2
|
-
import { WalletType } from '../..';
|
|
1
|
+
import { APIKeyRole, CardFormFactor, CardTransactionType, CardType, CurrencyType, IssuingProgramStatus, OrderStatuses, OrderType, SortingDirection, SubAccountType, WalletTransactionMethod, WalletTransactionRecordType, WalletTransactionStatus, WalletTransactionType } from '../../constants';
|
|
2
|
+
import { OrderTypePaymentMethod, WalletType } from '../..';
|
|
3
3
|
import { components, operations } from './autogen/apiV2.types';
|
|
4
4
|
export declare namespace API {
|
|
5
5
|
namespace Auth {
|
|
@@ -1158,7 +1158,7 @@ export declare namespace API {
|
|
|
1158
1158
|
direction: 'deposit' | 'withdrawal';
|
|
1159
1159
|
is_internal: boolean;
|
|
1160
1160
|
order_types_kyc_rails: OrderTypeKycRail[];
|
|
1161
|
-
payment_method:
|
|
1161
|
+
payment_method: OrderTypePaymentMethod;
|
|
1162
1162
|
}
|
|
1163
1163
|
namespace List {
|
|
1164
1164
|
type Response = OrderInfo[];
|
|
@@ -1420,7 +1420,7 @@ export declare namespace API {
|
|
|
1420
1420
|
description: string | null;
|
|
1421
1421
|
direction: string | null;
|
|
1422
1422
|
is_internal: boolean;
|
|
1423
|
-
payment_method:
|
|
1423
|
+
payment_method: OrderTypePaymentMethod;
|
|
1424
1424
|
is_trusted: boolean;
|
|
1425
1425
|
order_types_kyc_rails: OrderTypeKycRail[];
|
|
1426
1426
|
}
|
|
@@ -1850,7 +1850,7 @@ export declare namespace API {
|
|
|
1850
1850
|
walletAddress: string;
|
|
1851
1851
|
}
|
|
1852
1852
|
namespace DepositInstruction {
|
|
1853
|
-
type InstructionType = 'ACH' | 'FEDWIRE' | 'SWIFT' | '
|
|
1853
|
+
type InstructionType = 'ACH' | 'FEDWIRE' | 'SWIFT' | 'CHAPS' | 'FPS' | 'SEPA' | 'CRYPTO_EXTERNAL' | 'CRYPTO_INTERNAL';
|
|
1854
1854
|
interface Address {
|
|
1855
1855
|
city: string;
|
|
1856
1856
|
state: string;
|
|
@@ -1889,13 +1889,6 @@ export declare namespace API {
|
|
|
1889
1889
|
institution_address: Address;
|
|
1890
1890
|
account_holder_address: Address;
|
|
1891
1891
|
}
|
|
1892
|
-
interface SEPA_CT extends Common {
|
|
1893
|
-
instruction_type: 'SEPA_CT';
|
|
1894
|
-
iban: string;
|
|
1895
|
-
swift_bic: string;
|
|
1896
|
-
institution_address: Address;
|
|
1897
|
-
account_holder_address: Address;
|
|
1898
|
-
}
|
|
1899
1892
|
interface SEPA extends Common {
|
|
1900
1893
|
instruction_type: 'SEPA';
|
|
1901
1894
|
iban: string;
|
|
@@ -1917,7 +1910,7 @@ export declare namespace API {
|
|
|
1917
1910
|
account_holder_address: Address;
|
|
1918
1911
|
institution_address: Address;
|
|
1919
1912
|
}
|
|
1920
|
-
type DepositInstruction = ACH | FEDWIRE | SWIFT | SEPA | CHAPS | FPS |
|
|
1913
|
+
type DepositInstruction = ACH | FEDWIRE | SWIFT | SEPA | CHAPS | FPS | Common;
|
|
1921
1914
|
}
|
|
1922
1915
|
interface OrderType {
|
|
1923
1916
|
order_type_id: string;
|
package/dist/constants.d.ts
CHANGED
|
@@ -51,11 +51,11 @@ export declare enum WalletTransactionStatus {
|
|
|
51
51
|
PROCESSING = "processing",
|
|
52
52
|
NEW = "new"
|
|
53
53
|
}
|
|
54
|
-
export declare enum
|
|
54
|
+
export declare enum OrderTypePaymentMethod {
|
|
55
55
|
ACH = "ACH",
|
|
56
56
|
SEPA = "SEPA",
|
|
57
57
|
SWIFT = "SWIFT",
|
|
58
|
-
|
|
58
|
+
FEDWIRE = "FEDWIRE",
|
|
59
59
|
CRYPTO_EXTERNAL = "CRYPTO_EXTERNAL",
|
|
60
60
|
CRYPTO_INTERNAL = "CRYPTO_INTERNAL",
|
|
61
61
|
CHAPS = "CHAPS",
|
|
@@ -311,10 +311,13 @@ export declare enum VirtualAccountsInstructionType {
|
|
|
311
311
|
FEDWIRE = "FEDWIRE",
|
|
312
312
|
SWIFT = "SWIFT",
|
|
313
313
|
SEPA = "SEPA",
|
|
314
|
-
SEPA_CT = "SEPA_CT",
|
|
315
314
|
CHAPS = "CHAPS",
|
|
316
|
-
FPS = "FPS"
|
|
315
|
+
FPS = "FPS",
|
|
316
|
+
CRYPTO_EXTERNAL = "CRYPTO_EXTERNAL",
|
|
317
|
+
CRYPTO_INTERNAL = "CRYPTO_INTERNAL"
|
|
317
318
|
}
|
|
319
|
+
export declare const isOrderPaymentMethodEqualWithVirtualAccountsInstructionType: IsEnumEqualToUnion<OrderTypePaymentMethod, API.VirtualAccounts.VirtualAccount.DepositInstruction.InstructionType>;
|
|
320
|
+
export type OrderPaymentMethodEqualWithVirtualAccountsInstructionTypeMismatch = EnumUnionMismatch<OrderTypePaymentMethod, API.VirtualAccounts.VirtualAccount.DepositInstruction.InstructionType>;
|
|
318
321
|
export declare const virtualAccountsInstructionTypeCheck: IsEnumEqualToUnion<VirtualAccountsInstructionType, API.VirtualAccounts.VirtualAccount.DepositInstruction.InstructionType>;
|
|
319
322
|
export type VirtualAccountsInstructionTypeMismatch = EnumUnionMismatch<VirtualAccountsInstructionType, API.VirtualAccounts.VirtualAccount.DepositInstruction.InstructionType>;
|
|
320
323
|
export declare enum CardTransactionStatus {
|
package/dist/constants.js
CHANGED
|
@@ -49,17 +49,18 @@ export var WalletTransactionStatus;
|
|
|
49
49
|
WalletTransactionStatus["PROCESSING"] = "processing";
|
|
50
50
|
WalletTransactionStatus["NEW"] = "new";
|
|
51
51
|
})(WalletTransactionStatus || (WalletTransactionStatus = {}));
|
|
52
|
-
export var
|
|
53
|
-
(function (
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
export var OrderTypePaymentMethod;
|
|
53
|
+
(function (OrderTypePaymentMethod) {
|
|
54
|
+
OrderTypePaymentMethod["ACH"] = "ACH";
|
|
55
|
+
OrderTypePaymentMethod["SEPA"] = "SEPA";
|
|
56
|
+
OrderTypePaymentMethod["SWIFT"] = "SWIFT";
|
|
57
|
+
// DOMESTIC_WIRE = 'DOMESTIC_WIRE', // DEPRECATED, use FEDWIRE instead
|
|
58
|
+
OrderTypePaymentMethod["FEDWIRE"] = "FEDWIRE";
|
|
59
|
+
OrderTypePaymentMethod["CRYPTO_EXTERNAL"] = "CRYPTO_EXTERNAL";
|
|
60
|
+
OrderTypePaymentMethod["CRYPTO_INTERNAL"] = "CRYPTO_INTERNAL";
|
|
61
|
+
OrderTypePaymentMethod["CHAPS"] = "CHAPS";
|
|
62
|
+
OrderTypePaymentMethod["FPS"] = "FPS";
|
|
63
|
+
})(OrderTypePaymentMethod || (OrderTypePaymentMethod = {}));
|
|
63
64
|
export var OrderType;
|
|
64
65
|
(function (OrderType) {
|
|
65
66
|
// when extend do not forget to add new order type to the enum WalletTransactionRecordType
|
|
@@ -345,10 +346,13 @@ export var VirtualAccountsInstructionType;
|
|
|
345
346
|
VirtualAccountsInstructionType["FEDWIRE"] = "FEDWIRE";
|
|
346
347
|
VirtualAccountsInstructionType["SWIFT"] = "SWIFT";
|
|
347
348
|
VirtualAccountsInstructionType["SEPA"] = "SEPA";
|
|
348
|
-
|
|
349
|
+
// SEPA_CT = 'SEPA_CT', // DEPRECATED, use SEPA instead
|
|
349
350
|
VirtualAccountsInstructionType["CHAPS"] = "CHAPS";
|
|
350
351
|
VirtualAccountsInstructionType["FPS"] = "FPS";
|
|
352
|
+
VirtualAccountsInstructionType["CRYPTO_EXTERNAL"] = "CRYPTO_EXTERNAL";
|
|
353
|
+
VirtualAccountsInstructionType["CRYPTO_INTERNAL"] = "CRYPTO_INTERNAL";
|
|
351
354
|
})(VirtualAccountsInstructionType || (VirtualAccountsInstructionType = {}));
|
|
355
|
+
export const isOrderPaymentMethodEqualWithVirtualAccountsInstructionType = true;
|
|
352
356
|
export const virtualAccountsInstructionTypeCheck = true;
|
|
353
357
|
export var CardTransactionStatus;
|
|
354
358
|
(function (CardTransactionStatus) {
|