@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,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { PaymentMethodEntity } from './PaymentMethodEntity';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PaymentMethodsSearchEntity
|
|
12
|
+
*/
|
|
13
|
+
export interface PaymentMethodsSearchEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The previous cursor
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof PaymentMethodsSearchEntity
|
|
18
|
+
*/
|
|
19
|
+
prevCursor: string;
|
|
20
|
+
/**
|
|
21
|
+
* The list of queried buyers
|
|
22
|
+
* @type {Array<PaymentMethodEntity>}
|
|
23
|
+
* @memberof PaymentMethodsSearchEntity
|
|
24
|
+
*/
|
|
25
|
+
paymentMethods: Array<PaymentMethodEntity>;
|
|
26
|
+
/**
|
|
27
|
+
* The number of records returned
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof PaymentMethodsSearchEntity
|
|
30
|
+
*/
|
|
31
|
+
limit: number;
|
|
32
|
+
/**
|
|
33
|
+
* The next cursor
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PaymentMethodsSearchEntity
|
|
36
|
+
*/
|
|
37
|
+
nextCursor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The page number
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof PaymentMethodsSearchEntity
|
|
42
|
+
*/
|
|
43
|
+
page?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the PaymentMethodsSearchEntity interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfPaymentMethodsSearchEntity(value: object): boolean;
|
|
49
|
+
export declare function PaymentMethodsSearchEntityFromJSON(json: any): PaymentMethodsSearchEntity;
|
|
50
|
+
export declare function PaymentMethodsSearchEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodsSearchEntity;
|
|
51
|
+
export declare function PaymentMethodsSearchEntityToJSON(value?: PaymentMethodsSearchEntity | 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.PaymentMethodsSearchEntityToJSON = exports.PaymentMethodsSearchEntityFromJSONTyped = exports.PaymentMethodsSearchEntityFromJSON = exports.instanceOfPaymentMethodsSearchEntity = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const PaymentMethodEntity_1 = require("./PaymentMethodEntity");
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PaymentMethodsSearchEntity interface.
|
|
16
|
+
*/
|
|
17
|
+
function instanceOfPaymentMethodsSearchEntity(value) {
|
|
18
|
+
let isInstance = true;
|
|
19
|
+
isInstance = isInstance && "prevCursor" in value;
|
|
20
|
+
isInstance = isInstance && "paymentMethods" in value;
|
|
21
|
+
isInstance = isInstance && "limit" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfPaymentMethodsSearchEntity = instanceOfPaymentMethodsSearchEntity;
|
|
25
|
+
function PaymentMethodsSearchEntityFromJSON(json) {
|
|
26
|
+
return PaymentMethodsSearchEntityFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.PaymentMethodsSearchEntityFromJSON = PaymentMethodsSearchEntityFromJSON;
|
|
29
|
+
function PaymentMethodsSearchEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'prevCursor': json['prevCursor'],
|
|
35
|
+
'paymentMethods': (json['paymentMethods'].map(PaymentMethodEntity_1.PaymentMethodEntityFromJSON)),
|
|
36
|
+
'limit': json['limit'],
|
|
37
|
+
'nextCursor': !(0, runtime_1.exists)(json, 'nextCursor') ? undefined : json['nextCursor'],
|
|
38
|
+
'page': !(0, runtime_1.exists)(json, 'page') ? undefined : json['page'],
|
|
39
|
+
};
|
|
40
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
41
|
+
}
|
|
42
|
+
exports.PaymentMethodsSearchEntityFromJSONTyped = PaymentMethodsSearchEntityFromJSONTyped;
|
|
43
|
+
function PaymentMethodsSearchEntityToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'prevCursor': value.prevCursor,
|
|
52
|
+
'paymentMethods': (value.paymentMethods.map(PaymentMethodEntity_1.PaymentMethodEntityToJSON)),
|
|
53
|
+
'limit': value.limit,
|
|
54
|
+
'nextCursor': value.nextCursor,
|
|
55
|
+
'page': value.page,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.PaymentMethodsSearchEntityToJSON = PaymentMethodsSearchEntityToJSON;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { BuyerAddressEntity } from './BuyerAddressEntity';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface PaymentsBuyerEntity
|
|
12
|
+
*/
|
|
13
|
+
export interface PaymentsBuyerEntity {
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof PaymentsBuyerEntity
|
|
18
|
+
*/
|
|
19
|
+
buyerId: string;
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PaymentsBuyerEntity
|
|
24
|
+
*/
|
|
25
|
+
externalBuyerId?: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PaymentsBuyerEntity
|
|
30
|
+
*/
|
|
31
|
+
displayName?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PaymentsBuyerEntity
|
|
36
|
+
*/
|
|
37
|
+
givenName?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof PaymentsBuyerEntity
|
|
42
|
+
*/
|
|
43
|
+
familyName?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PaymentsBuyerEntity
|
|
48
|
+
*/
|
|
49
|
+
email?: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PaymentsBuyerEntity
|
|
54
|
+
*/
|
|
55
|
+
phoneNumber?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {BuyerAddressEntity}
|
|
59
|
+
* @memberof PaymentsBuyerEntity
|
|
60
|
+
*/
|
|
61
|
+
address?: BuyerAddressEntity;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the PaymentsBuyerEntity interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfPaymentsBuyerEntity(value: object): boolean;
|
|
67
|
+
export declare function PaymentsBuyerEntityFromJSON(json: any): PaymentsBuyerEntity;
|
|
68
|
+
export declare function PaymentsBuyerEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentsBuyerEntity;
|
|
69
|
+
export declare function PaymentsBuyerEntityToJSON(value?: PaymentsBuyerEntity | null): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
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.PaymentsBuyerEntityToJSON = exports.PaymentsBuyerEntityFromJSONTyped = exports.PaymentsBuyerEntityFromJSON = exports.instanceOfPaymentsBuyerEntity = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const BuyerAddressEntity_1 = require("./BuyerAddressEntity");
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the PaymentsBuyerEntity interface.
|
|
16
|
+
*/
|
|
17
|
+
function instanceOfPaymentsBuyerEntity(value) {
|
|
18
|
+
let isInstance = true;
|
|
19
|
+
isInstance = isInstance && "buyerId" in value;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
exports.instanceOfPaymentsBuyerEntity = instanceOfPaymentsBuyerEntity;
|
|
23
|
+
function PaymentsBuyerEntityFromJSON(json) {
|
|
24
|
+
return PaymentsBuyerEntityFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
exports.PaymentsBuyerEntityFromJSON = PaymentsBuyerEntityFromJSON;
|
|
27
|
+
function PaymentsBuyerEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'buyerId': json['buyerId'],
|
|
33
|
+
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
34
|
+
'displayName': !(0, runtime_1.exists)(json, 'displayName') ? undefined : json['displayName'],
|
|
35
|
+
'givenName': !(0, runtime_1.exists)(json, 'givenName') ? undefined : json['givenName'],
|
|
36
|
+
'familyName': !(0, runtime_1.exists)(json, 'familyName') ? undefined : json['familyName'],
|
|
37
|
+
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
38
|
+
'phoneNumber': !(0, runtime_1.exists)(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
39
|
+
'address': !(0, runtime_1.exists)(json, 'address') ? undefined : (0, BuyerAddressEntity_1.BuyerAddressEntityFromJSON)(json['address']),
|
|
40
|
+
};
|
|
41
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
42
|
+
}
|
|
43
|
+
exports.PaymentsBuyerEntityFromJSONTyped = PaymentsBuyerEntityFromJSONTyped;
|
|
44
|
+
function PaymentsBuyerEntityToJSON(value) {
|
|
45
|
+
if (value === undefined) {
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
if (value === null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'buyerId': value.buyerId,
|
|
53
|
+
'externalBuyerId': value.externalBuyerId,
|
|
54
|
+
'displayName': value.displayName,
|
|
55
|
+
'givenName': value.givenName,
|
|
56
|
+
'familyName': value.familyName,
|
|
57
|
+
'email': value.email,
|
|
58
|
+
'phoneNumber': value.phoneNumber,
|
|
59
|
+
'address': (0, BuyerAddressEntity_1.BuyerAddressEntityToJSON)(value.address),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.PaymentsBuyerEntityToJSON = PaymentsBuyerEntityToJSON;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 RefundTransactionDto
|
|
11
|
+
*/
|
|
12
|
+
export interface RefundTransactionDto {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {number}
|
|
16
|
+
* @memberof RefundTransactionDto
|
|
17
|
+
*/
|
|
18
|
+
refundAmount: number;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof RefundTransactionDto
|
|
23
|
+
*/
|
|
24
|
+
transactionId: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the RefundTransactionDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfRefundTransactionDto(value: object): boolean;
|
|
30
|
+
export declare function RefundTransactionDtoFromJSON(json: any): RefundTransactionDto;
|
|
31
|
+
export declare function RefundTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefundTransactionDto;
|
|
32
|
+
export declare function RefundTransactionDtoToJSON(value?: RefundTransactionDto | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.RefundTransactionDtoToJSON = exports.RefundTransactionDtoFromJSONTyped = exports.RefundTransactionDtoFromJSON = exports.instanceOfRefundTransactionDto = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* Check if a given object implements the RefundTransactionDto interface.
|
|
15
|
+
*/
|
|
16
|
+
function instanceOfRefundTransactionDto(value) {
|
|
17
|
+
let isInstance = true;
|
|
18
|
+
isInstance = isInstance && "refundAmount" in value;
|
|
19
|
+
isInstance = isInstance && "transactionId" in value;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
exports.instanceOfRefundTransactionDto = instanceOfRefundTransactionDto;
|
|
23
|
+
function RefundTransactionDtoFromJSON(json) {
|
|
24
|
+
return RefundTransactionDtoFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
exports.RefundTransactionDtoFromJSON = RefundTransactionDtoFromJSON;
|
|
27
|
+
function RefundTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'refundAmount': json['refundAmount'],
|
|
33
|
+
'transactionId': json['transactionId'],
|
|
34
|
+
};
|
|
35
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
36
|
+
}
|
|
37
|
+
exports.RefundTransactionDtoFromJSONTyped = RefundTransactionDtoFromJSONTyped;
|
|
38
|
+
function RefundTransactionDtoToJSON(value) {
|
|
39
|
+
if (value === undefined) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
if (value === null) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'refundAmount': value.refundAmount,
|
|
47
|
+
'transactionId': value.transactionId,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.RefundTransactionDtoToJSON = RefundTransactionDtoToJSON;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { PaymentMethodEntity1 } from './PaymentMethodEntity1';
|
|
8
|
+
import type { PaymentsBuyerEntity } from './PaymentsBuyerEntity';
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @interface TransactionEntity
|
|
13
|
+
*/
|
|
14
|
+
export interface TransactionEntity {
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @type {string}
|
|
18
|
+
* @memberof TransactionEntity
|
|
19
|
+
*/
|
|
20
|
+
transactionId: string;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof TransactionEntity
|
|
25
|
+
*/
|
|
26
|
+
merchantId: string;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof TransactionEntity
|
|
31
|
+
*/
|
|
32
|
+
status: TransactionEntityStatusEnum;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {string}
|
|
36
|
+
* @memberof TransactionEntity
|
|
37
|
+
*/
|
|
38
|
+
intent: TransactionEntityIntentEnum;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof TransactionEntity
|
|
43
|
+
*/
|
|
44
|
+
amount: number;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {number}
|
|
48
|
+
* @memberof TransactionEntity
|
|
49
|
+
*/
|
|
50
|
+
capturedAmount?: number;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof TransactionEntity
|
|
55
|
+
*/
|
|
56
|
+
refundedAmount?: number;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof TransactionEntity
|
|
61
|
+
*/
|
|
62
|
+
currency?: TransactionEntityCurrencyEnum;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof TransactionEntity
|
|
67
|
+
*/
|
|
68
|
+
country?: string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {PaymentMethodEntity1}
|
|
72
|
+
* @memberof TransactionEntity
|
|
73
|
+
*/
|
|
74
|
+
paymentMethod?: PaymentMethodEntity1;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {PaymentsBuyerEntity}
|
|
78
|
+
* @memberof TransactionEntity
|
|
79
|
+
*/
|
|
80
|
+
buyer?: PaymentsBuyerEntity;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {Date}
|
|
84
|
+
* @memberof TransactionEntity
|
|
85
|
+
*/
|
|
86
|
+
createdAt?: Date;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {Date}
|
|
90
|
+
* @memberof TransactionEntity
|
|
91
|
+
*/
|
|
92
|
+
updatedAt?: Date;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {boolean}
|
|
96
|
+
* @memberof TransactionEntity
|
|
97
|
+
*/
|
|
98
|
+
merchantInitiated?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {string}
|
|
102
|
+
* @memberof TransactionEntity
|
|
103
|
+
*/
|
|
104
|
+
schemeTransactionId?: string;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof TransactionEntity
|
|
109
|
+
*/
|
|
110
|
+
rawResponseCode?: string;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof TransactionEntity
|
|
115
|
+
*/
|
|
116
|
+
rawResponseDescription?: string;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof TransactionEntity
|
|
121
|
+
*/
|
|
122
|
+
avsResponseCode?: string;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {string}
|
|
126
|
+
* @memberof TransactionEntity
|
|
127
|
+
*/
|
|
128
|
+
cvvResponseCode?: string;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {Date}
|
|
132
|
+
* @memberof TransactionEntity
|
|
133
|
+
*/
|
|
134
|
+
capturedAt?: Date;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {Date}
|
|
138
|
+
* @memberof TransactionEntity
|
|
139
|
+
*/
|
|
140
|
+
authorizedAt?: Date;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {Date}
|
|
144
|
+
* @memberof TransactionEntity
|
|
145
|
+
*/
|
|
146
|
+
voidedAt?: Date;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {string}
|
|
150
|
+
* @memberof TransactionEntity
|
|
151
|
+
*/
|
|
152
|
+
externalTransactionId?: string;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {string}
|
|
156
|
+
* @memberof TransactionEntity
|
|
157
|
+
*/
|
|
158
|
+
buyerId?: string;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* @export
|
|
162
|
+
*/
|
|
163
|
+
export declare const TransactionEntityStatusEnum: {
|
|
164
|
+
readonly Processing: "processing";
|
|
165
|
+
readonly BuyerApprovalPending: "buyerApprovalPending";
|
|
166
|
+
readonly Authorized: "authorized";
|
|
167
|
+
readonly AuthorizationFailed: "authorizationFailed";
|
|
168
|
+
readonly Declined: "declined";
|
|
169
|
+
readonly CapturePending: "capturePending";
|
|
170
|
+
readonly Captured: "captured";
|
|
171
|
+
readonly VoidPending: "voidPending";
|
|
172
|
+
readonly Voided: "voided";
|
|
173
|
+
};
|
|
174
|
+
export type TransactionEntityStatusEnum = typeof TransactionEntityStatusEnum[keyof typeof TransactionEntityStatusEnum];
|
|
175
|
+
/**
|
|
176
|
+
* @export
|
|
177
|
+
*/
|
|
178
|
+
export declare const TransactionEntityIntentEnum: {
|
|
179
|
+
readonly Capture: "capture";
|
|
180
|
+
readonly Authorize: "authorize";
|
|
181
|
+
};
|
|
182
|
+
export type TransactionEntityIntentEnum = typeof TransactionEntityIntentEnum[keyof typeof TransactionEntityIntentEnum];
|
|
183
|
+
/**
|
|
184
|
+
* @export
|
|
185
|
+
*/
|
|
186
|
+
export declare const TransactionEntityCurrencyEnum: {
|
|
187
|
+
readonly Usd: "USD";
|
|
188
|
+
readonly Cad: "CAD";
|
|
189
|
+
readonly Aud: "AUD";
|
|
190
|
+
};
|
|
191
|
+
export type TransactionEntityCurrencyEnum = typeof TransactionEntityCurrencyEnum[keyof typeof TransactionEntityCurrencyEnum];
|
|
192
|
+
/**
|
|
193
|
+
* Check if a given object implements the TransactionEntity interface.
|
|
194
|
+
*/
|
|
195
|
+
export declare function instanceOfTransactionEntity(value: object): boolean;
|
|
196
|
+
export declare function TransactionEntityFromJSON(json: any): TransactionEntity;
|
|
197
|
+
export declare function TransactionEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionEntity;
|
|
198
|
+
export declare function TransactionEntityToJSON(value?: TransactionEntity | null): any;
|
|
@@ -0,0 +1,128 @@
|
|
|
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.TransactionEntityToJSON = exports.TransactionEntityFromJSONTyped = exports.TransactionEntityFromJSON = exports.instanceOfTransactionEntity = exports.TransactionEntityCurrencyEnum = exports.TransactionEntityIntentEnum = exports.TransactionEntityStatusEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const PaymentMethodEntity1_1 = require("./PaymentMethodEntity1");
|
|
14
|
+
const PaymentsBuyerEntity_1 = require("./PaymentsBuyerEntity");
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
exports.TransactionEntityStatusEnum = {
|
|
19
|
+
Processing: 'processing',
|
|
20
|
+
BuyerApprovalPending: 'buyerApprovalPending',
|
|
21
|
+
Authorized: 'authorized',
|
|
22
|
+
AuthorizationFailed: 'authorizationFailed',
|
|
23
|
+
Declined: 'declined',
|
|
24
|
+
CapturePending: 'capturePending',
|
|
25
|
+
Captured: 'captured',
|
|
26
|
+
VoidPending: 'voidPending',
|
|
27
|
+
Voided: 'voided'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.TransactionEntityIntentEnum = {
|
|
33
|
+
Capture: 'capture',
|
|
34
|
+
Authorize: 'authorize'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
exports.TransactionEntityCurrencyEnum = {
|
|
40
|
+
Usd: 'USD',
|
|
41
|
+
Cad: 'CAD',
|
|
42
|
+
Aud: 'AUD'
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the TransactionEntity interface.
|
|
46
|
+
*/
|
|
47
|
+
function instanceOfTransactionEntity(value) {
|
|
48
|
+
let isInstance = true;
|
|
49
|
+
isInstance = isInstance && "transactionId" in value;
|
|
50
|
+
isInstance = isInstance && "merchantId" in value;
|
|
51
|
+
isInstance = isInstance && "status" in value;
|
|
52
|
+
isInstance = isInstance && "intent" in value;
|
|
53
|
+
isInstance = isInstance && "amount" in value;
|
|
54
|
+
return isInstance;
|
|
55
|
+
}
|
|
56
|
+
exports.instanceOfTransactionEntity = instanceOfTransactionEntity;
|
|
57
|
+
function TransactionEntityFromJSON(json) {
|
|
58
|
+
return TransactionEntityFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
exports.TransactionEntityFromJSON = TransactionEntityFromJSON;
|
|
61
|
+
function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
+
if ((json === undefined) || (json === null)) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
const typed = {
|
|
66
|
+
'transactionId': json['transactionId'],
|
|
67
|
+
'merchantId': json['merchantId'],
|
|
68
|
+
'status': json['status'],
|
|
69
|
+
'intent': json['intent'],
|
|
70
|
+
'amount': json['amount'],
|
|
71
|
+
'capturedAmount': !(0, runtime_1.exists)(json, 'capturedAmount') ? undefined : json['capturedAmount'],
|
|
72
|
+
'refundedAmount': !(0, runtime_1.exists)(json, 'refundedAmount') ? undefined : json['refundedAmount'],
|
|
73
|
+
'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
|
|
74
|
+
'country': !(0, runtime_1.exists)(json, 'country') ? undefined : json['country'],
|
|
75
|
+
'paymentMethod': !(0, runtime_1.exists)(json, 'paymentMethod') ? undefined : (0, PaymentMethodEntity1_1.PaymentMethodEntity1FromJSON)(json['paymentMethod']),
|
|
76
|
+
'buyer': !(0, runtime_1.exists)(json, 'buyer') ? undefined : (0, PaymentsBuyerEntity_1.PaymentsBuyerEntityFromJSON)(json['buyer']),
|
|
77
|
+
'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
78
|
+
'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
79
|
+
'merchantInitiated': !(0, runtime_1.exists)(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
|
|
80
|
+
'schemeTransactionId': !(0, runtime_1.exists)(json, 'schemeTransactionId') ? undefined : json['schemeTransactionId'],
|
|
81
|
+
'rawResponseCode': !(0, runtime_1.exists)(json, 'rawResponseCode') ? undefined : json['rawResponseCode'],
|
|
82
|
+
'rawResponseDescription': !(0, runtime_1.exists)(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
|
|
83
|
+
'avsResponseCode': !(0, runtime_1.exists)(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
|
|
84
|
+
'cvvResponseCode': !(0, runtime_1.exists)(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
|
|
85
|
+
'capturedAt': !(0, runtime_1.exists)(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
|
|
86
|
+
'authorizedAt': !(0, runtime_1.exists)(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
|
|
87
|
+
'voidedAt': !(0, runtime_1.exists)(json, 'voidedAt') ? undefined : (new Date(json['voidedAt'])),
|
|
88
|
+
'externalTransactionId': !(0, runtime_1.exists)(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
89
|
+
'buyerId': !(0, runtime_1.exists)(json, 'buyerId') ? undefined : json['buyerId'],
|
|
90
|
+
};
|
|
91
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
92
|
+
}
|
|
93
|
+
exports.TransactionEntityFromJSONTyped = TransactionEntityFromJSONTyped;
|
|
94
|
+
function TransactionEntityToJSON(value) {
|
|
95
|
+
if (value === undefined) {
|
|
96
|
+
return undefined;
|
|
97
|
+
}
|
|
98
|
+
if (value === null) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
return {
|
|
102
|
+
'transactionId': value.transactionId,
|
|
103
|
+
'merchantId': value.merchantId,
|
|
104
|
+
'status': value.status,
|
|
105
|
+
'intent': value.intent,
|
|
106
|
+
'amount': value.amount,
|
|
107
|
+
'capturedAmount': value.capturedAmount,
|
|
108
|
+
'refundedAmount': value.refundedAmount,
|
|
109
|
+
'currency': value.currency,
|
|
110
|
+
'country': value.country,
|
|
111
|
+
'paymentMethod': (0, PaymentMethodEntity1_1.PaymentMethodEntity1ToJSON)(value.paymentMethod),
|
|
112
|
+
'buyer': (0, PaymentsBuyerEntity_1.PaymentsBuyerEntityToJSON)(value.buyer),
|
|
113
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
114
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
115
|
+
'merchantInitiated': value.merchantInitiated,
|
|
116
|
+
'schemeTransactionId': value.schemeTransactionId,
|
|
117
|
+
'rawResponseCode': value.rawResponseCode,
|
|
118
|
+
'rawResponseDescription': value.rawResponseDescription,
|
|
119
|
+
'avsResponseCode': value.avsResponseCode,
|
|
120
|
+
'cvvResponseCode': value.cvvResponseCode,
|
|
121
|
+
'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
|
|
122
|
+
'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
|
|
123
|
+
'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
|
|
124
|
+
'externalTransactionId': value.externalTransactionId,
|
|
125
|
+
'buyerId': value.buyerId,
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
exports.TransactionEntityToJSON = TransactionEntityToJSON;
|