@channelpayments/node-sdk 1.113.0 → 1.121.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 (421) hide show
  1. package/dist/cjs/apis/ChannelPaymentsApi.d.ts +15 -2
  2. package/dist/cjs/apis/ChannelPaymentsApi.js +555 -1
  3. package/dist/cjs/models/AddressEntity.d.ts +1 -1
  4. package/dist/cjs/models/AddressEntity.js +1 -1
  5. package/dist/cjs/models/AvailablePaymentMethodEntity.d.ts +1 -1
  6. package/dist/cjs/models/AvailablePaymentMethodEntity.js +1 -1
  7. package/dist/cjs/models/BankDetailsServiceEntity.d.ts +1 -1
  8. package/dist/cjs/models/BankDetailsServiceEntity.js +1 -1
  9. package/dist/cjs/models/BuyerAddressDto.d.ts +1 -1
  10. package/dist/cjs/models/BuyerAddressDto.js +1 -1
  11. package/dist/cjs/models/BuyerEntity.d.ts +1 -1
  12. package/dist/cjs/models/BuyerEntity.js +1 -1
  13. package/dist/cjs/models/BuyerEntityAddress.d.ts +1 -1
  14. package/dist/cjs/models/BuyerEntityAddress.js +1 -1
  15. package/dist/cjs/models/BuyersAddressEntity.d.ts +1 -1
  16. package/dist/cjs/models/BuyersAddressEntity.js +1 -1
  17. package/dist/cjs/models/BuyersEntity.d.ts +1 -1
  18. package/dist/cjs/models/BuyersEntity.js +1 -1
  19. package/dist/cjs/models/BuyersEntityAddress.d.ts +1 -1
  20. package/dist/cjs/models/BuyersEntityAddress.js +1 -1
  21. package/dist/cjs/models/BuyersSearchEntity.d.ts +1 -1
  22. package/dist/cjs/models/BuyersSearchEntity.js +1 -1
  23. package/dist/cjs/models/BuyersServiceEntity.d.ts +1 -1
  24. package/dist/cjs/models/BuyersServiceEntity.js +1 -1
  25. package/dist/cjs/models/CFeeEntity.d.ts +1 -1
  26. package/dist/cjs/models/CFeeEntity.js +1 -1
  27. package/dist/cjs/models/CaptureTransactionDto.d.ts +1 -1
  28. package/dist/cjs/models/CaptureTransactionDto.js +1 -1
  29. package/dist/cjs/models/CardDetailsServiceEntity.d.ts +7 -1
  30. package/dist/cjs/models/CardDetailsServiceEntity.js +3 -1
  31. package/dist/cjs/models/CheckoutSessionEntity.d.ts +1 -1
  32. package/dist/cjs/models/CheckoutSessionEntity.js +1 -1
  33. package/dist/cjs/models/CheckoutSessionItemEntity.d.ts +1 -1
  34. package/dist/cjs/models/CheckoutSessionItemEntity.js +1 -1
  35. package/dist/cjs/models/CreateBuyerAddressDto.d.ts +1 -1
  36. package/dist/cjs/models/CreateBuyerAddressDto.js +1 -1
  37. package/dist/cjs/models/CreateBuyerDto.d.ts +1 -1
  38. package/dist/cjs/models/CreateBuyerDto.js +1 -1
  39. package/dist/cjs/models/CreateBuyerDtoAddress.d.ts +1 -1
  40. package/dist/cjs/models/CreateBuyerDtoAddress.js +1 -1
  41. package/dist/cjs/models/CreateCFeeDto.d.ts +1 -1
  42. package/dist/cjs/models/CreateCFeeDto.js +1 -1
  43. package/dist/cjs/models/CreateCheckoutSessionDto.d.ts +1 -1
  44. package/dist/cjs/models/CreateCheckoutSessionDto.js +1 -1
  45. package/dist/cjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
  46. package/dist/cjs/models/CreateCheckoutSessionItemDto.js +1 -1
  47. package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +1 -1
  48. package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.js +1 -1
  49. package/dist/cjs/models/CreateCheckoutSessionTransactionDto.d.ts +1 -1
  50. package/dist/cjs/models/CreateCheckoutSessionTransactionDto.js +1 -1
  51. package/dist/cjs/models/CreateCheckoutSessionTransactionDtoAddress.d.ts +1 -1
  52. package/dist/cjs/models/CreateCheckoutSessionTransactionDtoAddress.js +1 -1
  53. package/dist/cjs/models/CreateCheckoutSessionTransactionDtoPaymentMethod.d.ts +1 -1
  54. package/dist/cjs/models/CreateCheckoutSessionTransactionDtoPaymentMethod.js +1 -1
  55. package/dist/cjs/models/CreateEventConfigDto.d.ts +1 -1
  56. package/dist/cjs/models/CreateEventConfigDto.js +1 -1
  57. package/dist/cjs/models/CreateEventDomainDto.d.ts +1 -1
  58. package/dist/cjs/models/CreateEventDomainDto.js +1 -1
  59. package/dist/cjs/models/CreateEventDomainDtoBuyers.d.ts +1 -1
  60. package/dist/cjs/models/CreateEventDomainDtoBuyers.js +1 -1
  61. package/dist/cjs/models/CreateEventDomainDtoMerchants.d.ts +1 -1
  62. package/dist/cjs/models/CreateEventDomainDtoMerchants.js +1 -1
  63. package/dist/cjs/models/CreateEventDomainDtoPaymentMethods.d.ts +1 -1
  64. package/dist/cjs/models/CreateEventDomainDtoPaymentMethods.js +1 -1
  65. package/dist/cjs/models/CreateEventDomainDtoTransactions.d.ts +1 -1
  66. package/dist/cjs/models/CreateEventDomainDtoTransactions.js +1 -1
  67. package/dist/cjs/models/CreateEventDomainDtoUsers.d.ts +1 -1
  68. package/dist/cjs/models/CreateEventDomainDtoUsers.js +1 -1
  69. package/dist/cjs/models/CreateFeatureDto.d.ts +1 -1
  70. package/dist/cjs/models/CreateFeatureDto.js +1 -1
  71. package/dist/cjs/models/CreateInitialUserDto.d.ts +1 -1
  72. package/dist/cjs/models/CreateInitialUserDto.js +1 -1
  73. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +1 -1
  74. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +1 -1
  75. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +1 -1
  76. package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.js +1 -1
  77. package/dist/cjs/models/CreateMerchantAddressDto.d.ts +1 -1
  78. package/dist/cjs/models/CreateMerchantAddressDto.js +1 -1
  79. package/dist/cjs/models/CreateMerchantConnectorCredentialsDto.d.ts +1 -1
  80. package/dist/cjs/models/CreateMerchantConnectorCredentialsDto.js +1 -1
  81. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  82. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +1 -1
  83. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials.d.ts +1 -1
  84. package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials.js +1 -1
  85. package/dist/cjs/models/CreateMerchantCredentialsDto.d.ts +1 -1
  86. package/dist/cjs/models/CreateMerchantCredentialsDto.js +1 -1
  87. package/dist/cjs/models/CreateMerchantDto.d.ts +1 -1
  88. package/dist/cjs/models/CreateMerchantDto.js +1 -1
  89. package/dist/cjs/models/CreateMerchantDtoAddress.d.ts +1 -1
  90. package/dist/cjs/models/CreateMerchantDtoAddress.js +1 -1
  91. package/dist/cjs/models/CreatePaymentMethodDto.d.ts +1 -1
  92. package/dist/cjs/models/CreatePaymentMethodDto.js +1 -1
  93. package/dist/cjs/models/CreateStoredCardPaymentMethod.d.ts +12 -6
  94. package/dist/cjs/models/CreateStoredCardPaymentMethod.js +3 -1
  95. package/dist/cjs/models/CreateTransactionNoteDto.d.ts +1 -1
  96. package/dist/cjs/models/CreateTransactionNoteDto.js +1 -1
  97. package/dist/cjs/models/CreateTransactionRefundDto.d.ts +1 -1
  98. package/dist/cjs/models/CreateTransactionRefundDto.js +1 -1
  99. package/dist/cjs/models/CreateTransactionRequestDto.d.ts +1 -1
  100. package/dist/cjs/models/CreateTransactionRequestDto.js +1 -1
  101. package/dist/cjs/models/CreateTransactionRequestDtoPaymentMethod.d.ts +1 -1
  102. package/dist/cjs/models/CreateTransactionRequestDtoPaymentMethod.js +1 -1
  103. package/dist/cjs/models/CreateUserDto.d.ts +1 -1
  104. package/dist/cjs/models/CreateUserDto.js +1 -1
  105. package/dist/cjs/models/CreateWebhookDto.d.ts +1 -1
  106. package/dist/cjs/models/CreateWebhookDto.js +1 -1
  107. package/dist/cjs/models/CreateWebhookDtoEventDomains.d.ts +1 -1
  108. package/dist/cjs/models/CreateWebhookDtoEventDomains.js +1 -1
  109. package/dist/cjs/models/ErrorEntity.d.ts +5 -3
  110. package/dist/cjs/models/ErrorEntity.js +1 -1
  111. package/dist/cjs/models/ErrorEntity1.d.ts +9 -3
  112. package/dist/cjs/models/ErrorEntity1.js +3 -1
  113. package/dist/cjs/models/ErrorEntity2.d.ts +62 -0
  114. package/dist/cjs/models/ErrorEntity2.js +58 -0
  115. package/dist/cjs/models/FeatureEntity.d.ts +1 -1
  116. package/dist/cjs/models/FeatureEntity.js +1 -1
  117. package/dist/cjs/models/FeaturesEntity.d.ts +1 -1
  118. package/dist/cjs/models/FeaturesEntity.js +1 -1
  119. package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +1 -1
  120. package/dist/cjs/models/MerchantAccountServiceEntity.js +1 -1
  121. package/dist/cjs/models/MerchantAccountServiceEntityCFee.d.ts +1 -1
  122. package/dist/cjs/models/MerchantAccountServiceEntityCFee.js +1 -1
  123. package/dist/cjs/models/MerchantAddressEntity.d.ts +1 -1
  124. package/dist/cjs/models/MerchantAddressEntity.js +1 -1
  125. package/dist/cjs/models/MerchantConnectorCredentialsServiceEntity.d.ts +1 -1
  126. package/dist/cjs/models/MerchantConnectorCredentialsServiceEntity.js +1 -1
  127. package/dist/cjs/models/MerchantConnectorServiceEntity.d.ts +1 -1
  128. package/dist/cjs/models/MerchantConnectorServiceEntity.js +1 -1
  129. package/dist/cjs/models/MerchantCredentialsEntity.d.ts +1 -1
  130. package/dist/cjs/models/MerchantCredentialsEntity.js +1 -1
  131. package/dist/cjs/models/MerchantEntity.d.ts +1 -1
  132. package/dist/cjs/models/MerchantEntity.js +1 -1
  133. package/dist/cjs/models/MerchantEntityAddress.d.ts +1 -1
  134. package/dist/cjs/models/MerchantEntityAddress.js +1 -1
  135. package/dist/cjs/models/MerchantServiceEntity.d.ts +1 -1
  136. package/dist/cjs/models/MerchantServiceEntity.js +1 -1
  137. package/dist/cjs/models/PaymentMethodBaseEntity.d.ts +7 -1
  138. package/dist/cjs/models/PaymentMethodBaseEntity.js +3 -1
  139. package/dist/cjs/models/PaymentMethodDto.d.ts +1 -1
  140. package/dist/cjs/models/PaymentMethodDto.js +1 -1
  141. package/dist/cjs/models/PaymentMethodEntity.d.ts +1 -1
  142. package/dist/cjs/models/PaymentMethodEntity.js +1 -1
  143. package/dist/cjs/models/PaymentMethodEntityAccountDetails.d.ts +1 -1
  144. package/dist/cjs/models/PaymentMethodEntityAccountDetails.js +1 -1
  145. package/dist/cjs/models/PaymentMethodEntityBuyer.d.ts +1 -1
  146. package/dist/cjs/models/PaymentMethodEntityBuyer.js +1 -1
  147. package/dist/cjs/models/PaymentMethodEntityCardDetails.d.ts +7 -1
  148. package/dist/cjs/models/PaymentMethodEntityCardDetails.js +3 -1
  149. package/dist/cjs/models/PaymentMethodServiceEntity.d.ts +1 -1
  150. package/dist/cjs/models/PaymentMethodServiceEntity.js +1 -1
  151. package/dist/cjs/models/PaymentMethodsSearchEntity.d.ts +1 -1
  152. package/dist/cjs/models/PaymentMethodsSearchEntity.js +1 -1
  153. package/dist/cjs/models/ReturnedTransactionEntity.d.ts +1 -1
  154. package/dist/cjs/models/ReturnedTransactionEntity.js +1 -1
  155. package/dist/cjs/models/TagDto.d.ts +1 -1
  156. package/dist/cjs/models/TagDto.js +1 -1
  157. package/dist/cjs/models/TagEntity.d.ts +1 -1
  158. package/dist/cjs/models/TagEntity.js +1 -1
  159. package/dist/cjs/models/TransactionEntity.d.ts +7 -1
  160. package/dist/cjs/models/TransactionEntity.js +3 -1
  161. package/dist/cjs/models/TransactionEntityPaymentMethod.d.ts +7 -1
  162. package/dist/cjs/models/TransactionEntityPaymentMethod.js +3 -1
  163. package/dist/cjs/models/TransactionFeeDetailsEntity.d.ts +1 -1
  164. package/dist/cjs/models/TransactionFeeDetailsEntity.js +1 -1
  165. package/dist/cjs/models/TransactionNoteEntity.d.ts +1 -1
  166. package/dist/cjs/models/TransactionNoteEntity.js +1 -1
  167. package/dist/cjs/models/TransactionNoteHistoryEntity.d.ts +1 -1
  168. package/dist/cjs/models/TransactionNoteHistoryEntity.js +1 -1
  169. package/dist/cjs/models/TransactionRefundBaseEntity.d.ts +1 -1
  170. package/dist/cjs/models/TransactionRefundBaseEntity.js +1 -1
  171. package/dist/cjs/models/TransactionRefundEntity.d.ts +1 -1
  172. package/dist/cjs/models/TransactionRefundEntity.js +1 -1
  173. package/dist/cjs/models/TransactionRefundsSearchEntity.d.ts +1 -1
  174. package/dist/cjs/models/TransactionRefundsSearchEntity.js +1 -1
  175. package/dist/cjs/models/TransactionReturnsSearchEntity.d.ts +1 -1
  176. package/dist/cjs/models/TransactionReturnsSearchEntity.js +1 -1
  177. package/dist/cjs/models/TransactionsSearchEntity.d.ts +1 -1
  178. package/dist/cjs/models/TransactionsSearchEntity.js +1 -1
  179. package/dist/cjs/models/UpdateBuyerDto.d.ts +1 -1
  180. package/dist/cjs/models/UpdateBuyerDto.js +1 -1
  181. package/dist/cjs/models/UpdateFeatureDto.d.ts +1 -1
  182. package/dist/cjs/models/UpdateFeatureDto.js +1 -1
  183. package/dist/cjs/models/UpdateMerchantCredentialsDto.d.ts +1 -1
  184. package/dist/cjs/models/UpdateMerchantCredentialsDto.js +1 -1
  185. package/dist/cjs/models/UpdateMerchantDto.d.ts +1 -1
  186. package/dist/cjs/models/UpdateMerchantDto.js +1 -1
  187. package/dist/cjs/models/UpdatePaymentMethodStatusDto.d.ts +1 -1
  188. package/dist/cjs/models/UpdatePaymentMethodStatusDto.js +1 -1
  189. package/dist/cjs/models/UpdateSelfDto.d.ts +1 -1
  190. package/dist/cjs/models/UpdateSelfDto.js +1 -1
  191. package/dist/cjs/models/UpdateTransactionNoteDto.d.ts +1 -1
  192. package/dist/cjs/models/UpdateTransactionNoteDto.js +1 -1
  193. package/dist/cjs/models/UpdateUserDto.d.ts +1 -1
  194. package/dist/cjs/models/UpdateUserDto.js +1 -1
  195. package/dist/cjs/models/UpdateWebhookDto.d.ts +1 -1
  196. package/dist/cjs/models/UpdateWebhookDto.js +1 -1
  197. package/dist/cjs/models/UserEntity.d.ts +1 -1
  198. package/dist/cjs/models/UserEntity.js +1 -1
  199. package/dist/cjs/models/UserServiceEntity.d.ts +1 -1
  200. package/dist/cjs/models/UserServiceEntity.js +1 -1
  201. package/dist/cjs/models/UsersSearchEntity.d.ts +1 -1
  202. package/dist/cjs/models/UsersSearchEntity.js +1 -1
  203. package/dist/cjs/models/ValidateMerchantCredentialsDto.d.ts +1 -1
  204. package/dist/cjs/models/ValidateMerchantCredentialsDto.js +1 -1
  205. package/dist/cjs/models/WebhooksEntity.d.ts +1 -1
  206. package/dist/cjs/models/WebhooksEntity.js +1 -1
  207. package/dist/cjs/models/index.d.ts +1 -0
  208. package/dist/cjs/models/index.js +1 -0
  209. package/dist/cjs/runtime.d.ts +1 -1
  210. package/dist/cjs/runtime.js +2 -2
  211. package/dist/mjs/apis/ChannelPaymentsApi.d.ts +15 -2
  212. package/dist/mjs/apis/ChannelPaymentsApi.js +552 -2
  213. package/dist/mjs/models/AddressEntity.d.ts +1 -1
  214. package/dist/mjs/models/AddressEntity.js +1 -1
  215. package/dist/mjs/models/AvailablePaymentMethodEntity.d.ts +1 -1
  216. package/dist/mjs/models/AvailablePaymentMethodEntity.js +1 -1
  217. package/dist/mjs/models/BankDetailsServiceEntity.d.ts +1 -1
  218. package/dist/mjs/models/BankDetailsServiceEntity.js +1 -1
  219. package/dist/mjs/models/BuyerAddressDto.d.ts +1 -1
  220. package/dist/mjs/models/BuyerAddressDto.js +1 -1
  221. package/dist/mjs/models/BuyerEntity.d.ts +1 -1
  222. package/dist/mjs/models/BuyerEntity.js +1 -1
  223. package/dist/mjs/models/BuyerEntityAddress.d.ts +1 -1
  224. package/dist/mjs/models/BuyerEntityAddress.js +1 -1
  225. package/dist/mjs/models/BuyersAddressEntity.d.ts +1 -1
  226. package/dist/mjs/models/BuyersAddressEntity.js +1 -1
  227. package/dist/mjs/models/BuyersEntity.d.ts +1 -1
  228. package/dist/mjs/models/BuyersEntity.js +1 -1
  229. package/dist/mjs/models/BuyersEntityAddress.d.ts +1 -1
  230. package/dist/mjs/models/BuyersEntityAddress.js +1 -1
  231. package/dist/mjs/models/BuyersSearchEntity.d.ts +1 -1
  232. package/dist/mjs/models/BuyersSearchEntity.js +1 -1
  233. package/dist/mjs/models/BuyersServiceEntity.d.ts +1 -1
  234. package/dist/mjs/models/BuyersServiceEntity.js +1 -1
  235. package/dist/mjs/models/CFeeEntity.d.ts +1 -1
  236. package/dist/mjs/models/CFeeEntity.js +1 -1
  237. package/dist/mjs/models/CaptureTransactionDto.d.ts +1 -1
  238. package/dist/mjs/models/CaptureTransactionDto.js +1 -1
  239. package/dist/mjs/models/CardDetailsServiceEntity.d.ts +7 -1
  240. package/dist/mjs/models/CardDetailsServiceEntity.js +4 -2
  241. package/dist/mjs/models/CheckoutSessionEntity.d.ts +1 -1
  242. package/dist/mjs/models/CheckoutSessionEntity.js +1 -1
  243. package/dist/mjs/models/CheckoutSessionItemEntity.d.ts +1 -1
  244. package/dist/mjs/models/CheckoutSessionItemEntity.js +1 -1
  245. package/dist/mjs/models/CreateBuyerAddressDto.d.ts +1 -1
  246. package/dist/mjs/models/CreateBuyerAddressDto.js +1 -1
  247. package/dist/mjs/models/CreateBuyerDto.d.ts +1 -1
  248. package/dist/mjs/models/CreateBuyerDto.js +1 -1
  249. package/dist/mjs/models/CreateBuyerDtoAddress.d.ts +1 -1
  250. package/dist/mjs/models/CreateBuyerDtoAddress.js +1 -1
  251. package/dist/mjs/models/CreateCFeeDto.d.ts +1 -1
  252. package/dist/mjs/models/CreateCFeeDto.js +1 -1
  253. package/dist/mjs/models/CreateCheckoutSessionDto.d.ts +1 -1
  254. package/dist/mjs/models/CreateCheckoutSessionDto.js +1 -1
  255. package/dist/mjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
  256. package/dist/mjs/models/CreateCheckoutSessionItemDto.js +1 -1
  257. package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +1 -1
  258. package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.js +1 -1
  259. package/dist/mjs/models/CreateCheckoutSessionTransactionDto.d.ts +1 -1
  260. package/dist/mjs/models/CreateCheckoutSessionTransactionDto.js +1 -1
  261. package/dist/mjs/models/CreateCheckoutSessionTransactionDtoAddress.d.ts +1 -1
  262. package/dist/mjs/models/CreateCheckoutSessionTransactionDtoAddress.js +1 -1
  263. package/dist/mjs/models/CreateCheckoutSessionTransactionDtoPaymentMethod.d.ts +1 -1
  264. package/dist/mjs/models/CreateCheckoutSessionTransactionDtoPaymentMethod.js +1 -1
  265. package/dist/mjs/models/CreateEventConfigDto.d.ts +1 -1
  266. package/dist/mjs/models/CreateEventConfigDto.js +1 -1
  267. package/dist/mjs/models/CreateEventDomainDto.d.ts +1 -1
  268. package/dist/mjs/models/CreateEventDomainDto.js +1 -1
  269. package/dist/mjs/models/CreateEventDomainDtoBuyers.d.ts +1 -1
  270. package/dist/mjs/models/CreateEventDomainDtoBuyers.js +1 -1
  271. package/dist/mjs/models/CreateEventDomainDtoMerchants.d.ts +1 -1
  272. package/dist/mjs/models/CreateEventDomainDtoMerchants.js +1 -1
  273. package/dist/mjs/models/CreateEventDomainDtoPaymentMethods.d.ts +1 -1
  274. package/dist/mjs/models/CreateEventDomainDtoPaymentMethods.js +1 -1
  275. package/dist/mjs/models/CreateEventDomainDtoTransactions.d.ts +1 -1
  276. package/dist/mjs/models/CreateEventDomainDtoTransactions.js +1 -1
  277. package/dist/mjs/models/CreateEventDomainDtoUsers.d.ts +1 -1
  278. package/dist/mjs/models/CreateEventDomainDtoUsers.js +1 -1
  279. package/dist/mjs/models/CreateFeatureDto.d.ts +1 -1
  280. package/dist/mjs/models/CreateFeatureDto.js +1 -1
  281. package/dist/mjs/models/CreateInitialUserDto.d.ts +1 -1
  282. package/dist/mjs/models/CreateInitialUserDto.js +1 -1
  283. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +1 -1
  284. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +1 -1
  285. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +1 -1
  286. package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.js +1 -1
  287. package/dist/mjs/models/CreateMerchantAddressDto.d.ts +1 -1
  288. package/dist/mjs/models/CreateMerchantAddressDto.js +1 -1
  289. package/dist/mjs/models/CreateMerchantConnectorCredentialsDto.d.ts +1 -1
  290. package/dist/mjs/models/CreateMerchantConnectorCredentialsDto.js +1 -1
  291. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
  292. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +1 -1
  293. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials.d.ts +1 -1
  294. package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials.js +1 -1
  295. package/dist/mjs/models/CreateMerchantCredentialsDto.d.ts +1 -1
  296. package/dist/mjs/models/CreateMerchantCredentialsDto.js +1 -1
  297. package/dist/mjs/models/CreateMerchantDto.d.ts +1 -1
  298. package/dist/mjs/models/CreateMerchantDto.js +1 -1
  299. package/dist/mjs/models/CreateMerchantDtoAddress.d.ts +1 -1
  300. package/dist/mjs/models/CreateMerchantDtoAddress.js +1 -1
  301. package/dist/mjs/models/CreatePaymentMethodDto.d.ts +1 -1
  302. package/dist/mjs/models/CreatePaymentMethodDto.js +1 -1
  303. package/dist/mjs/models/CreateStoredCardPaymentMethod.d.ts +12 -6
  304. package/dist/mjs/models/CreateStoredCardPaymentMethod.js +3 -1
  305. package/dist/mjs/models/CreateTransactionNoteDto.d.ts +1 -1
  306. package/dist/mjs/models/CreateTransactionNoteDto.js +1 -1
  307. package/dist/mjs/models/CreateTransactionRefundDto.d.ts +1 -1
  308. package/dist/mjs/models/CreateTransactionRefundDto.js +1 -1
  309. package/dist/mjs/models/CreateTransactionRequestDto.d.ts +1 -1
  310. package/dist/mjs/models/CreateTransactionRequestDto.js +1 -1
  311. package/dist/mjs/models/CreateTransactionRequestDtoPaymentMethod.d.ts +1 -1
  312. package/dist/mjs/models/CreateTransactionRequestDtoPaymentMethod.js +1 -1
  313. package/dist/mjs/models/CreateUserDto.d.ts +1 -1
  314. package/dist/mjs/models/CreateUserDto.js +1 -1
  315. package/dist/mjs/models/CreateWebhookDto.d.ts +1 -1
  316. package/dist/mjs/models/CreateWebhookDto.js +1 -1
  317. package/dist/mjs/models/CreateWebhookDtoEventDomains.d.ts +1 -1
  318. package/dist/mjs/models/CreateWebhookDtoEventDomains.js +1 -1
  319. package/dist/mjs/models/ErrorEntity.d.ts +5 -3
  320. package/dist/mjs/models/ErrorEntity.js +1 -1
  321. package/dist/mjs/models/ErrorEntity1.d.ts +9 -3
  322. package/dist/mjs/models/ErrorEntity1.js +3 -1
  323. package/dist/mjs/models/ErrorEntity2.d.ts +62 -0
  324. package/dist/mjs/models/ErrorEntity2.js +51 -0
  325. package/dist/mjs/models/FeatureEntity.d.ts +1 -1
  326. package/dist/mjs/models/FeatureEntity.js +1 -1
  327. package/dist/mjs/models/FeaturesEntity.d.ts +1 -1
  328. package/dist/mjs/models/FeaturesEntity.js +1 -1
  329. package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +1 -1
  330. package/dist/mjs/models/MerchantAccountServiceEntity.js +1 -1
  331. package/dist/mjs/models/MerchantAccountServiceEntityCFee.d.ts +1 -1
  332. package/dist/mjs/models/MerchantAccountServiceEntityCFee.js +1 -1
  333. package/dist/mjs/models/MerchantAddressEntity.d.ts +1 -1
  334. package/dist/mjs/models/MerchantAddressEntity.js +1 -1
  335. package/dist/mjs/models/MerchantConnectorCredentialsServiceEntity.d.ts +1 -1
  336. package/dist/mjs/models/MerchantConnectorCredentialsServiceEntity.js +1 -1
  337. package/dist/mjs/models/MerchantConnectorServiceEntity.d.ts +1 -1
  338. package/dist/mjs/models/MerchantConnectorServiceEntity.js +1 -1
  339. package/dist/mjs/models/MerchantCredentialsEntity.d.ts +1 -1
  340. package/dist/mjs/models/MerchantCredentialsEntity.js +1 -1
  341. package/dist/mjs/models/MerchantEntity.d.ts +1 -1
  342. package/dist/mjs/models/MerchantEntity.js +1 -1
  343. package/dist/mjs/models/MerchantEntityAddress.d.ts +1 -1
  344. package/dist/mjs/models/MerchantEntityAddress.js +1 -1
  345. package/dist/mjs/models/MerchantServiceEntity.d.ts +1 -1
  346. package/dist/mjs/models/MerchantServiceEntity.js +1 -1
  347. package/dist/mjs/models/PaymentMethodBaseEntity.d.ts +7 -1
  348. package/dist/mjs/models/PaymentMethodBaseEntity.js +3 -1
  349. package/dist/mjs/models/PaymentMethodDto.d.ts +1 -1
  350. package/dist/mjs/models/PaymentMethodDto.js +1 -1
  351. package/dist/mjs/models/PaymentMethodEntity.d.ts +1 -1
  352. package/dist/mjs/models/PaymentMethodEntity.js +1 -1
  353. package/dist/mjs/models/PaymentMethodEntityAccountDetails.d.ts +1 -1
  354. package/dist/mjs/models/PaymentMethodEntityAccountDetails.js +1 -1
  355. package/dist/mjs/models/PaymentMethodEntityBuyer.d.ts +1 -1
  356. package/dist/mjs/models/PaymentMethodEntityBuyer.js +1 -1
  357. package/dist/mjs/models/PaymentMethodEntityCardDetails.d.ts +7 -1
  358. package/dist/mjs/models/PaymentMethodEntityCardDetails.js +4 -2
  359. package/dist/mjs/models/PaymentMethodServiceEntity.d.ts +1 -1
  360. package/dist/mjs/models/PaymentMethodServiceEntity.js +1 -1
  361. package/dist/mjs/models/PaymentMethodsSearchEntity.d.ts +1 -1
  362. package/dist/mjs/models/PaymentMethodsSearchEntity.js +1 -1
  363. package/dist/mjs/models/ReturnedTransactionEntity.d.ts +1 -1
  364. package/dist/mjs/models/ReturnedTransactionEntity.js +1 -1
  365. package/dist/mjs/models/TagDto.d.ts +1 -1
  366. package/dist/mjs/models/TagDto.js +1 -1
  367. package/dist/mjs/models/TagEntity.d.ts +1 -1
  368. package/dist/mjs/models/TagEntity.js +1 -1
  369. package/dist/mjs/models/TransactionEntity.d.ts +7 -1
  370. package/dist/mjs/models/TransactionEntity.js +3 -1
  371. package/dist/mjs/models/TransactionEntityPaymentMethod.d.ts +7 -1
  372. package/dist/mjs/models/TransactionEntityPaymentMethod.js +3 -1
  373. package/dist/mjs/models/TransactionFeeDetailsEntity.d.ts +1 -1
  374. package/dist/mjs/models/TransactionFeeDetailsEntity.js +1 -1
  375. package/dist/mjs/models/TransactionNoteEntity.d.ts +1 -1
  376. package/dist/mjs/models/TransactionNoteEntity.js +1 -1
  377. package/dist/mjs/models/TransactionNoteHistoryEntity.d.ts +1 -1
  378. package/dist/mjs/models/TransactionNoteHistoryEntity.js +1 -1
  379. package/dist/mjs/models/TransactionRefundBaseEntity.d.ts +1 -1
  380. package/dist/mjs/models/TransactionRefundBaseEntity.js +1 -1
  381. package/dist/mjs/models/TransactionRefundEntity.d.ts +1 -1
  382. package/dist/mjs/models/TransactionRefundEntity.js +1 -1
  383. package/dist/mjs/models/TransactionRefundsSearchEntity.d.ts +1 -1
  384. package/dist/mjs/models/TransactionRefundsSearchEntity.js +1 -1
  385. package/dist/mjs/models/TransactionReturnsSearchEntity.d.ts +1 -1
  386. package/dist/mjs/models/TransactionReturnsSearchEntity.js +1 -1
  387. package/dist/mjs/models/TransactionsSearchEntity.d.ts +1 -1
  388. package/dist/mjs/models/TransactionsSearchEntity.js +1 -1
  389. package/dist/mjs/models/UpdateBuyerDto.d.ts +1 -1
  390. package/dist/mjs/models/UpdateBuyerDto.js +1 -1
  391. package/dist/mjs/models/UpdateFeatureDto.d.ts +1 -1
  392. package/dist/mjs/models/UpdateFeatureDto.js +1 -1
  393. package/dist/mjs/models/UpdateMerchantCredentialsDto.d.ts +1 -1
  394. package/dist/mjs/models/UpdateMerchantCredentialsDto.js +1 -1
  395. package/dist/mjs/models/UpdateMerchantDto.d.ts +1 -1
  396. package/dist/mjs/models/UpdateMerchantDto.js +1 -1
  397. package/dist/mjs/models/UpdatePaymentMethodStatusDto.d.ts +1 -1
  398. package/dist/mjs/models/UpdatePaymentMethodStatusDto.js +1 -1
  399. package/dist/mjs/models/UpdateSelfDto.d.ts +1 -1
  400. package/dist/mjs/models/UpdateSelfDto.js +1 -1
  401. package/dist/mjs/models/UpdateTransactionNoteDto.d.ts +1 -1
  402. package/dist/mjs/models/UpdateTransactionNoteDto.js +1 -1
  403. package/dist/mjs/models/UpdateUserDto.d.ts +1 -1
  404. package/dist/mjs/models/UpdateUserDto.js +1 -1
  405. package/dist/mjs/models/UpdateWebhookDto.d.ts +1 -1
  406. package/dist/mjs/models/UpdateWebhookDto.js +1 -1
  407. package/dist/mjs/models/UserEntity.d.ts +1 -1
  408. package/dist/mjs/models/UserEntity.js +1 -1
  409. package/dist/mjs/models/UserServiceEntity.d.ts +1 -1
  410. package/dist/mjs/models/UserServiceEntity.js +1 -1
  411. package/dist/mjs/models/UsersSearchEntity.d.ts +1 -1
  412. package/dist/mjs/models/UsersSearchEntity.js +1 -1
  413. package/dist/mjs/models/ValidateMerchantCredentialsDto.d.ts +1 -1
  414. package/dist/mjs/models/ValidateMerchantCredentialsDto.js +1 -1
  415. package/dist/mjs/models/WebhooksEntity.d.ts +1 -1
  416. package/dist/mjs/models/WebhooksEntity.js +1 -1
  417. package/dist/mjs/models/index.d.ts +1 -0
  418. package/dist/mjs/models/index.js +1 -0
  419. package/dist/mjs/runtime.d.ts +1 -1
  420. package/dist/mjs/runtime.js +2 -2
  421. package/package.json +1 -1
@@ -1,13 +1,13 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * Channel Payments API v1.113.0
4
+ * Channel Payments API v1.121.0
5
5
  *
6
6
  * NOTE: This class is auto generated. Do not edit the class manually.
7
7
  *
8
8
  */
9
9
  import * as runtime from '../runtime';
10
- import { BuyersEntityFromJSON, BuyersSearchEntityFromJSON, CaptureTransactionDtoToJSON, CheckoutSessionEntityFromJSON, CreateBuyerDtoToJSON, CreateCheckoutSessionDtoToJSON, CreatePaymentMethodDtoToJSON, CreateTransactionRefundDtoToJSON, CreateTransactionRequestDtoToJSON, ErrorEntityFromJSON, MerchantEntityFromJSON, PaymentMethodEntityFromJSON, PaymentMethodsSearchEntityFromJSON, TransactionEntityFromJSON, TransactionRefundEntityFromJSON, TransactionRefundsSearchEntityFromJSON, TransactionReturnsSearchEntityFromJSON, TransactionsSearchEntityFromJSON, UpdateBuyerDtoToJSON, } from '../models';
10
+ import { BuyersEntityFromJSON, BuyersSearchEntityFromJSON, CaptureTransactionDtoToJSON, CheckoutSessionEntityFromJSON, CreateBuyerDtoToJSON, CreateCheckoutSessionDtoToJSON, CreatePaymentMethodDtoToJSON, CreateTransactionNoteDtoToJSON, CreateTransactionRefundDtoToJSON, CreateTransactionRequestDtoToJSON, ErrorEntityFromJSON, MerchantEntityFromJSON, PaymentMethodEntityFromJSON, PaymentMethodsSearchEntityFromJSON, TransactionEntityFromJSON, TransactionNoteEntityFromJSON, TransactionRefundEntityFromJSON, TransactionRefundsSearchEntityFromJSON, TransactionReturnsSearchEntityFromJSON, TransactionsSearchEntityFromJSON, UpdateBuyerDtoToJSON, } from '../models';
11
11
  /**
12
12
  *
13
13
  */
@@ -62,6 +62,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
62
62
  const error = await errorResponse.value();
63
63
  throw error;
64
64
  }
65
+ if (rawResponse.status === 502) {
66
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
67
+ const error = await errorResponse.value();
68
+ throw error;
69
+ }
70
+ if (rawResponse.status === 503) {
71
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
72
+ const error = await errorResponse.value();
73
+ throw error;
74
+ }
75
+ if (rawResponse.status === 504) {
76
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
77
+ const error = await errorResponse.value();
78
+ throw error;
79
+ }
65
80
  if (!response) {
66
81
  response = new runtime.TextApiResponse(rawResponse);
67
82
  }
@@ -108,6 +123,11 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
108
123
  const error = await errorResponse.value();
109
124
  throw error;
110
125
  }
126
+ if (rawResponse.status === 403) {
127
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
128
+ const error = await errorResponse.value();
129
+ throw error;
130
+ }
111
131
  if (rawResponse.status === 404) {
112
132
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
113
133
  const error = await errorResponse.value();
@@ -118,6 +138,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
118
138
  const error = await errorResponse.value();
119
139
  throw error;
120
140
  }
141
+ if (rawResponse.status === 502) {
142
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
143
+ const error = await errorResponse.value();
144
+ throw error;
145
+ }
146
+ if (rawResponse.status === 503) {
147
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
148
+ const error = await errorResponse.value();
149
+ throw error;
150
+ }
151
+ if (rawResponse.status === 504) {
152
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
153
+ const error = await errorResponse.value();
154
+ throw error;
155
+ }
121
156
  if (!response) {
122
157
  response = new runtime.TextApiResponse(rawResponse);
123
158
  }
