@channelpayments/node-sdk 1.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/src/apis/ChannelPaymentsApi.d.ts +281 -0
- package/dist/cjs/src/apis/ChannelPaymentsApi.js +1184 -0
- package/dist/cjs/src/apis/index.d.ts +1 -0
- package/dist/cjs/src/apis/index.js +19 -0
- package/dist/cjs/src/index.d.ts +3 -0
- package/dist/cjs/src/index.js +21 -0
- package/dist/cjs/src/models/AddressDto.d.ts +62 -0
- package/dist/cjs/src/models/AddressDto.js +63 -0
- package/dist/cjs/src/models/AddressEntity.d.ts +62 -0
- package/dist/cjs/src/models/AddressEntity.js +63 -0
- package/dist/cjs/src/models/BuyerAddressEntity.d.ts +62 -0
- package/dist/cjs/src/models/BuyerAddressEntity.js +58 -0
- package/dist/cjs/src/models/BuyerEntity.d.ts +81 -0
- package/dist/cjs/src/models/BuyerEntity.js +71 -0
- package/dist/cjs/src/models/BuyerEntity1.d.ts +69 -0
- package/dist/cjs/src/models/BuyerEntity1.js +67 -0
- package/dist/cjs/src/models/BuyerEntityAddress.d.ts +62 -0
- package/dist/cjs/src/models/BuyerEntityAddress.js +63 -0
- package/dist/cjs/src/models/BuyersSearchEntity.d.ts +51 -0
- package/dist/cjs/src/models/BuyersSearchEntity.js +58 -0
- package/dist/cjs/src/models/CFeeDto.d.ts +40 -0
- package/dist/cjs/src/models/CFeeDto.js +57 -0
- package/dist/cjs/src/models/CFeeEntity.d.ts +40 -0
- package/dist/cjs/src/models/CFeeEntity.js +57 -0
- package/dist/cjs/src/models/CaptureTransactionDto.d.ts +32 -0
- package/dist/cjs/src/models/CaptureTransactionDto.js +50 -0
- package/dist/cjs/src/models/CardDetails.d.ts +59 -0
- package/dist/cjs/src/models/CardDetails.js +67 -0
- package/dist/cjs/src/models/CreateBuyerDto.d.ts +57 -0
- package/dist/cjs/src/models/CreateBuyerDto.js +61 -0
- package/dist/cjs/src/models/CreateBuyerDtoAddress.d.ts +62 -0
- package/dist/cjs/src/models/CreateBuyerDtoAddress.js +63 -0
- package/dist/cjs/src/models/CreateMerchantAccountDto.d.ts +120 -0
- package/dist/cjs/src/models/CreateMerchantAccountDto.js +99 -0
- package/dist/cjs/src/models/CreateMerchantAccountDtoCfee.d.ts +40 -0
- package/dist/cjs/src/models/CreateMerchantAccountDtoCfee.js +57 -0
- package/dist/cjs/src/models/CreateMerchantAccountDtoGateways.d.ts +41 -0
- package/dist/cjs/src/models/CreateMerchantAccountDtoGateways.js +58 -0
- package/dist/cjs/src/models/CreateMerchantAccountsDto.d.ts +114 -0
- package/dist/cjs/src/models/CreateMerchantAccountsDto.js +96 -0
- package/dist/cjs/src/models/CreateMerchantAddressDto.d.ts +68 -0
- package/dist/cjs/src/models/CreateMerchantAddressDto.js +65 -0
- package/dist/cjs/src/models/CreateMerchantCredentialsDto.d.ts +32 -0
- package/dist/cjs/src/models/CreateMerchantCredentialsDto.js +50 -0
- package/dist/cjs/src/models/CreateMerchantDto.d.ts +70 -0
- package/dist/cjs/src/models/CreateMerchantDto.js +66 -0
- package/dist/cjs/src/models/CreateMerchantDtoAddress.d.ts +68 -0
- package/dist/cjs/src/models/CreateMerchantDtoAddress.js +65 -0
- package/dist/cjs/src/models/CreateMerchantGateway.d.ts +41 -0
- package/dist/cjs/src/models/CreateMerchantGateway.js +58 -0
- package/dist/cjs/src/models/CreatePaymentMethodDto.d.ts +63 -0
- package/dist/cjs/src/models/CreatePaymentMethodDto.js +65 -0
- package/dist/cjs/src/models/CreateTransactionDto.d.ts +80 -0
- package/dist/cjs/src/models/CreateTransactionDto.js +77 -0
- package/dist/cjs/src/models/CreateTransactionDtoPaymentMethod.d.ts +76 -0
- package/dist/cjs/src/models/CreateTransactionDtoPaymentMethod.js +68 -0
- package/dist/cjs/src/models/ErrorEntity.d.ts +56 -0
- package/dist/cjs/src/models/ErrorEntity.js +56 -0
- package/dist/cjs/src/models/MerchantAccountEntity.d.ts +108 -0
- package/dist/cjs/src/models/MerchantAccountEntity.js +97 -0
- package/dist/cjs/src/models/MerchantAccountEntityCfee.d.ts +40 -0
- package/dist/cjs/src/models/MerchantAccountEntityCfee.js +57 -0
- package/dist/cjs/src/models/MerchantAddressEntity.d.ts +68 -0
- package/dist/cjs/src/models/MerchantAddressEntity.js +65 -0
- package/dist/cjs/src/models/MerchantCredentialsEntity.d.ts +74 -0
- package/dist/cjs/src/models/MerchantCredentialsEntity.js +70 -0
- package/dist/cjs/src/models/MerchantEntity.d.ts +88 -0
- package/dist/cjs/src/models/MerchantEntity.js +75 -0
- package/dist/cjs/src/models/MerchantEntityAddress.d.ts +68 -0
- package/dist/cjs/src/models/MerchantEntityAddress.js +65 -0
- package/dist/cjs/src/models/MerchantGatewayEntity.d.ts +59 -0
- package/dist/cjs/src/models/MerchantGatewayEntity.js +67 -0
- package/dist/cjs/src/models/PaymentMethodDto.d.ts +76 -0
- package/dist/cjs/src/models/PaymentMethodDto.js +68 -0
- package/dist/cjs/src/models/PaymentMethodEntity.d.ts +124 -0
- package/dist/cjs/src/models/PaymentMethodEntity.js +97 -0
- package/dist/cjs/src/models/PaymentMethodEntity1.d.ts +89 -0
- package/dist/cjs/src/models/PaymentMethodEntity1.js +74 -0
- package/dist/cjs/src/models/PaymentMethodEntityBuyer.d.ts +69 -0
- package/dist/cjs/src/models/PaymentMethodEntityBuyer.js +67 -0
- package/dist/cjs/src/models/PaymentMethodEntityDetails.d.ts +59 -0
- package/dist/cjs/src/models/PaymentMethodEntityDetails.js +67 -0
- package/dist/cjs/src/models/PaymentMethodsSearchEntity.d.ts +51 -0
- package/dist/cjs/src/models/PaymentMethodsSearchEntity.js +58 -0
- package/dist/cjs/src/models/PaymentsBuyerEntity.d.ts +69 -0
- package/dist/cjs/src/models/PaymentsBuyerEntity.js +62 -0
- package/dist/cjs/src/models/RefundTransactionDto.d.ts +32 -0
- package/dist/cjs/src/models/RefundTransactionDto.js +50 -0
- package/dist/cjs/src/models/TransactionEntity.d.ts +198 -0
- package/dist/cjs/src/models/TransactionEntity.js +128 -0
- package/dist/cjs/src/models/TransactionRefundEntity.d.ts +85 -0
- package/dist/cjs/src/models/TransactionRefundEntity.js +80 -0
- package/dist/cjs/src/models/TransactionRefundsSearchEntity.d.ts +51 -0
- package/dist/cjs/src/models/TransactionRefundsSearchEntity.js +58 -0
- package/dist/cjs/src/models/TransactionsSearchEntity.d.ts +51 -0
- package/dist/cjs/src/models/TransactionsSearchEntity.js +58 -0
- package/dist/cjs/src/models/UpdateAddressDto.d.ts +62 -0
- package/dist/cjs/src/models/UpdateAddressDto.js +58 -0
- package/dist/cjs/src/models/UpdateBuyerDto.d.ts +63 -0
- package/dist/cjs/src/models/UpdateBuyerDto.js +60 -0
- package/dist/cjs/src/models/UpdateBuyerDtoAddress.d.ts +62 -0
- package/dist/cjs/src/models/UpdateBuyerDtoAddress.js +58 -0
- package/dist/cjs/src/models/UpdateCFeeDto.d.ts +40 -0
- package/dist/cjs/src/models/UpdateCFeeDto.js +55 -0
- package/dist/cjs/src/models/UpdateMerchantAccountDto.d.ts +107 -0
- package/dist/cjs/src/models/UpdateMerchantAccountDto.js +89 -0
- package/dist/cjs/src/models/UpdateMerchantAccountDtoCfee.d.ts +40 -0
- package/dist/cjs/src/models/UpdateMerchantAccountDtoCfee.js +55 -0
- package/dist/cjs/src/models/UpdateMerchantAddressDto.d.ts +68 -0
- package/dist/cjs/src/models/UpdateMerchantAddressDto.js +60 -0
- package/dist/cjs/src/models/UpdateMerchantCredentialsDto.d.ts +32 -0
- package/dist/cjs/src/models/UpdateMerchantCredentialsDto.js +49 -0
- package/dist/cjs/src/models/UpdateMerchantDto.d.ts +81 -0
- package/dist/cjs/src/models/UpdateMerchantDto.js +66 -0
- package/dist/cjs/src/models/UpdateMerchantDtoAddress.d.ts +68 -0
- package/dist/cjs/src/models/UpdateMerchantDtoAddress.js +60 -0
- package/dist/cjs/src/models/ValidateMerchantCredentialsDto.d.ts +26 -0
- package/dist/cjs/src/models/ValidateMerchantCredentialsDto.js +47 -0
- package/dist/cjs/src/models/index.d.ts +56 -0
- package/dist/cjs/src/models/index.js +74 -0
- package/dist/cjs/src/runtime.d.ts +118 -0
- package/dist/cjs/src/runtime.js +262 -0
- package/dist/cjs/test.d.ts +1 -0
- package/dist/cjs/test.js +81 -0
- package/dist/mjs/package.json +3 -0
- package/dist/mjs/src/apis/ChannelPaymentsApi.d.ts +281 -0
- package/dist/mjs/src/apis/ChannelPaymentsApi.js +1110 -0
- package/dist/mjs/src/apis/index.d.ts +1 -0
- package/dist/mjs/src/apis/index.js +3 -0
- package/dist/mjs/src/index.d.ts +3 -0
- package/dist/mjs/src/index.js +5 -0
- package/dist/mjs/src/models/AddressDto.d.ts +62 -0
- package/dist/mjs/src/models/AddressDto.js +56 -0
- package/dist/mjs/src/models/AddressEntity.d.ts +62 -0
- package/dist/mjs/src/models/AddressEntity.js +56 -0
- package/dist/mjs/src/models/BuyerAddressEntity.d.ts +62 -0
- package/dist/mjs/src/models/BuyerAddressEntity.js +51 -0
- package/dist/mjs/src/models/BuyerEntity.d.ts +81 -0
- package/dist/mjs/src/models/BuyerEntity.js +64 -0
- package/dist/mjs/src/models/BuyerEntity1.d.ts +69 -0
- package/dist/mjs/src/models/BuyerEntity1.js +60 -0
- package/dist/mjs/src/models/BuyerEntityAddress.d.ts +62 -0
- package/dist/mjs/src/models/BuyerEntityAddress.js +56 -0
- package/dist/mjs/src/models/BuyersSearchEntity.d.ts +51 -0
- package/dist/mjs/src/models/BuyersSearchEntity.js +51 -0
- package/dist/mjs/src/models/CFeeDto.d.ts +40 -0
- package/dist/mjs/src/models/CFeeDto.js +50 -0
- package/dist/mjs/src/models/CFeeEntity.d.ts +40 -0
- package/dist/mjs/src/models/CFeeEntity.js +50 -0
- package/dist/mjs/src/models/CaptureTransactionDto.d.ts +32 -0
- package/dist/mjs/src/models/CaptureTransactionDto.js +43 -0
- package/dist/mjs/src/models/CardDetails.d.ts +59 -0
- package/dist/mjs/src/models/CardDetails.js +60 -0
- package/dist/mjs/src/models/CreateBuyerDto.d.ts +57 -0
- package/dist/mjs/src/models/CreateBuyerDto.js +54 -0
- package/dist/mjs/src/models/CreateBuyerDtoAddress.d.ts +62 -0
- package/dist/mjs/src/models/CreateBuyerDtoAddress.js +56 -0
- package/dist/mjs/src/models/CreateMerchantAccountDto.d.ts +120 -0
- package/dist/mjs/src/models/CreateMerchantAccountDto.js +92 -0
- package/dist/mjs/src/models/CreateMerchantAccountDtoCfee.d.ts +40 -0
- package/dist/mjs/src/models/CreateMerchantAccountDtoCfee.js +50 -0
- package/dist/mjs/src/models/CreateMerchantAccountDtoGateways.d.ts +41 -0
- package/dist/mjs/src/models/CreateMerchantAccountDtoGateways.js +51 -0
- package/dist/mjs/src/models/CreateMerchantAccountsDto.d.ts +114 -0
- package/dist/mjs/src/models/CreateMerchantAccountsDto.js +89 -0
- package/dist/mjs/src/models/CreateMerchantAddressDto.d.ts +68 -0
- package/dist/mjs/src/models/CreateMerchantAddressDto.js +58 -0
- package/dist/mjs/src/models/CreateMerchantCredentialsDto.d.ts +32 -0
- package/dist/mjs/src/models/CreateMerchantCredentialsDto.js +43 -0
- package/dist/mjs/src/models/CreateMerchantDto.d.ts +70 -0
- package/dist/mjs/src/models/CreateMerchantDto.js +59 -0
- package/dist/mjs/src/models/CreateMerchantDtoAddress.d.ts +68 -0
- package/dist/mjs/src/models/CreateMerchantDtoAddress.js +58 -0
- package/dist/mjs/src/models/CreateMerchantGateway.d.ts +41 -0
- package/dist/mjs/src/models/CreateMerchantGateway.js +51 -0
- package/dist/mjs/src/models/CreatePaymentMethodDto.d.ts +63 -0
- package/dist/mjs/src/models/CreatePaymentMethodDto.js +58 -0
- package/dist/mjs/src/models/CreateTransactionDto.d.ts +80 -0
- package/dist/mjs/src/models/CreateTransactionDto.js +70 -0
- package/dist/mjs/src/models/CreateTransactionDtoPaymentMethod.d.ts +76 -0
- package/dist/mjs/src/models/CreateTransactionDtoPaymentMethod.js +61 -0
- package/dist/mjs/src/models/ErrorEntity.d.ts +56 -0
- package/dist/mjs/src/models/ErrorEntity.js +49 -0
- package/dist/mjs/src/models/MerchantAccountEntity.d.ts +108 -0
- package/dist/mjs/src/models/MerchantAccountEntity.js +90 -0
- package/dist/mjs/src/models/MerchantAccountEntityCfee.d.ts +40 -0
- package/dist/mjs/src/models/MerchantAccountEntityCfee.js +50 -0
- package/dist/mjs/src/models/MerchantAddressEntity.d.ts +68 -0
- package/dist/mjs/src/models/MerchantAddressEntity.js +58 -0
- package/dist/mjs/src/models/MerchantCredentialsEntity.d.ts +74 -0
- package/dist/mjs/src/models/MerchantCredentialsEntity.js +63 -0
- package/dist/mjs/src/models/MerchantEntity.d.ts +88 -0
- package/dist/mjs/src/models/MerchantEntity.js +68 -0
- package/dist/mjs/src/models/MerchantEntityAddress.d.ts +68 -0
- package/dist/mjs/src/models/MerchantEntityAddress.js +58 -0
- package/dist/mjs/src/models/MerchantGatewayEntity.d.ts +59 -0
- package/dist/mjs/src/models/MerchantGatewayEntity.js +60 -0
- package/dist/mjs/src/models/PaymentMethodDto.d.ts +76 -0
- package/dist/mjs/src/models/PaymentMethodDto.js +61 -0
- package/dist/mjs/src/models/PaymentMethodEntity.d.ts +124 -0
- package/dist/mjs/src/models/PaymentMethodEntity.js +90 -0
- package/dist/mjs/src/models/PaymentMethodEntity1.d.ts +89 -0
- package/dist/mjs/src/models/PaymentMethodEntity1.js +67 -0
- package/dist/mjs/src/models/PaymentMethodEntityBuyer.d.ts +69 -0
- package/dist/mjs/src/models/PaymentMethodEntityBuyer.js +60 -0
- package/dist/mjs/src/models/PaymentMethodEntityDetails.d.ts +59 -0
- package/dist/mjs/src/models/PaymentMethodEntityDetails.js +60 -0
- package/dist/mjs/src/models/PaymentMethodsSearchEntity.d.ts +51 -0
- package/dist/mjs/src/models/PaymentMethodsSearchEntity.js +51 -0
- package/dist/mjs/src/models/PaymentsBuyerEntity.d.ts +69 -0
- package/dist/mjs/src/models/PaymentsBuyerEntity.js +55 -0
- package/dist/mjs/src/models/RefundTransactionDto.d.ts +32 -0
- package/dist/mjs/src/models/RefundTransactionDto.js +43 -0
- package/dist/mjs/src/models/TransactionEntity.d.ts +198 -0
- package/dist/mjs/src/models/TransactionEntity.js +121 -0
- package/dist/mjs/src/models/TransactionRefundEntity.d.ts +85 -0
- package/dist/mjs/src/models/TransactionRefundEntity.js +73 -0
- package/dist/mjs/src/models/TransactionRefundsSearchEntity.d.ts +51 -0
- package/dist/mjs/src/models/TransactionRefundsSearchEntity.js +51 -0
- package/dist/mjs/src/models/TransactionsSearchEntity.d.ts +51 -0
- package/dist/mjs/src/models/TransactionsSearchEntity.js +51 -0
- package/dist/mjs/src/models/UpdateAddressDto.d.ts +62 -0
- package/dist/mjs/src/models/UpdateAddressDto.js +51 -0
- package/dist/mjs/src/models/UpdateBuyerDto.d.ts +63 -0
- package/dist/mjs/src/models/UpdateBuyerDto.js +53 -0
- package/dist/mjs/src/models/UpdateBuyerDtoAddress.d.ts +62 -0
- package/dist/mjs/src/models/UpdateBuyerDtoAddress.js +51 -0
- package/dist/mjs/src/models/UpdateCFeeDto.d.ts +40 -0
- package/dist/mjs/src/models/UpdateCFeeDto.js +48 -0
- package/dist/mjs/src/models/UpdateMerchantAccountDto.d.ts +107 -0
- package/dist/mjs/src/models/UpdateMerchantAccountDto.js +82 -0
- package/dist/mjs/src/models/UpdateMerchantAccountDtoCfee.d.ts +40 -0
- package/dist/mjs/src/models/UpdateMerchantAccountDtoCfee.js +48 -0
- package/dist/mjs/src/models/UpdateMerchantAddressDto.d.ts +68 -0
- package/dist/mjs/src/models/UpdateMerchantAddressDto.js +53 -0
- package/dist/mjs/src/models/UpdateMerchantCredentialsDto.d.ts +32 -0
- package/dist/mjs/src/models/UpdateMerchantCredentialsDto.js +42 -0
- package/dist/mjs/src/models/UpdateMerchantDto.d.ts +81 -0
- package/dist/mjs/src/models/UpdateMerchantDto.js +59 -0
- package/dist/mjs/src/models/UpdateMerchantDtoAddress.d.ts +68 -0
- package/dist/mjs/src/models/UpdateMerchantDtoAddress.js +53 -0
- package/dist/mjs/src/models/ValidateMerchantCredentialsDto.d.ts +26 -0
- package/dist/mjs/src/models/ValidateMerchantCredentialsDto.js +40 -0
- package/dist/mjs/src/models/index.d.ts +56 -0
- package/dist/mjs/src/models/index.js +58 -0
- package/dist/mjs/src/runtime.d.ts +118 -0
- package/dist/mjs/src/runtime.js +234 -0
- package/dist/mjs/test.d.ts +1 -0
- package/dist/mjs/test.js +47 -0
- package/package.json +32 -0
|
@@ -0,0 +1,67 @@
|
|
|
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.CardDetailsToJSON = exports.CardDetailsFromJSONTyped = exports.CardDetailsFromJSON = exports.instanceOfCardDetails = exports.CardDetailsTypeEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
exports.CardDetailsTypeEnum = {
|
|
17
|
+
Credit: 'credit',
|
|
18
|
+
Debit: 'debit',
|
|
19
|
+
Prepaid: 'prepaid'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CardDetails interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCardDetails(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.instanceOfCardDetails = instanceOfCardDetails;
|
|
34
|
+
function CardDetailsFromJSON(json) {
|
|
35
|
+
return CardDetailsFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
exports.CardDetailsFromJSON = CardDetailsFromJSON;
|
|
38
|
+
function CardDetailsFromJSONTyped(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.CardDetailsFromJSONTyped = CardDetailsFromJSONTyped;
|
|
52
|
+
function CardDetailsToJSON(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.CardDetailsToJSON = CardDetailsToJSON;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateBuyerDtoAddress } from './CreateBuyerDtoAddress';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface CreateBuyerDto
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateBuyerDto {
|
|
14
|
+
/**
|
|
15
|
+
* The given name of the buyer
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof CreateBuyerDto
|
|
18
|
+
*/
|
|
19
|
+
givenName: string;
|
|
20
|
+
/**
|
|
21
|
+
* The family name of the buyer
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateBuyerDto
|
|
24
|
+
*/
|
|
25
|
+
familyName: string;
|
|
26
|
+
/**
|
|
27
|
+
* The email address of the buyer
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateBuyerDto
|
|
30
|
+
*/
|
|
31
|
+
email: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {CreateBuyerDtoAddress}
|
|
35
|
+
* @memberof CreateBuyerDto
|
|
36
|
+
*/
|
|
37
|
+
address: CreateBuyerDtoAddress;
|
|
38
|
+
/**
|
|
39
|
+
* The phone number of the buyer
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CreateBuyerDto
|
|
42
|
+
*/
|
|
43
|
+
phoneNumber?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The merchant-issued ID for the buyer. Must be unique to the buyer
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateBuyerDto
|
|
48
|
+
*/
|
|
49
|
+
externalBuyerId?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the CreateBuyerDto interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfCreateBuyerDto(value: object): boolean;
|
|
55
|
+
export declare function CreateBuyerDtoFromJSON(json: any): CreateBuyerDto;
|
|
56
|
+
export declare function CreateBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBuyerDto;
|
|
57
|
+
export declare function CreateBuyerDtoToJSON(value?: CreateBuyerDto | null): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.CreateBuyerDtoToJSON = exports.CreateBuyerDtoFromJSONTyped = exports.CreateBuyerDtoFromJSON = exports.instanceOfCreateBuyerDto = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const CreateBuyerDtoAddress_1 = require("./CreateBuyerDtoAddress");
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the CreateBuyerDto interface.
|
|
16
|
+
*/
|
|
17
|
+
function instanceOfCreateBuyerDto(value) {
|
|
18
|
+
let isInstance = true;
|
|
19
|
+
isInstance = isInstance && "givenName" in value;
|
|
20
|
+
isInstance = isInstance && "familyName" in value;
|
|
21
|
+
isInstance = isInstance && "email" in value;
|
|
22
|
+
isInstance = isInstance && "address" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCreateBuyerDto = instanceOfCreateBuyerDto;
|
|
26
|
+
function CreateBuyerDtoFromJSON(json) {
|
|
27
|
+
return CreateBuyerDtoFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CreateBuyerDtoFromJSON = CreateBuyerDtoFromJSON;
|
|
30
|
+
function CreateBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
const typed = {
|
|
35
|
+
'givenName': json['givenName'],
|
|
36
|
+
'familyName': json['familyName'],
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
'address': (0, CreateBuyerDtoAddress_1.CreateBuyerDtoAddressFromJSON)(json['address']),
|
|
39
|
+
'phoneNumber': !(0, runtime_1.exists)(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
40
|
+
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
41
|
+
};
|
|
42
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
43
|
+
}
|
|
44
|
+
exports.CreateBuyerDtoFromJSONTyped = CreateBuyerDtoFromJSONTyped;
|
|
45
|
+
function CreateBuyerDtoToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'givenName': value.givenName,
|
|
54
|
+
'familyName': value.familyName,
|
|
55
|
+
'email': value.email,
|
|
56
|
+
'address': (0, CreateBuyerDtoAddress_1.CreateBuyerDtoAddressToJSON)(value.address),
|
|
57
|
+
'phoneNumber': value.phoneNumber,
|
|
58
|
+
'externalBuyerId': value.externalBuyerId,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.CreateBuyerDtoToJSON = CreateBuyerDtoToJSON;
|
|
@@ -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
|
+
* The address of the buyer
|
|
9
|
+
* @export
|
|
10
|
+
* @interface CreateBuyerDtoAddress
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateBuyerDtoAddress {
|
|
13
|
+
/**
|
|
14
|
+
* The city
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CreateBuyerDtoAddress
|
|
17
|
+
*/
|
|
18
|
+
city: string;
|
|
19
|
+
/**
|
|
20
|
+
* The country code
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateBuyerDtoAddress
|
|
23
|
+
*/
|
|
24
|
+
countryCode: string;
|
|
25
|
+
/**
|
|
26
|
+
* The postal code
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateBuyerDtoAddress
|
|
29
|
+
*/
|
|
30
|
+
postalCode: string;
|
|
31
|
+
/**
|
|
32
|
+
* The subdivision (state, province, or region)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateBuyerDtoAddress
|
|
35
|
+
*/
|
|
36
|
+
subdivision: string;
|
|
37
|
+
/**
|
|
38
|
+
* The street address
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateBuyerDtoAddress
|
|
41
|
+
*/
|
|
42
|
+
streetAddress: string;
|
|
43
|
+
/**
|
|
44
|
+
* The optional subdivision code
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateBuyerDtoAddress
|
|
47
|
+
*/
|
|
48
|
+
subdivisionCode?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The optional second line of the street address
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateBuyerDtoAddress
|
|
53
|
+
*/
|
|
54
|
+
streetAddress2?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the CreateBuyerDtoAddress interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfCreateBuyerDtoAddress(value: object): boolean;
|
|
60
|
+
export declare function CreateBuyerDtoAddressFromJSON(json: any): CreateBuyerDtoAddress;
|
|
61
|
+
export declare function CreateBuyerDtoAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBuyerDtoAddress;
|
|
62
|
+
export declare function CreateBuyerDtoAddressToJSON(value?: CreateBuyerDtoAddress | null): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.CreateBuyerDtoAddressToJSON = exports.CreateBuyerDtoAddressFromJSONTyped = exports.CreateBuyerDtoAddressFromJSON = exports.instanceOfCreateBuyerDtoAddress = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* Check if a given object implements the CreateBuyerDtoAddress interface.
|
|
15
|
+
*/
|
|
16
|
+
function instanceOfCreateBuyerDtoAddress(value) {
|
|
17
|
+
let isInstance = true;
|
|
18
|
+
isInstance = isInstance && "city" in value;
|
|
19
|
+
isInstance = isInstance && "countryCode" in value;
|
|
20
|
+
isInstance = isInstance && "postalCode" in value;
|
|
21
|
+
isInstance = isInstance && "subdivision" in value;
|
|
22
|
+
isInstance = isInstance && "streetAddress" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCreateBuyerDtoAddress = instanceOfCreateBuyerDtoAddress;
|
|
26
|
+
function CreateBuyerDtoAddressFromJSON(json) {
|
|
27
|
+
return CreateBuyerDtoAddressFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CreateBuyerDtoAddressFromJSON = CreateBuyerDtoAddressFromJSON;
|
|
30
|
+
function CreateBuyerDtoAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
const typed = {
|
|
35
|
+
'city': json['city'],
|
|
36
|
+
'countryCode': json['countryCode'],
|
|
37
|
+
'postalCode': json['postalCode'],
|
|
38
|
+
'subdivision': json['subdivision'],
|
|
39
|
+
'streetAddress': json['streetAddress'],
|
|
40
|
+
'subdivisionCode': !(0, runtime_1.exists)(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
|
|
41
|
+
'streetAddress2': !(0, runtime_1.exists)(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
42
|
+
};
|
|
43
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
44
|
+
}
|
|
45
|
+
exports.CreateBuyerDtoAddressFromJSONTyped = CreateBuyerDtoAddressFromJSONTyped;
|
|
46
|
+
function CreateBuyerDtoAddressToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'city': value.city,
|
|
55
|
+
'countryCode': value.countryCode,
|
|
56
|
+
'postalCode': value.postalCode,
|
|
57
|
+
'subdivision': value.subdivision,
|
|
58
|
+
'streetAddress': value.streetAddress,
|
|
59
|
+
'subdivisionCode': value.subdivisionCode,
|
|
60
|
+
'streetAddress2': value.streetAddress2,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
exports.CreateBuyerDtoAddressToJSON = CreateBuyerDtoAddressToJSON;
|
|
@@ -0,0 +1,120 @@
|
|
|
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 CreateMerchantAccountDto
|
|
13
|
+
*/
|
|
14
|
+
export interface CreateMerchantAccountDto {
|
|
15
|
+
/**
|
|
16
|
+
* The associated merchant ID
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof CreateMerchantAccountDto
|
|
19
|
+
*/
|
|
20
|
+
merchantId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The issued MID (Merchant ID)
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof CreateMerchantAccountDto
|
|
25
|
+
*/
|
|
26
|
+
issuedMid: string;
|
|
27
|
+
/**
|
|
28
|
+
* The payment method
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof CreateMerchantAccountDto
|
|
31
|
+
*/
|
|
32
|
+
paymentMethod: CreateMerchantAccountDtoPaymentMethodEnum;
|
|
33
|
+
/**
|
|
34
|
+
* The payment service provider
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof CreateMerchantAccountDto
|
|
37
|
+
*/
|
|
38
|
+
psp: CreateMerchantAccountDtoPspEnum;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {CreateMerchantAccountDtoCfee}
|
|
42
|
+
* @memberof CreateMerchantAccountDto
|
|
43
|
+
*/
|
|
44
|
+
cfee: CreateMerchantAccountDtoCfee;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {CreateMerchantAccountDtoGateways}
|
|
48
|
+
* @memberof CreateMerchantAccountDto
|
|
49
|
+
*/
|
|
50
|
+
gateways: CreateMerchantAccountDtoGateways;
|
|
51
|
+
/**
|
|
52
|
+
* The accepted currencies
|
|
53
|
+
* @type {Array<string>}
|
|
54
|
+
* @memberof CreateMerchantAccountDto
|
|
55
|
+
*/
|
|
56
|
+
acceptedCurrencies?: Array<CreateMerchantAccountDtoAcceptedCurrenciesEnum>;
|
|
57
|
+
/**
|
|
58
|
+
* The MCC (Merchant Category Code)
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof CreateMerchantAccountDto
|
|
61
|
+
*/
|
|
62
|
+
mcc?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The BIN (Bank Identification Number)
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof CreateMerchantAccountDto
|
|
67
|
+
*/
|
|
68
|
+
bin?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The chain or franchise information associated with the merchant
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof CreateMerchantAccountDto
|
|
73
|
+
*/
|
|
74
|
+
chain?: string;
|
|
75
|
+
/**
|
|
76
|
+
* The store information associated with the merchant
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateMerchantAccountDto
|
|
79
|
+
*/
|
|
80
|
+
store?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The agent information associated with the merchant
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CreateMerchantAccountDto
|
|
85
|
+
*/
|
|
86
|
+
agent?: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export declare const CreateMerchantAccountDtoPaymentMethodEnum: {
|
|
92
|
+
readonly Card: "CARD";
|
|
93
|
+
readonly Ach: "ACH";
|
|
94
|
+
};
|
|
95
|
+
export type CreateMerchantAccountDtoPaymentMethodEnum = typeof CreateMerchantAccountDtoPaymentMethodEnum[keyof typeof CreateMerchantAccountDtoPaymentMethodEnum];
|
|
96
|
+
/**
|
|
97
|
+
* @export
|
|
98
|
+
*/
|
|
99
|
+
export declare const CreateMerchantAccountDtoPspEnum: {
|
|
100
|
+
readonly Tsys: "TSYS";
|
|
101
|
+
readonly Nashville: "NASHVILLE";
|
|
102
|
+
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
103
|
+
};
|
|
104
|
+
export type CreateMerchantAccountDtoPspEnum = typeof CreateMerchantAccountDtoPspEnum[keyof typeof CreateMerchantAccountDtoPspEnum];
|
|
105
|
+
/**
|
|
106
|
+
* @export
|
|
107
|
+
*/
|
|
108
|
+
export declare const CreateMerchantAccountDtoAcceptedCurrenciesEnum: {
|
|
109
|
+
readonly Usd: "USD";
|
|
110
|
+
readonly Aud: "AUD";
|
|
111
|
+
readonly Cad: "CAD";
|
|
112
|
+
};
|
|
113
|
+
export type CreateMerchantAccountDtoAcceptedCurrenciesEnum = typeof CreateMerchantAccountDtoAcceptedCurrenciesEnum[keyof typeof CreateMerchantAccountDtoAcceptedCurrenciesEnum];
|
|
114
|
+
/**
|
|
115
|
+
* Check if a given object implements the CreateMerchantAccountDto interface.
|
|
116
|
+
*/
|
|
117
|
+
export declare function instanceOfCreateMerchantAccountDto(value: object): boolean;
|
|
118
|
+
export declare function CreateMerchantAccountDtoFromJSON(json: any): CreateMerchantAccountDto;
|
|
119
|
+
export declare function CreateMerchantAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantAccountDto;
|
|
120
|
+
export declare function CreateMerchantAccountDtoToJSON(value?: CreateMerchantAccountDto | null): any;
|
|
@@ -0,0 +1,99 @@
|
|
|
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.CreateMerchantAccountDtoToJSON = exports.CreateMerchantAccountDtoFromJSONTyped = exports.CreateMerchantAccountDtoFromJSON = exports.instanceOfCreateMerchantAccountDto = exports.CreateMerchantAccountDtoAcceptedCurrenciesEnum = exports.CreateMerchantAccountDtoPspEnum = exports.CreateMerchantAccountDtoPaymentMethodEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const CreateMerchantAccountDtoCfee_1 = require("./CreateMerchantAccountDtoCfee");
|
|
14
|
+
const CreateMerchantAccountDtoGateways_1 = require("./CreateMerchantAccountDtoGateways");
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
exports.CreateMerchantAccountDtoPaymentMethodEnum = {
|
|
19
|
+
Card: 'CARD',
|
|
20
|
+
Ach: 'ACH'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateMerchantAccountDtoPspEnum = {
|
|
26
|
+
Tsys: 'TSYS',
|
|
27
|
+
Nashville: 'NASHVILLE',
|
|
28
|
+
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.CreateMerchantAccountDtoAcceptedCurrenciesEnum = {
|
|
34
|
+
Usd: 'USD',
|
|
35
|
+
Aud: 'AUD',
|
|
36
|
+
Cad: 'CAD'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CreateMerchantAccountDto interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfCreateMerchantAccountDto(value) {
|
|
42
|
+
let isInstance = true;
|
|
43
|
+
isInstance = isInstance && "merchantId" in value;
|
|
44
|
+
isInstance = isInstance && "issuedMid" in value;
|
|
45
|
+
isInstance = isInstance && "paymentMethod" in value;
|
|
46
|
+
isInstance = isInstance && "psp" in value;
|
|
47
|
+
isInstance = isInstance && "cfee" in value;
|
|
48
|
+
isInstance = isInstance && "gateways" in value;
|
|
49
|
+
return isInstance;
|
|
50
|
+
}
|
|
51
|
+
exports.instanceOfCreateMerchantAccountDto = instanceOfCreateMerchantAccountDto;
|
|
52
|
+
function CreateMerchantAccountDtoFromJSON(json) {
|
|
53
|
+
return CreateMerchantAccountDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
exports.CreateMerchantAccountDtoFromJSON = CreateMerchantAccountDtoFromJSON;
|
|
56
|
+
function CreateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if ((json === undefined) || (json === null)) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
const typed = {
|
|
61
|
+
'merchantId': json['merchantId'],
|
|
62
|
+
'issuedMid': json['issuedMid'],
|
|
63
|
+
'paymentMethod': json['paymentMethod'],
|
|
64
|
+
'psp': json['psp'],
|
|
65
|
+
'cfee': (0, CreateMerchantAccountDtoCfee_1.CreateMerchantAccountDtoCfeeFromJSON)(json['cfee']),
|
|
66
|
+
'gateways': (0, CreateMerchantAccountDtoGateways_1.CreateMerchantAccountDtoGatewaysFromJSON)(json['gateways']),
|
|
67
|
+
'acceptedCurrencies': !(0, runtime_1.exists)(json, 'acceptedCurrencies') ? undefined : json['acceptedCurrencies'],
|
|
68
|
+
'mcc': !(0, runtime_1.exists)(json, 'mcc') ? undefined : json['mcc'],
|
|
69
|
+
'bin': !(0, runtime_1.exists)(json, 'bin') ? undefined : json['bin'],
|
|
70
|
+
'chain': !(0, runtime_1.exists)(json, 'chain') ? undefined : json['chain'],
|
|
71
|
+
'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
|
|
72
|
+
'agent': !(0, runtime_1.exists)(json, 'agent') ? undefined : json['agent'],
|
|
73
|
+
};
|
|
74
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
75
|
+
}
|
|
76
|
+
exports.CreateMerchantAccountDtoFromJSONTyped = CreateMerchantAccountDtoFromJSONTyped;
|
|
77
|
+
function CreateMerchantAccountDtoToJSON(value) {
|
|
78
|
+
if (value === undefined) {
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
if (value === null) {
|
|
82
|
+
return null;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'merchantId': value.merchantId,
|
|
86
|
+
'issuedMid': value.issuedMid,
|
|
87
|
+
'paymentMethod': value.paymentMethod,
|
|
88
|
+
'psp': value.psp,
|
|
89
|
+
'cfee': (0, CreateMerchantAccountDtoCfee_1.CreateMerchantAccountDtoCfeeToJSON)(value.cfee),
|
|
90
|
+
'gateways': (0, CreateMerchantAccountDtoGateways_1.CreateMerchantAccountDtoGatewaysToJSON)(value.gateways),
|
|
91
|
+
'acceptedCurrencies': value.acceptedCurrencies,
|
|
92
|
+
'mcc': value.mcc,
|
|
93
|
+
'bin': value.bin,
|
|
94
|
+
'chain': value.chain,
|
|
95
|
+
'store': value.store,
|
|
96
|
+
'agent': value.agent,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
exports.CreateMerchantAccountDtoToJSON = CreateMerchantAccountDtoToJSON;
|
|
@@ -0,0 +1,40 @@
|
|
|
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;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.CreateMerchantAccountDtoCfeeToJSON = exports.CreateMerchantAccountDtoCfeeFromJSONTyped = exports.CreateMerchantAccountDtoCfeeFromJSON = exports.instanceOfCreateMerchantAccountDtoCfee = exports.CreateMerchantAccountDtoCfeeTypeEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
exports.CreateMerchantAccountDtoCfeeTypeEnum = {
|
|
17
|
+
Percentage: 'PERCENTAGE',
|
|
18
|
+
Fixed: 'FIXED'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CreateMerchantAccountDtoCfee interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfCreateMerchantAccountDtoCfee(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
isInstance = isInstance && "type" in value;
|
|
26
|
+
isInstance = isInstance && "rate" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfCreateMerchantAccountDtoCfee = instanceOfCreateMerchantAccountDtoCfee;
|
|
30
|
+
function CreateMerchantAccountDtoCfeeFromJSON(json) {
|
|
31
|
+
return CreateMerchantAccountDtoCfeeFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.CreateMerchantAccountDtoCfeeFromJSON = CreateMerchantAccountDtoCfeeFromJSON;
|
|
34
|
+
function CreateMerchantAccountDtoCfeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
const typed = {
|
|
39
|
+
'type': json['type'],
|
|
40
|
+
'rate': json['rate'],
|
|
41
|
+
};
|
|
42
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
43
|
+
}
|
|
44
|
+
exports.CreateMerchantAccountDtoCfeeFromJSONTyped = CreateMerchantAccountDtoCfeeFromJSONTyped;
|
|
45
|
+
function CreateMerchantAccountDtoCfeeToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'type': value.type,
|
|
54
|
+
'rate': value.rate,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.CreateMerchantAccountDtoCfeeToJSON = CreateMerchantAccountDtoCfeeToJSON;
|
|
@@ -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
|
+
/**
|
|
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;
|