@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,90 @@
|
|
|
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 { MerchantAccountEntityCfeeFromJSON, MerchantAccountEntityCfeeToJSON, } from './MerchantAccountEntityCfee';
|
|
11
|
+
import { MerchantGatewayEntityFromJSON, MerchantGatewayEntityToJSON, } from './MerchantGatewayEntity';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const MerchantAccountEntityPspEnum = {
|
|
16
|
+
Tsys: 'TSYS',
|
|
17
|
+
Nashville: 'NASHVILLE',
|
|
18
|
+
ChannelPayments: 'CHANNEL_PAYMENTS'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export const MerchantAccountEntityAcceptedCurrenciesEnum = {
|
|
24
|
+
Usd: 'USD',
|
|
25
|
+
Aud: 'AUD',
|
|
26
|
+
Cad: 'CAD'
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const MerchantAccountEntityPaymentMethodEnum = {
|
|
32
|
+
Card: 'CARD',
|
|
33
|
+
Ach: 'ACH'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the MerchantAccountEntity interface.
|
|
37
|
+
*/
|
|
38
|
+
export function instanceOfMerchantAccountEntity(value) {
|
|
39
|
+
let isInstance = true;
|
|
40
|
+
isInstance = isInstance && "merchantAccountId" in value;
|
|
41
|
+
isInstance = isInstance && "issuedMid" in value;
|
|
42
|
+
isInstance = isInstance && "psp" in value;
|
|
43
|
+
isInstance = isInstance && "cfee" in value;
|
|
44
|
+
isInstance = isInstance && "acceptedCurrencies" in value;
|
|
45
|
+
isInstance = isInstance && "createdAt" in value;
|
|
46
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
47
|
+
isInstance = isInstance && "paymentMethod" in value;
|
|
48
|
+
return isInstance;
|
|
49
|
+
}
|
|
50
|
+
export function MerchantAccountEntityFromJSON(json) {
|
|
51
|
+
return MerchantAccountEntityFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function MerchantAccountEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if ((json === undefined) || (json === null)) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
const typed = {
|
|
58
|
+
'merchantAccountId': json['merchantAccountId'],
|
|
59
|
+
'merchantId': !exists(json, 'merchantId') ? undefined : json['merchantId'],
|
|
60
|
+
'issuedMid': json['issuedMid'],
|
|
61
|
+
'psp': json['psp'],
|
|
62
|
+
'cfee': MerchantAccountEntityCfeeFromJSON(json['cfee']),
|
|
63
|
+
'acceptedCurrencies': json['acceptedCurrencies'],
|
|
64
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
65
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
66
|
+
'paymentMethod': json['paymentMethod'],
|
|
67
|
+
'gateways': !exists(json, 'gateways') ? undefined : (json['gateways'].map(MerchantGatewayEntityFromJSON)),
|
|
68
|
+
};
|
|
69
|
+
return removeNullUndefined(typed);
|
|
70
|
+
}
|
|
71
|
+
export function MerchantAccountEntityToJSON(value) {
|
|
72
|
+
if (value === undefined) {
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
if (value === null) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
'merchantAccountId': value.merchantAccountId,
|
|
80
|
+
'merchantId': value.merchantId,
|
|
81
|
+
'issuedMid': value.issuedMid,
|
|
82
|
+
'psp': value.psp,
|
|
83
|
+
'cfee': MerchantAccountEntityCfeeToJSON(value.cfee),
|
|
84
|
+
'acceptedCurrencies': value.acceptedCurrencies,
|
|
85
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
86
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
87
|
+
'paymentMethod': value.paymentMethod,
|
|
88
|
+
'gateways': value.gateways === undefined ? undefined : (value.gateways.map(MerchantGatewayEntityToJSON)),
|
|
89
|
+
};
|
|
90
|
+
}
|
|
@@ -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 MerchantAccountEntityCfee
|
|
11
|
+
*/
|
|
12
|
+
export interface MerchantAccountEntityCfee {
|
|
13
|
+
/**
|
|
14
|
+
* The type of the CFee
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MerchantAccountEntityCfee
|
|
17
|
+
*/
|
|
18
|
+
type: MerchantAccountEntityCfeeTypeEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The rate of the CFee as an integer
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof MerchantAccountEntityCfee
|
|
23
|
+
*/
|
|
24
|
+
rate: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export declare const MerchantAccountEntityCfeeTypeEnum: {
|
|
30
|
+
readonly Percentage: "PERCENTAGE";
|
|
31
|
+
readonly Fixed: "FIXED";
|
|
32
|
+
};
|
|
33
|
+
export type MerchantAccountEntityCfeeTypeEnum = typeof MerchantAccountEntityCfeeTypeEnum[keyof typeof MerchantAccountEntityCfeeTypeEnum];
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the MerchantAccountEntityCfee interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfMerchantAccountEntityCfee(value: object): boolean;
|
|
38
|
+
export declare function MerchantAccountEntityCfeeFromJSON(json: any): MerchantAccountEntityCfee;
|
|
39
|
+
export declare function MerchantAccountEntityCfeeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntityCfee;
|
|
40
|
+
export declare function MerchantAccountEntityCfeeToJSON(value?: MerchantAccountEntityCfee | 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 MerchantAccountEntityCfeeTypeEnum = {
|
|
14
|
+
Percentage: 'PERCENTAGE',
|
|
15
|
+
Fixed: 'FIXED'
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the MerchantAccountEntityCfee interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfMerchantAccountEntityCfee(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "type" in value;
|
|
23
|
+
isInstance = isInstance && "rate" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
export function MerchantAccountEntityCfeeFromJSON(json) {
|
|
27
|
+
return MerchantAccountEntityCfeeFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function MerchantAccountEntityCfeeFromJSONTyped(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 MerchantAccountEntityCfeeToJSON(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,68 @@
|
|
|
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 MerchantAddressEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface MerchantAddressEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The country of the merchant address
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MerchantAddressEntity
|
|
17
|
+
*/
|
|
18
|
+
country: string;
|
|
19
|
+
/**
|
|
20
|
+
* The subdivision (state, province, or region) of the merchant address
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MerchantAddressEntity
|
|
23
|
+
*/
|
|
24
|
+
subdivision: string;
|
|
25
|
+
/**
|
|
26
|
+
* The city of the merchant address
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MerchantAddressEntity
|
|
29
|
+
*/
|
|
30
|
+
city: string;
|
|
31
|
+
/**
|
|
32
|
+
* The street address of the merchant
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MerchantAddressEntity
|
|
35
|
+
*/
|
|
36
|
+
streetAddress: string;
|
|
37
|
+
/**
|
|
38
|
+
* The postal code of the merchant address
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof MerchantAddressEntity
|
|
41
|
+
*/
|
|
42
|
+
postalCode: string;
|
|
43
|
+
/**
|
|
44
|
+
* The country code of the merchant address
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof MerchantAddressEntity
|
|
47
|
+
*/
|
|
48
|
+
countryCode?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The subdivision code of the merchant address
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof MerchantAddressEntity
|
|
53
|
+
*/
|
|
54
|
+
subdivisionCode?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The second line of the street address of the merchant
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof MerchantAddressEntity
|
|
59
|
+
*/
|
|
60
|
+
streetAddress2?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the MerchantAddressEntity interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfMerchantAddressEntity(value: object): boolean;
|
|
66
|
+
export declare function MerchantAddressEntityFromJSON(json: any): MerchantAddressEntity;
|
|
67
|
+
export declare function MerchantAddressEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAddressEntity;
|
|
68
|
+
export declare function MerchantAddressEntityToJSON(value?: MerchantAddressEntity | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 MerchantAddressEntity interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfMerchantAddressEntity(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
isInstance = isInstance && "country" in value;
|
|
16
|
+
isInstance = isInstance && "subdivision" in value;
|
|
17
|
+
isInstance = isInstance && "city" in value;
|
|
18
|
+
isInstance = isInstance && "streetAddress" in value;
|
|
19
|
+
isInstance = isInstance && "postalCode" in value;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
export function MerchantAddressEntityFromJSON(json) {
|
|
23
|
+
return MerchantAddressEntityFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function MerchantAddressEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
const typed = {
|
|
30
|
+
'country': json['country'],
|
|
31
|
+
'subdivision': json['subdivision'],
|
|
32
|
+
'city': json['city'],
|
|
33
|
+
'streetAddress': json['streetAddress'],
|
|
34
|
+
'postalCode': json['postalCode'],
|
|
35
|
+
'countryCode': !exists(json, 'countryCode') ? undefined : json['countryCode'],
|
|
36
|
+
'subdivisionCode': !exists(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
|
|
37
|
+
'streetAddress2': !exists(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
38
|
+
};
|
|
39
|
+
return removeNullUndefined(typed);
|
|
40
|
+
}
|
|
41
|
+
export function MerchantAddressEntityToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'country': value.country,
|
|
50
|
+
'subdivision': value.subdivision,
|
|
51
|
+
'city': value.city,
|
|
52
|
+
'streetAddress': value.streetAddress,
|
|
53
|
+
'postalCode': value.postalCode,
|
|
54
|
+
'countryCode': value.countryCode,
|
|
55
|
+
'subdivisionCode': value.subdivisionCode,
|
|
56
|
+
'streetAddress2': value.streetAddress2,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 MerchantCredentialsEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface MerchantCredentialsEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The merchant credentials ID
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MerchantCredentialsEntity
|
|
17
|
+
*/
|
|
18
|
+
merchantCredentialsId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The merchant ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MerchantCredentialsEntity
|
|
23
|
+
*/
|
|
24
|
+
merchantId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The given reference name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MerchantCredentialsEntity
|
|
29
|
+
*/
|
|
30
|
+
credentialsName: string;
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the signing key
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MerchantCredentialsEntity
|
|
35
|
+
*/
|
|
36
|
+
thumbprint: string;
|
|
37
|
+
/**
|
|
38
|
+
* The creation date
|
|
39
|
+
* @type {Date}
|
|
40
|
+
* @memberof MerchantCredentialsEntity
|
|
41
|
+
*/
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
/**
|
|
44
|
+
* The last update date
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof MerchantCredentialsEntity
|
|
47
|
+
*/
|
|
48
|
+
updatedAt: Date;
|
|
49
|
+
/**
|
|
50
|
+
* The algorithm used to sign the JWT
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof MerchantCredentialsEntity
|
|
53
|
+
*/
|
|
54
|
+
algorithm: string;
|
|
55
|
+
/**
|
|
56
|
+
* The user who created the credentials
|
|
57
|
+
* @type {object}
|
|
58
|
+
* @memberof MerchantCredentialsEntity
|
|
59
|
+
*/
|
|
60
|
+
createdBy: object;
|
|
61
|
+
/**
|
|
62
|
+
* The signing key
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof MerchantCredentialsEntity
|
|
65
|
+
*/
|
|
66
|
+
signingKey?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Check if a given object implements the MerchantCredentialsEntity interface.
|
|
70
|
+
*/
|
|
71
|
+
export declare function instanceOfMerchantCredentialsEntity(value: object): boolean;
|
|
72
|
+
export declare function MerchantCredentialsEntityFromJSON(json: any): MerchantCredentialsEntity;
|
|
73
|
+
export declare function MerchantCredentialsEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantCredentialsEntity;
|
|
74
|
+
export declare function MerchantCredentialsEntityToJSON(value?: MerchantCredentialsEntity | null): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 MerchantCredentialsEntity interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfMerchantCredentialsEntity(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
isInstance = isInstance && "merchantCredentialsId" in value;
|
|
16
|
+
isInstance = isInstance && "merchantId" in value;
|
|
17
|
+
isInstance = isInstance && "credentialsName" in value;
|
|
18
|
+
isInstance = isInstance && "thumbprint" in value;
|
|
19
|
+
isInstance = isInstance && "createdAt" in value;
|
|
20
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
21
|
+
isInstance = isInstance && "algorithm" in value;
|
|
22
|
+
isInstance = isInstance && "createdBy" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
export function MerchantCredentialsEntityFromJSON(json) {
|
|
26
|
+
return MerchantCredentialsEntityFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function MerchantCredentialsEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
const typed = {
|
|
33
|
+
'merchantCredentialsId': json['merchantCredentialsId'],
|
|
34
|
+
'merchantId': json['merchantId'],
|
|
35
|
+
'credentialsName': json['credentialsName'],
|
|
36
|
+
'thumbprint': json['thumbprint'],
|
|
37
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
38
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
39
|
+
'algorithm': json['algorithm'],
|
|
40
|
+
'createdBy': json['createdBy'],
|
|
41
|
+
'signingKey': !exists(json, 'signingKey') ? undefined : json['signingKey'],
|
|
42
|
+
};
|
|
43
|
+
return removeNullUndefined(typed);
|
|
44
|
+
}
|
|
45
|
+
export function MerchantCredentialsEntityToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'merchantCredentialsId': value.merchantCredentialsId,
|
|
54
|
+
'merchantId': value.merchantId,
|
|
55
|
+
'credentialsName': value.credentialsName,
|
|
56
|
+
'thumbprint': value.thumbprint,
|
|
57
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
58
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
59
|
+
'algorithm': value.algorithm,
|
|
60
|
+
'createdBy': value.createdBy,
|
|
61
|
+
'signingKey': value.signingKey,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { MerchantAccountEntity } from './MerchantAccountEntity';
|
|
8
|
+
import type { MerchantEntityAddress } from './MerchantEntityAddress';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface MerchantEntity
|
|
13
|
+
*/
|
|
14
|
+
export interface MerchantEntity {
|
|
15
|
+
/**
|
|
16
|
+
* The alphanumeric merchant ID
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof MerchantEntity
|
|
19
|
+
*/
|
|
20
|
+
merchantId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The name of the merchant
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof MerchantEntity
|
|
25
|
+
*/
|
|
26
|
+
name: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {MerchantEntityAddress}
|
|
30
|
+
* @memberof MerchantEntity
|
|
31
|
+
*/
|
|
32
|
+
address: MerchantEntityAddress;
|
|
33
|
+
/**
|
|
34
|
+
* The email address of the merchant
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof MerchantEntity
|
|
37
|
+
*/
|
|
38
|
+
email: string;
|
|
39
|
+
/**
|
|
40
|
+
* The phone number of the merchant in E.164 format
|
|
41
|
+
* @type {string}
|
|
42
|
+
* @memberof MerchantEntity
|
|
43
|
+
*/
|
|
44
|
+
phoneNumber: string;
|
|
45
|
+
/**
|
|
46
|
+
* The date the merchant was created
|
|
47
|
+
* @type {Date}
|
|
48
|
+
* @memberof MerchantEntity
|
|
49
|
+
*/
|
|
50
|
+
createdAt: Date;
|
|
51
|
+
/**
|
|
52
|
+
* The date the merchant was last updated
|
|
53
|
+
* @type {Date}
|
|
54
|
+
* @memberof MerchantEntity
|
|
55
|
+
*/
|
|
56
|
+
updatedAt: Date;
|
|
57
|
+
/**
|
|
58
|
+
* The URL of the merchant logo
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof MerchantEntity
|
|
61
|
+
*/
|
|
62
|
+
logo?: string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof MerchantEntity
|
|
67
|
+
*/
|
|
68
|
+
parentMerchantId?: string;
|
|
69
|
+
/**
|
|
70
|
+
* The website URL of the merchant
|
|
71
|
+
* @type {string}
|
|
72
|
+
* @memberof MerchantEntity
|
|
73
|
+
*/
|
|
74
|
+
website?: string;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {Array<MerchantAccountEntity>}
|
|
78
|
+
* @memberof MerchantEntity
|
|
79
|
+
*/
|
|
80
|
+
merchantAccounts?: Array<MerchantAccountEntity>;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Check if a given object implements the MerchantEntity interface.
|
|
84
|
+
*/
|
|
85
|
+
export declare function instanceOfMerchantEntity(value: object): boolean;
|
|
86
|
+
export declare function MerchantEntityFromJSON(json: any): MerchantEntity;
|
|
87
|
+
export declare function MerchantEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantEntity;
|
|
88
|
+
export declare function MerchantEntityToJSON(value?: MerchantEntity | null): any;
|
|
@@ -0,0 +1,68 @@
|
|
|
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 { MerchantAccountEntityFromJSON, MerchantAccountEntityToJSON, } from './MerchantAccountEntity';
|
|
11
|
+
import { MerchantEntityAddressFromJSON, MerchantEntityAddressToJSON, } from './MerchantEntityAddress';
|
|
12
|
+
/**
|
|
13
|
+
* Check if a given object implements the MerchantEntity interface.
|
|
14
|
+
*/
|
|
15
|
+
export function instanceOfMerchantEntity(value) {
|
|
16
|
+
let isInstance = true;
|
|
17
|
+
isInstance = isInstance && "merchantId" in value;
|
|
18
|
+
isInstance = isInstance && "name" in value;
|
|
19
|
+
isInstance = isInstance && "address" in value;
|
|
20
|
+
isInstance = isInstance && "email" in value;
|
|
21
|
+
isInstance = isInstance && "phoneNumber" in value;
|
|
22
|
+
isInstance = isInstance && "createdAt" in value;
|
|
23
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
export function MerchantEntityFromJSON(json) {
|
|
27
|
+
return MerchantEntityFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function MerchantEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'merchantId': json['merchantId'],
|
|
35
|
+
'name': json['name'],
|
|
36
|
+
'address': MerchantEntityAddressFromJSON(json['address']),
|
|
37
|
+
'email': json['email'],
|
|
38
|
+
'phoneNumber': json['phoneNumber'],
|
|
39
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
40
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
41
|
+
'logo': !exists(json, 'logo') ? undefined : json['logo'],
|
|
42
|
+
'parentMerchantId': !exists(json, 'parentMerchantId') ? undefined : json['parentMerchantId'],
|
|
43
|
+
'website': !exists(json, 'website') ? undefined : json['website'],
|
|
44
|
+
'merchantAccounts': !exists(json, 'merchantAccounts') ? undefined : (json['merchantAccounts'].map(MerchantAccountEntityFromJSON)),
|
|
45
|
+
};
|
|
46
|
+
return removeNullUndefined(typed);
|
|
47
|
+
}
|
|
48
|
+
export function MerchantEntityToJSON(value) {
|
|
49
|
+
if (value === undefined) {
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
if (value === null) {
|
|
53
|
+
return null;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'merchantId': value.merchantId,
|
|
57
|
+
'name': value.name,
|
|
58
|
+
'address': MerchantEntityAddressToJSON(value.address),
|
|
59
|
+
'email': value.email,
|
|
60
|
+
'phoneNumber': value.phoneNumber,
|
|
61
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
62
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
63
|
+
'logo': value.logo,
|
|
64
|
+
'parentMerchantId': value.parentMerchantId,
|
|
65
|
+
'website': value.website,
|
|
66
|
+
'merchantAccounts': value.merchantAccounts === undefined ? undefined : (value.merchantAccounts.map(MerchantAccountEntityToJSON)),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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 merchant
|
|
9
|
+
* @export
|
|
10
|
+
* @interface MerchantEntityAddress
|
|
11
|
+
*/
|
|
12
|
+
export interface MerchantEntityAddress {
|
|
13
|
+
/**
|
|
14
|
+
* The country of the merchant address
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof MerchantEntityAddress
|
|
17
|
+
*/
|
|
18
|
+
country: string;
|
|
19
|
+
/**
|
|
20
|
+
* The subdivision (state, province, or region) of the merchant address
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MerchantEntityAddress
|
|
23
|
+
*/
|
|
24
|
+
subdivision: string;
|
|
25
|
+
/**
|
|
26
|
+
* The city of the merchant address
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MerchantEntityAddress
|
|
29
|
+
*/
|
|
30
|
+
city: string;
|
|
31
|
+
/**
|
|
32
|
+
* The street address of the merchant
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MerchantEntityAddress
|
|
35
|
+
*/
|
|
36
|
+
streetAddress: string;
|
|
37
|
+
/**
|
|
38
|
+
* The postal code of the merchant address
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof MerchantEntityAddress
|
|
41
|
+
*/
|
|
42
|
+
postalCode: string;
|
|
43
|
+
/**
|
|
44
|
+
* The country code of the merchant address
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof MerchantEntityAddress
|
|
47
|
+
*/
|
|
48
|
+
countryCode?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The subdivision code of the merchant address
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof MerchantEntityAddress
|
|
53
|
+
*/
|
|
54
|
+
subdivisionCode?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The second line of the street address of the merchant
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof MerchantEntityAddress
|
|
59
|
+
*/
|
|
60
|
+
streetAddress2?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the MerchantEntityAddress interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfMerchantEntityAddress(value: object): boolean;
|
|
66
|
+
export declare function MerchantEntityAddressFromJSON(json: any): MerchantEntityAddress;
|
|
67
|
+
export declare function MerchantEntityAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantEntityAddress;
|
|
68
|
+
export declare function MerchantEntityAddressToJSON(value?: MerchantEntityAddress | null): any;
|