@channelpayments/node-sdk 1.28.2 → 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/dist/cjs/{src/apis → apis}/ChannelPaymentsApi.d.ts +12 -1
- package/dist/cjs/{src/apis → apis}/ChannelPaymentsApi.js +17 -7
- 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/mjs/{src/apis → apis}/ChannelPaymentsApi.d.ts +12 -1
- package/dist/mjs/{src/apis → apis}/ChannelPaymentsApi.js +17 -7
- 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/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 -57
- 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 -23
- /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/cjs/{src/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/cjs/{src/runtime.js → runtime.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/dist/mjs/{src/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/mjs/{src/runtime.js → runtime.js} +0 -0
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { CreateMerchantAccountDtoCFeeFromJSON, CreateMerchantAccountDtoCFeeToJSON, } from './CreateMerchantAccountDtoCFee';
|
|
11
|
+
import { CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON, CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON, } from './CreateMerchantConnectorWithoutMerchantAccountIdDto';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const CreateMerchantAccountWithoutMerchantIdDtoMethodEnum = {
|
|
16
|
+
Card: 'CARD',
|
|
17
|
+
Ach: 'ACH'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export const CreateMerchantAccountWithoutMerchantIdDtoPspEnum = {
|
|
23
|
+
Tsys: 'TSYS',
|
|
24
|
+
Nashville: 'NASHVILLE',
|
|
25
|
+
North: 'NORTH',
|
|
26
|
+
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const CreateMerchantAccountWithoutMerchantIdDtoCardTypesEnum = {
|
|
32
|
+
Credit: 'CREDIT',
|
|
33
|
+
Debit: 'DEBIT',
|
|
34
|
+
Prepaid: 'PREPAID'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
export const CreateMerchantAccountWithoutMerchantIdDtoCardSchemesEnum = {
|
|
40
|
+
Visa: 'VISA',
|
|
41
|
+
Mastercard: 'MASTERCARD',
|
|
42
|
+
Amex: 'AMEX',
|
|
43
|
+
Discover: 'DISCOVER',
|
|
44
|
+
Jcb: 'JCB',
|
|
45
|
+
DinersClub: 'DINERS_CLUB',
|
|
46
|
+
Maestro: 'MAESTRO'
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export const CreateMerchantAccountWithoutMerchantIdDtoCurrenciesEnum = {
|
|
52
|
+
Usd: 'USD',
|
|
53
|
+
Aud: 'AUD',
|
|
54
|
+
Cad: 'CAD'
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the CreateMerchantAccountWithoutMerchantIdDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export function instanceOfCreateMerchantAccountWithoutMerchantIdDto(value) {
|
|
60
|
+
let isInstance = true;
|
|
61
|
+
isInstance = isInstance && "issuedMid" in value;
|
|
62
|
+
isInstance = isInstance && "method" in value;
|
|
63
|
+
isInstance = isInstance && "psp" in value;
|
|
64
|
+
isInstance = isInstance && "cFee" in value;
|
|
65
|
+
isInstance = isInstance && "connectors" in value;
|
|
66
|
+
return isInstance;
|
|
67
|
+
}
|
|
68
|
+
export function CreateMerchantAccountWithoutMerchantIdDtoFromJSON(json) {
|
|
69
|
+
return CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
export function CreateMerchantAccountWithoutMerchantIdDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
72
|
+
if ((json === undefined) || (json === null)) {
|
|
73
|
+
return json;
|
|
74
|
+
}
|
|
75
|
+
const typed = {
|
|
76
|
+
'issuedMid': json['issuedMid'],
|
|
77
|
+
'method': json['method'],
|
|
78
|
+
'psp': json['psp'],
|
|
79
|
+
'cFee': CreateMerchantAccountDtoCFeeFromJSON(json['cFee']),
|
|
80
|
+
'cardTypes': !exists(json, 'cardTypes') ? undefined : json['cardTypes'],
|
|
81
|
+
'cardSchemes': !exists(json, 'cardSchemes') ? undefined : json['cardSchemes'],
|
|
82
|
+
'currencies': !exists(json, 'currencies') ? undefined : json['currencies'],
|
|
83
|
+
'connectors': (json['connectors'].map(CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON)),
|
|
84
|
+
'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
85
|
+
'bin': !exists(json, 'bin') ? undefined : json['bin'],
|
|
86
|
+
'chain': !exists(json, 'chain') ? undefined : json['chain'],
|
|
87
|
+
'store': !exists(json, 'store') ? undefined : json['store'],
|
|
88
|
+
'agent': !exists(json, 'agent') ? undefined : json['agent'],
|
|
89
|
+
};
|
|
90
|
+
return removeNullUndefined(typed);
|
|
91
|
+
}
|
|
92
|
+
export function CreateMerchantAccountWithoutMerchantIdDtoToJSON(value) {
|
|
93
|
+
if (value === undefined) {
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
if (value === null) {
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
'issuedMid': value.issuedMid,
|
|
101
|
+
'method': value.method,
|
|
102
|
+
'psp': value.psp,
|
|
103
|
+
'cFee': CreateMerchantAccountDtoCFeeToJSON(value.cFee),
|
|
104
|
+
'cardTypes': value.cardTypes,
|
|
105
|
+
'cardSchemes': value.cardSchemes,
|
|
106
|
+
'currencies': value.currencies,
|
|
107
|
+
'connectors': (value.connectors.map(CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON)),
|
|
108
|
+
'mcc': value.mcc,
|
|
109
|
+
'bin': value.bin,
|
|
110
|
+
'chain': value.chain,
|
|
111
|
+
'store': value.store,
|
|
112
|
+
'agent': value.agent,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -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 CreateMerchantConnectorWithoutMerchantAccountIdDto
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateMerchantConnectorWithoutMerchantAccountIdDto {
|
|
13
|
+
/**
|
|
14
|
+
* The name of the connector
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CreateMerchantConnectorWithoutMerchantAccountIdDto
|
|
17
|
+
*/
|
|
18
|
+
connector: CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The ID issued by the connector
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateMerchantConnectorWithoutMerchantAccountIdDto
|
|
23
|
+
*/
|
|
24
|
+
issuedConnectorId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The type of the connector
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateMerchantConnectorWithoutMerchantAccountIdDto
|
|
29
|
+
*/
|
|
30
|
+
type: CreateMerchantConnectorWithoutMerchantAccountIdDtoTypeEnum;
|
|
31
|
+
/**
|
|
32
|
+
* The given name for the connector record
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateMerchantConnectorWithoutMerchantAccountIdDto
|
|
35
|
+
*/
|
|
36
|
+
name?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum: {
|
|
42
|
+
readonly Epay: "EPAY";
|
|
43
|
+
readonly Nmi: "NMI";
|
|
44
|
+
readonly AuthorizeNet: "AUTHORIZE_NET";
|
|
45
|
+
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
46
|
+
};
|
|
47
|
+
export type CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum = typeof CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum[keyof typeof CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum];
|
|
48
|
+
/**
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
export declare const CreateMerchantConnectorWithoutMerchantAccountIdDtoTypeEnum: {
|
|
52
|
+
readonly Gateway: "GATEWAY";
|
|
53
|
+
readonly Terminal: "TERMINAL";
|
|
54
|
+
};
|
|
55
|
+
export type CreateMerchantConnectorWithoutMerchantAccountIdDtoTypeEnum = typeof CreateMerchantConnectorWithoutMerchantAccountIdDtoTypeEnum[keyof typeof CreateMerchantConnectorWithoutMerchantAccountIdDtoTypeEnum];
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the CreateMerchantConnectorWithoutMerchantAccountIdDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfCreateMerchantConnectorWithoutMerchantAccountIdDto(value: object): boolean;
|
|
60
|
+
export declare function CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON(json: any): CreateMerchantConnectorWithoutMerchantAccountIdDto;
|
|
61
|
+
export declare function CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantConnectorWithoutMerchantAccountIdDto;
|
|
62
|
+
export declare function CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON(value?: CreateMerchantConnectorWithoutMerchantAccountIdDto | null): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export const CreateMerchantConnectorWithoutMerchantAccountIdDtoConnectorEnum = {
|
|
14
|
+
Epay: 'EPAY',
|
|
15
|
+
Nmi: 'NMI',
|
|
16
|
+
AuthorizeNet: 'AUTHORIZE_NET',
|
|
17
|
+
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export const CreateMerchantConnectorWithoutMerchantAccountIdDtoTypeEnum = {
|
|
23
|
+
Gateway: 'GATEWAY',
|
|
24
|
+
Terminal: 'TERMINAL'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CreateMerchantConnectorWithoutMerchantAccountIdDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfCreateMerchantConnectorWithoutMerchantAccountIdDto(value) {
|
|
30
|
+
let isInstance = true;
|
|
31
|
+
isInstance = isInstance && "connector" in value;
|
|
32
|
+
isInstance = isInstance && "issuedConnectorId" in value;
|
|
33
|
+
isInstance = isInstance && "type" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
export function CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSON(json) {
|
|
37
|
+
return CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CreateMerchantConnectorWithoutMerchantAccountIdDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if ((json === undefined) || (json === null)) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
const typed = {
|
|
44
|
+
'connector': json['connector'],
|
|
45
|
+
'issuedConnectorId': json['issuedConnectorId'],
|
|
46
|
+
'type': json['type'],
|
|
47
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
48
|
+
};
|
|
49
|
+
return removeNullUndefined(typed);
|
|
50
|
+
}
|
|
51
|
+
export function CreateMerchantConnectorWithoutMerchantAccountIdDtoToJSON(value) {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'connector': value.connector,
|
|
60
|
+
'issuedConnectorId': value.issuedConnectorId,
|
|
61
|
+
'type': value.type,
|
|
62
|
+
'name': value.name,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -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 { CreateMerchantAccountWithoutMerchantIdDto } from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
8
8
|
import type { CreateMerchantDtoAddress } from './CreateMerchantDtoAddress';
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
@@ -56,10 +56,10 @@ export interface CreateMerchantDto {
|
|
|
56
56
|
parentMerchantId?: string;
|
|
57
57
|
/**
|
|
58
58
|
* Array of merchant accounts
|
|
59
|
-
* @type {Array<
|
|
59
|
+
* @type {Array<CreateMerchantAccountWithoutMerchantIdDto>}
|
|
60
60
|
* @memberof CreateMerchantDto
|
|
61
61
|
*/
|
|
62
|
-
merchantAccounts?: Array<
|
|
62
|
+
merchantAccounts?: Array<CreateMerchantAccountWithoutMerchantIdDto>;
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* Check if a given object implements the CreateMerchantDto interface.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
-
import {
|
|
10
|
+
import { CreateMerchantAccountWithoutMerchantIdDtoFromJSON, CreateMerchantAccountWithoutMerchantIdDtoToJSON, } from './CreateMerchantAccountWithoutMerchantIdDto';
|
|
11
11
|
import { CreateMerchantDtoAddressFromJSON, CreateMerchantDtoAddressToJSON, } from './CreateMerchantDtoAddress';
|
|
12
12
|
/**
|
|
13
13
|
* Check if a given object implements the CreateMerchantDto interface.
|
|
@@ -35,7 +35,7 @@ export function CreateMerchantDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
35
|
'website': !exists(json, 'website') ? undefined : json['website'],
|
|
36
36
|
'logo': !exists(json, 'logo') ? undefined : json['logo'],
|
|
37
37
|
'parentMerchantId': !exists(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
|
|
38
|
-
'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(
|
|
38
|
+
'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(CreateMerchantAccountWithoutMerchantIdDtoFromJSON)),
|
|
39
39
|
};
|
|
40
40
|
return removeNullUndefined(typed);
|
|
41
41
|
}
|
|
@@ -54,6 +54,6 @@ export function CreateMerchantDtoToJSON(value) {
|
|
|
54
54
|
'website': value.website,
|
|
55
55
|
'logo': value.logo,
|
|
56
56
|
'parentMerchantId': value.parentMerchantId,
|
|
57
|
-
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(
|
|
57
|
+
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(CreateMerchantAccountWithoutMerchantIdDtoToJSON)),
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateMerchantRoutingFlowRuleWithoutIdDto } from './CreateMerchantRoutingFlowRuleWithoutIdDto';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface CreateMerchantRoutingFlowDto
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateMerchantRoutingFlowDto {
|
|
14
|
+
/**
|
|
15
|
+
* The ID for the merchant
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof CreateMerchantRoutingFlowDto
|
|
18
|
+
*/
|
|
19
|
+
merchantId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The payment method for the merchant flow config
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateMerchantRoutingFlowDto
|
|
24
|
+
*/
|
|
25
|
+
method: CreateMerchantRoutingFlowDtoMethodEnum;
|
|
26
|
+
/**
|
|
27
|
+
* The rules for the merchant flow config
|
|
28
|
+
* @type {Array<CreateMerchantRoutingFlowRuleWithoutIdDto>}
|
|
29
|
+
* @memberof CreateMerchantRoutingFlowDto
|
|
30
|
+
*/
|
|
31
|
+
routingFlowRules: Array<CreateMerchantRoutingFlowRuleWithoutIdDto>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export declare const CreateMerchantRoutingFlowDtoMethodEnum: {
|
|
37
|
+
readonly Card: "CARD";
|
|
38
|
+
readonly Ach: "ACH";
|
|
39
|
+
};
|
|
40
|
+
export type CreateMerchantRoutingFlowDtoMethodEnum = typeof CreateMerchantRoutingFlowDtoMethodEnum[keyof typeof CreateMerchantRoutingFlowDtoMethodEnum];
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the CreateMerchantRoutingFlowDto interface.
|
|
43
|
+
*/
|
|
44
|
+
export declare function instanceOfCreateMerchantRoutingFlowDto(value: object): boolean;
|
|
45
|
+
export declare function CreateMerchantRoutingFlowDtoFromJSON(json: any): CreateMerchantRoutingFlowDto;
|
|
46
|
+
export declare function CreateMerchantRoutingFlowDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantRoutingFlowDto;
|
|
47
|
+
export declare function CreateMerchantRoutingFlowDtoToJSON(value?: CreateMerchantRoutingFlowDto | null): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { removeNullUndefined } from '../runtime';
|
|
10
|
+
import { CreateMerchantRoutingFlowRuleWithoutIdDtoFromJSON, CreateMerchantRoutingFlowRuleWithoutIdDtoToJSON, } from './CreateMerchantRoutingFlowRuleWithoutIdDto';
|
|
11
|
+
/**
|
|
12
|
+
* @export
|
|
13
|
+
*/
|
|
14
|
+
export const CreateMerchantRoutingFlowDtoMethodEnum = {
|
|
15
|
+
Card: 'CARD',
|
|
16
|
+
Ach: 'ACH'
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CreateMerchantRoutingFlowDto interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfCreateMerchantRoutingFlowDto(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "merchantId" in value;
|
|
24
|
+
isInstance = isInstance && "method" in value;
|
|
25
|
+
isInstance = isInstance && "routingFlowRules" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
export function CreateMerchantRoutingFlowDtoFromJSON(json) {
|
|
29
|
+
return CreateMerchantRoutingFlowDtoFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function CreateMerchantRoutingFlowDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
const typed = {
|
|
36
|
+
'merchantId': json['merchantId'],
|
|
37
|
+
'method': json['method'],
|
|
38
|
+
'routingFlowRules': (json['routingFlowRules'].map(CreateMerchantRoutingFlowRuleWithoutIdDtoFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
return removeNullUndefined(typed);
|
|
41
|
+
}
|
|
42
|
+
export function CreateMerchantRoutingFlowDtoToJSON(value) {
|
|
43
|
+
if (value === undefined) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
if (value === null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'merchantId': value.merchantId,
|
|
51
|
+
'method': value.method,
|
|
52
|
+
'routingFlowRules': (value.routingFlowRules.map(CreateMerchantRoutingFlowRuleWithoutIdDtoToJSON)),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateMerchantRoutingFlowRuleWithoutIdDtoConditions } from './CreateMerchantRoutingFlowRuleWithoutIdDtoConditions';
|
|
8
|
+
import type { CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors } from './CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface CreateMerchantRoutingFlowRuleDto
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateMerchantRoutingFlowRuleDto {
|
|
15
|
+
/**
|
|
16
|
+
* The ID for the record
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof CreateMerchantRoutingFlowRuleDto
|
|
19
|
+
*/
|
|
20
|
+
routingFlowId?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The name for the rule
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CreateMerchantRoutingFlowRuleDto
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* The type of action for the rule
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof CreateMerchantRoutingFlowRuleDto
|
|
31
|
+
*/
|
|
32
|
+
actionType: CreateMerchantRoutingFlowRuleDtoActionTypeEnum;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors}
|
|
36
|
+
* @memberof CreateMerchantRoutingFlowRuleDto
|
|
37
|
+
*/
|
|
38
|
+
connectors?: CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {CreateMerchantRoutingFlowRuleWithoutIdDtoConditions}
|
|
42
|
+
* @memberof CreateMerchantRoutingFlowRuleDto
|
|
43
|
+
*/
|
|
44
|
+
conditions: CreateMerchantRoutingFlowRuleWithoutIdDtoConditions;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @export
|
|
48
|
+
*/
|
|
49
|
+
export declare const CreateMerchantRoutingFlowRuleDtoActionTypeEnum: {
|
|
50
|
+
readonly Route: "route";
|
|
51
|
+
readonly Decline: "decline";
|
|
52
|
+
};
|
|
53
|
+
export type CreateMerchantRoutingFlowRuleDtoActionTypeEnum = typeof CreateMerchantRoutingFlowRuleDtoActionTypeEnum[keyof typeof CreateMerchantRoutingFlowRuleDtoActionTypeEnum];
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the CreateMerchantRoutingFlowRuleDto interface.
|
|
56
|
+
*/
|
|
57
|
+
export declare function instanceOfCreateMerchantRoutingFlowRuleDto(value: object): boolean;
|
|
58
|
+
export declare function CreateMerchantRoutingFlowRuleDtoFromJSON(json: any): CreateMerchantRoutingFlowRuleDto;
|
|
59
|
+
export declare function CreateMerchantRoutingFlowRuleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantRoutingFlowRuleDto;
|
|
60
|
+
export declare function CreateMerchantRoutingFlowRuleDtoToJSON(value?: CreateMerchantRoutingFlowRuleDto | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsFromJSON, CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsToJSON, } from './CreateMerchantRoutingFlowRuleWithoutIdDtoConditions';
|
|
11
|
+
import { CreateMerchantRoutingFlowRuleWithoutIdDtoConnectorsFromJSON, CreateMerchantRoutingFlowRuleWithoutIdDtoConnectorsToJSON, } from './CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const CreateMerchantRoutingFlowRuleDtoActionTypeEnum = {
|
|
16
|
+
Route: 'route',
|
|
17
|
+
Decline: 'decline'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the CreateMerchantRoutingFlowRuleDto interface.
|
|
21
|
+
*/
|
|
22
|
+
export function instanceOfCreateMerchantRoutingFlowRuleDto(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
isInstance = isInstance && "actionType" in value;
|
|
26
|
+
isInstance = isInstance && "conditions" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
export function CreateMerchantRoutingFlowRuleDtoFromJSON(json) {
|
|
30
|
+
return CreateMerchantRoutingFlowRuleDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function CreateMerchantRoutingFlowRuleDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
const typed = {
|
|
37
|
+
'routingFlowId': !exists(json, 'routingFlowId') ? undefined : json['routingFlowId'],
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'actionType': json['actionType'],
|
|
40
|
+
'connectors': !exists(json, 'connectors') ? undefined : CreateMerchantRoutingFlowRuleWithoutIdDtoConnectorsFromJSON(json['connectors']),
|
|
41
|
+
'conditions': CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsFromJSON(json['conditions']),
|
|
42
|
+
};
|
|
43
|
+
return removeNullUndefined(typed);
|
|
44
|
+
}
|
|
45
|
+
export function CreateMerchantRoutingFlowRuleDtoToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'routingFlowId': value.routingFlowId,
|
|
54
|
+
'name': value.name,
|
|
55
|
+
'actionType': value.actionType,
|
|
56
|
+
'connectors': CreateMerchantRoutingFlowRuleWithoutIdDtoConnectorsToJSON(value.connectors),
|
|
57
|
+
'conditions': CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsToJSON(value.conditions),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateMerchantRoutingFlowRuleWithoutIdDtoConditions } from './CreateMerchantRoutingFlowRuleWithoutIdDtoConditions';
|
|
8
|
+
import type { CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors } from './CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface CreateMerchantRoutingFlowRuleWithoutIdDto
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateMerchantRoutingFlowRuleWithoutIdDto {
|
|
15
|
+
/**
|
|
16
|
+
* The name for the rule
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof CreateMerchantRoutingFlowRuleWithoutIdDto
|
|
19
|
+
*/
|
|
20
|
+
name: string;
|
|
21
|
+
/**
|
|
22
|
+
* The type of action for the rule
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CreateMerchantRoutingFlowRuleWithoutIdDto
|
|
25
|
+
*/
|
|
26
|
+
actionType: CreateMerchantRoutingFlowRuleWithoutIdDtoActionTypeEnum;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors}
|
|
30
|
+
* @memberof CreateMerchantRoutingFlowRuleWithoutIdDto
|
|
31
|
+
*/
|
|
32
|
+
connectors?: CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {CreateMerchantRoutingFlowRuleWithoutIdDtoConditions}
|
|
36
|
+
* @memberof CreateMerchantRoutingFlowRuleWithoutIdDto
|
|
37
|
+
*/
|
|
38
|
+
conditions: CreateMerchantRoutingFlowRuleWithoutIdDtoConditions;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export declare const CreateMerchantRoutingFlowRuleWithoutIdDtoActionTypeEnum: {
|
|
44
|
+
readonly Route: "route";
|
|
45
|
+
readonly Decline: "decline";
|
|
46
|
+
};
|
|
47
|
+
export type CreateMerchantRoutingFlowRuleWithoutIdDtoActionTypeEnum = typeof CreateMerchantRoutingFlowRuleWithoutIdDtoActionTypeEnum[keyof typeof CreateMerchantRoutingFlowRuleWithoutIdDtoActionTypeEnum];
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the CreateMerchantRoutingFlowRuleWithoutIdDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfCreateMerchantRoutingFlowRuleWithoutIdDto(value: object): boolean;
|
|
52
|
+
export declare function CreateMerchantRoutingFlowRuleWithoutIdDtoFromJSON(json: any): CreateMerchantRoutingFlowRuleWithoutIdDto;
|
|
53
|
+
export declare function CreateMerchantRoutingFlowRuleWithoutIdDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantRoutingFlowRuleWithoutIdDto;
|
|
54
|
+
export declare function CreateMerchantRoutingFlowRuleWithoutIdDtoToJSON(value?: CreateMerchantRoutingFlowRuleWithoutIdDto | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsFromJSON, CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsToJSON, } from './CreateMerchantRoutingFlowRuleWithoutIdDtoConditions';
|
|
11
|
+
import { CreateMerchantRoutingFlowRuleWithoutIdDtoConnectorsFromJSON, CreateMerchantRoutingFlowRuleWithoutIdDtoConnectorsToJSON, } from './CreateMerchantRoutingFlowRuleWithoutIdDtoConnectors';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const CreateMerchantRoutingFlowRuleWithoutIdDtoActionTypeEnum = {
|
|
16
|
+
Route: 'route',
|
|
17
|
+
Decline: 'decline'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the CreateMerchantRoutingFlowRuleWithoutIdDto interface.
|
|
21
|
+
*/
|
|
22
|
+
export function instanceOfCreateMerchantRoutingFlowRuleWithoutIdDto(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "name" in value;
|
|
25
|
+
isInstance = isInstance && "actionType" in value;
|
|
26
|
+
isInstance = isInstance && "conditions" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
export function CreateMerchantRoutingFlowRuleWithoutIdDtoFromJSON(json) {
|
|
30
|
+
return CreateMerchantRoutingFlowRuleWithoutIdDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function CreateMerchantRoutingFlowRuleWithoutIdDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if ((json === undefined) || (json === null)) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
const typed = {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
'actionType': json['actionType'],
|
|
39
|
+
'connectors': !exists(json, 'connectors') ? undefined : CreateMerchantRoutingFlowRuleWithoutIdDtoConnectorsFromJSON(json['connectors']),
|
|
40
|
+
'conditions': CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsFromJSON(json['conditions']),
|
|
41
|
+
};
|
|
42
|
+
return removeNullUndefined(typed);
|
|
43
|
+
}
|
|
44
|
+
export function CreateMerchantRoutingFlowRuleWithoutIdDtoToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'name': value.name,
|
|
53
|
+
'actionType': value.actionType,
|
|
54
|
+
'connectors': CreateMerchantRoutingFlowRuleWithoutIdDtoConnectorsToJSON(value.connectors),
|
|
55
|
+
'conditions': CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsToJSON(value.conditions),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateMetadataRuleConditionDto } from './CreateMetadataRuleConditionDto';
|
|
8
|
+
import type { CreateRuleConditionsDtoAmount } from './CreateRuleConditionsDtoAmount';
|
|
9
|
+
import type { CreateRuleConditionsDtoCFee } from './CreateRuleConditionsDtoCFee';
|
|
10
|
+
/**
|
|
11
|
+
* The conditions for the rule
|
|
12
|
+
* @export
|
|
13
|
+
* @interface CreateMerchantRoutingFlowRuleWithoutIdDtoConditions
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateMerchantRoutingFlowRuleWithoutIdDtoConditions {
|
|
16
|
+
/**
|
|
17
|
+
* The metadata rule config
|
|
18
|
+
* @type {Array<CreateMetadataRuleConditionDto>}
|
|
19
|
+
* @memberof CreateMerchantRoutingFlowRuleWithoutIdDtoConditions
|
|
20
|
+
*/
|
|
21
|
+
metadata?: Array<CreateMetadataRuleConditionDto>;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {CreateRuleConditionsDtoAmount}
|
|
25
|
+
* @memberof CreateMerchantRoutingFlowRuleWithoutIdDtoConditions
|
|
26
|
+
*/
|
|
27
|
+
amount?: CreateRuleConditionsDtoAmount;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {CreateRuleConditionsDtoCFee}
|
|
31
|
+
* @memberof CreateMerchantRoutingFlowRuleWithoutIdDtoConditions
|
|
32
|
+
*/
|
|
33
|
+
cFee?: CreateRuleConditionsDtoCFee;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the CreateMerchantRoutingFlowRuleWithoutIdDtoConditions interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfCreateMerchantRoutingFlowRuleWithoutIdDtoConditions(value: object): boolean;
|
|
39
|
+
export declare function CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsFromJSON(json: any): CreateMerchantRoutingFlowRuleWithoutIdDtoConditions;
|
|
40
|
+
export declare function CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantRoutingFlowRuleWithoutIdDtoConditions;
|
|
41
|
+
export declare function CreateMerchantRoutingFlowRuleWithoutIdDtoConditionsToJSON(value?: CreateMerchantRoutingFlowRuleWithoutIdDtoConditions | null): any;
|