@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,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { CreateBuyerDtoAddressFromJSON, CreateBuyerDtoAddressToJSON, } from './CreateBuyerDtoAddress';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the CreateBuyerDto interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfCreateBuyerDto(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "givenName" in value;
|
|
17
|
+
isInstance = isInstance && "familyName" in value;
|
|
18
|
+
isInstance = isInstance && "email" in value;
|
|
19
|
+
isInstance = isInstance && "address" in value;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
export function CreateBuyerDtoFromJSON(json) {
|
|
23
|
+
return CreateBuyerDtoFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CreateBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
const typed = {
|
|
30
|
+
'givenName': json['givenName'],
|
|
31
|
+
'familyName': json['familyName'],
|
|
32
|
+
'email': json['email'],
|
|
33
|
+
'address': CreateBuyerDtoAddressFromJSON(json['address']),
|
|
34
|
+
'phoneNumber': !exists(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
35
|
+
'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
36
|
+
};
|
|
37
|
+
return removeNullUndefined(typed);
|
|
38
|
+
}
|
|
39
|
+
export function CreateBuyerDtoToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'givenName': value.givenName,
|
|
48
|
+
'familyName': value.familyName,
|
|
49
|
+
'email': value.email,
|
|
50
|
+
'address': CreateBuyerDtoAddressToJSON(value.address),
|
|
51
|
+
'phoneNumber': value.phoneNumber,
|
|
52
|
+
'externalBuyerId': value.externalBuyerId,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* Check if a given object implements the CreateBuyerDtoAddress interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfCreateBuyerDtoAddress(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
isInstance = isInstance && "city" in value;
|
|
16
|
+
isInstance = isInstance && "countryCode" in value;
|
|
17
|
+
isInstance = isInstance && "postalCode" in value;
|
|
18
|
+
isInstance = isInstance && "subdivision" in value;
|
|
19
|
+
isInstance = isInstance && "streetAddress" in value;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
export function CreateBuyerDtoAddressFromJSON(json) {
|
|
23
|
+
return CreateBuyerDtoAddressFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function CreateBuyerDtoAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
const typed = {
|
|
30
|
+
'city': json['city'],
|
|
31
|
+
'countryCode': json['countryCode'],
|
|
32
|
+
'postalCode': json['postalCode'],
|
|
33
|
+
'subdivision': json['subdivision'],
|
|
34
|
+
'streetAddress': json['streetAddress'],
|
|
35
|
+
'subdivisionCode': !exists(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
|
|
36
|
+
'streetAddress2': !exists(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
37
|
+
};
|
|
38
|
+
return removeNullUndefined(typed);
|
|
39
|
+
}
|
|
40
|
+
export function CreateBuyerDtoAddressToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'city': value.city,
|
|
49
|
+
'countryCode': value.countryCode,
|
|
50
|
+
'postalCode': value.postalCode,
|
|
51
|
+
'subdivision': value.subdivision,
|
|
52
|
+
'streetAddress': value.streetAddress,
|
|
53
|
+
'subdivisionCode': value.subdivisionCode,
|
|
54
|
+
'streetAddress2': value.streetAddress2,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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,92 @@
|
|
|
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 CreateMerchantAccountDtoPaymentMethodEnum = {
|
|
16
|
+
Card: 'CARD',
|
|
17
|
+
Ach: 'ACH'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export const CreateMerchantAccountDtoPspEnum = {
|
|
23
|
+
Tsys: 'TSYS',
|
|
24
|
+
Nashville: 'NASHVILLE',
|
|
25
|
+
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* @export
|
|
29
|
+
*/
|
|
30
|
+
export const CreateMerchantAccountDtoAcceptedCurrenciesEnum = {
|
|
31
|
+
Usd: 'USD',
|
|
32
|
+
Aud: 'AUD',
|
|
33
|
+
Cad: 'CAD'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the CreateMerchantAccountDto interface.
|
|
37
|
+
*/
|
|
38
|
+
export function instanceOfCreateMerchantAccountDto(value) {
|
|
39
|
+
let isInstance = true;
|
|
40
|
+
isInstance = isInstance && "merchantId" in value;
|
|
41
|
+
isInstance = isInstance && "issuedMid" in value;
|
|
42
|
+
isInstance = isInstance && "paymentMethod" in value;
|
|
43
|
+
isInstance = isInstance && "psp" in value;
|
|
44
|
+
isInstance = isInstance && "cfee" in value;
|
|
45
|
+
isInstance = isInstance && "gateways" in value;
|
|
46
|
+
return isInstance;
|
|
47
|
+
}
|
|
48
|
+
export function CreateMerchantAccountDtoFromJSON(json) {
|
|
49
|
+
return CreateMerchantAccountDtoFromJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function CreateMerchantAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
const typed = {
|
|
56
|
+
'merchantId': json['merchantId'],
|
|
57
|
+
'issuedMid': json['issuedMid'],
|
|
58
|
+
'paymentMethod': json['paymentMethod'],
|
|
59
|
+
'psp': json['psp'],
|
|
60
|
+
'cfee': CreateMerchantAccountDtoCfeeFromJSON(json['cfee']),
|
|
61
|
+
'gateways': CreateMerchantAccountDtoGatewaysFromJSON(json['gateways']),
|
|
62
|
+
'acceptedCurrencies': !exists(json, 'acceptedCurrencies') ? undefined : json['acceptedCurrencies'],
|
|
63
|
+
'mcc': !exists(json, 'mcc') ? undefined : json['mcc'],
|
|
64
|
+
'bin': !exists(json, 'bin') ? undefined : json['bin'],
|
|
65
|
+
'chain': !exists(json, 'chain') ? undefined : json['chain'],
|
|
66
|
+
'store': !exists(json, 'store') ? undefined : json['store'],
|
|
67
|
+
'agent': !exists(json, 'agent') ? undefined : json['agent'],
|
|
68
|
+
};
|
|
69
|
+
return removeNullUndefined(typed);
|
|
70
|
+
}
|
|
71
|
+
export function CreateMerchantAccountDtoToJSON(value) {
|
|
72
|
+
if (value === undefined) {
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
if (value === null) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'merchantId': value.merchantId,
|
|
80
|
+
'issuedMid': value.issuedMid,
|
|
81
|
+
'paymentMethod': value.paymentMethod,
|
|
82
|
+
'psp': value.psp,
|
|
83
|
+
'cfee': CreateMerchantAccountDtoCfeeToJSON(value.cfee),
|
|
84
|
+
'gateways': CreateMerchantAccountDtoGatewaysToJSON(value.gateways),
|
|
85
|
+
'acceptedCurrencies': value.acceptedCurrencies,
|
|
86
|
+
'mcc': value.mcc,
|
|
87
|
+
'bin': value.bin,
|
|
88
|
+
'chain': value.chain,
|
|
89
|
+
'store': value.store,
|
|
90
|
+
'agent': value.agent,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -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,50 @@
|
|
|
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 CreateMerchantAccountDtoCfeeTypeEnum = {
|
|
14
|
+
Percentage: 'PERCENTAGE',
|
|
15
|
+
Fixed: 'FIXED'
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CreateMerchantAccountDtoCfee interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfCreateMerchantAccountDtoCfee(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "type" in value;
|
|
23
|
+
isInstance = isInstance && "rate" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
export function CreateMerchantAccountDtoCfeeFromJSON(json) {
|
|
27
|
+
return CreateMerchantAccountDtoCfeeFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function CreateMerchantAccountDtoCfeeFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'type': json['type'],
|
|
35
|
+
'rate': json['rate'],
|
|
36
|
+
};
|
|
37
|
+
return removeNullUndefined(typed);
|
|
38
|
+
}
|
|
39
|
+
export function CreateMerchantAccountDtoCfeeToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': value.type,
|
|
48
|
+
'rate': value.rate,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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;
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
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;
|