@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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* Channel Payments API v1.
|
|
5
|
+
* Channel Payments API v1.121.0
|
|
6
6
|
*
|
|
7
7
|
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
8
|
*
|
|
@@ -98,6 +98,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
98
98
|
const error = yield errorResponse.value();
|
|
99
99
|
throw error;
|
|
100
100
|
}
|
|
101
|
+
if (rawResponse.status === 502) {
|
|
102
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
103
|
+
const error = yield errorResponse.value();
|
|
104
|
+
throw error;
|
|
105
|
+
}
|
|
106
|
+
if (rawResponse.status === 503) {
|
|
107
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
108
|
+
const error = yield errorResponse.value();
|
|
109
|
+
throw error;
|
|
110
|
+
}
|
|
111
|
+
if (rawResponse.status === 504) {
|
|
112
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
113
|
+
const error = yield errorResponse.value();
|
|
114
|
+
throw error;
|
|
115
|
+
}
|
|
101
116
|
if (!response) {
|
|
102
117
|
response = new runtime.TextApiResponse(rawResponse);
|
|
103
118
|
}
|
|
@@ -146,6 +161,11 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
146
161
|
const error = yield errorResponse.value();
|
|
147
162
|
throw error;
|
|
148
163
|
}
|
|
164
|
+
if (rawResponse.status === 403) {
|
|
165
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
166
|
+
const error = yield errorResponse.value();
|
|
167
|
+
throw error;
|
|
168
|
+
}
|
|
149
169
|
if (rawResponse.status === 404) {
|
|
150
170
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
151
171
|
const error = yield errorResponse.value();
|
|
@@ -156,6 +176,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
156
176
|
const error = yield errorResponse.value();
|
|
157
177
|
throw error;
|
|
158
178
|
}
|
|
179
|
+
if (rawResponse.status === 502) {
|
|
180
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
181
|
+
const error = yield errorResponse.value();
|
|
182
|
+
throw error;
|
|
183
|
+
}
|
|
184
|
+
if (rawResponse.status === 503) {
|
|
185
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
186
|
+
const error = yield errorResponse.value();
|
|
187
|
+
throw error;
|
|
188
|
+
}
|
|
189
|
+
if (rawResponse.status === 504) {
|
|
190
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
191
|
+
const error = yield errorResponse.value();
|
|
192
|
+
throw error;
|
|
193
|
+
}
|
|
159
194
|
if (!response) {
|
|
160
195
|
response = new runtime.TextApiResponse(rawResponse);
|
|
161
196
|
}
|
|
@@ -210,6 +245,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
210
245
|
const error = yield errorResponse.value();
|
|
211
246
|
throw error;
|
|
212
247
|
}
|
|
248
|
+
if (rawResponse.status === 502) {
|
|
249
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
250
|
+
const error = yield errorResponse.value();
|
|
251
|
+
throw error;
|
|
252
|
+
}
|
|
253
|
+
if (rawResponse.status === 503) {
|
|
254
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
255
|
+
const error = yield errorResponse.value();
|
|
256
|
+
throw error;
|
|
257
|
+
}
|
|
258
|
+
if (rawResponse.status === 504) {
|
|
259
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
260
|
+
const error = yield errorResponse.value();
|
|
261
|
+
throw error;
|
|
262
|
+
}
|
|
213
263
|
if (!response) {
|
|
214
264
|
response = new runtime.TextApiResponse(rawResponse);
|
|
215
265
|
}
|
|
@@ -263,11 +313,103 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
263
313
|
const error = yield errorResponse.value();
|
|
264
314
|
throw error;
|
|
265
315
|
}
|
|
316
|
+
if (rawResponse.status === 404) {
|
|
317
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
318
|
+
const error = yield errorResponse.value();
|
|
319
|
+
throw error;
|
|
320
|
+
}
|
|
266
321
|
if (rawResponse.status === 500) {
|
|
267
322
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
268
323
|
const error = yield errorResponse.value();
|
|
269
324
|
throw error;
|
|
270
325
|
}
|
|
326
|
+
if (rawResponse.status === 502) {
|
|
327
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
328
|
+
const error = yield errorResponse.value();
|
|
329
|
+
throw error;
|
|
330
|
+
}
|
|
331
|
+
if (rawResponse.status === 503) {
|
|
332
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
333
|
+
const error = yield errorResponse.value();
|
|
334
|
+
throw error;
|
|
335
|
+
}
|
|
336
|
+
if (rawResponse.status === 504) {
|
|
337
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
338
|
+
const error = yield errorResponse.value();
|
|
339
|
+
throw error;
|
|
340
|
+
}
|
|
341
|
+
if (!response) {
|
|
342
|
+
response = new runtime.TextApiResponse(rawResponse);
|
|
343
|
+
}
|
|
344
|
+
return yield response.value();
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Attempts to create a transaction note
|
|
349
|
+
* Create transaction note
|
|
350
|
+
*/
|
|
351
|
+
createTransactionNote(requestParameters) {
|
|
352
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
353
|
+
if (requestParameters.documentId === null || requestParameters.documentId === undefined) {
|
|
354
|
+
throw new runtime.RequiredError('documentId', 'Required parameter \'documentId\' was null or undefined when calling createTransactionNote.');
|
|
355
|
+
}
|
|
356
|
+
if (requestParameters.content === null || requestParameters.content === undefined) {
|
|
357
|
+
throw new runtime.RequiredError('content', 'Required parameter \'content\' was null or undefined when calling createTransactionNote.');
|
|
358
|
+
}
|
|
359
|
+
const queryParameters = {};
|
|
360
|
+
const headerParameters = {};
|
|
361
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
362
|
+
const rawResponse = yield this.request({
|
|
363
|
+
path: `/transaction-notes`,
|
|
364
|
+
method: 'POST',
|
|
365
|
+
headers: headerParameters,
|
|
366
|
+
query: queryParameters,
|
|
367
|
+
body: (0, models_1.CreateTransactionNoteDtoToJSON)(requestParameters),
|
|
368
|
+
});
|
|
369
|
+
let response;
|
|
370
|
+
if (rawResponse.status === 201) {
|
|
371
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionNoteEntityFromJSON)(jsonValue));
|
|
372
|
+
}
|
|
373
|
+
if (rawResponse.status === 400) {
|
|
374
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
375
|
+
const error = yield errorResponse.value();
|
|
376
|
+
throw error;
|
|
377
|
+
}
|
|
378
|
+
if (rawResponse.status === 401) {
|
|
379
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
380
|
+
const error = yield errorResponse.value();
|
|
381
|
+
throw error;
|
|
382
|
+
}
|
|
383
|
+
if (rawResponse.status === 403) {
|
|
384
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
385
|
+
const error = yield errorResponse.value();
|
|
386
|
+
throw error;
|
|
387
|
+
}
|
|
388
|
+
if (rawResponse.status === 404) {
|
|
389
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
390
|
+
const error = yield errorResponse.value();
|
|
391
|
+
throw error;
|
|
392
|
+
}
|
|
393
|
+
if (rawResponse.status === 500) {
|
|
394
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
395
|
+
const error = yield errorResponse.value();
|
|
396
|
+
throw error;
|
|
397
|
+
}
|
|
398
|
+
if (rawResponse.status === 502) {
|
|
399
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
400
|
+
const error = yield errorResponse.value();
|
|
401
|
+
throw error;
|
|
402
|
+
}
|
|
403
|
+
if (rawResponse.status === 503) {
|
|
404
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
405
|
+
const error = yield errorResponse.value();
|
|
406
|
+
throw error;
|
|
407
|
+
}
|
|
408
|
+
if (rawResponse.status === 504) {
|
|
409
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
410
|
+
const error = yield errorResponse.value();
|
|
411
|
+
throw error;
|
|
412
|
+
}
|
|
271
413
|
if (!response) {
|
|
272
414
|
response = new runtime.TextApiResponse(rawResponse);
|
|
273
415
|
}
|
|
@@ -305,6 +447,11 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
305
447
|
const error = yield errorResponse.value();
|
|
306
448
|
throw error;
|
|
307
449
|
}
|
|
450
|
+
if (rawResponse.status === 403) {
|
|
451
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
452
|
+
const error = yield errorResponse.value();
|
|
453
|
+
throw error;
|
|
454
|
+
}
|
|
308
455
|
if (rawResponse.status === 404) {
|
|
309
456
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
310
457
|
const error = yield errorResponse.value();
|
|
@@ -315,6 +462,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
315
462
|
const error = yield errorResponse.value();
|
|
316
463
|
throw error;
|
|
317
464
|
}
|
|
465
|
+
if (rawResponse.status === 502) {
|
|
466
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
467
|
+
const error = yield errorResponse.value();
|
|
468
|
+
throw error;
|
|
469
|
+
}
|
|
470
|
+
if (rawResponse.status === 503) {
|
|
471
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
472
|
+
const error = yield errorResponse.value();
|
|
473
|
+
throw error;
|
|
474
|
+
}
|
|
475
|
+
if (rawResponse.status === 504) {
|
|
476
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
477
|
+
const error = yield errorResponse.value();
|
|
478
|
+
throw error;
|
|
479
|
+
}
|
|
318
480
|
if (!response) {
|
|
319
481
|
response = new runtime.TextApiResponse(rawResponse);
|
|
320
482
|
}
|
|
@@ -357,11 +519,98 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
357
519
|
const error = yield errorResponse.value();
|
|
358
520
|
throw error;
|
|
359
521
|
}
|
|
522
|
+
if (rawResponse.status === 404) {
|
|
523
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
524
|
+
const error = yield errorResponse.value();
|
|
525
|
+
throw error;
|
|
526
|
+
}
|
|
527
|
+
if (rawResponse.status === 500) {
|
|
528
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
529
|
+
const error = yield errorResponse.value();
|
|
530
|
+
throw error;
|
|
531
|
+
}
|
|
532
|
+
if (rawResponse.status === 502) {
|
|
533
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
534
|
+
const error = yield errorResponse.value();
|
|
535
|
+
throw error;
|
|
536
|
+
}
|
|
537
|
+
if (rawResponse.status === 503) {
|
|
538
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
539
|
+
const error = yield errorResponse.value();
|
|
540
|
+
throw error;
|
|
541
|
+
}
|
|
542
|
+
if (rawResponse.status === 504) {
|
|
543
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
544
|
+
const error = yield errorResponse.value();
|
|
545
|
+
throw error;
|
|
546
|
+
}
|
|
547
|
+
if (!response) {
|
|
548
|
+
response = new runtime.TextApiResponse(rawResponse);
|
|
549
|
+
}
|
|
550
|
+
return yield response.value();
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Attempts to delete a transaction note.
|
|
555
|
+
* Delete transaction note.
|
|
556
|
+
*/
|
|
557
|
+
deleteTransactionNote(requestParameters) {
|
|
558
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
559
|
+
if (requestParameters.noteId === null || requestParameters.noteId === undefined) {
|
|
560
|
+
throw new runtime.RequiredError('noteId', 'Required parameter \'noteId\' was null or undefined when calling deleteTransactionNote.');
|
|
561
|
+
}
|
|
562
|
+
const queryParameters = {};
|
|
563
|
+
const headerParameters = {};
|
|
564
|
+
const rawResponse = yield this.request({
|
|
565
|
+
path: `/transaction-notes/{noteId}`.replace(`{${"noteId"}}`, encodeURIComponent(String(requestParameters.noteId))),
|
|
566
|
+
method: 'DELETE',
|
|
567
|
+
headers: headerParameters,
|
|
568
|
+
query: queryParameters,
|
|
569
|
+
});
|
|
570
|
+
let response;
|
|
571
|
+
if (rawResponse.status === 200) {
|
|
572
|
+
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.TransactionNoteEntityFromJSON)(jsonValue));
|
|
573
|
+
}
|
|
574
|
+
if (rawResponse.status === 400) {
|
|
575
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
576
|
+
const error = yield errorResponse.value();
|
|
577
|
+
throw error;
|
|
578
|
+
}
|
|
579
|
+
if (rawResponse.status === 401) {
|
|
580
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
581
|
+
const error = yield errorResponse.value();
|
|
582
|
+
throw error;
|
|
583
|
+
}
|
|
584
|
+
if (rawResponse.status === 403) {
|
|
585
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
586
|
+
const error = yield errorResponse.value();
|
|
587
|
+
throw error;
|
|
588
|
+
}
|
|
589
|
+
if (rawResponse.status === 404) {
|
|
590
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
591
|
+
const error = yield errorResponse.value();
|
|
592
|
+
throw error;
|
|
593
|
+
}
|
|
360
594
|
if (rawResponse.status === 500) {
|
|
361
595
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
362
596
|
const error = yield errorResponse.value();
|
|
363
597
|
throw error;
|
|
364
598
|
}
|
|
599
|
+
if (rawResponse.status === 502) {
|
|
600
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
601
|
+
const error = yield errorResponse.value();
|
|
602
|
+
throw error;
|
|
603
|
+
}
|
|
604
|
+
if (rawResponse.status === 503) {
|
|
605
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
606
|
+
const error = yield errorResponse.value();
|
|
607
|
+
throw error;
|
|
608
|
+
}
|
|
609
|
+
if (rawResponse.status === 504) {
|
|
610
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
611
|
+
const error = yield errorResponse.value();
|
|
612
|
+
throw error;
|
|
613
|
+
}
|
|
365
614
|
if (!response) {
|
|
366
615
|
response = new runtime.TextApiResponse(rawResponse);
|
|
367
616
|
}
|
|
@@ -399,6 +648,11 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
399
648
|
const error = yield errorResponse.value();
|
|
400
649
|
throw error;
|
|
401
650
|
}
|
|
651
|
+
if (rawResponse.status === 403) {
|
|
652
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
653
|
+
const error = yield errorResponse.value();
|
|
654
|
+
throw error;
|
|
655
|
+
}
|
|
402
656
|
if (rawResponse.status === 404) {
|
|
403
657
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
404
658
|
const error = yield errorResponse.value();
|
|
@@ -409,6 +663,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
409
663
|
const error = yield errorResponse.value();
|
|
410
664
|
throw error;
|
|
411
665
|
}
|
|
666
|
+
if (rawResponse.status === 502) {
|
|
667
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
668
|
+
const error = yield errorResponse.value();
|
|
669
|
+
throw error;
|
|
670
|
+
}
|
|
671
|
+
if (rawResponse.status === 503) {
|
|
672
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
673
|
+
const error = yield errorResponse.value();
|
|
674
|
+
throw error;
|
|
675
|
+
}
|
|
676
|
+
if (rawResponse.status === 504) {
|
|
677
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
678
|
+
const error = yield errorResponse.value();
|
|
679
|
+
throw error;
|
|
680
|
+
}
|
|
412
681
|
if (!response) {
|
|
413
682
|
response = new runtime.TextApiResponse(rawResponse);
|
|
414
683
|
}
|
|
@@ -461,6 +730,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
461
730
|
const error = yield errorResponse.value();
|
|
462
731
|
throw error;
|
|
463
732
|
}
|
|
733
|
+
if (rawResponse.status === 502) {
|
|
734
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
735
|
+
const error = yield errorResponse.value();
|
|
736
|
+
throw error;
|
|
737
|
+
}
|
|
738
|
+
if (rawResponse.status === 503) {
|
|
739
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
740
|
+
const error = yield errorResponse.value();
|
|
741
|
+
throw error;
|
|
742
|
+
}
|
|
743
|
+
if (rawResponse.status === 504) {
|
|
744
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
745
|
+
const error = yield errorResponse.value();
|
|
746
|
+
throw error;
|
|
747
|
+
}
|
|
464
748
|
if (!response) {
|
|
465
749
|
response = new runtime.TextApiResponse(rawResponse);
|
|
466
750
|
}
|
|
@@ -485,11 +769,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
485
769
|
if (rawResponse.status === 200) {
|
|
486
770
|
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => jsonValue.map(models_1.MerchantEntityFromJSON));
|
|
487
771
|
}
|
|
772
|
+
if (rawResponse.status === 400) {
|
|
773
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
774
|
+
const error = yield errorResponse.value();
|
|
775
|
+
throw error;
|
|
776
|
+
}
|
|
488
777
|
if (rawResponse.status === 401) {
|
|
489
778
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
490
779
|
const error = yield errorResponse.value();
|
|
491
780
|
throw error;
|
|
492
781
|
}
|
|
782
|
+
if (rawResponse.status === 403) {
|
|
783
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
784
|
+
const error = yield errorResponse.value();
|
|
785
|
+
throw error;
|
|
786
|
+
}
|
|
493
787
|
if (rawResponse.status === 404) {
|
|
494
788
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
495
789
|
const error = yield errorResponse.value();
|
|
@@ -500,6 +794,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
500
794
|
const error = yield errorResponse.value();
|
|
501
795
|
throw error;
|
|
502
796
|
}
|
|
797
|
+
if (rawResponse.status === 502) {
|
|
798
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
799
|
+
const error = yield errorResponse.value();
|
|
800
|
+
throw error;
|
|
801
|
+
}
|
|
802
|
+
if (rawResponse.status === 503) {
|
|
803
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
804
|
+
const error = yield errorResponse.value();
|
|
805
|
+
throw error;
|
|
806
|
+
}
|
|
807
|
+
if (rawResponse.status === 504) {
|
|
808
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
809
|
+
const error = yield errorResponse.value();
|
|
810
|
+
throw error;
|
|
811
|
+
}
|
|
503
812
|
if (!response) {
|
|
504
813
|
response = new runtime.TextApiResponse(rawResponse);
|
|
505
814
|
}
|
|
@@ -524,11 +833,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
524
833
|
if (rawResponse.status === 200) {
|
|
525
834
|
response = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.MerchantEntityFromJSON)(jsonValue));
|
|
526
835
|
}
|
|
836
|
+
if (rawResponse.status === 400) {
|
|
837
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
838
|
+
const error = yield errorResponse.value();
|
|
839
|
+
throw error;
|
|
840
|
+
}
|
|
527
841
|
if (rawResponse.status === 401) {
|
|
528
842
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
529
843
|
const error = yield errorResponse.value();
|
|
530
844
|
throw error;
|
|
531
845
|
}
|
|
846
|
+
if (rawResponse.status === 403) {
|
|
847
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
848
|
+
const error = yield errorResponse.value();
|
|
849
|
+
throw error;
|
|
850
|
+
}
|
|
532
851
|
if (rawResponse.status === 404) {
|
|
533
852
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
534
853
|
const error = yield errorResponse.value();
|
|
@@ -539,6 +858,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
539
858
|
const error = yield errorResponse.value();
|
|
540
859
|
throw error;
|
|
541
860
|
}
|
|
861
|
+
if (rawResponse.status === 502) {
|
|
862
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
863
|
+
const error = yield errorResponse.value();
|
|
864
|
+
throw error;
|
|
865
|
+
}
|
|
866
|
+
if (rawResponse.status === 503) {
|
|
867
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
868
|
+
const error = yield errorResponse.value();
|
|
869
|
+
throw error;
|
|
870
|
+
}
|
|
871
|
+
if (rawResponse.status === 504) {
|
|
872
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
873
|
+
const error = yield errorResponse.value();
|
|
874
|
+
throw error;
|
|
875
|
+
}
|
|
542
876
|
if (!response) {
|
|
543
877
|
response = new runtime.TextApiResponse(rawResponse);
|
|
544
878
|
}
|
|
@@ -581,11 +915,31 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
581
915
|
const error = yield errorResponse.value();
|
|
582
916
|
throw error;
|
|
583
917
|
}
|
|
918
|
+
if (rawResponse.status === 404) {
|
|
919
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
920
|
+
const error = yield errorResponse.value();
|
|
921
|
+
throw error;
|
|
922
|
+
}
|
|
584
923
|
if (rawResponse.status === 500) {
|
|
585
924
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
586
925
|
const error = yield errorResponse.value();
|
|
587
926
|
throw error;
|
|
588
927
|
}
|
|
928
|
+
if (rawResponse.status === 502) {
|
|
929
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
930
|
+
const error = yield errorResponse.value();
|
|
931
|
+
throw error;
|
|
932
|
+
}
|
|
933
|
+
if (rawResponse.status === 503) {
|
|
934
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
935
|
+
const error = yield errorResponse.value();
|
|
936
|
+
throw error;
|
|
937
|
+
}
|
|
938
|
+
if (rawResponse.status === 504) {
|
|
939
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
940
|
+
const error = yield errorResponse.value();
|
|
941
|
+
throw error;
|
|
942
|
+
}
|
|
589
943
|
if (!response) {
|
|
590
944
|
response = new runtime.TextApiResponse(rawResponse);
|
|
591
945
|
}
|
|
@@ -638,6 +992,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
638
992
|
const error = yield errorResponse.value();
|
|
639
993
|
throw error;
|
|
640
994
|
}
|
|
995
|
+
if (rawResponse.status === 502) {
|
|
996
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
997
|
+
const error = yield errorResponse.value();
|
|
998
|
+
throw error;
|
|
999
|
+
}
|
|
1000
|
+
if (rawResponse.status === 503) {
|
|
1001
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1002
|
+
const error = yield errorResponse.value();
|
|
1003
|
+
throw error;
|
|
1004
|
+
}
|
|
1005
|
+
if (rawResponse.status === 504) {
|
|
1006
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1007
|
+
const error = yield errorResponse.value();
|
|
1008
|
+
throw error;
|
|
1009
|
+
}
|
|
641
1010
|
if (!response) {
|
|
642
1011
|
response = new runtime.TextApiResponse(rawResponse);
|
|
643
1012
|
}
|
|
@@ -690,6 +1059,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
690
1059
|
const error = yield errorResponse.value();
|
|
691
1060
|
throw error;
|
|
692
1061
|
}
|
|
1062
|
+
if (rawResponse.status === 502) {
|
|
1063
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1064
|
+
const error = yield errorResponse.value();
|
|
1065
|
+
throw error;
|
|
1066
|
+
}
|
|
1067
|
+
if (rawResponse.status === 503) {
|
|
1068
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1069
|
+
const error = yield errorResponse.value();
|
|
1070
|
+
throw error;
|
|
1071
|
+
}
|
|
1072
|
+
if (rawResponse.status === 504) {
|
|
1073
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1074
|
+
const error = yield errorResponse.value();
|
|
1075
|
+
throw error;
|
|
1076
|
+
}
|
|
693
1077
|
if (!response) {
|
|
694
1078
|
response = new runtime.TextApiResponse(rawResponse);
|
|
695
1079
|
}
|
|
@@ -747,6 +1131,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
747
1131
|
const error = yield errorResponse.value();
|
|
748
1132
|
throw error;
|
|
749
1133
|
}
|
|
1134
|
+
if (rawResponse.status === 502) {
|
|
1135
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1136
|
+
const error = yield errorResponse.value();
|
|
1137
|
+
throw error;
|
|
1138
|
+
}
|
|
1139
|
+
if (rawResponse.status === 503) {
|
|
1140
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1141
|
+
const error = yield errorResponse.value();
|
|
1142
|
+
throw error;
|
|
1143
|
+
}
|
|
1144
|
+
if (rawResponse.status === 504) {
|
|
1145
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1146
|
+
const error = yield errorResponse.value();
|
|
1147
|
+
throw error;
|
|
1148
|
+
}
|
|
750
1149
|
if (!response) {
|
|
751
1150
|
response = new runtime.TextApiResponse(rawResponse);
|
|
752
1151
|
}
|
|
@@ -820,6 +1219,11 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
820
1219
|
const error = yield errorResponse.value();
|
|
821
1220
|
throw error;
|
|
822
1221
|
}
|
|
1222
|
+
if (rawResponse.status === 403) {
|
|
1223
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1224
|
+
const error = yield errorResponse.value();
|
|
1225
|
+
throw error;
|
|
1226
|
+
}
|
|
823
1227
|
if (rawResponse.status === 404) {
|
|
824
1228
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
825
1229
|
const error = yield errorResponse.value();
|
|
@@ -830,6 +1234,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
830
1234
|
const error = yield errorResponse.value();
|
|
831
1235
|
throw error;
|
|
832
1236
|
}
|
|
1237
|
+
if (rawResponse.status === 502) {
|
|
1238
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1239
|
+
const error = yield errorResponse.value();
|
|
1240
|
+
throw error;
|
|
1241
|
+
}
|
|
1242
|
+
if (rawResponse.status === 503) {
|
|
1243
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1244
|
+
const error = yield errorResponse.value();
|
|
1245
|
+
throw error;
|
|
1246
|
+
}
|
|
1247
|
+
if (rawResponse.status === 504) {
|
|
1248
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1249
|
+
const error = yield errorResponse.value();
|
|
1250
|
+
throw error;
|
|
1251
|
+
}
|
|
833
1252
|
if (!response) {
|
|
834
1253
|
response = new runtime.TextApiResponse(rawResponse);
|
|
835
1254
|
}
|
|
@@ -903,11 +1322,36 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
903
1322
|
const error = yield errorResponse.value();
|
|
904
1323
|
throw error;
|
|
905
1324
|
}
|
|
1325
|
+
if (rawResponse.status === 403) {
|
|
1326
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1327
|
+
const error = yield errorResponse.value();
|
|
1328
|
+
throw error;
|
|
1329
|
+
}
|
|
1330
|
+
if (rawResponse.status === 404) {
|
|
1331
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1332
|
+
const error = yield errorResponse.value();
|
|
1333
|
+
throw error;
|
|
1334
|
+
}
|
|
906
1335
|
if (rawResponse.status === 500) {
|
|
907
1336
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
908
1337
|
const error = yield errorResponse.value();
|
|
909
1338
|
throw error;
|
|
910
1339
|
}
|
|
1340
|
+
if (rawResponse.status === 502) {
|
|
1341
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1342
|
+
const error = yield errorResponse.value();
|
|
1343
|
+
throw error;
|
|
1344
|
+
}
|
|
1345
|
+
if (rawResponse.status === 503) {
|
|
1346
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1347
|
+
const error = yield errorResponse.value();
|
|
1348
|
+
throw error;
|
|
1349
|
+
}
|
|
1350
|
+
if (rawResponse.status === 504) {
|
|
1351
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1352
|
+
const error = yield errorResponse.value();
|
|
1353
|
+
throw error;
|
|
1354
|
+
}
|
|
911
1355
|
if (!response) {
|
|
912
1356
|
response = new runtime.TextApiResponse(rawResponse);
|
|
913
1357
|
}
|
|
@@ -987,6 +1431,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
987
1431
|
const error = yield errorResponse.value();
|
|
988
1432
|
throw error;
|
|
989
1433
|
}
|
|
1434
|
+
if (rawResponse.status === 502) {
|
|
1435
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1436
|
+
const error = yield errorResponse.value();
|
|
1437
|
+
throw error;
|
|
1438
|
+
}
|
|
1439
|
+
if (rawResponse.status === 503) {
|
|
1440
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1441
|
+
const error = yield errorResponse.value();
|
|
1442
|
+
throw error;
|
|
1443
|
+
}
|
|
1444
|
+
if (rawResponse.status === 504) {
|
|
1445
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1446
|
+
const error = yield errorResponse.value();
|
|
1447
|
+
throw error;
|
|
1448
|
+
}
|
|
990
1449
|
if (!response) {
|
|
991
1450
|
response = new runtime.TextApiResponse(rawResponse);
|
|
992
1451
|
}
|
|
@@ -1060,6 +1519,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1060
1519
|
const error = yield errorResponse.value();
|
|
1061
1520
|
throw error;
|
|
1062
1521
|
}
|
|
1522
|
+
if (rawResponse.status === 502) {
|
|
1523
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1524
|
+
const error = yield errorResponse.value();
|
|
1525
|
+
throw error;
|
|
1526
|
+
}
|
|
1527
|
+
if (rawResponse.status === 503) {
|
|
1528
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1529
|
+
const error = yield errorResponse.value();
|
|
1530
|
+
throw error;
|
|
1531
|
+
}
|
|
1532
|
+
if (rawResponse.status === 504) {
|
|
1533
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1534
|
+
const error = yield errorResponse.value();
|
|
1535
|
+
throw error;
|
|
1536
|
+
}
|
|
1063
1537
|
if (!response) {
|
|
1064
1538
|
response = new runtime.TextApiResponse(rawResponse);
|
|
1065
1539
|
}
|
|
@@ -1184,11 +1658,36 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1184
1658
|
const error = yield errorResponse.value();
|
|
1185
1659
|
throw error;
|
|
1186
1660
|
}
|
|
1661
|
+
if (rawResponse.status === 403) {
|
|
1662
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1663
|
+
const error = yield errorResponse.value();
|
|
1664
|
+
throw error;
|
|
1665
|
+
}
|
|
1666
|
+
if (rawResponse.status === 404) {
|
|
1667
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1668
|
+
const error = yield errorResponse.value();
|
|
1669
|
+
throw error;
|
|
1670
|
+
}
|
|
1187
1671
|
if (rawResponse.status === 500) {
|
|
1188
1672
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1189
1673
|
const error = yield errorResponse.value();
|
|
1190
1674
|
throw error;
|
|
1191
1675
|
}
|
|
1676
|
+
if (rawResponse.status === 502) {
|
|
1677
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1678
|
+
const error = yield errorResponse.value();
|
|
1679
|
+
throw error;
|
|
1680
|
+
}
|
|
1681
|
+
if (rawResponse.status === 503) {
|
|
1682
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1683
|
+
const error = yield errorResponse.value();
|
|
1684
|
+
throw error;
|
|
1685
|
+
}
|
|
1686
|
+
if (rawResponse.status === 504) {
|
|
1687
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1688
|
+
const error = yield errorResponse.value();
|
|
1689
|
+
throw error;
|
|
1690
|
+
}
|
|
1192
1691
|
if (!response) {
|
|
1193
1692
|
response = new runtime.TextApiResponse(rawResponse);
|
|
1194
1693
|
}
|
|
@@ -1233,11 +1732,31 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1233
1732
|
const error = yield errorResponse.value();
|
|
1234
1733
|
throw error;
|
|
1235
1734
|
}
|
|
1735
|
+
if (rawResponse.status === 404) {
|
|
1736
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1737
|
+
const error = yield errorResponse.value();
|
|
1738
|
+
throw error;
|
|
1739
|
+
}
|
|
1236
1740
|
if (rawResponse.status === 500) {
|
|
1237
1741
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1238
1742
|
const error = yield errorResponse.value();
|
|
1239
1743
|
throw error;
|
|
1240
1744
|
}
|
|
1745
|
+
if (rawResponse.status === 502) {
|
|
1746
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1747
|
+
const error = yield errorResponse.value();
|
|
1748
|
+
throw error;
|
|
1749
|
+
}
|
|
1750
|
+
if (rawResponse.status === 503) {
|
|
1751
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1752
|
+
const error = yield errorResponse.value();
|
|
1753
|
+
throw error;
|
|
1754
|
+
}
|
|
1755
|
+
if (rawResponse.status === 504) {
|
|
1756
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1757
|
+
const error = yield errorResponse.value();
|
|
1758
|
+
throw error;
|
|
1759
|
+
}
|
|
1241
1760
|
if (!response) {
|
|
1242
1761
|
response = new runtime.TextApiResponse(rawResponse);
|
|
1243
1762
|
}
|
|
@@ -1277,6 +1796,11 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1277
1796
|
const error = yield errorResponse.value();
|
|
1278
1797
|
throw error;
|
|
1279
1798
|
}
|
|
1799
|
+
if (rawResponse.status === 403) {
|
|
1800
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1801
|
+
const error = yield errorResponse.value();
|
|
1802
|
+
throw error;
|
|
1803
|
+
}
|
|
1280
1804
|
if (rawResponse.status === 404) {
|
|
1281
1805
|
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1282
1806
|
const error = yield errorResponse.value();
|
|
@@ -1287,6 +1811,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1287
1811
|
const error = yield errorResponse.value();
|
|
1288
1812
|
throw error;
|
|
1289
1813
|
}
|
|
1814
|
+
if (rawResponse.status === 502) {
|
|
1815
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1816
|
+
const error = yield errorResponse.value();
|
|
1817
|
+
throw error;
|
|
1818
|
+
}
|
|
1819
|
+
if (rawResponse.status === 503) {
|
|
1820
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1821
|
+
const error = yield errorResponse.value();
|
|
1822
|
+
throw error;
|
|
1823
|
+
}
|
|
1824
|
+
if (rawResponse.status === 504) {
|
|
1825
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1826
|
+
const error = yield errorResponse.value();
|
|
1827
|
+
throw error;
|
|
1828
|
+
}
|
|
1290
1829
|
if (!response) {
|
|
1291
1830
|
response = new runtime.TextApiResponse(rawResponse);
|
|
1292
1831
|
}
|
|
@@ -1339,6 +1878,21 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1339
1878
|
const error = yield errorResponse.value();
|
|
1340
1879
|
throw error;
|
|
1341
1880
|
}
|
|
1881
|
+
if (rawResponse.status === 502) {
|
|
1882
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1883
|
+
const error = yield errorResponse.value();
|
|
1884
|
+
throw error;
|
|
1885
|
+
}
|
|
1886
|
+
if (rawResponse.status === 503) {
|
|
1887
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1888
|
+
const error = yield errorResponse.value();
|
|
1889
|
+
throw error;
|
|
1890
|
+
}
|
|
1891
|
+
if (rawResponse.status === 504) {
|
|
1892
|
+
const errorResponse = new runtime.JSONApiResponse(rawResponse, (jsonValue) => (0, models_1.ErrorEntityFromJSON)(jsonValue));
|
|
1893
|
+
const error = yield errorResponse.value();
|
|
1894
|
+
throw error;
|
|
1895
|
+
}
|
|
1342
1896
|
if (!response) {
|
|
1343
1897
|
response = new runtime.TextApiResponse(rawResponse);
|
|
1344
1898
|
}
|