@antom-tech/node 0.0.0-stage → 0.1.2-beta.1

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.
Files changed (235) hide show
  1. package/LEGAL.md +7 -0
  2. package/README.md +227 -2
  3. package/dist/cjs/amount-rules-data.js +1 -0
  4. package/dist/cjs/amount.d.ts +34 -0
  5. package/dist/cjs/amount.js +165 -0
  6. package/dist/cjs/client.d.ts +14 -0
  7. package/dist/cjs/client.js +165 -0
  8. package/dist/cjs/errors.d.ts +11 -0
  9. package/dist/cjs/errors.js +21 -0
  10. package/dist/cjs/generated/index.d.ts +344 -0
  11. package/dist/cjs/generated/index.js +2 -0
  12. package/dist/cjs/generated/model/authapplytoken.d.ts +2 -0
  13. package/dist/cjs/generated/model/authapplytoken.js +2 -0
  14. package/dist/cjs/generated/model/authconsult.d.ts +59 -0
  15. package/dist/cjs/generated/model/authconsult.js +2 -0
  16. package/dist/cjs/generated/model/billingsubscriptioncancel.d.ts +5 -0
  17. package/dist/cjs/generated/model/billingsubscriptioncancel.js +2 -0
  18. package/dist/cjs/generated/model/billingsubscriptioncreate.d.ts +5 -0
  19. package/dist/cjs/generated/model/billingsubscriptioncreate.js +2 -0
  20. package/dist/cjs/generated/model/billingsubscriptioninquiredetails.d.ts +17 -0
  21. package/dist/cjs/generated/model/billingsubscriptioninquiredetails.js +2 -0
  22. package/dist/cjs/generated/model/billingsubscriptioninquirelist.d.ts +24 -0
  23. package/dist/cjs/generated/model/billingsubscriptioninquirelist.js +2 -0
  24. package/dist/cjs/generated/model/billingsubscriptionupdate.d.ts +17 -0
  25. package/dist/cjs/generated/model/billingsubscriptionupdate.js +2 -0
  26. package/dist/cjs/generated/model/couponcreate.d.ts +22 -0
  27. package/dist/cjs/generated/model/couponcreate.js +2 -0
  28. package/dist/cjs/generated/model/couponinquiredetails.d.ts +13 -0
  29. package/dist/cjs/generated/model/couponinquiredetails.js +2 -0
  30. package/dist/cjs/generated/model/couponinquirelist.d.ts +13 -0
  31. package/dist/cjs/generated/model/couponinquirelist.js +2 -0
  32. package/dist/cjs/generated/model/creditnotecreate.d.ts +10 -0
  33. package/dist/cjs/generated/model/creditnotecreate.js +2 -0
  34. package/dist/cjs/generated/model/creditnoteinquirelist.d.ts +17 -0
  35. package/dist/cjs/generated/model/creditnoteinquirelist.js +2 -0
  36. package/dist/cjs/generated/model/customerinquirelist.d.ts +12 -0
  37. package/dist/cjs/generated/model/customerinquirelist.js +2 -0
  38. package/dist/cjs/generated/model/downloaddisputeevidence.d.ts +4 -0
  39. package/dist/cjs/generated/model/downloaddisputeevidence.js +2 -0
  40. package/dist/cjs/generated/model/inquireaccountinfo.d.ts +11 -0
  41. package/dist/cjs/generated/model/inquireaccountinfo.js +2 -0
  42. package/dist/cjs/generated/model/inquirecard.d.ts +10 -0
  43. package/dist/cjs/generated/model/inquirecard.js +2 -0
  44. package/dist/cjs/generated/model/inquirecardsensitiveinfo.d.ts +18 -0
  45. package/dist/cjs/generated/model/inquirecardsensitiveinfo.js +2 -0
  46. package/dist/cjs/generated/model/inquirecardtransactionevent.d.ts +4 -0
  47. package/dist/cjs/generated/model/inquirecardtransactionevent.js +2 -0
  48. package/dist/cjs/generated/model/inquirecardtransactionlifecycle.d.ts +17 -0
  49. package/dist/cjs/generated/model/inquirecardtransactionlifecycle.js +2 -0
  50. package/dist/cjs/generated/model/inquirecardtransactionlifecycledetail.d.ts +18 -0
  51. package/dist/cjs/generated/model/inquirecardtransactionlifecycledetail.js +2 -0
  52. package/dist/cjs/generated/model/inquireexchangerate.d.ts +14 -0
  53. package/dist/cjs/generated/model/inquireexchangerate.js +2 -0
  54. package/dist/cjs/generated/model/inquireholdlist.d.ts +11 -0
  55. package/dist/cjs/generated/model/inquireholdlist.js +2 -0
  56. package/dist/cjs/generated/model/inquirepaymentmethod.d.ts +19 -0
  57. package/dist/cjs/generated/model/inquirepaymentmethod.js +2 -0
  58. package/dist/cjs/generated/model/inquirepaymenttoken.d.ts +10 -0
  59. package/dist/cjs/generated/model/inquirepaymenttoken.js +2 -0
  60. package/dist/cjs/generated/model/inquirerulelist.d.ts +16 -0
  61. package/dist/cjs/generated/model/inquirerulelist.js +2 -0
  62. package/dist/cjs/generated/model/inquiresubscriptionpayment.d.ts +13 -0
  63. package/dist/cjs/generated/model/inquiresubscriptionpayment.js +2 -0
  64. package/dist/cjs/generated/model/inquiryrate.d.ts +11 -0
  65. package/dist/cjs/generated/model/inquiryrate.js +2 -0
  66. package/dist/cjs/generated/model/inquirystatement.d.ts +7 -0
  67. package/dist/cjs/generated/model/inquirystatement.js +2 -0
  68. package/dist/cjs/generated/model/inquirystatementlist.d.ts +5 -0
  69. package/dist/cjs/generated/model/inquirystatementlist.js +2 -0
  70. package/dist/cjs/generated/model/invoicecreate.d.ts +35 -0
  71. package/dist/cjs/generated/model/invoicecreate.js +2 -0
  72. package/dist/cjs/generated/model/invoiceinquiredetails.d.ts +26 -0
  73. package/dist/cjs/generated/model/invoiceinquiredetails.js +2 -0
  74. package/dist/cjs/generated/model/invoiceinquirelist.d.ts +23 -0
  75. package/dist/cjs/generated/model/invoiceinquirelist.js +2 -0
  76. package/dist/cjs/generated/model/invoiceupdate.d.ts +5 -0
  77. package/dist/cjs/generated/model/invoiceupdate.js +2 -0
  78. package/dist/cjs/generated/model/pay.d.ts +24 -0
  79. package/dist/cjs/generated/model/pay.js +2 -0
  80. package/dist/cjs/generated/model/payconsult.d.ts +103 -0
  81. package/dist/cjs/generated/model/payconsult.js +2 -0
  82. package/dist/cjs/generated/model/paymentsession.d.ts +91 -0
  83. package/dist/cjs/generated/model/paymentsession.js +2 -0
  84. package/dist/cjs/generated/model/payquery.d.ts +43 -0
  85. package/dist/cjs/generated/model/payquery.js +2 -0
  86. package/dist/cjs/generated/model/productinquirelist.d.ts +15 -0
  87. package/dist/cjs/generated/model/productinquirelist.js +2 -0
  88. package/dist/cjs/generated/model/promotioncodecreate.d.ts +5 -0
  89. package/dist/cjs/generated/model/promotioncodecreate.js +2 -0
  90. package/dist/cjs/generated/model/promotioncodeinquiredetails.d.ts +5 -0
  91. package/dist/cjs/generated/model/promotioncodeinquiredetails.js +2 -0
  92. package/dist/cjs/generated/model/promotioncodeinquirelist.d.ts +10 -0
  93. package/dist/cjs/generated/model/promotioncodeinquirelist.js +2 -0
  94. package/dist/cjs/generated/model/receiptinquiredetails.d.ts +19 -0
  95. package/dist/cjs/generated/model/receiptinquiredetails.js +2 -0
  96. package/dist/cjs/generated/model/receiptinquirelist.d.ts +44 -0
  97. package/dist/cjs/generated/model/receiptinquirelist.js +2 -0
  98. package/dist/cjs/generated/model/refund.d.ts +14 -0
  99. package/dist/cjs/generated/model/refund.js +2 -0
  100. package/dist/cjs/generated/model/register.d.ts +104 -0
  101. package/dist/cjs/generated/model/register.js +2 -0
  102. package/dist/cjs/generated/model/settle.d.ts +8 -0
  103. package/dist/cjs/generated/model/settle.js +2 -0
  104. package/dist/cjs/generated/model/submitattachment.d.ts +2 -0
  105. package/dist/cjs/generated/model/submitattachment.js +2 -0
  106. package/dist/cjs/generated/model/subscriptioncreate.d.ts +8 -0
  107. package/dist/cjs/generated/model/subscriptioncreate.js +2 -0
  108. package/dist/cjs/generated/model/subscriptionupdate.d.ts +6 -0
  109. package/dist/cjs/generated/model/subscriptionupdate.js +2 -0
  110. package/dist/cjs/generated/model/supplyevidence.d.ts +7 -0
  111. package/dist/cjs/generated/model/supplyevidence.js +2 -0
  112. package/dist/cjs/generated/model/taxcalculate.d.ts +50 -0
  113. package/dist/cjs/generated/model/taxcalculate.js +2 -0
  114. package/dist/cjs/generated/model/taxinquireregistrationlist.d.ts +12 -0
  115. package/dist/cjs/generated/model/taxinquireregistrationlist.js +2 -0
  116. package/dist/cjs/generated/model/taxinquiretransactionlist.d.ts +14 -0
  117. package/dist/cjs/generated/model/taxinquiretransactionlist.js +2 -0
  118. package/dist/cjs/generated/model/vaultsfetchnonce.d.ts +9 -0
  119. package/dist/cjs/generated/model/vaultsfetchnonce.js +2 -0
  120. package/dist/cjs/generated/model/verifyandcompletepayment.d.ts +5 -0
  121. package/dist/cjs/generated/model/verifyandcompletepayment.js +2 -0
  122. package/dist/cjs/generated/resource/aba.d.ts +450 -0
  123. package/dist/cjs/generated/resource/aba.js +78 -0
  124. package/dist/cjs/generated/resource/agentic.d.ts +89 -0
  125. package/dist/cjs/generated/resource/agentic.js +24 -0
  126. package/dist/cjs/generated/resource/auth.d.ts +81 -0
  127. package/dist/cjs/generated/resource/auth.js +21 -0
  128. package/dist/cjs/generated/resource/billing.d.ts +1656 -0
  129. package/dist/cjs/generated/resource/billing.js +217 -0
  130. package/dist/cjs/generated/resource/dispute.d.ts +66 -0
  131. package/dist/cjs/generated/resource/dispute.js +24 -0
  132. package/dist/cjs/generated/resource/index.d.ts +315 -0
  133. package/dist/cjs/generated/resource/index.js +319 -0
  134. package/dist/cjs/generated/resource/marketplace.d.ts +117 -0
  135. package/dist/cjs/generated/resource/marketplace.js +33 -0
  136. package/dist/cjs/generated/resource/notification.d.ts +37 -0
  137. package/dist/cjs/generated/resource/notification.js +18 -0
  138. package/dist/cjs/generated/resource/pay.d.ts +674 -0
  139. package/dist/cjs/generated/resource/pay.js +90 -0
  140. package/dist/cjs/generated/resource/subscription.d.ts +171 -0
  141. package/dist/cjs/generated/resource/subscription.js +36 -0
  142. package/dist/cjs/generated/share.d.ts +1159 -0
  143. package/dist/cjs/generated/share.js +2 -0
  144. package/dist/cjs/index.d.ts +12 -0
  145. package/dist/cjs/index.js +23 -0
  146. package/dist/cjs/resources.d.ts +42 -0
  147. package/dist/cjs/resources.js +42 -0
  148. package/dist/cjs/sdk-user-agent.js +1 -0
  149. package/dist/cjs/signature.d.ts +24 -0
  150. package/dist/cjs/signature.js +117 -0
  151. package/dist/cjs/special.d.ts +78 -0
  152. package/dist/cjs/special.js +288 -0
  153. package/dist/cjs/types.d.ts +58 -0
  154. package/dist/cjs/types.js +26 -0
  155. package/dist/esm/amount-rules-data.js +1 -0
  156. package/dist/esm/amount.js +158 -0
  157. package/dist/esm/client.js +161 -0
  158. package/dist/esm/errors.js +17 -0
  159. package/dist/esm/generated/index.js +1 -0
  160. package/dist/esm/generated/model/authapplytoken.js +1 -0
  161. package/dist/esm/generated/model/authconsult.js +1 -0
  162. package/dist/esm/generated/model/billingsubscriptioncancel.js +1 -0
  163. package/dist/esm/generated/model/billingsubscriptioncreate.js +1 -0
  164. package/dist/esm/generated/model/billingsubscriptioninquiredetails.js +1 -0
  165. package/dist/esm/generated/model/billingsubscriptioninquirelist.js +1 -0
  166. package/dist/esm/generated/model/billingsubscriptionupdate.js +1 -0
  167. package/dist/esm/generated/model/couponcreate.js +1 -0
  168. package/dist/esm/generated/model/couponinquiredetails.js +1 -0
  169. package/dist/esm/generated/model/couponinquirelist.js +1 -0
  170. package/dist/esm/generated/model/creditnotecreate.js +1 -0
  171. package/dist/esm/generated/model/creditnoteinquirelist.js +1 -0
  172. package/dist/esm/generated/model/customerinquirelist.js +1 -0
  173. package/dist/esm/generated/model/downloaddisputeevidence.js +1 -0
  174. package/dist/esm/generated/model/inquireaccountinfo.js +1 -0
  175. package/dist/esm/generated/model/inquirecard.js +1 -0
  176. package/dist/esm/generated/model/inquirecardsensitiveinfo.js +1 -0
  177. package/dist/esm/generated/model/inquirecardtransactionevent.js +1 -0
  178. package/dist/esm/generated/model/inquirecardtransactionlifecycle.js +1 -0
  179. package/dist/esm/generated/model/inquirecardtransactionlifecycledetail.js +1 -0
  180. package/dist/esm/generated/model/inquireexchangerate.js +1 -0
  181. package/dist/esm/generated/model/inquireholdlist.js +1 -0
  182. package/dist/esm/generated/model/inquirepaymentmethod.js +1 -0
  183. package/dist/esm/generated/model/inquirepaymenttoken.js +1 -0
  184. package/dist/esm/generated/model/inquirerulelist.js +1 -0
  185. package/dist/esm/generated/model/inquiresubscriptionpayment.js +1 -0
  186. package/dist/esm/generated/model/inquiryrate.js +1 -0
  187. package/dist/esm/generated/model/inquirystatement.js +1 -0
  188. package/dist/esm/generated/model/inquirystatementlist.js +1 -0
  189. package/dist/esm/generated/model/invoicecreate.js +1 -0
  190. package/dist/esm/generated/model/invoiceinquiredetails.js +1 -0
  191. package/dist/esm/generated/model/invoiceinquirelist.js +1 -0
  192. package/dist/esm/generated/model/invoiceupdate.js +1 -0
  193. package/dist/esm/generated/model/pay.js +1 -0
  194. package/dist/esm/generated/model/payconsult.js +1 -0
  195. package/dist/esm/generated/model/paymentsession.js +1 -0
  196. package/dist/esm/generated/model/payquery.js +1 -0
  197. package/dist/esm/generated/model/productinquirelist.js +1 -0
  198. package/dist/esm/generated/model/promotioncodecreate.js +1 -0
  199. package/dist/esm/generated/model/promotioncodeinquiredetails.js +1 -0
  200. package/dist/esm/generated/model/promotioncodeinquirelist.js +1 -0
  201. package/dist/esm/generated/model/receiptinquiredetails.js +1 -0
  202. package/dist/esm/generated/model/receiptinquirelist.js +1 -0
  203. package/dist/esm/generated/model/refund.js +1 -0
  204. package/dist/esm/generated/model/register.js +1 -0
  205. package/dist/esm/generated/model/settle.js +1 -0
  206. package/dist/esm/generated/model/submitattachment.js +1 -0
  207. package/dist/esm/generated/model/subscriptioncreate.js +1 -0
  208. package/dist/esm/generated/model/subscriptionupdate.js +1 -0
  209. package/dist/esm/generated/model/supplyevidence.js +1 -0
  210. package/dist/esm/generated/model/taxcalculate.js +1 -0
  211. package/dist/esm/generated/model/taxinquireregistrationlist.js +1 -0
  212. package/dist/esm/generated/model/taxinquiretransactionlist.js +1 -0
  213. package/dist/esm/generated/model/vaultsfetchnonce.js +1 -0
  214. package/dist/esm/generated/model/verifyandcompletepayment.js +1 -0
  215. package/dist/esm/generated/resource/aba.js +74 -0
  216. package/dist/esm/generated/resource/agentic.js +20 -0
  217. package/dist/esm/generated/resource/auth.js +17 -0
  218. package/dist/esm/generated/resource/billing.js +212 -0
  219. package/dist/esm/generated/resource/dispute.js +20 -0
  220. package/dist/esm/generated/resource/index.js +315 -0
  221. package/dist/esm/generated/resource/marketplace.js +29 -0
  222. package/dist/esm/generated/resource/notification.js +14 -0
  223. package/dist/esm/generated/resource/pay.js +86 -0
  224. package/dist/esm/generated/resource/subscription.js +32 -0
  225. package/dist/esm/generated/share.js +1 -0
  226. package/dist/esm/index.d.ts +171 -0
  227. package/dist/esm/index.js +7 -0
  228. package/dist/esm/package.json +1 -0
  229. package/dist/esm/resources.js +38 -0
  230. package/dist/esm/sdk-user-agent.js +1 -0
  231. package/dist/esm/signature.js +112 -0
  232. package/dist/esm/special.js +284 -0
  233. package/dist/esm/types.js +22 -0
  234. package/package.json +49 -4
  235. package/resources/amount-currency-rules.json +44 -0
