New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yuants/data-model

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yuants/data-model - npm Package Compare versions

Comparing version 0.5.1 to 0.6.0

115

dist/data-model.d.ts

@@ -775,2 +775,117 @@ /**

/**
* ITransferOrder represents the transfer order, will be updated by both side during the transfer process
*
* ITransferOrder 表示转账订单,将在转账过程中双方更新
*
* @public
*/
export declare interface ITransferOrder {
/**
* Order ID
*
* 订单 ID
*/
order_id: string;
/**
* Created Timestamp
*
* 创建时间戳
*/
created_at: number;
/**
* Updated Timestamp
*
* 最后更新时间戳
*/
updated_at: number;
/**
* Credit Account ID
*
* 贷方账户 ID (付款方)
*/
credit_account_id: string;
/**
* Debit Account ID
*
* 借方账户 ID (收款方)
*/
debit_account_id: string;
/**
* Currency
*
* 转账货币
*/
currency: string;
/**
* Expected Amount
*
* 预期转账金额
*/
expected_amount: number;
/**
* Order Status
*
* - `"COMPLETE"` - Transfer completed
* - `"ERROR"` - Transfer failed, need to check the error message, need human intervention
* - `"AWAIT_DEBIT"` - Waiting for the debit side to handle / confirm
* - `"AWAIT_CREDIT"` - Waiting for the credit side to handle / confirm
*/
status: string;
/**
* Error Message for Human-reading
*
* 人类可读的错误信息
*/
error_message?: string;
/**
* Timeout Timestamp
*
* 超时时间戳
*/
timeout_at: number;
/**
* The acceptable ways for Debit Account to receive the transfer (Routing Path)
*
* 借方可接受的转账方式 (Routing Path)
*/
debit_methods?: string[];
/**
* The confirmed way for credit account to send the transfer (Routing Path)
*
* 贷方选择的转账方式 (Routing Path)
*/
credit_method?: string;
/**
* Transfer Initiated Timestamp
*
* 贷方发起转账的时间戳
*/
transferred_at?: number;
/**
* Transfer Initiated Amount
*
* 贷方已经发送的金额
*/
transferred_amount?: number;
/**
* Transaction ID for confirmation
*
* 转账凭证号
*/
transaction_id?: string;
/**
* Received Timestamp for Debit Account
*
* 借方查收到帐的时间戳
*/
received_at?: number;
/**
* Received Amount for Debit Account
*
* 借方已经收到的金额
*/
received_amount?: number;
}
/**
* Merge Positions by their product_id and variant

@@ -777,0 +892,0 @@ * @public

@@ -825,2 +825,116 @@ /**

}
/**
* ITransferOrder represents the transfer order, will be updated by both side during the transfer process
*
* ITransferOrder 表示转账订单,将在转账过程中双方更新
*
* @public
*/
export interface ITransferOrder {
/**
* Order ID
*
* 订单 ID
*/
order_id: string;
/**
* Created Timestamp
*
* 创建时间戳
*/
created_at: number;
/**
* Updated Timestamp
*
* 最后更新时间戳
*/
updated_at: number;
/**
* Credit Account ID
*
* 贷方账户 ID (付款方)
*/
credit_account_id: string;
/**
* Debit Account ID
*
* 借方账户 ID (收款方)
*/
debit_account_id: string;
/**
* Currency
*
* 转账货币
*/
currency: string;
/**
* Expected Amount
*
* 预期转账金额
*/
expected_amount: number;
/**
* Order Status
*
* - `"COMPLETE"` - Transfer completed
* - `"ERROR"` - Transfer failed, need to check the error message, need human intervention
* - `"AWAIT_DEBIT"` - Waiting for the debit side to handle / confirm
* - `"AWAIT_CREDIT"` - Waiting for the credit side to handle / confirm
*/
status: string;
/**
* Error Message for Human-reading
*
* 人类可读的错误信息
*/
error_message?: string;
/**
* Timeout Timestamp
*
* 超时时间戳
*/
timeout_at: number;
/**
* The acceptable ways for Debit Account to receive the transfer (Routing Path)
*
* 借方可接受的转账方式 (Routing Path)
*/
debit_methods?: string[];
/**
* The confirmed way for credit account to send the transfer (Routing Path)
*
* 贷方选择的转账方式 (Routing Path)
*/
credit_method?: string;
/**
* Transfer Initiated Timestamp
*
* 贷方发起转账的时间戳
*/
transferred_at?: number;
/**
* Transfer Initiated Amount
*
* 贷方已经发送的金额
*/
transferred_amount?: number;
/**
* Transaction ID for confirmation
*
* 转账凭证号
*/
transaction_id?: string;
/**
* Received Timestamp for Debit Account
*
* 借方查收到帐的时间戳
*/
received_at?: number;
/**
* Received Amount for Debit Account
*
* 借方已经收到的金额
*/
received_amount?: number;
}
//# sourceMappingURL=interfaces.d.ts.map

2

package.json
{
"name": "@yuants/data-model",
"version": "0.5.1",
"version": "0.6.0",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "module": "dist/index.js",

@@ -178,2 +178,23 @@ ## API Report File for "@yuants/data-model"

// @public
export interface ITransferOrder {
created_at: number;
credit_account_id: string;
credit_method?: string;
currency: string;
debit_account_id: string;
debit_methods?: string[];
error_message?: string;
expected_amount: number;
order_id: string;
received_amount?: number;
received_at?: number;
status: string;
timeout_at: number;
transaction_id?: string;
transferred_amount?: number;
transferred_at?: number;
updated_at: number;
}
// @public
export const mergeAccountInfoPositions: (info: IAccountInfo) => Observable<IAccountInfo>;

@@ -180,0 +201,0 @@

{
"libraries/data-model/CHANGELOG.json": "4c7160e36f642a13bbb06179213b83897e946b28",
"libraries/data-model/CHANGELOG.md": "10b9a43623493aef37e58ad683fa81166d2bf408",
"libraries/data-model/CHANGELOG.json": "a1a45a98b1b6d959f474429581f57f849d03da7c",
"libraries/data-model/CHANGELOG.md": "f5837896b561b2fb4fa4f8d8dd5e72ec911fab03",
"libraries/data-model/api-extractor.json": "62f4fd324425b9a235f0c117975967aab09ced0c",

@@ -8,6 +8,6 @@ "libraries/data-model/config/jest.config.json": "4bb17bde3ee911163a3edb36a6eb71491d80b1bd",

"libraries/data-model/config/typescript.json": "854907e8a821f2050f6533368db160c649c25348",
"libraries/data-model/etc/data-model.api.md": "916c8b59a47e792136b67548a8798beb704c9989",
"libraries/data-model/package.json": "8681fd53dbda43c9a9b1656a7691c9848c51e891",
"libraries/data-model/etc/data-model.api.md": "87e7b5c75ade4e92d60567901d7a39878cd22bd2",
"libraries/data-model/package.json": "9834f389b3a0140b6196330c92748110648e9b07",
"libraries/data-model/src/index.ts": "49fc2befb673b800db4cdba4235ab4ddb6736788",
"libraries/data-model/src/interfaces.ts": "9eb0df7cc0b6e55622524ebfdd7f883cbbef6df3",
"libraries/data-model/src/interfaces.ts": "70a57c9f2025d866ba93109cddb681dd70c487c2",
"libraries/data-model/src/utils.test.ts": "d4a493922e5c87b47bf59b064fcb807a1411310c",

@@ -14,0 +14,0 @@ "libraries/data-model/src/utils.ts": "105adc3cca451440108f0bd1294f30adfe66395f",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc