@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.
- package/dist/cjs/apis/ChannelPaymentsApi.d.ts +15 -2
- package/dist/cjs/apis/ChannelPaymentsApi.js +555 -1
- package/dist/cjs/models/AddressEntity.d.ts +1 -1
- package/dist/cjs/models/AddressEntity.js +1 -1
- package/dist/cjs/models/AvailablePaymentMethodEntity.d.ts +1 -1
- package/dist/cjs/models/AvailablePaymentMethodEntity.js +1 -1
- package/dist/cjs/models/BankDetailsServiceEntity.d.ts +1 -1
- package/dist/cjs/models/BankDetailsServiceEntity.js +1 -1
- package/dist/cjs/models/BuyerAddressDto.d.ts +1 -1
- package/dist/cjs/models/BuyerAddressDto.js +1 -1
- package/dist/cjs/models/BuyerEntity.d.ts +1 -1
- package/dist/cjs/models/BuyerEntity.js +1 -1
- package/dist/cjs/models/BuyerEntityAddress.d.ts +1 -1
- package/dist/cjs/models/BuyerEntityAddress.js +1 -1
- package/dist/cjs/models/BuyersAddressEntity.d.ts +1 -1
- package/dist/cjs/models/BuyersAddressEntity.js +1 -1
- package/dist/cjs/models/BuyersEntity.d.ts +1 -1
- package/dist/cjs/models/BuyersEntity.js +1 -1
- package/dist/cjs/models/BuyersEntityAddress.d.ts +1 -1
- package/dist/cjs/models/BuyersEntityAddress.js +1 -1
- package/dist/cjs/models/BuyersSearchEntity.d.ts +1 -1
- package/dist/cjs/models/BuyersSearchEntity.js +1 -1
- package/dist/cjs/models/BuyersServiceEntity.d.ts +1 -1
- package/dist/cjs/models/BuyersServiceEntity.js +1 -1
- package/dist/cjs/models/CFeeEntity.d.ts +1 -1
- package/dist/cjs/models/CFeeEntity.js +1 -1
- package/dist/cjs/models/CaptureTransactionDto.d.ts +1 -1
- package/dist/cjs/models/CaptureTransactionDto.js +1 -1
- package/dist/cjs/models/CardDetailsServiceEntity.d.ts +7 -1
- package/dist/cjs/models/CardDetailsServiceEntity.js +3 -1
- package/dist/cjs/models/CheckoutSessionEntity.d.ts +1 -1
- package/dist/cjs/models/CheckoutSessionEntity.js +1 -1
- package/dist/cjs/models/CheckoutSessionItemEntity.d.ts +1 -1
- package/dist/cjs/models/CheckoutSessionItemEntity.js +1 -1
- package/dist/cjs/models/CreateBuyerAddressDto.d.ts +1 -1
- package/dist/cjs/models/CreateBuyerAddressDto.js +1 -1
- package/dist/cjs/models/CreateBuyerDto.d.ts +1 -1
- package/dist/cjs/models/CreateBuyerDto.js +1 -1
- package/dist/cjs/models/CreateBuyerDtoAddress.d.ts +1 -1
- package/dist/cjs/models/CreateBuyerDtoAddress.js +1 -1
- package/dist/cjs/models/CreateCFeeDto.d.ts +1 -1
- package/dist/cjs/models/CreateCFeeDto.js +1 -1
- package/dist/cjs/models/CreateCheckoutSessionDto.d.ts +1 -1
- package/dist/cjs/models/CreateCheckoutSessionDto.js +1 -1
- package/dist/cjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
- package/dist/cjs/models/CreateCheckoutSessionItemDto.js +1 -1
- package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +1 -1
- package/dist/cjs/models/CreateCheckoutSessionPaymentMethodDto.js +1 -1
- package/dist/cjs/models/CreateCheckoutSessionTransactionDto.d.ts +1 -1
- package/dist/cjs/models/CreateCheckoutSessionTransactionDto.js +1 -1
- package/dist/cjs/models/CreateCheckoutSessionTransactionDtoAddress.d.ts +1 -1
- package/dist/cjs/models/CreateCheckoutSessionTransactionDtoAddress.js +1 -1
- package/dist/cjs/models/CreateCheckoutSessionTransactionDtoPaymentMethod.d.ts +1 -1
- package/dist/cjs/models/CreateCheckoutSessionTransactionDtoPaymentMethod.js +1 -1
- package/dist/cjs/models/CreateEventConfigDto.d.ts +1 -1
- package/dist/cjs/models/CreateEventConfigDto.js +1 -1
- package/dist/cjs/models/CreateEventDomainDto.d.ts +1 -1
- package/dist/cjs/models/CreateEventDomainDto.js +1 -1
- package/dist/cjs/models/CreateEventDomainDtoBuyers.d.ts +1 -1
- package/dist/cjs/models/CreateEventDomainDtoBuyers.js +1 -1
- package/dist/cjs/models/CreateEventDomainDtoMerchants.d.ts +1 -1
- package/dist/cjs/models/CreateEventDomainDtoMerchants.js +1 -1
- package/dist/cjs/models/CreateEventDomainDtoPaymentMethods.d.ts +1 -1
- package/dist/cjs/models/CreateEventDomainDtoPaymentMethods.js +1 -1
- package/dist/cjs/models/CreateEventDomainDtoTransactions.d.ts +1 -1
- package/dist/cjs/models/CreateEventDomainDtoTransactions.js +1 -1
- package/dist/cjs/models/CreateEventDomainDtoUsers.d.ts +1 -1
- package/dist/cjs/models/CreateEventDomainDtoUsers.js +1 -1
- package/dist/cjs/models/CreateFeatureDto.d.ts +1 -1
- package/dist/cjs/models/CreateFeatureDto.js +1 -1
- package/dist/cjs/models/CreateInitialUserDto.d.ts +1 -1
- package/dist/cjs/models/CreateInitialUserDto.js +1 -1
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +1 -1
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.js +1 -1
- package/dist/cjs/models/CreateMerchantAddressDto.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantAddressDto.js +1 -1
- package/dist/cjs/models/CreateMerchantConnectorCredentialsDto.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantConnectorCredentialsDto.js +1 -1
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +1 -1
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials.js +1 -1
- package/dist/cjs/models/CreateMerchantCredentialsDto.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantCredentialsDto.js +1 -1
- package/dist/cjs/models/CreateMerchantDto.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantDto.js +1 -1
- package/dist/cjs/models/CreateMerchantDtoAddress.d.ts +1 -1
- package/dist/cjs/models/CreateMerchantDtoAddress.js +1 -1
- package/dist/cjs/models/CreatePaymentMethodDto.d.ts +1 -1
- package/dist/cjs/models/CreatePaymentMethodDto.js +1 -1
- package/dist/cjs/models/CreateStoredCardPaymentMethod.d.ts +12 -6
- package/dist/cjs/models/CreateStoredCardPaymentMethod.js +3 -1
- package/dist/cjs/models/CreateTransactionNoteDto.d.ts +1 -1
- package/dist/cjs/models/CreateTransactionNoteDto.js +1 -1
- package/dist/cjs/models/CreateTransactionRefundDto.d.ts +1 -1
- package/dist/cjs/models/CreateTransactionRefundDto.js +1 -1
- package/dist/cjs/models/CreateTransactionRequestDto.d.ts +1 -1
- package/dist/cjs/models/CreateTransactionRequestDto.js +1 -1
- package/dist/cjs/models/CreateTransactionRequestDtoPaymentMethod.d.ts +1 -1
- package/dist/cjs/models/CreateTransactionRequestDtoPaymentMethod.js +1 -1
- package/dist/cjs/models/CreateUserDto.d.ts +1 -1
- package/dist/cjs/models/CreateUserDto.js +1 -1
- package/dist/cjs/models/CreateWebhookDto.d.ts +1 -1
- package/dist/cjs/models/CreateWebhookDto.js +1 -1
- package/dist/cjs/models/CreateWebhookDtoEventDomains.d.ts +1 -1
- package/dist/cjs/models/CreateWebhookDtoEventDomains.js +1 -1
- package/dist/cjs/models/ErrorEntity.d.ts +5 -3
- package/dist/cjs/models/ErrorEntity.js +1 -1
- package/dist/cjs/models/ErrorEntity1.d.ts +9 -3
- package/dist/cjs/models/ErrorEntity1.js +3 -1
- package/dist/cjs/models/ErrorEntity2.d.ts +62 -0
- package/dist/cjs/models/ErrorEntity2.js +58 -0
- package/dist/cjs/models/FeatureEntity.d.ts +1 -1
- package/dist/cjs/models/FeatureEntity.js +1 -1
- package/dist/cjs/models/FeaturesEntity.d.ts +1 -1
- package/dist/cjs/models/FeaturesEntity.js +1 -1
- package/dist/cjs/models/MerchantAccountServiceEntity.d.ts +1 -1
- package/dist/cjs/models/MerchantAccountServiceEntity.js +1 -1
- package/dist/cjs/models/MerchantAccountServiceEntityCFee.d.ts +1 -1
- package/dist/cjs/models/MerchantAccountServiceEntityCFee.js +1 -1
- package/dist/cjs/models/MerchantAddressEntity.d.ts +1 -1
- package/dist/cjs/models/MerchantAddressEntity.js +1 -1
- package/dist/cjs/models/MerchantConnectorCredentialsServiceEntity.d.ts +1 -1
- package/dist/cjs/models/MerchantConnectorCredentialsServiceEntity.js +1 -1
- package/dist/cjs/models/MerchantConnectorServiceEntity.d.ts +1 -1
- package/dist/cjs/models/MerchantConnectorServiceEntity.js +1 -1
- package/dist/cjs/models/MerchantCredentialsEntity.d.ts +1 -1
- package/dist/cjs/models/MerchantCredentialsEntity.js +1 -1
- package/dist/cjs/models/MerchantEntity.d.ts +1 -1
- package/dist/cjs/models/MerchantEntity.js +1 -1
- package/dist/cjs/models/MerchantEntityAddress.d.ts +1 -1
- package/dist/cjs/models/MerchantEntityAddress.js +1 -1
- package/dist/cjs/models/MerchantServiceEntity.d.ts +1 -1
- package/dist/cjs/models/MerchantServiceEntity.js +1 -1
- package/dist/cjs/models/PaymentMethodBaseEntity.d.ts +7 -1
- package/dist/cjs/models/PaymentMethodBaseEntity.js +3 -1
- package/dist/cjs/models/PaymentMethodDto.d.ts +1 -1
- package/dist/cjs/models/PaymentMethodDto.js +1 -1
- package/dist/cjs/models/PaymentMethodEntity.d.ts +1 -1
- package/dist/cjs/models/PaymentMethodEntity.js +1 -1
- package/dist/cjs/models/PaymentMethodEntityAccountDetails.d.ts +1 -1
- package/dist/cjs/models/PaymentMethodEntityAccountDetails.js +1 -1
- package/dist/cjs/models/PaymentMethodEntityBuyer.d.ts +1 -1
- package/dist/cjs/models/PaymentMethodEntityBuyer.js +1 -1
- package/dist/cjs/models/PaymentMethodEntityCardDetails.d.ts +7 -1
- package/dist/cjs/models/PaymentMethodEntityCardDetails.js +3 -1
- package/dist/cjs/models/PaymentMethodServiceEntity.d.ts +1 -1
- package/dist/cjs/models/PaymentMethodServiceEntity.js +1 -1
- package/dist/cjs/models/PaymentMethodsSearchEntity.d.ts +1 -1
- package/dist/cjs/models/PaymentMethodsSearchEntity.js +1 -1
- package/dist/cjs/models/ReturnedTransactionEntity.d.ts +1 -1
- package/dist/cjs/models/ReturnedTransactionEntity.js +1 -1
- package/dist/cjs/models/TagDto.d.ts +1 -1
- package/dist/cjs/models/TagDto.js +1 -1
- package/dist/cjs/models/TagEntity.d.ts +1 -1
- package/dist/cjs/models/TagEntity.js +1 -1
- package/dist/cjs/models/TransactionEntity.d.ts +7 -1
- package/dist/cjs/models/TransactionEntity.js +3 -1
- package/dist/cjs/models/TransactionEntityPaymentMethod.d.ts +7 -1
- package/dist/cjs/models/TransactionEntityPaymentMethod.js +3 -1
- package/dist/cjs/models/TransactionFeeDetailsEntity.d.ts +1 -1
- package/dist/cjs/models/TransactionFeeDetailsEntity.js +1 -1
- package/dist/cjs/models/TransactionNoteEntity.d.ts +1 -1
- package/dist/cjs/models/TransactionNoteEntity.js +1 -1
- package/dist/cjs/models/TransactionNoteHistoryEntity.d.ts +1 -1
- package/dist/cjs/models/TransactionNoteHistoryEntity.js +1 -1
- package/dist/cjs/models/TransactionRefundBaseEntity.d.ts +1 -1
- package/dist/cjs/models/TransactionRefundBaseEntity.js +1 -1
- package/dist/cjs/models/TransactionRefundEntity.d.ts +1 -1
- package/dist/cjs/models/TransactionRefundEntity.js +1 -1
- package/dist/cjs/models/TransactionRefundsSearchEntity.d.ts +1 -1
- package/dist/cjs/models/TransactionRefundsSearchEntity.js +1 -1
- package/dist/cjs/models/TransactionReturnsSearchEntity.d.ts +1 -1
- package/dist/cjs/models/TransactionReturnsSearchEntity.js +1 -1
- package/dist/cjs/models/TransactionsSearchEntity.d.ts +1 -1
- package/dist/cjs/models/TransactionsSearchEntity.js +1 -1
- package/dist/cjs/models/UpdateBuyerDto.d.ts +1 -1
- package/dist/cjs/models/UpdateBuyerDto.js +1 -1
- package/dist/cjs/models/UpdateFeatureDto.d.ts +1 -1
- package/dist/cjs/models/UpdateFeatureDto.js +1 -1
- package/dist/cjs/models/UpdateMerchantCredentialsDto.d.ts +1 -1
- package/dist/cjs/models/UpdateMerchantCredentialsDto.js +1 -1
- package/dist/cjs/models/UpdateMerchantDto.d.ts +1 -1
- package/dist/cjs/models/UpdateMerchantDto.js +1 -1
- package/dist/cjs/models/UpdatePaymentMethodStatusDto.d.ts +1 -1
- package/dist/cjs/models/UpdatePaymentMethodStatusDto.js +1 -1
- package/dist/cjs/models/UpdateSelfDto.d.ts +1 -1
- package/dist/cjs/models/UpdateSelfDto.js +1 -1
- package/dist/cjs/models/UpdateTransactionNoteDto.d.ts +1 -1
- package/dist/cjs/models/UpdateTransactionNoteDto.js +1 -1
- package/dist/cjs/models/UpdateUserDto.d.ts +1 -1
- package/dist/cjs/models/UpdateUserDto.js +1 -1
- package/dist/cjs/models/UpdateWebhookDto.d.ts +1 -1
- package/dist/cjs/models/UpdateWebhookDto.js +1 -1
- package/dist/cjs/models/UserEntity.d.ts +1 -1
- package/dist/cjs/models/UserEntity.js +1 -1
- package/dist/cjs/models/UserServiceEntity.d.ts +1 -1
- package/dist/cjs/models/UserServiceEntity.js +1 -1
- package/dist/cjs/models/UsersSearchEntity.d.ts +1 -1
- package/dist/cjs/models/UsersSearchEntity.js +1 -1
- package/dist/cjs/models/ValidateMerchantCredentialsDto.d.ts +1 -1
- package/dist/cjs/models/ValidateMerchantCredentialsDto.js +1 -1
- package/dist/cjs/models/WebhooksEntity.d.ts +1 -1
- package/dist/cjs/models/WebhooksEntity.js +1 -1
- package/dist/cjs/models/index.d.ts +1 -0
- package/dist/cjs/models/index.js +1 -0
- package/dist/cjs/runtime.d.ts +1 -1
- package/dist/cjs/runtime.js +2 -2
- package/dist/mjs/apis/ChannelPaymentsApi.d.ts +15 -2
- package/dist/mjs/apis/ChannelPaymentsApi.js +552 -2
- package/dist/mjs/models/AddressEntity.d.ts +1 -1
- package/dist/mjs/models/AddressEntity.js +1 -1
- package/dist/mjs/models/AvailablePaymentMethodEntity.d.ts +1 -1
- package/dist/mjs/models/AvailablePaymentMethodEntity.js +1 -1
- package/dist/mjs/models/BankDetailsServiceEntity.d.ts +1 -1
- package/dist/mjs/models/BankDetailsServiceEntity.js +1 -1
- package/dist/mjs/models/BuyerAddressDto.d.ts +1 -1
- package/dist/mjs/models/BuyerAddressDto.js +1 -1
- package/dist/mjs/models/BuyerEntity.d.ts +1 -1
- package/dist/mjs/models/BuyerEntity.js +1 -1
- package/dist/mjs/models/BuyerEntityAddress.d.ts +1 -1
- package/dist/mjs/models/BuyerEntityAddress.js +1 -1
- package/dist/mjs/models/BuyersAddressEntity.d.ts +1 -1
- package/dist/mjs/models/BuyersAddressEntity.js +1 -1
- package/dist/mjs/models/BuyersEntity.d.ts +1 -1
- package/dist/mjs/models/BuyersEntity.js +1 -1
- package/dist/mjs/models/BuyersEntityAddress.d.ts +1 -1
- package/dist/mjs/models/BuyersEntityAddress.js +1 -1
- package/dist/mjs/models/BuyersSearchEntity.d.ts +1 -1
- package/dist/mjs/models/BuyersSearchEntity.js +1 -1
- package/dist/mjs/models/BuyersServiceEntity.d.ts +1 -1
- package/dist/mjs/models/BuyersServiceEntity.js +1 -1
- package/dist/mjs/models/CFeeEntity.d.ts +1 -1
- package/dist/mjs/models/CFeeEntity.js +1 -1
- package/dist/mjs/models/CaptureTransactionDto.d.ts +1 -1
- package/dist/mjs/models/CaptureTransactionDto.js +1 -1
- package/dist/mjs/models/CardDetailsServiceEntity.d.ts +7 -1
- package/dist/mjs/models/CardDetailsServiceEntity.js +4 -2
- package/dist/mjs/models/CheckoutSessionEntity.d.ts +1 -1
- package/dist/mjs/models/CheckoutSessionEntity.js +1 -1
- package/dist/mjs/models/CheckoutSessionItemEntity.d.ts +1 -1
- package/dist/mjs/models/CheckoutSessionItemEntity.js +1 -1
- package/dist/mjs/models/CreateBuyerAddressDto.d.ts +1 -1
- package/dist/mjs/models/CreateBuyerAddressDto.js +1 -1
- package/dist/mjs/models/CreateBuyerDto.d.ts +1 -1
- package/dist/mjs/models/CreateBuyerDto.js +1 -1
- package/dist/mjs/models/CreateBuyerDtoAddress.d.ts +1 -1
- package/dist/mjs/models/CreateBuyerDtoAddress.js +1 -1
- package/dist/mjs/models/CreateCFeeDto.d.ts +1 -1
- package/dist/mjs/models/CreateCFeeDto.js +1 -1
- package/dist/mjs/models/CreateCheckoutSessionDto.d.ts +1 -1
- package/dist/mjs/models/CreateCheckoutSessionDto.js +1 -1
- package/dist/mjs/models/CreateCheckoutSessionItemDto.d.ts +1 -1
- package/dist/mjs/models/CreateCheckoutSessionItemDto.js +1 -1
- package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.d.ts +1 -1
- package/dist/mjs/models/CreateCheckoutSessionPaymentMethodDto.js +1 -1
- package/dist/mjs/models/CreateCheckoutSessionTransactionDto.d.ts +1 -1
- package/dist/mjs/models/CreateCheckoutSessionTransactionDto.js +1 -1
- package/dist/mjs/models/CreateCheckoutSessionTransactionDtoAddress.d.ts +1 -1
- package/dist/mjs/models/CreateCheckoutSessionTransactionDtoAddress.js +1 -1
- package/dist/mjs/models/CreateCheckoutSessionTransactionDtoPaymentMethod.d.ts +1 -1
- package/dist/mjs/models/CreateCheckoutSessionTransactionDtoPaymentMethod.js +1 -1
- package/dist/mjs/models/CreateEventConfigDto.d.ts +1 -1
- package/dist/mjs/models/CreateEventConfigDto.js +1 -1
- package/dist/mjs/models/CreateEventDomainDto.d.ts +1 -1
- package/dist/mjs/models/CreateEventDomainDto.js +1 -1
- package/dist/mjs/models/CreateEventDomainDtoBuyers.d.ts +1 -1
- package/dist/mjs/models/CreateEventDomainDtoBuyers.js +1 -1
- package/dist/mjs/models/CreateEventDomainDtoMerchants.d.ts +1 -1
- package/dist/mjs/models/CreateEventDomainDtoMerchants.js +1 -1
- package/dist/mjs/models/CreateEventDomainDtoPaymentMethods.d.ts +1 -1
- package/dist/mjs/models/CreateEventDomainDtoPaymentMethods.js +1 -1
- package/dist/mjs/models/CreateEventDomainDtoTransactions.d.ts +1 -1
- package/dist/mjs/models/CreateEventDomainDtoTransactions.js +1 -1
- package/dist/mjs/models/CreateEventDomainDtoUsers.d.ts +1 -1
- package/dist/mjs/models/CreateEventDomainDtoUsers.js +1 -1
- package/dist/mjs/models/CreateFeatureDto.d.ts +1 -1
- package/dist/mjs/models/CreateFeatureDto.js +1 -1
- package/dist/mjs/models/CreateInitialUserDto.d.ts +1 -1
- package/dist/mjs/models/CreateInitialUserDto.js +1 -1
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +1 -1
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDtoCFee.js +1 -1
- package/dist/mjs/models/CreateMerchantAddressDto.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantAddressDto.js +1 -1
- package/dist/mjs/models/CreateMerchantConnectorCredentialsDto.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantConnectorCredentialsDto.js +1 -1
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +1 -1
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorCredentials.js +1 -1
- package/dist/mjs/models/CreateMerchantCredentialsDto.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantCredentialsDto.js +1 -1
- package/dist/mjs/models/CreateMerchantDto.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantDto.js +1 -1
- package/dist/mjs/models/CreateMerchantDtoAddress.d.ts +1 -1
- package/dist/mjs/models/CreateMerchantDtoAddress.js +1 -1
- package/dist/mjs/models/CreatePaymentMethodDto.d.ts +1 -1
- package/dist/mjs/models/CreatePaymentMethodDto.js +1 -1
- package/dist/mjs/models/CreateStoredCardPaymentMethod.d.ts +12 -6
- package/dist/mjs/models/CreateStoredCardPaymentMethod.js +3 -1
- package/dist/mjs/models/CreateTransactionNoteDto.d.ts +1 -1
- package/dist/mjs/models/CreateTransactionNoteDto.js +1 -1
- package/dist/mjs/models/CreateTransactionRefundDto.d.ts +1 -1
- package/dist/mjs/models/CreateTransactionRefundDto.js +1 -1
- package/dist/mjs/models/CreateTransactionRequestDto.d.ts +1 -1
- package/dist/mjs/models/CreateTransactionRequestDto.js +1 -1
- package/dist/mjs/models/CreateTransactionRequestDtoPaymentMethod.d.ts +1 -1
- package/dist/mjs/models/CreateTransactionRequestDtoPaymentMethod.js +1 -1
- package/dist/mjs/models/CreateUserDto.d.ts +1 -1
- package/dist/mjs/models/CreateUserDto.js +1 -1
- package/dist/mjs/models/CreateWebhookDto.d.ts +1 -1
- package/dist/mjs/models/CreateWebhookDto.js +1 -1
- package/dist/mjs/models/CreateWebhookDtoEventDomains.d.ts +1 -1
- package/dist/mjs/models/CreateWebhookDtoEventDomains.js +1 -1
- package/dist/mjs/models/ErrorEntity.d.ts +5 -3
- package/dist/mjs/models/ErrorEntity.js +1 -1
- package/dist/mjs/models/ErrorEntity1.d.ts +9 -3
- package/dist/mjs/models/ErrorEntity1.js +3 -1
- package/dist/mjs/models/ErrorEntity2.d.ts +62 -0
- package/dist/mjs/models/ErrorEntity2.js +51 -0
- package/dist/mjs/models/FeatureEntity.d.ts +1 -1
- package/dist/mjs/models/FeatureEntity.js +1 -1
- package/dist/mjs/models/FeaturesEntity.d.ts +1 -1
- package/dist/mjs/models/FeaturesEntity.js +1 -1
- package/dist/mjs/models/MerchantAccountServiceEntity.d.ts +1 -1
- package/dist/mjs/models/MerchantAccountServiceEntity.js +1 -1
- package/dist/mjs/models/MerchantAccountServiceEntityCFee.d.ts +1 -1
- package/dist/mjs/models/MerchantAccountServiceEntityCFee.js +1 -1
- package/dist/mjs/models/MerchantAddressEntity.d.ts +1 -1
- package/dist/mjs/models/MerchantAddressEntity.js +1 -1
- package/dist/mjs/models/MerchantConnectorCredentialsServiceEntity.d.ts +1 -1
- package/dist/mjs/models/MerchantConnectorCredentialsServiceEntity.js +1 -1
- package/dist/mjs/models/MerchantConnectorServiceEntity.d.ts +1 -1
- package/dist/mjs/models/MerchantConnectorServiceEntity.js +1 -1
- package/dist/mjs/models/MerchantCredentialsEntity.d.ts +1 -1
- package/dist/mjs/models/MerchantCredentialsEntity.js +1 -1
- package/dist/mjs/models/MerchantEntity.d.ts +1 -1
- package/dist/mjs/models/MerchantEntity.js +1 -1
- package/dist/mjs/models/MerchantEntityAddress.d.ts +1 -1
- package/dist/mjs/models/MerchantEntityAddress.js +1 -1
- package/dist/mjs/models/MerchantServiceEntity.d.ts +1 -1
- package/dist/mjs/models/MerchantServiceEntity.js +1 -1
- package/dist/mjs/models/PaymentMethodBaseEntity.d.ts +7 -1
- package/dist/mjs/models/PaymentMethodBaseEntity.js +3 -1
- package/dist/mjs/models/PaymentMethodDto.d.ts +1 -1
- package/dist/mjs/models/PaymentMethodDto.js +1 -1
- package/dist/mjs/models/PaymentMethodEntity.d.ts +1 -1
- package/dist/mjs/models/PaymentMethodEntity.js +1 -1
- package/dist/mjs/models/PaymentMethodEntityAccountDetails.d.ts +1 -1
- package/dist/mjs/models/PaymentMethodEntityAccountDetails.js +1 -1
- package/dist/mjs/models/PaymentMethodEntityBuyer.d.ts +1 -1
- package/dist/mjs/models/PaymentMethodEntityBuyer.js +1 -1
- package/dist/mjs/models/PaymentMethodEntityCardDetails.d.ts +7 -1
- package/dist/mjs/models/PaymentMethodEntityCardDetails.js +4 -2
- package/dist/mjs/models/PaymentMethodServiceEntity.d.ts +1 -1
- package/dist/mjs/models/PaymentMethodServiceEntity.js +1 -1
- package/dist/mjs/models/PaymentMethodsSearchEntity.d.ts +1 -1
- package/dist/mjs/models/PaymentMethodsSearchEntity.js +1 -1
- package/dist/mjs/models/ReturnedTransactionEntity.d.ts +1 -1
- package/dist/mjs/models/ReturnedTransactionEntity.js +1 -1
- package/dist/mjs/models/TagDto.d.ts +1 -1
- package/dist/mjs/models/TagDto.js +1 -1
- package/dist/mjs/models/TagEntity.d.ts +1 -1
- package/dist/mjs/models/TagEntity.js +1 -1
- package/dist/mjs/models/TransactionEntity.d.ts +7 -1
- package/dist/mjs/models/TransactionEntity.js +3 -1
- package/dist/mjs/models/TransactionEntityPaymentMethod.d.ts +7 -1
- package/dist/mjs/models/TransactionEntityPaymentMethod.js +3 -1
- package/dist/mjs/models/TransactionFeeDetailsEntity.d.ts +1 -1
- package/dist/mjs/models/TransactionFeeDetailsEntity.js +1 -1
- package/dist/mjs/models/TransactionNoteEntity.d.ts +1 -1
- package/dist/mjs/models/TransactionNoteEntity.js +1 -1
- package/dist/mjs/models/TransactionNoteHistoryEntity.d.ts +1 -1
- package/dist/mjs/models/TransactionNoteHistoryEntity.js +1 -1
- package/dist/mjs/models/TransactionRefundBaseEntity.d.ts +1 -1
- package/dist/mjs/models/TransactionRefundBaseEntity.js +1 -1
- package/dist/mjs/models/TransactionRefundEntity.d.ts +1 -1
- package/dist/mjs/models/TransactionRefundEntity.js +1 -1
- package/dist/mjs/models/TransactionRefundsSearchEntity.d.ts +1 -1
- package/dist/mjs/models/TransactionRefundsSearchEntity.js +1 -1
- package/dist/mjs/models/TransactionReturnsSearchEntity.d.ts +1 -1
- package/dist/mjs/models/TransactionReturnsSearchEntity.js +1 -1
- package/dist/mjs/models/TransactionsSearchEntity.d.ts +1 -1
- package/dist/mjs/models/TransactionsSearchEntity.js +1 -1
- package/dist/mjs/models/UpdateBuyerDto.d.ts +1 -1
- package/dist/mjs/models/UpdateBuyerDto.js +1 -1
- package/dist/mjs/models/UpdateFeatureDto.d.ts +1 -1
- package/dist/mjs/models/UpdateFeatureDto.js +1 -1
- package/dist/mjs/models/UpdateMerchantCredentialsDto.d.ts +1 -1
- package/dist/mjs/models/UpdateMerchantCredentialsDto.js +1 -1
- package/dist/mjs/models/UpdateMerchantDto.d.ts +1 -1
- package/dist/mjs/models/UpdateMerchantDto.js +1 -1
- package/dist/mjs/models/UpdatePaymentMethodStatusDto.d.ts +1 -1
- package/dist/mjs/models/UpdatePaymentMethodStatusDto.js +1 -1
- package/dist/mjs/models/UpdateSelfDto.d.ts +1 -1
- package/dist/mjs/models/UpdateSelfDto.js +1 -1
- package/dist/mjs/models/UpdateTransactionNoteDto.d.ts +1 -1
- package/dist/mjs/models/UpdateTransactionNoteDto.js +1 -1
- package/dist/mjs/models/UpdateUserDto.d.ts +1 -1
- package/dist/mjs/models/UpdateUserDto.js +1 -1
- package/dist/mjs/models/UpdateWebhookDto.d.ts +1 -1
- package/dist/mjs/models/UpdateWebhookDto.js +1 -1
- package/dist/mjs/models/UserEntity.d.ts +1 -1
- package/dist/mjs/models/UserEntity.js +1 -1
- package/dist/mjs/models/UserServiceEntity.d.ts +1 -1
- package/dist/mjs/models/UserServiceEntity.js +1 -1
- package/dist/mjs/models/UsersSearchEntity.d.ts +1 -1
- package/dist/mjs/models/UsersSearchEntity.js +1 -1
- package/dist/mjs/models/ValidateMerchantCredentialsDto.d.ts +1 -1
- package/dist/mjs/models/ValidateMerchantCredentialsDto.js +1 -1
- package/dist/mjs/models/WebhooksEntity.d.ts +1 -1
- package/dist/mjs/models/WebhooksEntity.js +1 -1
- package/dist/mjs/models/index.d.ts +1 -0
- package/dist/mjs/models/index.js +1 -0
- package/dist/mjs/runtime.d.ts +1 -1
- package/dist/mjs/runtime.js +2 -2
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* Channel Payments API v1.
|
|
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
|
}
|