@@ -170,6 +205,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
170
205
  const error = await errorResponse.value();
171
206
  throw error;
172
207
  }
208
+ if (rawResponse.status === 502) {
209
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
210
+ const error = await errorResponse.value();
211
+ throw error;
212
+ }
213
+ if (rawResponse.status === 503) {
214
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
215
+ const error = await errorResponse.value();
216
+ throw error;
217
+ }
218
+ if (rawResponse.status === 504) {
219
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
220
+ const error = await errorResponse.value();
221
+ throw error;
222
+ }
173
223
  if (!response) {
174
224
  response = new runtime.TextApiResponse(rawResponse);
175
225
  }
@@ -221,11 +271,101 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
221
271
  const error = await errorResponse.value();
222
272
  throw error;
223
273
  }
274
+ if (rawResponse.status === 404) {
275
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
276
+ const error = await errorResponse.value();
277
+ throw error;
278
+ }
279
+ if (rawResponse.status === 500) {
280
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
281
+ const error = await errorResponse.value();
282
+ throw error;
283
+ }
284
+ if (rawResponse.status === 502) {
285
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
286
+ const error = await errorResponse.value();
287
+ throw error;
288
+ }
289
+ if (rawResponse.status === 503) {
290
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
291
+ const error = await errorResponse.value();
292
+ throw error;
293
+ }
294
+ if (rawResponse.status === 504) {
295
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
296
+ const error = await errorResponse.value();
297
+ throw error;
298
+ }
299
+ if (!response) {
300
+ response = new runtime.TextApiResponse(rawResponse);
301
+ }
302
+ return await response.value();
303
+ }
304
+ /**
305
+ * Attempts to create a transaction note
306
+ * Create transaction note
307
+ */
308
+ async createTransactionNote(requestParameters) {
309
+ if (requestParameters.documentId === null || requestParameters.documentId === undefined) {
310
+ throw new runtime.RequiredError('documentId', 'Required parameter \'documentId\' was null or undefined when calling createTransactionNote.');
311
+ }
312
+ if (requestParameters.content === null || requestParameters.content === undefined) {
313
+ throw new runtime.RequiredError('content', 'Required parameter \'content\' was null or undefined when calling createTransactionNote.');
314
+ }
315
+ const queryParameters = {};
316
+ const headerParameters = {};
317
+ headerParameters['Content-Type'] = 'application/json';
318
+ const rawResponse = await this.request({
319
+ path: `/transaction-notes`,
320
+ method: 'POST',
321
+ headers: headerParameters,
322
+ query: queryParameters,
323
+ body: CreateTransactionNoteDtoToJSON(requestParameters),
324
+ });
325
+ let response;
326
+ if (rawResponse.status === 201) {
327
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionNoteEntityFromJSON(jsonValue));
328
+ }
329
+ if (rawResponse.status === 400) {
330
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
331
+ const error = await errorResponse.value();
332
+ throw error;
333
+ }
334
+ if (rawResponse.status === 401) {
335
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
336
+ const error = await errorResponse.value();
337
+ throw error;
338
+ }
339
+ if (rawResponse.status === 403) {
340
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
341
+ const error = await errorResponse.value();
342
+ throw error;
343
+ }
344
+ if (rawResponse.status === 404) {
345
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
346
+ const error = await errorResponse.value();
347
+ throw error;
348
+ }
224
349
  if (rawResponse.status === 500) {
225
350
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
226
351
  const error = await errorResponse.value();
227
352
  throw error;
228
353
  }
