@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
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Channel Payments API
|
|
3
|
-
*
|
|
4
|
-
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* The card details
|
|
9
|
-
* @export
|
|
10
|
-
* @interface PaymentMethodEntityDetails
|
|
11
|
-
*/
|
|
12
|
-
export interface PaymentMethodEntityDetails {
|
|
13
|
-
/**
|
|
14
|
-
* The card type
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof PaymentMethodEntityDetails
|
|
17
|
-
*/
|
|
18
|
-
type: PaymentMethodEntityDetailsTypeEnum;
|
|
19
|
-
/**
|
|
20
|
-
* The card BIN
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof PaymentMethodEntityDetails
|
|
23
|
-
*/
|
|
24
|
-
bin: string;
|
|
25
|
-
/**
|
|
26
|
-
* The card scheme
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof PaymentMethodEntityDetails
|
|
29
|
-
*/
|
|
30
|
-
scheme: string;
|
|
31
|
-
/**
|
|
32
|
-
* The last 4 digits of the card
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof PaymentMethodEntityDetails
|
|
35
|
-
*/
|
|
36
|
-
label: string;
|
|
37
|
-
/**
|
|
38
|
-
* The card expiration date
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof PaymentMethodEntityDetails
|
|
41
|
-
*/
|
|
42
|
-
expirationDate: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @export
|
|
46
|
-
*/
|
|
47
|
-
export declare const PaymentMethodEntityDetailsTypeEnum: {
|
|
48
|
-
readonly Credit: "credit";
|
|
49
|
-
readonly Debit: "debit";
|
|
50
|
-
readonly Prepaid: "prepaid";
|
|
51
|
-
};
|
|
52
|
-
export type PaymentMethodEntityDetailsTypeEnum = typeof PaymentMethodEntityDetailsTypeEnum[keyof typeof PaymentMethodEntityDetailsTypeEnum];
|
|
53
|
-
/**
|
|
54
|
-
* Check if a given object implements the PaymentMethodEntityDetails interface.
|
|
55
|
-
*/
|
|
56
|
-
export declare function instanceOfPaymentMethodEntityDetails(value: object): boolean;
|
|
57
|
-
export declare function PaymentMethodEntityDetailsFromJSON(json: any): PaymentMethodEntityDetails;
|
|
58
|
-
export declare function PaymentMethodEntityDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodEntityDetails;
|
|
59
|
-
export declare function PaymentMethodEntityDetailsToJSON(value?: PaymentMethodEntityDetails | null): any;
|
|
@@ -1,67 +0,0 @@
|
|
|
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.PaymentMethodEntityDetailsToJSON = exports.PaymentMethodEntityDetailsFromJSONTyped = exports.PaymentMethodEntityDetailsFromJSON = exports.instanceOfPaymentMethodEntityDetails = exports.PaymentMethodEntityDetailsTypeEnum = void 0;
|
|
12
|
-
const runtime_1 = require("../runtime");
|
|
13
|
-
/**
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
exports.PaymentMethodEntityDetailsTypeEnum = {
|
|
17
|
-
Credit: 'credit',
|
|
18
|
-
Debit: 'debit',
|
|
19
|
-
Prepaid: 'prepaid'
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Check if a given object implements the PaymentMethodEntityDetails interface.
|
|
23
|
-
*/
|
|
24
|
-
function instanceOfPaymentMethodEntityDetails(value) {
|
|
25
|
-
let isInstance = true;
|
|
26
|
-
isInstance = isInstance && "type" in value;
|
|
27
|
-
isInstance = isInstance && "bin" in value;
|
|
28
|
-
isInstance = isInstance && "scheme" in value;
|
|
29
|
-
isInstance = isInstance && "label" in value;
|
|
30
|
-
isInstance = isInstance && "expirationDate" in value;
|
|
31
|
-
return isInstance;
|
|
32
|
-
}
|
|
33
|
-
exports.instanceOfPaymentMethodEntityDetails = instanceOfPaymentMethodEntityDetails;
|
|
34
|
-
function PaymentMethodEntityDetailsFromJSON(json) {
|
|
35
|
-
return PaymentMethodEntityDetailsFromJSONTyped(json, false);
|
|
36
|
-
}
|
|
37
|
-
exports.PaymentMethodEntityDetailsFromJSON = PaymentMethodEntityDetailsFromJSON;
|
|
38
|
-
function PaymentMethodEntityDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
-
if ((json === undefined) || (json === null)) {
|
|
40
|
-
return json;
|
|
41
|
-
}
|
|
42
|
-
const typed = {
|
|
43
|
-
'type': json['type'],
|
|
44
|
-
'bin': json['bin'],
|
|
45
|
-
'scheme': json['scheme'],
|
|
46
|
-
'label': json['label'],
|
|
47
|
-
'expirationDate': json['expirationDate'],
|
|
48
|
-
};
|
|
49
|
-
return (0, runtime_1.removeNullUndefined)(typed);
|
|
50
|
-
}
|
|
51
|
-
exports.PaymentMethodEntityDetailsFromJSONTyped = PaymentMethodEntityDetailsFromJSONTyped;
|
|
52
|
-
function PaymentMethodEntityDetailsToJSON(value) {
|
|
53
|
-
if (value === undefined) {
|
|
54
|
-
return undefined;
|
|
55
|
-
}
|
|
56
|
-
if (value === null) {
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
'type': value.type,
|
|
61
|
-
'bin': value.bin,
|
|
62
|
-
'scheme': value.scheme,
|
|
63
|
-
'label': value.label,
|
|
64
|
-
'expirationDate': value.expirationDate,
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
exports.PaymentMethodEntityDetailsToJSON = PaymentMethodEntityDetailsToJSON;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Channel Payments API
|
|
3
|
-
*
|
|
4
|
-
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* The updated CFee (Commission Fee) for the merchant account
|
|
9
|
-
* @export
|
|
10
|
-
* @interface UpdateMerchantAccountDtoCfee
|
|
11
|
-
*/
|
|
12
|
-
export interface UpdateMerchantAccountDtoCfee {
|
|
13
|
-
/**
|
|
14
|
-
* The type of the CFee
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof UpdateMerchantAccountDtoCfee
|
|
17
|
-
*/
|
|
18
|
-
type?: UpdateMerchantAccountDtoCfeeTypeEnum;
|
|
19
|
-
/**
|
|
20
|
-
* The rate of the CFee as an integer
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof UpdateMerchantAccountDtoCfee
|
|
23
|
-
*/
|
|
24
|
-
rate?: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
export declare const UpdateMerchantAccountDtoCfeeTypeEnum: {
|
|
30
|
-
readonly Percentage: "PERCENTAGE";
|
|
31
|
-
readonly Fixed: "FIXED";
|
|
32
|
-
};
|
|
33
|
-
export type UpdateMerchantAccountDtoCfeeTypeEnum = typeof UpdateMerchantAccountDtoCfeeTypeEnum[keyof typeof UpdateMerchantAccountDtoCfeeTypeEnum];
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the UpdateMerchantAccountDtoCfee interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfUpdateMerchantAccountDtoCfee(value: object): boolean;
|
|
38
|
-
export declare function UpdateMerchantAccountDtoCfeeFromJSON(json: any): UpdateMerchantAccountDtoCfee;
|
|
39
|
-
export declare function UpdateMerchantAccountDtoCfeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateMerchantAccountDtoCfee;
|
|
40
|
-
export declare function UpdateMerchantAccountDtoCfeeToJSON(value?: UpdateMerchantAccountDtoCfee | null): any;
|
|
@@ -1,55 +0,0 @@
|
|
|
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.UpdateMerchantAccountDtoCfeeToJSON = exports.UpdateMerchantAccountDtoCfeeFromJSONTyped = exports.UpdateMerchantAccountDtoCfeeFromJSON = exports.instanceOfUpdateMerchantAccountDtoCfee = exports.UpdateMerchantAccountDtoCfeeTypeEnum = void 0;
|
|
12
|
-
const runtime_1 = require("../runtime");
|
|
13
|
-
/**
|
|
14
|
-
* @export
|
|
15
|
-
*/
|
|
16
|
-
exports.UpdateMerchantAccountDtoCfeeTypeEnum = {
|
|
17
|
-
Percentage: 'PERCENTAGE',
|
|
18
|
-
Fixed: 'FIXED'
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Check if a given object implements the UpdateMerchantAccountDtoCfee interface.
|
|
22
|
-
*/
|
|
23
|
-
function instanceOfUpdateMerchantAccountDtoCfee(value) {
|
|
24
|
-
let isInstance = true;
|
|
25
|
-
return isInstance;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfUpdateMerchantAccountDtoCfee = instanceOfUpdateMerchantAccountDtoCfee;
|
|
28
|
-
function UpdateMerchantAccountDtoCfeeFromJSON(json) {
|
|
29
|
-
return UpdateMerchantAccountDtoCfeeFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.UpdateMerchantAccountDtoCfeeFromJSON = UpdateMerchantAccountDtoCfeeFromJSON;
|
|
32
|
-
function UpdateMerchantAccountDtoCfeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if ((json === undefined) || (json === null)) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
const typed = {
|
|
37
|
-
'type': !(0, runtime_1.exists)(json, 'type') ? undefined : json['type'],
|
|
38
|
-
'rate': !(0, runtime_1.exists)(json, 'rate') ? undefined : json['rate'],
|
|
39
|
-
};
|
|
40
|
-
return (0, runtime_1.removeNullUndefined)(typed);
|
|
41
|
-
}
|
|
42
|
-
exports.UpdateMerchantAccountDtoCfeeFromJSONTyped = UpdateMerchantAccountDtoCfeeFromJSONTyped;
|
|
43
|
-
function UpdateMerchantAccountDtoCfeeToJSON(value) {
|
|
44
|
-
if (value === undefined) {
|
|
45
|
-
return undefined;
|
|
46
|
-
}
|
|
47
|
-
if (value === null) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
'type': value.type,
|
|
52
|
-
'rate': value.rate,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
exports.UpdateMerchantAccountDtoCfeeToJSON = UpdateMerchantAccountDtoCfeeToJSON;
|
package/dist/cjs/test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/cjs/test.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
const fs = __importStar(require("fs"));
|
|
36
|
-
const apis_1 = require("./src/apis");
|
|
37
|
-
const channelPaymentsApi = new apis_1.ChannelPaymentsApi({
|
|
38
|
-
keyId: 'i6OtWffwR6A4ungdsRVSKYu5KT/NkC74gWibR5SfZuo',
|
|
39
|
-
privateKey: fs.readFileSync('/Users/andy/Downloads/sandbox-integ.pem', 'utf8'),
|
|
40
|
-
// environment: 'sandbox'
|
|
41
|
-
url: 'http://localhost:3000'
|
|
42
|
-
});
|
|
43
|
-
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
44
|
-
try {
|
|
45
|
-
// const merchant = await channelPaymentsApi.findMerchant();
|
|
46
|
-
// console.log(merchant);
|
|
47
|
-
// const createBuyerResponse = await channelPaymentsApi.createBuyer({
|
|
48
|
-
// givenName: 'Test',
|
|
49
|
-
// familyName: 'Test last name',
|
|
50
|
-
// email: 'foo@bar.com',
|
|
51
|
-
// address: {
|
|
52
|
-
// city: 'city',
|
|
53
|
-
// countryCode: 'US',
|
|
54
|
-
// postalCode: '12345',
|
|
55
|
-
// subdivision: 'AZ',
|
|
56
|
-
// streetAddress: 'street',
|
|
57
|
-
// }
|
|
58
|
-
// });
|
|
59
|
-
// console.log(createBuyerResponse);
|
|
60
|
-
const searchBuyersResponse = yield channelPaymentsApi.searchBuyers({
|
|
61
|
-
merchantId: ''
|
|
62
|
-
});
|
|
63
|
-
// const captureResponse = await channelPaymentsApi.createTransaction({
|
|
64
|
-
// amount: 1000,
|
|
65
|
-
// currency: 'USD',
|
|
66
|
-
// paymentMethod: {
|
|
67
|
-
// method: 'CARD',
|
|
68
|
-
// number: '4111111111111111',
|
|
69
|
-
// expirationDate: '12/29',
|
|
70
|
-
// securityCode: '123'
|
|
71
|
-
// }
|
|
72
|
-
// });
|
|
73
|
-
// console.log(captureResponse)
|
|
74
|
-
}
|
|
75
|
-
catch (_error) {
|
|
76
|
-
const error = _error;
|
|
77
|
-
console.error(`Error: ${error.message}`, error);
|
|
78
|
-
}
|
|
79
|
-
}))();
|
|
80
|
-
// const requestId = rawResponse.headers.get('requestId');
|
|
81
|
-
// error.requestId = requestId
|
|
@@ -1,40 +0,0 @@
|
|
|
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 CFeeDto
|
|
11
|
-
*/
|
|
12
|
-
export interface CFeeDto {
|
|
13
|
-
/**
|
|
14
|
-
* The type of the CFee
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof CFeeDto
|
|
17
|
-
*/
|
|
18
|
-
type: CFeeDtoTypeEnum;
|
|
19
|
-
/**
|
|
20
|
-
* The rate of the CFee as an integer
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof CFeeDto
|
|
23
|
-
*/
|
|
24
|
-
rate: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
export declare const CFeeDtoTypeEnum: {
|
|
30
|
-
readonly Percentage: "PERCENTAGE";
|
|
31
|
-
readonly Fixed: "FIXED";
|
|
32
|
-
};
|
|
33
|
-
export type CFeeDtoTypeEnum = typeof CFeeDtoTypeEnum[keyof typeof CFeeDtoTypeEnum];
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the CFeeDto interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfCFeeDto(value: object): boolean;
|
|
38
|
-
export declare function CFeeDtoFromJSON(json: any): CFeeDto;
|
|
39
|
-
export declare function CFeeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CFeeDto;
|
|
40
|
-
export declare function CFeeDtoToJSON(value?: CFeeDto | null): any;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Channel Payments API
|
|
3
|
-
*
|
|
4
|
-
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* The CFee details
|
|
9
|
-
* @export
|
|
10
|
-
* @interface CreateMerchantAccountDtoCfee
|
|
11
|
-
*/
|
|
12
|
-
export interface CreateMerchantAccountDtoCfee {
|
|
13
|
-
/**
|
|
14
|
-
* The type of the CFee
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof CreateMerchantAccountDtoCfee
|
|
17
|
-
*/
|
|
18
|
-
type: CreateMerchantAccountDtoCfeeTypeEnum;
|
|
19
|
-
/**
|
|
20
|
-
* The rate of the CFee as an integer
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof CreateMerchantAccountDtoCfee
|
|
23
|
-
*/
|
|
24
|
-
rate: number;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
export declare const CreateMerchantAccountDtoCfeeTypeEnum: {
|
|
30
|
-
readonly Percentage: "PERCENTAGE";
|
|
31
|
-
readonly Fixed: "FIXED";
|
|
32
|
-
};
|
|
33
|
-
export type CreateMerchantAccountDtoCfeeTypeEnum = typeof CreateMerchantAccountDtoCfeeTypeEnum[keyof typeof CreateMerchantAccountDtoCfeeTypeEnum];
|
|
34
|
-
/**
|
|
35
|
-
* Check if a given object implements the CreateMerchantAccountDtoCfee interface.
|
|
36
|
-
*/
|
|
37
|
-
export declare function instanceOfCreateMerchantAccountDtoCfee(value: object): boolean;
|
|
38
|
-
export declare function CreateMerchantAccountDtoCfeeFromJSON(json: any): CreateMerchantAccountDtoCfee;
|
|
39
|
-
export declare function CreateMerchantAccountDtoCfeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDtoCfee;
|
|
40
|
-
export declare function CreateMerchantAccountDtoCfeeToJSON(value?: CreateMerchantAccountDtoCfee | null): any;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Channel Payments API
|
|
3
|
-
*
|
|
4
|
-
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* The list of merchant gateways
|
|
9
|
-
* @export
|
|
10
|
-
* @interface CreateMerchantAccountDtoGateways
|
|
11
|
-
*/
|
|
12
|
-
export interface CreateMerchantAccountDtoGateways {
|
|
13
|
-
/**
|
|
14
|
-
* The name of the gateway
|
|
15
|
-
* @type {string}
|
|
16
|
-
* @memberof CreateMerchantAccountDtoGateways
|
|
17
|
-
*/
|
|
18
|
-
name: CreateMerchantAccountDtoGatewaysNameEnum;
|
|
19
|
-
/**
|
|
20
|
-
* The ID issued by the gateway
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof CreateMerchantAccountDtoGateways
|
|
23
|
-
*/
|
|
24
|
-
issuedGatewayId: string;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @export
|
|
28
|
-
*/
|
|
29
|
-
export declare const CreateMerchantAccountDtoGatewaysNameEnum: {
|
|
30
|
-
readonly Epay: "EPAY";
|
|
31
|
-
readonly Nmi: "NMI";
|
|
32
|
-
readonly AuthorizeNet: "AUTHORIZE_NET";
|
|
33
|
-
};
|
|
34
|
-
export type CreateMerchantAccountDtoGatewaysNameEnum = typeof CreateMerchantAccountDtoGatewaysNameEnum[keyof typeof CreateMerchantAccountDtoGatewaysNameEnum];
|
|
35
|
-
/**
|
|
36
|
-
* Check if a given object implements the CreateMerchantAccountDtoGateways interface.
|
|
37
|
-
*/
|
|
38
|
-
export declare function instanceOfCreateMerchantAccountDtoGateways(value: object): boolean;
|
|
39
|
-
export declare function CreateMerchantAccountDtoGatewaysFromJSON(json: any): CreateMerchantAccountDtoGateways;
|
|
40
|
-
export declare function CreateMerchantAccountDtoGatewaysFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDtoGateways;
|
|
41
|
-
export declare function CreateMerchantAccountDtoGatewaysToJSON(value?: CreateMerchantAccountDtoGateways | null): any;
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
/**
|
|
11
|
-
* @export
|
|
12
|
-
*/
|
|
13
|
-
export const CreateMerchantAccountDtoGatewaysNameEnum = {
|
|
14
|
-
Epay: 'EPAY',
|
|
15
|
-
Nmi: 'NMI',
|
|
16
|
-
AuthorizeNet: 'AUTHORIZE_NET'
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Check if a given object implements the CreateMerchantAccountDtoGateways interface.
|
|
20
|
-
*/
|
|
21
|
-
export function instanceOfCreateMerchantAccountDtoGateways(value) {
|
|
22
|
-
let isInstance = true;
|
|
23
|
-
isInstance = isInstance && "name" in value;
|
|
24
|
-
isInstance = isInstance && "issuedGatewayId" in value;
|
|
25
|
-
return isInstance;
|
|
26
|
-
}
|
|
27
|
-
export function CreateMerchantAccountDtoGatewaysFromJSON(json) {
|
|
28
|
-
return CreateMerchantAccountDtoGatewaysFromJSONTyped(json, false);
|
|
29
|
-
}
|
|
30
|
-
export function CreateMerchantAccountDtoGatewaysFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
-
if ((json === undefined) || (json === null)) {
|
|
32
|
-
return json;
|
|
33
|
-
}
|
|
34
|
-
const typed = {
|
|
35
|
-
'name': json['name'],
|
|
36
|
-
'issuedGatewayId': json['issuedGatewayId'],
|
|
37
|
-
};
|
|
38
|
-
return removeNullUndefined(typed);
|
|
39
|
-
}
|
|
40
|
-
export function CreateMerchantAccountDtoGatewaysToJSON(value) {
|
|
41
|
-
if (value === undefined) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return {
|
|
48
|
-
'name': value.name,
|
|
49
|
-
'issuedGatewayId': value.issuedGatewayId,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Channel Payments API
|
|
3
|
-
*
|
|
4
|
-
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
import type { CreateMerchantAccountDtoCfee } from './CreateMerchantAccountDtoCfee';
|
|
8
|
-
import type { CreateMerchantAccountDtoGateways } from './CreateMerchantAccountDtoGateways';
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @export
|
|
12
|
-
* @interface CreateMerchantAccountsDto
|
|
13
|
-
*/
|
|
14
|
-
export interface CreateMerchantAccountsDto {
|
|
15
|
-
/**
|
|
16
|
-
* The issued MID (Merchant ID)
|
|
17
|
-
* @type {string}
|
|
18
|
-
* @memberof CreateMerchantAccountsDto
|
|
19
|
-
*/
|
|
20
|
-
issuedMid: string;
|
|
21
|
-
/**
|
|
22
|
-
* The payment method
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof CreateMerchantAccountsDto
|
|
25
|
-
*/
|
|
26
|
-
paymentMethod: CreateMerchantAccountsDtoPaymentMethodEnum;
|
|
27
|
-
/**
|
|
28
|
-
* The payment service provider
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof CreateMerchantAccountsDto
|
|
31
|
-
*/
|
|
32
|
-
psp: CreateMerchantAccountsDtoPspEnum;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {CreateMerchantAccountDtoCfee}
|
|
36
|
-
* @memberof CreateMerchantAccountsDto
|
|
37
|
-
*/
|
|
38
|
-
cfee: CreateMerchantAccountDtoCfee;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {CreateMerchantAccountDtoGateways}
|
|
42
|
-
* @memberof CreateMerchantAccountsDto
|
|
43
|
-
*/
|
|
44
|
-
gateways: CreateMerchantAccountDtoGateways;
|
|
45
|
-
/**
|
|
46
|
-
* The accepted currencies
|
|
47
|
-
* @type {Array<string>}
|
|
48
|
-
* @memberof CreateMerchantAccountsDto
|
|
49
|
-
*/
|
|
50
|
-
acceptedCurrencies?: Array<CreateMerchantAccountsDtoAcceptedCurrenciesEnum>;
|
|
51
|
-
/**
|
|
52
|
-
* The MCC (Merchant Category Code)
|
|
53
|
-
* @type {string}
|
|
54
|
-
* @memberof CreateMerchantAccountsDto
|
|
55
|
-
*/
|
|
56
|
-
mcc?: string;
|
|
57
|
-
/**
|
|
58
|
-
* The BIN (Bank Identification Number)
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof CreateMerchantAccountsDto
|
|
61
|
-
*/
|
|
62
|
-
bin?: string;
|
|
63
|
-
/**
|
|
64
|
-
* The chain or franchise information associated with the merchant
|
|
65
|
-
* @type {string}
|
|
66
|
-
* @memberof CreateMerchantAccountsDto
|
|
67
|
-
*/
|
|
68
|
-
chain?: string;
|
|
69
|
-
/**
|
|
70
|
-
* The store information associated with the merchant
|
|
71
|
-
* @type {string}
|
|
72
|
-
* @memberof CreateMerchantAccountsDto
|
|
73
|
-
*/
|
|
74
|
-
store?: string;
|
|
75
|
-
/**
|
|
76
|
-
* The agent information associated with the merchant
|
|
77
|
-
* @type {string}
|
|
78
|
-
* @memberof CreateMerchantAccountsDto
|
|
79
|
-
*/
|
|
80
|
-
agent?: string;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
|
-
export declare const CreateMerchantAccountsDtoPaymentMethodEnum: {
|
|
86
|
-
readonly Card: "CARD";
|
|
87
|
-
readonly Ach: "ACH";
|
|
88
|
-
};
|
|
89
|
-
export type CreateMerchantAccountsDtoPaymentMethodEnum = typeof CreateMerchantAccountsDtoPaymentMethodEnum[keyof typeof CreateMerchantAccountsDtoPaymentMethodEnum];
|
|
90
|
-
/**
|
|
91
|
-
* @export
|
|
92
|
-
*/
|
|
93
|
-
export declare const CreateMerchantAccountsDtoPspEnum: {
|
|
94
|
-
readonly Tsys: "TSYS";
|
|
95
|
-
readonly Nashville: "NASHVILLE";
|
|
96
|
-
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
97
|
-
};
|
|
98
|
-
export type CreateMerchantAccountsDtoPspEnum = typeof CreateMerchantAccountsDtoPspEnum[keyof typeof CreateMerchantAccountsDtoPspEnum];
|
|
99
|
-
/**
|
|
100
|
-
* @export
|
|
101
|
-
*/
|
|
102
|
-
export declare const CreateMerchantAccountsDtoAcceptedCurrenciesEnum: {
|
|
103
|
-
readonly Usd: "USD";
|
|
104
|
-
readonly Aud: "AUD";
|
|
105
|
-
readonly Cad: "CAD";
|
|
106
|
-
};
|
|
107
|
-
export type CreateMerchantAccountsDtoAcceptedCurrenciesEnum = typeof CreateMerchantAccountsDtoAcceptedCurrenciesEnum[keyof typeof CreateMerchantAccountsDtoAcceptedCurrenciesEnum];
|
|
108
|
-
/**
|
|
109
|
-
* Check if a given object implements the CreateMerchantAccountsDto interface.
|
|
110
|
-
*/
|
|
111
|
-
export declare function instanceOfCreateMerchantAccountsDto(value: object): boolean;
|
|
112
|
-
export declare function CreateMerchantAccountsDtoFromJSON(json: any): CreateMerchantAccountsDto;
|
|
113
|
-
export declare function CreateMerchantAccountsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountsDto;
|
|
114
|
-
export declare function CreateMerchantAccountsDtoToJSON(value?: CreateMerchantAccountsDto | null): any;
|
|
@@ -1,89 +0,0 @@
|
|
|
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 { CreateMerchantAccountDtoGatewaysFromJSON, CreateMerchantAccountDtoGatewaysToJSON, } from './CreateMerchantAccountDtoGateways';
|
|
12
|
-
/**
|
|
13
|
-
* @export
|
|
14
|
-
*/
|
|
15
|
-
export const CreateMerchantAccountsDtoPaymentMethodEnum = {
|
|
16
|
-
Card: 'CARD',
|
|
17
|
-
Ach: 'ACH'
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* @export
|
|
21
|
-
*/
|
|
22
|
-
export const CreateMerchantAccountsDtoPspEnum = {
|
|
23
|
-
Tsys: 'TSYS',
|
|
24
|
-
Nashville: 'NASHVILLE',
|
|
25
|
-
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
|
-
export const CreateMerchantAccountsDtoAcceptedCurrenciesEnum = {
|
|
31
|
-
Usd: 'USD',
|
|
32
|
-
Aud: 'AUD',
|
|
33
|
-
Cad: 'CAD'
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Check if a given object implements the CreateMerchantAccountsDto interface.
|
|
37
|
-
*/
|
|
38
|
-
export function instanceOfCreateMerchantAccountsDto(value) {
|
|
39
|
-
let isInstance = true;
|
|
40
|
-
isInstance = isInstance && "issuedMid" in value;
|
|
41
|
-
isInstance = isInstance && "paymentMethod" in value;
|
|
42
|
-
isInstance = isInstance && "psp" in value;
|
|
43
|
-
isInstance = isInstance && "cfee" in value;
|
|
44
|
-
isInstance = isInstance && "gateways" in value;
|
|
45
|
-
return isInstance;
|
|
46
|
-
}
|
|
47
|
-
export function CreateMerchantAccountsDtoFromJSON(json) {
|
|
48
|
-
return CreateMerchantAccountsDtoFromJSONTyped(json, false);
|
|
49
|
-
}
|
|
50
|
-
export function CreateMerchantAccountsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
-
if ((json === undefined) || (json === null)) {
|
|
52
|
-
return json;
|
|
53
|
-
}
|
|
54
|
-
const typed = {
|
|
55
|
-
'issuedMid': json['issuedMid'],
|
|
56
|
-
'paymentMethod': json['paymentMethod'],
|
|
57
|
-
'psp': json['psp'],
|
|
58
|
-
'cfee': CreateMerchantAccountDtoCfeeFromJSON(json['cfee']),
|
|
59
|
-
'gateways': CreateMerchantAccountDtoGatewaysFromJSON(json['gateways']),
|
|
60
|
-
'acceptedCurrencies': !exists(json, 'acceptedCurrencies') ? undefined : json['acceptedCurrencies'],
|
|
61
|
-
'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
62
|
-
'bin': !exists(json, 'bin') ? undefined : json['bin'],
|
|
63
|
-
'chain': !exists(json, 'chain') ? undefined : json['chain'],
|
|
64
|
-
'store': !exists(json, 'store') ? undefined : json['store'],
|
|
65
|
-
'agent': !exists(json, 'agent') ? undefined : json['agent'],
|
|
66
|
-
};
|
|
67
|
-
return removeNullUndefined(typed);
|
|
68
|
-
}
|
|
69
|
-
export function CreateMerchantAccountsDtoToJSON(value) {
|
|
70
|
-
if (value === undefined) {
|
|
71
|
-
return undefined;
|
|
72
|
-
}
|
|
73
|
-
if (value === null) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
return {
|
|
77
|
-
'issuedMid': value.issuedMid,
|
|
78
|
-
'paymentMethod': value.paymentMethod,
|
|
79
|
-
'psp': value.psp,
|
|
80
|
-
'cfee': CreateMerchantAccountDtoCfeeToJSON(value.cfee),
|
|
81
|
-
'gateways': CreateMerchantAccountDtoGatewaysToJSON(value.gateways),
|
|
82
|
-
'acceptedCurrencies': value.acceptedCurrencies,
|
|
83
|
-
'mcc': value.mcc,
|
|
84
|
-
'bin': value.bin,
|
|
85
|
-
'chain': value.chain,
|
|
86
|
-
'store': value.store,
|
|
87
|
-
'agent': value.agent,
|
|
88
|
-
};
|
|
89
|
-
}
|