@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,63 @@
|
|
|
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 CreatePaymentMethodDto
|
|
11
|
+
*/
|
|
12
|
+
export interface CreatePaymentMethodDto {
|
|
13
|
+
/**
|
|
14
|
+
* The payment method
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CreatePaymentMethodDto
|
|
17
|
+
*/
|
|
18
|
+
method: CreatePaymentMethodDtoMethodEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The 13 - 19 digit card number
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreatePaymentMethodDto
|
|
23
|
+
*/
|
|
24
|
+
number: string;
|
|
25
|
+
/**
|
|
26
|
+
* The expiration date of the card, formatted MM/YY
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreatePaymentMethodDto
|
|
29
|
+
*/
|
|
30
|
+
expirationDate: string;
|
|
31
|
+
/**
|
|
32
|
+
* The external ID of the buyer to associate the payment to
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreatePaymentMethodDto
|
|
35
|
+
*/
|
|
36
|
+
externalBuyerId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The Channel Payments ID of the buyer to associate the payment to
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreatePaymentMethodDto
|
|
41
|
+
*/
|
|
42
|
+
buyerId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* An external ID to match the card against your own records
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreatePaymentMethodDto
|
|
47
|
+
*/
|
|
48
|
+
externalPaymentMethodId?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const CreatePaymentMethodDtoMethodEnum: {
|
|
54
|
+
readonly Card: "CARD";
|
|
55
|
+
};
|
|
56
|
+
export type CreatePaymentMethodDtoMethodEnum = typeof CreatePaymentMethodDtoMethodEnum[keyof typeof CreatePaymentMethodDtoMethodEnum];
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the CreatePaymentMethodDto interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfCreatePaymentMethodDto(value: object): boolean;
|
|
61
|
+
export declare function CreatePaymentMethodDtoFromJSON(json: any): CreatePaymentMethodDto;
|
|
62
|
+
export declare function CreatePaymentMethodDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentMethodDto;
|
|
63
|
+
export declare function CreatePaymentMethodDtoToJSON(value?: CreatePaymentMethodDto | 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
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export const CreatePaymentMethodDtoMethodEnum = {
|
|
14
|
+
Card: 'CARD'
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the CreatePaymentMethodDto interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfCreatePaymentMethodDto(value) {
|
|
20
|
+
let isInstance = true;
|
|
21
|
+
isInstance = isInstance && "method" in value;
|
|
22
|
+
isInstance = isInstance && "number" in value;
|
|
23
|
+
isInstance = isInstance && "expirationDate" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
export function CreatePaymentMethodDtoFromJSON(json) {
|
|
27
|
+
return CreatePaymentMethodDtoFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function CreatePaymentMethodDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'method': json['method'],
|
|
35
|
+
'number': json['number'],
|
|
36
|
+
'expirationDate': json['expirationDate'],
|
|
37
|
+
'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
38
|
+
'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
|
|
39
|
+
'externalPaymentMethodId': !exists(json, 'externalPaymentMethodId') ? undefined : json['externalPaymentMethodId'],
|
|
40
|
+
};
|
|
41
|
+
return removeNullUndefined(typed);
|
|
42
|
+
}
|
|
43
|
+
export function CreatePaymentMethodDtoToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'method': value.method,
|
|
52
|
+
'number': value.number,
|
|
53
|
+
'expirationDate': value.expirationDate,
|
|
54
|
+
'externalBuyerId': value.externalBuyerId,
|
|
55
|
+
'buyerId': value.buyerId,
|
|
56
|
+
'externalPaymentMethodId': value.externalPaymentMethodId,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateTransactionDtoPaymentMethod } from './CreateTransactionDtoPaymentMethod';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface CreateTransactionDto
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateTransactionDto {
|
|
14
|
+
/**
|
|
15
|
+
* The amount to charge the buyer.
|
|
16
|
+
* @type {number}
|
|
17
|
+
* @memberof CreateTransactionDto
|
|
18
|
+
*/
|
|
19
|
+
amount: number;
|
|
20
|
+
/**
|
|
21
|
+
* The ISO-4217 currency code of the amount to charge the buyer.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateTransactionDto
|
|
24
|
+
*/
|
|
25
|
+
currency: CreateTransactionDtoCurrencyEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {CreateTransactionDtoPaymentMethod}
|
|
29
|
+
* @memberof CreateTransactionDto
|
|
30
|
+
*/
|
|
31
|
+
paymentMethod: CreateTransactionDtoPaymentMethod;
|
|
32
|
+
/**
|
|
33
|
+
* Defines the intent of the transaction. Available options include: authorize, capture
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof CreateTransactionDto
|
|
36
|
+
*/
|
|
37
|
+
intent?: CreateTransactionDtoIntentEnum;
|
|
38
|
+
/**
|
|
39
|
+
* Whether or not to exclude the convenience fee from the transaction amount.
|
|
40
|
+
* @type {boolean}
|
|
41
|
+
* @memberof CreateTransactionDto
|
|
42
|
+
*/
|
|
43
|
+
excludeCfee?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* The 2-letter ISO code of the country of the transaction.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateTransactionDto
|
|
48
|
+
*/
|
|
49
|
+
country?: string;
|
|
50
|
+
/**
|
|
51
|
+
* External identifier that can be used to match the transactions against your own records
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof CreateTransactionDto
|
|
54
|
+
*/
|
|
55
|
+
externalTransactionId?: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* @export
|
|
59
|
+
*/
|
|
60
|
+
export declare const CreateTransactionDtoCurrencyEnum: {
|
|
61
|
+
readonly Usd: "USD";
|
|
62
|
+
readonly Cad: "CAD";
|
|
63
|
+
readonly Aud: "AUD";
|
|
64
|
+
};
|
|
65
|
+
export type CreateTransactionDtoCurrencyEnum = typeof CreateTransactionDtoCurrencyEnum[keyof typeof CreateTransactionDtoCurrencyEnum];
|
|
66
|
+
/**
|
|
67
|
+
* @export
|
|
68
|
+
*/
|
|
69
|
+
export declare const CreateTransactionDtoIntentEnum: {
|
|
70
|
+
readonly Capture: "capture";
|
|
71
|
+
readonly Authorize: "authorize";
|
|
72
|
+
};
|
|
73
|
+
export type CreateTransactionDtoIntentEnum = typeof CreateTransactionDtoIntentEnum[keyof typeof CreateTransactionDtoIntentEnum];
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CreateTransactionDto interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfCreateTransactionDto(value: object): boolean;
|
|
78
|
+
export declare function CreateTransactionDtoFromJSON(json: any): CreateTransactionDto;
|
|
79
|
+
export declare function CreateTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTransactionDto;
|
|
80
|
+
export declare function CreateTransactionDtoToJSON(value?: CreateTransactionDto | null): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { CreateTransactionDtoPaymentMethodFromJSON, CreateTransactionDtoPaymentMethodToJSON, } from './CreateTransactionDtoPaymentMethod';
|
|
11
|
+
/**
|
|
12
|
+
* @export
|
|
13
|
+
*/
|
|
14
|
+
export const CreateTransactionDtoCurrencyEnum = {
|
|
15
|
+
Usd: 'USD',
|
|
16
|
+
Cad: 'CAD',
|
|
17
|
+
Aud: 'AUD'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export const CreateTransactionDtoIntentEnum = {
|
|
23
|
+
Capture: 'capture',
|
|
24
|
+
Authorize: 'authorize'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CreateTransactionDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export function instanceOfCreateTransactionDto(value) {
|
|
30
|
+
let isInstance = true;
|
|
31
|
+
isInstance = isInstance && "amount" in value;
|
|
32
|
+
isInstance = isInstance && "currency" in value;
|
|
33
|
+
isInstance = isInstance && "paymentMethod" in value;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
export function CreateTransactionDtoFromJSON(json) {
|
|
37
|
+
return CreateTransactionDtoFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function CreateTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if ((json === undefined) || (json === null)) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
const typed = {
|
|
44
|
+
'amount': json['amount'],
|
|
45
|
+
'currency': json['currency'],
|
|
46
|
+
'paymentMethod': CreateTransactionDtoPaymentMethodFromJSON(json['paymentMethod']),
|
|
47
|
+
'intent': !exists(json, 'intent') ? undefined : json['intent'],
|
|
48
|
+
'excludeCfee': !exists(json, 'excludeCfee') ? undefined : json['excludeCfee'],
|
|
49
|
+
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
50
|
+
'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
51
|
+
};
|
|
52
|
+
return removeNullUndefined(typed);
|
|
53
|
+
}
|
|
54
|
+
export function CreateTransactionDtoToJSON(value) {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'amount': value.amount,
|
|
63
|
+
'currency': value.currency,
|
|
64
|
+
'paymentMethod': CreateTransactionDtoPaymentMethodToJSON(value.paymentMethod),
|
|
65
|
+
'intent': value.intent,
|
|
66
|
+
'excludeCfee': value.excludeCfee,
|
|
67
|
+
'country': value.country,
|
|
68
|
+
'externalTransactionId': value.externalTransactionId,
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The payment method.
|
|
9
|
+
* @export
|
|
10
|
+
* @interface CreateTransactionDtoPaymentMethod
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateTransactionDtoPaymentMethod {
|
|
13
|
+
/**
|
|
14
|
+
* The payment method.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CreateTransactionDtoPaymentMethod
|
|
17
|
+
*/
|
|
18
|
+
method: CreateTransactionDtoPaymentMethodMethodEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The 13 - 19 digit card number. Must be unset is method is not CARD.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateTransactionDtoPaymentMethod
|
|
23
|
+
*/
|
|
24
|
+
number?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The 3 or 4 digit code often found on the back of the card. Often referred to as the CVV or CVD.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateTransactionDtoPaymentMethod
|
|
29
|
+
*/
|
|
30
|
+
securityCode?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The expiration date of the card, formatted MM/YY. Must be unset if method is not CARD.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateTransactionDtoPaymentMethod
|
|
35
|
+
*/
|
|
36
|
+
expirationDate?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The id of the buyer to associate the payment to. Must be unset if method is ID.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateTransactionDtoPaymentMethod
|
|
41
|
+
*/
|
|
42
|
+
externalBuyerId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The id of the buyer to associate the payment to. Must be unset if method is ID.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateTransactionDtoPaymentMethod
|
|
47
|
+
*/
|
|
48
|
+
buyerId?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The id of the stored payment method to use. Must be unset if method is not ID.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateTransactionDtoPaymentMethod
|
|
53
|
+
*/
|
|
54
|
+
paymentMethodId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether or not to also try and store the payment method for future use
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof CreateTransactionDtoPaymentMethod
|
|
59
|
+
*/
|
|
60
|
+
store?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @export
|
|
64
|
+
*/
|
|
65
|
+
export declare const CreateTransactionDtoPaymentMethodMethodEnum: {
|
|
66
|
+
readonly Card: "CARD";
|
|
67
|
+
readonly Id: "ID";
|
|
68
|
+
};
|
|
69
|
+
export type CreateTransactionDtoPaymentMethodMethodEnum = typeof CreateTransactionDtoPaymentMethodMethodEnum[keyof typeof CreateTransactionDtoPaymentMethodMethodEnum];
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the CreateTransactionDtoPaymentMethod interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfCreateTransactionDtoPaymentMethod(value: object): boolean;
|
|
74
|
+
export declare function CreateTransactionDtoPaymentMethodFromJSON(json: any): CreateTransactionDtoPaymentMethod;
|
|
75
|
+
export declare function CreateTransactionDtoPaymentMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTransactionDtoPaymentMethod;
|
|
76
|
+
export declare function CreateTransactionDtoPaymentMethodToJSON(value?: CreateTransactionDtoPaymentMethod | null): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export const CreateTransactionDtoPaymentMethodMethodEnum = {
|
|
14
|
+
Card: 'CARD',
|
|
15
|
+
Id: 'ID'
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CreateTransactionDtoPaymentMethod interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfCreateTransactionDtoPaymentMethod(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "method" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
export function CreateTransactionDtoPaymentMethodFromJSON(json) {
|
|
26
|
+
return CreateTransactionDtoPaymentMethodFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function CreateTransactionDtoPaymentMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if ((json === undefined) || (json === null)) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
const typed = {
|
|
33
|
+
'method': json['method'],
|
|
34
|
+
'number': !exists(json, 'number') ? undefined : json['number'],
|
|
35
|
+
'securityCode': !exists(json, 'securityCode') ? undefined : json['securityCode'],
|
|
36
|
+
'expirationDate': !exists(json, 'expirationDate') ? undefined : json['expirationDate'],
|
|
37
|
+
'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
38
|
+
'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
|
|
39
|
+
'paymentMethodId': !exists(json, 'paymentMethodId') ? undefined : json['paymentMethodId'],
|
|
40
|
+
'store': !exists(json, 'store') ? undefined : json['store'],
|
|
41
|
+
};
|
|
42
|
+
return removeNullUndefined(typed);
|
|
43
|
+
}
|
|
44
|
+
export function CreateTransactionDtoPaymentMethodToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'method': value.method,
|
|
53
|
+
'number': value.number,
|
|
54
|
+
'securityCode': value.securityCode,
|
|
55
|
+
'expirationDate': value.expirationDate,
|
|
56
|
+
'externalBuyerId': value.externalBuyerId,
|
|
57
|
+
'buyerId': value.buyerId,
|
|
58
|
+
'paymentMethodId': value.paymentMethodId,
|
|
59
|
+
'store': value.store,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 ErrorEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface ErrorEntity {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {number}
|
|
16
|
+
* @memberof ErrorEntity
|
|
17
|
+
*/
|
|
18
|
+
statusCode?: number;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ErrorEntity
|
|
23
|
+
*/
|
|
24
|
+
message?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ErrorEntity
|
|
29
|
+
*/
|
|
30
|
+
path?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Date}
|
|
34
|
+
* @memberof ErrorEntity
|
|
35
|
+
*/
|
|
36
|
+
timestamp?: Date;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ErrorEntity
|
|
41
|
+
*/
|
|
42
|
+
method?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof ErrorEntity
|
|
47
|
+
*/
|
|
48
|
+
requestId?: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ErrorEntity interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfErrorEntity(value: object): boolean;
|
|
54
|
+
export declare function ErrorEntityFromJSON(json: any): ErrorEntity;
|
|
55
|
+
export declare function ErrorEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorEntity;
|
|
56
|
+
export declare function ErrorEntityToJSON(value?: ErrorEntity | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 ErrorEntity interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfErrorEntity(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
return isInstance;
|
|
16
|
+
}
|
|
17
|
+
export function ErrorEntityFromJSON(json) {
|
|
18
|
+
return ErrorEntityFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function ErrorEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if ((json === undefined) || (json === null)) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
const typed = {
|
|
25
|
+
'statusCode': !exists(json, 'statusCode') ? undefined : json['statusCode'],
|
|
26
|
+
'message': !exists(json, 'message') ? undefined : json['message'],
|
|
27
|
+
'path': !exists(json, 'path') ? undefined : json['path'],
|
|
28
|
+
'timestamp': !exists(json, 'timestamp') ? undefined : (new Date(json['timestamp'])),
|
|
29
|
+
'method': !exists(json, 'method') ? undefined : json['method'],
|
|
30
|
+
'requestId': !exists(json, 'requestId') ? undefined : json['requestId'],
|
|
31
|
+
};
|
|
32
|
+
return removeNullUndefined(typed);
|
|
33
|
+
}
|
|
34
|
+
export function ErrorEntityToJSON(value) {
|
|
35
|
+
if (value === undefined) {
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (value === null) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'statusCode': value.statusCode,
|
|
43
|
+
'message': value.message,
|
|
44
|
+
'path': value.path,
|
|
45
|
+
'timestamp': value.timestamp === undefined ? undefined : (value.timestamp.toISOString()),
|
|
46
|
+
'method': value.method,
|
|
47
|
+
'requestId': value.requestId,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { MerchantAccountEntityCfee } from './MerchantAccountEntityCfee';
|
|
8
|
+
import type { MerchantGatewayEntity } from './MerchantGatewayEntity';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface MerchantAccountEntity
|
|
13
|
+
*/
|
|
14
|
+
export interface MerchantAccountEntity {
|
|
15
|
+
/**
|
|
16
|
+
* The alphanumeric ID of the merchant account
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof MerchantAccountEntity
|
|
19
|
+
*/
|
|
20
|
+
merchantAccountId: string;
|
|
21
|
+
/**
|
|
22
|
+
* The associated merchant ID
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof MerchantAccountEntity
|
|
25
|
+
*/
|
|
26
|
+
merchantId?: string;
|
|
27
|
+
/**
|
|
28
|
+
* The issued MID (Merchant ID)
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof MerchantAccountEntity
|
|
31
|
+
*/
|
|
32
|
+
issuedMid: string;
|
|
33
|
+
/**
|
|
34
|
+
* The payment service provider
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof MerchantAccountEntity
|
|
37
|
+
*/
|
|
38
|
+
psp: MerchantAccountEntityPspEnum;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {MerchantAccountEntityCfee}
|
|
42
|
+
* @memberof MerchantAccountEntity
|
|
43
|
+
*/
|
|
44
|
+
cfee: MerchantAccountEntityCfee;
|
|
45
|
+
/**
|
|
46
|
+
* The accepted currencies
|
|
47
|
+
* @type {Array<string>}
|
|
48
|
+
* @memberof MerchantAccountEntity
|
|
49
|
+
*/
|
|
50
|
+
acceptedCurrencies: Array<MerchantAccountEntityAcceptedCurrenciesEnum>;
|
|
51
|
+
/**
|
|
52
|
+
* The date the merchant was created
|
|
53
|
+
* @type {Date}
|
|
54
|
+
* @memberof MerchantAccountEntity
|
|
55
|
+
*/
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
/**
|
|
58
|
+
* The date the merchant was last updated
|
|
59
|
+
* @type {Date}
|
|
60
|
+
* @memberof MerchantAccountEntity
|
|
61
|
+
*/
|
|
62
|
+
updatedAt: Date;
|
|
63
|
+
/**
|
|
64
|
+
* The payment method
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof MerchantAccountEntity
|
|
67
|
+
*/
|
|
68
|
+
paymentMethod: MerchantAccountEntityPaymentMethodEnum;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<MerchantGatewayEntity>}
|
|
72
|
+
* @memberof MerchantAccountEntity
|
|
73
|
+
*/
|
|
74
|
+
gateways?: Array<MerchantGatewayEntity>;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const MerchantAccountEntityPspEnum: {
|
|
80
|
+
readonly Tsys: "TSYS";
|
|
81
|
+
readonly Nashville: "NASHVILLE";
|
|
82
|
+
readonly ChannelPayments: "CHANNEL_PAYMENTS";
|
|
83
|
+
};
|
|
84
|
+
export type MerchantAccountEntityPspEnum = typeof MerchantAccountEntityPspEnum[keyof typeof MerchantAccountEntityPspEnum];
|
|
85
|
+
/**
|
|
86
|
+
* @export
|
|
87
|
+
*/
|
|
88
|
+
export declare const MerchantAccountEntityAcceptedCurrenciesEnum: {
|
|
89
|
+
readonly Usd: "USD";
|
|
90
|
+
readonly Aud: "AUD";
|
|
91
|
+
readonly Cad: "CAD";
|
|
92
|
+
};
|
|
93
|
+
export type MerchantAccountEntityAcceptedCurrenciesEnum = typeof MerchantAccountEntityAcceptedCurrenciesEnum[keyof typeof MerchantAccountEntityAcceptedCurrenciesEnum];
|
|
94
|
+
/**
|
|
95
|
+
* @export
|
|
96
|
+
*/
|
|
97
|
+
export declare const MerchantAccountEntityPaymentMethodEnum: {
|
|
98
|
+
readonly Card: "CARD";
|
|
99
|
+
readonly Ach: "ACH";
|
|
100
|
+
};
|
|
101
|
+
export type MerchantAccountEntityPaymentMethodEnum = typeof MerchantAccountEntityPaymentMethodEnum[keyof typeof MerchantAccountEntityPaymentMethodEnum];
|
|
102
|
+
/**
|
|
103
|
+
* Check if a given object implements the MerchantAccountEntity interface.
|
|
104
|
+
*/
|
|
105
|
+
export declare function instanceOfMerchantAccountEntity(value: object): boolean;
|
|
106
|
+
export declare function MerchantAccountEntityFromJSON(json: any): MerchantAccountEntity;
|
|
107
|
+
export declare function MerchantAccountEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): MerchantAccountEntity;
|
|
108
|
+
export declare function MerchantAccountEntityToJSON(value?: MerchantAccountEntity | null): any;
|