@gr4vy/sdk 2.0.26 → 2.0.28

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 (460) hide show
  1. package/README.md +2 -0
  2. package/funcs/accountUpdaterJobsCreate.d.ts.map +1 -1
  3. package/funcs/accountUpdaterJobsCreate.js +2 -16
  4. package/funcs/accountUpdaterJobsCreate.js.map +1 -1
  5. package/funcs/auditLogsList.d.ts.map +1 -1
  6. package/funcs/auditLogsList.js +2 -16
  7. package/funcs/auditLogsList.js.map +1 -1
  8. package/funcs/buyersCreate.d.ts.map +1 -1
  9. package/funcs/buyersCreate.js +2 -16
  10. package/funcs/buyersCreate.js.map +1 -1
  11. package/funcs/buyersDelete.d.ts.map +1 -1
  12. package/funcs/buyersDelete.js +2 -16
  13. package/funcs/buyersDelete.js.map +1 -1
  14. package/funcs/buyersGet.d.ts.map +1 -1
  15. package/funcs/buyersGet.js +2 -16
  16. package/funcs/buyersGet.js.map +1 -1
  17. package/funcs/buyersGiftCardsList.d.ts.map +1 -1
  18. package/funcs/buyersGiftCardsList.js +2 -16
  19. package/funcs/buyersGiftCardsList.js.map +1 -1
  20. package/funcs/buyersList.d.ts.map +1 -1
  21. package/funcs/buyersList.js +2 -16
  22. package/funcs/buyersList.js.map +1 -1
  23. package/funcs/buyersPaymentMethodsList.d.ts.map +1 -1
  24. package/funcs/buyersPaymentMethodsList.js +2 -16
  25. package/funcs/buyersPaymentMethodsList.js.map +1 -1
  26. package/funcs/buyersShippingDetailsCreate.d.ts.map +1 -1
  27. package/funcs/buyersShippingDetailsCreate.js +2 -16
  28. package/funcs/buyersShippingDetailsCreate.js.map +1 -1
  29. package/funcs/buyersShippingDetailsDelete.d.ts.map +1 -1
  30. package/funcs/buyersShippingDetailsDelete.js +2 -16
  31. package/funcs/buyersShippingDetailsDelete.js.map +1 -1
  32. package/funcs/buyersShippingDetailsGet.d.ts.map +1 -1
  33. package/funcs/buyersShippingDetailsGet.js +2 -16
  34. package/funcs/buyersShippingDetailsGet.js.map +1 -1
  35. package/funcs/buyersShippingDetailsList.d.ts.map +1 -1
  36. package/funcs/buyersShippingDetailsList.js +2 -16
  37. package/funcs/buyersShippingDetailsList.js.map +1 -1
  38. package/funcs/buyersShippingDetailsUpdate.d.ts.map +1 -1
  39. package/funcs/buyersShippingDetailsUpdate.js +2 -16
  40. package/funcs/buyersShippingDetailsUpdate.js.map +1 -1
  41. package/funcs/buyersUpdate.d.ts.map +1 -1
  42. package/funcs/buyersUpdate.js +2 -16
  43. package/funcs/buyersUpdate.js.map +1 -1
  44. package/funcs/cardSchemeDefinitionsList.d.ts.map +1 -1
  45. package/funcs/cardSchemeDefinitionsList.js +2 -16
  46. package/funcs/cardSchemeDefinitionsList.js.map +1 -1
  47. package/funcs/checkoutSessionsCreate.d.ts.map +1 -1
  48. package/funcs/checkoutSessionsCreate.js +2 -16
  49. package/funcs/checkoutSessionsCreate.js.map +1 -1
  50. package/funcs/checkoutSessionsDelete.d.ts.map +1 -1
  51. package/funcs/checkoutSessionsDelete.js +2 -16
  52. package/funcs/checkoutSessionsDelete.js.map +1 -1
  53. package/funcs/checkoutSessionsGet.d.ts.map +1 -1
  54. package/funcs/checkoutSessionsGet.js +2 -16
  55. package/funcs/checkoutSessionsGet.js.map +1 -1
  56. package/funcs/checkoutSessionsUpdate.d.ts.map +1 -1
  57. package/funcs/checkoutSessionsUpdate.js +2 -16
  58. package/funcs/checkoutSessionsUpdate.js.map +1 -1
  59. package/funcs/digitalWalletsCreate.d.ts.map +1 -1
  60. package/funcs/digitalWalletsCreate.js +2 -16
  61. package/funcs/digitalWalletsCreate.js.map +1 -1
  62. package/funcs/digitalWalletsDelete.d.ts.map +1 -1
  63. package/funcs/digitalWalletsDelete.js +2 -16
  64. package/funcs/digitalWalletsDelete.js.map +1 -1
  65. package/funcs/digitalWalletsDomainsCreate.d.ts.map +1 -1
  66. package/funcs/digitalWalletsDomainsCreate.js +2 -16
  67. package/funcs/digitalWalletsDomainsCreate.js.map +1 -1
  68. package/funcs/digitalWalletsDomainsDelete.d.ts.map +1 -1
  69. package/funcs/digitalWalletsDomainsDelete.js +2 -16
  70. package/funcs/digitalWalletsDomainsDelete.js.map +1 -1
  71. package/funcs/digitalWalletsGet.d.ts.map +1 -1
  72. package/funcs/digitalWalletsGet.js +2 -16
  73. package/funcs/digitalWalletsGet.js.map +1 -1
  74. package/funcs/digitalWalletsList.d.ts.map +1 -1
  75. package/funcs/digitalWalletsList.js +2 -16
  76. package/funcs/digitalWalletsList.js.map +1 -1
  77. package/funcs/digitalWalletsSessionsApplePay.d.ts.map +1 -1
  78. package/funcs/digitalWalletsSessionsApplePay.js +2 -16
  79. package/funcs/digitalWalletsSessionsApplePay.js.map +1 -1
  80. package/funcs/digitalWalletsSessionsClickToPay.d.ts.map +1 -1
  81. package/funcs/digitalWalletsSessionsClickToPay.js +2 -16
  82. package/funcs/digitalWalletsSessionsClickToPay.js.map +1 -1
  83. package/funcs/digitalWalletsSessionsGooglePay.d.ts.map +1 -1
  84. package/funcs/digitalWalletsSessionsGooglePay.js +2 -16
  85. package/funcs/digitalWalletsSessionsGooglePay.js.map +1 -1
  86. package/funcs/digitalWalletsUpdate.d.ts.map +1 -1
  87. package/funcs/digitalWalletsUpdate.js +2 -16
  88. package/funcs/digitalWalletsUpdate.js.map +1 -1
  89. package/funcs/giftCardsBalancesList.d.ts.map +1 -1
  90. package/funcs/giftCardsBalancesList.js +2 -16
  91. package/funcs/giftCardsBalancesList.js.map +1 -1
  92. package/funcs/giftCardsCreate.d.ts.map +1 -1
  93. package/funcs/giftCardsCreate.js +2 -16
  94. package/funcs/giftCardsCreate.js.map +1 -1
  95. package/funcs/giftCardsDelete.d.ts.map +1 -1
  96. package/funcs/giftCardsDelete.js +2 -16
  97. package/funcs/giftCardsDelete.js.map +1 -1
  98. package/funcs/giftCardsGet.d.ts.map +1 -1
  99. package/funcs/giftCardsGet.js +2 -16
  100. package/funcs/giftCardsGet.js.map +1 -1
  101. package/funcs/giftCardsList.d.ts.map +1 -1
  102. package/funcs/giftCardsList.js +2 -16
  103. package/funcs/giftCardsList.js.map +1 -1
  104. package/funcs/merchantAccountsCreate.d.ts.map +1 -1
  105. package/funcs/merchantAccountsCreate.js +2 -16
  106. package/funcs/merchantAccountsCreate.js.map +1 -1
  107. package/funcs/merchantAccountsGet.d.ts.map +1 -1
  108. package/funcs/merchantAccountsGet.js +2 -16
  109. package/funcs/merchantAccountsGet.js.map +1 -1
  110. package/funcs/merchantAccountsList.d.ts.map +1 -1
  111. package/funcs/merchantAccountsList.js +2 -16
  112. package/funcs/merchantAccountsList.js.map +1 -1
  113. package/funcs/merchantAccountsThreeDsConfigurationCreate.d.ts.map +1 -1
  114. package/funcs/merchantAccountsThreeDsConfigurationCreate.js +2 -16
  115. package/funcs/merchantAccountsThreeDsConfigurationCreate.js.map +1 -1
  116. package/funcs/merchantAccountsThreeDsConfigurationDelete.d.ts.map +1 -1
  117. package/funcs/merchantAccountsThreeDsConfigurationDelete.js +2 -16
  118. package/funcs/merchantAccountsThreeDsConfigurationDelete.js.map +1 -1
  119. package/funcs/merchantAccountsThreeDsConfigurationList.d.ts.map +1 -1
  120. package/funcs/merchantAccountsThreeDsConfigurationList.js +2 -16
  121. package/funcs/merchantAccountsThreeDsConfigurationList.js.map +1 -1
  122. package/funcs/merchantAccountsThreeDsConfigurationUpdate.d.ts.map +1 -1
  123. package/funcs/merchantAccountsThreeDsConfigurationUpdate.js +2 -16
  124. package/funcs/merchantAccountsThreeDsConfigurationUpdate.js.map +1 -1
  125. package/funcs/merchantAccountsUpdate.d.ts.map +1 -1
  126. package/funcs/merchantAccountsUpdate.js +2 -16
  127. package/funcs/merchantAccountsUpdate.js.map +1 -1
  128. package/funcs/paymentLinksCreate.d.ts.map +1 -1
  129. package/funcs/paymentLinksCreate.js +2 -16
  130. package/funcs/paymentLinksCreate.js.map +1 -1
  131. package/funcs/paymentLinksExpire.d.ts.map +1 -1
  132. package/funcs/paymentLinksExpire.js +2 -16
  133. package/funcs/paymentLinksExpire.js.map +1 -1
  134. package/funcs/paymentLinksGet.d.ts.map +1 -1
  135. package/funcs/paymentLinksGet.js +2 -16
  136. package/funcs/paymentLinksGet.js.map +1 -1
  137. package/funcs/paymentLinksList.d.ts.map +1 -1
  138. package/funcs/paymentLinksList.js +2 -16
  139. package/funcs/paymentLinksList.js.map +1 -1
  140. package/funcs/paymentMethodsCreate.d.ts.map +1 -1
  141. package/funcs/paymentMethodsCreate.js +2 -16
  142. package/funcs/paymentMethodsCreate.js.map +1 -1
  143. package/funcs/paymentMethodsDelete.d.ts.map +1 -1
  144. package/funcs/paymentMethodsDelete.js +2 -16
  145. package/funcs/paymentMethodsDelete.js.map +1 -1
  146. package/funcs/paymentMethodsGet.d.ts.map +1 -1
  147. package/funcs/paymentMethodsGet.js +2 -16
  148. package/funcs/paymentMethodsGet.js.map +1 -1
  149. package/funcs/paymentMethodsList.d.ts.map +1 -1
  150. package/funcs/paymentMethodsList.js +2 -16
  151. package/funcs/paymentMethodsList.js.map +1 -1
  152. package/funcs/paymentMethodsNetworkTokensCreate.d.ts.map +1 -1
  153. package/funcs/paymentMethodsNetworkTokensCreate.js +2 -16
  154. package/funcs/paymentMethodsNetworkTokensCreate.js.map +1 -1
  155. package/funcs/paymentMethodsNetworkTokensCryptogramCreate.d.ts.map +1 -1
  156. package/funcs/paymentMethodsNetworkTokensCryptogramCreate.js +2 -16
  157. package/funcs/paymentMethodsNetworkTokensCryptogramCreate.js.map +1 -1
  158. package/funcs/paymentMethodsNetworkTokensDelete.d.ts.map +1 -1
  159. package/funcs/paymentMethodsNetworkTokensDelete.js +2 -16
  160. package/funcs/paymentMethodsNetworkTokensDelete.js.map +1 -1
  161. package/funcs/paymentMethodsNetworkTokensList.d.ts.map +1 -1
  162. package/funcs/paymentMethodsNetworkTokensList.js +2 -16
  163. package/funcs/paymentMethodsNetworkTokensList.js.map +1 -1
  164. package/funcs/paymentMethodsNetworkTokensResume.d.ts.map +1 -1
  165. package/funcs/paymentMethodsNetworkTokensResume.js +2 -16
  166. package/funcs/paymentMethodsNetworkTokensResume.js.map +1 -1
  167. package/funcs/paymentMethodsNetworkTokensSuspend.d.ts.map +1 -1
  168. package/funcs/paymentMethodsNetworkTokensSuspend.js +2 -16
  169. package/funcs/paymentMethodsNetworkTokensSuspend.js.map +1 -1
  170. package/funcs/paymentMethodsPaymentServiceTokensCreate.d.ts.map +1 -1
  171. package/funcs/paymentMethodsPaymentServiceTokensCreate.js +2 -16
  172. package/funcs/paymentMethodsPaymentServiceTokensCreate.js.map +1 -1
  173. package/funcs/paymentMethodsPaymentServiceTokensDelete.d.ts.map +1 -1
  174. package/funcs/paymentMethodsPaymentServiceTokensDelete.js +2 -16
  175. package/funcs/paymentMethodsPaymentServiceTokensDelete.js.map +1 -1
  176. package/funcs/paymentMethodsPaymentServiceTokensList.d.ts.map +1 -1
  177. package/funcs/paymentMethodsPaymentServiceTokensList.js +2 -16
  178. package/funcs/paymentMethodsPaymentServiceTokensList.js.map +1 -1
  179. package/funcs/paymentMethodsUpdate.d.ts +18 -0
  180. package/funcs/paymentMethodsUpdate.d.ts.map +1 -0
  181. package/funcs/paymentMethodsUpdate.js +131 -0
  182. package/funcs/paymentMethodsUpdate.js.map +1 -0
  183. package/funcs/paymentOptionsList.d.ts.map +1 -1
  184. package/funcs/paymentOptionsList.js +2 -16
  185. package/funcs/paymentOptionsList.js.map +1 -1
  186. package/funcs/paymentServiceDefinitionsGet.d.ts.map +1 -1
  187. package/funcs/paymentServiceDefinitionsGet.js +2 -16
  188. package/funcs/paymentServiceDefinitionsGet.js.map +1 -1
  189. package/funcs/paymentServiceDefinitionsList.d.ts.map +1 -1
  190. package/funcs/paymentServiceDefinitionsList.js +2 -16
  191. package/funcs/paymentServiceDefinitionsList.js.map +1 -1
  192. package/funcs/paymentServiceDefinitionsSession.d.ts.map +1 -1
  193. package/funcs/paymentServiceDefinitionsSession.js +2 -16
  194. package/funcs/paymentServiceDefinitionsSession.js.map +1 -1
  195. package/funcs/paymentServicesCreate.d.ts.map +1 -1
  196. package/funcs/paymentServicesCreate.js +2 -16
  197. package/funcs/paymentServicesCreate.js.map +1 -1
  198. package/funcs/paymentServicesDelete.d.ts.map +1 -1
  199. package/funcs/paymentServicesDelete.js +2 -16
  200. package/funcs/paymentServicesDelete.js.map +1 -1
  201. package/funcs/paymentServicesGet.d.ts.map +1 -1
  202. package/funcs/paymentServicesGet.js +2 -16
  203. package/funcs/paymentServicesGet.js.map +1 -1
  204. package/funcs/paymentServicesList.d.ts.map +1 -1
  205. package/funcs/paymentServicesList.js +2 -16
  206. package/funcs/paymentServicesList.js.map +1 -1
  207. package/funcs/paymentServicesSession.d.ts.map +1 -1
  208. package/funcs/paymentServicesSession.js +2 -16
  209. package/funcs/paymentServicesSession.js.map +1 -1
  210. package/funcs/paymentServicesUpdate.d.ts.map +1 -1
  211. package/funcs/paymentServicesUpdate.js +2 -16
  212. package/funcs/paymentServicesUpdate.js.map +1 -1
  213. package/funcs/paymentServicesVerify.d.ts.map +1 -1
  214. package/funcs/paymentServicesVerify.js +2 -16
  215. package/funcs/paymentServicesVerify.js.map +1 -1
  216. package/funcs/payoutsCreate.d.ts.map +1 -1
  217. package/funcs/payoutsCreate.js +2 -16
  218. package/funcs/payoutsCreate.js.map +1 -1
  219. package/funcs/payoutsGet.d.ts.map +1 -1
  220. package/funcs/payoutsGet.js +2 -16
  221. package/funcs/payoutsGet.js.map +1 -1
  222. package/funcs/payoutsList.d.ts.map +1 -1
  223. package/funcs/payoutsList.js +2 -16
  224. package/funcs/payoutsList.js.map +1 -1
  225. package/funcs/refundsGet.d.ts.map +1 -1
  226. package/funcs/refundsGet.js +2 -16
  227. package/funcs/refundsGet.js.map +1 -1
  228. package/funcs/reportExecutionsList.d.ts.map +1 -1
  229. package/funcs/reportExecutionsList.js +2 -16
  230. package/funcs/reportExecutionsList.js.map +1 -1
  231. package/funcs/reportsCreate.d.ts.map +1 -1
  232. package/funcs/reportsCreate.js +2 -16
  233. package/funcs/reportsCreate.js.map +1 -1
  234. package/funcs/reportsExecutionsGet.d.ts.map +1 -1
  235. package/funcs/reportsExecutionsGet.js +2 -16
  236. package/funcs/reportsExecutionsGet.js.map +1 -1
  237. package/funcs/reportsExecutionsList.d.ts.map +1 -1
  238. package/funcs/reportsExecutionsList.js +2 -16
  239. package/funcs/reportsExecutionsList.js.map +1 -1
  240. package/funcs/reportsExecutionsUrl.d.ts.map +1 -1
  241. package/funcs/reportsExecutionsUrl.js +2 -16
  242. package/funcs/reportsExecutionsUrl.js.map +1 -1
  243. package/funcs/reportsGet.d.ts.map +1 -1
  244. package/funcs/reportsGet.js +2 -16
  245. package/funcs/reportsGet.js.map +1 -1
  246. package/funcs/reportsList.d.ts.map +1 -1
  247. package/funcs/reportsList.js +2 -16
  248. package/funcs/reportsList.js.map +1 -1
  249. package/funcs/reportsPut.d.ts.map +1 -1
  250. package/funcs/reportsPut.js +2 -16
  251. package/funcs/reportsPut.js.map +1 -1
  252. package/funcs/threeDsScenariosCreate.d.ts.map +1 -1
  253. package/funcs/threeDsScenariosCreate.js +2 -16
  254. package/funcs/threeDsScenariosCreate.js.map +1 -1
  255. package/funcs/threeDsScenariosDelete.d.ts.map +1 -1
  256. package/funcs/threeDsScenariosDelete.js +2 -16
  257. package/funcs/threeDsScenariosDelete.js.map +1 -1
  258. package/funcs/threeDsScenariosList.d.ts.map +1 -1
  259. package/funcs/threeDsScenariosList.js +2 -16
  260. package/funcs/threeDsScenariosList.js.map +1 -1
  261. package/funcs/threeDsScenariosUpdate.d.ts.map +1 -1
  262. package/funcs/threeDsScenariosUpdate.js +2 -16
  263. package/funcs/threeDsScenariosUpdate.js.map +1 -1
  264. package/funcs/transactionsActionsList.d.ts.map +1 -1
  265. package/funcs/transactionsActionsList.js +2 -16
  266. package/funcs/transactionsActionsList.js.map +1 -1
  267. package/funcs/transactionsCancel.d.ts.map +1 -1
  268. package/funcs/transactionsCancel.js +2 -16
  269. package/funcs/transactionsCancel.js.map +1 -1
  270. package/funcs/transactionsCapture.d.ts.map +1 -1
  271. package/funcs/transactionsCapture.js +2 -16
  272. package/funcs/transactionsCapture.js.map +1 -1
  273. package/funcs/transactionsCreate.d.ts.map +1 -1
  274. package/funcs/transactionsCreate.js +2 -16
  275. package/funcs/transactionsCreate.js.map +1 -1
  276. package/funcs/transactionsEventsList.d.ts.map +1 -1
  277. package/funcs/transactionsEventsList.js +2 -16
  278. package/funcs/transactionsEventsList.js.map +1 -1
  279. package/funcs/transactionsGet.d.ts.map +1 -1
  280. package/funcs/transactionsGet.js +2 -16
  281. package/funcs/transactionsGet.js.map +1 -1
  282. package/funcs/transactionsList.d.ts.map +1 -1
  283. package/funcs/transactionsList.js +2 -16
  284. package/funcs/transactionsList.js.map +1 -1
  285. package/funcs/transactionsRefundsAllCreate.d.ts.map +1 -1
  286. package/funcs/transactionsRefundsAllCreate.js +2 -16
  287. package/funcs/transactionsRefundsAllCreate.js.map +1 -1
  288. package/funcs/transactionsRefundsCreate.d.ts.map +1 -1
  289. package/funcs/transactionsRefundsCreate.js +2 -16
  290. package/funcs/transactionsRefundsCreate.js.map +1 -1
  291. package/funcs/transactionsRefundsGet.d.ts.map +1 -1
  292. package/funcs/transactionsRefundsGet.js +2 -16
  293. package/funcs/transactionsRefundsGet.js.map +1 -1
  294. package/funcs/transactionsRefundsList.d.ts.map +1 -1
  295. package/funcs/transactionsRefundsList.js +2 -16
  296. package/funcs/transactionsRefundsList.js.map +1 -1
  297. package/funcs/transactionsSettlementsGet.d.ts.map +1 -1
  298. package/funcs/transactionsSettlementsGet.js +2 -16
  299. package/funcs/transactionsSettlementsGet.js.map +1 -1
  300. package/funcs/transactionsSettlementsList.d.ts.map +1 -1
  301. package/funcs/transactionsSettlementsList.js +2 -16
  302. package/funcs/transactionsSettlementsList.js.map +1 -1
  303. package/funcs/transactionsSync.d.ts.map +1 -1
  304. package/funcs/transactionsSync.js +2 -16
  305. package/funcs/transactionsSync.js.map +1 -1
  306. package/funcs/transactionsUpdate.d.ts.map +1 -1
  307. package/funcs/transactionsUpdate.js +2 -16
  308. package/funcs/transactionsUpdate.js.map +1 -1
  309. package/funcs/transactionsVoid.d.ts.map +1 -1
  310. package/funcs/transactionsVoid.js +2 -16
  311. package/funcs/transactionsVoid.js.map +1 -1
  312. package/jsr.json +1 -1
  313. package/lib/config.d.ts +3 -3
  314. package/lib/config.js +3 -3
  315. package/lib/config.js.map +1 -1
  316. package/lib/sdks.d.ts +1 -1
  317. package/lib/sdks.d.ts.map +1 -1
  318. package/lib/sdks.js +2 -4
  319. package/lib/sdks.js.map +1 -1
  320. package/models/components/ecommpayoptions.d.ts +20 -0
  321. package/models/components/ecommpayoptions.d.ts.map +1 -0
  322. package/models/components/ecommpayoptions.js +56 -0
  323. package/models/components/ecommpayoptions.js.map +1 -0
  324. package/models/components/index.d.ts +2 -0
  325. package/models/components/index.d.ts.map +1 -1
  326. package/models/components/index.js +2 -0
  327. package/models/components/index.js.map +1 -1
  328. package/models/components/paymentmethodupdate.d.ts +29 -0
  329. package/models/components/paymentmethodupdate.d.ts.map +1 -0
  330. package/models/components/paymentmethodupdate.js +59 -0
  331. package/models/components/paymentmethodupdate.js.map +1 -0
  332. package/models/components/transactionconnectionoptions.d.ts +6 -0
  333. package/models/components/transactionconnectionoptions.d.ts.map +1 -1
  334. package/models/components/transactionconnectionoptions.js +3 -0
  335. package/models/components/transactionconnectionoptions.js.map +1 -1
  336. package/models/operations/index.d.ts +1 -0
  337. package/models/operations/index.d.ts.map +1 -1
  338. package/models/operations/index.js +1 -0
  339. package/models/operations/index.js.map +1 -1
  340. package/models/operations/updatepaymentmethod.d.ts +26 -0
  341. package/models/operations/updatepaymentmethod.d.ts.map +1 -0
  342. package/models/operations/updatepaymentmethod.js +58 -0
  343. package/models/operations/updatepaymentmethod.js.map +1 -0
  344. package/package.json +1 -1
  345. package/sdk/paymentmethods.d.ts +7 -0
  346. package/sdk/paymentmethods.d.ts.map +1 -1
  347. package/sdk/paymentmethods.js +10 -0
  348. package/sdk/paymentmethods.js.map +1 -1
  349. package/src/funcs/accountUpdaterJobsCreate.ts +3 -16
  350. package/src/funcs/auditLogsList.ts +3 -16
  351. package/src/funcs/buyersCreate.ts +3 -16
  352. package/src/funcs/buyersDelete.ts +3 -16
  353. package/src/funcs/buyersGet.ts +3 -16
  354. package/src/funcs/buyersGiftCardsList.ts +3 -16
  355. package/src/funcs/buyersList.ts +3 -16
  356. package/src/funcs/buyersPaymentMethodsList.ts +3 -16
  357. package/src/funcs/buyersShippingDetailsCreate.ts +3 -16
  358. package/src/funcs/buyersShippingDetailsDelete.ts +3 -16
  359. package/src/funcs/buyersShippingDetailsGet.ts +3 -16
  360. package/src/funcs/buyersShippingDetailsList.ts +3 -16
  361. package/src/funcs/buyersShippingDetailsUpdate.ts +3 -16
  362. package/src/funcs/buyersUpdate.ts +3 -16
  363. package/src/funcs/cardSchemeDefinitionsList.ts +3 -16
  364. package/src/funcs/checkoutSessionsCreate.ts +3 -16
  365. package/src/funcs/checkoutSessionsDelete.ts +3 -16
  366. package/src/funcs/checkoutSessionsGet.ts +3 -16
  367. package/src/funcs/checkoutSessionsUpdate.ts +3 -16
  368. package/src/funcs/digitalWalletsCreate.ts +3 -16
  369. package/src/funcs/digitalWalletsDelete.ts +3 -16
  370. package/src/funcs/digitalWalletsDomainsCreate.ts +3 -16
  371. package/src/funcs/digitalWalletsDomainsDelete.ts +3 -16
  372. package/src/funcs/digitalWalletsGet.ts +3 -16
  373. package/src/funcs/digitalWalletsList.ts +3 -16
  374. package/src/funcs/digitalWalletsSessionsApplePay.ts +3 -16
  375. package/src/funcs/digitalWalletsSessionsClickToPay.ts +3 -16
  376. package/src/funcs/digitalWalletsSessionsGooglePay.ts +3 -16
  377. package/src/funcs/digitalWalletsUpdate.ts +3 -16
  378. package/src/funcs/giftCardsBalancesList.ts +3 -16
  379. package/src/funcs/giftCardsCreate.ts +3 -16
  380. package/src/funcs/giftCardsDelete.ts +3 -16
  381. package/src/funcs/giftCardsGet.ts +3 -16
  382. package/src/funcs/giftCardsList.ts +3 -16
  383. package/src/funcs/merchantAccountsCreate.ts +3 -16
  384. package/src/funcs/merchantAccountsGet.ts +3 -16
  385. package/src/funcs/merchantAccountsList.ts +3 -16
  386. package/src/funcs/merchantAccountsThreeDsConfigurationCreate.ts +3 -16
  387. package/src/funcs/merchantAccountsThreeDsConfigurationDelete.ts +3 -16
  388. package/src/funcs/merchantAccountsThreeDsConfigurationList.ts +3 -16
  389. package/src/funcs/merchantAccountsThreeDsConfigurationUpdate.ts +3 -16
  390. package/src/funcs/merchantAccountsUpdate.ts +3 -16
  391. package/src/funcs/paymentLinksCreate.ts +3 -16
  392. package/src/funcs/paymentLinksExpire.ts +3 -16
  393. package/src/funcs/paymentLinksGet.ts +3 -16
  394. package/src/funcs/paymentLinksList.ts +3 -16
  395. package/src/funcs/paymentMethodsCreate.ts +3 -16
  396. package/src/funcs/paymentMethodsDelete.ts +3 -16
  397. package/src/funcs/paymentMethodsGet.ts +3 -16
  398. package/src/funcs/paymentMethodsList.ts +3 -16
  399. package/src/funcs/paymentMethodsNetworkTokensCreate.ts +3 -16
  400. package/src/funcs/paymentMethodsNetworkTokensCryptogramCreate.ts +3 -16
  401. package/src/funcs/paymentMethodsNetworkTokensDelete.ts +3 -16
  402. package/src/funcs/paymentMethodsNetworkTokensList.ts +3 -16
  403. package/src/funcs/paymentMethodsNetworkTokensResume.ts +3 -16
  404. package/src/funcs/paymentMethodsNetworkTokensSuspend.ts +3 -16
  405. package/src/funcs/paymentMethodsPaymentServiceTokensCreate.ts +3 -16
  406. package/src/funcs/paymentMethodsPaymentServiceTokensDelete.ts +3 -16
  407. package/src/funcs/paymentMethodsPaymentServiceTokensList.ts +3 -16
  408. package/src/funcs/paymentMethodsUpdate.ts +243 -0
  409. package/src/funcs/paymentOptionsList.ts +3 -16
  410. package/src/funcs/paymentServiceDefinitionsGet.ts +3 -16
  411. package/src/funcs/paymentServiceDefinitionsList.ts +3 -16
  412. package/src/funcs/paymentServiceDefinitionsSession.ts +3 -16
  413. package/src/funcs/paymentServicesCreate.ts +3 -16
  414. package/src/funcs/paymentServicesDelete.ts +3 -16
  415. package/src/funcs/paymentServicesGet.ts +3 -16
  416. package/src/funcs/paymentServicesList.ts +3 -16
  417. package/src/funcs/paymentServicesSession.ts +3 -16
  418. package/src/funcs/paymentServicesUpdate.ts +3 -16
  419. package/src/funcs/paymentServicesVerify.ts +3 -16
  420. package/src/funcs/payoutsCreate.ts +3 -16
  421. package/src/funcs/payoutsGet.ts +3 -16
  422. package/src/funcs/payoutsList.ts +3 -16
  423. package/src/funcs/refundsGet.ts +3 -16
  424. package/src/funcs/reportExecutionsList.ts +3 -16
  425. package/src/funcs/reportsCreate.ts +3 -16
  426. package/src/funcs/reportsExecutionsGet.ts +3 -16
  427. package/src/funcs/reportsExecutionsList.ts +3 -16
  428. package/src/funcs/reportsExecutionsUrl.ts +3 -16
  429. package/src/funcs/reportsGet.ts +3 -16
  430. package/src/funcs/reportsList.ts +3 -16
  431. package/src/funcs/reportsPut.ts +3 -16
  432. package/src/funcs/threeDsScenariosCreate.ts +3 -16
  433. package/src/funcs/threeDsScenariosDelete.ts +3 -16
  434. package/src/funcs/threeDsScenariosList.ts +3 -16
  435. package/src/funcs/threeDsScenariosUpdate.ts +3 -16
  436. package/src/funcs/transactionsActionsList.ts +3 -16
  437. package/src/funcs/transactionsCancel.ts +3 -16
  438. package/src/funcs/transactionsCapture.ts +3 -16
  439. package/src/funcs/transactionsCreate.ts +3 -16
  440. package/src/funcs/transactionsEventsList.ts +3 -16
  441. package/src/funcs/transactionsGet.ts +3 -16
  442. package/src/funcs/transactionsList.ts +3 -16
  443. package/src/funcs/transactionsRefundsAllCreate.ts +3 -16
  444. package/src/funcs/transactionsRefundsCreate.ts +3 -16
  445. package/src/funcs/transactionsRefundsGet.ts +3 -16
  446. package/src/funcs/transactionsRefundsList.ts +3 -16
  447. package/src/funcs/transactionsSettlementsGet.ts +3 -16
  448. package/src/funcs/transactionsSettlementsList.ts +3 -16
  449. package/src/funcs/transactionsSync.ts +3 -16
  450. package/src/funcs/transactionsUpdate.ts +3 -16
  451. package/src/funcs/transactionsVoid.ts +3 -16
  452. package/src/lib/config.ts +3 -3
  453. package/src/lib/sdks.ts +3 -6
  454. package/src/models/components/ecommpayoptions.ts +44 -0
  455. package/src/models/components/index.ts +2 -0
  456. package/src/models/components/paymentmethodupdate.ts +57 -0
  457. package/src/models/components/transactionconnectionoptions.ts +12 -0
  458. package/src/models/operations/index.ts +1 -0
  459. package/src/models/operations/updatepaymentmethod.ts +54 -0
  460. package/src/sdk/paymentmethods.ts +22 -0
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -180,22 +181,8 @@ async function $do(
180
181
 
181
182
  const doResult = await client._do(req, {
182
183
  context,
183
- errorCodes: [
184
- "400",
185
- "401",
186
- "403",
187
- "404",
188
- "405",
189
- "409",
190
- "422",
191
- "425",
192
- "429",
193
- "4XX",
194
- "500",
195
- "502",
196
- "504",
197
- "5XX",
198
- ],
184
+ isErrorStatusCode: (statusCode: number) =>
185
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
199
186
  retryConfig: context.retryConfig,
200
187
  retryCodes: context.retryCodes,
201
188
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -170,22 +171,8 @@ async function $do(
170
171
 
171
172
  const doResult = await client._do(req, {
172
173
  context,
173
- errorCodes: [
174
- "400",
175
- "401",
176
- "403",
177
- "404",
178
- "405",
179
- "409",
180
- "422",
181
- "425",
182
- "429",
183
- "4XX",
184
- "500",
185
- "502",
186
- "504",
187
- "5XX",
188
- ],
174
+ isErrorStatusCode: (statusCode: number) =>
175
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
189
176
  retryConfig: context.retryConfig,
190
177
  retryCodes: context.retryCodes,
191
178
  });
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { Gr4vyCore } from "../core.js";
7
7
  import { encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
8
9
  import * as M from "../lib/matchers.js";
9
10
  import { compactMap } from "../lib/primitives.js";
10
11
  import { safeParse } from "../lib/schemas.js";
@@ -174,22 +175,8 @@ async function $do(
174
175
 
175
176
  const doResult = await client._do(req, {
176
177
  context,
177
- errorCodes: [
178
- "400",
179
- "401",
180
- "403",
181
- "404",
182
- "405",
183
- "409",
184
- "422",
185
- "425",
186
- "429",
187
- "4XX",
188
- "500",
189
- "502",
190
- "504",
191
- "5XX",
192
- ],
178
+ isErrorStatusCode: (statusCode: number) =>
179
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
193
180
  retryConfig: context.retryConfig,
194
181
  retryCodes: context.retryCodes,
195
182
  });
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { Gr4vyCore } from "../core.js";
7
7
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
8
9
  import * as M from "../lib/matchers.js";
9
10
  import { compactMap } from "../lib/primitives.js";
10
11
  import { safeParse } from "../lib/schemas.js";
@@ -184,22 +185,8 @@ async function $do(
184
185
 
185
186
  const doResult = await client._do(req, {
186
187
  context,
187
- errorCodes: [
188
- "400",
189
- "401",
190
- "403",
191
- "404",
192
- "405",
193
- "409",
194
- "422",
195
- "425",
196
- "429",
197
- "4XX",
198
- "500",
199
- "502",
200
- "504",
201
- "5XX",
202
- ],
188
+ isErrorStatusCode: (statusCode: number) =>
189
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
203
190
  retryConfig: context.retryConfig,
204
191
  retryCodes: context.retryCodes,
205
192
  });
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { Gr4vyCore } from "../core.js";
7
7
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
8
9
  import * as M from "../lib/matchers.js";
9
10
  import { compactMap } from "../lib/primitives.js";
10
11
  import { safeParse } from "../lib/schemas.js";
@@ -186,22 +187,8 @@ async function $do(
186
187
 
187
188
  const doResult = await client._do(req, {
188
189
  context,
189
- errorCodes: [
190
- "400",
191
- "401",
192
- "403",
193
- "404",
194
- "405",
195
- "409",
196
- "422",
197
- "425",
198
- "429",
199
- "4XX",
200
- "500",
201
- "502",
202
- "504",
203
- "5XX",
204
- ],
190
+ isErrorStatusCode: (statusCode: number) =>
191
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
205
192
  retryConfig: context.retryConfig,
206
193
  retryCodes: context.retryCodes,
207
194
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -183,22 +184,8 @@ async function $do(
183
184
 
184
185
  const doResult = await client._do(req, {
185
186
  context,
186
- errorCodes: [
187
- "400",
188
- "401",
189
- "403",
190
- "404",
191
- "405",
192
- "409",
193
- "422",
194
- "425",
195
- "429",
196
- "4XX",
197
- "500",
198
- "502",
199
- "504",
200
- "5XX",
201
- ],
187
+ isErrorStatusCode: (statusCode: number) =>
188
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
202
189
  retryConfig: context.retryConfig,
203
190
  retryCodes: context.retryCodes,
204
191
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -175,22 +176,8 @@ async function $do(
175
176
 
176
177
  const doResult = await client._do(req, {
177
178
  context,
178
- errorCodes: [
179
- "400",
180
- "401",
181
- "403",
182
- "404",
183
- "405",
184
- "409",
185
- "422",
186
- "425",
187
- "429",
188
- "4XX",
189
- "500",
190
- "502",
191
- "504",
192
- "5XX",
193
- ],
179
+ isErrorStatusCode: (statusCode: number) =>
180
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
194
181
  retryConfig: context.retryConfig,
195
182
  retryCodes: context.retryCodes,
196
183
  });
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { Gr4vyCore } from "../core.js";
7
7
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
8
9
  import * as M from "../lib/matchers.js";
9
10
  import { compactMap } from "../lib/primitives.js";
10
11
  import { safeParse } from "../lib/schemas.js";
@@ -173,22 +174,8 @@ async function $do(
173
174
 
174
175
  const doResult = await client._do(req, {
175
176
  context,
176
- errorCodes: [
177
- "400",
178
- "401",
179
- "403",
180
- "404",
181
- "405",
182
- "409",
183
- "422",
184
- "425",
185
- "429",
186
- "4XX",
187
- "500",
188
- "502",
189
- "504",
190
- "5XX",
191
- ],
177
+ isErrorStatusCode: (statusCode: number) =>
178
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
192
179
  retryConfig: context.retryConfig,
193
180
  retryCodes: context.retryCodes,
194
181
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeJSON } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -153,22 +154,8 @@ async function $do(
153
154
 
154
155
  const doResult = await client._do(req, {
155
156
  context,
156
- errorCodes: [
157
- "400",
158
- "401",
159
- "403",
160
- "404",
161
- "405",
162
- "409",
163
- "422",
164
- "425",
165
- "429",
166
- "4XX",
167
- "500",
168
- "502",
169
- "504",
170
- "5XX",
171
- ],
157
+ isErrorStatusCode: (statusCode: number) =>
158
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
172
159
  retryConfig: context.retryConfig,
173
160
  retryCodes: context.retryCodes,
174
161
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -171,22 +172,8 @@ async function $do(
171
172
 
172
173
  const doResult = await client._do(req, {
173
174
  context,
174
- errorCodes: [
175
- "400",
176
- "401",
177
- "403",
178
- "404",
179
- "405",
180
- "409",
181
- "422",
182
- "425",
183
- "429",
184
- "4XX",
185
- "500",
186
- "502",
187
- "504",
188
- "5XX",
189
- ],
175
+ isErrorStatusCode: (statusCode: number) =>
176
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
190
177
  retryConfig: context.retryConfig,
191
178
  retryCodes: context.retryCodes,
192
179
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -181,22 +182,8 @@ async function $do(
181
182
 
182
183
  const doResult = await client._do(req, {
183
184
  context,
184
- errorCodes: [
185
- "400",
186
- "401",
187
- "403",
188
- "404",
189
- "405",
190
- "409",
191
- "422",
192
- "425",
193
- "429",
194
- "4XX",
195
- "500",
196
- "502",
197
- "504",
198
- "5XX",
199
- ],
185
+ isErrorStatusCode: (statusCode: number) =>
186
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
200
187
  retryConfig: context.retryConfig,
201
188
  retryCodes: context.retryCodes,
202
189
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -170,22 +171,8 @@ async function $do(
170
171
 
171
172
  const doResult = await client._do(req, {
172
173
  context,
173
- errorCodes: [
174
- "400",
175
- "401",
176
- "403",
177
- "404",
178
- "405",
179
- "409",
180
- "422",
181
- "425",
182
- "429",
183
- "4XX",
184
- "500",
185
- "502",
186
- "504",
187
- "5XX",
188
- ],
174
+ isErrorStatusCode: (statusCode: number) =>
175
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
189
176
  retryConfig: context.retryConfig,
190
177
  retryCodes: context.retryCodes,
191
178
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -167,22 +168,8 @@ async function $do(
167
168
 
168
169
  const doResult = await client._do(req, {
169
170
  context,
170
- errorCodes: [
171
- "400",
172
- "401",
173
- "403",
174
- "404",
175
- "405",
176
- "409",
177
- "422",
178
- "425",
179
- "429",
180
- "4XX",
181
- "500",
182
- "502",
183
- "504",
184
- "5XX",
185
- ],
171
+ isErrorStatusCode: (statusCode: number) =>
172
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
186
173
  retryConfig: context.retryConfig,
187
174
  retryCodes: context.retryCodes,
188
175
  });
@@ -5,6 +5,7 @@
5
5
  import * as z from "zod/v3";
6
6
  import { Gr4vyCore } from "../core.js";
7
7
  import { encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
8
9
  import * as M from "../lib/matchers.js";
9
10
  import { compactMap } from "../lib/primitives.js";
10
11
  import { safeParse } from "../lib/schemas.js";
@@ -172,22 +173,8 @@ async function $do(
172
173
 
173
174
  const doResult = await client._do(req, {
174
175
  context,
175
- errorCodes: [
176
- "400",
177
- "401",
178
- "403",
179
- "404",
180
- "405",
181
- "409",
182
- "422",
183
- "425",
184
- "429",
185
- "4XX",
186
- "500",
187
- "502",
188
- "504",
189
- "5XX",
190
- ],
176
+ isErrorStatusCode: (statusCode: number) =>
177
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
191
178
  retryConfig: context.retryConfig,
192
179
  retryCodes: context.retryCodes,
193
180
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -182,22 +183,8 @@ async function $do(
182
183
 
183
184
  const doResult = await client._do(req, {
184
185
  context,
185
- errorCodes: [
186
- "400",
187
- "401",
188
- "403",
189
- "404",
190
- "405",
191
- "409",
192
- "422",
193
- "425",
194
- "429",
195
- "4XX",
196
- "500",
197
- "502",
198
- "504",
199
- "5XX",
200
- ],
186
+ isErrorStatusCode: (statusCode: number) =>
187
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
201
188
  retryConfig: context.retryConfig,
202
189
  retryCodes: context.retryCodes,
203
190
  });
@@ -5,6 +5,7 @@
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { dlv } from "../lib/dlv.js";
7
7
  import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
8
9
  import * as M from "../lib/matchers.js";
9
10
  import { compactMap } from "../lib/primitives.js";
10
11
  import { safeParse } from "../lib/schemas.js";
@@ -189,22 +190,8 @@ async function $do(
189
190
 
190
191
  const doResult = await client._do(req, {
191
192
  context,
192
- errorCodes: [
193
- "400",
194
- "401",
195
- "403",
196
- "404",
197
- "405",
198
- "409",
199
- "422",
200
- "425",
201
- "429",
202
- "4XX",
203
- "500",
204
- "502",
205
- "504",
206
- "5XX",
207
- ],
193
+ isErrorStatusCode: (statusCode: number) =>
194
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
208
195
  retryConfig: context.retryConfig,
209
196
  retryCodes: context.retryCodes,
210
197
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeJSON } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -153,22 +154,8 @@ async function $do(
153
154
 
154
155
  const doResult = await client._do(req, {
155
156
  context,
156
- errorCodes: [
157
- "400",
158
- "401",
159
- "403",
160
- "404",
161
- "405",
162
- "409",
163
- "422",
164
- "425",
165
- "429",
166
- "4XX",
167
- "500",
168
- "502",
169
- "504",
170
- "5XX",
171
- ],
157
+ isErrorStatusCode: (statusCode: number) =>
158
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
172
159
  retryConfig: context.retryConfig,
173
160
  retryCodes: context.retryCodes,
174
161
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -176,22 +177,8 @@ async function $do(
176
177
 
177
178
  const doResult = await client._do(req, {
178
179
  context,
179
- errorCodes: [
180
- "400",
181
- "401",
182
- "403",
183
- "404",
184
- "405",
185
- "409",
186
- "422",
187
- "425",
188
- "429",
189
- "4XX",
190
- "500",
191
- "502",
192
- "504",
193
- "5XX",
194
- ],
180
+ isErrorStatusCode: (statusCode: number) =>
181
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
195
182
  retryConfig: context.retryConfig,
196
183
  retryCodes: context.retryCodes,
197
184
  });
@@ -5,6 +5,7 @@
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { dlv } from "../lib/dlv.js";
7
7
  import { encodeFormQuery } from "../lib/encodings.js";
8
+ import { matchStatusCode } from "../lib/http.js";
8
9
  import * as M from "../lib/matchers.js";
9
10
  import { compactMap } from "../lib/primitives.js";
10
11
  import { safeParse } from "../lib/schemas.js";
@@ -197,22 +198,8 @@ async function $do(
197
198
 
198
199
  const doResult = await client._do(req, {
199
200
  context,
200
- errorCodes: [
201
- "400",
202
- "401",
203
- "403",
204
- "404",
205
- "405",
206
- "409",
207
- "422",
208
- "425",
209
- "429",
210
- "4XX",
211
- "500",
212
- "502",
213
- "504",
214
- "5XX",
215
- ],
201
+ isErrorStatusCode: (statusCode: number) =>
202
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
216
203
  retryConfig: context.retryConfig,
217
204
  retryCodes: context.retryCodes,
218
205
  });
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { Gr4vyCore } from "../core.js";
6
6
  import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
7
8
  import * as M from "../lib/matchers.js";
8
9
  import { compactMap } from "../lib/primitives.js";
9
10
  import { safeParse } from "../lib/schemas.js";
@@ -179,22 +180,8 @@ async function $do(
179
180
 
180
181
  const doResult = await client._do(req, {
181
182
  context,
182
- errorCodes: [
183
- "400",
184
- "401",
185
- "403",
186
- "404",
187
- "405",
188
- "409",
189
- "422",
190
- "425",
191
- "429",
192
- "4XX",
193
- "500",
194
- "502",
195
- "504",
196
- "5XX",
197
- ],
183
+ isErrorStatusCode: (statusCode: number) =>
184
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
198
185
  retryConfig: context.retryConfig,
199
186
  retryCodes: context.retryCodes,
200
187
  });