@channelpayments/node-sdk 1.24.0 → 1.35.4
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/README.md +2 -1
- package/dist/cjs/{src/apis → apis}/ChannelPaymentsApi.d.ts +13 -2
- package/dist/cjs/{src/apis → apis}/ChannelPaymentsApi.js +44 -31
- package/dist/cjs/models/AddressEntity1.d.ts +62 -0
- package/dist/cjs/models/AddressEntity1.js +63 -0
- package/dist/cjs/models/AmountRuleConditionEntity.d.ts +53 -0
- package/dist/cjs/models/AmountRuleConditionEntity.js +61 -0
- package/dist/cjs/{src/models → models}/BuyerEntity1.d.ts +9 -3
- package/dist/cjs/{src/models → models}/BuyerEntity1.js +5 -3
- package/dist/cjs/models/BuyerEntity1Address.d.ts +62 -0
- package/dist/cjs/models/BuyerEntity1Address.js +63 -0
- package/dist/cjs/models/CFeeRuleConditionEntity.d.ts +40 -0
- package/dist/cjs/models/CFeeRuleConditionEntity.js +57 -0
- package/dist/cjs/{src/models → models}/CardDetails.d.ts +6 -6
- package/dist/cjs/{src/models → models}/CardDetails.js +8 -8
- package/dist/cjs/models/CreateAmountRuleConditionDto.d.ts +44 -0
- package/dist/cjs/models/CreateAmountRuleConditionDto.js +53 -0
- package/dist/cjs/models/CreateCFeeDto.d.ts +40 -0
- package/dist/cjs/{src/models/CFeeDto.js → models/CreateCFeeDto.js} +12 -12
- package/dist/cjs/models/CreateCFeeRuleConditionDto.d.ts +32 -0
- package/dist/cjs/models/CreateCFeeRuleConditionDto.js +50 -0
- package/dist/{mjs/src → cjs}/models/CreateMerchantAccountDto.d.ts +48 -13
- package/dist/cjs/{src/models → models}/CreateMerchantAccountDto.js +41 -16
- package/dist/cjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
- package/dist/cjs/{src/models/CreateMerchantAccountDtoCfee.js → models/CreateMerchantAccountDtoCFee.js} +12 -12
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +149 -0
- package/dist/cjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +121 -0
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +62 -0
- package/dist/cjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +71 -0
- package/dist/{mjs/src → cjs}/models/CreateMerchantDto.d.ts +3 -3
- package/dist/cjs/{src/models → models}/CreateMerchantDto.js +3 -3
- package/dist/cjs/models/CreateMerchantRoutingFlowDto.d.ts +47 -0
- package/dist/cjs/models/CreateMerchantRoutingFlowDto.js +61 -0
- package/dist/cjs/models/CreateMerchantRoutingFlowRuleDto.d.ts +60 -0
- package/dist/cjs/models/CreateMerchantRoutingFlowRuleDto.js +66 -0
- package/dist/cjs/models/CreateMerchantRoutingFlowRuleWithoutIdDto.d.ts +54 -0
- package/dist/cjs/models/CreateMerchantRoutingFlowRuleWithoutIdDto.js +64 -0
- package/dist/cjs/models/CreateMerchantRoutingFlowRuleWithoutIdDtoConditions.d.ts +41 -0
- package/dist/cjs/models/CreateMerchantRoutingFlowRuleWithoutIdDtoConditions.js +53 -0
- package/dist/cjs/models/CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors.d.ts +52 -0
- package/dist/cjs/models/CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors.js +66 -0
- package/dist/cjs/models/CreateMetadataRuleConditionDto.d.ts +49 -0
- package/dist/cjs/models/CreateMetadataRuleConditionDto.js +63 -0
- package/dist/{mjs/src → cjs}/models/CreatePaymentMethodDto.d.ts +2 -1
- package/dist/cjs/{src/models → models}/CreatePaymentMethodDto.js +3 -3
- package/dist/cjs/models/CreateRuleConditionsDto.d.ts +41 -0
- package/dist/cjs/models/CreateRuleConditionsDto.js +53 -0
- package/dist/cjs/models/CreateRuleConditionsDtoAmount.d.ts +44 -0
- package/dist/cjs/models/CreateRuleConditionsDtoAmount.js +53 -0
- package/dist/cjs/models/CreateRuleConditionsDtoCFee.d.ts +32 -0
- package/dist/cjs/models/CreateRuleConditionsDtoCFee.js +50 -0
- package/dist/cjs/models/CreateRuleConnectorsDto.d.ts +52 -0
- package/dist/cjs/models/CreateRuleConnectorsDto.js +66 -0
- package/dist/cjs/{src/models → models}/CreateTransactionDto.d.ts +4 -4
- package/dist/cjs/{src/models → models}/CreateTransactionDto.js +4 -4
- package/dist/{mjs/src → cjs}/models/CreateTransactionDtoPaymentMethod.d.ts +0 -1
- package/dist/cjs/{src/models → models}/CreateTransactionDtoPaymentMethod.js +1 -2
- package/dist/cjs/models/CreateUserDto.d.ts +65 -0
- package/dist/cjs/models/CreateUserDto.js +69 -0
- package/dist/cjs/models/MerchantAccountEntity.d.ts +172 -0
- package/dist/cjs/{src/models → models}/MerchantAccountEntity.js +63 -18
- package/dist/cjs/models/MerchantAccountEntityCFee.d.ts +40 -0
- package/dist/cjs/{src/models/MerchantAccountEntityCfee.js → models/MerchantAccountEntityCFee.js} +12 -12
- package/dist/cjs/models/MerchantConnectorEntity.d.ts +92 -0
- package/dist/cjs/models/MerchantConnectorEntity.js +86 -0
- package/dist/cjs/{src/models → models}/MerchantEntity.d.ts +6 -0
- package/dist/cjs/{src/models → models}/MerchantEntity.js +3 -0
- package/dist/cjs/models/MerchantRoutingFlowEntity.d.ts +65 -0
- package/dist/cjs/models/MerchantRoutingFlowEntity.js +70 -0
- package/dist/cjs/models/MerchantRoutingFlowRuleEntity.d.ts +78 -0
- package/dist/cjs/models/MerchantRoutingFlowRuleEntity.js +76 -0
- package/dist/cjs/models/MerchantRoutingFlowRuleEntityConditions.d.ts +41 -0
- package/dist/cjs/models/MerchantRoutingFlowRuleEntityConditions.js +53 -0
- package/dist/cjs/models/MerchantRoutingFlowRuleEntityConnectors.d.ts +52 -0
- package/dist/cjs/models/MerchantRoutingFlowRuleEntityConnectors.js +67 -0
- package/dist/cjs/models/MetadataRuleConditionEntity.d.ts +49 -0
- package/dist/cjs/models/MetadataRuleConditionEntity.js +63 -0
- package/dist/cjs/{src/models → models}/PaymentMethodDto.d.ts +0 -1
- package/dist/cjs/{src/models → models}/PaymentMethodDto.js +1 -2
- package/dist/{mjs/src → cjs}/models/PaymentMethodEntity.d.ts +11 -8
- package/dist/cjs/{src/models → models}/PaymentMethodEntity.js +10 -7
- package/dist/{mjs/src → cjs}/models/PaymentMethodEntity1.d.ts +27 -3
- package/dist/cjs/{src/models → models}/PaymentMethodEntity1.js +11 -3
- package/dist/{mjs/src → cjs}/models/PaymentMethodEntityBuyer.d.ts +9 -3
- package/dist/cjs/{src/models → models}/PaymentMethodEntityBuyer.js +5 -3
- package/dist/cjs/models/PaymentMethodEntityCardDetails.d.ts +59 -0
- package/dist/cjs/models/PaymentMethodEntityCardDetails.js +67 -0
- package/dist/cjs/models/RuleConditionsEntity.d.ts +41 -0
- package/dist/cjs/models/RuleConditionsEntity.js +53 -0
- package/dist/cjs/models/RuleConditionsEntityAmount.d.ts +53 -0
- package/dist/cjs/models/RuleConditionsEntityAmount.js +61 -0
- package/dist/cjs/models/RuleConditionsEntityCfee.d.ts +40 -0
- package/dist/cjs/models/RuleConditionsEntityCfee.js +57 -0
- package/dist/cjs/models/RuleConnectorsEntity.d.ts +52 -0
- package/dist/cjs/models/RuleConnectorsEntity.js +67 -0
- package/dist/cjs/{src/models → models}/TransactionEntity.d.ts +37 -0
- package/dist/cjs/{src/models → models}/TransactionEntity.js +22 -2
- package/dist/cjs/{src/models → models}/UpdateBuyerDto.d.ts +1 -1
- package/dist/{mjs/src → cjs}/models/UpdateCFeeDto.d.ts +4 -4
- package/dist/cjs/{src/models → models}/UpdateCFeeDto.js +4 -2
- package/dist/cjs/{src/models → models}/UpdateMerchantAccountDto.d.ts +44 -9
- package/dist/cjs/{src/models → models}/UpdateMerchantAccountDto.js +35 -10
- package/dist/cjs/models/UpdateMerchantAccountDtoCFee.d.ts +40 -0
- package/dist/cjs/models/UpdateMerchantAccountDtoCFee.js +57 -0
- package/dist/cjs/models/UpdateMerchantRoutingFlowRuleDto.d.ts +60 -0
- package/dist/cjs/models/UpdateMerchantRoutingFlowRuleDto.js +64 -0
- package/dist/cjs/models/UpdateSelfDto.d.ts +75 -0
- package/dist/cjs/models/UpdateSelfDto.js +73 -0
- package/dist/cjs/models/UpdateUserDto.d.ts +81 -0
- package/dist/cjs/models/UpdateUserDto.js +76 -0
- package/dist/cjs/models/UserEntity.d.ts +99 -0
- package/dist/cjs/models/UserEntity.js +90 -0
- package/dist/cjs/{src/models → models}/index.d.ts +38 -9
- package/dist/cjs/{src/models → models}/index.js +38 -9
- package/dist/cjs/{src/runtime.d.ts → runtime.d.ts} +0 -1
- package/dist/cjs/{src/runtime.js → runtime.js} +1 -19
- package/dist/mjs/{src/apis → apis}/ChannelPaymentsApi.d.ts +13 -2
- package/dist/mjs/{src/apis → apis}/ChannelPaymentsApi.js +44 -31
- package/dist/mjs/models/AddressEntity1.d.ts +62 -0
- package/dist/mjs/models/AddressEntity1.js +56 -0
- package/dist/mjs/models/AmountRuleConditionEntity.d.ts +53 -0
- package/dist/mjs/models/AmountRuleConditionEntity.js +54 -0
- package/dist/mjs/{src/models → models}/BuyerEntity1.d.ts +9 -3
- package/dist/mjs/{src/models → models}/BuyerEntity1.js +5 -3
- package/dist/mjs/models/BuyerEntity1Address.d.ts +62 -0
- package/dist/mjs/models/BuyerEntity1Address.js +56 -0
- package/dist/mjs/models/CFeeRuleConditionEntity.d.ts +40 -0
- package/dist/mjs/models/CFeeRuleConditionEntity.js +50 -0
- package/dist/mjs/{src/models → models}/CardDetails.d.ts +6 -6
- package/dist/mjs/{src/models → models}/CardDetails.js +7 -7
- package/dist/mjs/models/CreateAmountRuleConditionDto.d.ts +44 -0
- package/dist/mjs/models/CreateAmountRuleConditionDto.js +46 -0
- package/dist/mjs/models/CreateCFeeDto.d.ts +40 -0
- package/dist/mjs/{src/models/CFeeDto.js → models/CreateCFeeDto.js} +7 -7
- package/dist/mjs/models/CreateCFeeRuleConditionDto.d.ts +32 -0
- package/dist/mjs/models/CreateCFeeRuleConditionDto.js +43 -0
- package/dist/{cjs/src → mjs}/models/CreateMerchantAccountDto.d.ts +48 -13
- package/dist/mjs/{src/models → models}/CreateMerchantAccountDto.js +40 -15
- package/dist/mjs/models/CreateMerchantAccountDtoCFee.d.ts +40 -0
- package/dist/mjs/{src/models/CreateMerchantAccountDtoCfee.js → models/CreateMerchantAccountDtoCFee.js} +7 -7
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.d.ts +149 -0
- package/dist/mjs/models/CreateMerchantAccountWithoutMerchantIdDto.js +114 -0
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.d.ts +62 -0
- package/dist/mjs/models/CreateMerchantConnectorWithoutMerchantAccountIdDto.js +64 -0
- package/dist/{cjs/src → mjs}/models/CreateMerchantDto.d.ts +3 -3
- package/dist/mjs/{src/models → models}/CreateMerchantDto.js +3 -3
- package/dist/mjs/models/CreateMerchantRoutingFlowDto.d.ts +47 -0
- package/dist/mjs/models/CreateMerchantRoutingFlowDto.js +54 -0
- package/dist/mjs/models/CreateMerchantRoutingFlowRuleDto.d.ts +60 -0
- package/dist/mjs/models/CreateMerchantRoutingFlowRuleDto.js +59 -0
- package/dist/mjs/models/CreateMerchantRoutingFlowRuleWithoutIdDto.d.ts +54 -0
- package/dist/mjs/models/CreateMerchantRoutingFlowRuleWithoutIdDto.js +57 -0
- package/dist/mjs/models/CreateMerchantRoutingFlowRuleWithoutIdDtoConditions.d.ts +41 -0
- package/dist/mjs/models/CreateMerchantRoutingFlowRuleWithoutIdDtoConditions.js +46 -0
- package/dist/mjs/models/CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors.d.ts +52 -0
- package/dist/mjs/models/CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors.js +59 -0
- package/dist/mjs/models/CreateMetadataRuleConditionDto.d.ts +49 -0
- package/dist/mjs/models/CreateMetadataRuleConditionDto.js +56 -0
- package/dist/{cjs/src → mjs}/models/CreatePaymentMethodDto.d.ts +2 -1
- package/dist/mjs/{src/models → models}/CreatePaymentMethodDto.js +3 -3
- package/dist/mjs/models/CreateRuleConditionsDto.d.ts +41 -0
- package/dist/mjs/models/CreateRuleConditionsDto.js +46 -0
- package/dist/mjs/models/CreateRuleConditionsDtoAmount.d.ts +44 -0
- package/dist/mjs/models/CreateRuleConditionsDtoAmount.js +46 -0
- package/dist/mjs/models/CreateRuleConditionsDtoCFee.d.ts +32 -0
- package/dist/mjs/models/CreateRuleConditionsDtoCFee.js +43 -0
- package/dist/mjs/models/CreateRuleConnectorsDto.d.ts +52 -0
- package/dist/mjs/models/CreateRuleConnectorsDto.js +59 -0
- package/dist/mjs/{src/models → models}/CreateTransactionDto.d.ts +4 -4
- package/dist/mjs/{src/models → models}/CreateTransactionDto.js +4 -4
- package/dist/{cjs/src → mjs}/models/CreateTransactionDtoPaymentMethod.d.ts +0 -1
- package/dist/mjs/{src/models → models}/CreateTransactionDtoPaymentMethod.js +1 -2
- package/dist/mjs/models/CreateUserDto.d.ts +65 -0
- package/dist/mjs/models/CreateUserDto.js +62 -0
- package/dist/mjs/models/MerchantAccountEntity.d.ts +172 -0
- package/dist/mjs/models/MerchantAccountEntity.js +135 -0
- package/dist/mjs/models/MerchantAccountEntityCFee.d.ts +40 -0
- package/dist/mjs/{src/models/MerchantAccountEntityCfee.js → models/MerchantAccountEntityCFee.js} +7 -7
- package/dist/mjs/models/MerchantConnectorEntity.d.ts +92 -0
- package/dist/mjs/models/MerchantConnectorEntity.js +79 -0
- package/dist/mjs/{src/models → models}/MerchantEntity.d.ts +6 -0
- package/dist/mjs/{src/models → models}/MerchantEntity.js +3 -0
- package/dist/mjs/models/MerchantRoutingFlowEntity.d.ts +65 -0
- package/dist/mjs/models/MerchantRoutingFlowEntity.js +63 -0
- package/dist/mjs/models/MerchantRoutingFlowRuleEntity.d.ts +78 -0
- package/dist/mjs/models/MerchantRoutingFlowRuleEntity.js +69 -0
- package/dist/mjs/models/MerchantRoutingFlowRuleEntityConditions.d.ts +41 -0
- package/dist/mjs/models/MerchantRoutingFlowRuleEntityConditions.js +46 -0
- package/dist/mjs/models/MerchantRoutingFlowRuleEntityConnectors.d.ts +52 -0
- package/dist/mjs/models/MerchantRoutingFlowRuleEntityConnectors.js +60 -0
- package/dist/mjs/models/MetadataRuleConditionEntity.d.ts +49 -0
- package/dist/mjs/models/MetadataRuleConditionEntity.js +56 -0
- package/dist/mjs/{src/models → models}/PaymentMethodDto.d.ts +0 -1
- package/dist/mjs/{src/models → models}/PaymentMethodDto.js +1 -2
- package/dist/{cjs/src → mjs}/models/PaymentMethodEntity.d.ts +11 -8
- package/dist/mjs/{src/models → models}/PaymentMethodEntity.js +10 -7
- package/dist/{cjs/src → mjs}/models/PaymentMethodEntity1.d.ts +27 -3
- package/dist/mjs/{src/models → models}/PaymentMethodEntity1.js +11 -3
- package/dist/{cjs/src → mjs}/models/PaymentMethodEntityBuyer.d.ts +9 -3
- package/dist/mjs/{src/models → models}/PaymentMethodEntityBuyer.js +5 -3
- package/dist/mjs/models/PaymentMethodEntityCardDetails.d.ts +59 -0
- package/dist/mjs/{src/models/PaymentMethodEntityDetails.js → models/PaymentMethodEntityCardDetails.js} +13 -13
- package/dist/mjs/models/RuleConditionsEntity.d.ts +41 -0
- package/dist/mjs/models/RuleConditionsEntity.js +46 -0
- package/dist/mjs/models/RuleConditionsEntityAmount.d.ts +53 -0
- package/dist/mjs/models/RuleConditionsEntityAmount.js +54 -0
- package/dist/mjs/models/RuleConditionsEntityCfee.d.ts +40 -0
- package/dist/mjs/models/RuleConditionsEntityCfee.js +50 -0
- package/dist/mjs/models/RuleConnectorsEntity.d.ts +52 -0
- package/dist/mjs/models/RuleConnectorsEntity.js +60 -0
- package/dist/mjs/{src/models → models}/TransactionEntity.d.ts +37 -0
- package/dist/mjs/{src/models → models}/TransactionEntity.js +22 -2
- package/dist/mjs/{src/models → models}/UpdateBuyerDto.d.ts +1 -1
- package/dist/{cjs/src → mjs}/models/UpdateCFeeDto.d.ts +4 -4
- package/dist/mjs/{src/models → models}/UpdateCFeeDto.js +5 -3
- package/dist/mjs/{src/models → models}/UpdateMerchantAccountDto.d.ts +44 -9
- package/dist/mjs/{src/models → models}/UpdateMerchantAccountDto.js +34 -9
- package/dist/mjs/models/UpdateMerchantAccountDtoCFee.d.ts +40 -0
- package/dist/mjs/models/UpdateMerchantAccountDtoCFee.js +50 -0
- package/dist/mjs/models/UpdateMerchantRoutingFlowRuleDto.d.ts +60 -0
- package/dist/mjs/models/UpdateMerchantRoutingFlowRuleDto.js +57 -0
- package/dist/mjs/models/UpdateSelfDto.d.ts +75 -0
- package/dist/mjs/models/UpdateSelfDto.js +66 -0
- package/dist/mjs/models/UpdateUserDto.d.ts +81 -0
- package/dist/mjs/models/UpdateUserDto.js +69 -0
- package/dist/mjs/models/UserEntity.d.ts +99 -0
- package/dist/mjs/models/UserEntity.js +83 -0
- package/dist/mjs/{src/models → models}/index.d.ts +38 -9
- package/dist/mjs/{src/models → models}/index.js +38 -9
- package/dist/mjs/{src/runtime.d.ts → runtime.d.ts} +0 -1
- package/dist/mjs/{src/runtime.js → runtime.js} +1 -19
- package/package.json +1 -1
- package/dist/cjs/src/models/CFeeDto.d.ts +0 -40
- package/dist/cjs/src/models/CreateMerchantAccountDtoCfee.d.ts +0 -40
- package/dist/cjs/src/models/CreateMerchantAccountDtoGateways.d.ts +0 -41
- package/dist/cjs/src/models/CreateMerchantAccountDtoGateways.js +0 -58
- package/dist/cjs/src/models/CreateMerchantAccountsDto.d.ts +0 -114
- package/dist/cjs/src/models/CreateMerchantAccountsDto.js +0 -96
- package/dist/cjs/src/models/CreateMerchantGateway.d.ts +0 -41
- package/dist/cjs/src/models/CreateMerchantGateway.js +0 -58
- package/dist/cjs/src/models/MerchantAccountEntity.d.ts +0 -108
- package/dist/cjs/src/models/MerchantAccountEntityCfee.d.ts +0 -40
- package/dist/cjs/src/models/MerchantGatewayEntity.d.ts +0 -59
- package/dist/cjs/src/models/MerchantGatewayEntity.js +0 -67
- package/dist/cjs/src/models/PaymentMethodEntityDetails.d.ts +0 -59
- package/dist/cjs/src/models/PaymentMethodEntityDetails.js +0 -67
- package/dist/cjs/src/models/UpdateMerchantAccountDtoCfee.d.ts +0 -40
- package/dist/cjs/src/models/UpdateMerchantAccountDtoCfee.js +0 -55
- package/dist/cjs/test.d.ts +0 -1
- package/dist/cjs/test.js +0 -81
- package/dist/mjs/src/models/CFeeDto.d.ts +0 -40
- package/dist/mjs/src/models/CreateMerchantAccountDtoCfee.d.ts +0 -40
- package/dist/mjs/src/models/CreateMerchantAccountDtoGateways.d.ts +0 -41
- package/dist/mjs/src/models/CreateMerchantAccountDtoGateways.js +0 -51
- package/dist/mjs/src/models/CreateMerchantAccountsDto.d.ts +0 -114
- package/dist/mjs/src/models/CreateMerchantAccountsDto.js +0 -89
- package/dist/mjs/src/models/CreateMerchantGateway.d.ts +0 -41
- package/dist/mjs/src/models/CreateMerchantGateway.js +0 -51
- package/dist/mjs/src/models/MerchantAccountEntity.d.ts +0 -108
- package/dist/mjs/src/models/MerchantAccountEntity.js +0 -90
- package/dist/mjs/src/models/MerchantAccountEntityCfee.d.ts +0 -40
- package/dist/mjs/src/models/MerchantGatewayEntity.d.ts +0 -59
- package/dist/mjs/src/models/MerchantGatewayEntity.js +0 -60
- package/dist/mjs/src/models/PaymentMethodEntityDetails.d.ts +0 -59
- package/dist/mjs/src/models/UpdateMerchantAccountDtoCfee.d.ts +0 -40
- package/dist/mjs/src/models/UpdateMerchantAccountDtoCfee.js +0 -48
- package/dist/mjs/test.d.ts +0 -1
- package/dist/mjs/test.js +0 -47
- /package/dist/cjs/{src/apis → apis}/index.d.ts +0 -0
- /package/dist/cjs/{src/apis → apis}/index.js +0 -0
- /package/dist/cjs/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/cjs/{src/index.js → index.js} +0 -0
- /package/dist/cjs/{src/models → models}/AddressDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/AddressDto.js +0 -0
- /package/dist/cjs/{src/models → models}/AddressEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/AddressEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/BuyerAddressEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/BuyerAddressEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/BuyerEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/BuyerEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/BuyerEntityAddress.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/BuyerEntityAddress.js +0 -0
- /package/dist/cjs/{src/models → models}/BuyersSearchEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/BuyersSearchEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/CFeeEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/CFeeEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/CaptureTransactionDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/CaptureTransactionDto.js +0 -0
- /package/dist/cjs/{src/models → models}/CreateBuyerDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/CreateBuyerDto.js +0 -0
- /package/dist/cjs/{src/models → models}/CreateBuyerDtoAddress.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/CreateBuyerDtoAddress.js +0 -0
- /package/dist/cjs/{src/models → models}/CreateMerchantAddressDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/CreateMerchantAddressDto.js +0 -0
- /package/dist/cjs/{src/models → models}/CreateMerchantCredentialsDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/CreateMerchantCredentialsDto.js +0 -0
- /package/dist/cjs/{src/models → models}/CreateMerchantDtoAddress.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/CreateMerchantDtoAddress.js +0 -0
- /package/dist/cjs/{src/models → models}/ErrorEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/ErrorEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/MerchantAddressEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/MerchantAddressEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/MerchantCredentialsEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/MerchantCredentialsEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/MerchantEntityAddress.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/MerchantEntityAddress.js +0 -0
- /package/dist/cjs/{src/models → models}/PaymentMethodsSearchEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/PaymentMethodsSearchEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/PaymentsBuyerEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/PaymentsBuyerEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/RefundTransactionDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/RefundTransactionDto.js +0 -0
- /package/dist/cjs/{src/models → models}/TransactionRefundEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/TransactionRefundEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/TransactionRefundsSearchEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/TransactionRefundsSearchEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/TransactionsSearchEntity.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/TransactionsSearchEntity.js +0 -0
- /package/dist/cjs/{src/models → models}/UpdateAddressDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/UpdateAddressDto.js +0 -0
- /package/dist/cjs/{src/models → models}/UpdateBuyerDto.js +0 -0
- /package/dist/cjs/{src/models → models}/UpdateBuyerDtoAddress.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/UpdateBuyerDtoAddress.js +0 -0
- /package/dist/cjs/{src/models → models}/UpdateMerchantAddressDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/UpdateMerchantAddressDto.js +0 -0
- /package/dist/cjs/{src/models → models}/UpdateMerchantCredentialsDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/UpdateMerchantCredentialsDto.js +0 -0
- /package/dist/cjs/{src/models → models}/UpdateMerchantDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/UpdateMerchantDto.js +0 -0
- /package/dist/cjs/{src/models → models}/UpdateMerchantDtoAddress.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/UpdateMerchantDtoAddress.js +0 -0
- /package/dist/cjs/{src/models → models}/ValidateMerchantCredentialsDto.d.ts +0 -0
- /package/dist/cjs/{src/models → models}/ValidateMerchantCredentialsDto.js +0 -0
- /package/dist/mjs/{src/apis → apis}/index.d.ts +0 -0
- /package/dist/mjs/{src/apis → apis}/index.js +0 -0
- /package/dist/mjs/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/mjs/{src/index.js → index.js} +0 -0
- /package/dist/mjs/{src/models → models}/AddressDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/AddressDto.js +0 -0
- /package/dist/mjs/{src/models → models}/AddressEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/AddressEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/BuyerAddressEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/BuyerAddressEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/BuyerEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/BuyerEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/BuyerEntityAddress.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/BuyerEntityAddress.js +0 -0
- /package/dist/mjs/{src/models → models}/BuyersSearchEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/BuyersSearchEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/CFeeEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/CFeeEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/CaptureTransactionDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/CaptureTransactionDto.js +0 -0
- /package/dist/mjs/{src/models → models}/CreateBuyerDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/CreateBuyerDto.js +0 -0
- /package/dist/mjs/{src/models → models}/CreateBuyerDtoAddress.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/CreateBuyerDtoAddress.js +0 -0
- /package/dist/mjs/{src/models → models}/CreateMerchantAddressDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/CreateMerchantAddressDto.js +0 -0
- /package/dist/mjs/{src/models → models}/CreateMerchantCredentialsDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/CreateMerchantCredentialsDto.js +0 -0
- /package/dist/mjs/{src/models → models}/CreateMerchantDtoAddress.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/CreateMerchantDtoAddress.js +0 -0
- /package/dist/mjs/{src/models → models}/ErrorEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/ErrorEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/MerchantAddressEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/MerchantAddressEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/MerchantCredentialsEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/MerchantCredentialsEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/MerchantEntityAddress.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/MerchantEntityAddress.js +0 -0
- /package/dist/mjs/{src/models → models}/PaymentMethodsSearchEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/PaymentMethodsSearchEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/PaymentsBuyerEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/PaymentsBuyerEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/RefundTransactionDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/RefundTransactionDto.js +0 -0
- /package/dist/mjs/{src/models → models}/TransactionRefundEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/TransactionRefundEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/TransactionRefundsSearchEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/TransactionRefundsSearchEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/TransactionsSearchEntity.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/TransactionsSearchEntity.js +0 -0
- /package/dist/mjs/{src/models → models}/UpdateAddressDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/UpdateAddressDto.js +0 -0
- /package/dist/mjs/{src/models → models}/UpdateBuyerDto.js +0 -0
- /package/dist/mjs/{src/models → models}/UpdateBuyerDtoAddress.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/UpdateBuyerDtoAddress.js +0 -0
- /package/dist/mjs/{src/models → models}/UpdateMerchantAddressDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/UpdateMerchantAddressDto.js +0 -0
- /package/dist/mjs/{src/models → models}/UpdateMerchantCredentialsDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/UpdateMerchantCredentialsDto.js +0 -0
- /package/dist/mjs/{src/models → models}/UpdateMerchantDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/UpdateMerchantDto.js +0 -0
- /package/dist/mjs/{src/models → models}/UpdateMerchantDtoAddress.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/UpdateMerchantDtoAddress.js +0 -0
- /package/dist/mjs/{src/models → models}/ValidateMerchantCredentialsDto.d.ts +0 -0
- /package/dist/mjs/{src/models → models}/ValidateMerchantCredentialsDto.js +0 -0
package/README.md
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
# sdk
|
|
1
|
+
# node-sdk
|
|
2
|
+
> Typescript sdk for backend integration with Channel Payments
|
|
@@ -25,7 +25,7 @@ export interface GetTransactionRequest {
|
|
|
25
25
|
transactionId: string;
|
|
26
26
|
}
|
|
27
27
|
export interface SearchBuyersRequest {
|
|
28
|
-
merchantId
|
|
28
|
+
merchantId: string;
|
|
29
29
|
buyerId?: string;
|
|
30
30
|
externalBuyerId?: string;
|
|
31
31
|
startDate?: Date;
|
|
@@ -36,6 +36,7 @@ export interface SearchBuyersRequest {
|
|
|
36
36
|
cursor?: string;
|
|
37
37
|
limit?: string;
|
|
38
38
|
order?: SearchBuyersOrderEnum;
|
|
39
|
+
searchTerm?: string;
|
|
39
40
|
}
|
|
40
41
|
export interface SearchPaymentMethodsRequest {
|
|
41
42
|
merchantId: string;
|
|
@@ -193,7 +194,8 @@ export type SearchBuyersOrderEnum = typeof SearchBuyersOrderEnum[keyof typeof Se
|
|
|
193
194
|
* @export
|
|
194
195
|
*/
|
|
195
196
|
export declare const SearchPaymentMethodsMethodEnum: {
|
|
196
|
-
readonly Card: "
|
|
197
|
+
readonly Card: "CARD";
|
|
198
|
+
readonly Ach: "ACH";
|
|
197
199
|
};
|
|
198
200
|
export type SearchPaymentMethodsMethodEnum = typeof SearchPaymentMethodsMethodEnum[keyof typeof SearchPaymentMethodsMethodEnum];
|
|
199
201
|
/**
|
|
@@ -201,6 +203,8 @@ export type SearchPaymentMethodsMethodEnum = typeof SearchPaymentMethodsMethodEn
|
|
|
201
203
|
*/
|
|
202
204
|
export declare const SearchPaymentMethodsCurrencyEnum: {
|
|
203
205
|
readonly Usd: "USD";
|
|
206
|
+
readonly Aud: "AUD";
|
|
207
|
+
readonly Cad: "CAD";
|
|
204
208
|
};
|
|
205
209
|
export type SearchPaymentMethodsCurrencyEnum = typeof SearchPaymentMethodsCurrencyEnum[keyof typeof SearchPaymentMethodsCurrencyEnum];
|
|
206
210
|
/**
|
|
@@ -252,6 +256,11 @@ export declare const SearchTransactionsStatusEnum: {
|
|
|
252
256
|
readonly Captured: "captured";
|
|
253
257
|
readonly VoidPending: "voidPending";
|
|
254
258
|
readonly Voided: "voided";
|
|
259
|
+
readonly Held: "held";
|
|
260
|
+
readonly Submitted: "submitted";
|
|
261
|
+
readonly Transmitted: "transmitted";
|
|
262
|
+
readonly Settled: "settled";
|
|
263
|
+
readonly Returned: "returned";
|
|
255
264
|
};
|
|
256
265
|
export type SearchTransactionsStatusEnum = typeof SearchTransactionsStatusEnum[keyof typeof SearchTransactionsStatusEnum];
|
|
257
266
|
/**
|
|
@@ -260,6 +269,8 @@ export type SearchTransactionsStatusEnum = typeof SearchTransactionsStatusEnum[k
|
|
|
260
269
|
export declare const SearchTransactionsIntentEnum: {
|
|
261
270
|
readonly Capture: "capture";
|
|
262
271
|
readonly Authorize: "authorize";
|
|
272
|
+
readonly Debit: "debit";
|
|
273
|
+
readonly Credit: "credit";
|
|
263
274
|
};
|
|
264
275
|
export type SearchTransactionsIntentEnum = typeof SearchTransactionsIntentEnum[keyof typeof SearchTransactionsIntentEnum];
|
|
265
276
|
/**
|
|
@@ -54,10 +54,10 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
54
54
|
captureTransaction(requestParameters) {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function* () {
|
|
56
56
|
if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
|
|
57
|
-
throw new runtime.RequiredError('transactionId', 'Required parameter
|
|
57
|
+
throw new runtime.RequiredError('transactionId', 'Required parameter \'transactionId\' was null or undefined when calling captureTransaction.');
|
|
58
58
|
}
|
|
59
59
|
if (requestParameters.amount === null || requestParameters.amount === undefined) {
|
|
60
|
-
throw new runtime.RequiredError('amount', 'Required parameter
|
|
60
|
+
throw new runtime.RequiredError('amount', 'Required parameter \'amount\' was null or undefined when calling captureTransaction.');
|
|
61
61
|
}
|
|
62
62
|
const queryParameters = {};
|
|
63
63
|
const headerParameters = {};
|
|
@@ -111,16 +111,16 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
111
111
|
createBuyer(requestParameters) {
|
|
112
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
113
113
|
if (requestParameters.givenName === null || requestParameters.givenName === undefined) {
|
|
114
|
-
throw new runtime.RequiredError('givenName', 'Required parameter
|
|
114
|
+
throw new runtime.RequiredError('givenName', 'Required parameter \'givenName\' was null or undefined when calling createBuyer.');
|
|
115
115
|
}
|
|
116
116
|
if (requestParameters.familyName === null || requestParameters.familyName === undefined) {
|
|
117
|
-
throw new runtime.RequiredError('familyName', 'Required parameter
|
|
117
|
+
throw new runtime.RequiredError('familyName', 'Required parameter \'familyName\' was null or undefined when calling createBuyer.');
|
|
118
118
|
}
|
|
119
119
|
if (requestParameters.email === null || requestParameters.email === undefined) {
|
|
120
|
-
throw new runtime.RequiredError('email', 'Required parameter
|
|
120
|
+
throw new runtime.RequiredError('email', 'Required parameter \'email\' was null or undefined when calling createBuyer.');
|
|
121
121
|
}
|
|
122
122
|
if (requestParameters.address === null || requestParameters.address === undefined) {
|
|
123
|
-
throw new runtime.RequiredError('address', 'Required parameter
|
|
123
|
+
throw new runtime.RequiredError('address', 'Required parameter \'address\' was null or undefined when calling createBuyer.');
|
|
124
124
|
}
|
|
125
125
|
const queryParameters = {};
|
|
126
126
|
const headerParameters = {};
|
|
@@ -164,13 +164,13 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
164
164
|
createTransaction(requestParameters) {
|
|
165
165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
166
166
|
if (requestParameters.amount === null || requestParameters.amount === undefined) {
|
|
167
|
-
throw new runtime.RequiredError('amount', 'Required parameter
|
|
167
|
+
throw new runtime.RequiredError('amount', 'Required parameter \'amount\' was null or undefined when calling createTransaction.');
|
|
168
168
|
}
|
|
169
169
|
if (requestParameters.currency === null || requestParameters.currency === undefined) {
|
|
170
|
-
throw new runtime.RequiredError('currency', 'Required parameter
|
|
170
|
+
throw new runtime.RequiredError('currency', 'Required parameter \'currency\' was null or undefined when calling createTransaction.');
|
|
171
171
|
}
|
|
172
172
|
if (requestParameters.paymentMethod === null || requestParameters.paymentMethod === undefined) {
|
|
173
|
-
throw new runtime.RequiredError('paymentMethod', 'Required parameter
|
|
173
|
+
throw new runtime.RequiredError('paymentMethod', 'Required parameter \'paymentMethod\' was null or undefined when calling createTransaction.');
|
|
174
174
|
}
|
|
175
175
|
const queryParameters = {};
|
|
176
176
|
const headerParameters = {};
|
|
@@ -219,7 +219,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
219
219
|
deleteBuyer(requestParameters) {
|
|
220
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
221
221
|
if (requestParameters.buyerId === null || requestParameters.buyerId === undefined) {
|
|
222
|
-
throw new runtime.RequiredError('buyerId', 'Required parameter
|
|
222
|
+
throw new runtime.RequiredError('buyerId', 'Required parameter \'buyerId\' was null or undefined when calling deleteBuyer.');
|
|
223
223
|
}
|
|
224
224
|
const queryParameters = {};
|
|
225
225
|
const headerParameters = {};
|
|
@@ -261,7 +261,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
261
261
|
deletePaymentMethod(requestParameters) {
|
|
262
262
|
return __awaiter(this, void 0, void 0, function* () {
|
|
263
263
|
if (requestParameters.paymentMethodId === null || requestParameters.paymentMethodId === undefined) {
|
|
264
|
-
throw new runtime.RequiredError('paymentMethodId', 'Required parameter
|
|
264
|
+
throw new runtime.RequiredError('paymentMethodId', 'Required parameter \'paymentMethodId\' was null or undefined when calling deletePaymentMethod.');
|
|
265
265
|
}
|
|
266
266
|
const queryParameters = {};
|
|
267
267
|
const headerParameters = {};
|
|
@@ -308,7 +308,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
308
308
|
getBuyer(requestParameters) {
|
|
309
309
|
return __awaiter(this, void 0, void 0, function* () {
|
|
310
310
|
if (requestParameters.buyerId === null || requestParameters.buyerId === undefined) {
|
|
311
|
-
throw new runtime.RequiredError('buyerId', 'Required parameter
|
|
311
|
+
throw new runtime.RequiredError('buyerId', 'Required parameter \'buyerId\' was null or undefined when calling getBuyer.');
|
|
312
312
|
}
|
|
313
313
|
const queryParameters = {};
|
|
314
314
|
const headerParameters = {};
|
|
@@ -428,7 +428,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
428
428
|
getPaymentMethod(requestParameters) {
|
|
429
429
|
return __awaiter(this, void 0, void 0, function* () {
|
|
430
430
|
if (requestParameters.paymentMethodId === null || requestParameters.paymentMethodId === undefined) {
|
|
431
|
-
throw new runtime.RequiredError('paymentMethodId', 'Required parameter
|
|
431
|
+
throw new runtime.RequiredError('paymentMethodId', 'Required parameter \'paymentMethodId\' was null or undefined when calling getPaymentMethod.');
|
|
432
432
|
}
|
|
433
433
|
const queryParameters = {};
|
|
434
434
|
const headerParameters = {};
|
|
@@ -475,7 +475,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
475
475
|
getRefund(requestParameters) {
|
|
476
476
|
return __awaiter(this, void 0, void 0, function* () {
|
|
477
477
|
if (requestParameters.refundId === null || requestParameters.refundId === undefined) {
|
|
478
|
-
throw new runtime.RequiredError('refundId', 'Required parameter
|
|
478
|
+
throw new runtime.RequiredError('refundId', 'Required parameter \'refundId\' was null or undefined when calling getRefund.');
|
|
479
479
|
}
|
|
480
480
|
const queryParameters = {};
|
|
481
481
|
const headerParameters = {};
|
|
@@ -527,7 +527,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
527
527
|
getTransaction(requestParameters) {
|
|
528
528
|
return __awaiter(this, void 0, void 0, function* () {
|
|
529
529
|
if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
|
|
530
|
-
throw new runtime.RequiredError('transactionId', 'Required parameter
|
|
530
|
+
throw new runtime.RequiredError('transactionId', 'Required parameter \'transactionId\' was null or undefined when calling getTransaction.');
|
|
531
531
|
}
|
|
532
532
|
const queryParameters = {};
|
|
533
533
|
const headerParameters = {};
|
|
@@ -579,10 +579,10 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
579
579
|
refundTransaction(requestParameters) {
|
|
580
580
|
return __awaiter(this, void 0, void 0, function* () {
|
|
581
581
|
if (requestParameters.refundAmount === null || requestParameters.refundAmount === undefined) {
|
|
582
|
-
throw new runtime.RequiredError('refundAmount', 'Required parameter
|
|
582
|
+
throw new runtime.RequiredError('refundAmount', 'Required parameter \'refundAmount\' was null or undefined when calling refundTransaction.');
|
|
583
583
|
}
|
|
584
584
|
if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
|
|
585
|
-
throw new runtime.RequiredError('transactionId', 'Required parameter
|
|
585
|
+
throw new runtime.RequiredError('transactionId', 'Required parameter \'transactionId\' was null or undefined when calling refundTransaction.');
|
|
586
586
|
}
|
|
587
587
|
const queryParameters = {};
|
|
588
588
|
const headerParameters = {};
|
|
@@ -635,6 +635,9 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
635
635
|
*/
|
|
636
636
|
searchBuyers(requestParameters) {
|
|
637
637
|
return __awaiter(this, void 0, void 0, function* () {
|
|
638
|
+
if (requestParameters.merchantId === null || requestParameters.merchantId === undefined) {
|
|
639
|
+
throw new runtime.RequiredError('merchantId', 'Required parameter \'merchantId\' was null or undefined when calling searchBuyers.');
|
|
640
|
+
}
|
|
638
641
|
const queryParameters = {};
|
|
639
642
|
if (requestParameters.merchantId !== undefined) {
|
|
640
643
|
queryParameters['merchantId'] = requestParameters.merchantId;
|
|
@@ -669,6 +672,9 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
669
672
|
if (requestParameters.order !== undefined) {
|
|
670
673
|
queryParameters['order'] = requestParameters.order;
|
|
671
674
|
}
|
|
675
|
+
if (requestParameters.searchTerm !== undefined) {
|
|
676
|
+
queryParameters['searchTerm'] = requestParameters.searchTerm;
|
|
677
|
+
}
|
|
672
678
|
const headerParameters = {};
|
|
673
679
|
const rawResponse = yield this.request({
|
|
674
680
|
path: `/buyers/search`,
|
|
@@ -708,7 +714,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
708
714
|
searchPaymentMethods(requestParameters) {
|
|
709
715
|
return __awaiter(this, void 0, void 0, function* () {
|
|
710
716
|
if (requestParameters.merchantId === null || requestParameters.merchantId === undefined) {
|
|
711
|
-
throw new runtime.RequiredError('merchantId', 'Required parameter
|
|
717
|
+
throw new runtime.RequiredError('merchantId', 'Required parameter \'merchantId\' was null or undefined when calling searchPaymentMethods.');
|
|
712
718
|
}
|
|
713
719
|
const queryParameters = {};
|
|
714
720
|
if (requestParameters.merchantId !== undefined) {
|
|
@@ -783,7 +789,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
783
789
|
searchRefunds(requestParameters) {
|
|
784
790
|
return __awaiter(this, void 0, void 0, function* () {
|
|
785
791
|
if (requestParameters.merchantId === null || requestParameters.merchantId === undefined) {
|
|
786
|
-
throw new runtime.RequiredError('merchantId', 'Required parameter
|
|
792
|
+
throw new runtime.RequiredError('merchantId', 'Required parameter \'merchantId\' was null or undefined when calling searchRefunds.');
|
|
787
793
|
}
|
|
788
794
|
const queryParameters = {};
|
|
789
795
|
if (requestParameters.merchantId !== undefined) {
|
|
@@ -862,7 +868,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
862
868
|
searchTransactions(requestParameters) {
|
|
863
869
|
return __awaiter(this, void 0, void 0, function* () {
|
|
864
870
|
if (requestParameters.merchantId === null || requestParameters.merchantId === undefined) {
|
|
865
|
-
throw new runtime.RequiredError('merchantId', 'Required parameter
|
|
871
|
+
throw new runtime.RequiredError('merchantId', 'Required parameter \'merchantId\' was null or undefined when calling searchTransactions.');
|
|
866
872
|
}
|
|
867
873
|
const queryParameters = {};
|
|
868
874
|
if (requestParameters.merchantId !== undefined) {
|
|
@@ -949,13 +955,10 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
949
955
|
storePaymentMethod(requestParameters) {
|
|
950
956
|
return __awaiter(this, void 0, void 0, function* () {
|
|
951
957
|
if (requestParameters.method === null || requestParameters.method === undefined) {
|
|
952
|
-
throw new runtime.RequiredError('method', 'Required parameter
|
|
953
|
-
}
|
|
954
|
-
if (requestParameters.number === null || requestParameters.number === undefined) {
|
|
955
|
-
throw new runtime.RequiredError('number', 'Required parameter requestParameters.number was null or undefined when calling storePaymentMethod.');
|
|
958
|
+
throw new runtime.RequiredError('method', 'Required parameter \'method\' was null or undefined when calling storePaymentMethod.');
|
|
956
959
|
}
|
|
957
960
|
if (requestParameters.expirationDate === null || requestParameters.expirationDate === undefined) {
|
|
958
|
-
throw new runtime.RequiredError('expirationDate', 'Required parameter
|
|
961
|
+
throw new runtime.RequiredError('expirationDate', 'Required parameter \'expirationDate\' was null or undefined when calling storePaymentMethod.');
|
|
959
962
|
}
|
|
960
963
|
const queryParameters = {};
|
|
961
964
|
const headerParameters = {};
|
|
@@ -1004,7 +1007,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1004
1007
|
updateBuyer(requestParameters) {
|
|
1005
1008
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1006
1009
|
if (requestParameters.buyerId === null || requestParameters.buyerId === undefined) {
|
|
1007
|
-
throw new runtime.RequiredError('buyerId', 'Required parameter
|
|
1010
|
+
throw new runtime.RequiredError('buyerId', 'Required parameter \'buyerId\' was null or undefined when calling updateBuyer.');
|
|
1008
1011
|
}
|
|
1009
1012
|
const queryParameters = {};
|
|
1010
1013
|
const headerParameters = {};
|
|
@@ -1048,7 +1051,7 @@ class ChannelPaymentsApi extends runtime.BaseAPI {
|
|
|
1048
1051
|
voidTransaction(requestParameters) {
|
|
1049
1052
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1050
1053
|
if (requestParameters.transactionId === null || requestParameters.transactionId === undefined) {
|
|
1051
|
-
throw new runtime.RequiredError('transactionId', 'Required parameter
|
|
1054
|
+
throw new runtime.RequiredError('transactionId', 'Required parameter \'transactionId\' was null or undefined when calling voidTransaction.');
|
|
1052
1055
|
}
|
|
1053
1056
|
const queryParameters = {};
|
|
1054
1057
|
const headerParameters = {};
|
|
@@ -1106,13 +1109,16 @@ exports.SearchBuyersOrderEnum = {
|
|
|
1106
1109
|
* @export
|
|
1107
1110
|
*/
|
|
1108
1111
|
exports.SearchPaymentMethodsMethodEnum = {
|
|
1109
|
-
Card: '
|
|
1112
|
+
Card: 'CARD',
|
|
1113
|
+
Ach: 'ACH'
|
|
1110
1114
|
};
|
|
1111
1115
|
/**
|
|
1112
1116
|
* @export
|
|
1113
1117
|
*/
|
|
1114
1118
|
exports.SearchPaymentMethodsCurrencyEnum = {
|
|
1115
|
-
Usd: 'USD'
|
|
1119
|
+
Usd: 'USD',
|
|
1120
|
+
Aud: 'AUD',
|
|
1121
|
+
Cad: 'CAD'
|
|
1116
1122
|
};
|
|
1117
1123
|
/**
|
|
1118
1124
|
* @export
|
|
@@ -1158,14 +1164,21 @@ exports.SearchTransactionsStatusEnum = {
|
|
|
1158
1164
|
CapturePending: 'capturePending',
|
|
1159
1165
|
Captured: 'captured',
|
|
1160
1166
|
VoidPending: 'voidPending',
|
|
1161
|
-
Voided: 'voided'
|
|
1167
|
+
Voided: 'voided',
|
|
1168
|
+
Held: 'held',
|
|
1169
|
+
Submitted: 'submitted',
|
|
1170
|
+
Transmitted: 'transmitted',
|
|
1171
|
+
Settled: 'settled',
|
|
1172
|
+
Returned: 'returned'
|
|
1162
1173
|
};
|
|
1163
1174
|
/**
|
|
1164
1175
|
* @export
|
|
1165
1176
|
*/
|
|
1166
1177
|
exports.SearchTransactionsIntentEnum = {
|
|
1167
1178
|
Capture: 'capture',
|
|
1168
|
-
Authorize: 'authorize'
|
|
1179
|
+
Authorize: 'authorize',
|
|
1180
|
+
Debit: 'debit',
|
|
1181
|
+
Credit: 'credit'
|
|
1169
1182
|
};
|
|
1170
1183
|
/**
|
|
1171
1184
|
* @export
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface AddressEntity1
|
|
11
|
+
*/
|
|
12
|
+
export interface AddressEntity1 {
|
|
13
|
+
/**
|
|
14
|
+
* The city of the address
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof AddressEntity1
|
|
17
|
+
*/
|
|
18
|
+
city: string;
|
|
19
|
+
/**
|
|
20
|
+
* The country code of the address
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AddressEntity1
|
|
23
|
+
*/
|
|
24
|
+
countryCode: string;
|
|
25
|
+
/**
|
|
26
|
+
* The postal code of the address
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AddressEntity1
|
|
29
|
+
*/
|
|
30
|
+
postalCode: string;
|
|
31
|
+
/**
|
|
32
|
+
* The subdivision (state, province, or region) of the address
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AddressEntity1
|
|
35
|
+
*/
|
|
36
|
+
subdivision: string;
|
|
37
|
+
/**
|
|
38
|
+
* The street address of the address
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AddressEntity1
|
|
41
|
+
*/
|
|
42
|
+
streetAddress: string;
|
|
43
|
+
/**
|
|
44
|
+
* The optional second line of the street address
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AddressEntity1
|
|
47
|
+
*/
|
|
48
|
+
streetAddress2?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The optional subdivision code of the address
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AddressEntity1
|
|
53
|
+
*/
|
|
54
|
+
subdivisionCode?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AddressEntity1 interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfAddressEntity1(value: object): boolean;
|
|
60
|
+
export declare function AddressEntity1FromJSON(json: any): AddressEntity1;
|
|
61
|
+
export declare function AddressEntity1FromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressEntity1;
|
|
62
|
+
export declare function AddressEntity1ToJSON(value?: AddressEntity1 | null): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.AddressEntity1ToJSON = exports.AddressEntity1FromJSONTyped = exports.AddressEntity1FromJSON = exports.instanceOfAddressEntity1 = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* Check if a given object implements the AddressEntity1 interface.
|
|
15
|
+
*/
|
|
16
|
+
function instanceOfAddressEntity1(value) {
|
|
17
|
+
let isInstance = true;
|
|
18
|
+
isInstance = isInstance && "city" in value;
|
|
19
|
+
isInstance = isInstance && "countryCode" in value;
|
|
20
|
+
isInstance = isInstance && "postalCode" in value;
|
|
21
|
+
isInstance = isInstance && "subdivision" in value;
|
|
22
|
+
isInstance = isInstance && "streetAddress" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfAddressEntity1 = instanceOfAddressEntity1;
|
|
26
|
+
function AddressEntity1FromJSON(json) {
|
|
27
|
+
return AddressEntity1FromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.AddressEntity1FromJSON = AddressEntity1FromJSON;
|
|
30
|
+
function AddressEntity1FromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
const typed = {
|
|
35
|
+
'city': json['city'],
|
|
36
|
+
'countryCode': json['countryCode'],
|
|
37
|
+
'postalCode': json['postalCode'],
|
|
38
|
+
'subdivision': json['subdivision'],
|
|
39
|
+
'streetAddress': json['streetAddress'],
|
|
40
|
+
'streetAddress2': !(0, runtime_1.exists)(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
41
|
+
'subdivisionCode': !(0, runtime_1.exists)(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
|
|
42
|
+
};
|
|
43
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
44
|
+
}
|
|
45
|
+
exports.AddressEntity1FromJSONTyped = AddressEntity1FromJSONTyped;
|
|
46
|
+
function AddressEntity1ToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'city': value.city,
|
|
55
|
+
'countryCode': value.countryCode,
|
|
56
|
+
'postalCode': value.postalCode,
|
|
57
|
+
'subdivision': value.subdivision,
|
|
58
|
+
'streetAddress': value.streetAddress,
|
|
59
|
+
'streetAddress2': value.streetAddress2,
|
|
60
|
+
'subdivisionCode': value.subdivisionCode,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.AddressEntity1ToJSON = AddressEntity1ToJSON;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface AmountRuleConditionEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface AmountRuleConditionEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The operator for the rule
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof AmountRuleConditionEntity
|
|
17
|
+
*/
|
|
18
|
+
operator: AmountRuleConditionEntityOperatorEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The minimum amount for the rule
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof AmountRuleConditionEntity
|
|
23
|
+
*/
|
|
24
|
+
min?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The maximum amount for the rule
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AmountRuleConditionEntity
|
|
29
|
+
*/
|
|
30
|
+
max?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The amount value for the rule
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AmountRuleConditionEntity
|
|
35
|
+
*/
|
|
36
|
+
value?: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const AmountRuleConditionEntityOperatorEnum: {
|
|
42
|
+
readonly GreaterThan: "greaterThan";
|
|
43
|
+
readonly Between: "between";
|
|
44
|
+
readonly LessThan: "lessThan";
|
|
45
|
+
};
|
|
46
|
+
export type AmountRuleConditionEntityOperatorEnum = typeof AmountRuleConditionEntityOperatorEnum[keyof typeof AmountRuleConditionEntityOperatorEnum];
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the AmountRuleConditionEntity interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfAmountRuleConditionEntity(value: object): boolean;
|
|
51
|
+
export declare function AmountRuleConditionEntityFromJSON(json: any): AmountRuleConditionEntity;
|
|
52
|
+
export declare function AmountRuleConditionEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): AmountRuleConditionEntity;
|
|
53
|
+
export declare function AmountRuleConditionEntityToJSON(value?: AmountRuleConditionEntity | null): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.AmountRuleConditionEntityToJSON = exports.AmountRuleConditionEntityFromJSONTyped = exports.AmountRuleConditionEntityFromJSON = exports.instanceOfAmountRuleConditionEntity = exports.AmountRuleConditionEntityOperatorEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
exports.AmountRuleConditionEntityOperatorEnum = {
|
|
17
|
+
GreaterThan: 'greaterThan',
|
|
18
|
+
Between: 'between',
|
|
19
|
+
LessThan: 'lessThan'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AmountRuleConditionEntity interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAmountRuleConditionEntity(value) {
|
|
25
|
+
let isInstance = true;
|
|
26
|
+
isInstance = isInstance && "operator" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfAmountRuleConditionEntity = instanceOfAmountRuleConditionEntity;
|
|
30
|
+
function AmountRuleConditionEntityFromJSON(json) {
|
|
31
|
+
return AmountRuleConditionEntityFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.AmountRuleConditionEntityFromJSON = AmountRuleConditionEntityFromJSON;
|
|
34
|
+
function AmountRuleConditionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
const typed = {
|
|
39
|
+
'operator': json['operator'],
|
|
40
|
+
'min': !(0, runtime_1.exists)(json, 'min') ? undefined : json['min'],
|
|
41
|
+
'max': !(0, runtime_1.exists)(json, 'max') ? undefined : json['max'],
|
|
42
|
+
'value': !(0, runtime_1.exists)(json, 'value') ? undefined : json['value'],
|
|
43
|
+
};
|
|
44
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
45
|
+
}
|
|
46
|
+
exports.AmountRuleConditionEntityFromJSONTyped = AmountRuleConditionEntityFromJSONTyped;
|
|
47
|
+
function AmountRuleConditionEntityToJSON(value) {
|
|
48
|
+
if (value === undefined) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
if (value === null) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'operator': value.operator,
|
|
56
|
+
'min': value.min,
|
|
57
|
+
'max': value.max,
|
|
58
|
+
'value': value.value,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.AmountRuleConditionEntityToJSON = AmountRuleConditionEntityToJSON;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
5
|
*
|
|
6
6
|
*/
|
|
7
|
-
import type {
|
|
7
|
+
import type { BuyerEntity1Address } from './BuyerEntity1Address';
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* @export
|
|
@@ -43,10 +43,10 @@ export interface BuyerEntity1 {
|
|
|
43
43
|
email: string;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
|
-
* @type {
|
|
46
|
+
* @type {BuyerEntity1Address}
|
|
47
47
|
* @memberof BuyerEntity1
|
|
48
48
|
*/
|
|
49
|
-
address:
|
|
49
|
+
address: BuyerEntity1Address;
|
|
50
50
|
/**
|
|
51
51
|
* The phone number
|
|
52
52
|
* @type {string}
|
|
@@ -59,6 +59,12 @@ export interface BuyerEntity1 {
|
|
|
59
59
|
* @memberof BuyerEntity1
|
|
60
60
|
*/
|
|
61
61
|
externalBuyerId?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof BuyerEntity1
|
|
66
|
+
*/
|
|
67
|
+
id?: string;
|
|
62
68
|
}
|
|
63
69
|
/**
|
|
64
70
|
* Check if a given object implements the BuyerEntity1 interface.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.BuyerEntity1ToJSON = exports.BuyerEntity1FromJSONTyped = exports.BuyerEntity1FromJSON = exports.instanceOfBuyerEntity1 = void 0;
|
|
12
12
|
const runtime_1 = require("../runtime");
|
|
13
|
-
const
|
|
13
|
+
const BuyerEntity1Address_1 = require("./BuyerEntity1Address");
|
|
14
14
|
/**
|
|
15
15
|
* Check if a given object implements the BuyerEntity1 interface.
|
|
16
16
|
*/
|
|
@@ -39,9 +39,10 @@ function BuyerEntity1FromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'givenName': json['givenName'],
|
|
40
40
|
'familyName': json['familyName'],
|
|
41
41
|
'email': json['email'],
|
|
42
|
-
'address': (0,
|
|
42
|
+
'address': (0, BuyerEntity1Address_1.BuyerEntity1AddressFromJSON)(json['address']),
|
|
43
43
|
'phoneNumber': !(0, runtime_1.exists)(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
44
44
|
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
45
|
+
'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
|
|
45
46
|
};
|
|
46
47
|
return (0, runtime_1.removeNullUndefined)(typed);
|
|
47
48
|
}
|
|
@@ -59,9 +60,10 @@ function BuyerEntity1ToJSON(value) {
|
|
|
59
60
|
'givenName': value.givenName,
|
|
60
61
|
'familyName': value.familyName,
|
|
61
62
|
'email': value.email,
|
|
62
|
-
'address': (0,
|
|
63
|
+
'address': (0, BuyerEntity1Address_1.BuyerEntity1AddressToJSON)(value.address),
|
|
63
64
|
'phoneNumber': value.phoneNumber,
|
|
64
65
|
'externalBuyerId': value.externalBuyerId,
|
|
66
|
+
'id': value.id,
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
69
|
exports.BuyerEntity1ToJSON = BuyerEntity1ToJSON;
|