354
+ if (rawResponse.status === 502) {
355
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
356
+ const error = await errorResponse.value();
357
+ throw error;
358
+ }
359
+ if (rawResponse.status === 503) {
360
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
361
+ const error = await errorResponse.value();
362
+ throw error;
363
+ }
364
+ if (rawResponse.status === 504) {
365
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
366
+ const error = await errorResponse.value();
367
+ throw error;
368
+ }
229
369
  if (!response) {
230
370
  response = new runtime.TextApiResponse(rawResponse);
231
371
  }
@@ -261,6 +401,11 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
261
401
  const error = await errorResponse.value();
262
402
  throw error;
263
403
  }
404
+ if (rawResponse.status === 403) {
405
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
406
+ const error = await errorResponse.value();
407
+ throw error;
408
+ }
264
409
  if (rawResponse.status === 404) {
265
410
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
266
411
  const error = await errorResponse.value();
@@ -271,6 +416,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
271
416
  const error = await errorResponse.value();
272
417
  throw error;
273
418
  }
419
+ if (rawResponse.status === 502) {
420
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
421
+ const error = await errorResponse.value();
422
+ throw error;
423
+ }
424
+ if (rawResponse.status === 503) {
425
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
426
+ const error = await errorResponse.value();
427
+ throw error;
428
+ }
429
+ if (rawResponse.status === 504) {
430
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
431
+ const error = await errorResponse.value();
432
+ throw error;
433
+ }
274
434
  if (!response) {
275
435
  response = new runtime.TextApiResponse(rawResponse);
276
436
  }
