@antom-tech/node 0.0.0-stage → 0.1.2-beta.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/LEGAL.md +7 -0
- package/README.md +227 -2
- package/dist/cjs/amount-rules-data.js +1 -0
- package/dist/cjs/amount.d.ts +34 -0
- package/dist/cjs/amount.js +165 -0
- package/dist/cjs/client.d.ts +14 -0
- package/dist/cjs/client.js +164 -0
- package/dist/cjs/errors.d.ts +11 -0
- package/dist/cjs/errors.js +21 -0
- package/dist/cjs/generated/index.d.ts +344 -0
- package/dist/cjs/generated/index.js +2 -0
- package/dist/cjs/generated/model/authapplytoken.d.ts +2 -0
- package/dist/cjs/generated/model/authapplytoken.js +2 -0
- package/dist/cjs/generated/model/authconsult.d.ts +59 -0
- package/dist/cjs/generated/model/authconsult.js +2 -0
- package/dist/cjs/generated/model/billingsubscriptioncancel.d.ts +5 -0
- package/dist/cjs/generated/model/billingsubscriptioncancel.js +2 -0
- package/dist/cjs/generated/model/billingsubscriptioncreate.d.ts +5 -0
- package/dist/cjs/generated/model/billingsubscriptioncreate.js +2 -0
- package/dist/cjs/generated/model/billingsubscriptioninquiredetails.d.ts +17 -0
- package/dist/cjs/generated/model/billingsubscriptioninquiredetails.js +2 -0
- package/dist/cjs/generated/model/billingsubscriptioninquirelist.d.ts +24 -0
- package/dist/cjs/generated/model/billingsubscriptioninquirelist.js +2 -0
- package/dist/cjs/generated/model/billingsubscriptionupdate.d.ts +17 -0
- package/dist/cjs/generated/model/billingsubscriptionupdate.js +2 -0
- package/dist/cjs/generated/model/couponcreate.d.ts +22 -0
- package/dist/cjs/generated/model/couponcreate.js +2 -0
- package/dist/cjs/generated/model/couponinquiredetails.d.ts +13 -0
- package/dist/cjs/generated/model/couponinquiredetails.js +2 -0
- package/dist/cjs/generated/model/couponinquirelist.d.ts +13 -0
- package/dist/cjs/generated/model/couponinquirelist.js +2 -0
- package/dist/cjs/generated/model/creditnotecreate.d.ts +10 -0
- package/dist/cjs/generated/model/creditnotecreate.js +2 -0
- package/dist/cjs/generated/model/creditnoteinquirelist.d.ts +17 -0
- package/dist/cjs/generated/model/creditnoteinquirelist.js +2 -0
- package/dist/cjs/generated/model/customerinquirelist.d.ts +12 -0
- package/dist/cjs/generated/model/customerinquirelist.js +2 -0
- package/dist/cjs/generated/model/downloaddisputeevidence.d.ts +4 -0
- package/dist/cjs/generated/model/downloaddisputeevidence.js +2 -0
- package/dist/cjs/generated/model/inquireaccountinfo.d.ts +11 -0
- package/dist/cjs/generated/model/inquireaccountinfo.js +2 -0
- package/dist/cjs/generated/model/inquirecard.d.ts +10 -0
- package/dist/cjs/generated/model/inquirecard.js +2 -0
- package/dist/cjs/generated/model/inquirecardsensitiveinfo.d.ts +18 -0
- package/dist/cjs/generated/model/inquirecardsensitiveinfo.js +2 -0
- package/dist/cjs/generated/model/inquirecardtransactionevent.d.ts +4 -0
- package/dist/cjs/generated/model/inquirecardtransactionevent.js +2 -0
- package/dist/cjs/generated/model/inquirecardtransactionlifecycle.d.ts +17 -0
- package/dist/cjs/generated/model/inquirecardtransactionlifecycle.js +2 -0
- package/dist/cjs/generated/model/inquirecardtransactionlifecycledetail.d.ts +18 -0
- package/dist/cjs/generated/model/inquirecardtransactionlifecycledetail.js +2 -0
- package/dist/cjs/generated/model/inquireexchangerate.d.ts +14 -0
- package/dist/cjs/generated/model/inquireexchangerate.js +2 -0
- package/dist/cjs/generated/model/inquireholdlist.d.ts +11 -0
- package/dist/cjs/generated/model/inquireholdlist.js +2 -0
- package/dist/cjs/generated/model/inquirepaymentmethod.d.ts +19 -0
- package/dist/cjs/generated/model/inquirepaymentmethod.js +2 -0
- package/dist/cjs/generated/model/inquirepaymenttoken.d.ts +10 -0
- package/dist/cjs/generated/model/inquirepaymenttoken.js +2 -0
- package/dist/cjs/generated/model/inquirerulelist.d.ts +16 -0
- package/dist/cjs/generated/model/inquirerulelist.js +2 -0
- package/dist/cjs/generated/model/inquiresubscriptionpayment.d.ts +13 -0
- package/dist/cjs/generated/model/inquiresubscriptionpayment.js +2 -0
- package/dist/cjs/generated/model/inquiryrate.d.ts +11 -0
- package/dist/cjs/generated/model/inquiryrate.js +2 -0
- package/dist/cjs/generated/model/inquirystatement.d.ts +7 -0
- package/dist/cjs/generated/model/inquirystatement.js +2 -0
- package/dist/cjs/generated/model/inquirystatementlist.d.ts +5 -0
- package/dist/cjs/generated/model/inquirystatementlist.js +2 -0
- package/dist/cjs/generated/model/invoicecreate.d.ts +35 -0
- package/dist/cjs/generated/model/invoicecreate.js +2 -0
- package/dist/cjs/generated/model/invoiceinquiredetails.d.ts +26 -0
- package/dist/cjs/generated/model/invoiceinquiredetails.js +2 -0
- package/dist/cjs/generated/model/invoiceinquirelist.d.ts +23 -0
- package/dist/cjs/generated/model/invoiceinquirelist.js +2 -0
- package/dist/cjs/generated/model/invoiceupdate.d.ts +5 -0
- package/dist/cjs/generated/model/invoiceupdate.js +2 -0
- package/dist/cjs/generated/model/pay.d.ts +24 -0
- package/dist/cjs/generated/model/pay.js +2 -0
- package/dist/cjs/generated/model/payconsult.d.ts +103 -0
- package/dist/cjs/generated/model/payconsult.js +2 -0
- package/dist/cjs/generated/model/paymentsession.d.ts +91 -0
- package/dist/cjs/generated/model/paymentsession.js +2 -0
- package/dist/cjs/generated/model/payquery.d.ts +43 -0
- package/dist/cjs/generated/model/payquery.js +2 -0
- package/dist/cjs/generated/model/productinquirelist.d.ts +15 -0
- package/dist/cjs/generated/model/productinquirelist.js +2 -0
- package/dist/cjs/generated/model/promotioncodecreate.d.ts +5 -0
- package/dist/cjs/generated/model/promotioncodecreate.js +2 -0
- package/dist/cjs/generated/model/promotioncodeinquiredetails.d.ts +5 -0
- package/dist/cjs/generated/model/promotioncodeinquiredetails.js +2 -0
- package/dist/cjs/generated/model/promotioncodeinquirelist.d.ts +10 -0
- package/dist/cjs/generated/model/promotioncodeinquirelist.js +2 -0
- package/dist/cjs/generated/model/receiptinquiredetails.d.ts +19 -0
- package/dist/cjs/generated/model/receiptinquiredetails.js +2 -0
- package/dist/cjs/generated/model/receiptinquirelist.d.ts +44 -0
- package/dist/cjs/generated/model/receiptinquirelist.js +2 -0
- package/dist/cjs/generated/model/refund.d.ts +14 -0
- package/dist/cjs/generated/model/refund.js +2 -0
- package/dist/cjs/generated/model/register.d.ts +104 -0
- package/dist/cjs/generated/model/register.js +2 -0
- package/dist/cjs/generated/model/settle.d.ts +8 -0
- package/dist/cjs/generated/model/settle.js +2 -0
- package/dist/cjs/generated/model/submitattachment.d.ts +2 -0
- package/dist/cjs/generated/model/submitattachment.js +2 -0
- package/dist/cjs/generated/model/subscriptioncreate.d.ts +8 -0
- package/dist/cjs/generated/model/subscriptioncreate.js +2 -0
- package/dist/cjs/generated/model/subscriptionupdate.d.ts +6 -0
- package/dist/cjs/generated/model/subscriptionupdate.js +2 -0
- package/dist/cjs/generated/model/supplyevidence.d.ts +7 -0
- package/dist/cjs/generated/model/supplyevidence.js +2 -0
- package/dist/cjs/generated/model/taxcalculate.d.ts +50 -0
- package/dist/cjs/generated/model/taxcalculate.js +2 -0
- package/dist/cjs/generated/model/taxinquireregistrationlist.d.ts +12 -0
- package/dist/cjs/generated/model/taxinquireregistrationlist.js +2 -0
- package/dist/cjs/generated/model/taxinquiretransactionlist.d.ts +14 -0
- package/dist/cjs/generated/model/taxinquiretransactionlist.js +2 -0
- package/dist/cjs/generated/model/vaultsfetchnonce.d.ts +9 -0
- package/dist/cjs/generated/model/vaultsfetchnonce.js +2 -0
- package/dist/cjs/generated/model/verifyandcompletepayment.d.ts +5 -0
- package/dist/cjs/generated/model/verifyandcompletepayment.js +2 -0
- package/dist/cjs/generated/resource/aba.d.ts +450 -0
- package/dist/cjs/generated/resource/aba.js +78 -0
- package/dist/cjs/generated/resource/agentic.d.ts +89 -0
- package/dist/cjs/generated/resource/agentic.js +24 -0
- package/dist/cjs/generated/resource/auth.d.ts +81 -0
- package/dist/cjs/generated/resource/auth.js +21 -0
- package/dist/cjs/generated/resource/billing.d.ts +1656 -0
- package/dist/cjs/generated/resource/billing.js +217 -0
- package/dist/cjs/generated/resource/dispute.d.ts +66 -0
- package/dist/cjs/generated/resource/dispute.js +24 -0
- package/dist/cjs/generated/resource/index.d.ts +315 -0
- package/dist/cjs/generated/resource/index.js +319 -0
- package/dist/cjs/generated/resource/marketplace.d.ts +117 -0
- package/dist/cjs/generated/resource/marketplace.js +33 -0
- package/dist/cjs/generated/resource/notification.d.ts +37 -0
- package/dist/cjs/generated/resource/notification.js +18 -0
- package/dist/cjs/generated/resource/pay.d.ts +674 -0
- package/dist/cjs/generated/resource/pay.js +90 -0
- package/dist/cjs/generated/resource/subscription.d.ts +171 -0
- package/dist/cjs/generated/resource/subscription.js +36 -0
- package/dist/cjs/generated/share.d.ts +1159 -0
- package/dist/cjs/generated/share.js +2 -0
- package/dist/cjs/index.d.ts +12 -0
- package/dist/cjs/index.js +23 -0
- package/dist/cjs/resources.d.ts +42 -0
- package/dist/cjs/resources.js +42 -0
- package/dist/cjs/signature.d.ts +24 -0
- package/dist/cjs/signature.js +117 -0
- package/dist/cjs/special.d.ts +78 -0
- package/dist/cjs/special.js +288 -0
- package/dist/cjs/types.d.ts +60 -0
- package/dist/cjs/types.js +29 -0
- package/dist/esm/amount-rules-data.js +1 -0
- package/dist/esm/amount.js +158 -0
- package/dist/esm/client.js +160 -0
- package/dist/esm/errors.js +17 -0
- package/dist/esm/generated/index.js +1 -0
- package/dist/esm/generated/model/authapplytoken.js +1 -0
- package/dist/esm/generated/model/authconsult.js +1 -0
- package/dist/esm/generated/model/billingsubscriptioncancel.js +1 -0
- package/dist/esm/generated/model/billingsubscriptioncreate.js +1 -0
- package/dist/esm/generated/model/billingsubscriptioninquiredetails.js +1 -0
- package/dist/esm/generated/model/billingsubscriptioninquirelist.js +1 -0
- package/dist/esm/generated/model/billingsubscriptionupdate.js +1 -0
- package/dist/esm/generated/model/couponcreate.js +1 -0
- package/dist/esm/generated/model/couponinquiredetails.js +1 -0
- package/dist/esm/generated/model/couponinquirelist.js +1 -0
- package/dist/esm/generated/model/creditnotecreate.js +1 -0
- package/dist/esm/generated/model/creditnoteinquirelist.js +1 -0
- package/dist/esm/generated/model/customerinquirelist.js +1 -0
- package/dist/esm/generated/model/downloaddisputeevidence.js +1 -0
- package/dist/esm/generated/model/inquireaccountinfo.js +1 -0
- package/dist/esm/generated/model/inquirecard.js +1 -0
- package/dist/esm/generated/model/inquirecardsensitiveinfo.js +1 -0
- package/dist/esm/generated/model/inquirecardtransactionevent.js +1 -0
- package/dist/esm/generated/model/inquirecardtransactionlifecycle.js +1 -0
- package/dist/esm/generated/model/inquirecardtransactionlifecycledetail.js +1 -0
- package/dist/esm/generated/model/inquireexchangerate.js +1 -0
- package/dist/esm/generated/model/inquireholdlist.js +1 -0
- package/dist/esm/generated/model/inquirepaymentmethod.js +1 -0
- package/dist/esm/generated/model/inquirepaymenttoken.js +1 -0
- package/dist/esm/generated/model/inquirerulelist.js +1 -0
- package/dist/esm/generated/model/inquiresubscriptionpayment.js +1 -0
- package/dist/esm/generated/model/inquiryrate.js +1 -0
- package/dist/esm/generated/model/inquirystatement.js +1 -0
- package/dist/esm/generated/model/inquirystatementlist.js +1 -0
- package/dist/esm/generated/model/invoicecreate.js +1 -0
- package/dist/esm/generated/model/invoiceinquiredetails.js +1 -0
- package/dist/esm/generated/model/invoiceinquirelist.js +1 -0
- package/dist/esm/generated/model/invoiceupdate.js +1 -0
- package/dist/esm/generated/model/pay.js +1 -0
- package/dist/esm/generated/model/payconsult.js +1 -0
- package/dist/esm/generated/model/paymentsession.js +1 -0
- package/dist/esm/generated/model/payquery.js +1 -0
- package/dist/esm/generated/model/productinquirelist.js +1 -0
- package/dist/esm/generated/model/promotioncodecreate.js +1 -0
- package/dist/esm/generated/model/promotioncodeinquiredetails.js +1 -0
- package/dist/esm/generated/model/promotioncodeinquirelist.js +1 -0
- package/dist/esm/generated/model/receiptinquiredetails.js +1 -0
- package/dist/esm/generated/model/receiptinquirelist.js +1 -0
- package/dist/esm/generated/model/refund.js +1 -0
- package/dist/esm/generated/model/register.js +1 -0
- package/dist/esm/generated/model/settle.js +1 -0
- package/dist/esm/generated/model/submitattachment.js +1 -0
- package/dist/esm/generated/model/subscriptioncreate.js +1 -0
- package/dist/esm/generated/model/subscriptionupdate.js +1 -0
- package/dist/esm/generated/model/supplyevidence.js +1 -0
- package/dist/esm/generated/model/taxcalculate.js +1 -0
- package/dist/esm/generated/model/taxinquireregistrationlist.js +1 -0
- package/dist/esm/generated/model/taxinquiretransactionlist.js +1 -0
- package/dist/esm/generated/model/vaultsfetchnonce.js +1 -0
- package/dist/esm/generated/model/verifyandcompletepayment.js +1 -0
- package/dist/esm/generated/resource/aba.js +74 -0
- package/dist/esm/generated/resource/agentic.js +20 -0
- package/dist/esm/generated/resource/auth.js +17 -0
- package/dist/esm/generated/resource/billing.js +212 -0
- package/dist/esm/generated/resource/dispute.js +20 -0
- package/dist/esm/generated/resource/index.js +315 -0
- package/dist/esm/generated/resource/marketplace.js +29 -0
- package/dist/esm/generated/resource/notification.js +14 -0
- package/dist/esm/generated/resource/pay.js +86 -0
- package/dist/esm/generated/resource/subscription.js +32 -0
- package/dist/esm/generated/share.js +1 -0
- package/dist/esm/index.d.ts +171 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/resources.js +38 -0
- package/dist/esm/signature.js +112 -0
- package/dist/esm/special.js +284 -0
- package/dist/esm/types.js +24 -0
- package/package.json +49 -4
- package/resources/amount-currency-rules.json +44 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/** Wire-format Customer; property names match the API JSON. */
|
|
2
|
+
export interface Customer {
|
|
3
|
+
"billingEmail"?: string;
|
|
4
|
+
"country"?: string;
|
|
5
|
+
"customerId"?: string;
|
|
6
|
+
"customerRequestId"?: string;
|
|
7
|
+
"email"?: string;
|
|
8
|
+
"firstName"?: string;
|
|
9
|
+
"gmtCreate"?: string;
|
|
10
|
+
"lastName"?: string;
|
|
11
|
+
"status"?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Wire-format AgenticBoundPaymentMethod; property names match the API JSON. */
|
|
2
|
+
export interface AgenticBoundPaymentMethod {
|
|
3
|
+
"paymentMethodDetail": AgenticBoundPaymentMethodDetail;
|
|
4
|
+
"paymentMethodId": string;
|
|
5
|
+
"paymentMethodType": string;
|
|
6
|
+
}
|
|
7
|
+
/** Wire-format AgenticBoundPaymentMethodDetail; property names match the API JSON. */
|
|
8
|
+
export interface AgenticBoundPaymentMethodDetail {
|
|
9
|
+
"cardBrand"?: string;
|
|
10
|
+
"lastFour"?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Wire-format AbaCard; property names match the API JSON. */
|
|
2
|
+
export interface AbaCard {
|
|
3
|
+
"assetId": string;
|
|
4
|
+
"cardBrand": 'MASTERCARD';
|
|
5
|
+
"cardNickName"?: string;
|
|
6
|
+
"cardStatus": 'ACTIVE' | 'FROZEN' | 'CANCEL';
|
|
7
|
+
"createdTime": string;
|
|
8
|
+
"maskedCardNo": string;
|
|
9
|
+
"updatedTime": string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AuthorizationControl, CardholderInfo } from '../share.js';
|
|
2
|
+
/** Wire-format CardDetail; property names match the API JSON. */
|
|
3
|
+
export interface CardDetail {
|
|
4
|
+
"assetId": string;
|
|
5
|
+
"authorizationControl": AuthorizationControl;
|
|
6
|
+
"cardBrand": 'MASTERCARD';
|
|
7
|
+
"cardNickName"?: string;
|
|
8
|
+
"cardStatus": 'ACTIVE' | 'FROZEN' | 'CANCEL';
|
|
9
|
+
"cardholderinfo": CardholderInfo;
|
|
10
|
+
"createdTime": string;
|
|
11
|
+
"maskedCardNo": string;
|
|
12
|
+
"metadata"?: {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
"note"?: string;
|
|
16
|
+
"purpose": string;
|
|
17
|
+
"updatedTime": string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Wire values accepted by the API. */
|
|
2
|
+
export type CardTransactionEventFilterType = 'AUTH' | 'AUTH_CANCEL' | 'CAPTURE' | 'REFUND' | 'CHARGEBACK' | 'REPAYMENT';
|
|
3
|
+
/** Wire values accepted by the API. */
|
|
4
|
+
export type CardTransactionStatusFilterType = 'SUCCESS' | 'FAIL' | 'PROCESSING';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Amount } from '../share.js';
|
|
2
|
+
/** Wire-format CardTransactionLifecycle; property names match the API JSON. */
|
|
3
|
+
export interface CardTransactionLifecycle {
|
|
4
|
+
"assetId": string;
|
|
5
|
+
"cardProduct"?: string;
|
|
6
|
+
"lastUpdateTime": string;
|
|
7
|
+
"latestEventStatus"?: string;
|
|
8
|
+
"latestEventType"?: string;
|
|
9
|
+
"lifecycleId": string;
|
|
10
|
+
"maskedCardNo"?: string;
|
|
11
|
+
"totalAuthAmount"?: Amount;
|
|
12
|
+
"totalBillingAmount"?: Amount;
|
|
13
|
+
"totalCancelAmount"?: Amount;
|
|
14
|
+
"totalChargebackAmount"?: Amount;
|
|
15
|
+
"totalRefundAmount"?: Amount;
|
|
16
|
+
"transactionTime": string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Amount, CardTransactionEvent } from '../share.js';
|
|
2
|
+
/** Wire-format CardTransactionLifecycleDetail; property names match the API JSON. */
|
|
3
|
+
export interface CardTransactionLifecycleDetail {
|
|
4
|
+
"assetId": string;
|
|
5
|
+
"cardProduct"?: string;
|
|
6
|
+
"events"?: Array<CardTransactionEvent>;
|
|
7
|
+
"lastUpdateTime": string;
|
|
8
|
+
"latestEventStatus"?: string;
|
|
9
|
+
"latestEventType"?: string;
|
|
10
|
+
"lifecycleId": string;
|
|
11
|
+
"maskedCardNo"?: string;
|
|
12
|
+
"totalAuthAmount"?: Amount;
|
|
13
|
+
"totalBillingAmount"?: Amount;
|
|
14
|
+
"totalCancelAmount"?: Amount;
|
|
15
|
+
"totalChargebackAmount"?: Amount;
|
|
16
|
+
"totalRefundAmount"?: Amount;
|
|
17
|
+
"transactionTime": string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Wire-format CurrencyPair; property names match the API JSON. */
|
|
2
|
+
export interface CurrencyPair {
|
|
3
|
+
"buyCurrency"?: string;
|
|
4
|
+
"sellCurrency"?: string;
|
|
5
|
+
}
|
|
6
|
+
/** Wire-format PaymentQuote; property names match the API JSON. */
|
|
7
|
+
export interface PaymentQuote {
|
|
8
|
+
"buyCurrency"?: string;
|
|
9
|
+
"exchangeRate"?: number;
|
|
10
|
+
"quoteId"?: string;
|
|
11
|
+
"sellCurrency"?: string;
|
|
12
|
+
}
|
|
13
|
+
/** Wire values accepted by the API. */
|
|
14
|
+
export type RateType = 'TRADE' | 'REFERENCE' | 'REFERENCE_TRADE';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Amount } from '../share.js';
|
|
2
|
+
/** Wire-format ReserveHoldDetail; property names match the API JSON. */
|
|
3
|
+
export interface ReserveHoldDetail {
|
|
4
|
+
"holdAmount": Amount;
|
|
5
|
+
"holdId": string;
|
|
6
|
+
"holdRequestId": string;
|
|
7
|
+
"holdStatus": string;
|
|
8
|
+
"releasableAmount": Amount;
|
|
9
|
+
"releaseStatus": string;
|
|
10
|
+
"releaseTime": string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Address, UserName } from '../share.js';
|
|
2
|
+
/** Wire-format InquirePaymentMethodCard; property names match the API JSON. */
|
|
3
|
+
export interface InquirePaymentMethodCard {
|
|
4
|
+
"billingAddress"?: Address;
|
|
5
|
+
"brand"?: string;
|
|
6
|
+
"cardIssuer"?: string;
|
|
7
|
+
"cardNo"?: string;
|
|
8
|
+
"cardToken"?: string;
|
|
9
|
+
"countryIssue"?: string;
|
|
10
|
+
"expiryMonth"?: string;
|
|
11
|
+
"expiryYear"?: string;
|
|
12
|
+
"instUserName"?: UserName;
|
|
13
|
+
"mask"?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Wire-format InquirePaymentMethodDetail; property names match the API JSON. */
|
|
16
|
+
export interface InquirePaymentMethodDetail {
|
|
17
|
+
"card"?: InquirePaymentMethodCard;
|
|
18
|
+
"paymentMethodDetailType"?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Wire-format AgenticPaymentToken; property names match the API JSON. */
|
|
2
|
+
export interface AgenticPaymentToken {
|
|
3
|
+
"dynamicDataType"?: string;
|
|
4
|
+
"dynamicDataValue"?: string;
|
|
5
|
+
"status"?: string;
|
|
6
|
+
"token": string;
|
|
7
|
+
"tokenExpiration": string;
|
|
8
|
+
"tokenExpirationMonth"?: string;
|
|
9
|
+
"tokenExpirationYear"?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { FundsType, PaymentMethodScope, ReleaseType, RuleStatus, TakeType } from '../share.js';
|
|
2
|
+
/** Wire-format ReserveRule; property names match the API JSON. */
|
|
3
|
+
export interface ReserveRule {
|
|
4
|
+
"createTime": string;
|
|
5
|
+
"fundsType": FundsType;
|
|
6
|
+
"merchantId": string;
|
|
7
|
+
"paymentMethodScope": PaymentMethodScope;
|
|
8
|
+
"ratio"?: number;
|
|
9
|
+
"releaseTime"?: string;
|
|
10
|
+
"releaseType": ReleaseType;
|
|
11
|
+
"retentionTime"?: number;
|
|
12
|
+
"ruleId": string;
|
|
13
|
+
"ruleStatus": RuleStatus;
|
|
14
|
+
"takeType": TakeType;
|
|
15
|
+
"updateTime": string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Amount, PaymentMethod } from '../share.js';
|
|
2
|
+
/** Wire values accepted by the API. */
|
|
3
|
+
export type PaymentStatus = 'SUCCESS' | 'FAIL';
|
|
4
|
+
/** Wire-format SubscriptionTransaction; property names match the API JSON. */
|
|
5
|
+
export interface SubscriptionTransaction {
|
|
6
|
+
"disputeId"?: string;
|
|
7
|
+
"paymentAmount": Amount;
|
|
8
|
+
"paymentId": string;
|
|
9
|
+
"paymentMethod": PaymentMethod;
|
|
10
|
+
"paymentTime"?: string;
|
|
11
|
+
"phaseNo": number;
|
|
12
|
+
"status": string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Wire-format InquiryRateCondition; property names match the API JSON. */
|
|
2
|
+
export interface InquiryRateCondition {
|
|
3
|
+
"buyCurrency"?: string;
|
|
4
|
+
"sellCurrency"?: string;
|
|
5
|
+
}
|
|
6
|
+
/** Wire-format RateResult; property names match the API JSON. */
|
|
7
|
+
export interface RateResult {
|
|
8
|
+
"buyCurrency"?: string;
|
|
9
|
+
"exchangeRate"?: string;
|
|
10
|
+
"sellCurrency"?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Amount, BuyerTaxId } from '../share.js';
|
|
2
|
+
/** Wire-format CustomerBusinessAddress; property names match the API JSON. */
|
|
3
|
+
export interface CustomerBusinessAddress {
|
|
4
|
+
"address": string;
|
|
5
|
+
"city"?: string;
|
|
6
|
+
"country": string;
|
|
7
|
+
"state"?: string;
|
|
8
|
+
"zipcode"?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Wire-format InvoiceCreateItem; property names match the API JSON. */
|
|
11
|
+
export interface InvoiceCreateItem {
|
|
12
|
+
"description"?: string;
|
|
13
|
+
"discountAmount"?: Amount;
|
|
14
|
+
"itemAmount"?: Amount;
|
|
15
|
+
"itemId"?: string;
|
|
16
|
+
"priceId"?: string;
|
|
17
|
+
"productId"?: string;
|
|
18
|
+
"quantity"?: number;
|
|
19
|
+
"supplyEnd"?: string;
|
|
20
|
+
"supplyStart"?: string;
|
|
21
|
+
"taxBehavior"?: string;
|
|
22
|
+
"taxCode"?: string;
|
|
23
|
+
"unitAmount"?: Amount;
|
|
24
|
+
}
|
|
25
|
+
/** Wire-format InvoiceCustomerDetails; property names match the API JSON. */
|
|
26
|
+
export interface InvoiceCustomerDetails {
|
|
27
|
+
"businessAddress"?: CustomerBusinessAddress;
|
|
28
|
+
"businessName"?: string;
|
|
29
|
+
"customerType"?: string;
|
|
30
|
+
"email": string;
|
|
31
|
+
"firstName"?: string;
|
|
32
|
+
"lastName"?: string;
|
|
33
|
+
"preferredLocales"?: Array<string>;
|
|
34
|
+
"taxIds"?: Array<BuyerTaxId>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Amount } from '../share.js';
|
|
2
|
+
/** Wire-format InvoiceItem; property names match the API JSON. */
|
|
3
|
+
export interface InvoiceItem {
|
|
4
|
+
"amount": Amount;
|
|
5
|
+
"description": string;
|
|
6
|
+
"discountAmount": Amount;
|
|
7
|
+
"gmtCreate": string;
|
|
8
|
+
"gmtUpdate": string;
|
|
9
|
+
"itemId": string;
|
|
10
|
+
"periodEnd"?: string;
|
|
11
|
+
"periodStart"?: string;
|
|
12
|
+
"priceId"?: string;
|
|
13
|
+
"proration": boolean;
|
|
14
|
+
"quantity": string;
|
|
15
|
+
"taxAmount": Amount;
|
|
16
|
+
"unitAmount": Amount;
|
|
17
|
+
"usageAmount"?: Amount;
|
|
18
|
+
"usageQuantity"?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Wire-format InvoiceNote; property names match the API JSON. */
|
|
21
|
+
export interface InvoiceNote {
|
|
22
|
+
"action": string;
|
|
23
|
+
"note": string;
|
|
24
|
+
"noteId": string;
|
|
25
|
+
"noteTime": string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Amount } from '../share.js';
|
|
2
|
+
/** Wire-format Invoice; property names match the API JSON. */
|
|
3
|
+
export interface Invoice {
|
|
4
|
+
"currency": string;
|
|
5
|
+
"customerEmail"?: string;
|
|
6
|
+
"customerFirstName"?: string;
|
|
7
|
+
"customerId": string;
|
|
8
|
+
"customerLastName"?: string;
|
|
9
|
+
"description"?: string;
|
|
10
|
+
"dueDate": string;
|
|
11
|
+
"gmtCreate": string;
|
|
12
|
+
"gmtUpdate": string;
|
|
13
|
+
"invoiceId": string;
|
|
14
|
+
"paidAmount": Amount;
|
|
15
|
+
"pdfFileUrl"?: string;
|
|
16
|
+
"periodEnd": string;
|
|
17
|
+
"periodStart": string;
|
|
18
|
+
"reason": string;
|
|
19
|
+
"remainAmount": Amount;
|
|
20
|
+
"status": string;
|
|
21
|
+
"subscriptionId": string;
|
|
22
|
+
"totalAmount": Amount;
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { CodeDetail } from '../share.js';
|
|
2
|
+
/** Wire-format ChallengeActionForm; property names match the API JSON. */
|
|
3
|
+
export interface ChallengeActionForm {
|
|
4
|
+
"challengeRenderValue"?: string;
|
|
5
|
+
"challengeType"?: ChallengeType;
|
|
6
|
+
"extendInfo"?: string;
|
|
7
|
+
"triggerSource"?: ChallengeTriggerSourceType;
|
|
8
|
+
}
|
|
9
|
+
/** Wire values accepted by the API. */
|
|
10
|
+
export type ChallengeTriggerSourceType = 'AMS' | 'CHANNEL';
|
|
11
|
+
/** Wire values accepted by the API. */
|
|
12
|
+
export type ChallengeType = 'SMS_OTP' | 'PLAINTEXT_CARD_NO' | 'CARD_EXPIRE_DATE';
|
|
13
|
+
/** Wire-format OrderCodeForm; property names match the API JSON. */
|
|
14
|
+
export interface OrderCodeForm {
|
|
15
|
+
"codeDetails": Array<CodeDetail>;
|
|
16
|
+
"expireTime": string;
|
|
17
|
+
"extendInfo"?: string;
|
|
18
|
+
"paymentMethodType"?: string;
|
|
19
|
+
}
|
|
20
|
+
/** Wire-format PaymentVerificationData; property names match the API JSON. */
|
|
21
|
+
export interface PaymentVerificationData {
|
|
22
|
+
"authenticationCode"?: string;
|
|
23
|
+
"verifyRequestId"?: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { Amount, Discount, PaymentMethod, PromotionType } from '../share.js';
|
|
2
|
+
/** Wire-format AmountLimit; property names match the API JSON. */
|
|
3
|
+
export interface AmountLimit {
|
|
4
|
+
"maxAmount": Amount;
|
|
5
|
+
"minAmount": Amount;
|
|
6
|
+
"remainAmount": Amount;
|
|
7
|
+
}
|
|
8
|
+
/** Wire-format AmountLimitInfo; property names match the API JSON. */
|
|
9
|
+
export interface AmountLimitInfo {
|
|
10
|
+
"dayLimit"?: AmountLimit;
|
|
11
|
+
"monthLimit"?: AmountLimit;
|
|
12
|
+
"singleLimit"?: AmountLimit;
|
|
13
|
+
}
|
|
14
|
+
/** Wire-format Installment; property names match the API JSON. */
|
|
15
|
+
export interface Installment {
|
|
16
|
+
"plans": Array<Plan>;
|
|
17
|
+
"supportCardBrands": Array<SupportCardBrand>;
|
|
18
|
+
}
|
|
19
|
+
/** Wire values accepted by the API. */
|
|
20
|
+
export type InteractionType = 'QR' | 'REDIRECT' | 'PUSH' | 'ATM' | 'IBANKING' | 'BANKCOUNTER' | 'OTC';
|
|
21
|
+
/** Wire-format InterestFree; property names match the API JSON. */
|
|
22
|
+
export interface InterestFree {
|
|
23
|
+
"expireTime": string;
|
|
24
|
+
"freePercentage": number;
|
|
25
|
+
"installmentFreeNums": Array<number>;
|
|
26
|
+
"maxPaymentAmount"?: Amount;
|
|
27
|
+
"minPaymentAmount": Amount;
|
|
28
|
+
"provider": string;
|
|
29
|
+
}
|
|
30
|
+
/** Wire-format Logo; property names match the API JSON. */
|
|
31
|
+
export interface Logo {
|
|
32
|
+
"logoName": string;
|
|
33
|
+
"logoUrl"?: string;
|
|
34
|
+
}
|
|
35
|
+
/** Wire-format PaymentEvaluation; property names match the API JSON. */
|
|
36
|
+
export interface PaymentEvaluation {
|
|
37
|
+
"paymentMethods"?: Array<PaymentMethod>;
|
|
38
|
+
}
|
|
39
|
+
/** Wire values accepted by the API. */
|
|
40
|
+
export type PaymentMethodCategoryType = 'ALIPAY_PLUS' | 'WALLET' | 'MOBILE_BANKING_APP' | 'BANK_TRANSFER' | 'ONLINE_BANKING' | 'CARD' | 'OTC' | 'VA';
|
|
41
|
+
/** Wire-format PaymentMethodInfo; property names match the API JSON. */
|
|
42
|
+
export interface PaymentMethodInfo {
|
|
43
|
+
"enabled"?: boolean;
|
|
44
|
+
"extendInfo"?: string;
|
|
45
|
+
"paymentMethodDetail"?: string;
|
|
46
|
+
"paymentMethodType"?: string;
|
|
47
|
+
"preferred"?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** Wire-format PaymentOption; property names match the API JSON. */
|
|
50
|
+
export interface PaymentOption {
|
|
51
|
+
"amountLimitInfoMap"?: {
|
|
52
|
+
[key: string]: AmountLimitInfo;
|
|
53
|
+
};
|
|
54
|
+
"bankIdentifierCode"?: string;
|
|
55
|
+
"disableReason"?: string;
|
|
56
|
+
"enabled": boolean;
|
|
57
|
+
"extendInfo"?: string;
|
|
58
|
+
"installment"?: Installment;
|
|
59
|
+
"interactionType"?: InteractionType;
|
|
60
|
+
"logo"?: Logo;
|
|
61
|
+
"paymentMethodCategory"?: PaymentMethodCategoryType;
|
|
62
|
+
"paymentMethodRegion"?: Array<string>;
|
|
63
|
+
"paymentMethodType": string;
|
|
64
|
+
"paymentOptionDetail"?: PaymentOptionDetail;
|
|
65
|
+
"preferred"?: boolean;
|
|
66
|
+
"promoNames"?: Array<string>;
|
|
67
|
+
"promotionInfos"?: Array<PromotionInfo>;
|
|
68
|
+
"supportedCurrencies"?: Array<string>;
|
|
69
|
+
}
|
|
70
|
+
/** Wire-format PaymentOptionDetail; property names match the API JSON. */
|
|
71
|
+
export interface PaymentOptionDetail {
|
|
72
|
+
"funding"?: Array<string>;
|
|
73
|
+
"interactionTypes"?: Array<string>;
|
|
74
|
+
"supportBanks": Array<SupportBank>;
|
|
75
|
+
"supportCardBrands": Array<SupportCardBrand>;
|
|
76
|
+
}
|
|
77
|
+
/** Wire-format Plan; property names match the API JSON. */
|
|
78
|
+
export interface Plan {
|
|
79
|
+
"enabled": boolean;
|
|
80
|
+
"extendInfo"?: string;
|
|
81
|
+
"installmentNum": string;
|
|
82
|
+
"interestRate"?: string;
|
|
83
|
+
"interval": string;
|
|
84
|
+
"maxInstallmentAmount": Amount;
|
|
85
|
+
"minInstallmentAmount": Amount;
|
|
86
|
+
}
|
|
87
|
+
/** Wire-format PromotionInfo; property names match the API JSON. */
|
|
88
|
+
export interface PromotionInfo {
|
|
89
|
+
"discount"?: Discount;
|
|
90
|
+
"interestFree"?: InterestFree;
|
|
91
|
+
"promotionType": PromotionType;
|
|
92
|
+
}
|
|
93
|
+
/** Wire-format SupportBank; property names match the API JSON. */
|
|
94
|
+
export interface SupportBank {
|
|
95
|
+
"bankIdentifierCode"?: string;
|
|
96
|
+
"bankLogo"?: Logo;
|
|
97
|
+
"bankShortName"?: string;
|
|
98
|
+
}
|
|
99
|
+
/** Wire-format SupportCardBrand; property names match the API JSON. */
|
|
100
|
+
export interface SupportCardBrand {
|
|
101
|
+
"cardBrand": string;
|
|
102
|
+
"logo": Logo;
|
|
103
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { Amount, BillingDiscount, BillingTrialSettings, PeriodRule } from '../share.js';
|
|
2
|
+
/** Wire-format AvailablePaymentMethod; property names match the API JSON. */
|
|
3
|
+
export interface AvailablePaymentMethod {
|
|
4
|
+
"paymentMethodMetaData"?: {
|
|
5
|
+
[key: string]: object;
|
|
6
|
+
};
|
|
7
|
+
"paymentMethodTypeList"?: Array<PaymentMethodTypeItem>;
|
|
8
|
+
}
|
|
9
|
+
/** Wire-format BillingSubscription; property names match the API JSON. */
|
|
10
|
+
export interface BillingSubscription {
|
|
11
|
+
"allowPromotionCode"?: boolean;
|
|
12
|
+
"cancelAt"?: string;
|
|
13
|
+
"cancelAtPeriodEnd"?: boolean;
|
|
14
|
+
"collectionMethod"?: string;
|
|
15
|
+
"customerId"?: string;
|
|
16
|
+
"daysUntilDue"?: number;
|
|
17
|
+
"defaultPaymentMethod"?: string;
|
|
18
|
+
"description"?: string;
|
|
19
|
+
"discounts"?: Array<BillingDiscount>;
|
|
20
|
+
"paymentBehavior"?: string;
|
|
21
|
+
"subscriptionNotifyUrl"?: string;
|
|
22
|
+
"trialSettings"?: BillingTrialSettings;
|
|
23
|
+
}
|
|
24
|
+
/** Wire-format CardVerificationResult; property names match the API JSON. */
|
|
25
|
+
export interface CardVerificationResult {
|
|
26
|
+
"authenticationMethod": string;
|
|
27
|
+
"authenticationType": string;
|
|
28
|
+
"authorizationCode": string;
|
|
29
|
+
"avsResult": string;
|
|
30
|
+
"cvvResult": string;
|
|
31
|
+
"threeDSResult": RiskThreeDSResult;
|
|
32
|
+
}
|
|
33
|
+
/** Wire-format PaymentMethodTypeItem; property names match the API JSON. */
|
|
34
|
+
export interface PaymentMethodTypeItem {
|
|
35
|
+
"expressCheckout"?: boolean;
|
|
36
|
+
"paymentMethodOrder"?: number;
|
|
37
|
+
"paymentMethodType"?: string;
|
|
38
|
+
}
|
|
39
|
+
/** Wire-format RiskAddress; property names match the API JSON. */
|
|
40
|
+
export interface RiskAddress {
|
|
41
|
+
"isBillShipStateSame": boolean;
|
|
42
|
+
"isPreviousStateSame": boolean;
|
|
43
|
+
"locToShipDistance": number;
|
|
44
|
+
"minPreviousShipToBillDistance": number;
|
|
45
|
+
"shippingPhoneType": string;
|
|
46
|
+
}
|
|
47
|
+
/** Wire-format RiskBuyer; property names match the API JSON. */
|
|
48
|
+
export interface RiskBuyer {
|
|
49
|
+
"noteToMerchant": string;
|
|
50
|
+
"noteToShipping": string;
|
|
51
|
+
"orderCountIn1H": number;
|
|
52
|
+
"orderCountIn24H": number;
|
|
53
|
+
}
|
|
54
|
+
/** Wire-format RiskData; property names match the API JSON. */
|
|
55
|
+
export interface RiskData {
|
|
56
|
+
"address"?: RiskAddress;
|
|
57
|
+
"buyer"?: RiskBuyer;
|
|
58
|
+
"cardVerificationResult"?: CardVerificationResult;
|
|
59
|
+
"env"?: RiskEnv;
|
|
60
|
+
"order"?: RiskOrder;
|
|
61
|
+
"riskSignal"?: RiskSignal;
|
|
62
|
+
}
|
|
63
|
+
/** Wire-format RiskEnv; property names match the API JSON. */
|
|
64
|
+
export interface RiskEnv {
|
|
65
|
+
"ipAddressType": string;
|
|
66
|
+
}
|
|
67
|
+
/** Wire-format RiskOrder; property names match the API JSON. */
|
|
68
|
+
export interface RiskOrder {
|
|
69
|
+
"orderType": string;
|
|
70
|
+
"referringSite": string;
|
|
71
|
+
}
|
|
72
|
+
/** Wire-format RiskSignal; property names match the API JSON. */
|
|
73
|
+
export interface RiskSignal {
|
|
74
|
+
"riskCode": string;
|
|
75
|
+
"riskReason": string;
|
|
76
|
+
}
|
|
77
|
+
/** Wire-format RiskThreeDSResult; property names match the API JSON. */
|
|
78
|
+
export interface RiskThreeDSResult {
|
|
79
|
+
"cavv": string;
|
|
80
|
+
"eci": string;
|
|
81
|
+
"threeDSInteractionMode": string;
|
|
82
|
+
"threeDSVersion": string;
|
|
83
|
+
}
|
|
84
|
+
/** Wire-format SubscriptionPlan; property names match the API JSON. */
|
|
85
|
+
export interface SubscriptionPlan {
|
|
86
|
+
"allowAccumulate"?: boolean;
|
|
87
|
+
"maxAccumulateAmount"?: Amount;
|
|
88
|
+
"periodRule"?: PeriodRule;
|
|
89
|
+
"subscriptionNotificationUrl"?: string;
|
|
90
|
+
"subscriptionStartTime"?: string;
|
|
91
|
+
}
|