@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,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The address
|
|
9
|
+
* @export
|
|
10
|
+
* @interface BuyerEntityAddress
|
|
11
|
+
*/
|
|
12
|
+
export interface BuyerEntityAddress {
|
|
13
|
+
/**
|
|
14
|
+
* The city of the address
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof BuyerEntityAddress
|
|
17
|
+
*/
|
|
18
|
+
city: string;
|
|
19
|
+
/**
|
|
20
|
+
* The country code of the address
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BuyerEntityAddress
|
|
23
|
+
*/
|
|
24
|
+
countryCode: string;
|
|
25
|
+
/**
|
|
26
|
+
* The postal code of the address
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BuyerEntityAddress
|
|
29
|
+
*/
|
|
30
|
+
postalCode: string;
|
|
31
|
+
/**
|
|
32
|
+
* The subdivision (state, province, or region) of the address
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BuyerEntityAddress
|
|
35
|
+
*/
|
|
36
|
+
subdivision: string;
|
|
37
|
+
/**
|
|
38
|
+
* The street address of the address
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof BuyerEntityAddress
|
|
41
|
+
*/
|
|
42
|
+
streetAddress: string;
|
|
43
|
+
/**
|
|
44
|
+
* The optional second line of the street address
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof BuyerEntityAddress
|
|
47
|
+
*/
|
|
48
|
+
streetAddress2?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The optional subdivision code of the address
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof BuyerEntityAddress
|
|
53
|
+
*/
|
|
54
|
+
subdivisionCode?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the BuyerEntityAddress interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfBuyerEntityAddress(value: object): boolean;
|
|
60
|
+
export declare function BuyerEntityAddressFromJSON(json: any): BuyerEntityAddress;
|
|
61
|
+
export declare function BuyerEntityAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerEntityAddress;
|
|
62
|
+
export declare function BuyerEntityAddressToJSON(value?: BuyerEntityAddress | null): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Channel Payments API
|
|
5
|
+
*
|
|
6
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
import { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* Check if a given object implements the BuyerEntityAddress interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfBuyerEntityAddress(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
isInstance = isInstance && "city" in value;
|
|
16
|
+
isInstance = isInstance && "countryCode" in value;
|
|
17
|
+
isInstance = isInstance && "postalCode" in value;
|
|
18
|
+
isInstance = isInstance && "subdivision" in value;
|
|
19
|
+
isInstance = isInstance && "streetAddress" in value;
|
|
20
|
+
return isInstance;
|
|
21
|
+
}
|
|
22
|
+
export function BuyerEntityAddressFromJSON(json) {
|
|
23
|
+
return BuyerEntityAddressFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function BuyerEntityAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if ((json === undefined) || (json === null)) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
const typed = {
|
|
30
|
+
'city': json['city'],
|
|
31
|
+
'countryCode': json['countryCode'],
|
|
32
|
+
'postalCode': json['postalCode'],
|
|
33
|
+
'subdivision': json['subdivision'],
|
|
34
|
+
'streetAddress': json['streetAddress'],
|
|
35
|
+
'streetAddress2': !exists(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
36
|
+
'subdivisionCode': !exists(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
|
|
37
|
+
};
|
|
38
|
+
return removeNullUndefined(typed);
|
|
39
|
+
}
|
|
40
|
+
export function BuyerEntityAddressToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'city': value.city,
|
|
49
|
+
'countryCode': value.countryCode,
|
|
50
|
+
'postalCode': value.postalCode,
|
|
51
|
+
'subdivision': value.subdivision,
|
|
52
|
+
'streetAddress': value.streetAddress,
|
|
53
|
+
'streetAddress2': value.streetAddress2,
|
|
54
|
+
'subdivisionCode': value.subdivisionCode,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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 { BuyerEntity } from './BuyerEntity';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface BuyersSearchEntity
|
|
12
|
+
*/
|
|
13
|
+
export interface BuyersSearchEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The previous cursor
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof BuyersSearchEntity
|
|
18
|
+
*/
|
|
19
|
+
prevCursor: string;
|
|
20
|
+
/**
|
|
21
|
+
* The list of queried buyers
|
|
22
|
+
* @type {Array<BuyerEntity>}
|
|
23
|
+
* @memberof BuyersSearchEntity
|
|
24
|
+
*/
|
|
25
|
+
buyers: Array<BuyerEntity>;
|
|
26
|
+
/**
|
|
27
|
+
* The number of records returned
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof BuyersSearchEntity
|
|
30
|
+
*/
|
|
31
|
+
limit: number;
|
|
32
|
+
/**
|
|
33
|
+
* The next cursor
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BuyersSearchEntity
|
|
36
|
+
*/
|
|
37
|
+
nextCursor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* The page number
|
|
40
|
+
* @type {number}
|
|
41
|
+
* @memberof BuyersSearchEntity
|
|
42
|
+
*/
|
|
43
|
+
page?: number;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Check if a given object implements the BuyersSearchEntity interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfBuyersSearchEntity(value: object): boolean;
|
|
49
|
+
export declare function BuyersSearchEntityFromJSON(json: any): BuyersSearchEntity;
|
|
50
|
+
export declare function BuyersSearchEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyersSearchEntity;
|
|
51
|
+
export declare function BuyersSearchEntityToJSON(value?: BuyersSearchEntity | 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 { BuyerEntityFromJSON, BuyerEntityToJSON, } from './BuyerEntity';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the BuyersSearchEntity interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfBuyersSearchEntity(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "prevCursor" in value;
|
|
17
|
+
isInstance = isInstance && "buyers" in value;
|
|
18
|
+
isInstance = isInstance && "limit" in value;
|
|
19
|
+
return isInstance;
|
|
20
|
+
}
|
|
21
|
+
export function BuyersSearchEntityFromJSON(json) {
|
|
22
|
+
return BuyersSearchEntityFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function BuyersSearchEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if ((json === undefined) || (json === null)) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
const typed = {
|
|
29
|
+
'prevCursor': json['prevCursor'],
|
|
30
|
+
'buyers': (json['buyers'].map(BuyerEntityFromJSON)),
|
|
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 BuyersSearchEntityToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'prevCursor': value.prevCursor,
|
|
46
|
+
'buyers': (value.buyers.map(BuyerEntityToJSON)),
|
|
47
|
+
'limit': value.limit,
|
|
48
|
+
'nextCursor': value.nextCursor,
|
|
49
|
+
'page': value.page,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 CFeeDto
|
|
11
|
+
*/
|
|
12
|
+
export interface CFeeDto {
|
|
13
|
+
/**
|
|
14
|
+
* The type of the CFee
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CFeeDto
|
|
17
|
+
*/
|
|
18
|
+
type: CFeeDtoTypeEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The rate of the CFee as an integer
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CFeeDto
|
|
23
|
+
*/
|
|
24
|
+
rate: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export declare const CFeeDtoTypeEnum: {
|
|
30
|
+
readonly Percentage: "PERCENTAGE";
|
|
31
|
+
readonly Fixed: "FIXED";
|
|
32
|
+
};
|
|
33
|
+
export type CFeeDtoTypeEnum = typeof CFeeDtoTypeEnum[keyof typeof CFeeDtoTypeEnum];
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the CFeeDto interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfCFeeDto(value: object): boolean;
|
|
38
|
+
export declare function CFeeDtoFromJSON(json: any): CFeeDto;
|
|
39
|
+
export declare function CFeeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CFeeDto;
|
|
40
|
+
export declare function CFeeDtoToJSON(value?: CFeeDto | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export const CFeeDtoTypeEnum = {
|
|
14
|
+
Percentage: 'PERCENTAGE',
|
|
15
|
+
Fixed: 'FIXED'
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CFeeDto interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfCFeeDto(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "type" in value;
|
|
23
|
+
isInstance = isInstance && "rate" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
export function CFeeDtoFromJSON(json) {
|
|
27
|
+
return CFeeDtoFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function CFeeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'type': json['type'],
|
|
35
|
+
'rate': json['rate'],
|
|
36
|
+
};
|
|
37
|
+
return removeNullUndefined(typed);
|
|
38
|
+
}
|
|
39
|
+
export function CFeeDtoToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': value.type,
|
|
48
|
+
'rate': value.rate,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 CFeeEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface CFeeEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The type of the CFee
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CFeeEntity
|
|
17
|
+
*/
|
|
18
|
+
type: CFeeEntityTypeEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The rate of the CFee as an integer
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CFeeEntity
|
|
23
|
+
*/
|
|
24
|
+
rate: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @export
|
|
28
|
+
*/
|
|
29
|
+
export declare const CFeeEntityTypeEnum: {
|
|
30
|
+
readonly Percentage: "PERCENTAGE";
|
|
31
|
+
readonly Fixed: "FIXED";
|
|
32
|
+
};
|
|
33
|
+
export type CFeeEntityTypeEnum = typeof CFeeEntityTypeEnum[keyof typeof CFeeEntityTypeEnum];
|
|
34
|
+
/**
|
|
35
|
+
* Check if a given object implements the CFeeEntity interface.
|
|
36
|
+
*/
|
|
37
|
+
export declare function instanceOfCFeeEntity(value: object): boolean;
|
|
38
|
+
export declare function CFeeEntityFromJSON(json: any): CFeeEntity;
|
|
39
|
+
export declare function CFeeEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): CFeeEntity;
|
|
40
|
+
export declare function CFeeEntityToJSON(value?: CFeeEntity | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export const CFeeEntityTypeEnum = {
|
|
14
|
+
Percentage: 'PERCENTAGE',
|
|
15
|
+
Fixed: 'FIXED'
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CFeeEntity interface.
|
|
19
|
+
*/
|
|
20
|
+
export function instanceOfCFeeEntity(value) {
|
|
21
|
+
let isInstance = true;
|
|
22
|
+
isInstance = isInstance && "type" in value;
|
|
23
|
+
isInstance = isInstance && "rate" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
export function CFeeEntityFromJSON(json) {
|
|
27
|
+
return CFeeEntityFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function CFeeEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if ((json === undefined) || (json === null)) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
const typed = {
|
|
34
|
+
'type': json['type'],
|
|
35
|
+
'rate': json['rate'],
|
|
36
|
+
};
|
|
37
|
+
return removeNullUndefined(typed);
|
|
38
|
+
}
|
|
39
|
+
export function CFeeEntityToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'type': value.type,
|
|
48
|
+
'rate': value.rate,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -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 CaptureTransactionDto
|
|
11
|
+
*/
|
|
12
|
+
export interface CaptureTransactionDto {
|
|
13
|
+
/**
|
|
14
|
+
* The transaction ID.
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CaptureTransactionDto
|
|
17
|
+
*/
|
|
18
|
+
transactionId: string;
|
|
19
|
+
/**
|
|
20
|
+
* The transaction amount.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof CaptureTransactionDto
|
|
23
|
+
*/
|
|
24
|
+
amount: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CaptureTransactionDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCaptureTransactionDto(value: object): boolean;
|
|
30
|
+
export declare function CaptureTransactionDtoFromJSON(json: any): CaptureTransactionDto;
|
|
31
|
+
export declare function CaptureTransactionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaptureTransactionDto;
|
|
32
|
+
export declare function CaptureTransactionDtoToJSON(value?: CaptureTransactionDto | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* Check if a given object implements the CaptureTransactionDto interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfCaptureTransactionDto(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
isInstance = isInstance && "transactionId" in value;
|
|
16
|
+
isInstance = isInstance && "amount" in value;
|
|
17
|
+
return isInstance;
|
|
18
|
+
}
|
|
19
|
+
export function CaptureTransactionDtoFromJSON(json) {
|
|
20
|
+
return CaptureTransactionDtoFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
export function CaptureTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
23
|
+
if ((json === undefined) || (json === null)) {
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
const typed = {
|
|
27
|
+
'transactionId': json['transactionId'],
|
|
28
|
+
'amount': json['amount'],
|
|
29
|
+
};
|
|
30
|
+
return removeNullUndefined(typed);
|
|
31
|
+
}
|
|
32
|
+
export function CaptureTransactionDtoToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'transactionId': value.transactionId,
|
|
41
|
+
'amount': value.amount,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 CardDetails
|
|
11
|
+
*/
|
|
12
|
+
export interface CardDetails {
|
|
13
|
+
/**
|
|
14
|
+
* The card type
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof CardDetails
|
|
17
|
+
*/
|
|
18
|
+
type: CardDetailsTypeEnum;
|
|
19
|
+
/**
|
|
20
|
+
* The card BIN
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CardDetails
|
|
23
|
+
*/
|
|
24
|
+
bin: string;
|
|
25
|
+
/**
|
|
26
|
+
* The card scheme
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CardDetails
|
|
29
|
+
*/
|
|
30
|
+
scheme: string;
|
|
31
|
+
/**
|
|
32
|
+
* The last 4 digits of the card
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CardDetails
|
|
35
|
+
*/
|
|
36
|
+
label: string;
|
|
37
|
+
/**
|
|
38
|
+
* The card expiration date
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CardDetails
|
|
41
|
+
*/
|
|
42
|
+
expirationDate: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const CardDetailsTypeEnum: {
|
|
48
|
+
readonly Credit: "credit";
|
|
49
|
+
readonly Debit: "debit";
|
|
50
|
+
readonly Prepaid: "prepaid";
|
|
51
|
+
};
|
|
52
|
+
export type CardDetailsTypeEnum = typeof CardDetailsTypeEnum[keyof typeof CardDetailsTypeEnum];
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the CardDetails interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfCardDetails(value: object): boolean;
|
|
57
|
+
export declare function CardDetailsFromJSON(json: any): CardDetails;
|
|
58
|
+
export declare function CardDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CardDetails;
|
|
59
|
+
export declare function CardDetailsToJSON(value?: CardDetails | null): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { removeNullUndefined } from '../runtime';
|
|
10
|
+
/**
|
|
11
|
+
* @export
|
|
12
|
+
*/
|
|
13
|
+
export const CardDetailsTypeEnum = {
|
|
14
|
+
Credit: 'credit',
|
|
15
|
+
Debit: 'debit',
|
|
16
|
+
Prepaid: 'prepaid'
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the CardDetails interface.
|
|
20
|
+
*/
|
|
21
|
+
export function instanceOfCardDetails(value) {
|
|
22
|
+
let isInstance = true;
|
|
23
|
+
isInstance = isInstance && "type" in value;
|
|
24
|
+
isInstance = isInstance && "bin" in value;
|
|
25
|
+
isInstance = isInstance && "scheme" in value;
|
|
26
|
+
isInstance = isInstance && "label" in value;
|
|
27
|
+
isInstance = isInstance && "expirationDate" in value;
|
|
28
|
+
return isInstance;
|
|
29
|
+
}
|
|
30
|
+
export function CardDetailsFromJSON(json) {
|
|
31
|
+
return CardDetailsFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function CardDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
const typed = {
|
|
38
|
+
'type': json['type'],
|
|
39
|
+
'bin': json['bin'],
|
|
40
|
+
'scheme': json['scheme'],
|
|
41
|
+
'label': json['label'],
|
|
42
|
+
'expirationDate': json['expirationDate'],
|
|
43
|
+
};
|
|
44
|
+
return removeNullUndefined(typed);
|
|
45
|
+
}
|
|
46
|
+
export function CardDetailsToJSON(value) {
|
|
47
|
+
if (value === undefined) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
if (value === null) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'type': value.type,
|
|
55
|
+
'bin': value.bin,
|
|
56
|
+
'scheme': value.scheme,
|
|
57
|
+
'label': value.label,
|
|
58
|
+
'expirationDate': value.expirationDate,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { CreateBuyerDtoAddress } from './CreateBuyerDtoAddress';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface CreateBuyerDto
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateBuyerDto {
|
|
14
|
+
/**
|
|
15
|
+
* The given name of the buyer
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof CreateBuyerDto
|
|
18
|
+
*/
|
|
19
|
+
givenName: string;
|
|
20
|
+
/**
|
|
21
|
+
* The family name of the buyer
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateBuyerDto
|
|
24
|
+
*/
|
|
25
|
+
familyName: string;
|
|
26
|
+
/**
|
|
27
|
+
* The email address of the buyer
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateBuyerDto
|
|
30
|
+
*/
|
|
31
|
+
email: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {CreateBuyerDtoAddress}
|
|
35
|
+
* @memberof CreateBuyerDto
|
|
36
|
+
*/
|
|
37
|
+
address: CreateBuyerDtoAddress;
|
|
38
|
+
/**
|
|
39
|
+
* The phone number of the buyer
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CreateBuyerDto
|
|
42
|
+
*/
|
|
43
|
+
phoneNumber?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The merchant-issued ID for the buyer. Must be unique to the buyer
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateBuyerDto
|
|
48
|
+
*/
|
|
49
|
+
externalBuyerId?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the CreateBuyerDto interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfCreateBuyerDto(value: object): boolean;
|
|
55
|
+
export declare function CreateBuyerDtoFromJSON(json: any): CreateBuyerDto;
|
|
56
|
+
export declare function CreateBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBuyerDto;
|
|
57
|
+
export declare function CreateBuyerDtoToJSON(value?: CreateBuyerDto | null): any;
|