@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,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,121 @@
|
|
|
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 { PaymentMethodEntity1FromJSON, PaymentMethodEntity1ToJSON, } from './PaymentMethodEntity1';
|
|
11
|
+
import { PaymentsBuyerEntityFromJSON, PaymentsBuyerEntityToJSON, } from './PaymentsBuyerEntity';
|
|
12
|
+
/**
|
|
13
|
+
* @export
|
|
14
|
+
*/
|
|
15
|
+
export const TransactionEntityStatusEnum = {
|
|
16
|
+
Processing: 'processing',
|
|
17
|
+
BuyerApprovalPending: 'buyerApprovalPending',
|
|
18
|
+
Authorized: 'authorized',
|
|
19
|
+
AuthorizationFailed: 'authorizationFailed',
|
|
20
|
+
Declined: 'declined',
|
|
21
|
+
CapturePending: 'capturePending',
|
|
22
|
+
Captured: 'captured',
|
|
23
|
+
VoidPending: 'voidPending',
|
|
24
|
+
Voided: 'voided'
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export const TransactionEntityIntentEnum = {
|
|
30
|
+
Capture: 'capture',
|
|
31
|
+
Authorize: 'authorize'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
export const TransactionEntityCurrencyEnum = {
|
|
37
|
+
Usd: 'USD',
|
|
38
|
+
Cad: 'CAD',
|
|
39
|
+
Aud: 'AUD'
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Check if a given object implements the TransactionEntity interface.
|
|
43
|
+
*/
|
|
44
|
+
export function instanceOfTransactionEntity(value) {
|
|
45
|
+
let isInstance = true;
|
|
46
|
+
isInstance = isInstance && "transactionId" in value;
|
|
47
|
+
isInstance = isInstance && "merchantId" in value;
|
|
48
|
+
isInstance = isInstance && "status" in value;
|
|
49
|
+
isInstance = isInstance && "intent" in value;
|
|
50
|
+
isInstance = isInstance && "amount" in value;
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
export function TransactionEntityFromJSON(json) {
|
|
54
|
+
return TransactionEntityFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
export function TransactionEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
57
|
+
if ((json === undefined) || (json === null)) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
const typed = {
|
|
61
|
+
'transactionId': json['transactionId'],
|
|
62
|
+
'merchantId': json['merchantId'],
|
|
63
|
+
'status': json['status'],
|
|
64
|
+
'intent': json['intent'],
|
|
65
|
+
'amount': json['amount'],
|
|
66
|
+
'capturedAmount': !exists(json, 'capturedAmount') ? undefined : json['capturedAmount'],
|
|
67
|
+
'refundedAmount': !exists(json, 'refundedAmount') ? undefined : json['refundedAmount'],
|
|
68
|
+
'currency': !exists(json, 'currency') ? undefined : json['currency'],
|
|
69
|
+
'country': !exists(json, 'country') ? undefined : json['country'],
|
|
70
|
+
'paymentMethod': !exists(json, 'paymentMethod') ? undefined : PaymentMethodEntity1FromJSON(json['paymentMethod']),
|
|
71
|
+
'buyer': !exists(json, 'buyer') ? undefined : PaymentsBuyerEntityFromJSON(json['buyer']),
|
|
72
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
73
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
74
|
+
'merchantInitiated': !exists(json, 'merchantInitiated') ? undefined : json['merchantInitiated'],
|
|
75
|
+
'schemeTransactionId': !exists(json, 'schemeTransactionId') ? undefined : json['schemeTransactionId'],
|
|
76
|
+
'rawResponseCode': !exists(json, 'rawResponseCode') ? undefined : json['rawResponseCode'],
|
|
77
|
+
'rawResponseDescription': !exists(json, 'rawResponseDescription') ? undefined : json['rawResponseDescription'],
|
|
78
|
+
'avsResponseCode': !exists(json, 'avsResponseCode') ? undefined : json['avsResponseCode'],
|
|
79
|
+
'cvvResponseCode': !exists(json, 'cvvResponseCode') ? undefined : json['cvvResponseCode'],
|
|
80
|
+
'capturedAt': !exists(json, 'capturedAt') ? undefined : (new Date(json['capturedAt'])),
|
|
81
|
+
'authorizedAt': !exists(json, 'authorizedAt') ? undefined : (new Date(json['authorizedAt'])),
|
|
82
|
+
'voidedAt': !exists(json, 'voidedAt') ? undefined : (new Date(json['voidedAt'])),
|
|
83
|
+
'externalTransactionId': !exists(json, 'externalTransactionId') ? undefined : json['externalTransactionId'],
|
|
84
|
+
'buyerId': !exists(json, 'buyerId') ? undefined : json['buyerId'],
|
|
85
|
+
};
|
|
86
|
+
return removeNullUndefined(typed);
|
|
87
|
+
}
|
|
88
|
+
export function TransactionEntityToJSON(value) {
|
|
89
|
+
if (value === undefined) {
|
|
90
|
+
return undefined;
|
|
91
|
+
}
|
|
92
|
+
if (value === null) {
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
'transactionId': value.transactionId,
|
|
97
|
+
'merchantId': value.merchantId,
|
|
98
|
+
'status': value.status,
|
|
99
|
+
'intent': value.intent,
|
|
100
|
+
'amount': value.amount,
|
|
101
|
+
'capturedAmount': value.capturedAmount,
|
|
102
|
+
'refundedAmount': value.refundedAmount,
|
|
103
|
+
'currency': value.currency,
|
|
104
|
+
'country': value.country,
|
|
105
|
+
'paymentMethod': PaymentMethodEntity1ToJSON(value.paymentMethod),
|
|
106
|
+
'buyer': PaymentsBuyerEntityToJSON(value.buyer),
|
|
107
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
108
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
109
|
+
'merchantInitiated': value.merchantInitiated,
|
|
110
|
+
'schemeTransactionId': value.schemeTransactionId,
|
|
111
|
+
'rawResponseCode': value.rawResponseCode,
|
|
112
|
+
'rawResponseDescription': value.rawResponseDescription,
|
|
113
|
+
'avsResponseCode': value.avsResponseCode,
|
|
114
|
+
'cvvResponseCode': value.cvvResponseCode,
|
|
115
|
+
'capturedAt': value.capturedAt === undefined ? undefined : (value.capturedAt.toISOString()),
|
|
116
|
+
'authorizedAt': value.authorizedAt === undefined ? undefined : (value.authorizedAt.toISOString()),
|
|
117
|
+
'voidedAt': value.voidedAt === undefined ? undefined : (value.voidedAt.toISOString()),
|
|
118
|
+
'externalTransactionId': value.externalTransactionId,
|
|
119
|
+
'buyerId': value.buyerId,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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 TransactionRefundEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface TransactionRefundEntity {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof TransactionRefundEntity
|
|
17
|
+
*/
|
|
18
|
+
refundRecordId: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof TransactionRefundEntity
|
|
23
|
+
*/
|
|
24
|
+
merchantId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TransactionRefundEntity
|
|
29
|
+
*/
|
|
30
|
+
refundId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof TransactionRefundEntity
|
|
35
|
+
*/
|
|
36
|
+
transactionId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof TransactionRefundEntity
|
|
41
|
+
*/
|
|
42
|
+
refundedAmount: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof TransactionRefundEntity
|
|
47
|
+
*/
|
|
48
|
+
createdAt: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof TransactionRefundEntity
|
|
53
|
+
*/
|
|
54
|
+
updatedAt: Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof TransactionRefundEntity
|
|
59
|
+
*/
|
|
60
|
+
status: TransactionRefundEntityStatusEnum;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof TransactionRefundEntity
|
|
65
|
+
*/
|
|
66
|
+
currency?: string;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @export
|
|
70
|
+
*/
|
|
71
|
+
export declare const TransactionRefundEntityStatusEnum: {
|
|
72
|
+
readonly Processing: "processing";
|
|
73
|
+
readonly Succeeded: "succeeded";
|
|
74
|
+
readonly Declined: "declined";
|
|
75
|
+
readonly Failed: "failed";
|
|
76
|
+
readonly Voided: "voided";
|
|
77
|
+
};
|
|
78
|
+
export type TransactionRefundEntityStatusEnum = typeof TransactionRefundEntityStatusEnum[keyof typeof TransactionRefundEntityStatusEnum];
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the TransactionRefundEntity interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfTransactionRefundEntity(value: object): boolean;
|
|
83
|
+
export declare function TransactionRefundEntityFromJSON(json: any): TransactionRefundEntity;
|
|
84
|
+
export declare function TransactionRefundEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionRefundEntity;
|
|
85
|
+
export declare function TransactionRefundEntityToJSON(value?: TransactionRefundEntity | null): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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 TransactionRefundEntityStatusEnum = {
|
|
14
|
+
Processing: 'processing',
|
|
15
|
+
Succeeded: 'succeeded',
|
|
16
|
+
Declined: 'declined',
|
|
17
|
+
Failed: 'failed',
|
|
18
|
+
Voided: 'voided'
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the TransactionRefundEntity interface.
|
|
22
|
+
*/
|
|
23
|
+
export function instanceOfTransactionRefundEntity(value) {
|
|
24
|
+
let isInstance = true;
|
|
25
|
+
isInstance = isInstance && "refundRecordId" in value;
|
|
26
|
+
isInstance = isInstance && "merchantId" in value;
|
|
27
|
+
isInstance = isInstance && "refundId" in value;
|
|
28
|
+
isInstance = isInstance && "transactionId" in value;
|
|
29
|
+
isInstance = isInstance && "refundedAmount" in value;
|
|
30
|
+
isInstance = isInstance && "createdAt" in value;
|
|
31
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
32
|
+
isInstance = isInstance && "status" in value;
|
|
33
|
+
return isInstance;
|
|
34
|
+
}
|
|
35
|
+
export function TransactionRefundEntityFromJSON(json) {
|
|
36
|
+
return TransactionRefundEntityFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function TransactionRefundEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if ((json === undefined) || (json === null)) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
const typed = {
|
|
43
|
+
'refundRecordId': json['refundRecordId'],
|
|
44
|
+
'merchantId': json['merchantId'],
|
|
45
|
+
'refundId': json['refundId'],
|
|
46
|
+
'transactionId': json['transactionId'],
|
|
47
|
+
'refundedAmount': json['refundedAmount'],
|
|
48
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
49
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
50
|
+
'status': json['status'],
|
|
51
|
+
'currency': !exists(json, 'currency') ? undefined : json['currency'],
|
|
52
|
+
};
|
|
53
|
+
return removeNullUndefined(typed);
|
|
54
|
+
}
|
|
55
|
+
export function TransactionRefundEntityToJSON(value) {
|
|
56
|
+
if (value === undefined) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
if (value === null) {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'refundRecordId': value.refundRecordId,
|
|
64
|
+
'merchantId': value.merchantId,
|
|
65
|
+
'refundId': value.refundId,
|
|
66
|
+
'transactionId': value.transactionId,
|
|
67
|
+
'refundedAmount': value.refundedAmount,
|
|
68
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
69
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
70
|
+
'status': value.status,
|
|
71
|
+
'currency': value.currency,
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -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 { TransactionRefundEntity } from './TransactionRefundEntity';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface TransactionRefundsSearchEntity
|
|
12
|
+
*/
|
|
13
|
+
export interface TransactionRefundsSearchEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The previous cursor
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof TransactionRefundsSearchEntity
|
|
18
|
+
*/
|
|
19
|
+
prevCursor: string;
|
|
20
|
+
/**
|
|
21
|
+
* The list of queried transactions
|
|
22
|
+
* @type {Array<TransactionRefundEntity>}
|
|
23
|
+
* @memberof TransactionRefundsSearchEntity
|
|
24
|
+
*/
|
|
25
|
+
refunds: Array<TransactionRefundEntity>;
|
|
26
|
+
/**
|
|
27
|
+
* The number of records returned
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof TransactionRefundsSearchEntity
|
|
30
|
+
*/
|
|
31
|
+
limit: number;
|
|
32
|
+
/**
|
|
33
|
+
* The next cursor
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof TransactionRefundsSearchEntity
|
|
36
|
+
*/
|
|
37
|
+
nextCursor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The page number
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof TransactionRefundsSearchEntity
|
|
42
|
+
*/
|
|
43
|
+
page?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the TransactionRefundsSearchEntity interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfTransactionRefundsSearchEntity(value: object): boolean;
|
|
49
|
+
export declare function TransactionRefundsSearchEntityFromJSON(json: any): TransactionRefundsSearchEntity;
|
|
50
|
+
export declare function TransactionRefundsSearchEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionRefundsSearchEntity;
|
|
51
|
+
export declare function TransactionRefundsSearchEntityToJSON(value?: TransactionRefundsSearchEntity | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { TransactionRefundEntityFromJSON, TransactionRefundEntityToJSON, } from './TransactionRefundEntity';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the TransactionRefundsSearchEntity interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfTransactionRefundsSearchEntity(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "prevCursor" in value;
|
|
17
|
+
isInstance = isInstance && "refunds" in value;
|
|
18
|
+
isInstance = isInstance && "limit" in value;
|
|
19
|
+
return isInstance;
|
|
20
|
+
}
|
|
21
|
+
export function TransactionRefundsSearchEntityFromJSON(json) {
|
|
22
|
+
return TransactionRefundsSearchEntityFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function TransactionRefundsSearchEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
const typed = {
|
|
29
|
+
'prevCursor': json['prevCursor'],
|
|
30
|
+
'refunds': (json['refunds'].map(TransactionRefundEntityFromJSON)),
|
|
31
|
+
'limit': json['limit'],
|
|
32
|
+
'nextCursor': !exists(json, 'nextCursor') ? undefined : json['nextCursor'],
|
|
33
|
+
'page': !exists(json, 'page') ? undefined : json['page'],
|
|
34
|
+
};
|
|
35
|
+
return removeNullUndefined(typed);
|
|
36
|
+
}
|
|
37
|
+
export function TransactionRefundsSearchEntityToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'prevCursor': value.prevCursor,
|
|
46
|
+
'refunds': (value.refunds.map(TransactionRefundEntityToJSON)),
|
|
47
|
+
'limit': value.limit,
|
|
48
|
+
'nextCursor': value.nextCursor,
|
|
49
|
+
'page': value.page,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -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 { TransactionEntity } from './TransactionEntity';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface TransactionsSearchEntity
|
|
12
|
+
*/
|
|
13
|
+
export interface TransactionsSearchEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The previous cursor
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof TransactionsSearchEntity
|
|
18
|
+
*/
|
|
19
|
+
prevCursor: string;
|
|
20
|
+
/**
|
|
21
|
+
* The list of queried transactions
|
|
22
|
+
* @type {Array<TransactionEntity>}
|
|
23
|
+
* @memberof TransactionsSearchEntity
|
|
24
|
+
*/
|
|
25
|
+
transactions: Array<TransactionEntity>;
|
|
26
|
+
/**
|
|
27
|
+
* The number of records returned
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof TransactionsSearchEntity
|
|
30
|
+
*/
|
|
31
|
+
limit: number;
|
|
32
|
+
/**
|
|
33
|
+
* The next cursor
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof TransactionsSearchEntity
|
|
36
|
+
*/
|
|
37
|
+
nextCursor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The page number
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof TransactionsSearchEntity
|
|
42
|
+
*/
|
|
43
|
+
page?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the TransactionsSearchEntity interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfTransactionsSearchEntity(value: object): boolean;
|
|
49
|
+
export declare function TransactionsSearchEntityFromJSON(json: any): TransactionsSearchEntity;
|
|
50
|
+
export declare function TransactionsSearchEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionsSearchEntity;
|
|
51
|
+
export declare function TransactionsSearchEntityToJSON(value?: TransactionsSearchEntity | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { TransactionEntityFromJSON, TransactionEntityToJSON, } from './TransactionEntity';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the TransactionsSearchEntity interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfTransactionsSearchEntity(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "prevCursor" in value;
|
|
17
|
+
isInstance = isInstance && "transactions" in value;
|
|
18
|
+
isInstance = isInstance && "limit" in value;
|
|
19
|
+
return isInstance;
|
|
20
|
+
}
|
|
21
|
+
export function TransactionsSearchEntityFromJSON(json) {
|
|
22
|
+
return TransactionsSearchEntityFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function TransactionsSearchEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
const typed = {
|
|
29
|
+
'prevCursor': json['prevCursor'],
|
|
30
|
+
'transactions': (json['transactions'].map(TransactionEntityFromJSON)),
|
|
31
|
+
'limit': json['limit'],
|
|
32
|
+
'nextCursor': !exists(json, 'nextCursor') ? undefined : json['nextCursor'],
|
|
33
|
+
'page': !exists(json, 'page') ? undefined : json['page'],
|
|
34
|
+
};
|
|
35
|
+
return removeNullUndefined(typed);
|
|
36
|
+
}
|
|
37
|
+
export function TransactionsSearchEntityToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'prevCursor': value.prevCursor,
|
|
46
|
+
'transactions': (value.transactions.map(TransactionEntityToJSON)),
|
|
47
|
+
'limit': value.limit,
|
|
48
|
+
'nextCursor': value.nextCursor,
|
|
49
|
+
'page': value.page,
|
|
50
|
+
};
|
|
51
|
+
}
|