@@ -311,11 +471,96 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
311
471
  const error = await errorResponse.value();
312
472
  throw error;
313
473
  }
474
+ if (rawResponse.status === 404) {
475
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
476
+ const error = await errorResponse.value();
477
+ throw error;
478
+ }
314
479
  if (rawResponse.status === 500) {
315
480
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
316
481
  const error = await errorResponse.value();
317
482
  throw error;
318
483
  }
484
+ if (rawResponse.status === 502) {
485
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
486
+ const error = await errorResponse.value();
487
+ throw error;
488
+ }
489
+ if (rawResponse.status === 503) {
490
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
491
+ const error = await errorResponse.value();
492
+ throw error;
493
+ }
494
+ if (rawResponse.status === 504) {
495
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
496
+ const error = await errorResponse.value();
497
+ throw error;
498
+ }
499
+ if (!response) {
500
+ response = new runtime.TextApiResponse(rawResponse);
501
+ }
502
+ return await response.value();
503
+ }
504
+ /**
505
+ * Attempts to delete a transaction note.
506
+ * Delete transaction note.
507
+ */
508
+ async deleteTransactionNote(requestParameters) {
509
+ if (requestParameters.noteId === null || requestParameters.noteId === undefined) {
510
+ throw new runtime.RequiredError('noteId', 'Required parameter \'noteId\' was null or undefined when calling deleteTransactionNote.');
511
+ }
512
+ const queryParameters = {};
513
+ const headerParameters = {};
514
+ const rawResponse = await this.request({
515
+ path: `/transaction-notes/{noteId}`.replace(`{${"noteId"}}`, encodeURIComponent(String(requestParameters.noteId))),
516
+ method: 'DELETE',
517
+ headers: headerParameters,
518
+ query: queryParameters,
519
+ });
520
+ let response;
521
+ if (rawResponse.status === 200) {
522
+ response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => TransactionNoteEntityFromJSON(jsonValue));
523
+ }
524
+ if (rawResponse.status === 400) {
525
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
526
+ const error = await errorResponse.value();
527
+ throw error;
528
+ }
529
+ if (rawResponse.status === 401) {
530
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
531
+ const error = await errorResponse.value();
532
+ throw error;
533
+ }
534
+ if (rawResponse.status === 403) {
535
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
536
+ const error = await errorResponse.value();
537
+ throw error;
538
+ }
539
+ if (rawResponse.status === 404) {
540
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
541
+ const error = await errorResponse.value();
542
+ throw error;
543
+ }
544
+ if (rawResponse.status === 500) {
545
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
546
+ const error = await errorResponse.value();
547
+ throw error;
548
+ }
549
+ if (rawResponse.status === 502) {
550
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
551
+ const error = await errorResponse.value();
552
+ throw error;
553
+ }
554
+ if (rawResponse.status === 503) {
555
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
556
+ const error = await errorResponse.value();
557
+ throw error;
558
+ }
559
+ if (rawResponse.status === 504) {
560
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
561
+ const error = await errorResponse.value();
562
+ throw error;
563
+ }
319
564
  if (!response) {
320
565
  response = new runtime.TextApiResponse(rawResponse);
321
566
  }
