@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 @@
|
|
|
1
|
+
export * from './ChannelPaymentsApi';
|
|
@@ -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 AddressDto
|
|
11
|
+
*/
|
|
12
|
+
export interface AddressDto {
|
|
13
|
+
/**
|
|
14
|
+
* The city
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof AddressDto
|
|
17
|
+
*/
|
|
18
|
+
city: string;
|
|
19
|
+
/**
|
|
20
|
+
* The country code
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AddressDto
|
|
23
|
+
*/
|
|
24
|
+
countryCode: string;
|
|
25
|
+
/**
|
|
26
|
+
* The postal code
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AddressDto
|
|
29
|
+
*/
|
|
30
|
+
postalCode: string;
|
|
31
|
+
/**
|
|
32
|
+
* The subdivision (state, province, or region)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AddressDto
|
|
35
|
+
*/
|
|
36
|
+
subdivision: string;
|
|
37
|
+
/**
|
|
38
|
+
* The street address
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AddressDto
|
|
41
|
+
*/
|
|
42
|
+
streetAddress: string;
|
|
43
|
+
/**
|
|
44
|
+
* The optional subdivision code
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AddressDto
|
|
47
|
+
*/
|
|
48
|
+
subdivisionCode?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The optional second line of the street address
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AddressDto
|
|
53
|
+
*/
|
|
54
|
+
streetAddress2?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AddressDto interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfAddressDto(value: object): boolean;
|
|
60
|
+
export declare function AddressDtoFromJSON(json: any): AddressDto;
|
|
61
|
+
export declare function AddressDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressDto;
|
|
62
|
+
export declare function AddressDtoToJSON(value?: AddressDto | 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 AddressDto interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfAddressDto(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 AddressDtoFromJSON(json) {
|
|
23
|
+
return AddressDtoFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AddressDtoFromJSONTyped(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
|
+
'subdivisionCode': !exists(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
|
|
36
|
+
'streetAddress2': !exists(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
37
|
+
};
|
|
38
|
+
return removeNullUndefined(typed);
|
|
39
|
+
}
|
|
40
|
+
export function AddressDtoToJSON(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
|
+
'subdivisionCode': value.subdivisionCode,
|
|
54
|
+
'streetAddress2': value.streetAddress2,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -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 AddressEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface AddressEntity {
|
|
13
|
+
/**
|
|
14
|
+
* The city of the address
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof AddressEntity
|
|
17
|
+
*/
|
|
18
|
+
city: string;
|
|
19
|
+
/**
|
|
20
|
+
* The country code of the address
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AddressEntity
|
|
23
|
+
*/
|
|
24
|
+
countryCode: string;
|
|
25
|
+
/**
|
|
26
|
+
* The postal code of the address
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AddressEntity
|
|
29
|
+
*/
|
|
30
|
+
postalCode: string;
|
|
31
|
+
/**
|
|
32
|
+
* The subdivision (state, province, or region) of the address
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AddressEntity
|
|
35
|
+
*/
|
|
36
|
+
subdivision: string;
|
|
37
|
+
/**
|
|
38
|
+
* The street address of the address
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AddressEntity
|
|
41
|
+
*/
|
|
42
|
+
streetAddress: string;
|
|
43
|
+
/**
|
|
44
|
+
* The optional second line of the street address
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AddressEntity
|
|
47
|
+
*/
|
|
48
|
+
streetAddress2?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The optional subdivision code of the address
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AddressEntity
|
|
53
|
+
*/
|
|
54
|
+
subdivisionCode?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the AddressEntity interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfAddressEntity(value: object): boolean;
|
|
60
|
+
export declare function AddressEntityFromJSON(json: any): AddressEntity;
|
|
61
|
+
export declare function AddressEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressEntity;
|
|
62
|
+
export declare function AddressEntityToJSON(value?: AddressEntity | 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 AddressEntity interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfAddressEntity(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 AddressEntityFromJSON(json) {
|
|
23
|
+
return AddressEntityFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function AddressEntityFromJSONTyped(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 AddressEntityToJSON(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,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 BuyerAddressEntity
|
|
11
|
+
*/
|
|
12
|
+
export interface BuyerAddressEntity {
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @type {string}
|
|
16
|
+
* @memberof BuyerAddressEntity
|
|
17
|
+
*/
|
|
18
|
+
city?: string;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BuyerAddressEntity
|
|
23
|
+
*/
|
|
24
|
+
countryCode?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof BuyerAddressEntity
|
|
29
|
+
*/
|
|
30
|
+
postalCode?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof BuyerAddressEntity
|
|
35
|
+
*/
|
|
36
|
+
subdivision?: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof BuyerAddressEntity
|
|
41
|
+
*/
|
|
42
|
+
streetAddress?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof BuyerAddressEntity
|
|
47
|
+
*/
|
|
48
|
+
streetAddress2?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof BuyerAddressEntity
|
|
53
|
+
*/
|
|
54
|
+
subdivisionCode?: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Check if a given object implements the BuyerAddressEntity interface.
|
|
58
|
+
*/
|
|
59
|
+
export declare function instanceOfBuyerAddressEntity(value: object): boolean;
|
|
60
|
+
export declare function BuyerAddressEntityFromJSON(json: any): BuyerAddressEntity;
|
|
61
|
+
export declare function BuyerAddressEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerAddressEntity;
|
|
62
|
+
export declare function BuyerAddressEntityToJSON(value?: BuyerAddressEntity | 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
|
+
/**
|
|
11
|
+
* Check if a given object implements the BuyerAddressEntity interface.
|
|
12
|
+
*/
|
|
13
|
+
export function instanceOfBuyerAddressEntity(value) {
|
|
14
|
+
let isInstance = true;
|
|
15
|
+
return isInstance;
|
|
16
|
+
}
|
|
17
|
+
export function BuyerAddressEntityFromJSON(json) {
|
|
18
|
+
return BuyerAddressEntityFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
export function BuyerAddressEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
21
|
+
if ((json === undefined) || (json === null)) {
|
|
22
|
+
return json;
|
|
23
|
+
}
|
|
24
|
+
const typed = {
|
|
25
|
+
'city': !exists(json, 'city') ? undefined : json['city'],
|
|
26
|
+
'countryCode': !exists(json, 'countryCode') ? undefined : json['countryCode'],
|
|
27
|
+
'postalCode': !exists(json, 'postalCode') ? undefined : json['postalCode'],
|
|
28
|
+
'subdivision': !exists(json, 'subdivision') ? undefined : json['subdivision'],
|
|
29
|
+
'streetAddress': !exists(json, 'streetAddress') ? undefined : json['streetAddress'],
|
|
30
|
+
'streetAddress2': !exists(json, 'streetAddress2') ? undefined : json['streetAddress2'],
|
|
31
|
+
'subdivisionCode': !exists(json, 'subdivisionCode') ? undefined : json['subdivisionCode'],
|
|
32
|
+
};
|
|
33
|
+
return removeNullUndefined(typed);
|
|
34
|
+
}
|
|
35
|
+
export function BuyerAddressEntityToJSON(value) {
|
|
36
|
+
if (value === undefined) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
if (value === null) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'city': value.city,
|
|
44
|
+
'countryCode': value.countryCode,
|
|
45
|
+
'postalCode': value.postalCode,
|
|
46
|
+
'subdivision': value.subdivision,
|
|
47
|
+
'streetAddress': value.streetAddress,
|
|
48
|
+
'streetAddress2': value.streetAddress2,
|
|
49
|
+
'subdivisionCode': value.subdivisionCode,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { BuyerEntityAddress } from './BuyerEntityAddress';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface BuyerEntity
|
|
12
|
+
*/
|
|
13
|
+
export interface BuyerEntity {
|
|
14
|
+
/**
|
|
15
|
+
* The buyer ID
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof BuyerEntity
|
|
18
|
+
*/
|
|
19
|
+
buyerId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The merchant ID
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof BuyerEntity
|
|
24
|
+
*/
|
|
25
|
+
merchantId: string;
|
|
26
|
+
/**
|
|
27
|
+
* The given name
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BuyerEntity
|
|
30
|
+
*/
|
|
31
|
+
givenName: string;
|
|
32
|
+
/**
|
|
33
|
+
* The family name
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BuyerEntity
|
|
36
|
+
*/
|
|
37
|
+
familyName: string;
|
|
38
|
+
/**
|
|
39
|
+
* The email address
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof BuyerEntity
|
|
42
|
+
*/
|
|
43
|
+
email: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {BuyerEntityAddress}
|
|
47
|
+
* @memberof BuyerEntity
|
|
48
|
+
*/
|
|
49
|
+
address: BuyerEntityAddress;
|
|
50
|
+
/**
|
|
51
|
+
* The phone number
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof BuyerEntity
|
|
54
|
+
*/
|
|
55
|
+
phoneNumber?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The external buyer ID
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof BuyerEntity
|
|
60
|
+
*/
|
|
61
|
+
externalBuyerId?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The date the buyer was created
|
|
64
|
+
* @type {Date}
|
|
65
|
+
* @memberof BuyerEntity
|
|
66
|
+
*/
|
|
67
|
+
createdAt?: Date;
|
|
68
|
+
/**
|
|
69
|
+
* The date the buyer was last updated
|
|
70
|
+
* @type {Date}
|
|
71
|
+
* @memberof BuyerEntity
|
|
72
|
+
*/
|
|
73
|
+
updatedAt?: Date;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the BuyerEntity interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfBuyerEntity(value: object): boolean;
|
|
79
|
+
export declare function BuyerEntityFromJSON(json: any): BuyerEntity;
|
|
80
|
+
export declare function BuyerEntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerEntity;
|
|
81
|
+
export declare function BuyerEntityToJSON(value?: BuyerEntity | null): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
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 { BuyerEntityAddressFromJSON, BuyerEntityAddressToJSON, } from './BuyerEntityAddress';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the BuyerEntity interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfBuyerEntity(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "buyerId" in value;
|
|
17
|
+
isInstance = isInstance && "merchantId" in value;
|
|
18
|
+
isInstance = isInstance && "givenName" in value;
|
|
19
|
+
isInstance = isInstance && "familyName" in value;
|
|
20
|
+
isInstance = isInstance && "email" in value;
|
|
21
|
+
isInstance = isInstance && "address" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function BuyerEntityFromJSON(json) {
|
|
25
|
+
return BuyerEntityFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function BuyerEntityFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'buyerId': json['buyerId'],
|
|
33
|
+
'merchantId': json['merchantId'],
|
|
34
|
+
'givenName': json['givenName'],
|
|
35
|
+
'familyName': json['familyName'],
|
|
36
|
+
'email': json['email'],
|
|
37
|
+
'address': BuyerEntityAddressFromJSON(json['address']),
|
|
38
|
+
'phoneNumber': !exists(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
39
|
+
'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
40
|
+
'createdAt': !exists(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
|
|
41
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
42
|
+
};
|
|
43
|
+
return removeNullUndefined(typed);
|
|
44
|
+
}
|
|
45
|
+
export function BuyerEntityToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'buyerId': value.buyerId,
|
|
54
|
+
'merchantId': value.merchantId,
|
|
55
|
+
'givenName': value.givenName,
|
|
56
|
+
'familyName': value.familyName,
|
|
57
|
+
'email': value.email,
|
|
58
|
+
'address': BuyerEntityAddressToJSON(value.address),
|
|
59
|
+
'phoneNumber': value.phoneNumber,
|
|
60
|
+
'externalBuyerId': value.externalBuyerId,
|
|
61
|
+
'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
|
|
62
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Channel Payments API
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This class is auto generated. Do not edit the class manually.
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
import type { BuyerEntityAddress } from './BuyerEntityAddress';
|
|
8
|
+
/**
|
|
9
|
+
*
|
|
10
|
+
* @export
|
|
11
|
+
* @interface BuyerEntity1
|
|
12
|
+
*/
|
|
13
|
+
export interface BuyerEntity1 {
|
|
14
|
+
/**
|
|
15
|
+
* The buyer ID
|
|
16
|
+
* @type {string}
|
|
17
|
+
* @memberof BuyerEntity1
|
|
18
|
+
*/
|
|
19
|
+
buyerId: string;
|
|
20
|
+
/**
|
|
21
|
+
* The merchant ID
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof BuyerEntity1
|
|
24
|
+
*/
|
|
25
|
+
merchantId: string;
|
|
26
|
+
/**
|
|
27
|
+
* The given name
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BuyerEntity1
|
|
30
|
+
*/
|
|
31
|
+
givenName: string;
|
|
32
|
+
/**
|
|
33
|
+
* The family name
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BuyerEntity1
|
|
36
|
+
*/
|
|
37
|
+
familyName: string;
|
|
38
|
+
/**
|
|
39
|
+
* The email address
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof BuyerEntity1
|
|
42
|
+
*/
|
|
43
|
+
email: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {BuyerEntityAddress}
|
|
47
|
+
* @memberof BuyerEntity1
|
|
48
|
+
*/
|
|
49
|
+
address: BuyerEntityAddress;
|
|
50
|
+
/**
|
|
51
|
+
* The phone number
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof BuyerEntity1
|
|
54
|
+
*/
|
|
55
|
+
phoneNumber?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The external buyer ID
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof BuyerEntity1
|
|
60
|
+
*/
|
|
61
|
+
externalBuyerId?: string;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Check if a given object implements the BuyerEntity1 interface.
|
|
65
|
+
*/
|
|
66
|
+
export declare function instanceOfBuyerEntity1(value: object): boolean;
|
|
67
|
+
export declare function BuyerEntity1FromJSON(json: any): BuyerEntity1;
|
|
68
|
+
export declare function BuyerEntity1FromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerEntity1;
|
|
69
|
+
export declare function BuyerEntity1ToJSON(value?: BuyerEntity1 | 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 { exists, removeNullUndefined } from '../runtime';
|
|
10
|
+
import { BuyerEntityAddressFromJSON, BuyerEntityAddressToJSON, } from './BuyerEntityAddress';
|
|
11
|
+
/**
|
|
12
|
+
* Check if a given object implements the BuyerEntity1 interface.
|
|
13
|
+
*/
|
|
14
|
+
export function instanceOfBuyerEntity1(value) {
|
|
15
|
+
let isInstance = true;
|
|
16
|
+
isInstance = isInstance && "buyerId" in value;
|
|
17
|
+
isInstance = isInstance && "merchantId" in value;
|
|
18
|
+
isInstance = isInstance && "givenName" in value;
|
|
19
|
+
isInstance = isInstance && "familyName" in value;
|
|
20
|
+
isInstance = isInstance && "email" in value;
|
|
21
|
+
isInstance = isInstance && "address" in value;
|
|
22
|
+
return isInstance;
|
|
23
|
+
}
|
|
24
|
+
export function BuyerEntity1FromJSON(json) {
|
|
25
|
+
return BuyerEntity1FromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function BuyerEntity1FromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
const typed = {
|
|
32
|
+
'buyerId': json['buyerId'],
|
|
33
|
+
'merchantId': json['merchantId'],
|
|
34
|
+
'givenName': json['givenName'],
|
|
35
|
+
'familyName': json['familyName'],
|
|
36
|
+
'email': json['email'],
|
|
37
|
+
'address': BuyerEntityAddressFromJSON(json['address']),
|
|
38
|
+
'phoneNumber': !exists(json, 'phoneNumber') ? undefined : json['phoneNumber'],
|
|
39
|
+
'externalBuyerId': !exists(json, 'externalBuyerId') ? undefined : json['externalBuyerId'],
|
|
40
|
+
};
|
|
41
|
+
return removeNullUndefined(typed);
|
|
42
|
+
}
|
|
43
|
+
export function BuyerEntity1ToJSON(value) {
|
|
44
|
+
if (value === undefined) {
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
if (value === null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'buyerId': value.buyerId,
|
|
52
|
+
'merchantId': value.merchantId,
|
|
53
|
+
'givenName': value.givenName,
|
|
54
|
+
'familyName': value.familyName,
|
|
55
|
+
'email': value.email,
|
|
56
|
+
'address': BuyerEntityAddressToJSON(value.address),
|
|
57
|
+
'phoneNumber': value.phoneNumber,
|
|
58
|
+
'externalBuyerId': value.externalBuyerId,
|
|
59
|
+
};
|
|
60
|
+
}
|