@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,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,80 @@
|
|
|
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.TransactionRefundEntityToJSON = exports.TransactionRefundEntityFromJSONTyped = exports.TransactionRefundEntityFromJSON = exports.instanceOfTransactionRefundEntity = exports.TransactionRefundEntityStatusEnum = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
exports.TransactionRefundEntityStatusEnum = {
|
|
17
|
+
Processing: 'processing',
|
|
18
|
+
Succeeded: 'succeeded',
|
|
19
|
+
Declined: 'declined',
|
|
20
|
+
Failed: 'failed',
|
|
21
|
+
Voided: 'voided'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the TransactionRefundEntity interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfTransactionRefundEntity(value) {
|
|
27
|
+
let isInstance = true;
|
|
28
|
+
isInstance = isInstance && "refundRecordId" in value;
|
|
29
|
+
isInstance = isInstance && "merchantId" in value;
|
|
30
|
+
isInstance = isInstance && "refundId" in value;
|
|
31
|
+
isInstance = isInstance && "transactionId" in value;
|
|
32
|
+
isInstance = isInstance && "refundedAmount" in value;
|
|
33
|
+
isInstance = isInstance && "createdAt" in value;
|
|
34
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
35
|
+
isInstance = isInstance && "status" in value;
|
|
36
|
+
return isInstance;
|
|
37
|
+
}
|
|
38
|
+
exports.instanceOfTransactionRefundEntity = instanceOfTransactionRefundEntity;
|
|
39
|
+
function TransactionRefundEntityFromJSON(json) {
|
|
40
|
+
return TransactionRefundEntityFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
exports.TransactionRefundEntityFromJSON = TransactionRefundEntityFromJSON;
|
|
43
|
+
function TransactionRefundEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if ((json === undefined) || (json === null)) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
const typed = {
|
|
48
|
+
'refundRecordId': json['refundRecordId'],
|
|
49
|
+
'merchantId': json['merchantId'],
|
|
50
|
+
'refundId': json['refundId'],
|
|
51
|
+
'transactionId': json['transactionId'],
|
|
52
|
+
'refundedAmount': json['refundedAmount'],
|
|
53
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
54
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
55
|
+
'status': json['status'],
|
|
56
|
+
'currency': !(0, runtime_1.exists)(json, 'currency') ? undefined : json['currency'],
|
|
57
|
+
};
|
|
58
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
59
|
+
}
|
|
60
|
+
exports.TransactionRefundEntityFromJSONTyped = TransactionRefundEntityFromJSONTyped;
|
|
61
|
+
function TransactionRefundEntityToJSON(value) {
|
|
62
|
+
if (value === undefined) {
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
if (value === null) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'refundRecordId': value.refundRecordId,
|
|
70
|
+
'merchantId': value.merchantId,
|
|
71
|
+
'refundId': value.refundId,
|
|
72
|
+
'transactionId': value.transactionId,
|
|
73
|
+
'refundedAmount': value.refundedAmount,
|
|
74
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
75
|
+
'updatedAt': (value.updatedAt.toISOString()),
|
|
76
|
+
'status': value.status,
|
|
77
|
+
'currency': value.currency,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
exports.TransactionRefundEntityToJSON = TransactionRefundEntityToJSON;
|
|
@@ -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,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.TransactionRefundsSearchEntityToJSON = exports.TransactionRefundsSearchEntityFromJSONTyped = exports.TransactionRefundsSearchEntityFromJSON = exports.instanceOfTransactionRefundsSearchEntity = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const TransactionRefundEntity_1 = require("./TransactionRefundEntity");
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the TransactionRefundsSearchEntity interface.
|
|
16
|
+
*/
|
|
17
|
+
function instanceOfTransactionRefundsSearchEntity(value) {
|
|
18
|
+
let isInstance = true;
|
|
19
|
+
isInstance = isInstance && "prevCursor" in value;
|
|
20
|
+
isInstance = isInstance && "refunds" in value;
|
|
21
|
+
isInstance = isInstance && "limit" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfTransactionRefundsSearchEntity = instanceOfTransactionRefundsSearchEntity;
|
|
25
|
+
function TransactionRefundsSearchEntityFromJSON(json) {
|
|
26
|
+
return TransactionRefundsSearchEntityFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.TransactionRefundsSearchEntityFromJSON = TransactionRefundsSearchEntityFromJSON;
|
|
29
|
+
function TransactionRefundsSearchEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'prevCursor': json['prevCursor'],
|
|
35
|
+
'refunds': (json['refunds'].map(TransactionRefundEntity_1.TransactionRefundEntityFromJSON)),
|
|
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.TransactionRefundsSearchEntityFromJSONTyped = TransactionRefundsSearchEntityFromJSONTyped;
|
|
43
|
+
function TransactionRefundsSearchEntityToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'prevCursor': value.prevCursor,
|
|
52
|
+
'refunds': (value.refunds.map(TransactionRefundEntity_1.TransactionRefundEntityToJSON)),
|
|
53
|
+
'limit': value.limit,
|
|
54
|
+
'nextCursor': value.nextCursor,
|
|
55
|
+
'page': value.page,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.TransactionRefundsSearchEntityToJSON = TransactionRefundsSearchEntityToJSON;
|
|
@@ -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,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.TransactionsSearchEntityToJSON = exports.TransactionsSearchEntityFromJSONTyped = exports.TransactionsSearchEntityFromJSON = exports.instanceOfTransactionsSearchEntity = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const TransactionEntity_1 = require("./TransactionEntity");
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the TransactionsSearchEntity interface.
|
|
16
|
+
*/
|
|
17
|
+
function instanceOfTransactionsSearchEntity(value) {
|
|
18
|
+
let isInstance = true;
|
|
19
|
+
isInstance = isInstance && "prevCursor" in value;
|
|
20
|
+
isInstance = isInstance && "transactions" in value;
|
|
21
|
+
isInstance = isInstance && "limit" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfTransactionsSearchEntity = instanceOfTransactionsSearchEntity;
|
|
25
|
+
function TransactionsSearchEntityFromJSON(json) {
|
|
26
|
+
return TransactionsSearchEntityFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.TransactionsSearchEntityFromJSON = TransactionsSearchEntityFromJSON;
|
|
29
|
+
function TransactionsSearchEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'prevCursor': json['prevCursor'],
|
|
35
|
+
'transactions': (json['transactions'].map(TransactionEntity_1.TransactionEntityFromJSON)),
|
|
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.TransactionsSearchEntityFromJSONTyped = TransactionsSearchEntityFromJSONTyped;
|
|
43
|
+
function TransactionsSearchEntityToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'prevCursor': value.prevCursor,
|
|
52
|
+
'transactions': (value.transactions.map(TransactionEntity_1.TransactionEntityToJSON)),
|
|
53
|
+
'limit': value.limit,
|
|
54
|
+
'nextCursor': value.nextCursor,
|
|
55
|
+
'page': value.page,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.TransactionsSearchEntityToJSON = TransactionsSearchEntityToJSON;
|
|
@@ -0,0 +1,62 @@
|
|
|
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 UpdateAddressDto
|
|
11
|
+
*/
|
|
12
|
+
export interface UpdateAddressDto {
|
|
13
|
+
/**
|
|
14
|
+
* The city of the address
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof UpdateAddressDto
|
|
17
|
+
*/
|
|
18
|
+
city?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The country code of the address
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateAddressDto
|
|
23
|
+
*/
|
|
24
|
+
countryCode?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The postal code of the address
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateAddressDto
|
|
29
|
+
*/
|
|
30
|
+
postalCode?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The subdivision (state, province, or region) of the address
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateAddressDto
|
|
35
|
+
*/
|
|
36
|
+
subdivision?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The street address of the address
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UpdateAddressDto
|
|
41
|
+
*/
|
|
42
|
+
streetAddress?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The optional subdivision code of the address
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UpdateAddressDto
|
|
47
|
+
*/
|
|
48
|
+
subdivisionCode?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The optional second line of the street address
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UpdateAddressDto
|
|
53
|
+
*/
|
|
54
|
+
streetAddress2?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the UpdateAddressDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfUpdateAddressDto(value: object): boolean;
|
|
60
|
+
export declare function UpdateAddressDtoFromJSON(json: any): UpdateAddressDto;
|
|
61
|
+
export declare function UpdateAddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAddressDto;
|
|
62
|
+
export declare function UpdateAddressDtoToJSON(value?: UpdateAddressDto | 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.UpdateAddressDtoToJSON = exports.UpdateAddressDtoFromJSONTyped = exports.UpdateAddressDtoFromJSON = exports.instanceOfUpdateAddressDto = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
/**
|
|
14
|
+
* Check if a given object implements the UpdateAddressDto interface.
|
|
15
|
+
*/
|
|
16
|
+
function instanceOfUpdateAddressDto(value) {
|
|
17
|
+
let isInstance = true;
|
|
18
|
+
return isInstance;
|
|
19
|
+
}
|
|
20
|
+
exports.instanceOfUpdateAddressDto = instanceOfUpdateAddressDto;
|
|
21
|
+
function UpdateAddressDtoFromJSON(json) {
|
|
22
|
+
return UpdateAddressDtoFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
exports.UpdateAddressDtoFromJSON = UpdateAddressDtoFromJSON;
|
|
25
|
+
function UpdateAddressDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
const typed = {
|
|
30
|
+
'city': !(0, runtime_1.exists)(json, 'city') ? undefined : json['city'],
|
|
31
|
+
'countryCode': !(0, runtime_1.exists)(json, 'countryCode') ? undefined : json['countryCode'],
|
|
32
|
+
'postalCode': !(0, runtime_1.exists)(json, 'postalCode') ? undefined : json['postalCode'],
|
|
33
|
+
'subdivision': !(0, runtime_1.exists)(json, 'subdivision') ? undefined : json['subdivision'],
|
|
34
|
+
'streetAddress': !(0, runtime_1.exists)(json, 'streetAddress') ? undefined : json['streetAddress'],
|
|
35
|
+
'subdivisionCode': !(0, runtime_1.exists)(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
|
|
36
|
+
'streetAddress2': !(0, runtime_1.exists)(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
37
|
+
};
|
|
38
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
39
|
+
}
|
|
40
|
+
exports.UpdateAddressDtoFromJSONTyped = UpdateAddressDtoFromJSONTyped;
|
|
41
|
+
function UpdateAddressDtoToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'city': value.city,
|
|
50
|
+
'countryCode': value.countryCode,
|
|
51
|
+
'postalCode': value.postalCode,
|
|
52
|
+
'subdivision': value.subdivision,
|
|
53
|
+
'streetAddress': value.streetAddress,
|
|
54
|
+
'subdivisionCode': value.subdivisionCode,
|
|
55
|
+
'streetAddress2': value.streetAddress2,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
exports.UpdateAddressDtoToJSON = UpdateAddressDtoToJSON;
|
|
@@ -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
|
+
import type { UpdateBuyerDtoAddress } from './UpdateBuyerDtoAddress';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface UpdateBuyerDto
|
|
12
|
+
*/
|
|
13
|
+
export interface UpdateBuyerDto {
|
|
14
|
+
/**
|
|
15
|
+
* The given name of the buyer
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof UpdateBuyerDto
|
|
18
|
+
*/
|
|
19
|
+
givenName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The family name of the buyer
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof UpdateBuyerDto
|
|
24
|
+
*/
|
|
25
|
+
familyName?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The email address of the buyer
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof UpdateBuyerDto
|
|
30
|
+
*/
|
|
31
|
+
email?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The phone number of the buyer
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof UpdateBuyerDto
|
|
36
|
+
*/
|
|
37
|
+
phoneNumber?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The merchant-issued ID for the buyer. Must be unique to the buyer
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof UpdateBuyerDto
|
|
42
|
+
*/
|
|
43
|
+
externalBuyerId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The ID of the buyer
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof UpdateBuyerDto
|
|
48
|
+
*/
|
|
49
|
+
buyerId: string;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {UpdateBuyerDtoAddress}
|
|
53
|
+
* @memberof UpdateBuyerDto
|
|
54
|
+
*/
|
|
55
|
+
address?: UpdateBuyerDtoAddress;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the UpdateBuyerDto interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfUpdateBuyerDto(value: object): boolean;
|
|
61
|
+
export declare function UpdateBuyerDtoFromJSON(json: any): UpdateBuyerDto;
|
|
62
|
+
export declare function UpdateBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateBuyerDto;
|
|
63
|
+
export declare function UpdateBuyerDtoToJSON(value?: UpdateBuyerDto | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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.UpdateBuyerDtoToJSON = exports.UpdateBuyerDtoFromJSONTyped = exports.UpdateBuyerDtoFromJSON = exports.instanceOfUpdateBuyerDto = void 0;
|
|
12
|
+
const runtime_1 = require("../runtime");
|
|
13
|
+
const UpdateBuyerDtoAddress_1 = require("./UpdateBuyerDtoAddress");
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the UpdateBuyerDto interface.
|
|
16
|
+
*/
|
|
17
|
+
function instanceOfUpdateBuyerDto(value) {
|
|
18
|
+
let isInstance = true;
|
|
19
|
+
isInstance = isInstance && "buyerId" in value;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
exports.instanceOfUpdateBuyerDto = instanceOfUpdateBuyerDto;
|
|
23
|
+
function UpdateBuyerDtoFromJSON(json) {
|
|
24
|
+
return UpdateBuyerDtoFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
exports.UpdateBuyerDtoFromJSON = UpdateBuyerDtoFromJSON;
|
|
27
|
+
function UpdateBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'givenName': !(0, runtime_1.exists)(json, 'givenName') ? undefined : json['givenName'],
|
|
33
|
+
'familyName': !(0, runtime_1.exists)(json, 'familyName') ? undefined : json['familyName'],
|
|
34
|
+
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
35
|
+
'phoneNumber': !(0, runtime_1.exists)(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
36
|
+
'externalBuyerId': !(0, runtime_1.exists)(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
37
|
+
'buyerId': json['buyerId'],
|
|
38
|
+
'address': !(0, runtime_1.exists)(json, 'address') ? undefined : (0, UpdateBuyerDtoAddress_1.UpdateBuyerDtoAddressFromJSON)(json['address']),
|
|
39
|
+
};
|
|
40
|
+
return (0, runtime_1.removeNullUndefined)(typed);
|
|
41
|
+
}
|
|
42
|
+
exports.UpdateBuyerDtoFromJSONTyped = UpdateBuyerDtoFromJSONTyped;
|
|
43
|
+
function UpdateBuyerDtoToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'givenName': value.givenName,
|
|
52
|
+
'familyName': value.familyName,
|
|
53
|
+
'email': value.email,
|
|
54
|
+
'phoneNumber': value.phoneNumber,
|
|
55
|
+
'externalBuyerId': value.externalBuyerId,
|
|
56
|
+
'buyerId': value.buyerId,
|
|
57
|
+
'address': (0, UpdateBuyerDtoAddress_1.UpdateBuyerDtoAddressToJSON)(value.address),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.UpdateBuyerDtoToJSON = UpdateBuyerDtoToJSON;
|