@@ -351,6 +596,11 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
351
596
  const error = await errorResponse.value();
352
597
  throw error;
353
598
  }
599
+ if (rawResponse.status === 403) {
600
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
601
+ const error = await errorResponse.value();
602
+ throw error;
603
+ }
354
604
  if (rawResponse.status === 404) {
355
605
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
356
606
  const error = await errorResponse.value();
@@ -361,6 +611,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
361
611
  const error = await errorResponse.value();
362
612
  throw error;
363
613
  }
614
+ if (rawResponse.status === 502) {
615
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
616
+ const error = await errorResponse.value();
617
+ throw error;
618
+ }
619
+ if (rawResponse.status === 503) {
620
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
621
+ const error = await errorResponse.value();
622
+ throw error;
623
+ }
624
+ if (rawResponse.status === 504) {
625
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
626
+ const error = await errorResponse.value();
627
+ throw error;
628
+ }
364
629
  if (!response) {
365
630
  response = new runtime.TextApiResponse(rawResponse);
366
631
  }
@@ -411,6 +676,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
411
676
  const error = await errorResponse.value();
412
677
  throw error;
413
678
  }
679
+ if (rawResponse.status === 502) {
680
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
681
+ const error = await errorResponse.value();
682
+ throw error;
683
+ }
684
+ if (rawResponse.status === 503) {
685
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
686
+ const error = await errorResponse.value();
687
+ throw error;
688
+ }
689
+ if (rawResponse.status === 504) {
690
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
691
+ const error = await errorResponse.value();
692
+ throw error;
693
+ }
414
694
  if (!response) {
415
695
  response = new runtime.TextApiResponse(rawResponse);
416
696
  }
@@ -433,11 +713,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
433
713
  if (rawResponse.status === 200) {
434
714
  response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => jsonValue.map(MerchantEntityFromJSON));
435
715
  }
716
+ if (rawResponse.status === 400) {
717
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
718
+ const error = await errorResponse.value();
719
+ throw error;
720
+ }
436
721
  if (rawResponse.status === 401) {
437
722
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
438
723
  const error = await errorResponse.value();
439
724
  throw error;
440
725
  }
726
+ if (rawResponse.status === 403) {
727
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
728
+ const error = await errorResponse.value();
729
+ throw error;
730
+ }
441
731
  if (rawResponse.status === 404) {
442
732
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
443
733
  const error = await errorResponse.value();
@@ -448,6 +738,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
448
738
  const error = await errorResponse.value();
449
739
  throw error;
450
740
  }
741
+ if (rawResponse.status === 502) {
742
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
743
+ const error = await errorResponse.value();
744
+ throw error;
745
+ }
746
+ if (rawResponse.status === 503) {
747
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
748
+ const error = await errorResponse.value();
749
+ throw error;
750
+ }
751
+ if (rawResponse.status === 504) {
752
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
753
+ const error = await errorResponse.value();
754
+ throw error;
755
+ }
451
756
  if (!response) {
452
757
  response = new runtime.TextApiResponse(rawResponse);
453
758
  }
@@ -470,11 +775,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
470
775
  if (rawResponse.status === 200) {
471
776
  response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => MerchantEntityFromJSON(jsonValue));
472
777
  }
778
+ if (rawResponse.status === 400) {
779
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
780
+ const error = await errorResponse.value();
781
+ throw error;
782
+ }
473
783
  if (rawResponse.status === 401) {
474
784
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
475
785
  const error = await errorResponse.value();
476
786
  throw error;
477
787
  }
788
+ if (rawResponse.status === 403) {
789
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
790
+ const error = await errorResponse.value();
791
+ throw error;
792
+ }
478
793
  if (rawResponse.status === 404) {
479
794
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
480
795
  const error = await errorResponse.value();
@@ -485,6 +800,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
485
800
  const error = await errorResponse.value();
486
801
  throw error;
487
802
  }
803
+ if (rawResponse.status === 502) {
804
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
805
+ const error = await errorResponse.value();
806
+ throw error;
807
+ }
808
+ if (rawResponse.status === 503) {
809
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
810
+ const error = await errorResponse.value();
811
+ throw error;
812
+ }
813
+ if (rawResponse.status === 504) {
814
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
815
+ const error = await errorResponse.value();
816
+ throw error;
817
+ }
488
818
  if (!response) {
489
819
  response = new runtime.TextApiResponse(rawResponse);
490
820
  }
@@ -525,11 +855,31 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
525
855
  const error = await errorResponse.value();
526
856
  throw error;
527
857
  }
858
+ if (rawResponse.status === 404) {
859
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
860
+ const error = await errorResponse.value();
861
+ throw error;
862
+ }
528
863
  if (rawResponse.status === 500) {
529
864
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
530
865
  const error = await errorResponse.value();
531
866
  throw error;
532
867
  }
868
+ if (rawResponse.status === 502) {
869
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
870
+ const error = await errorResponse.value();
871
+ throw error;
872
+ }
873
+ if (rawResponse.status === 503) {
874
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
875
+ const error = await errorResponse.value();
876
+ throw error;
877
+ }
878
+ if (rawResponse.status === 504) {
879
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
880
+ const error = await errorResponse.value();
881
+ throw error;
882
+ }
533
883
  if (!response) {
534
884
  response = new runtime.TextApiResponse(rawResponse);
535
885
  }
@@ -580,6 +930,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
580
930
  const error = await errorResponse.value();
581
931
  throw error;
582
932
  }
933
+ if (rawResponse.status === 502) {
934
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
935
+ const error = await errorResponse.value();
936
+ throw error;
937
+ }
938
+ if (rawResponse.status === 503) {
939
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
940
+ const error = await errorResponse.value();
941
+ throw error;
942
+ }
943
+ if (rawResponse.status === 504) {
944
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
945
+ const error = await errorResponse.value();
946
+ throw error;
947
+ }
583
948
  if (!response) {
584
949
  response = new runtime.TextApiResponse(rawResponse);
585
950
  }
@@ -630,6 +995,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
630
995
  const error = await errorResponse.value();
631
996
  throw error;
632
997
  }
998
+ if (rawResponse.status === 502) {
999
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1000
+ const error = await errorResponse.value();
1001
+ throw error;
1002
+ }
1003
+ if (rawResponse.status === 503) {
1004
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1005
+ const error = await errorResponse.value();
1006
+ throw error;
1007
+ }
1008
+ if (rawResponse.status === 504) {
1009
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1010
+ const error = await errorResponse.value();
1011
+ throw error;
1012
+ }
633
1013
  if (!response) {
634
1014
  response = new runtime.TextApiResponse(rawResponse);
635
1015
  }
@@ -685,6 +1065,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
685
1065
  const error = await errorResponse.value();
686
1066
  throw error;
687
1067
  }
1068
+ if (rawResponse.status === 502) {
1069
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1070
+ const error = await errorResponse.value();
1071
+ throw error;
1072
+ }
1073
+ if (rawResponse.status === 503) {
1074
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1075
+ const error = await errorResponse.value();
1076
+ throw error;
1077
+ }
1078
+ if (rawResponse.status === 504) {
1079
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1080
+ const error = await errorResponse.value();
1081
+ throw error;
1082
+ }
688
1083
  if (!response) {
689
1084
  response = new runtime.TextApiResponse(rawResponse);
690
1085
  }
@@ -756,6 +1151,11 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
756
1151
  const error = await errorResponse.value();
