@moovio/sdk 0.3.6 → 0.4.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.
Files changed (738) hide show
  1. package/README.md +62 -46
  2. package/docs/sdks/{billing → feeplans}/README.md +199 -17
  3. package/docs/sdks/transfers/README.md +17 -3
  4. package/funcs/accountsAssignCountries.d.ts +2 -1
  5. package/funcs/accountsAssignCountries.d.ts.map +1 -1
  6. package/funcs/accountsAssignCountries.js +11 -7
  7. package/funcs/accountsAssignCountries.js.map +1 -1
  8. package/funcs/accountsCreate.d.ts +2 -1
  9. package/funcs/accountsCreate.d.ts.map +1 -1
  10. package/funcs/accountsCreate.js +11 -7
  11. package/funcs/accountsCreate.js.map +1 -1
  12. package/funcs/accountsDisconnect.d.ts +2 -1
  13. package/funcs/accountsDisconnect.d.ts.map +1 -1
  14. package/funcs/accountsDisconnect.js +11 -7
  15. package/funcs/accountsDisconnect.js.map +1 -1
  16. package/funcs/accountsGet.d.ts +2 -1
  17. package/funcs/accountsGet.d.ts.map +1 -1
  18. package/funcs/accountsGet.js +11 -7
  19. package/funcs/accountsGet.js.map +1 -1
  20. package/funcs/accountsGetCountries.d.ts +2 -1
  21. package/funcs/accountsGetCountries.d.ts.map +1 -1
  22. package/funcs/accountsGetCountries.js +11 -7
  23. package/funcs/accountsGetCountries.js.map +1 -1
  24. package/funcs/accountsGetMerchantProcessingAgreement.d.ts +2 -1
  25. package/funcs/accountsGetMerchantProcessingAgreement.d.ts.map +1 -1
  26. package/funcs/accountsGetMerchantProcessingAgreement.js +11 -7
  27. package/funcs/accountsGetMerchantProcessingAgreement.js.map +1 -1
  28. package/funcs/accountsGetTermsOfServiceToken.d.ts +2 -1
  29. package/funcs/accountsGetTermsOfServiceToken.d.ts.map +1 -1
  30. package/funcs/accountsGetTermsOfServiceToken.js +11 -7
  31. package/funcs/accountsGetTermsOfServiceToken.js.map +1 -1
  32. package/funcs/accountsList.d.ts +2 -1
  33. package/funcs/accountsList.d.ts.map +1 -1
  34. package/funcs/accountsList.js +11 -7
  35. package/funcs/accountsList.js.map +1 -1
  36. package/funcs/accountsUpdate.d.ts +2 -1
  37. package/funcs/accountsUpdate.d.ts.map +1 -1
  38. package/funcs/accountsUpdate.js +11 -7
  39. package/funcs/accountsUpdate.js.map +1 -1
  40. package/funcs/adjustmentsGet.d.ts +2 -1
  41. package/funcs/adjustmentsGet.d.ts.map +1 -1
  42. package/funcs/adjustmentsGet.js +11 -7
  43. package/funcs/adjustmentsGet.js.map +1 -1
  44. package/funcs/adjustmentsList.d.ts +2 -1
  45. package/funcs/adjustmentsList.d.ts.map +1 -1
  46. package/funcs/adjustmentsList.js +11 -7
  47. package/funcs/adjustmentsList.js.map +1 -1
  48. package/funcs/applePayCreateSession.d.ts +2 -1
  49. package/funcs/applePayCreateSession.d.ts.map +1 -1
  50. package/funcs/applePayCreateSession.js +11 -7
  51. package/funcs/applePayCreateSession.js.map +1 -1
  52. package/funcs/applePayGetMerchantDomains.d.ts +2 -1
  53. package/funcs/applePayGetMerchantDomains.d.ts.map +1 -1
  54. package/funcs/applePayGetMerchantDomains.js +11 -7
  55. package/funcs/applePayGetMerchantDomains.js.map +1 -1
  56. package/funcs/applePayLinkToken.d.ts +2 -1
  57. package/funcs/applePayLinkToken.d.ts.map +1 -1
  58. package/funcs/applePayLinkToken.js +11 -7
  59. package/funcs/applePayLinkToken.js.map +1 -1
  60. package/funcs/applePayRegisterMerchantDomains.d.ts +2 -1
  61. package/funcs/applePayRegisterMerchantDomains.d.ts.map +1 -1
  62. package/funcs/applePayRegisterMerchantDomains.js +11 -7
  63. package/funcs/applePayRegisterMerchantDomains.js.map +1 -1
  64. package/funcs/applePayUpdateMerchantDomains.d.ts +2 -1
  65. package/funcs/applePayUpdateMerchantDomains.d.ts.map +1 -1
  66. package/funcs/applePayUpdateMerchantDomains.js +11 -7
  67. package/funcs/applePayUpdateMerchantDomains.js.map +1 -1
  68. package/funcs/authenticationCreateAccessToken.d.ts +2 -1
  69. package/funcs/authenticationCreateAccessToken.d.ts.map +1 -1
  70. package/funcs/authenticationCreateAccessToken.js +11 -7
  71. package/funcs/authenticationCreateAccessToken.js.map +1 -1
  72. package/funcs/authenticationRevokeAccessToken.d.ts +2 -1
  73. package/funcs/authenticationRevokeAccessToken.d.ts.map +1 -1
  74. package/funcs/authenticationRevokeAccessToken.js +11 -7
  75. package/funcs/authenticationRevokeAccessToken.js.map +1 -1
  76. package/funcs/avatarsGet.d.ts +2 -1
  77. package/funcs/avatarsGet.d.ts.map +1 -1
  78. package/funcs/avatarsGet.js +11 -7
  79. package/funcs/avatarsGet.js.map +1 -1
  80. package/funcs/bankAccountsCompleteMicroDeposits.d.ts +2 -1
  81. package/funcs/bankAccountsCompleteMicroDeposits.d.ts.map +1 -1
  82. package/funcs/bankAccountsCompleteMicroDeposits.js +11 -7
  83. package/funcs/bankAccountsCompleteMicroDeposits.js.map +1 -1
  84. package/funcs/bankAccountsCompleteVerification.d.ts +2 -1
  85. package/funcs/bankAccountsCompleteVerification.d.ts.map +1 -1
  86. package/funcs/bankAccountsCompleteVerification.js +11 -7
  87. package/funcs/bankAccountsCompleteVerification.js.map +1 -1
  88. package/funcs/bankAccountsDisable.d.ts +2 -1
  89. package/funcs/bankAccountsDisable.d.ts.map +1 -1
  90. package/funcs/bankAccountsDisable.js +11 -7
  91. package/funcs/bankAccountsDisable.js.map +1 -1
  92. package/funcs/bankAccountsGet.d.ts +2 -1
  93. package/funcs/bankAccountsGet.d.ts.map +1 -1
  94. package/funcs/bankAccountsGet.js +11 -7
  95. package/funcs/bankAccountsGet.js.map +1 -1
  96. package/funcs/bankAccountsGetVerification.d.ts +2 -1
  97. package/funcs/bankAccountsGetVerification.d.ts.map +1 -1
  98. package/funcs/bankAccountsGetVerification.js +11 -7
  99. package/funcs/bankAccountsGetVerification.js.map +1 -1
  100. package/funcs/bankAccountsInitiateMicroDeposits.d.ts +2 -1
  101. package/funcs/bankAccountsInitiateMicroDeposits.d.ts.map +1 -1
  102. package/funcs/bankAccountsInitiateMicroDeposits.js +11 -7
  103. package/funcs/bankAccountsInitiateMicroDeposits.js.map +1 -1
  104. package/funcs/bankAccountsInitiateVerification.d.ts +2 -1
  105. package/funcs/bankAccountsInitiateVerification.d.ts.map +1 -1
  106. package/funcs/bankAccountsInitiateVerification.js +11 -7
  107. package/funcs/bankAccountsInitiateVerification.js.map +1 -1
  108. package/funcs/bankAccountsLink.d.ts +2 -1
  109. package/funcs/bankAccountsLink.d.ts.map +1 -1
  110. package/funcs/bankAccountsLink.js +11 -7
  111. package/funcs/bankAccountsLink.js.map +1 -1
  112. package/funcs/bankAccountsList.d.ts +2 -1
  113. package/funcs/bankAccountsList.d.ts.map +1 -1
  114. package/funcs/bankAccountsList.js +11 -7
  115. package/funcs/bankAccountsList.js.map +1 -1
  116. package/funcs/brandingCreate.d.ts +2 -1
  117. package/funcs/brandingCreate.d.ts.map +1 -1
  118. package/funcs/brandingCreate.js +11 -7
  119. package/funcs/brandingCreate.js.map +1 -1
  120. package/funcs/brandingGet.d.ts +2 -1
  121. package/funcs/brandingGet.d.ts.map +1 -1
  122. package/funcs/brandingGet.js +11 -7
  123. package/funcs/brandingGet.js.map +1 -1
  124. package/funcs/brandingUpdate.d.ts +2 -1
  125. package/funcs/brandingUpdate.d.ts.map +1 -1
  126. package/funcs/brandingUpdate.js +11 -7
  127. package/funcs/brandingUpdate.js.map +1 -1
  128. package/funcs/brandingUpsert.d.ts +2 -1
  129. package/funcs/brandingUpsert.d.ts.map +1 -1
  130. package/funcs/brandingUpsert.js +11 -7
  131. package/funcs/brandingUpsert.js.map +1 -1
  132. package/funcs/capabilitiesDisable.d.ts +2 -1
  133. package/funcs/capabilitiesDisable.d.ts.map +1 -1
  134. package/funcs/capabilitiesDisable.js +11 -7
  135. package/funcs/capabilitiesDisable.js.map +1 -1
  136. package/funcs/capabilitiesGet.d.ts +2 -1
  137. package/funcs/capabilitiesGet.d.ts.map +1 -1
  138. package/funcs/capabilitiesGet.js +11 -7
  139. package/funcs/capabilitiesGet.js.map +1 -1
  140. package/funcs/capabilitiesList.d.ts +2 -1
  141. package/funcs/capabilitiesList.d.ts.map +1 -1
  142. package/funcs/capabilitiesList.js +11 -7
  143. package/funcs/capabilitiesList.js.map +1 -1
  144. package/funcs/capabilitiesRequest.d.ts +2 -1
  145. package/funcs/capabilitiesRequest.d.ts.map +1 -1
  146. package/funcs/capabilitiesRequest.js +11 -7
  147. package/funcs/capabilitiesRequest.js.map +1 -1
  148. package/funcs/cardIssuingGet.d.ts +2 -1
  149. package/funcs/cardIssuingGet.d.ts.map +1 -1
  150. package/funcs/cardIssuingGet.js +11 -7
  151. package/funcs/cardIssuingGet.js.map +1 -1
  152. package/funcs/cardIssuingGetFull.d.ts +2 -1
  153. package/funcs/cardIssuingGetFull.d.ts.map +1 -1
  154. package/funcs/cardIssuingGetFull.js +11 -7
  155. package/funcs/cardIssuingGetFull.js.map +1 -1
  156. package/funcs/cardIssuingList.d.ts +2 -1
  157. package/funcs/cardIssuingList.d.ts.map +1 -1
  158. package/funcs/cardIssuingList.js +11 -7
  159. package/funcs/cardIssuingList.js.map +1 -1
  160. package/funcs/cardIssuingRequest.d.ts +2 -1
  161. package/funcs/cardIssuingRequest.d.ts.map +1 -1
  162. package/funcs/cardIssuingRequest.js +11 -7
  163. package/funcs/cardIssuingRequest.js.map +1 -1
  164. package/funcs/cardIssuingUpdate.d.ts +2 -1
  165. package/funcs/cardIssuingUpdate.d.ts.map +1 -1
  166. package/funcs/cardIssuingUpdate.js +11 -7
  167. package/funcs/cardIssuingUpdate.js.map +1 -1
  168. package/funcs/cardsDisable.d.ts +2 -1
  169. package/funcs/cardsDisable.d.ts.map +1 -1
  170. package/funcs/cardsDisable.js +11 -7
  171. package/funcs/cardsDisable.js.map +1 -1
  172. package/funcs/cardsGet.d.ts +2 -1
  173. package/funcs/cardsGet.d.ts.map +1 -1
  174. package/funcs/cardsGet.js +11 -7
  175. package/funcs/cardsGet.js.map +1 -1
  176. package/funcs/cardsLink.d.ts +2 -1
  177. package/funcs/cardsLink.d.ts.map +1 -1
  178. package/funcs/cardsLink.js +11 -7
  179. package/funcs/cardsLink.js.map +1 -1
  180. package/funcs/cardsList.d.ts +2 -1
  181. package/funcs/cardsList.d.ts.map +1 -1
  182. package/funcs/cardsList.js +11 -7
  183. package/funcs/cardsList.js.map +1 -1
  184. package/funcs/cardsUpdate.d.ts +2 -1
  185. package/funcs/cardsUpdate.d.ts.map +1 -1
  186. package/funcs/cardsUpdate.js +11 -7
  187. package/funcs/cardsUpdate.js.map +1 -1
  188. package/funcs/disputesAccept.d.ts +2 -1
  189. package/funcs/disputesAccept.d.ts.map +1 -1
  190. package/funcs/disputesAccept.js +11 -7
  191. package/funcs/disputesAccept.js.map +1 -1
  192. package/funcs/disputesDeleteEvidence.d.ts +2 -1
  193. package/funcs/disputesDeleteEvidence.d.ts.map +1 -1
  194. package/funcs/disputesDeleteEvidence.js +11 -7
  195. package/funcs/disputesDeleteEvidence.js.map +1 -1
  196. package/funcs/disputesGet.d.ts +2 -1
  197. package/funcs/disputesGet.d.ts.map +1 -1
  198. package/funcs/disputesGet.js +11 -7
  199. package/funcs/disputesGet.js.map +1 -1
  200. package/funcs/disputesGetEvidence.d.ts +2 -1
  201. package/funcs/disputesGetEvidence.d.ts.map +1 -1
  202. package/funcs/disputesGetEvidence.js +11 -7
  203. package/funcs/disputesGetEvidence.js.map +1 -1
  204. package/funcs/disputesGetEvidenceData.d.ts +2 -1
  205. package/funcs/disputesGetEvidenceData.d.ts.map +1 -1
  206. package/funcs/disputesGetEvidenceData.js +11 -7
  207. package/funcs/disputesGetEvidenceData.js.map +1 -1
  208. package/funcs/disputesList.d.ts +2 -1
  209. package/funcs/disputesList.d.ts.map +1 -1
  210. package/funcs/disputesList.js +11 -7
  211. package/funcs/disputesList.js.map +1 -1
  212. package/funcs/disputesListEvidence.d.ts +2 -1
  213. package/funcs/disputesListEvidence.d.ts.map +1 -1
  214. package/funcs/disputesListEvidence.js +11 -7
  215. package/funcs/disputesListEvidence.js.map +1 -1
  216. package/funcs/disputesSubmitEvidence.d.ts +2 -1
  217. package/funcs/disputesSubmitEvidence.d.ts.map +1 -1
  218. package/funcs/disputesSubmitEvidence.js +11 -7
  219. package/funcs/disputesSubmitEvidence.js.map +1 -1
  220. package/funcs/disputesUpdateEvidence.d.ts +2 -1
  221. package/funcs/disputesUpdateEvidence.d.ts.map +1 -1
  222. package/funcs/disputesUpdateEvidence.js +11 -7
  223. package/funcs/disputesUpdateEvidence.js.map +1 -1
  224. package/funcs/disputesUploadEvidenceFile.d.ts +2 -1
  225. package/funcs/disputesUploadEvidenceFile.d.ts.map +1 -1
  226. package/funcs/disputesUploadEvidenceFile.js +11 -7
  227. package/funcs/disputesUploadEvidenceFile.js.map +1 -1
  228. package/funcs/disputesUploadEvidenceText.d.ts +2 -1
  229. package/funcs/disputesUploadEvidenceText.d.ts.map +1 -1
  230. package/funcs/disputesUploadEvidenceText.js +11 -7
  231. package/funcs/disputesUploadEvidenceText.js.map +1 -1
  232. package/funcs/endToEndEncryptionGenerateKey.d.ts +2 -1
  233. package/funcs/endToEndEncryptionGenerateKey.d.ts.map +1 -1
  234. package/funcs/endToEndEncryptionGenerateKey.js +10 -6
  235. package/funcs/endToEndEncryptionGenerateKey.js.map +1 -1
  236. package/funcs/endToEndEncryptionTestEncryptedToken.d.ts +2 -1
  237. package/funcs/endToEndEncryptionTestEncryptedToken.d.ts.map +1 -1
  238. package/funcs/endToEndEncryptionTestEncryptedToken.js +11 -7
  239. package/funcs/endToEndEncryptionTestEncryptedToken.js.map +1 -1
  240. package/funcs/enrichedAddressGet.d.ts +2 -1
  241. package/funcs/enrichedAddressGet.d.ts.map +1 -1
  242. package/funcs/enrichedAddressGet.js +11 -7
  243. package/funcs/enrichedAddressGet.js.map +1 -1
  244. package/funcs/enrichedProfileGet.d.ts +2 -1
  245. package/funcs/enrichedProfileGet.d.ts.map +1 -1
  246. package/funcs/enrichedProfileGet.js +11 -7
  247. package/funcs/enrichedProfileGet.js.map +1 -1
  248. package/funcs/{billingCreateFeePlanAgreements.d.ts → feePlansCreateFeePlanAgreements.d.ts} +3 -2
  249. package/funcs/feePlansCreateFeePlanAgreements.d.ts.map +1 -0
  250. package/funcs/{billingCreateFeePlanAgreements.js → feePlansCreateFeePlanAgreements.js} +13 -9
  251. package/funcs/feePlansCreateFeePlanAgreements.js.map +1 -0
  252. package/funcs/{billingListFeePlanAgreements.d.ts → feePlansListFeePlanAgreements.d.ts} +3 -2
  253. package/funcs/feePlansListFeePlanAgreements.d.ts.map +1 -0
  254. package/funcs/{billingListFeePlanAgreements.js → feePlansListFeePlanAgreements.js} +13 -9
  255. package/funcs/feePlansListFeePlanAgreements.js.map +1 -0
  256. package/funcs/{billingListFeePlans.d.ts → feePlansListFeePlans.d.ts} +3 -2
  257. package/funcs/feePlansListFeePlans.d.ts.map +1 -0
  258. package/funcs/{billingListFeePlans.js → feePlansListFeePlans.js} +13 -9
  259. package/funcs/feePlansListFeePlans.js.map +1 -0
  260. package/funcs/feePlansListFeesFetch.d.ts +16 -0
  261. package/funcs/feePlansListFeesFetch.d.ts.map +1 -0
  262. package/funcs/feePlansListFeesFetch.js +126 -0
  263. package/funcs/feePlansListFeesFetch.js.map +1 -0
  264. package/funcs/{billingListPartnerPricing.d.ts → feePlansListPartnerPricing.d.ts} +3 -2
  265. package/funcs/feePlansListPartnerPricing.d.ts.map +1 -0
  266. package/funcs/{billingListPartnerPricing.js → feePlansListPartnerPricing.js} +13 -9
  267. package/funcs/feePlansListPartnerPricing.js.map +1 -0
  268. package/funcs/{billingListPartnerPricingAgreements.d.ts → feePlansListPartnerPricingAgreements.d.ts} +3 -2
  269. package/funcs/feePlansListPartnerPricingAgreements.d.ts.map +1 -0
  270. package/funcs/{billingListPartnerPricingAgreements.js → feePlansListPartnerPricingAgreements.js} +13 -9
  271. package/funcs/feePlansListPartnerPricingAgreements.js.map +1 -0
  272. package/funcs/feePlansRetrieveFees.d.ts +16 -0
  273. package/funcs/feePlansRetrieveFees.d.ts.map +1 -0
  274. package/funcs/feePlansRetrieveFees.js +132 -0
  275. package/funcs/feePlansRetrieveFees.js.map +1 -0
  276. package/funcs/filesGet.d.ts +2 -1
  277. package/funcs/filesGet.d.ts.map +1 -1
  278. package/funcs/filesGet.js +11 -7
  279. package/funcs/filesGet.js.map +1 -1
  280. package/funcs/filesList.d.ts +2 -1
  281. package/funcs/filesList.d.ts.map +1 -1
  282. package/funcs/filesList.js +11 -7
  283. package/funcs/filesList.js.map +1 -1
  284. package/funcs/filesUpload.d.ts +2 -1
  285. package/funcs/filesUpload.d.ts.map +1 -1
  286. package/funcs/filesUpload.js +11 -7
  287. package/funcs/filesUpload.js.map +1 -1
  288. package/funcs/industriesList.d.ts +2 -1
  289. package/funcs/industriesList.d.ts.map +1 -1
  290. package/funcs/industriesList.js +10 -6
  291. package/funcs/industriesList.js.map +1 -1
  292. package/funcs/institutionsSearch.d.ts +2 -1
  293. package/funcs/institutionsSearch.d.ts.map +1 -1
  294. package/funcs/institutionsSearch.js +11 -7
  295. package/funcs/institutionsSearch.js.map +1 -1
  296. package/funcs/issuingTransactionsGet.d.ts +2 -1
  297. package/funcs/issuingTransactionsGet.d.ts.map +1 -1
  298. package/funcs/issuingTransactionsGet.js +11 -7
  299. package/funcs/issuingTransactionsGet.js.map +1 -1
  300. package/funcs/issuingTransactionsGetAuthorization.d.ts +2 -1
  301. package/funcs/issuingTransactionsGetAuthorization.d.ts.map +1 -1
  302. package/funcs/issuingTransactionsGetAuthorization.js +11 -7
  303. package/funcs/issuingTransactionsGetAuthorization.js.map +1 -1
  304. package/funcs/issuingTransactionsList.d.ts +2 -1
  305. package/funcs/issuingTransactionsList.d.ts.map +1 -1
  306. package/funcs/issuingTransactionsList.js +11 -7
  307. package/funcs/issuingTransactionsList.js.map +1 -1
  308. package/funcs/issuingTransactionsListAuthorizationEvents.d.ts +2 -1
  309. package/funcs/issuingTransactionsListAuthorizationEvents.d.ts.map +1 -1
  310. package/funcs/issuingTransactionsListAuthorizationEvents.js +11 -7
  311. package/funcs/issuingTransactionsListAuthorizationEvents.js.map +1 -1
  312. package/funcs/issuingTransactionsListAuthorizations.d.ts +2 -1
  313. package/funcs/issuingTransactionsListAuthorizations.d.ts.map +1 -1
  314. package/funcs/issuingTransactionsListAuthorizations.js +11 -7
  315. package/funcs/issuingTransactionsListAuthorizations.js.map +1 -1
  316. package/funcs/onboardingCreateInvite.d.ts +2 -1
  317. package/funcs/onboardingCreateInvite.d.ts.map +1 -1
  318. package/funcs/onboardingCreateInvite.js +11 -7
  319. package/funcs/onboardingCreateInvite.js.map +1 -1
  320. package/funcs/onboardingGetInvite.d.ts +2 -1
  321. package/funcs/onboardingGetInvite.d.ts.map +1 -1
  322. package/funcs/onboardingGetInvite.js +11 -7
  323. package/funcs/onboardingGetInvite.js.map +1 -1
  324. package/funcs/onboardingListInvites.d.ts +2 -1
  325. package/funcs/onboardingListInvites.d.ts.map +1 -1
  326. package/funcs/onboardingListInvites.js +10 -6
  327. package/funcs/onboardingListInvites.js.map +1 -1
  328. package/funcs/onboardingRevokeInvite.d.ts +2 -1
  329. package/funcs/onboardingRevokeInvite.d.ts.map +1 -1
  330. package/funcs/onboardingRevokeInvite.js +11 -7
  331. package/funcs/onboardingRevokeInvite.js.map +1 -1
  332. package/funcs/paymentLinksCreate.d.ts +2 -1
  333. package/funcs/paymentLinksCreate.d.ts.map +1 -1
  334. package/funcs/paymentLinksCreate.js +11 -7
  335. package/funcs/paymentLinksCreate.js.map +1 -1
  336. package/funcs/paymentLinksDisable.d.ts +2 -1
  337. package/funcs/paymentLinksDisable.d.ts.map +1 -1
  338. package/funcs/paymentLinksDisable.js +11 -7
  339. package/funcs/paymentLinksDisable.js.map +1 -1
  340. package/funcs/paymentLinksGet.d.ts +2 -1
  341. package/funcs/paymentLinksGet.d.ts.map +1 -1
  342. package/funcs/paymentLinksGet.js +11 -7
  343. package/funcs/paymentLinksGet.js.map +1 -1
  344. package/funcs/paymentLinksGetQRCode.d.ts +2 -1
  345. package/funcs/paymentLinksGetQRCode.d.ts.map +1 -1
  346. package/funcs/paymentLinksGetQRCode.js +11 -7
  347. package/funcs/paymentLinksGetQRCode.js.map +1 -1
  348. package/funcs/paymentLinksList.d.ts +2 -1
  349. package/funcs/paymentLinksList.d.ts.map +1 -1
  350. package/funcs/paymentLinksList.js +11 -7
  351. package/funcs/paymentLinksList.js.map +1 -1
  352. package/funcs/paymentLinksUpdate.d.ts +2 -1
  353. package/funcs/paymentLinksUpdate.d.ts.map +1 -1
  354. package/funcs/paymentLinksUpdate.js +11 -7
  355. package/funcs/paymentLinksUpdate.js.map +1 -1
  356. package/funcs/paymentMethodsGet.d.ts +2 -1
  357. package/funcs/paymentMethodsGet.d.ts.map +1 -1
  358. package/funcs/paymentMethodsGet.js +11 -7
  359. package/funcs/paymentMethodsGet.js.map +1 -1
  360. package/funcs/paymentMethodsList.d.ts +2 -1
  361. package/funcs/paymentMethodsList.d.ts.map +1 -1
  362. package/funcs/paymentMethodsList.js +11 -7
  363. package/funcs/paymentMethodsList.js.map +1 -1
  364. package/funcs/pingPing.d.ts +2 -1
  365. package/funcs/pingPing.d.ts.map +1 -1
  366. package/funcs/pingPing.js +10 -6
  367. package/funcs/pingPing.js.map +1 -1
  368. package/funcs/representativesCreate.d.ts +2 -1
  369. package/funcs/representativesCreate.d.ts.map +1 -1
  370. package/funcs/representativesCreate.js +11 -7
  371. package/funcs/representativesCreate.js.map +1 -1
  372. package/funcs/representativesDelete.d.ts +2 -1
  373. package/funcs/representativesDelete.d.ts.map +1 -1
  374. package/funcs/representativesDelete.js +11 -7
  375. package/funcs/representativesDelete.js.map +1 -1
  376. package/funcs/representativesGet.d.ts +2 -1
  377. package/funcs/representativesGet.d.ts.map +1 -1
  378. package/funcs/representativesGet.js +11 -7
  379. package/funcs/representativesGet.js.map +1 -1
  380. package/funcs/representativesList.d.ts +2 -1
  381. package/funcs/representativesList.d.ts.map +1 -1
  382. package/funcs/representativesList.js +11 -7
  383. package/funcs/representativesList.js.map +1 -1
  384. package/funcs/representativesUpdate.d.ts +2 -1
  385. package/funcs/representativesUpdate.d.ts.map +1 -1
  386. package/funcs/representativesUpdate.js +11 -7
  387. package/funcs/representativesUpdate.js.map +1 -1
  388. package/funcs/schedulingCancel.d.ts +2 -1
  389. package/funcs/schedulingCancel.d.ts.map +1 -1
  390. package/funcs/schedulingCancel.js +11 -7
  391. package/funcs/schedulingCancel.js.map +1 -1
  392. package/funcs/schedulingCreate.d.ts +2 -1
  393. package/funcs/schedulingCreate.d.ts.map +1 -1
  394. package/funcs/schedulingCreate.js +11 -7
  395. package/funcs/schedulingCreate.js.map +1 -1
  396. package/funcs/schedulingGet.d.ts +2 -1
  397. package/funcs/schedulingGet.d.ts.map +1 -1
  398. package/funcs/schedulingGet.js +11 -7
  399. package/funcs/schedulingGet.js.map +1 -1
  400. package/funcs/schedulingGetOccurrance.d.ts +2 -1
  401. package/funcs/schedulingGetOccurrance.d.ts.map +1 -1
  402. package/funcs/schedulingGetOccurrance.js +11 -7
  403. package/funcs/schedulingGetOccurrance.js.map +1 -1
  404. package/funcs/schedulingList.d.ts +2 -1
  405. package/funcs/schedulingList.d.ts.map +1 -1
  406. package/funcs/schedulingList.js +11 -7
  407. package/funcs/schedulingList.js.map +1 -1
  408. package/funcs/schedulingUpdate.d.ts +2 -1
  409. package/funcs/schedulingUpdate.d.ts.map +1 -1
  410. package/funcs/schedulingUpdate.js +11 -7
  411. package/funcs/schedulingUpdate.js.map +1 -1
  412. package/funcs/sweepsCreateConfig.d.ts +2 -1
  413. package/funcs/sweepsCreateConfig.d.ts.map +1 -1
  414. package/funcs/sweepsCreateConfig.js +11 -7
  415. package/funcs/sweepsCreateConfig.js.map +1 -1
  416. package/funcs/sweepsGet.d.ts +2 -1
  417. package/funcs/sweepsGet.d.ts.map +1 -1
  418. package/funcs/sweepsGet.js +11 -7
  419. package/funcs/sweepsGet.js.map +1 -1
  420. package/funcs/sweepsGetConfig.d.ts +2 -1
  421. package/funcs/sweepsGetConfig.d.ts.map +1 -1
  422. package/funcs/sweepsGetConfig.js +11 -7
  423. package/funcs/sweepsGetConfig.js.map +1 -1
  424. package/funcs/sweepsList.d.ts +2 -1
  425. package/funcs/sweepsList.d.ts.map +1 -1
  426. package/funcs/sweepsList.js +11 -7
  427. package/funcs/sweepsList.js.map +1 -1
  428. package/funcs/sweepsListConfigs.d.ts +2 -1
  429. package/funcs/sweepsListConfigs.d.ts.map +1 -1
  430. package/funcs/sweepsListConfigs.js +11 -7
  431. package/funcs/sweepsListConfigs.js.map +1 -1
  432. package/funcs/sweepsUpdateConfig.d.ts +2 -1
  433. package/funcs/sweepsUpdateConfig.d.ts.map +1 -1
  434. package/funcs/sweepsUpdateConfig.js +11 -7
  435. package/funcs/sweepsUpdateConfig.js.map +1 -1
  436. package/funcs/transfersCreate.d.ts +2 -1
  437. package/funcs/transfersCreate.d.ts.map +1 -1
  438. package/funcs/transfersCreate.js +11 -7
  439. package/funcs/transfersCreate.js.map +1 -1
  440. package/funcs/transfersCreateReversal.d.ts +2 -1
  441. package/funcs/transfersCreateReversal.d.ts.map +1 -1
  442. package/funcs/transfersCreateReversal.js +11 -7
  443. package/funcs/transfersCreateReversal.js.map +1 -1
  444. package/funcs/transfersGenerateOptions.d.ts +3 -1
  445. package/funcs/transfersGenerateOptions.d.ts.map +1 -1
  446. package/funcs/transfersGenerateOptions.js +20 -6
  447. package/funcs/transfersGenerateOptions.js.map +1 -1
  448. package/funcs/transfersGet.d.ts +2 -1
  449. package/funcs/transfersGet.d.ts.map +1 -1
  450. package/funcs/transfersGet.js +11 -7
  451. package/funcs/transfersGet.js.map +1 -1
  452. package/funcs/transfersGetRefund.d.ts +2 -1
  453. package/funcs/transfersGetRefund.d.ts.map +1 -1
  454. package/funcs/transfersGetRefund.js +11 -7
  455. package/funcs/transfersGetRefund.js.map +1 -1
  456. package/funcs/transfersInitiateRefund.d.ts +2 -1
  457. package/funcs/transfersInitiateRefund.d.ts.map +1 -1
  458. package/funcs/transfersInitiateRefund.js +11 -7
  459. package/funcs/transfersInitiateRefund.js.map +1 -1
  460. package/funcs/transfersList.d.ts +2 -1
  461. package/funcs/transfersList.d.ts.map +1 -1
  462. package/funcs/transfersList.js +11 -7
  463. package/funcs/transfersList.js.map +1 -1
  464. package/funcs/transfersListRefunds.d.ts +2 -1
  465. package/funcs/transfersListRefunds.d.ts.map +1 -1
  466. package/funcs/transfersListRefunds.js +11 -7
  467. package/funcs/transfersListRefunds.js.map +1 -1
  468. package/funcs/transfersUpdate.d.ts +2 -1
  469. package/funcs/transfersUpdate.d.ts.map +1 -1
  470. package/funcs/transfersUpdate.js +11 -7
  471. package/funcs/transfersUpdate.js.map +1 -1
  472. package/funcs/underwritingGet.d.ts +2 -1
  473. package/funcs/underwritingGet.d.ts.map +1 -1
  474. package/funcs/underwritingGet.js +11 -7
  475. package/funcs/underwritingGet.js.map +1 -1
  476. package/funcs/underwritingUpsert.d.ts +2 -1
  477. package/funcs/underwritingUpsert.d.ts.map +1 -1
  478. package/funcs/underwritingUpsert.js +11 -7
  479. package/funcs/underwritingUpsert.js.map +1 -1
  480. package/funcs/walletTransactionsGet.d.ts +2 -1
  481. package/funcs/walletTransactionsGet.d.ts.map +1 -1
  482. package/funcs/walletTransactionsGet.js +11 -7
  483. package/funcs/walletTransactionsGet.js.map +1 -1
  484. package/funcs/walletTransactionsList.d.ts +2 -1
  485. package/funcs/walletTransactionsList.d.ts.map +1 -1
  486. package/funcs/walletTransactionsList.js +11 -7
  487. package/funcs/walletTransactionsList.js.map +1 -1
  488. package/funcs/walletsGet.d.ts +2 -1
  489. package/funcs/walletsGet.d.ts.map +1 -1
  490. package/funcs/walletsGet.js +11 -7
  491. package/funcs/walletsGet.js.map +1 -1
  492. package/funcs/walletsList.d.ts +2 -1
  493. package/funcs/walletsList.d.ts.map +1 -1
  494. package/funcs/walletsList.js +11 -7
  495. package/funcs/walletsList.js.map +1 -1
  496. package/jsr.json +1 -1
  497. package/lib/config.d.ts +3 -3
  498. package/lib/config.js +3 -3
  499. package/lib/sdks.d.ts +1 -1
  500. package/lib/sdks.d.ts.map +1 -1
  501. package/models/components/createtransferoptions.d.ts +35 -0
  502. package/models/components/createtransferoptions.d.ts.map +1 -0
  503. package/models/components/createtransferoptions.js +75 -0
  504. package/models/components/createtransferoptions.js.map +1 -0
  505. package/models/components/feemodel.d.ts +3 -0
  506. package/models/components/feemodel.d.ts.map +1 -1
  507. package/models/components/feemodel.js +1 -0
  508. package/models/components/feemodel.js.map +1 -1
  509. package/models/components/generatedby.d.ts +33 -0
  510. package/models/components/generatedby.d.ts.map +1 -0
  511. package/models/components/generatedby.js +82 -0
  512. package/models/components/generatedby.js.map +1 -0
  513. package/models/components/generatedbyaccountid.d.ts +29 -0
  514. package/models/components/generatedbyaccountid.d.ts.map +1 -0
  515. package/models/components/generatedbyaccountid.js +78 -0
  516. package/models/components/generatedbyaccountid.js.map +1 -0
  517. package/models/components/generatedbybankaccountid.d.ts +29 -0
  518. package/models/components/generatedbybankaccountid.d.ts.map +1 -0
  519. package/models/components/generatedbybankaccountid.js +78 -0
  520. package/models/components/generatedbybankaccountid.js.map +1 -0
  521. package/models/components/generatedbycardid.d.ts +29 -0
  522. package/models/components/generatedbycardid.d.ts.map +1 -0
  523. package/models/components/generatedbycardid.js +78 -0
  524. package/models/components/generatedbycardid.js.map +1 -0
  525. package/models/components/generatedbydisputeid.d.ts +29 -0
  526. package/models/components/generatedbydisputeid.d.ts.map +1 -0
  527. package/models/components/generatedbydisputeid.js +78 -0
  528. package/models/components/generatedbydisputeid.js.map +1 -0
  529. package/models/components/generatedbytransferid.d.ts +29 -0
  530. package/models/components/generatedbytransferid.d.ts.map +1 -0
  531. package/models/components/generatedbytransferid.js +69 -0
  532. package/models/components/generatedbytransferid.js.map +1 -0
  533. package/models/components/incurredfee.d.ts +49 -0
  534. package/models/components/incurredfee.d.ts.map +1 -0
  535. package/models/components/incurredfee.js +84 -0
  536. package/models/components/incurredfee.js.map +1 -0
  537. package/models/components/index.d.ts +10 -0
  538. package/models/components/index.d.ts.map +1 -1
  539. package/models/components/index.js +10 -0
  540. package/models/components/index.js.map +1 -1
  541. package/models/components/listfeesfetchrequest.d.ts +32 -0
  542. package/models/components/listfeesfetchrequest.d.ts.map +1 -0
  543. package/models/components/listfeesfetchrequest.js +69 -0
  544. package/models/components/listfeesfetchrequest.js.map +1 -0
  545. package/models/components/sourcedestinationoptions.d.ts +31 -0
  546. package/models/components/sourcedestinationoptions.d.ts.map +1 -0
  547. package/models/components/sourcedestinationoptions.js +71 -0
  548. package/models/components/sourcedestinationoptions.js.map +1 -0
  549. package/models/operations/createtransferoptions.d.ts +0 -21
  550. package/models/operations/createtransferoptions.d.ts.map +1 -1
  551. package/models/operations/createtransferoptions.js +1 -24
  552. package/models/operations/createtransferoptions.js.map +1 -1
  553. package/models/operations/index.d.ts +2 -0
  554. package/models/operations/index.d.ts.map +1 -1
  555. package/models/operations/index.js +2 -0
  556. package/models/operations/index.js.map +1 -1
  557. package/models/operations/listfeesfetch.d.ts +101 -0
  558. package/models/operations/listfeesfetch.d.ts.map +1 -0
  559. package/models/operations/listfeesfetch.js +157 -0
  560. package/models/operations/listfeesfetch.js.map +1 -0
  561. package/models/operations/retrievefees.d.ts +123 -0
  562. package/models/operations/retrievefees.d.ts.map +1 -0
  563. package/models/operations/retrievefees.js +157 -0
  564. package/models/operations/retrievefees.js.map +1 -0
  565. package/package.json +1 -1
  566. package/sdk/{billing.d.ts → feeplans.d.ts} +16 -2
  567. package/sdk/feeplans.d.ts.map +1 -0
  568. package/sdk/feeplans.js +83 -0
  569. package/sdk/feeplans.js.map +1 -0
  570. package/sdk/sdk.d.ts +3 -3
  571. package/sdk/sdk.d.ts.map +1 -1
  572. package/sdk/sdk.js +3 -3
  573. package/sdk/sdk.js.map +1 -1
  574. package/sdk/transfers.d.ts +2 -1
  575. package/sdk/transfers.d.ts.map +1 -1
  576. package/sdk/transfers.js.map +1 -1
  577. package/src/funcs/accountsAssignCountries.ts +37 -8
  578. package/src/funcs/accountsCreate.ts +37 -8
  579. package/src/funcs/accountsDisconnect.ts +36 -8
  580. package/src/funcs/accountsGet.ts +35 -8
  581. package/src/funcs/accountsGetCountries.ts +35 -8
  582. package/src/funcs/accountsGetMerchantProcessingAgreement.ts +35 -8
  583. package/src/funcs/accountsGetTermsOfServiceToken.ts +35 -8
  584. package/src/funcs/accountsList.ts +35 -8
  585. package/src/funcs/accountsUpdate.ts +37 -8
  586. package/src/funcs/adjustmentsGet.ts +35 -8
  587. package/src/funcs/adjustmentsList.ts +35 -8
  588. package/src/funcs/applePayCreateSession.ts +36 -8
  589. package/src/funcs/applePayGetMerchantDomains.ts +35 -8
  590. package/src/funcs/applePayLinkToken.ts +37 -8
  591. package/src/funcs/applePayRegisterMerchantDomains.ts +36 -8
  592. package/src/funcs/applePayUpdateMerchantDomains.ts +36 -8
  593. package/src/funcs/authenticationCreateAccessToken.ts +37 -8
  594. package/src/funcs/authenticationRevokeAccessToken.ts +37 -8
  595. package/src/funcs/avatarsGet.ts +35 -8
  596. package/src/funcs/bankAccountsCompleteMicroDeposits.ts +37 -8
  597. package/src/funcs/bankAccountsCompleteVerification.ts +36 -8
  598. package/src/funcs/bankAccountsDisable.ts +36 -8
  599. package/src/funcs/bankAccountsGet.ts +35 -8
  600. package/src/funcs/bankAccountsGetVerification.ts +35 -8
  601. package/src/funcs/bankAccountsInitiateMicroDeposits.ts +36 -8
  602. package/src/funcs/bankAccountsInitiateVerification.ts +36 -8
  603. package/src/funcs/bankAccountsLink.ts +37 -8
  604. package/src/funcs/bankAccountsList.ts +35 -8
  605. package/src/funcs/brandingCreate.ts +37 -8
  606. package/src/funcs/brandingGet.ts +35 -8
  607. package/src/funcs/brandingUpdate.ts +37 -8
  608. package/src/funcs/brandingUpsert.ts +37 -8
  609. package/src/funcs/capabilitiesDisable.ts +36 -8
  610. package/src/funcs/capabilitiesGet.ts +35 -8
  611. package/src/funcs/capabilitiesList.ts +35 -8
  612. package/src/funcs/capabilitiesRequest.ts +37 -8
  613. package/src/funcs/cardIssuingGet.ts +35 -8
  614. package/src/funcs/cardIssuingGetFull.ts +35 -8
  615. package/src/funcs/cardIssuingList.ts +35 -8
  616. package/src/funcs/cardIssuingRequest.ts +37 -8
  617. package/src/funcs/cardIssuingUpdate.ts +37 -8
  618. package/src/funcs/cardsDisable.ts +36 -8
  619. package/src/funcs/cardsGet.ts +35 -8
  620. package/src/funcs/cardsLink.ts +37 -8
  621. package/src/funcs/cardsList.ts +35 -8
  622. package/src/funcs/cardsUpdate.ts +37 -8
  623. package/src/funcs/disputesAccept.ts +36 -8
  624. package/src/funcs/disputesDeleteEvidence.ts +36 -8
  625. package/src/funcs/disputesGet.ts +35 -8
  626. package/src/funcs/disputesGetEvidence.ts +35 -8
  627. package/src/funcs/disputesGetEvidenceData.ts +37 -8
  628. package/src/funcs/disputesList.ts +36 -8
  629. package/src/funcs/disputesListEvidence.ts +35 -8
  630. package/src/funcs/disputesSubmitEvidence.ts +36 -8
  631. package/src/funcs/disputesUpdateEvidence.ts +36 -8
  632. package/src/funcs/disputesUploadEvidenceFile.ts +37 -8
  633. package/src/funcs/disputesUploadEvidenceText.ts +36 -8
  634. package/src/funcs/endToEndEncryptionGenerateKey.ts +34 -7
  635. package/src/funcs/endToEndEncryptionTestEncryptedToken.ts +36 -8
  636. package/src/funcs/enrichedAddressGet.ts +35 -8
  637. package/src/funcs/enrichedProfileGet.ts +35 -8
  638. package/src/funcs/{billingCreateFeePlanAgreements.ts → feePlansCreateFeePlanAgreements.ts} +37 -8
  639. package/src/funcs/{billingListFeePlanAgreements.ts → feePlansListFeePlanAgreements.ts} +35 -8
  640. package/src/funcs/{billingListFeePlans.ts → feePlansListFeePlans.ts} +35 -8
  641. package/src/funcs/feePlansListFeesFetch.ts +176 -0
  642. package/src/funcs/{billingListPartnerPricing.ts → feePlansListPartnerPricing.ts} +35 -8
  643. package/src/funcs/{billingListPartnerPricingAgreements.ts → feePlansListPartnerPricingAgreements.ts} +35 -8
  644. package/src/funcs/feePlansRetrieveFees.ts +183 -0
  645. package/src/funcs/filesGet.ts +35 -8
  646. package/src/funcs/filesList.ts +35 -8
  647. package/src/funcs/filesUpload.ts +37 -8
  648. package/src/funcs/industriesList.ts +34 -7
  649. package/src/funcs/institutionsSearch.ts +36 -8
  650. package/src/funcs/issuingTransactionsGet.ts +35 -8
  651. package/src/funcs/issuingTransactionsGetAuthorization.ts +35 -8
  652. package/src/funcs/issuingTransactionsList.ts +35 -8
  653. package/src/funcs/issuingTransactionsListAuthorizationEvents.ts +35 -8
  654. package/src/funcs/issuingTransactionsListAuthorizations.ts +35 -8
  655. package/src/funcs/onboardingCreateInvite.ts +37 -8
  656. package/src/funcs/onboardingGetInvite.ts +35 -8
  657. package/src/funcs/onboardingListInvites.ts +34 -7
  658. package/src/funcs/onboardingRevokeInvite.ts +35 -8
  659. package/src/funcs/paymentLinksCreate.ts +37 -8
  660. package/src/funcs/paymentLinksDisable.ts +35 -8
  661. package/src/funcs/paymentLinksGet.ts +35 -8
  662. package/src/funcs/paymentLinksGetQRCode.ts +35 -8
  663. package/src/funcs/paymentLinksList.ts +35 -8
  664. package/src/funcs/paymentLinksUpdate.ts +37 -8
  665. package/src/funcs/paymentMethodsGet.ts +35 -8
  666. package/src/funcs/paymentMethodsList.ts +35 -8
  667. package/src/funcs/pingPing.ts +34 -7
  668. package/src/funcs/representativesCreate.ts +37 -8
  669. package/src/funcs/representativesDelete.ts +36 -8
  670. package/src/funcs/representativesGet.ts +35 -8
  671. package/src/funcs/representativesList.ts +35 -8
  672. package/src/funcs/representativesUpdate.ts +36 -8
  673. package/src/funcs/schedulingCancel.ts +36 -8
  674. package/src/funcs/schedulingCreate.ts +37 -8
  675. package/src/funcs/schedulingGet.ts +35 -8
  676. package/src/funcs/schedulingGetOccurrance.ts +35 -8
  677. package/src/funcs/schedulingList.ts +35 -8
  678. package/src/funcs/schedulingUpdate.ts +37 -8
  679. package/src/funcs/sweepsCreateConfig.ts +37 -8
  680. package/src/funcs/sweepsGet.ts +35 -8
  681. package/src/funcs/sweepsGetConfig.ts +35 -8
  682. package/src/funcs/sweepsList.ts +35 -8
  683. package/src/funcs/sweepsListConfigs.ts +35 -8
  684. package/src/funcs/sweepsUpdateConfig.ts +37 -8
  685. package/src/funcs/transfersCreate.ts +38 -8
  686. package/src/funcs/transfersCreateReversal.ts +37 -8
  687. package/src/funcs/transfersGenerateOptions.ts +53 -9
  688. package/src/funcs/transfersGet.ts +35 -8
  689. package/src/funcs/transfersGetRefund.ts +35 -8
  690. package/src/funcs/transfersInitiateRefund.ts +38 -8
  691. package/src/funcs/transfersList.ts +35 -8
  692. package/src/funcs/transfersListRefunds.ts +35 -8
  693. package/src/funcs/transfersUpdate.ts +35 -8
  694. package/src/funcs/underwritingGet.ts +35 -8
  695. package/src/funcs/underwritingUpsert.ts +37 -8
  696. package/src/funcs/walletTransactionsGet.ts +35 -8
  697. package/src/funcs/walletTransactionsList.ts +35 -8
  698. package/src/funcs/walletsGet.ts +35 -8
  699. package/src/funcs/walletsList.ts +35 -8
  700. package/src/lib/config.ts +3 -3
  701. package/src/lib/sdks.ts +1 -1
  702. package/src/models/components/createtransferoptions.ts +86 -0
  703. package/src/models/components/feemodel.ts +1 -0
  704. package/src/models/components/generatedby.ts +109 -0
  705. package/src/models/components/generatedbyaccountid.ts +75 -0
  706. package/src/models/components/generatedbybankaccountid.ts +75 -0
  707. package/src/models/components/generatedbycardid.ts +75 -0
  708. package/src/models/components/generatedbydisputeid.ts +75 -0
  709. package/src/models/components/generatedbytransferid.ts +66 -0
  710. package/src/models/components/incurredfee.ts +105 -0
  711. package/src/models/components/index.ts +10 -0
  712. package/src/models/components/listfeesfetchrequest.ts +69 -0
  713. package/src/models/components/sourcedestinationoptions.ts +70 -0
  714. package/src/models/operations/createtransferoptions.ts +0 -52
  715. package/src/models/operations/index.ts +2 -0
  716. package/src/models/operations/listfeesfetch.ts +233 -0
  717. package/src/models/operations/retrievefees.ts +255 -0
  718. package/src/sdk/{billing.ts → feeplans.ts} +47 -11
  719. package/src/sdk/sdk.ts +4 -4
  720. package/src/sdk/transfers.ts +2 -1
  721. package/src/types/async.ts +68 -0
  722. package/types/async.d.ts +23 -0
  723. package/types/async.d.ts.map +1 -0
  724. package/types/async.js +44 -0
  725. package/types/async.js.map +1 -0
  726. package/funcs/billingCreateFeePlanAgreements.d.ts.map +0 -1
  727. package/funcs/billingCreateFeePlanAgreements.js.map +0 -1
  728. package/funcs/billingListFeePlanAgreements.d.ts.map +0 -1
  729. package/funcs/billingListFeePlanAgreements.js.map +0 -1
  730. package/funcs/billingListFeePlans.d.ts.map +0 -1
  731. package/funcs/billingListFeePlans.js.map +0 -1
  732. package/funcs/billingListPartnerPricing.d.ts.map +0 -1
  733. package/funcs/billingListPartnerPricing.js.map +0 -1
  734. package/funcs/billingListPartnerPricingAgreements.d.ts.map +0 -1
  735. package/funcs/billingListPartnerPricingAgreements.js.map +0 -1
  736. package/sdk/billing.d.ts.map +0 -1
  737. package/sdk/billing.js +0 -63
  738. package/sdk/billing.js.map +0 -1