@@ -0,0 +1,1159 @@
1
+ /** Wire-format AccountBalance; property names match the API JSON. */
2
+ export interface AccountBalance {
3
+ "accountNo"?: string;
4
+ "availableBalance": Amount;
5
+ "currency": string;
6
+ "frozenBalance": Amount;
7
+ "totalBalance": Amount;
8
+ }
9
+ /** Wire values accepted by the API. */
10
+ export type AccountHolderType = 'INDIVIDUAL' | 'ENTERPRISE';
11
+ /** Wire-format AccountLastModified; property names match the API JSON. */
12
+ export interface AccountLastModified {
13
+ "addressChangeDate"?: string;
14
+ "emailChangeDate"?: string;
15
+ "listingChangeDate"?: string;
16
+ "loginDate"?: string;
17
+ "passwordChangeDate"?: string;
18
+ }
19
+ /** Wire values accepted by the API. */
20
+ export type AccountType = 'CHECKING' | 'FIXED_DEPOSIT';
21
+ /** Wire-format AcquirerInfo; property names match the API JSON. */
22
+ export interface AcquirerInfo {
23
+ "acquirerAccountName"?: string;
24
+ "acquirerCardToken"?: string;
25
+ "acquirerFingerprint"?: string;
26
+ "acquirerMerchantId"?: string;
27
+ "acquirerMerchantName"?: string;
28
+ "acquirerName"?: string;
29
+ "acquirerReasonDescription"?: string;
30
+ "acquirerResultCode"?: string;
31
+ "acquirerResultMessage"?: string;
32
+ "acquirerTransactionId"?: string;
33
+ "ptspTransactionId"?: string;
34
+ "referenceRequestId"?: string;
35
+ }
36
+ /** Wire-format Address; property names match the API JSON. */
37
+ export interface Address {
38
+ "address1"?: string;
39
+ "address2"?: string;
40
+ "address3"?: string;
41
+ "city"?: string;
42
+ "country"?: string;
43
+ "label"?: string;
44
+ "region": string;
45
+ "state"?: string;
46
+ "zipCode"?: string;
47
+ }
48
+ /** Wire-format AgenticAgentInfo; property names match the API JSON. */
49
+ export interface AgenticAgentInfo {
50
+ "agentId": string;
51
+ "agentJwk"?: string;
52
+ "agentName"?: string;
53
+ "agentUrl"?: string;
54
+ }
55
+ /** Wire-format AgenticDeclineThreshold; property names match the API JSON. */
56
+ export interface AgenticDeclineThreshold {
57
+ "currency"?: string;
58
+ "value"?: string;
59
+ }
60
+ /** Wire-format AgenticMandate; property names match the API JSON. */
61
+ export interface AgenticMandate {
62
+ "intent"?: AgenticMandateIntent;
63
+ "mandateId"?: string;
64
+ "order"?: Order;
65
+ }
66
+ /** Wire-format AgenticMandateIntent; property names match the API JSON. */
67
+ export interface AgenticMandateIntent {
68
+ "allowedMerchant"?: Array<Merchant>;
69
+ "consumerPrompt"?: string;
70
+ "declineThreshold"?: AgenticDeclineThreshold;
71
+ "effectiveFromTime"?: string;
72
+ "effectiveUntilTime"?: string;
73
+ "intentDesc"?: string;
74
+ "preferredMerchant"?: Merchant;
75
+ }
76
+ /** Wire-format AgenticPaymentMethod; property names match the API JSON. */
77
+ export interface AgenticPaymentMethod {
78
+ "paymentMethodId"?: string;
79
+ "paymentMethodType": string;
80
+ "selectedCardBrand"?: string;
81
+ }
82
+ /** Wire-format AgreementInfo; property names match the API JSON. */
83
+ export interface AgreementInfo {
84
+ "authState"?: string;
85
+ "displayUserLoginId"?: string;
86
+ "userLoginId"?: string;
87
+ "userLoginType"?: string;
88
+ }
89
+ /** Wire-format Amount; property names match the API JSON. */
90
+ export interface Amount {
91
+ "currency": string;
92
+ "value": string;
93
+ }
94
+ /** Wire-format AncillaryData; property names match the API JSON. */
95
+ export interface AncillaryData {
96
+ "connectedTicketNumber"?: string;
97
+ "services"?: Array<Service>;
98
+ }
99
+ /** Wire-format Applicability; property names match the API JSON. */
100
+ export interface Applicability {
101
+ "priceIds"?: Array<string>;
102
+ "scope": string;
103
+ }
104
+ /** Wire-format AuthorizationControl; property names match the API JSON. */
105
+ export interface AuthorizationControl {
106
+ "allowedAuthTimes"?: number;
107
+ "allowedCurrencies"?: Array<string>;
108
+ "allowedMerchantCategoryList"?: Array<string>;
109
+ "cardActiveTime"?: string;
110
+ "cardCancelTime"?: string;
111
+ "cardLimitDetail": CardLimitDetail;
112
+ "cardLimitInfo"?: CardLimitInfo;
113
+ "email"?: string;
114
+ "paymentPreferenceCurrencies"?: Array<string>;
115
+ "phoneNo"?: string;
116
+ "refundPreference"?: RefundPreference;
117
+ "sameCurrencyPreference"?: boolean;
118
+ "threeDSMode"?: string;
119
+ }
120
+ /** Wire-format AutomaticTax; property names match the API JSON. */
121
+ export interface AutomaticTax {
122
+ "enabled"?: boolean;
123
+ }
124
+ /** Wire-format BillingDiscount; property names match the API JSON. */
125
+ export interface BillingDiscount {
126
+ "couponId"?: string;
127
+ "promotionCodeId"?: string;
128
+ }
129
+ /** Wire-format BillingSubscriptionPriceItem; property names match the API JSON. */
130
+ export interface BillingSubscriptionPriceItem {
131
+ "currentPeriodEnd"?: string;
132
+ "currentPeriodStart"?: string;
133
+ "itemAmount"?: Amount;
134
+ "itemId"?: string;
135
+ "meterId"?: string;
136
+ "nickname"?: string;
137
+ "priceId"?: string;
138
+ "priceType"?: string;
139
+ "pricingModel"?: string;
140
+ "productDescription"?: string;
141
+ "productId"?: string;
142
+ "productName"?: string;
143
+ "quantity"?: number;
144
+ "recurringInterval"?: string;
145
+ "recurringIntervalCount"?: number;
146
+ "tiers"?: Array<Tier>;
147
+ "tiersMode"?: string;
148
+ "unitAmount"?: Amount;
149
+ "usageType"?: string;
150
+ }
151
+ /** Wire-format BillingTrialSettings; property names match the API JSON. */
152
+ export interface BillingTrialSettings {
153
+ "trialEnd"?: string;
154
+ "trialEndBehavior"?: string;
155
+ "trialPeriodDays"?: number;
156
+ }
157
+ /** Wire-format BrowserInfo; property names match the API JSON. */
158
+ export interface BrowserInfo {
159
+ "acceptHeader"?: string;
160
+ "javaEnabled"?: boolean;
161
+ "javaScriptEnabled"?: boolean;
162
+ "language"?: string;
163
+ "userAgent"?: string;
164
+ }
165
+ /** Wire-format Buyer; property names match the API JSON. */
166
+ export interface Buyer {
167
+ "businessAddress"?: Address;
168
+ "businessName"?: string;
169
+ "buyerEmail"?: string;
170
+ "buyerName"?: UserName;
171
+ "buyerPhoneNo"?: string;
172
+ "buyerPhoneNoContryCode"?: string;
173
+ "buyerRegistrationTime"?: string;
174
+ "buyerType"?: string;
175
+ "dateOfFirstPaidPurchase"?: string;
176
+ "dateOfLastPaidPurchase"?: string;
177
+ "isAccountVerified"?: boolean;
178
+ "preferredLocales"?: Array<string>;
179
+ "referenceBuyerId"?: string;
180
+ "successfulOrderAmount"?: Amount;
181
+ "successfulOrderCount"?: number;
182
+ "taxIds"?: Array<BuyerTaxId>;
183
+ }
184
+ /** Wire-format BuyerTaxId; property names match the API JSON. */
185
+ export interface BuyerTaxId {
186
+ "country": string;
187
+ "region"?: string;
188
+ "value": string;
189
+ }
190
+ /** Wire values accepted by the API. */
191
+ export type CardBrand = 'AMEX' | 'BC' | 'CARNET' | 'CARTES_BANCAIRES' | 'CITI' | 'CUP' | 'DINERS' | 'DISCOVER' | 'ELO' | 'GWANGJUBANK' | 'HIPERCARD' | 'HYUNDAI' | 'IBK_BC' | 'JCB' | 'JEJUBANK' | 'JEONBUKBANK' | 'KAKAOBANK' | 'KBANK' | 'KDBBANK' | 'KEBHANA' | 'KOOKMIN' | 'LOTTE' | 'MAESTRO' | 'MASTERCARD' | 'MIR' | 'NONGHYUP' | 'POST' | 'SAEMAUL' | 'SAMSUNG' | 'SAVINGBANK' | 'SHINHAN' | 'SHINHYEOP' | 'SUHYEOP' | 'TOSSBANK' | 'TROY' | 'VISA' | 'WOORI';
192
+ /** Wire-format CardholderInfo; property names match the API JSON. */
193
+ export interface CardholderInfo {
194
+ "billAddress": Address;
195
+ "cardHolderName": UserName;
196
+ "displayName"?: string;
197
+ }
198
+ /** Wire-format CardLimitDetail; property names match the API JSON. */
199
+ export interface CardLimitDetail {
200
+ "dailyLimit": Limit;
201
+ "dailyLimitMax"?: string;
202
+ "monthlyLimit": Limit;
203
+ "monthlyLimitMax"?: string;
204
+ "perCardLimit"?: Limit;
205
+ "perCardLimitMax"?: string;
206
+ "perTransactionLimit": Amount;
207
+ "perTransactionLimitMax"?: string;
208
+ }
209
+ /** Wire-format CardLimitInfo; property names match the API JSON. */
210
+ export interface CardLimitInfo {
211
+ "currency"?: string;
212
+ "dailyLimitMax"?: string;
213
+ "monthlyLimitMax"?: string;
214
+ "perCardLimitMax"?: string;
215
+ "perTransactionLimitMax"?: string;
216
+ }
217
+ /** Wire-format CardPaymentMethodDetail; property names match the API JSON. */
218
+ export interface CardPaymentMethodDetail {
219
+ "authenticationFlow"?: string;
220
+ "avsResultRaw"?: string;
221
+ "billingAddress"?: Address;
222
+ "bin"?: string;
223
+ "brand"?: CardBrand;
224
+ "businessNo"?: string;
225
+ "cardIssuer"?: string;
226
+ "cardNo"?: string;
227
+ "cardPasswordDigest"?: string;
228
+ "cardToken"?: string;
229
+ "cardholderName"?: UserName;
230
+ "countryIssue"?: string;
231
+ "cpf"?: string;
232
+ "cvv"?: string;
233
+ "cvvResultRaw"?: string;
234
+ "dateOfBirth"?: string;
235
+ "enableAuthenticationUpgrade"?: string;
236
+ "expiryMonth"?: string;
237
+ "expiryYear"?: string;
238
+ "fingerprint"?: string;
239
+ "funding"?: 'CREDIT' | 'DEBIT' | 'PREPAID' | 'CHARGE' | 'DEFERRED_DEBIT';
240
+ "instUserName"?: UserName;
241
+ "is3DSAuthentication"?: boolean;
242
+ "issuerName"?: string;
243
+ "issuingCountry"?: string;
244
+ "last4"?: string;
245
+ "lastFour"?: string;
246
+ "mask"?: string;
247
+ "maskedCardNo"?: string;
248
+ "mpiData"?: MpiData;
249
+ "networkTransactionId"?: string;
250
+ "payerEmail"?: string;
251
+ "paymentMethodDetailMetadata"?: string;
252
+ "request3DS"?: string;
253
+ "scaExemptionIndicator"?: string;
254
+ "selectedCardBrand"?: CardBrand;
255
+ "supportedBrands"?: Array<string>;
256
+ }
257
+ /** Wire-format CardTransactionEvent; property names match the API JSON. */
258
+ export interface CardTransactionEvent {
259
+ "assetId": string;
260
+ "authCode"?: string;
261
+ "authExpireTime"?: string;
262
+ "authTime"?: string;
263
+ "authType"?: string;
264
+ "balanceType"?: string;
265
+ "billType": string;
266
+ "cardProduct"?: string;
267
+ "eventId": string;
268
+ "eventType": string;
269
+ "exchangeCurrencyPair"?: string;
270
+ "exchangeRate"?: string;
271
+ "failureReason"?: string;
272
+ "inAmount"?: Amount;
273
+ "lifecycleId": string;
274
+ "maskedCardNo"?: string;
275
+ "merchantInfo"?: EventMerchantInfo;
276
+ "metadata"?: {
277
+ [key: string]: string;
278
+ };
279
+ "outAmount"?: Amount;
280
+ "status": string;
281
+ "transactionAmount": Amount;
282
+ "transactionTime": string;
283
+ }
284
+ /** Wire values accepted by the API. */
285
+ export type ClassType = 'FIRSTLEVEL' | 'SECONDLEVEL' | 'THIRDLEVEL';
286
+ /** Wire-format CodeDetail; property names match the API JSON. */
287
+ export interface CodeDetail {
288
+ "codeValue": string;
289
+ "codeValueType"?: CodeValueType;
290
+ "displayType": DisplayType;
291
+ }
292
+ /** Wire values accepted by the API. */
293
+ export type CodeValueType = 'BARCODE' | 'QRCODE';
294
+ /** Wire-format CouponPaymentMethodDetail; property names match the API JSON. */
295
+ export interface CouponPaymentMethodDetail {
296
+ "availableAmount"?: Amount;
297
+ "couponDescription"?: string;
298
+ "couponExpireTime"?: string;
299
+ "couponId"?: string;
300
+ "couponName"?: string;
301
+ "paymentMethodDetailMetadata"?: string;
302
+ }
303
+ /** Wire-format CreditGrant; property names match the API JSON. */
304
+ export interface CreditGrant {
305
+ "amount": Amount;
306
+ "applicability": Applicability;
307
+ "availableAmount": Amount;
308
+ "category": string;
309
+ "createdDateTime": string;
310
+ "creditGrantId": string;
311
+ "creditGrantName": string;
312
+ "customerId": string;
313
+ "effectiveDateTime"?: string;
314
+ "expiryDateTime"?: string;
315
+ "priority": number;
316
+ "status": string;
317
+ "updatedDateTime": string;
318
+ }
319
+ /** Wire-format CreditNoteItem; property names match the API JSON. */
320
+ export interface CreditNoteItem {
321
+ "creditNoteItemId"?: string;
322
+ "description"?: string;
323
+ "invoiceItemId"?: string;
324
+ "itemAmount"?: Amount;
325
+ "quantity"?: number;
326
+ "type"?: string;
327
+ "unitAmount"?: Amount;
328
+ }
329
+ /** Wire values accepted by the API. */
330
+ export type CreditPayFeeType = 'PERCENTAGE';
331
+ /** Wire-format CreditPayPlan; property names match the API JSON. */
332
+ export interface CreditPayPlan {
333
+ "creditPayFeeType"?: CreditPayFeeType;
334
+ "feePercentage"?: number;
335
+ "filteredInstallmentPeriods"?: Array<number>;
336
+ "installmentNum"?: number;
337
+ "interestRate"?: string;
338
+ "interval"?: string;
339
+ }
340
+ /** Wire values accepted by the API. */
341
+ export type CustomerBelongsTo = 'ALIPAY_CN' | 'ALIPAY_HK' | 'MPAY' | 'DANA' | 'PAYPAY' | 'BOOST' | 'TNG' | 'GRABPAY_MY' | 'HIPAY' | 'GCASH' | 'MAYA' | 'GRABPAY_PH' | 'GRABPAY_SG' | 'KAKAOPAY' | 'NAVERPAY' | 'TOSSPAY' | 'RABBIT_LINE_PAY' | 'TRUEMONEY' | 'KPLUS' | 'DIRECT_DEBIT_SIAMCOMMERCIALBANK' | 'DIRECT_DEBIT_KRUNGTHAIBANK' | 'ACH_DIRECT_DEBIT' | 'ZALOPAY' | 'MOMO' | 'VIETTELMONEY' | 'JKOPAY' | 'BKASH' | 'EASYPAISA' | 'DIRECTDEBIT_YAPILY' | 'ANTOM_BIZ_ACCOUNT';
342
+ /** Wire-format CustomizedInfo; property names match the API JSON. */
343
+ export interface CustomizedInfo {
344
+ "customizedField1"?: string;
345
+ "customizedField2"?: string;
346
+ "customizedField3"?: string;
347
+ "customizedField4"?: string;
348
+ "customizedField5"?: string;
349
+ }
350
+ /** Wire-format Declaration; property names match the API JSON. */
351
+ export interface Declaration {
352
+ "declarationBeneficiaryId"?: string;
353
+ "declarationBizScene"?: DeclarationBizSceneType;
354
+ }
355
+ /** Wire values accepted by the API. */
356
+ export type DeclarationBizSceneType = 'AIRLINE' | 'HOTEL';
357
+ /** Wire-format DeliveryEstimate; property names match the API JSON. */
358
+ export interface DeliveryEstimate {
359
+ "maximum"?: DeliveryEstimateInfo;
360
+ "minimum"?: DeliveryEstimateInfo;
361
+ }
362
+ /** Wire-format DeliveryEstimateInfo; property names match the API JSON. */
363
+ export interface DeliveryEstimateInfo {
364
+ "unit": string;
365
+ "value": number;
366
+ }
367
+ /** Wire-format Discount; property names match the API JSON. */
368
+ export interface Discount {
369
+ "discountName"?: string;
370
+ "discountTag"?: string;
371
+ "estimateSavingsAmount"?: Amount;
372
+ "savingsAmount"?: Amount;
373
+ }
374
+ /** Wire-format DiscountPaymentMethodDetail; property names match the API JSON. */
375
+ export interface DiscountPaymentMethodDetail {
376
+ "availableAmount"?: Amount;
377
+ "discountDescription"?: string;
378
+ "discountId"?: string;
379
+ "discountName"?: string;
380
+ "paymentMethodDetailMetadata"?: string;
381
+ }
382
+ /** Wire values accepted by the API. */
383
+ export type DisplayType = 'TEXT' | 'MIDDLEIMAGE' | 'SMALLIMAGE' | 'BIGIMAGE' | 'IMAGE';
384
+ /** Wire-format Env; property names match the API JSON. */
385
+ export interface Env {
386
+ "browserInfo"?: BrowserInfo;
387
+ "clientIp"?: string;
388
+ "colorDepth"?: string;
389
+ "cookieId"?: string;
390
+ "deviceBrand"?: string;
391
+ "deviceId"?: string;
392
+ "deviceLanguage"?: string;
393
+ "deviceModel"?: string;
394
+ "deviceTokenId"?: string;
395
+ "extendInfo"?: string;
396
+ "osType"?: OsType;
397
+ "osVersion"?: string;
398
+ "screenHeight"?: string;
399
+ "screenWidth"?: string;
400
+ "storeTerminalId"?: string;
401
+ "storeTerminalRequestTime"?: string;
402
+ "terminalType"?: TerminalType;
403
+ "timeZoneOffset"?: number;
404
+ "userAgent"?: string;
405
+ }
406
+ /** Wire-format EventMerchantInfo; property names match the API JSON. */
407
+ export interface EventMerchantInfo {
408
+ "mcc"?: string;
409
+ "name"?: string;
410
+ "region"?: string;
411
+ }
412
+ /** Wire-format ExternalPaymentMethodDetail; property names match the API JSON. */
413
+ export interface ExternalPaymentMethodDetail {
414
+ "accountDisplayName"?: string;
415
+ "assetToken"?: string;
416
+ "disableReason"?: string;
417
+ "paymentMethodDetailMetadata"?: string;
418
+ }
419
+ /** Wire-format ForeignExchangeQuote; property names match the API JSON. */
420
+ export interface ForeignExchangeQuote {
421
+ "exchangeRate"?: string;
422
+ "quotePrice"?: string;
423
+ "quoteTime"?: string;
424
+ "sourceCurrency"?: string;
425
+ "targetCurrency"?: string;
426
+ }
427
+ /** Wire values accepted by the API. */
428
+ export type FundingType = 'CREDIT' | 'DEBIT' | 'PREPAID' | 'CHARGE' | 'DEFERRED_DEBIT';
429
+ /** Wire-format FundMoveDetail; property names match the API JSON. */
430
+ export interface FundMoveDetail {
431
+ "beneficiaryAccountType"?: string;
432
+ "beneficiaryAssetId"?: string;
433
+ "beneficiaryBankCountry"?: string;
434
+ "beneficiaryBankName"?: string;
435
+ "beneficiaryName": string;
436
+ "description"?: string;
437
+ "memo"?: string;
438
+ "payerAccountNo": string;
439
+ "payerAccountType"?: string;
440
+ "payerAssetId"?: string;
441
+ "payerChaneelAccountnumber"?: string;
442
+ "payerName": string;
443
+ "referenceTransactionId": string;
444
+ "remarks"?: string;
445
+ }
446
+ /** Wire values accepted by the API. */
447
+ export type FundsType = 'COLLATERAL';
448
+ /** Wire-format FundTransferInfo; property names match the API JSON. */
449
+ export interface FundTransferInfo {
450
+ "fundTransferType"?: string;
451
+ "sellerMcc"?: string;
452
+ "sellerName"?: string;
453
+ "transferRecipient"?: FundTransferRecipient;
454
+ "transferSender"?: FundTransferSender;
455
+ }
456
+ /** Wire-format FundTransferPartyAddress; property names match the API JSON. */
457
+ export interface FundTransferPartyAddress {
458
+ "address1"?: string;
459
+ "city"?: string;
460
+ "region"?: string;
461
+ "state"?: string;
462
+ }
463
+ /** Wire-format FundTransferPartyName; property names match the API JSON. */
464
+ export interface FundTransferPartyName {
465
+ "firstName"?: string;
466
+ "lastName"?: string;
467
+ }
468
+ /** Wire-format FundTransferRecipient; property names match the API JSON. */
469
+ export interface FundTransferRecipient {
470
+ "address"?: FundTransferPartyAddress;
471
+ "recipientAccountNumber"?: string;
472
+ "recipientName"?: FundTransferPartyName;
473
+ }
474
+ /** Wire-format FundTransferSender; property names match the API JSON. */
475
+ export interface FundTransferSender {
476
+ "address"?: FundTransferPartyAddress;
477
+ "senderName"?: FundTransferPartyName;
478
+ }
479
+ /** Wire-format Gaming; property names match the API JSON. */
480
+ export interface Gaming {
481
+ "gameName"?: string;
482
+ "toppedUpEmail"?: string;
483
+ "toppedUpPhoneNo"?: string;
484
+ "toppedUpUser"?: string;
485
+ }
486
+ /** Wire-format Goods; property names match the API JSON. */
487
+ export interface Goods {
488
+ "crossSell"?: Goods;
489
+ "deliveryMethodType"?: string;
490
+ "goodsBrand"?: string;
491
+ "goodsCategory"?: string;
492
+ "goodsDiscountAmount"?: Amount;
493
+ "goodsEndsOnTime"?: string;
494
+ "goodsImageUrl"?: string;
495
+ "goodsName": string;
496
+ "goodsQuantity"?: string;
497
+ "goodsSkuName"?: string;
498
+ "goodsUnitAmount"?: Amount;
499
+ "goodsUrl"?: string;
500
+ "priceId"?: string;
501
+ "referenceGoodsId": string;
502
+ "taxBehavior"?: string;
503
+ "taxCode"?: string;
504
+ }
505
+ /** Wire values accepted by the API. */
506
+ export type InStorePaymentScenario = 'PaymentCode' | 'OrderCode' | 'EntryCode';
507
+ /** Wire-format InvoiceAddress; property names match the API JSON. */
508
+ export interface InvoiceAddress {
509
+ "address1"?: string;
510
+ "address2"?: string;
511
+ "city"?: string;
512
+ "country"?: string;
513
+ "postalCode"?: string;
514
+ "state"?: string;
515
+ }
516
+ /** Wire-format InvoicePayment; property names match the API JSON. */
517
+ export interface InvoicePayment {
518
+ "attemptNo": number;
519
+ "errorCode"?: string;
520
+ "errorMessage"?: string;
521
+ "gmtCreate": string;
522
+ "gmtUpdate": string;
523
+ "invoicePaymentId": string;
524
+ "nextRetryAt"?: string;
525
+ "payToId"?: string;
526
+ "payToRequestId"?: string;
527
+ "paymentAmount"?: Amount;
528
+ "paymentId"?: string;
529
+ "paymentMethod"?: string;
530
+ "paymentOrderStatus": string;
531
+ "paymentRequestId"?: string;
532
+ "paymentTime"?: string;
533
+ "retryReason"?: string;
534
+ }
535
+ /** Wire-format InvoiceShipping; property names match the API JSON. */
536
+ export interface InvoiceShipping {
537
+ "deliveryEstimate"?: DeliveryEstimate;
538
+ "notes"?: string;
539
+ "shipToEmail"?: string;
540
+ "shippingAddress"?: InvoiceAddress;
541
+ "shippingCarrier"?: string;
542
+ "shippingDescription"?: string;
543
+ "shippingFee"?: Amount;
544
+ "shippingFeeId"?: string;
545
+ "shippingMethodIndicator"?: string;
546
+ "shippingName"?: UserName;
547
+ "shippingNumber"?: string;
548
+ "shippingPhoneNo"?: string;
549
+ "trackingUrl"?: string;
550
+ }
551
+ /** Wire-format Leg; property names match the API JSON. */
552
+ export interface Leg {
553
+ "arrivalAddress"?: Address;
554
+ "arrivalAirportCode"?: string;
555
+ "arrivalTime"?: string;
556
+ "carrierName"?: string;
557
+ "carrierNo"?: string;
558
+ "classType"?: ClassType;
559
+ "couponNumber"?: string;
560
+ "departureAddress"?: Address;
561
+ "departureAirportCode"?: string;
562
+ "departureTime"?: string;
563
+ "fareBasis"?: string;
564
+ "flightNumber"?: string;
565
+ "passengerNameRecord"?: string;
566
+ "ticketDeliveryMethod"?: string;
567
+ "ticketDeliveryRecipient"?: string;
568
+ }
569
+ /** Wire-format Limit; property names match the API JSON. */
570
+ export interface Limit {
571
+ "rangeLimit": Amount;
572
+ "remainingLimit": Amount;
573
+ "usedLimit": Amount;
574
+ }
575
+ /** Wire-format Lodging; property names match the API JSON. */
576
+ export interface Lodging {
577
+ "checkInDate"?: string;
578
+ "checkOutDate"?: string;
579
+ "guestNames"?: Array<UserName>;
580
+ "hotelAddress"?: Address;
581
+ "hotelName"?: string;
582
+ "numberOfNights"?: number;
583
+ "numberOfRooms"?: number;
584
+ "roomClass"?: string;
585
+ "ticketDeliveryMethod"?: string;
586
+ "ticketDeliveryRecipient"?: string;
587
+ }
588
+ /** Wire-format Merchant; property names match the API JSON. */
589
+ export interface Merchant {
590
+ "accountLastModified"?: AccountLastModified;
591
+ "merchantAddress"?: Address;
592
+ "merchantCountryCode"?: string;
593
+ "merchantDisplayName"?: string;
594
+ "merchantMCC"?: string;
595
+ "merchantName"?: string;
596
+ "merchantRegisterDate"?: string;
597
+ "merchantType"?: MerchantType;
598
+ "merchantUrl"?: string;
599
+ "numberOfTrades"?: number;
600
+ "referenceMerchantId": string;
601
+ "store"?: Store;
602
+ }
603
+ /** Wire values accepted by the API. */
604
+ export type MerchantType = 'INDIVIDUAL' | 'ENTERPRISE';
605
+ /** Wire-format Meter; property names match the API JSON. */
606
+ export interface Meter {
607
+ "aggregationMethod": string;
608
+ "createdDateTime": string;
609
+ "eventName": string;
610
+ "eventTimeWindow"?: string;
611
+ "meterId": string;
612
+ "meterName": string;
613
+ "status": string;
614
+ "updatedDateTime": string;
615
+ "valueKeyOverride": string;
616
+ }
617
+ /** Wire-format MpiData; property names match the API JSON. */
618
+ export interface MpiData {
619
+ "cavv"?: string;
620
+ "credentialType"?: string;
621
+ "dsTransactionId"?: string;
622
+ "eci"?: string;
623
+ "threeDSVersion"?: string;
624
+ }
625
+ /** Wire-format NotificationEvent; property names match the API JSON. */
626
+ export interface NotificationEvent {
627
+ "deliveryStatus": string;
628
+ "eventCreateTime": string;
629
+ "eventId": string;
630
+ "notificationData"?: {
631
+ [key: string]: any | null;
632
+ };
633
+ "notifyType"?: string;
634
+ "referenceMerchantId"?: string;
635
+ }
636
+ /** Wire-format Order; property names match the API JSON. */
637
+ export interface Order {
638
+ "buyer"?: Buyer;
639
+ "checkoutJwt"?: string;
640
+ "declaration"?: Declaration;
641
+ "env"?: Env;
642
+ "extendInfo"?: string;
643
+ "gaming"?: Gaming;
644
+ "goods"?: Array<Goods>;
645
+ "lodging"?: Lodging;
646
+ "merchant"?: Merchant;
647
+ "needDeclaration"?: boolean;
648
+ "orderAmount": Amount;
649
+ "orderDescription"?: string;
650
+ "orderDiscountAmount"?: Amount;
651
+ "orderType"?: string;
652
+ "paymentAmount"?: Amount;
653
+ "referenceOrderId": string;
654
+ "sendReceipt"?: boolean;
655
+ "shipping"?: Shipping;
656
+ "subTotalOrderAmount"?: Amount;
657
+ "taxCalculationId"?: string;
658
+ "transit"?: Transit;
659
+ }
660
+ /** Wire-format OrderInfo; property names match the API JSON. */
661
+ export interface OrderInfo {
662
+ "orderAmount"?: Amount;
663
+ }
664
+ /** Wire values accepted by the API. */
665
+ export type OsType = 'IOS' | 'ANDROID';
666
+ /** Wire-format Paginator; property names match the API JSON. */
667
+ export interface Paginator {
668
+ "currentPage": number;
669
+ "pageSize": number;
670
+ "totalCount": number;
671
+ "totalPage": number;
672
+ }
673
+ /** Wire-format Passenger; property names match the API JSON. */
674
+ export interface Passenger {
675
+ "passengerCode"?: string;
676
+ "passengerEmail"?: string;
677
+ "passengerId"?: string;
678
+ "passengerIdType"?: PassengerIdType;
679
+ "passengerName"?: UserName;
680
+ "passengerPhoneNo"?: string;
681
+ }
682
+ /** Wire values accepted by the API. */
683
+ export type PassengerIdType = 'PASSPORT' | 'NATIONAL_ID_CARD' | 'DRIVER_LICENSE' | 'MILITARY_ID' | 'GREEN_CARD' | 'TRAVEL_DOCUMENT' | 'ALIEN_REGISTRATION_CARD' | 'BIRTH_CERTIFICATE' | 'OTHERS';
684
+ /** Wire-format PaymentFactor; property names match the API JSON. */
685
+ export interface PaymentFactor {
686
+ "captureMode"?: string;
687
+ "inStorePaymentScenario"?: InStorePaymentScenario;
688
+ "isAuthorization"?: boolean;
689
+ "isPaymentEvaluation"?: boolean;
690
+ "presentmentMode"?: PresentmentMode;
691
+ "storePaymentMethodForBuyer"?: boolean;
692
+ }
693
+ /** Wire-format PaymentMethod; property names match the API JSON. */
694
+ export interface PaymentMethod {
695
+ "cardBrand"?: string;
696
+ "customerId"?: string;
697
+ "extendInfo"?: string;
698
+ "funding"?: FundingType;
699
+ "paymentMethodId"?: string;
700
+ "paymentMethodMetaData"?: {
701
+ [key: string]: object;
702
+ };
703
+ "paymentMethodType": string;
704
+ "requireIssuerAuthentication"?: boolean;
705
+ }
706
+ /** Wire-format PaymentMethodDetail; property names match the API JSON. */
707
+ export interface PaymentMethodDetail {
708
+ "card"?: CardPaymentMethodDetail;
709
+ "coupon"?: CouponPaymentMethodDetail;
710
+ "discount"?: DiscountPaymentMethodDetail;
711
+ "extendInfo"?: string;
712
+ "externalAccount"?: ExternalPaymentMethodDetail;
713
+ "interactionType"?: string;
714
+ "paymentMethodDetailType"?: PaymentMethodDetailType;
715
+ "paymentMethodMetaData"?: PaymentMethodMetaData;
716
+ "paymentMethodType": string;
717
+ "wallet"?: Wallet;
718
+ }
719
+ /** Wire values accepted by the API. */
720
+ export type PaymentMethodDetailType = 'CARD' | 'EXTERNALACCOUNT' | 'COUPON' | 'DISCOUNT';
721
+ /** Wire-format PaymentMethodMetaData; property names match the API JSON. */
722
+ export interface PaymentMethodMetaData {
723
+ "recurringType"?: 'SCHEDULED' | 'UNSCHEDULED';
724
+ }
725
+ /** Wire values accepted by the API. */
726
+ export type PaymentMethodScope = 'ALL' | 'CARD';
727
+ /** Wire-format PaymentResultInfo; property names match the API JSON. */
728
+ export interface PaymentResultInfo {
729
+ "accountNo"?: string;
730
+ "acquirerInfo"?: AcquirerInfo;
731
+ "authorizationCode"?: string;
732
+ "avsResultRaw"?: string;
733
+ "cardBin"?: string;
734
+ "cardBrand"?: string;
735
+ "cardCategory"?: string;
736
+ "cardNo"?: string;
737
+ "cardToken"?: string;
738
+ "cardholderName"?: string;
739
+ "credentialTypeUsed"?: string;
740
+ "creditPayPlan"?: CreditPayPlan;
741
+ "cvvResultRaw"?: string;
742
+ "exemptionRequested"?: string;
743
+ "expiryMonth"?: string;
744
+ "expiryYear"?: string;
745
+ "extendedAuthorizationAvailable"?: boolean;
746
+ "fingerprint"?: string;
747
+ "funding"?: string;
748
+ "incrementalAuthorizationAvailable"?: boolean;
749
+ "issuerName"?: string;
750
+ "issuingCountry"?: string;
751
+ "lastFour"?: string;
752
+ "merchantAdviceCode"?: string;
753
+ "networkTransactionId"?: string;
754
+ "paymentMethodRegion"?: string;
755
+ "refundOnAuthorizationAvailable"?: boolean;
756
+ "refusalCodeRaw"?: string;
757
+ "refusalReasonRaw"?: string;
758
+ "rrn"?: string;
759
+ "threeDSResult"?: ThreeDSResult;
760
+ "userAuthorizationStatus"?: string;
761
+ }
762
+ /** Wire-format PeriodRule; property names match the API JSON. */
763
+ export interface PeriodRule {
764
+ "period"?: number;
765
+ "periodCount": number;
766
+ "periodType": string;
767
+ "price"?: Amount;
768
+ }
769
+ /** Wire values accepted by the API. */
770
+ export type PeriodType = 'DAY' | 'WEEK' | 'MONTH' | 'QUARTER' | 'HALF_YEAR' | 'YEAR';
771
+ /** Wire values accepted by the API. */
772
+ export type PresentmentMode = 'BUNDLE' | 'TILE' | 'UNIFIED';
773
+ /** Wire-format Price; property names match the API JSON. */
774
+ export interface Price {
775
+ "active": boolean;
776
+ "createdAt": string;
777
+ "deactivatedAt"?: string;
778
+ "defaultPrice"?: boolean;
779
+ "includedQuantity"?: number;
780
+ "metadata"?: string;
781
+ "meterId"?: string;
782
+ "name"?: string;
783
+ "priceId": string;
784
+ "pricingModel": string;
785
+ "productId": string;
786
+ "recurring"?: RecurringSettings;
787
+ "tiers"?: Array<Tier>;
788
+ "tiersMode"?: string;
789
+ "unitAmount"?: Amount;
790
+ "unitLabel"?: string;
791
+ "updatedAt"?: string;
792
+ "usageType"?: string;
793
+ }
794
+ /** Wire values accepted by the API. */
795
+ export type ProductCodeType = 'CASHIER_PAYMENT' | 'AGREEMENT_PAYMENT' | 'IN_STORE_PAYMENT';
796
+ /** Wire-format PromotionResult; property names match the API JSON. */
797
+ export interface PromotionResult {
798
+ "discount"?: Discount;
799
+ "promotionType": PromotionType;
800
+ }
801
+ /** Wire values accepted by the API. */
802
+ export type PromotionType = 'DISCOUNT' | 'INTEREST_FREE';
803
+ /** Wire-format PspCustomerInfo; property names match the API JSON. */
804
+ export interface PspCustomerInfo {
805
+ "customer2088Id"?: string;
806
+ "displayCustomerId"?: string;
807
+ "displayCustomerName"?: string;
808
+ "extendInfo"?: string;
809
+ "pspCustomerId"?: string;
810
+ "pspName"?: string;
811
+ }
812
+ /** Wire-format Quote; property names match the API JSON. */
813
+ export interface Quote {
814
+ "exchangeAmount"?: Amount;
815
+ "guaranteed"?: boolean;
816
+ "quoteCurrencyPair": string;
817
+ "quoteExpiryTime"?: string;
818
+ "quoteId"?: string;
819
+ "quotePrice": number;
820
+ "quoteStartTime"?: string;
821
+ }
822
+ /** Wire-format RecurringSettings; property names match the API JSON. */
823
+ export interface RecurringSettings {
824
+ "periodRule"?: PeriodRule;
825
+ }
826
+ /** Wire-format RedirectActionForm; property names match the API JSON. */
827
+ export interface RedirectActionForm {
828
+ "actionFormType"?: string;
829
+ "method"?: string;
830
+ "parameters"?: string;
831
+ "redirectUrl"?: string;
832
+ }
833
+ /** Wire-format RefundFromMethod; property names match the API JSON. */
834
+ export interface RefundFromMethod {
835
+ "customerId": string;
836
+ "grantToken": string;
837
+ "refundFromMethodType": string;
838
+ }
839
+ /** Wire-format RefundPreference; property names match the API JSON. */
840
+ export interface RefundPreference {
841
+ "preferenceType": 'NO_PREFERENCE' | 'ORIGINAL_CURRENCY';
842
+ }
843
+ /** Wire values accepted by the API. */
844
+ export type ReleaseType = 'FIXED_TIME' | 'INTERVAL_TIME';
845
+ /** Wire-format Result; property names match the API JSON. */
846
+ export interface Result {
847
+ "resultCode": string;
848
+ "resultMessage"?: string;
849
+ "resultStatus"?: ResultStatusType;
850
+ }
851
+ /** Wire-format ResultInfo; property names match the API JSON. */
852
+ export interface ResultInfo {
853
+ "resultCode": string;
854
+ "resultMessage": string;
855
+ "resultStatus": string;
856
+ }
857
+ /** Wire values accepted by the API. */
858
+ export type ResultStatusType = 'S' | 'F' | 'U';
859
+ /** Wire values accepted by the API. */
860
+ export type RuleStatus = 'ACTIVE' | 'DISABLED';
861
+ /** Wire-format Service; property names match the API JSON. */
862
+ export interface Service {
863
+ "categoryCode"?: string;
864
+ "subCategoryCode"?: string;
865
+ }
866
+ /** Wire-format SettlementBankAccount; property names match the API JSON. */
867
+ export interface SettlementBankAccount {
868
+ "accountHolderAddress"?: Address;
869
+ "accountHolderName": string;
870
+ "accountHolderTIN"?: string;
871
+ "accountHolderType": AccountHolderType;
872
+ "accountType"?: AccountType;
873
+ "bankAccountNo": string;
874
+ "bankName"?: string;
875
+ "bankRegion": string;
876
+ "branchCode"?: string;
877
+ "iban"?: string;
878
+ "routingNumber"?: string;
879
+ "swiftCode"?: string;
880
+ }
881
+ /** Wire-format SettlementStrategy; property names match the API JSON. */
882
+ export interface SettlementStrategy {
883
+ "settlementCurrency"?: string;
884
+ }
885
+ /** Wire-format Shipping; property names match the API JSON. */
886
+ export interface Shipping {
887
+ "deliveryEstimate"?: DeliveryEstimate;
888
+ "notes"?: string;
889
+ "shipToEmail"?: string;
890
+ "shippingAddress"?: Address;
891
+ "shippingCarrier"?: string;
892
+ "shippingDescription"?: string;
893
+ "shippingFee"?: Amount;
894
+ "shippingFeeId"?: string;
895
+ "shippingName"?: UserName;
896
+ "shippingNumber"?: string;
897
+ "shippingPhoneNo"?: string;
898
+ "taxBehavior"?: string;
899
+ "taxCode"?: string;
900
+ "trackingUrl"?: string;
901
+ }
902
+ /** Wire-format SplitDetail; property names match the API JSON. */
903
+ export interface SplitDetail {
904
+ "actualSplitAmount"?: Amount;
905
+ "description"?: string;
906
+ "splitAmount": Amount;
907
+ "splitTo": string;
908
+ }
909
+ /** Wire-format Statement; property names match the API JSON. */
910
+ export interface Statement {
911
+ "accountBalance"?: Amount;
912
+ "beneficiaryAssetId"?: string;
913
+ "extTransactionId"?: string;
914
+ "feeAmount"?: Amount;
915
+ "foreignExchangeQuote"?: ForeignExchangeQuote;
916
+ "fundMoveDetail": FundMoveDetail;
917
+ "netAmount"?: Amount;
918
+ "originalTransactionAmount"?: Amount;
919
+ "statementId": string;
920
+ "transactionAmount"?: Amount;
921
+ "transactionId"?: string;
922
+ "transactionStatus"?: string;
923
+ "transactionTime"?: string;
924
+ "transactionType"?: 'PAYMENT' | 'PAYMENT_REFUND' | 'CHARGE' | 'CHARGE_REFUND' | 'TOPUP' | 'SETTLEMENT' | 'WITHDRAW' | 'WITHDRAW_RETURN' | 'TRANSFER' | 'TRANSFER_RETURN' | 'TRANSFER_TO_CHINA' | 'TRANSFER_RECIPIENT' | 'EXCHANGE' | 'CREDIT_LOAN' | 'CREDIT_REPAY' | 'CREDIT_REPAYMENT' | 'DIRECT_PAYMENT' | 'DIRECT_REFUND' | 'CARD_PAYMENT' | 'CARD_REFUND' | 'OVERFLOW_DEBIT' | 'OVERFLOW_CREDIT' | 'CASH_BACK';
925
+ }
926
+ /** Wire-format Store; property names match the API JSON. */
927
+ export interface Store {
928
+ "referenceStoreId"?: string;
929
+ "storeAddress"?: Address;
930
+ "storeDisplayName"?: string;
931
+ "storeMCC"?: string;
932
+ "storeName"?: string;
933
+ "storeOperatorId"?: string;
934
+ "storePhoneNo"?: string;
935
+ "storeTerminalId"?: string;
936
+ }
937
+ /** Wire-format SubscriptionInfo; property names match the API JSON. */
938
+ export interface SubscriptionInfo {
939
+ "allowRetry"?: boolean;
940
+ "currentPeriodEnd"?: string;
941
+ "currentPeriodStart"?: string;
942
+ "currentPhaseNo"?: number;
943
+ "description"?: string;
944
+ "fixedAmount"?: Amount;
945
+ "lastUpdateTime"?: string;
946
+ "maxAmountFloor"?: Amount;
947
+ "paymentAmount"?: Amount;
948
+ "paymentMethod"?: PaymentMethod;
949
+ "periodCount"?: number;
950
+ "periodRule"?: PeriodRule;
951
+ "periodType"?: PeriodType;
952
+ "relatedSubscriptionId"?: string;
953
+ "retryMode"?: string;
954
+ "status"?: SubscriptionStatus;
955
+ "subscriptionDescription"?: string;
956
+ "subscriptionEndTime"?: string;
957
+ "subscriptionExpiryTime"?: string;
958
+ "subscriptionId"?: string;
959
+ "subscriptionNotifyUrl"?: string;
960
+ "subscriptionOrderId"?: string;
961
+ "subscriptionStartTime": string;
962
+ "trialPlan"?: TrialPlan;
963
+ "trials"?: Array<Trial>;
964
+ }
965
+ /** Wire-format SubscriptionItem; property names match the API JSON. */
966
+ export interface SubscriptionItem {
967
+ "currentPeriodEnd"?: string;
968
+ "currentPeriodStart"?: string;
969
+ "itemId": string;
970
+ "priceId": string;
971
+ "quantity": number;
972
+ "recurringIntervalCount"?: number;
973
+ }
974
+ /** Wire values accepted by the API. */
975
+ export type SubscriptionStatus = 'ACTIVE' | 'CANCELLED' | 'TERMINATED';
976
+ /** Wire values accepted by the API. */
977
+ export type TakeType = 'ROLLING';
978
+ /** Wire-format TaxAddress; property names match the API JSON. */
979
+ export interface TaxAddress {
980
+ "city"?: string;
981
+ "country": string;
982
+ "county"?: string;
983
+ "district"?: string;
984
+ "line1"?: string;
985
+ "line2"?: string;
986
+ "postalCode"?: string;
987
+ "region"?: string;
988
+ }
989
+ /** Wire-format TaxBreakdown; property names match the API JSON. */
990
+ export interface TaxBreakdown {
991
+ "inclusive": boolean;
992
+ "taxAmount": Amount;
993
+ "taxRate": string;
994
+ "taxType": string;
995
+ "taxabilityReason": string;
996
+ "taxableAmount": Amount;
997
+ }
998
+ /** Wire-format TaxCalculatedAddress; property names match the API JSON. */
999
+ export interface TaxCalculatedAddress {
1000
+ "city"?: string;
1001
+ "country": string;
1002
+ "county"?: string;
1003
+ "district"?: string;
1004
+ "line1"?: string;
1005
+ "line2"?: string;
1006
+ "postalCode"?: string;
1007
+ "region"?: string;
1008
+ }
1009
+ /** Wire-format TaxCalculatedBusinessDetails; property names match the API JSON. */
1010
+ export interface TaxCalculatedBusinessDetails {
1011
+ "address"?: TaxCalculatedAddress;
1012
+ }
1013
+ /** Wire-format TaxCalculatedCustomerDetails; property names match the API JSON. */
1014
+ export interface TaxCalculatedCustomerDetails {
1015
+ "billingAddress"?: TaxCalculatedAddress;
1016
+ "businessDetails"?: TaxCalculatedBusinessDetails;
1017
+ "name"?: string;
1018
+ "shippingAddress"?: TaxCalculatedAddress;
1019
+ "taxExemptions"?: Array<TaxCalculatedExemption>;
1020
+ "taxIds"?: Array<TaxCalculatedTaxId>;
1021
+ }
1022
+ /** Wire-format TaxCalculatedExemption; property names match the API JSON. */
1023
+ export interface TaxCalculatedExemption {
1024
+ "certificateNumber": string;
1025
+ "effectiveFrom"?: string;
1026
+ "exemptionType": string;
1027
+ "jurisdiction": TaxCalculatedExemptionJurisdiction;
1028
+ }
1029
+ /** Wire-format TaxCalculatedExemptionJurisdiction; property names match the API JSON. */
1030
+ export interface TaxCalculatedExemptionJurisdiction {
1031
+ "city"?: string;
1032
+ "country": string;
1033
+ "region"?: string;
1034
+ }
1035
+ /** Wire-format TaxCalculatedLineItem; property names match the API JSON. */
1036
+ export interface TaxCalculatedLineItem {
1037
+ "amount": Amount;
1038
+ "goodsReferenceId": string;
1039
+ "quantity": number;
1040
+ "taxAmount": Amount;
1041
+ "taxBehavior": string;
1042
+ "taxBreakdown": Array<TaxBreakdown>;
1043
+ "taxCode"?: string;
1044
+ }
1045
+ /** Wire-format TaxCalculatedShipFromDetails; property names match the API JSON. */
1046
+ export interface TaxCalculatedShipFromDetails {
1047
+ "address": TaxCalculatedAddress;
1048
+ }
1049
+ /** Wire-format TaxCalculatedShippingCost; property names match the API JSON. */
1050
+ export interface TaxCalculatedShippingCost {
1051
+ "amount": Amount;
1052
+ "taxAmount"?: Amount;
1053
+ "taxBreakdown"?: Array<TaxBreakdown>;
1054
+ }
1055
+ /** Wire-format TaxCalculatedTaxId; property names match the API JSON. */
1056
+ export interface TaxCalculatedTaxId {
1057
+ "country": string;
1058
+ "region"?: string;
1059
+ "value": string;
1060
+ }
1061
+ /** Wire-format TaxHeadOffice; property names match the API JSON. */
1062
+ export interface TaxHeadOffice {
1063
+ "address": TaxAddress;
1064
+ }
1065
+ /** Wire-format TaxJurisdiction; property names match the API JSON. */
1066
+ export interface TaxJurisdiction {
1067
+ "city"?: string;
1068
+ "country": string;
1069
+ "region"?: string;
1070
+ }
1071
+ /** Wire values accepted by the API. */
1072
+ export type TerminalType = 'WEB' | 'WAP' | 'APP' | 'MINI_APP';
1073
+ /** Wire-format ThreeDSResult; property names match the API JSON. */
1074
+ export interface ThreeDSResult {
1075
+ "cavv"?: string;
1076
+ "challengeCancel"?: string;
1077
+ "challenged"?: boolean;
1078
+ "dsTransactionId"?: string;
1079
+ "eci"?: string;
1080
+ "exemptionType"?: string;
1081
+ "liabilityShift"?: number;
1082
+ "paResStatus"?: string;
1083
+ "threeDSOffered"?: boolean;
1084
+ "threeDSVersion"?: string;
1085
+ "threeDStransactionStatusReason"?: string;
1086
+ "xid"?: string;
1087
+ }
1088
+ /** Wire-format Tier; property names match the API JSON. */
1089
+ export interface Tier {
1090
+ "flatAmount"?: Amount;
1091
+ "unitAmount"?: Amount;
1092
+ "upTo"?: number;
1093
+ }
1094
+ /** Wire values accepted by the API. */
1095
+ export type TransactionStatusType = 'SUCCESS' | 'FAIL' | 'PROCESSING' | 'CANCELLED' | 'PENDING';
1096
+ /** Wire-format TransferFromDetail; property names match the API JSON. */
1097
+ export interface TransferFromDetail {
1098
+ "transferFromAmount": Amount;
1099
+ "transferFromMethod": PaymentMethod;
1100
+ }
1101
+ /** Wire-format TransferToDetail; property names match the API JSON. */
1102
+ export interface TransferToDetail {
1103
+ "actualTransferToAmount"?: Amount;
1104
+ "feeAmount"?: Amount;
1105
+ "purposeCode": string;
1106
+ "transferNotifyUrl"?: string;
1107
+ "transferRemark"?: string;
1108
+ "transferToCurrency": string;
1109
+ "transferToMethod": PaymentMethod;
1110
+ }
1111
+ /** Wire-format Transit; property names match the API JSON. */
1112
+ export interface Transit {
1113
+ "agentCode"?: string;
1114
+ "agentName"?: string;
1115
+ "ancillaryData"?: AncillaryData;
1116
+ "legs"?: Array<Leg>;
1117
+ "passengers"?: Array<Passenger>;
1118
+ "restrictedTicketIndicator"?: string;
1119
+ "ticketIssuerCode"?: string;
1120
+ "ticketNumber"?: string;
1121
+ "transitType"?: TransitType;
1122
+ }
1123
+ /** Wire values accepted by the API. */
1124
+ export type TransitType = 'FLIGHT' | 'TRAIN' | 'CRUISE' | 'COACH';
1125
+ /** Wire-format Trial; property names match the API JSON. */
1126
+ export interface Trial {
1127
+ "trialAmount"?: Amount;
1128
+ "trialEndPeriod"?: number;
1129
+ "trialPeriod"?: number;
1130
+ "trialStartPeriod"?: number;
1131
+ }
1132
+ /** Wire-format TrialPhase; property names match the API JSON. */
1133
+ export interface TrialPhase {
1134
+ "phaseNo": number;
1135
+ "trialAmount": Amount;
1136
+ }
1137
+ /** Wire-format TrialPlan; property names match the API JSON. */
1138
+ export interface TrialPlan {
1139
+ "freeTrialDays"?: number;
1140
+ "phases"?: Array<TrialPhase>;
1141
+ "trialEndTime"?: string;
1142
+ }
1143
+ /** Wire-format UserName; property names match the API JSON. */
1144
+ export interface UserName {
1145
+ "firstName"?: string;
1146
+ "fullName"?: string;
1147
+ "lastName"?: string;
1148
+ "middleName"?: string;
1149
+ }
1150
+ /** Wire-format Wallet; property names match the API JSON. */
1151
+ export interface Wallet {
1152
+ "accountHolderName"?: UserName;
1153
+ "accountNo"?: string;
1154
+ "billingAddress"?: Address;
1155
+ "email"?: string;
1156
+ "phoneNo"?: string;
1157
+ "token"?: string;
1158
+ "tokenExpiryTime"?: string;
1159
+ }