757
1152
  throw error;
758
1153
  }
1154
+ if (rawResponse.status === 403) {
1155
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1156
+ const error = await errorResponse.value();
1157
+ throw error;
1158
+ }
759
1159
  if (rawResponse.status === 404) {
760
1160
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
761
1161
  const error = await errorResponse.value();
@@ -766,6 +1166,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
766
1166
  const error = await errorResponse.value();
767
1167
  throw error;
768
1168
  }
1169
+ if (rawResponse.status === 502) {
1170
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1171
+ const error = await errorResponse.value();
1172
+ throw error;
1173
+ }
1174
+ if (rawResponse.status === 503) {
1175
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1176
+ const error = await errorResponse.value();
1177
+ throw error;
1178
+ }
1179
+ if (rawResponse.status === 504) {
1180
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1181
+ const error = await errorResponse.value();
1182
+ throw error;
1183
+ }
769
1184
  if (!response) {
770
1185
  response = new runtime.TextApiResponse(rawResponse);
771
1186
  }
@@ -837,11 +1252,36 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
837
1252
  const error = await errorResponse.value();
838
1253
  throw error;
839
1254
  }
1255
+ if (rawResponse.status === 403) {
1256
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1257
+ const error = await errorResponse.value();
1258
+ throw error;
1259
+ }
1260
+ if (rawResponse.status === 404) {
1261
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1262
+ const error = await errorResponse.value();
1263
+ throw error;
1264
+ }
840
1265
  if (rawResponse.status === 500) {
841
1266
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
842
1267
  const error = await errorResponse.value();
843
1268
  throw error;
844
1269
  }
1270
+ if (rawResponse.status === 502) {
1271
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1272
+ const error = await errorResponse.value();
1273
+ throw error;
1274
+ }
1275
+ if (rawResponse.status === 503) {
1276
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1277
+ const error = await errorResponse.value();
1278
+ throw error;
1279
+ }
1280
+ if (rawResponse.status === 504) {
1281
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1282
+ const error = await errorResponse.value();
1283
+ throw error;
1284
+ }
845
1285
  if (!response) {
846
1286
  response = new runtime.TextApiResponse(rawResponse);
847
1287
  }
@@ -919,6 +1359,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
919
1359
  const error = await errorResponse.value();
920
1360
  throw error;
921
1361
  }
1362
+ if (rawResponse.status === 502) {
1363
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1364
+ const error = await errorResponse.value();
1365
+ throw error;
1366
+ }
1367
+ if (rawResponse.status === 503) {
1368
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1369
+ const error = await errorResponse.value();
1370
+ throw error;
1371
+ }
1372
+ if (rawResponse.status === 504) {
1373
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1374
+ const error = await errorResponse.value();
1375
+ throw error;
1376
+ }
922
1377
  if (!response) {
923
1378
  response = new runtime.TextApiResponse(rawResponse);
924
1379
  }
@@ -990,6 +1445,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
990
1445
  const error = await errorResponse.value();
991
1446
  throw error;
992
1447
  }
1448
+ if (rawResponse.status === 502) {
1449
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1450
+ const error = await errorResponse.value();
1451
+ throw error;
1452
+ }
1453
+ if (rawResponse.status === 503) {
1454
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1455
+ const error = await errorResponse.value();
1456
+ throw error;
1457
+ }
1458
+ if (rawResponse.status === 504) {
1459
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1460
+ const error = await errorResponse.value();
1461
+ throw error;
1462
+ }
993
1463
  if (!response) {
994
1464
  response = new runtime.TextApiResponse(rawResponse);
995
1465
  }
@@ -1112,11 +1582,36 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
1112
1582
  const error = await errorResponse.value();
1113
1583
  throw error;
1114
1584
  }
1585
+ if (rawResponse.status === 403) {
1586
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1587
+ const error = await errorResponse.value();
1588
+ throw error;
1589
+ }
1590
+ if (rawResponse.status === 404) {
1591
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1592
+ const error = await errorResponse.value();
1593
+ throw error;
1594
+ }
1115
1595
  if (rawResponse.status === 500) {
1116
1596
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1117
1597
  const error = await errorResponse.value();
1118
1598
  throw error;
1119
1599
  }
1600
+ if (rawResponse.status === 502) {
1601
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1602
+ const error = await errorResponse.value();
1603
+ throw error;
1604
+ }
1605
+ if (rawResponse.status === 503) {
1606
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1607
+ const error = await errorResponse.value();
1608
+ throw error;
1609
+ }
1610
+ if (rawResponse.status === 504) {
1611
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1612
+ const error = await errorResponse.value();
1613
+ throw error;
1614
+ }
1120
1615
  if (!response) {
1121
1616
  response = new runtime.TextApiResponse(rawResponse);
1122
1617
  }
@@ -1159,11 +1654,31 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
1159
1654
  const error = await errorResponse.value();
1160
1655
  throw error;
1161
1656
  }
1657
+ if (rawResponse.status === 404) {
1658
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1659
+ const error = await errorResponse.value();
1660
+ throw error;
1661
+ }
1162
1662
  if (rawResponse.status === 500) {
1163
1663
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1164
1664
  const error = await errorResponse.value();
1165
1665
  throw error;
1166
1666
  }
1667
+ if (rawResponse.status === 502) {
1668
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1669
+ const error = await errorResponse.value();
1670
+ throw error;
1671
+ }
1672
+ if (rawResponse.status === 503) {
1673
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1674
+ const error = await errorResponse.value();
1675
+ throw error;
1676
+ }
1677
+ if (rawResponse.status === 504) {
1678
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1679
+ const error = await errorResponse.value();
1680
+ throw error;
1681
+ }
1167
1682
  if (!response) {
1168
1683
  response = new runtime.TextApiResponse(rawResponse);
1169
1684
  }
@@ -1201,6 +1716,11 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
1201
1716
  const error = await errorResponse.value();
1202
1717
  throw error;
1203
1718
  }
1719
+ if (rawResponse.status === 403) {
1720
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1721
+ const error = await errorResponse.value();
1722
+ throw error;
1723
+ }
1204
1724
  if (rawResponse.status === 404) {
1205
1725
  const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1206
1726
  const error = await errorResponse.value();
@@ -1211,6 +1731,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
1211
1731
  const error = await errorResponse.value();
1212
1732
  throw error;
1213
1733
  }
1734
+ if (rawResponse.status === 502) {
1735
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1736
+ const error = await errorResponse.value();
1737
+ throw error;
1738
+ }
1739
+ if (rawResponse.status === 503) {
1740
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1741
+ const error = await errorResponse.value();
1742
+ throw error;
1743
+ }
1744
+ if (rawResponse.status === 504) {
1745
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1746
+ const error = await errorResponse.value();
1747
+ throw error;
1748
+ }
1214
1749
  if (!response) {
1215
1750
  response = new runtime.TextApiResponse(rawResponse);
1216
1751
  }
@@ -1261,6 +1796,21 @@ export class ChannelPaymentsApi extends runtime.BaseAPI {
1261
1796
  const error = await errorResponse.value();
1262
1797
  throw error;
1263
1798
  }
1799
+ if (rawResponse.status === 502) {
1800
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1801
+ const error = await errorResponse.value();
1802
+ throw error;
1803
+ }
1804
+ if (rawResponse.status === 503) {
1805
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1806
+ const error = await errorResponse.value();
1807
+ throw error;
1808
+ }
1809
+ if (rawResponse.status === 504) {
1810
+ const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => ErrorEntityFromJSON(jsonValue));
1811
+ const error = await errorResponse.value();
1812
+ throw error;
1813
+ }
1264
1814
  if (!response) {
1265
1815
  response = new runtime.TextApiResponse(rawResponse);
1266
1816
  }