@@ -20,6 +20,7 @@ import {
20
20
  } from "../models/errors/httpclienterrors.js";
21
21
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
22
  import * as operations from "../models/operations/index.js";
23
+ import { APICall, APIPromise } from "../types/async.js";
23
24
  import { Result } from "../types/fp.js";
24
25
 
25
26
  /**
@@ -28,11 +29,11 @@ import { Result } from "../types/fp.js";
28
29
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
29
30
  * you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
30
31
  */
31
- export async function adjustmentsGet(
32
+ export function adjustmentsGet(
32
33
  client: MoovCore,
33
34
  request: operations.GetAdjustmentRequest,
34
35
  options?: RequestOptions,
35
- ): Promise<
36
+ ): APIPromise<
36
37
  Result<
37
38
  operations.GetAdjustmentResponse,
38
39
  | APIError
@@ -43,6 +44,32 @@ export async function adjustmentsGet(
43
44
  | RequestTimeoutError
44
45
  | ConnectionError
45
46
  >
47
+ > {
48
+ return new APIPromise($do(
49
+ client,
50
+ request,
51
+ options,
52
+ ));
53
+ }
54
+
55
+ async function $do(
56
+ client: MoovCore,
57
+ request: operations.GetAdjustmentRequest,
58
+ options?: RequestOptions,
59
+ ): Promise<
60
+ [
61
+ Result<
62
+ operations.GetAdjustmentResponse,
63
+ | APIError
64
+ | SDKValidationError
65
+ | UnexpectedClientError
66
+ | InvalidRequestError
67
+ | RequestAbortedError
68
+ | RequestTimeoutError
69
+ | ConnectionError
70
+ >,
71
+ APICall,
72
+ ]
46
73
  > {
47
74
  const parsed = safeParse(
48
75
  request,
@@ -50,7 +77,7 @@ export async function adjustmentsGet(
50
77
  "Input validation failed",
51
78
  );
52
79
  if (!parsed.ok) {
53
- return parsed;
80
+ return [parsed, { status: "invalid" }];
54
81
  }
55
82
  const payload = parsed.value;
56
83
  const body = null;
@@ -83,7 +110,7 @@ export async function adjustmentsGet(
83
110
  const requestSecurity = resolveGlobalSecurity(securityInput);
84
111
 
85
112
  const context = {
86
- baseURL: options?.serverURL ?? "",
113
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
87
114
  operationID: "getAdjustment",
88
115
  oAuth2Scopes: [],
89
116
 
@@ -106,7 +133,7 @@ export async function adjustmentsGet(
106
133
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
107
134
  }, options);
108
135
  if (!requestRes.ok) {
109
- return requestRes;
136
+ return [requestRes, { status: "invalid" }];
110
137
  }
111
138
  const req = requestRes.value;
112
139
 
@@ -117,7 +144,7 @@ export async function adjustmentsGet(
117
144
  retryCodes: context.retryCodes,
118
145
  });
119
146
  if (!doResult.ok) {
120
- return doResult;
147
+ return [doResult, { status: "request-error", request: req }];
121
148
  }
122
149
  const response = doResult.value;
123
150
 
@@ -145,8 +172,8 @@ export async function adjustmentsGet(
145
172
  M.fail("5XX"),
146
173
  )(response, { extraFields: responseFields });
147
174
  if (!result.ok) {
148
- return result;
175
+ return [result, { status: "complete", request: req, response }];
149
176
  }
150
177
 
151
- return result;
178
+ return [result, { status: "complete", request: req, response }];
152
179
  }
@@ -20,6 +20,7 @@ import {
20
20
  } from "../models/errors/httpclienterrors.js";
21
21
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
22
  import * as operations from "../models/operations/index.js";
23
+ import { APICall, APIPromise } from "../types/async.js";
23
24
  import { Result } from "../types/fp.js";
24
25
 
25
26
  /**
@@ -28,11 +29,11 @@ import { Result } from "../types/fp.js";
28
29
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
29
30
  * you'll need to specify the `/accounts/{accountID}/wallets.read` scope.
30
31
  */
31
- export async function adjustmentsList(
32
+ export function adjustmentsList(
32
33
  client: MoovCore,
33
34
  request: operations.ListAdjustmentsRequest,
34
35
  options?: RequestOptions,
35
- ): Promise<
36
+ ): APIPromise<
36
37
  Result<
37
38
  operations.ListAdjustmentsResponse,
38
39
  | APIError
@@ -43,6 +44,32 @@ export async function adjustmentsList(
43
44
  | RequestTimeoutError
44
45
  | ConnectionError
45
46
  >
47
+ > {
48
+ return new APIPromise($do(
49
+ client,
50
+ request,
51
+ options,
52
+ ));
53
+ }
54
+
55
+ async function $do(
56
+ client: MoovCore,
57
+ request: operations.ListAdjustmentsRequest,
58
+ options?: RequestOptions,
59
+ ): Promise<
60
+ [
61
+ Result<
62
+ operations.ListAdjustmentsResponse,
63
+ | APIError
64
+ | SDKValidationError
65
+ | UnexpectedClientError
66
+ | InvalidRequestError
67
+ | RequestAbortedError
68
+ | RequestTimeoutError
69
+ | ConnectionError
70
+ >,
71
+ APICall,
72
+ ]
46
73
  > {
47
74
  const parsed = safeParse(
48
75
  request,
@@ -50,7 +77,7 @@ export async function adjustmentsList(
50
77
  "Input validation failed",
51
78
  );
52
79
  if (!parsed.ok) {
53
- return parsed;
80
+ return [parsed, { status: "invalid" }];
54
81
  }
55
82
  const payload = parsed.value;
56
83
  const body = null;
@@ -81,7 +108,7 @@ export async function adjustmentsList(
81
108
  const requestSecurity = resolveGlobalSecurity(securityInput);
82
109
 
83
110
  const context = {
84
- baseURL: options?.serverURL ?? "",
111
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
85
112
  operationID: "listAdjustments",
86
113
  oAuth2Scopes: [],
87
114
 
@@ -105,7 +132,7 @@ export async function adjustmentsList(
105
132
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
106
133
  }, options);
107
134
  if (!requestRes.ok) {
108
- return requestRes;
135
+ return [requestRes, { status: "invalid" }];
109
136
  }
110
137
  const req = requestRes.value;
111
138
 
@@ -116,7 +143,7 @@ export async function adjustmentsList(
116
143
  retryCodes: context.retryCodes,
117
144
  });
118
145
  if (!doResult.ok) {
119
- return doResult;
146
+ return [doResult, { status: "request-error", request: req }];
120
147
  }
121
148
  const response = doResult.value;
122
149
 
@@ -144,8 +171,8 @@ export async function adjustmentsList(
144
171
  M.fail("5XX"),
145
172
  )(response, { extraFields: responseFields });
146
173
  if (!result.ok) {
147
- return result;
174
+ return [result, { status: "complete", request: req, response }];
148
175
  }
149
176
 
150
- return result;
177
+ return [result, { status: "complete", request: req, response }];
151
178
  }
@@ -21,6 +21,7 @@ import {
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
23
  import * as operations from "../models/operations/index.js";
24
+ import { APICall, APIPromise } from "../types/async.js";
24
25
  import { Result } from "../types/fp.js";
25
26
 
26
27
  /**
@@ -32,11 +33,11 @@ import { Result } from "../types/fp.js";
32
33
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
33
34
  * you'll need to specify the `/accounts/{accountID}/apple-pay.write` scope.
34
35
  */
35
- export async function applePayCreateSession(
36
+ export function applePayCreateSession(
36
37
  client: MoovCore,
37
38
  request: operations.CreateApplePaySessionRequest,
38
39
  options?: RequestOptions,
39
- ): Promise<
40
+ ): APIPromise<
40
41
  Result<
41
42
  operations.CreateApplePaySessionResponse,
42
43
  | errors.GenericError
@@ -48,6 +49,33 @@ export async function applePayCreateSession(
48
49
  | RequestTimeoutError
49
50
  | ConnectionError
50
51
  >
52
+ > {
53
+ return new APIPromise($do(
54
+ client,
55
+ request,
56
+ options,
57
+ ));
58
+ }
59
+
60
+ async function $do(
61
+ client: MoovCore,
62
+ request: operations.CreateApplePaySessionRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ operations.CreateApplePaySessionResponse,
68
+ | errors.GenericError
69
+ | APIError
70
+ | SDKValidationError
71
+ | UnexpectedClientError
72
+ | InvalidRequestError
73
+ | RequestAbortedError
74
+ | RequestTimeoutError
75
+ | ConnectionError
76
+ >,
77
+ APICall,
78
+ ]
51
79
  > {
52
80
  const parsed = safeParse(
53
81
  request,
@@ -56,7 +84,7 @@ export async function applePayCreateSession(
56
84
  "Input validation failed",
57
85
  );
58
86
  if (!parsed.ok) {
59
- return parsed;
87
+ return [parsed, { status: "invalid" }];
60
88
  }
61
89
  const payload = parsed.value;
62
90
  const body = encodeJSON("body", payload.CreateApplePaySession, {
@@ -88,7 +116,7 @@ export async function applePayCreateSession(
88
116
  const requestSecurity = resolveGlobalSecurity(securityInput);
89
117
 
90
118
  const context = {
91
- baseURL: options?.serverURL ?? "",
119
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
92
120
  operationID: "createApplePaySession",
93
121
  oAuth2Scopes: [],
94
122
 
@@ -111,7 +139,7 @@ export async function applePayCreateSession(
111
139
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
112
140
  }, options);
113
141
  if (!requestRes.ok) {
114
- return requestRes;
142
+ return [requestRes, { status: "invalid" }];
115
143
  }
116
144
  const req = requestRes.value;
117
145
 
@@ -134,7 +162,7 @@ export async function applePayCreateSession(
134
162
  retryCodes: context.retryCodes,
135
163
  });
136
164
  if (!doResult.ok) {
137
- return doResult;
165
+ return [doResult, { status: "request-error", request: req }];
138
166
  }
139
167
  const response = doResult.value;
140
168
 
@@ -166,8 +194,8 @@ export async function applePayCreateSession(
166
194
  M.fail("5XX"),
167
195
  )(response, { extraFields: responseFields });
168
196
  if (!result.ok) {
169
- return result;
197
+ return [result, { status: "complete", request: req, response }];
170
198
  }
171
199
 
172
- return result;
200
+ return [result, { status: "complete", request: req, response }];
173
201
  }
@@ -20,6 +20,7 @@ import {
20
20
  } from "../models/errors/httpclienterrors.js";
21
21
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
22
22
  import * as operations from "../models/operations/index.js";
23
+ import { APICall, APIPromise } from "../types/async.js";
23
24
  import { Result } from "../types/fp.js";
24
25
 
25
26
  /**
@@ -30,11 +31,11 @@ import { Result } from "../types/fp.js";
30
31
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
31
32
  * you'll need to specify the `/accounts/{accountID}/apple-pay.read` scope.
32
33
  */
33
- export async function applePayGetMerchantDomains(
34
+ export function applePayGetMerchantDomains(
34
35
  client: MoovCore,
35
36
  request: operations.GetApplePayMerchantDomainsRequest,
36
37
  options?: RequestOptions,
37
- ): Promise<
38
+ ): APIPromise<
38
39
  Result<
39
40
  operations.GetApplePayMerchantDomainsResponse,
40
41
  | APIError
@@ -45,6 +46,32 @@ export async function applePayGetMerchantDomains(
45
46
  | RequestTimeoutError
46
47
  | ConnectionError
47
48
  >
49
+ > {
50
+ return new APIPromise($do(
51
+ client,
52
+ request,
53
+ options,
54
+ ));
55
+ }
56
+
57
+ async function $do(
58
+ client: MoovCore,
59
+ request: operations.GetApplePayMerchantDomainsRequest,
60
+ options?: RequestOptions,
61
+ ): Promise<
62
+ [
63
+ Result<
64
+ operations.GetApplePayMerchantDomainsResponse,
65
+ | APIError
66
+ | SDKValidationError
67
+ | UnexpectedClientError
68
+ | InvalidRequestError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | ConnectionError
72
+ >,
73
+ APICall,
74
+ ]
48
75
  > {
49
76
  const parsed = safeParse(
50
77
  request,
@@ -53,7 +80,7 @@ export async function applePayGetMerchantDomains(
53
80
  "Input validation failed",
54
81
  );
55
82
  if (!parsed.ok) {
56
- return parsed;
83
+ return [parsed, { status: "invalid" }];
57
84
  }
58
85
  const payload = parsed.value;
59
86
  const body = null;
@@ -82,7 +109,7 @@ export async function applePayGetMerchantDomains(
82
109
  const requestSecurity = resolveGlobalSecurity(securityInput);
83
110
 
84
111
  const context = {
85
- baseURL: options?.serverURL ?? "",
112
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
86
113
  operationID: "getApplePayMerchantDomains",
87
114
  oAuth2Scopes: [],
88
115
 
@@ -105,7 +132,7 @@ export async function applePayGetMerchantDomains(
105
132
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
106
133
  }, options);
107
134
  if (!requestRes.ok) {
108
- return requestRes;
135
+ return [requestRes, { status: "invalid" }];
109
136
  }
110
137
  const req = requestRes.value;
111
138
 
@@ -116,7 +143,7 @@ export async function applePayGetMerchantDomains(
116
143
  retryCodes: context.retryCodes,
117
144
  });
118
145
  if (!doResult.ok) {
119
- return doResult;
146
+ return [doResult, { status: "request-error", request: req }];
120
147
  }
121
148
  const response = doResult.value;
122
149
 
@@ -144,8 +171,8 @@ export async function applePayGetMerchantDomains(
144
171
  M.fail("5XX"),
145
172
  )(response, { extraFields: responseFields });
146
173
  if (!result.ok) {
147
- return result;
174
+ return [result, { status: "complete", request: req, response }];
148
175
  }
149
176
 
150
- return result;
177
+ return [result, { status: "complete", request: req, response }];
151
178
  }
@@ -21,6 +21,7 @@ import {
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
23
  import * as operations from "../models/operations/index.js";
24
+ import { APICall, APIPromise } from "../types/async.js";
24
25
  import { Result } from "../types/fp.js";
25
26
 
26
27
  /**
@@ -32,11 +33,11 @@ import { Result } from "../types/fp.js";
32
33
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
33
34
  * you'll need to specify the `/accounts/{accountID}/cards.write` scope.
34
35
  */
35
- export async function applePayLinkToken(
36
+ export function applePayLinkToken(
36
37
  client: MoovCore,
37
38
  request: operations.LinkApplePayTokenRequest,
38
39
  options?: RequestOptions,
39
- ): Promise<
40
+ ): APIPromise<
40
41
  Result<
41
42
  operations.LinkApplePayTokenResponse,
42
43
  | errors.GenericError
@@ -49,6 +50,34 @@ export async function applePayLinkToken(
49
50
  | RequestTimeoutError
50
51
  | ConnectionError
51
52
  >
53
+ > {
54
+ return new APIPromise($do(
55
+ client,
56
+ request,
57
+ options,
58
+ ));
59
+ }
60
+
61
+ async function $do(
62
+ client: MoovCore,
63
+ request: operations.LinkApplePayTokenRequest,
64
+ options?: RequestOptions,
65
+ ): Promise<
66
+ [
67
+ Result<
68
+ operations.LinkApplePayTokenResponse,
69
+ | errors.GenericError
70
+ | errors.LinkApplePayError
71
+ | APIError
72
+ | SDKValidationError
73
+ | UnexpectedClientError
74
+ | InvalidRequestError
75
+ | RequestAbortedError
76
+ | RequestTimeoutError
77
+ | ConnectionError
78
+ >,
79
+ APICall,
80
+ ]
52
81
  > {
53
82
  const parsed = safeParse(
54
83
  request,
@@ -56,7 +85,7 @@ export async function applePayLinkToken(
56
85
  "Input validation failed",
57
86
  );
58
87
  if (!parsed.ok) {
59
- return parsed;
88
+ return [parsed, { status: "invalid" }];
60
89
  }
61
90
  const payload = parsed.value;
62
91
  const body = encodeJSON("body", payload.LinkApplePay, { explode: true });
@@ -84,7 +113,7 @@ export async function applePayLinkToken(
84
113
  const requestSecurity = resolveGlobalSecurity(securityInput);
85
114
 
86
115
  const context = {
87
- baseURL: options?.serverURL ?? "",
116
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
88
117
  operationID: "linkApplePayToken",
89
118
  oAuth2Scopes: [],
90
119
 
@@ -107,7 +136,7 @@ export async function applePayLinkToken(
107
136
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
108
137
  }, options);
109
138
  if (!requestRes.ok) {
110
- return requestRes;
139
+ return [requestRes, { status: "invalid" }];
111
140
  }
112
141
  const req = requestRes.value;
113
142
 
@@ -130,7 +159,7 @@ export async function applePayLinkToken(
130
159
  retryCodes: context.retryCodes,
131
160
  });
132
161
  if (!doResult.ok) {
133
- return doResult;
162
+ return [doResult, { status: "request-error", request: req }];
134
163
  }
135
164
  const response = doResult.value;
136
165
 
@@ -162,8 +191,8 @@ export async function applePayLinkToken(
162
191
  M.fail("5XX"),
163
192
  )(response, { extraFields: responseFields });
164
193
  if (!result.ok) {
165
- return result;
194
+ return [result, { status: "complete", request: req, response }];
166
195
  }
167
196
 
168
- return result;
197
+ return [result, { status: "complete", request: req, response }];
169
198
  }
@@ -21,6 +21,7 @@ import {
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
23
  import * as operations from "../models/operations/index.js";
24
+ import { APICall, APIPromise } from "../types/async.js";
24
25
  import { Result } from "../types/fp.js";
25
26
 
26
27
  /**
@@ -32,11 +33,11 @@ import { Result } from "../types/fp.js";
32
33
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
33
34
  * you'll need to specify the `/accounts/{accountID}/apple-pay.write` scope.
34
35
  */
35
- export async function applePayRegisterMerchantDomains(
36
+ export function applePayRegisterMerchantDomains(
36
37
  client: MoovCore,
37
38
  request: operations.RegisterApplePayMerchantDomainsRequest,
38
39
  options?: RequestOptions,
39
- ): Promise<
40
+ ): APIPromise<
40
41
  Result<
41
42
  operations.RegisterApplePayMerchantDomainsResponse,
42
43
  | errors.GenericError
@@ -48,6 +49,33 @@ export async function applePayRegisterMerchantDomains(
48
49
  | RequestTimeoutError
49
50
  | ConnectionError
50
51
  >
52
+ > {
53
+ return new APIPromise($do(
54
+ client,
55
+ request,
56
+ options,
57
+ ));
58
+ }
59
+
60
+ async function $do(
61
+ client: MoovCore,
62
+ request: operations.RegisterApplePayMerchantDomainsRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ operations.RegisterApplePayMerchantDomainsResponse,
68
+ | errors.GenericError
69
+ | APIError
70
+ | SDKValidationError
71
+ | UnexpectedClientError
72
+ | InvalidRequestError
73
+ | RequestAbortedError
74
+ | RequestTimeoutError
75
+ | ConnectionError
76
+ >,
77
+ APICall,
78
+ ]
51
79
  > {
52
80
  const parsed = safeParse(
53
81
  request,
@@ -58,7 +86,7 @@ export async function applePayRegisterMerchantDomains(
58
86
  "Input validation failed",
59
87
  );
60
88
  if (!parsed.ok) {
61
- return parsed;
89
+ return [parsed, { status: "invalid" }];
62
90
  }
63
91
  const payload = parsed.value;
64
92
  const body = encodeJSON("body", payload.RegisterApplePayMerchantDomains, {
@@ -90,7 +118,7 @@ export async function applePayRegisterMerchantDomains(
90
118
  const requestSecurity = resolveGlobalSecurity(securityInput);
91
119
 
92
120
  const context = {
93
- baseURL: options?.serverURL ?? "",
121
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
94
122
  operationID: "registerApplePayMerchantDomains",
95
123
  oAuth2Scopes: [],
96
124
 
@@ -113,7 +141,7 @@ export async function applePayRegisterMerchantDomains(
113
141
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
114
142
  }, options);
115
143
  if (!requestRes.ok) {
116
- return requestRes;
144
+ return [requestRes, { status: "invalid" }];
117
145
  }
118
146
  const req = requestRes.value;
119
147
 
@@ -135,7 +163,7 @@ export async function applePayRegisterMerchantDomains(
135
163
  retryCodes: context.retryCodes,
136
164
  });
137
165
  if (!doResult.ok) {
138
- return doResult;
166
+ return [doResult, { status: "request-error", request: req }];
139
167
  }
140
168
  const response = doResult.value;
141
169
 
@@ -166,8 +194,8 @@ export async function applePayRegisterMerchantDomains(
166
194
  M.fail("5XX"),
167
195
  )(response, { extraFields: responseFields });
168
196
  if (!result.ok) {
169
- return result;
197
+ return [result, { status: "complete", request: req, response }];
170
198
  }
171
199
 
172
- return result;
200
+ return [result, { status: "complete", request: req, response }];
173
201
  }
@@ -21,6 +21,7 @@ import {
21
21
  import * as errors from "../models/errors/index.js";
22
22
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
23
  import * as operations from "../models/operations/index.js";
24
+ import { APICall, APIPromise } from "../types/async.js";
24
25
  import { Result } from "../types/fp.js";
25
26
 
26
27
  /**
@@ -32,11 +33,11 @@ import { Result } from "../types/fp.js";
32
33
  * To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
33
34
  * you'll need to specify the `/accounts/{accountID}/apple-pay.write` scope.
34
35
  */
35
- export async function applePayUpdateMerchantDomains(
36
+ export function applePayUpdateMerchantDomains(
36
37
  client: MoovCore,
37
38
  request: operations.UpdateApplePayMerchantDomainsRequest,
38
39
  options?: RequestOptions,
39
- ): Promise<
40
+ ): APIPromise<
40
41
  Result<
41
42
  operations.UpdateApplePayMerchantDomainsResponse | undefined,
42
43
  | errors.GenericError
@@ -48,6 +49,33 @@ export async function applePayUpdateMerchantDomains(
48
49
  | RequestTimeoutError
49
50
  | ConnectionError
50
51
  >
52
+ > {
53
+ return new APIPromise($do(
54
+ client,
55
+ request,
56
+ options,
57
+ ));
58
+ }
59
+
60
+ async function $do(
61
+ client: MoovCore,
62
+ request: operations.UpdateApplePayMerchantDomainsRequest,
63
+ options?: RequestOptions,
64
+ ): Promise<
65
+ [
66
+ Result<
67
+ operations.UpdateApplePayMerchantDomainsResponse | undefined,
68
+ | errors.GenericError
69
+ | APIError
70
+ | SDKValidationError
71
+ | UnexpectedClientError
72
+ | InvalidRequestError
73
+ | RequestAbortedError
74
+ | RequestTimeoutError
75
+ | ConnectionError
76
+ >,
77
+ APICall,
78
+ ]
51
79
  > {
52
80
  const parsed = safeParse(
53
81
  request,
@@ -58,7 +86,7 @@ export async function applePayUpdateMerchantDomains(
58
86
  "Input validation failed",
59
87
  );
60
88
  if (!parsed.ok) {
61
- return parsed;
89
+ return [parsed, { status: "invalid" }];
62
90
  }
63
91
  const payload = parsed.value;
64
92
  const body = encodeJSON("body", payload.UpdateApplePayMerchantDomains, {
@@ -90,7 +118,7 @@ export async function applePayUpdateMerchantDomains(
90
118
  const requestSecurity = resolveGlobalSecurity(securityInput);
91
119
 
92
120
  const context = {
93
- baseURL: options?.serverURL ?? "",
121
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
94
122
  operationID: "updateApplePayMerchantDomains",
95
123
  oAuth2Scopes: [],
96
124
 
@@ -113,7 +141,7 @@ export async function applePayUpdateMerchantDomains(
113
141
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
114
142
  }, options);
115
143
  if (!requestRes.ok) {
116
- return requestRes;
144
+ return [requestRes, { status: "invalid" }];
117
145
  }
118
146
  const req = requestRes.value;
119
147
 
@@ -136,7 +164,7 @@ export async function applePayUpdateMerchantDomains(
136
164
  retryCodes: context.retryCodes,
137
165
  });
138
166
  if (!doResult.ok) {
139
- return doResult;
167
+ return [doResult, { status: "request-error", request: req }];
140
168
  }
141
169
  const response = doResult.value;
142
170
 
@@ -167,8 +195,8 @@ export async function applePayUpdateMerchantDomains(
167
195
  M.fail("5XX"),
168
196
  )(response, { extraFields: responseFields });
169
197
  if (!result.ok) {
170
- return result;
198
+ return [result, { status: "complete", request: req, response }];
171
199
  }
172
200
 
173
- return result;
201
+ return [result, { status: "complete", request: req, response }];
174
202
  }