@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,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 CreateMerchantDtoAddress
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateMerchantDtoAddress {
|
|
13
|
+
/**
|
|
14
|
+
* The country of the merchant address
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CreateMerchantDtoAddress
|
|
17
|
+
*/
|
|
18
|
+
country: string;
|
|
19
|
+
/**
|
|
20
|
+
* The subdivision (state, province, or region) of the merchant address
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateMerchantDtoAddress
|
|
23
|
+
*/
|
|
24
|
+
subdivision: string;
|
|
25
|
+
/**
|
|
26
|
+
* The city of the merchant address
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreateMerchantDtoAddress
|
|
29
|
+
*/
|
|
30
|
+
city: string;
|
|
31
|
+
/**
|
|
32
|
+
* The street address of the merchant
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreateMerchantDtoAddress
|
|
35
|
+
*/
|
|
36
|
+
streetAddress: string;
|
|
37
|
+
/**
|
|
38
|
+
* The postal code of the merchant address
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateMerchantDtoAddress
|
|
41
|
+
*/
|
|
42
|
+
postalCode: string;
|
|
43
|
+
/**
|
|
44
|
+
* The country code of the merchant address
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateMerchantDtoAddress
|
|
47
|
+
*/
|
|
48
|
+
countryCode?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The second line of the street address of the merchant
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof CreateMerchantDtoAddress
|
|
53
|
+
*/
|
|
54
|
+
streetAddress2?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The subdivision code of the merchant address
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof CreateMerchantDtoAddress
|
|
59
|
+
*/
|
|
60
|
+
subdivisionCode?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the CreateMerchantDtoAddress interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfCreateMerchantDtoAddress(value: object): boolean;
|
|
66
|
+
export declare function CreateMerchantDtoAddressFromJSON(json: any): CreateMerchantDtoAddress;
|
|
67
|
+
export declare function CreateMerchantDtoAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantDtoAddress;
|
|
68
|
+
export declare function CreateMerchantDtoAddressToJSON(value?: CreateMerchantDtoAddress | null): any;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.CreateMerchantDtoAddressToJSON = exports.CreateMerchantDtoAddressFromJSONTyped = exports.CreateMerchantDtoAddressFromJSON = exports.instanceOfCreateMerchantDtoAddress = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* Check if a given object implements the CreateMerchantDtoAddress interface.
|
|
15
|
+
*/
|
|
16
|
+
function instanceOfCreateMerchantDtoAddress(value) {
|
|
17
|
+
let isInstance = true;
|
|
18
|
+
isInstance = isInstance && "country" in value;
|
|
19
|
+
isInstance = isInstance && "subdivision" in value;
|
|
20
|
+
isInstance = isInstance && "city" in value;
|
|
21
|
+
isInstance = isInstance && "streetAddress" in value;
|
|
22
|
+
isInstance = isInstance && "postalCode" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCreateMerchantDtoAddress = instanceOfCreateMerchantDtoAddress;
|
|
26
|
+
function CreateMerchantDtoAddressFromJSON(json) {
|
|
27
|
+
return CreateMerchantDtoAddressFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CreateMerchantDtoAddressFromJSON = CreateMerchantDtoAddressFromJSON;
|
|
30
|
+
function CreateMerchantDtoAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
const typed = {
|
|
35
|
+
'country': json['country'],
|
|
36
|
+
'subdivision': json['subdivision'],
|
|
37
|
+
'city': json['city'],
|
|
38
|
+
'streetAddress': json['streetAddress'],
|
|
39
|
+
'postalCode': json['postalCode'],
|
|
40
|
+
'countryCode': !(0, runtime_1.exists)(json, 'countryCode') ? undefined : json['countryCode'],
|
|
41
|
+
'streetAddress2': !(0, runtime_1.exists)(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
42
|
+
'subdivisionCode': !(0, runtime_1.exists)(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
|
|
43
|
+
};
|
|
44
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
45
|
+
}
|
|
46
|
+
exports.CreateMerchantDtoAddressFromJSONTyped = CreateMerchantDtoAddressFromJSONTyped;
|
|
47
|
+
function CreateMerchantDtoAddressToJSON(value) {
|
|
48
|
+
if (value === undefined) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
if (value === null) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'country': value.country,
|
|
56
|
+
'subdivision': value.subdivision,
|
|
57
|
+
'city': value.city,
|
|
58
|
+
'streetAddress': value.streetAddress,
|
|
59
|
+
'postalCode': value.postalCode,
|
|
60
|
+
'countryCode': value.countryCode,
|
|
61
|
+
'streetAddress2': value.streetAddress2,
|
|
62
|
+
'subdivisionCode': value.subdivisionCode,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.CreateMerchantDtoAddressToJSON = CreateMerchantDtoAddressToJSON;
|
|
@@ -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
|
+
*
|
|
9
|
+
* @export
|
|
10
|
+
* @interface CreateMerchantGateway
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateMerchantGateway {
|
|
13
|
+
/**
|
|
14
|
+
* The name of the gateway
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CreateMerchantGateway
|
|
17
|
+
*/
|
|
18
|
+
name: CreateMerchantGatewayNameEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The ID issued by the gateway
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreateMerchantGateway
|
|
23
|
+
*/
|
|
24
|
+
issuedGatewayId: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export declare const CreateMerchantGatewayNameEnum: {
|
|
30
|
+
readonly Epay: "EPAY";
|
|
31
|
+
readonly Nmi: "NMI";
|
|
32
|
+
readonly AuthorizeNet: "AUTHORIZE_NET";
|
|
33
|
+
};
|
|
34
|
+
export type CreateMerchantGatewayNameEnum = typeof CreateMerchantGatewayNameEnum[keyof typeof CreateMerchantGatewayNameEnum];
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the CreateMerchantGateway interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfCreateMerchantGateway(value: object): boolean;
|
|
39
|
+
export declare function CreateMerchantGatewayFromJSON(json: any): CreateMerchantGateway;
|
|
40
|
+
export declare function CreateMerchantGatewayFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateMerchantGateway;
|
|
41
|
+
export declare function CreateMerchantGatewayToJSON(value?: CreateMerchantGateway | null): any;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.CreateMerchantGatewayToJSON = exports.CreateMerchantGatewayFromJSONTyped = exports.CreateMerchantGatewayFromJSON = exports.instanceOfCreateMerchantGateway = exports.CreateMerchantGatewayNameEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
exports.CreateMerchantGatewayNameEnum = {
|
|
17
|
+
Epay: 'EPAY',
|
|
18
|
+
Nmi: 'NMI',
|
|
19
|
+
AuthorizeNet: 'AUTHORIZE_NET'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreateMerchantGateway interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreateMerchantGateway(value) {
|
|
25
|
+
let isInstance = true;
|
|
26
|
+
isInstance = isInstance && "name" in value;
|
|
27
|
+
isInstance = isInstance && "issuedGatewayId" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
exports.instanceOfCreateMerchantGateway = instanceOfCreateMerchantGateway;
|
|
31
|
+
function CreateMerchantGatewayFromJSON(json) {
|
|
32
|
+
return CreateMerchantGatewayFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
exports.CreateMerchantGatewayFromJSON = CreateMerchantGatewayFromJSON;
|
|
35
|
+
function CreateMerchantGatewayFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if ((json === undefined) || (json === null)) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
const typed = {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'issuedGatewayId': json['issuedGatewayId'],
|
|
42
|
+
};
|
|
43
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
44
|
+
}
|
|
45
|
+
exports.CreateMerchantGatewayFromJSONTyped = CreateMerchantGatewayFromJSONTyped;
|
|
46
|
+
function CreateMerchantGatewayToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value.name,
|
|
55
|
+
'issuedGatewayId': value.issuedGatewayId,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.CreateMerchantGatewayToJSON = CreateMerchantGatewayToJSON;
|
|
@@ -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,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.CreatePaymentMethodDtoToJSON = exports.CreatePaymentMethodDtoFromJSONTyped = exports.CreatePaymentMethodDtoFromJSON = exports.instanceOfCreatePaymentMethodDto = exports.CreatePaymentMethodDtoMethodEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
exports.CreatePaymentMethodDtoMethodEnum = {
|
|
17
|
+
Card: 'CARD'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the CreatePaymentMethodDto interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfCreatePaymentMethodDto(value) {
|
|
23
|
+
let isInstance = true;
|
|
24
|
+
isInstance = isInstance && "method" in value;
|
|
25
|
+
isInstance = isInstance && "number" in value;
|
|
26
|
+
isInstance = isInstance && "expirationDate" in value;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfCreatePaymentMethodDto = instanceOfCreatePaymentMethodDto;
|
|
30
|
+
function CreatePaymentMethodDtoFromJSON(json) {
|
|
31
|
+
return CreatePaymentMethodDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.CreatePaymentMethodDtoFromJSON = CreatePaymentMethodDtoFromJSON;
|
|
34
|
+
function CreatePaymentMethodDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
const typed = {
|
|
39
|
+
'method': json['method'],
|
|
40
|
+
'number': json['number'],
|
|
41
|
+
'expirationDate': json['expirationDate'],
|
|
42
|
+
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
43
|
+
'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
|
|
44
|
+
'externalPaymentMethodId': !(0, runtime_1.exists)(json, 'externalPaymentMethodId') ? undefined : json['externalPaymentMethodId'],
|
|
45
|
+
};
|
|
46
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
47
|
+
}
|
|
48
|
+
exports.CreatePaymentMethodDtoFromJSONTyped = CreatePaymentMethodDtoFromJSONTyped;
|
|
49
|
+
function CreatePaymentMethodDtoToJSON(value) {
|
|
50
|
+
if (value === undefined) {
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
if (value === null) {
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'method': value.method,
|
|
58
|
+
'number': value.number,
|
|
59
|
+
'expirationDate': value.expirationDate,
|
|
60
|
+
'externalBuyerId': value.externalBuyerId,
|
|
61
|
+
'buyerId': value.buyerId,
|
|
62
|
+
'externalPaymentMethodId': value.externalPaymentMethodId,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.CreatePaymentMethodDtoToJSON = CreatePaymentMethodDtoToJSON;
|
|
@@ -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,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.CreateTransactionDtoToJSON = exports.CreateTransactionDtoFromJSONTyped = exports.CreateTransactionDtoFromJSON = exports.instanceOfCreateTransactionDto = exports.CreateTransactionDtoIntentEnum = exports.CreateTransactionDtoCurrencyEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const CreateTransactionDtoPaymentMethod_1 = require("./CreateTransactionDtoPaymentMethod");
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
exports.CreateTransactionDtoCurrencyEnum = {
|
|
18
|
+
Usd: 'USD',
|
|
19
|
+
Cad: 'CAD',
|
|
20
|
+
Aud: 'AUD'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CreateTransactionDtoIntentEnum = {
|
|
26
|
+
Capture: 'capture',
|
|
27
|
+
Authorize: 'authorize'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the CreateTransactionDto interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfCreateTransactionDto(value) {
|
|
33
|
+
let isInstance = true;
|
|
34
|
+
isInstance = isInstance && "amount" in value;
|
|
35
|
+
isInstance = isInstance && "currency" in value;
|
|
36
|
+
isInstance = isInstance && "paymentMethod" in value;
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
exports.instanceOfCreateTransactionDto = instanceOfCreateTransactionDto;
|
|
40
|
+
function CreateTransactionDtoFromJSON(json) {
|
|
41
|
+
return CreateTransactionDtoFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
exports.CreateTransactionDtoFromJSON = CreateTransactionDtoFromJSON;
|
|
44
|
+
function CreateTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
const typed = {
|
|
49
|
+
'amount': json['amount'],
|
|
50
|
+
'currency': json['currency'],
|
|
51
|
+
'paymentMethod': (0, CreateTransactionDtoPaymentMethod_1.CreateTransactionDtoPaymentMethodFromJSON)(json['paymentMethod']),
|
|
52
|
+
'intent': !(0, runtime_1.exists)(json, 'intent') ? undefined : json['intent'],
|
|
53
|
+
'excludeCfee': !(0, runtime_1.exists)(json, 'excludeCfee') ? undefined : json['excludeCfee'],
|
|
54
|
+
'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
|
|
55
|
+
'externalTransactionId': !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
56
|
+
};
|
|
57
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
58
|
+
}
|
|
59
|
+
exports.CreateTransactionDtoFromJSONTyped = CreateTransactionDtoFromJSONTyped;
|
|
60
|
+
function CreateTransactionDtoToJSON(value) {
|
|
61
|
+
if (value === undefined) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
if (value === null) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'amount': value.amount,
|
|
69
|
+
'currency': value.currency,
|
|
70
|
+
'paymentMethod': (0, CreateTransactionDtoPaymentMethod_1.CreateTransactionDtoPaymentMethodToJSON)(value.paymentMethod),
|
|
71
|
+
'intent': value.intent,
|
|
72
|
+
'excludeCfee': value.excludeCfee,
|
|
73
|
+
'country': value.country,
|
|
74
|
+
'externalTransactionId': value.externalTransactionId,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
exports.CreateTransactionDtoToJSON = CreateTransactionDtoToJSON;
|
|
@@ -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,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Channel Payments API
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.CreateTransactionDtoPaymentMethodToJSON = exports.CreateTransactionDtoPaymentMethodFromJSONTyped = exports.CreateTransactionDtoPaymentMethodFromJSON = exports.instanceOfCreateTransactionDtoPaymentMethod = exports.CreateTransactionDtoPaymentMethodMethodEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
exports.CreateTransactionDtoPaymentMethodMethodEnum = {
|
|
17
|
+
Card: 'CARD',
|
|
18
|
+
Id: 'ID'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CreateTransactionDtoPaymentMethod interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfCreateTransactionDtoPaymentMethod(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
isInstance = isInstance && "method" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfCreateTransactionDtoPaymentMethod = instanceOfCreateTransactionDtoPaymentMethod;
|
|
29
|
+
function CreateTransactionDtoPaymentMethodFromJSON(json) {
|
|
30
|
+
return CreateTransactionDtoPaymentMethodFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.CreateTransactionDtoPaymentMethodFromJSON = CreateTransactionDtoPaymentMethodFromJSON;
|
|
33
|
+
function CreateTransactionDtoPaymentMethodFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
const typed = {
|
|
38
|
+
'method': json['method'],
|
|
39
|
+
'number': !(0, runtime_1.exists)(json, 'number') ? undefined : json['number'],
|
|
40
|
+
'securityCode': !(0, runtime_1.exists)(json, 'securityCode') ? undefined : json['securityCode'],
|
|
41
|
+
'expirationDate': !(0, runtime_1.exists)(json, 'expirationDate') ? undefined : json['expirationDate'],
|
|
42
|
+
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
43
|
+
'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
|
|
44
|
+
'paymentMethodId': !(0, runtime_1.exists)(json, 'paymentMethodId') ? undefined : json['paymentMethodId'],
|
|
45
|
+
'store': !(0, runtime_1.exists)(json, 'store') ? undefined : json['store'],
|
|
46
|
+
};
|
|
47
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
48
|
+
}
|
|
49
|
+
exports.CreateTransactionDtoPaymentMethodFromJSONTyped = CreateTransactionDtoPaymentMethodFromJSONTyped;
|
|
50
|
+
function CreateTransactionDtoPaymentMethodToJSON(value) {
|
|
51
|
+
if (value === undefined) {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
if (value === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'method': value.method,
|
|
59
|
+
'number': value.number,
|
|
60
|
+
'securityCode': value.securityCode,
|
|
61
|
+
'expirationDate': value.expirationDate,
|
|
62
|
+
'externalBuyerId': value.externalBuyerId,
|
|
63
|
+
'buyerId': value.buyerId,
|
|
64
|
+
'paymentMethodId': value.paymentMethodId,
|
|
65
|
+
'store': value.store,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.CreateTransactionDtoPaymentMethodToJSON = CreateTransactionDtoPaymentMethodToJSON;
|