@cobo/cobo-waas2 1.36.0 → 1.38.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.
- package/README.md +9 -1
- package/dist/ApiClient.js +1 -1
- package/dist/api/PaymentApi.js +77 -0
- package/dist/index.js +49 -0
- package/dist/model/AddressesEventData.js +18 -3
- package/dist/model/ApprovalUserDetail.js +13 -0
- package/dist/model/BalanceUpdateInfoEventData.js +18 -3
- package/dist/model/ChainsEventData.js +18 -3
- package/dist/model/ComplianceDispositionUpdateEventData.js +18 -3
- package/dist/model/ComplianceKyaScreeningsUpdateEventData.js +18 -3
- package/dist/model/ComplianceKytScreeningsUpdateEventData.js +18 -3
- package/dist/model/CreateBulkSendRequest.js +1 -1
- package/dist/model/CreateBulkSendRequestPayoutParamsInner.js +1 -1
- package/dist/model/EstimatedSOLFeeSlow.js +2 -2
- package/dist/model/FiatTransactionEventData.js +436 -0
- package/dist/model/MPCVaultEventData.js +18 -3
- package/dist/model/OrganizationEventData.js +275 -0
- package/dist/model/PaymentAccountBalanceUpdateEventData.js +418 -0
- package/dist/model/PaymentAddressUpdateEventData.js +31 -3
- package/dist/model/PaymentBalanceChange.js +248 -0
- package/dist/model/PaymentBalanceChangeResponse.js +125 -0
- package/dist/model/PaymentBalanceChangeSourceType.js +106 -0
- package/dist/model/PaymentBalanceFlowDirection.js +61 -0
- package/dist/model/PaymentBulkSend.js +17 -0
- package/dist/model/PaymentBulkSendEvent.js +40 -3
- package/dist/model/PaymentBulkSendItem.js +13 -0
- package/dist/model/PaymentOrderEventData.js +18 -3
- package/dist/model/PaymentPayout.js +1 -1
- package/dist/model/PaymentPayoutDetail.js +2 -2
- package/dist/model/PaymentPayoutEvent.js +20 -5
- package/dist/model/PaymentPayoutRecipientInfo.js +1 -1
- package/dist/model/PaymentRefundEventData.js +21 -4
- package/dist/model/PaymentSettlementEvent.js +18 -3
- package/dist/model/PaymentTransactionEventData.js +57 -3
- package/dist/model/Refund.js +2 -1
- package/dist/model/SOLBase.js +1 -1
- package/dist/model/SuspendedTokenEventData.js +18 -3
- package/dist/model/TSSRequestWebhookEventData.js +18 -3
- package/dist/model/TokenListingEventData.js +18 -3
- package/dist/model/TokensEventData.js +18 -3
- package/dist/model/TransactionFee.js +1 -1
- package/dist/model/TransactionSOLFee.js +3 -3
- package/dist/model/TransactionWebhookEventData.js +18 -3
- package/dist/model/WalletInfoEventData.js +18 -3
- package/dist/model/WebhookEventData.js +195 -20
- package/dist/model/WebhookEventDataType.js +17 -2
- package/dist/model/WebhookEventType.js +25 -0
- package/docs/AddressesEventData.md +7 -1
- package/docs/ApprovalUserDetail.md +1 -0
- package/docs/BalanceUpdateInfoEventData.md +7 -1
- package/docs/ChainsEventData.md +7 -1
- package/docs/ComplianceDispositionUpdateEventData.md +7 -1
- package/docs/ComplianceKyaScreeningsUpdateEventData.md +7 -1
- package/docs/ComplianceKytScreeningsUpdateEventData.md +7 -1
- package/docs/CreateBulkSendRequest.md +1 -1
- package/docs/CreateBulkSendRequestPayoutParamsInner.md +1 -1
- package/docs/EstimatedSOLFeeSlow.md +1 -1
- package/docs/FiatTransactionEventData.md +86 -0
- package/docs/MPCVaultEventData.md +7 -1
- package/docs/OrganizationEventData.md +66 -0
- package/docs/PaymentAccountBalanceUpdateEventData.md +76 -0
- package/docs/PaymentAddressUpdateEventData.md +8 -1
- package/docs/PaymentApi.md +71 -0
- package/docs/PaymentBalanceChange.md +19 -0
- package/docs/PaymentBalanceChangeResponse.md +10 -0
- package/docs/PaymentBalanceChangeSourceType.md +30 -0
- package/docs/PaymentBalanceFlowDirection.md +12 -0
- package/docs/PaymentBulkSend.md +1 -0
- package/docs/PaymentBulkSendEvent.md +8 -1
- package/docs/PaymentBulkSendItem.md +1 -0
- package/docs/PaymentOrderEventData.md +7 -1
- package/docs/PaymentPayout.md +1 -1
- package/docs/PaymentPayoutDetail.md +1 -1
- package/docs/PaymentPayoutEvent.md +8 -2
- package/docs/PaymentPayoutRecipientInfo.md +1 -1
- package/docs/PaymentRefundEventData.md +8 -2
- package/docs/PaymentSettlementEvent.md +7 -1
- package/docs/PaymentTransactionEventData.md +10 -1
- package/docs/Refund.md +1 -1
- package/docs/SOLBase.md +1 -1
- package/docs/SuspendedTokenEventData.md +7 -1
- package/docs/TSSRequestWebhookEventData.md +7 -1
- package/docs/TokenListingEventData.md +7 -1
- package/docs/TokensEventData.md +7 -1
- package/docs/TransactionFee.md +1 -1
- package/docs/TransactionSOLFee.md +2 -2
- package/docs/TransactionWebhookEventData.md +7 -1
- package/docs/WalletInfoEventData.md +7 -1
- package/docs/WebhookEventData.md +45 -11
- package/docs/WebhookEventDataType.md +7 -1
- package/docs/WebhookEventType.md +10 -0
- package/package.json +1 -1
|
@@ -19,11 +19,15 @@ var _ComplianceKyaScreeningsUpdateEventData = _interopRequireDefault(require("./
|
|
|
19
19
|
var _ComplianceKytScreeningsUpdateEventData = _interopRequireDefault(require("./ComplianceKytScreeningsUpdateEventData"));
|
|
20
20
|
var _DispositionStatus = _interopRequireDefault(require("./DispositionStatus"));
|
|
21
21
|
var _DispositionType = _interopRequireDefault(require("./DispositionType"));
|
|
22
|
+
var _FeeStationFiatTransactionType = _interopRequireDefault(require("./FeeStationFiatTransactionType"));
|
|
23
|
+
var _FiatTransactionEventData = _interopRequireDefault(require("./FiatTransactionEventData"));
|
|
22
24
|
var _FundsStatusType = _interopRequireDefault(require("./FundsStatusType"));
|
|
23
|
-
var _KyaScreeningStatus = _interopRequireDefault(require("./KyaScreeningStatus"));
|
|
24
|
-
var _KytScreeningsTransactionType = _interopRequireDefault(require("./KytScreeningsTransactionType"));
|
|
25
25
|
var _MPCVaultEventData = _interopRequireDefault(require("./MPCVaultEventData"));
|
|
26
|
+
var _OrganizationEventData = _interopRequireDefault(require("./OrganizationEventData"));
|
|
27
|
+
var _PaymentAccountBalanceUpdateEventData = _interopRequireDefault(require("./PaymentAccountBalanceUpdateEventData"));
|
|
26
28
|
var _PaymentAddressUpdateEventData = _interopRequireDefault(require("./PaymentAddressUpdateEventData"));
|
|
29
|
+
var _PaymentBalanceChangeSourceType = _interopRequireDefault(require("./PaymentBalanceChangeSourceType"));
|
|
30
|
+
var _PaymentBalanceFlowDirection = _interopRequireDefault(require("./PaymentBalanceFlowDirection"));
|
|
27
31
|
var _PaymentBulkSendEvent = _interopRequireDefault(require("./PaymentBulkSendEvent"));
|
|
28
32
|
var _PaymentBulkSendExecutionMode = _interopRequireDefault(require("./PaymentBulkSendExecutionMode"));
|
|
29
33
|
var _PaymentOrderEventData = _interopRequireDefault(require("./PaymentOrderEventData"));
|
|
@@ -90,7 +94,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
90
94
|
/**
|
|
91
95
|
* Constructs a new <code>WebhookEventData</code>.
|
|
92
96
|
* @alias module:model/WebhookEventData
|
|
93
|
-
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKyaScreeningsUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentBulkSendEvent|module:model/PaymentOrderEventData|module:model/PaymentPayoutEvent|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
97
|
+
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKyaScreeningsUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/FiatTransactionEventData|module:model/MPCVaultEventData|module:model/OrganizationEventData|module:model/PaymentAccountBalanceUpdateEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentBulkSendEvent|module:model/PaymentOrderEventData|module:model/PaymentPayoutEvent|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} instance The actual instance to initialize WebhookEventData.
|
|
94
98
|
*/
|
|
95
99
|
function WebhookEventData() {
|
|
96
100
|
var instance = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
@@ -135,10 +139,22 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
135
139
|
this.actualInstance = _ComplianceKytScreeningsUpdateEventData["default"].constructFromObject(instance);
|
|
136
140
|
match++;
|
|
137
141
|
break;
|
|
142
|
+
case "FiatTransaction":
|
|
143
|
+
this.actualInstance = _FiatTransactionEventData["default"].constructFromObject(instance);
|
|
144
|
+
match++;
|
|
145
|
+
break;
|
|
138
146
|
case "MPCVault":
|
|
139
147
|
this.actualInstance = _MPCVaultEventData["default"].constructFromObject(instance);
|
|
140
148
|
match++;
|
|
141
149
|
break;
|
|
150
|
+
case "Organization":
|
|
151
|
+
this.actualInstance = _OrganizationEventData["default"].constructFromObject(instance);
|
|
152
|
+
match++;
|
|
153
|
+
break;
|
|
154
|
+
case "PaymentAccountBalanceUpdate":
|
|
155
|
+
this.actualInstance = _PaymentAccountBalanceUpdateEventData["default"].constructFromObject(instance);
|
|
156
|
+
match++;
|
|
157
|
+
break;
|
|
142
158
|
case "PaymentAddressUpdate":
|
|
143
159
|
this.actualInstance = _PaymentAddressUpdateEventData["default"].constructFromObject(instance);
|
|
144
160
|
match++;
|
|
@@ -588,6 +604,29 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
588
604
|
// json data failed to deserialize into PaymentBulkSendEvent
|
|
589
605
|
errorMessages.push("Failed to construct PaymentBulkSendEvent: " + err);
|
|
590
606
|
}
|
|
607
|
+
try {
|
|
608
|
+
if (instance instanceof _PaymentAccountBalanceUpdateEventData["default"]) {
|
|
609
|
+
this.actualInstance = instance;
|
|
610
|
+
} else if (!!_PaymentAccountBalanceUpdateEventData["default"].validateJSON && _PaymentAccountBalanceUpdateEventData["default"].validateJSON(instance)) {
|
|
611
|
+
// plain JS object
|
|
612
|
+
// create PaymentAccountBalanceUpdateEventData from JS object
|
|
613
|
+
this.actualInstance = _PaymentAccountBalanceUpdateEventData["default"].constructFromObject(instance);
|
|
614
|
+
} else {
|
|
615
|
+
if (_PaymentAccountBalanceUpdateEventData["default"].constructFromObject(instance)) {
|
|
616
|
+
if (!!_PaymentAccountBalanceUpdateEventData["default"].constructFromObject(instance).toJSON) {
|
|
617
|
+
if (_PaymentAccountBalanceUpdateEventData["default"].constructFromObject(instance).toJSON()) {
|
|
618
|
+
this.actualInstance = _PaymentAccountBalanceUpdateEventData["default"].constructFromObject(instance);
|
|
619
|
+
}
|
|
620
|
+
} else {
|
|
621
|
+
this.actualInstance = _PaymentAccountBalanceUpdateEventData["default"].constructFromObject(instance);
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
match++;
|
|
626
|
+
} catch (err) {
|
|
627
|
+
// json data failed to deserialize into PaymentAccountBalanceUpdateEventData
|
|
628
|
+
errorMessages.push("Failed to construct PaymentAccountBalanceUpdateEventData: " + err);
|
|
629
|
+
}
|
|
591
630
|
try {
|
|
592
631
|
if (instance instanceof _ComplianceDispositionUpdateEventData["default"]) {
|
|
593
632
|
this.actualInstance = instance;
|
|
@@ -657,13 +696,59 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
657
696
|
// json data failed to deserialize into ComplianceKyaScreeningsUpdateEventData
|
|
658
697
|
errorMessages.push("Failed to construct ComplianceKyaScreeningsUpdateEventData: " + err);
|
|
659
698
|
}
|
|
699
|
+
try {
|
|
700
|
+
if (instance instanceof _OrganizationEventData["default"]) {
|
|
701
|
+
this.actualInstance = instance;
|
|
702
|
+
} else if (!!_OrganizationEventData["default"].validateJSON && _OrganizationEventData["default"].validateJSON(instance)) {
|
|
703
|
+
// plain JS object
|
|
704
|
+
// create OrganizationEventData from JS object
|
|
705
|
+
this.actualInstance = _OrganizationEventData["default"].constructFromObject(instance);
|
|
706
|
+
} else {
|
|
707
|
+
if (_OrganizationEventData["default"].constructFromObject(instance)) {
|
|
708
|
+
if (!!_OrganizationEventData["default"].constructFromObject(instance).toJSON) {
|
|
709
|
+
if (_OrganizationEventData["default"].constructFromObject(instance).toJSON()) {
|
|
710
|
+
this.actualInstance = _OrganizationEventData["default"].constructFromObject(instance);
|
|
711
|
+
}
|
|
712
|
+
} else {
|
|
713
|
+
this.actualInstance = _OrganizationEventData["default"].constructFromObject(instance);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
match++;
|
|
718
|
+
} catch (err) {
|
|
719
|
+
// json data failed to deserialize into OrganizationEventData
|
|
720
|
+
errorMessages.push("Failed to construct OrganizationEventData: " + err);
|
|
721
|
+
}
|
|
722
|
+
try {
|
|
723
|
+
if (instance instanceof _FiatTransactionEventData["default"]) {
|
|
724
|
+
this.actualInstance = instance;
|
|
725
|
+
} else if (!!_FiatTransactionEventData["default"].validateJSON && _FiatTransactionEventData["default"].validateJSON(instance)) {
|
|
726
|
+
// plain JS object
|
|
727
|
+
// create FiatTransactionEventData from JS object
|
|
728
|
+
this.actualInstance = _FiatTransactionEventData["default"].constructFromObject(instance);
|
|
729
|
+
} else {
|
|
730
|
+
if (_FiatTransactionEventData["default"].constructFromObject(instance)) {
|
|
731
|
+
if (!!_FiatTransactionEventData["default"].constructFromObject(instance).toJSON) {
|
|
732
|
+
if (_FiatTransactionEventData["default"].constructFromObject(instance).toJSON()) {
|
|
733
|
+
this.actualInstance = _FiatTransactionEventData["default"].constructFromObject(instance);
|
|
734
|
+
}
|
|
735
|
+
} else {
|
|
736
|
+
this.actualInstance = _FiatTransactionEventData["default"].constructFromObject(instance);
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
match++;
|
|
741
|
+
} catch (err) {
|
|
742
|
+
// json data failed to deserialize into FiatTransactionEventData
|
|
743
|
+
errorMessages.push("Failed to construct FiatTransactionEventData: " + err);
|
|
744
|
+
}
|
|
660
745
|
|
|
661
746
|
// if (match > 1) {
|
|
662
|
-
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
747
|
+
// throw new Error("Multiple matches found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Input: " + JSON.stringify(instance));
|
|
663
748
|
// } else
|
|
664
749
|
if (match === 0) {
|
|
665
750
|
// this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
666
|
-
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, MPCVaultEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
751
|
+
// throw new Error("No match found constructing `WebhookEventData` with oneOf schemas AddressesEventData, BalanceUpdateInfoEventData, ChainsEventData, ComplianceDispositionUpdateEventData, ComplianceKyaScreeningsUpdateEventData, ComplianceKytScreeningsUpdateEventData, FiatTransactionEventData, MPCVaultEventData, OrganizationEventData, PaymentAccountBalanceUpdateEventData, PaymentAddressUpdateEventData, PaymentBulkSendEvent, PaymentOrderEventData, PaymentPayoutEvent, PaymentRefundEventData, PaymentSettlementEvent, PaymentTransactionEventData, SuspendedTokenEventData, TSSRequestWebhookEventData, TokenListingEventData, TokensEventData, TransactionWebhookEventData, WalletInfoEventData. Details: " +
|
|
667
752
|
// errorMessages.join(", "));
|
|
668
753
|
return;
|
|
669
754
|
} else {// only 1 match
|
|
@@ -682,16 +767,16 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
682
767
|
key: "getActualInstance",
|
|
683
768
|
value:
|
|
684
769
|
/**
|
|
685
|
-
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>ComplianceKyaScreeningsUpdateEventData</code>, <code>ComplianceKytScreeningsUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentBulkSendEvent</code>, <code>PaymentOrderEventData</code>, <code>PaymentPayoutEvent</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
686
|
-
* @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKyaScreeningsUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentBulkSendEvent|module:model/PaymentOrderEventData|module:model/PaymentPayoutEvent|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
770
|
+
* Gets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>ComplianceKyaScreeningsUpdateEventData</code>, <code>ComplianceKytScreeningsUpdateEventData</code>, <code>FiatTransactionEventData</code>, <code>MPCVaultEventData</code>, <code>OrganizationEventData</code>, <code>PaymentAccountBalanceUpdateEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentBulkSendEvent</code>, <code>PaymentOrderEventData</code>, <code>PaymentPayoutEvent</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
771
|
+
* @return {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKyaScreeningsUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/FiatTransactionEventData|module:model/MPCVaultEventData|module:model/OrganizationEventData|module:model/PaymentAccountBalanceUpdateEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentBulkSendEvent|module:model/PaymentOrderEventData|module:model/PaymentPayoutEvent|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} The actual instance.
|
|
687
772
|
*/
|
|
688
773
|
function getActualInstance() {
|
|
689
774
|
return this.actualInstance;
|
|
690
775
|
}
|
|
691
776
|
|
|
692
777
|
/**
|
|
693
|
-
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>ComplianceKyaScreeningsUpdateEventData</code>, <code>ComplianceKytScreeningsUpdateEventData</code>, <code>MPCVaultEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentBulkSendEvent</code>, <code>PaymentOrderEventData</code>, <code>PaymentPayoutEvent</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
694
|
-
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKyaScreeningsUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/MPCVaultEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentBulkSendEvent|module:model/PaymentOrderEventData|module:model/PaymentPayoutEvent|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
778
|
+
* Sets the actual instance, which can be <code>AddressesEventData</code>, <code>BalanceUpdateInfoEventData</code>, <code>ChainsEventData</code>, <code>ComplianceDispositionUpdateEventData</code>, <code>ComplianceKyaScreeningsUpdateEventData</code>, <code>ComplianceKytScreeningsUpdateEventData</code>, <code>FiatTransactionEventData</code>, <code>MPCVaultEventData</code>, <code>OrganizationEventData</code>, <code>PaymentAccountBalanceUpdateEventData</code>, <code>PaymentAddressUpdateEventData</code>, <code>PaymentBulkSendEvent</code>, <code>PaymentOrderEventData</code>, <code>PaymentPayoutEvent</code>, <code>PaymentRefundEventData</code>, <code>PaymentSettlementEvent</code>, <code>PaymentTransactionEventData</code>, <code>SuspendedTokenEventData</code>, <code>TSSRequestWebhookEventData</code>, <code>TokenListingEventData</code>, <code>TokensEventData</code>, <code>TransactionWebhookEventData</code>, <code>WalletInfoEventData</code>.
|
|
779
|
+
* @param {(module:model/AddressesEventData|module:model/BalanceUpdateInfoEventData|module:model/ChainsEventData|module:model/ComplianceDispositionUpdateEventData|module:model/ComplianceKyaScreeningsUpdateEventData|module:model/ComplianceKytScreeningsUpdateEventData|module:model/FiatTransactionEventData|module:model/MPCVaultEventData|module:model/OrganizationEventData|module:model/PaymentAccountBalanceUpdateEventData|module:model/PaymentAddressUpdateEventData|module:model/PaymentBulkSendEvent|module:model/PaymentOrderEventData|module:model/PaymentPayoutEvent|module:model/PaymentRefundEventData|module:model/PaymentSettlementEvent|module:model/PaymentTransactionEventData|module:model/SuspendedTokenEventData|module:model/TSSRequestWebhookEventData|module:model/TokenListingEventData|module:model/TokensEventData|module:model/TransactionWebhookEventData|module:model/WalletInfoEventData)} obj The actual instance.
|
|
695
780
|
*/
|
|
696
781
|
}, {
|
|
697
782
|
key: "setActualInstance",
|
|
@@ -706,7 +791,7 @@ var WebhookEventData = /*#__PURE__*/function () {
|
|
|
706
791
|
}]);
|
|
707
792
|
}();
|
|
708
793
|
/**
|
|
709
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
794
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
710
795
|
* @member {module:model/WebhookEventData.DataTypeEnum} data_type
|
|
711
796
|
*/
|
|
712
797
|
_WebhookEventData = WebhookEventData;
|
|
@@ -750,7 +835,8 @@ WebhookEventData.prototype['wallet_id'] = undefined;
|
|
|
750
835
|
WebhookEventData.prototype['type'] = undefined;
|
|
751
836
|
|
|
752
837
|
/**
|
|
753
|
-
*
|
|
838
|
+
* The status of the fiat transaction. Possible values include: - `Created`: The transaction has been created. - `Succeeded`: The transaction has been completed successfully.
|
|
839
|
+
* @member {module:model/WebhookEventData.StatusEnum} status
|
|
754
840
|
*/
|
|
755
841
|
WebhookEventData.prototype['status'] = undefined;
|
|
756
842
|
|
|
@@ -772,7 +858,7 @@ WebhookEventData.prototype['failed_reason'] = undefined;
|
|
|
772
858
|
WebhookEventData.prototype['chain_id'] = undefined;
|
|
773
859
|
|
|
774
860
|
/**
|
|
775
|
-
* The token ID
|
|
861
|
+
* The token ID of the balance change.
|
|
776
862
|
* @member {String} token_id
|
|
777
863
|
*/
|
|
778
864
|
WebhookEventData.prototype['token_id'] = undefined;
|
|
@@ -866,7 +952,7 @@ WebhookEventData.prototype['description'] = undefined;
|
|
|
866
952
|
WebhookEventData.prototype['is_loop'] = undefined;
|
|
867
953
|
|
|
868
954
|
/**
|
|
869
|
-
* The
|
|
955
|
+
* The Cobo category of the transaction.
|
|
870
956
|
* @member {Array.<String>} cobo_category
|
|
871
957
|
*/
|
|
872
958
|
WebhookEventData.prototype['cobo_category'] = undefined;
|
|
@@ -883,7 +969,7 @@ WebhookEventData.prototype['extra'] = undefined;
|
|
|
883
969
|
WebhookEventData.prototype['fueling_info'] = undefined;
|
|
884
970
|
|
|
885
971
|
/**
|
|
886
|
-
* The time when the
|
|
972
|
+
* The time when the transaction was created, in Unix timestamp format, measured in milliseconds.
|
|
887
973
|
* @member {Number} created_timestamp
|
|
888
974
|
*/
|
|
889
975
|
WebhookEventData.prototype['created_timestamp'] = undefined;
|
|
@@ -935,7 +1021,7 @@ WebhookEventData.prototype['vault_id'] = undefined;
|
|
|
935
1021
|
WebhookEventData.prototype['project_id'] = undefined;
|
|
936
1022
|
|
|
937
1023
|
/**
|
|
938
|
-
* The
|
|
1024
|
+
* The organization name.
|
|
939
1025
|
* @member {String} name
|
|
940
1026
|
*/
|
|
941
1027
|
WebhookEventData.prototype['name'] = undefined;
|
|
@@ -1131,7 +1217,7 @@ WebhookEventData.prototype['settlement_status'] = undefined;
|
|
|
1131
1217
|
WebhookEventData.prototype['refund_id'] = undefined;
|
|
1132
1218
|
|
|
1133
1219
|
/**
|
|
1134
|
-
* The amount
|
|
1220
|
+
* The transaction amount.
|
|
1135
1221
|
* @member {String} amount
|
|
1136
1222
|
*/
|
|
1137
1223
|
WebhookEventData.prototype['amount'] = undefined;
|
|
@@ -1166,6 +1252,7 @@ WebhookEventData.prototype['merchant_fee_amount'] = undefined;
|
|
|
1166
1252
|
WebhookEventData.prototype['merchant_fee_token_id'] = undefined;
|
|
1167
1253
|
|
|
1168
1254
|
/**
|
|
1255
|
+
* The commission fee. Not returned when no fee has been incurred, the actual charged amount once incurred, or `0` if refunded.
|
|
1169
1256
|
* @member {module:model/CommissionFee} commission_fee
|
|
1170
1257
|
*/
|
|
1171
1258
|
WebhookEventData.prototype['commission_fee'] = undefined;
|
|
@@ -1219,6 +1306,18 @@ WebhookEventData.prototype['payer_id'] = undefined;
|
|
|
1219
1306
|
*/
|
|
1220
1307
|
WebhookEventData.prototype['custom_payer_id'] = undefined;
|
|
1221
1308
|
|
|
1309
|
+
/**
|
|
1310
|
+
* A unique identifier assigned by Cobo to track and identify subscription.
|
|
1311
|
+
* @member {String} subscription_id
|
|
1312
|
+
*/
|
|
1313
|
+
WebhookEventData.prototype['subscription_id'] = undefined;
|
|
1314
|
+
|
|
1315
|
+
/**
|
|
1316
|
+
* A unique identifier assigned by Cobo to track and identify subscription action.
|
|
1317
|
+
* @member {String} action_id
|
|
1318
|
+
*/
|
|
1319
|
+
WebhookEventData.prototype['action_id'] = undefined;
|
|
1320
|
+
|
|
1222
1321
|
/**
|
|
1223
1322
|
* The chain ID.
|
|
1224
1323
|
* @member {String} chain
|
|
@@ -1244,7 +1343,7 @@ WebhookEventData.prototype['updated_address'] = undefined;
|
|
|
1244
1343
|
WebhookEventData.prototype['payout_id'] = undefined;
|
|
1245
1344
|
|
|
1246
1345
|
/**
|
|
1247
|
-
* The source account
|
|
1346
|
+
* The source account of the balance change. This field uses the same semantics as `source_account` in [List balance changes](https://www.cobo.com/developers/v2/api-references/payment/list-balance-changes). - When the account is a merchant account, this is the merchant ID (merchant code), which you can retrieve by calling [List all merchants](https://www.cobo.com/developers/v2/api-references/payment/list-all-merchants). - When the account is the developer account, use `developer`.
|
|
1248
1347
|
* @member {String} source_account
|
|
1249
1348
|
*/
|
|
1250
1349
|
WebhookEventData.prototype['source_account'] = undefined;
|
|
@@ -1267,7 +1366,7 @@ WebhookEventData.prototype['recipient_info'] = undefined;
|
|
|
1267
1366
|
WebhookEventData.prototype['actual_payout_amount'] = undefined;
|
|
1268
1367
|
|
|
1269
1368
|
/**
|
|
1270
|
-
* The commission fees
|
|
1369
|
+
* The commission fees. Not returned when no fee has been incurred, the actual charged amounts once incurred, or `0` if refunded.
|
|
1271
1370
|
* @member {Array.<module:model/CommissionFee>} commission_fees
|
|
1272
1371
|
*/
|
|
1273
1372
|
WebhookEventData.prototype['commission_fees'] = undefined;
|
|
@@ -1289,6 +1388,58 @@ WebhookEventData.prototype['bulk_send_id'] = undefined;
|
|
|
1289
1388
|
*/
|
|
1290
1389
|
WebhookEventData.prototype['execution_mode'] = undefined;
|
|
1291
1390
|
|
|
1391
|
+
/**
|
|
1392
|
+
* The source ID of the balance change.
|
|
1393
|
+
* @member {String} source_id
|
|
1394
|
+
*/
|
|
1395
|
+
WebhookEventData.prototype['source_id'] = undefined;
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* @member {module:model/PaymentBalanceChangeSourceType} source_type
|
|
1399
|
+
*/
|
|
1400
|
+
WebhookEventData.prototype['source_type'] = undefined;
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* The balance change amount in the token's decimal precision, represented as a numeric string.
|
|
1404
|
+
* @member {String} amount_raw
|
|
1405
|
+
*/
|
|
1406
|
+
WebhookEventData.prototype['amount_raw'] = undefined;
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
* The account balance before the balance change, truncated to two decimal places and represented as a numeric string.
|
|
1410
|
+
* @member {String} balance_before
|
|
1411
|
+
*/
|
|
1412
|
+
WebhookEventData.prototype['balance_before'] = undefined;
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* The account balance before the balance change in the token's decimal precision, represented as a numeric string.
|
|
1416
|
+
* @member {String} balance_before_raw
|
|
1417
|
+
*/
|
|
1418
|
+
WebhookEventData.prototype['balance_before_raw'] = undefined;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* The account balance after the balance change, truncated to two decimal places and represented as a numeric string.
|
|
1422
|
+
* @member {String} balance_after
|
|
1423
|
+
*/
|
|
1424
|
+
WebhookEventData.prototype['balance_after'] = undefined;
|
|
1425
|
+
|
|
1426
|
+
/**
|
|
1427
|
+
* The account balance after the balance change in the token's decimal precision, represented as a numeric string.
|
|
1428
|
+
* @member {String} balance_after_raw
|
|
1429
|
+
*/
|
|
1430
|
+
WebhookEventData.prototype['balance_after_raw'] = undefined;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* @member {module:model/PaymentBalanceFlowDirection} flow_direction
|
|
1434
|
+
*/
|
|
1435
|
+
WebhookEventData.prototype['flow_direction'] = undefined;
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* The time when the balance was updated, represented as a UNIX timestamp in seconds.
|
|
1439
|
+
* @member {Number} update_time
|
|
1440
|
+
*/
|
|
1441
|
+
WebhookEventData.prototype['update_time'] = undefined;
|
|
1442
|
+
|
|
1292
1443
|
/**
|
|
1293
1444
|
* @member {module:model/DispositionType} disposition_type
|
|
1294
1445
|
*/
|
|
@@ -1312,7 +1463,7 @@ WebhookEventData.prototype['destination_address'] = undefined;
|
|
|
1312
1463
|
WebhookEventData.prototype['disposition_amount'] = undefined;
|
|
1313
1464
|
|
|
1314
1465
|
/**
|
|
1315
|
-
* @member {module:model/
|
|
1466
|
+
* @member {module:model/FeeStationFiatTransactionType} transaction_type
|
|
1316
1467
|
*/
|
|
1317
1468
|
WebhookEventData.prototype['transaction_type'] = undefined;
|
|
1318
1469
|
|
|
@@ -1331,5 +1482,29 @@ WebhookEventData.prototype['funds_status'] = undefined;
|
|
|
1331
1482
|
* @member {String} screening_id
|
|
1332
1483
|
*/
|
|
1333
1484
|
WebhookEventData.prototype['screening_id'] = undefined;
|
|
1334
|
-
|
|
1485
|
+
|
|
1486
|
+
/**
|
|
1487
|
+
* The organization ID.
|
|
1488
|
+
* @member {String} org_id
|
|
1489
|
+
*/
|
|
1490
|
+
WebhookEventData.prototype['org_id'] = undefined;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* The UUID of the parent (main) transaction that this record is associated with. Set only when the current record is a gas/fee transaction initiated by FeeStation; omit for main transactions.
|
|
1494
|
+
* @member {String} main_transaction_id
|
|
1495
|
+
*/
|
|
1496
|
+
WebhookEventData.prototype['main_transaction_id'] = undefined;
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* The fiat currency of the transaction. Possible values include: - `USD`: US Dollar.
|
|
1500
|
+
* @member {String} fiat_currency
|
|
1501
|
+
*/
|
|
1502
|
+
WebhookEventData.prototype['fiat_currency'] = undefined;
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* The time when the transaction was last modified, in Unix timestamp format, measured in milliseconds.
|
|
1506
|
+
* @member {Number} modified_timestamp
|
|
1507
|
+
*/
|
|
1508
|
+
WebhookEventData.prototype['modified_timestamp'] = undefined;
|
|
1509
|
+
WebhookEventData.OneOf = ["AddressesEventData", "BalanceUpdateInfoEventData", "ChainsEventData", "ComplianceDispositionUpdateEventData", "ComplianceKyaScreeningsUpdateEventData", "ComplianceKytScreeningsUpdateEventData", "FiatTransactionEventData", "MPCVaultEventData", "OrganizationEventData", "PaymentAccountBalanceUpdateEventData", "PaymentAddressUpdateEventData", "PaymentBulkSendEvent", "PaymentOrderEventData", "PaymentPayoutEvent", "PaymentRefundEventData", "PaymentSettlementEvent", "PaymentTransactionEventData", "SuspendedTokenEventData", "TSSRequestWebhookEventData", "TokenListingEventData", "TokensEventData", "TransactionWebhookEventData", "WalletInfoEventData"];
|
|
1335
1510
|
var _default = exports["default"] = WebhookEventData;
|
|
@@ -33,7 +33,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
|
|
|
33
33
|
* Constructs a new <code>WebhookEventDataType</code>.
|
|
34
34
|
* The data type of the event.
|
|
35
35
|
* @alias module:model/WebhookEventDataType
|
|
36
|
-
* @param data_type {module:model/WebhookEventDataType.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
36
|
+
* @param data_type {module:model/WebhookEventDataType.DataTypeEnum} The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
37
37
|
*/
|
|
38
38
|
function WebhookEventDataType(data_type) {
|
|
39
39
|
_classCallCheck(this, WebhookEventDataType);
|
|
@@ -104,7 +104,7 @@ var WebhookEventDataType = /*#__PURE__*/function () {
|
|
|
104
104
|
WebhookEventDataType.RequiredProperties = ["data_type"];
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data.
|
|
107
|
+
* The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data.
|
|
108
108
|
* @member {module:model/WebhookEventDataType.DataTypeEnum} data_type
|
|
109
109
|
*/
|
|
110
110
|
WebhookEventDataType.prototype['data_type'] = undefined;
|
|
@@ -190,6 +190,11 @@ WebhookEventDataType['DataTypeEnum'] = {
|
|
|
190
190
|
* @const
|
|
191
191
|
*/
|
|
192
192
|
"PaymentBulkSend": "PaymentBulkSend",
|
|
193
|
+
/**
|
|
194
|
+
* value: "PaymentAccountBalanceUpdate"
|
|
195
|
+
* @const
|
|
196
|
+
*/
|
|
197
|
+
"PaymentAccountBalanceUpdate": "PaymentAccountBalanceUpdate",
|
|
193
198
|
/**
|
|
194
199
|
* value: "BalanceUpdateInfo"
|
|
195
200
|
* @const
|
|
@@ -215,6 +220,16 @@ WebhookEventDataType['DataTypeEnum'] = {
|
|
|
215
220
|
* @const
|
|
216
221
|
*/
|
|
217
222
|
"ComplianceKyaScreenings": "ComplianceKyaScreenings",
|
|
223
|
+
/**
|
|
224
|
+
* value: "Organization"
|
|
225
|
+
* @const
|
|
226
|
+
*/
|
|
227
|
+
"Organization": "Organization",
|
|
228
|
+
/**
|
|
229
|
+
* value: "FiatTransaction"
|
|
230
|
+
* @const
|
|
231
|
+
*/
|
|
232
|
+
"FiatTransaction": "FiatTransaction",
|
|
218
233
|
/**
|
|
219
234
|
* value: "unknown_default_open_api"
|
|
220
235
|
* @const
|
|
@@ -80,6 +80,11 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
|
|
|
80
80
|
* @const
|
|
81
81
|
*/
|
|
82
82
|
_defineProperty(this, "wallets.created", "wallets.created");
|
|
83
|
+
/**
|
|
84
|
+
* value: "wallets.updated"
|
|
85
|
+
* @const
|
|
86
|
+
*/
|
|
87
|
+
_defineProperty(this, "wallets.updated", "wallets.updated");
|
|
83
88
|
/**
|
|
84
89
|
* value: "wallets.token_listing.failed"
|
|
85
90
|
* @const
|
|
@@ -95,6 +100,21 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
|
|
|
95
100
|
* @const
|
|
96
101
|
*/
|
|
97
102
|
_defineProperty(this, "mpc_vaults.created", "mpc_vaults.created");
|
|
103
|
+
/**
|
|
104
|
+
* value: "mpc_vaults.updated"
|
|
105
|
+
* @const
|
|
106
|
+
*/
|
|
107
|
+
_defineProperty(this, "mpc_vaults.updated", "mpc_vaults.updated");
|
|
108
|
+
/**
|
|
109
|
+
* value: "mpc_vaults.deleted"
|
|
110
|
+
* @const
|
|
111
|
+
*/
|
|
112
|
+
_defineProperty(this, "mpc_vaults.deleted", "mpc_vaults.deleted");
|
|
113
|
+
/**
|
|
114
|
+
* value: "organizations.updated"
|
|
115
|
+
* @const
|
|
116
|
+
*/
|
|
117
|
+
_defineProperty(this, "organizations.updated", "organizations.updated");
|
|
98
118
|
/**
|
|
99
119
|
* value: "fee_station.transaction.created"
|
|
100
120
|
* @const
|
|
@@ -185,6 +205,11 @@ var WebhookEventType = exports["default"] = /*#__PURE__*/function () {
|
|
|
185
205
|
* @const
|
|
186
206
|
*/
|
|
187
207
|
_defineProperty(this, "payment.transaction.failed", "payment.transaction.failed");
|
|
208
|
+
/**
|
|
209
|
+
* value: "payment.account.balance.updated"
|
|
210
|
+
* @const
|
|
211
|
+
*/
|
|
212
|
+
_defineProperty(this, "payment.account.balance.updated", "payment.account.balance.updated");
|
|
188
213
|
/**
|
|
189
214
|
* value: "payment.status.updated"
|
|
190
215
|
* @const
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. |
|
|
8
8
|
**addresses** | [**[AddressesEventDataAllOfAddresses]**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional]
|
|
9
9
|
|
|
10
10
|
|
|
@@ -42,6 +42,8 @@ Name | Type | Description | Notes
|
|
|
42
42
|
|
|
43
43
|
* `PaymentBulkSend` (value: `"PaymentBulkSend"`)
|
|
44
44
|
|
|
45
|
+
* `PaymentAccountBalanceUpdate` (value: `"PaymentAccountBalanceUpdate"`)
|
|
46
|
+
|
|
45
47
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
46
48
|
|
|
47
49
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
@@ -52,6 +54,10 @@ Name | Type | Description | Notes
|
|
|
52
54
|
|
|
53
55
|
* `ComplianceKyaScreenings` (value: `"ComplianceKyaScreenings"`)
|
|
54
56
|
|
|
57
|
+
* `Organization` (value: `"Organization"`)
|
|
58
|
+
|
|
59
|
+
* `FiatTransaction` (value: `"FiatTransaction"`)
|
|
60
|
+
|
|
55
61
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
56
62
|
|
|
57
63
|
|
|
@@ -21,5 +21,6 @@ Name | Type | Description | Notes
|
|
|
21
21
|
**message_version** | **String** | Version of the message format used for the transaction approval. | [optional]
|
|
22
22
|
**message** | **String** | Message associated with the transaction approval. | [optional]
|
|
23
23
|
**extra_message** | **String** | Any additional message or information related to the transaction approval. | [optional]
|
|
24
|
+
**result_token** | **String** | The result token appended to the signing content when verifying signatures. The full signing content is constructed as `{message}||{result_token}`. | [optional]
|
|
24
25
|
|
|
25
26
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. |
|
|
8
8
|
**token_id** | **String** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
|
|
9
9
|
**address** | **String** | The wallet address. |
|
|
10
10
|
**wallet_uuid** | **String** | The wallet ID. |
|
|
@@ -46,6 +46,8 @@ Name | Type | Description | Notes
|
|
|
46
46
|
|
|
47
47
|
* `PaymentBulkSend` (value: `"PaymentBulkSend"`)
|
|
48
48
|
|
|
49
|
+
* `PaymentAccountBalanceUpdate` (value: `"PaymentAccountBalanceUpdate"`)
|
|
50
|
+
|
|
49
51
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
50
52
|
|
|
51
53
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
@@ -56,6 +58,10 @@ Name | Type | Description | Notes
|
|
|
56
58
|
|
|
57
59
|
* `ComplianceKyaScreenings` (value: `"ComplianceKyaScreenings"`)
|
|
58
60
|
|
|
61
|
+
* `Organization` (value: `"Organization"`)
|
|
62
|
+
|
|
63
|
+
* `FiatTransaction` (value: `"FiatTransaction"`)
|
|
64
|
+
|
|
59
65
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
60
66
|
|
|
61
67
|
|
package/docs/ChainsEventData.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. |
|
|
8
8
|
**chains** | [**[ChainInfo]**](ChainInfo.md) | The enabled chains. |
|
|
9
9
|
**wallet_type** | [**WalletType**](WalletType.md) | | [optional]
|
|
10
10
|
**wallet_subtypes** | [**[WalletSubtype]**](WalletSubtype.md) | | [optional]
|
|
@@ -44,6 +44,8 @@ Name | Type | Description | Notes
|
|
|
44
44
|
|
|
45
45
|
* `PaymentBulkSend` (value: `"PaymentBulkSend"`)
|
|
46
46
|
|
|
47
|
+
* `PaymentAccountBalanceUpdate` (value: `"PaymentAccountBalanceUpdate"`)
|
|
48
|
+
|
|
47
49
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
48
50
|
|
|
49
51
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
@@ -54,6 +56,10 @@ Name | Type | Description | Notes
|
|
|
54
56
|
|
|
55
57
|
* `ComplianceKyaScreenings` (value: `"ComplianceKyaScreenings"`)
|
|
56
58
|
|
|
59
|
+
* `Organization` (value: `"Organization"`)
|
|
60
|
+
|
|
61
|
+
* `FiatTransaction` (value: `"FiatTransaction"`)
|
|
62
|
+
|
|
57
63
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
58
64
|
|
|
59
65
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. |
|
|
7
|
+
**data_type** | **String** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. - `Chains`: The enabled chain event data. - `Tokens`: The enabled token event data. - `TokenListing`: The token listing event data. - `PaymentOrder`: The payment order event data. - `PaymentRefund`: The payment refund event data. - `PaymentSettlement`: The payment settlement event data. - `PaymentTransaction`: The payment transaction event data. - `PaymentAddressUpdate`: The top-up address update event data. - `PaymentPayout`: The payment payout event data. - `PaymentBulkSend`: The payment bulk send event data. - `PaymentAccountBalanceUpdate`: The Payments account balance updated event data, including account information and balance change details. - `BalanceUpdateInfo`: The balance update event data. - `SuspendedToken`: The token suspension event data. - `ComplianceDisposition`: The compliance disposition event data. - `ComplianceKytScreenings`: The compliance KYT screenings event data. - `ComplianceKyaScreenings`: The compliance KYA screenings event data. - `Organization`: The organization event data. - `FiatTransaction`: The fiat transaction event data. |
|
|
8
8
|
**transaction_id** | **String** | The transaction ID. |
|
|
9
9
|
**disposition_type** | [**DispositionType**](DispositionType.md) | |
|
|
10
10
|
**disposition_status** | [**DispositionStatus**](DispositionStatus.md) | |
|
|
@@ -47,6 +47,8 @@ Name | Type | Description | Notes
|
|
|
47
47
|
|
|
48
48
|
* `PaymentBulkSend` (value: `"PaymentBulkSend"`)
|
|
49
49
|
|
|
50
|
+
* `PaymentAccountBalanceUpdate` (value: `"PaymentAccountBalanceUpdate"`)
|
|
51
|
+
|
|
50
52
|
* `BalanceUpdateInfo` (value: `"BalanceUpdateInfo"`)
|
|
51
53
|
|
|
52
54
|
* `SuspendedToken` (value: `"SuspendedToken"`)
|
|
@@ -57,6 +59,10 @@ Name | Type | Description | Notes
|
|
|
57
59
|
|
|
58
60
|
* `ComplianceKyaScreenings` (value: `"ComplianceKyaScreenings"`)
|
|
59
61
|
|
|
62
|
+
* `Organization` (value: `"Organization"`)
|
|
63
|
+
|
|
64
|
+
* `FiatTransaction` (value: `"FiatTransaction"`)
|
|
65
|
+
|
|
60
66
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
61
67
|
|
|
62
68
|
|