UNPKG

whalecloud-dxp-api-react-native

Version:

This section explains how to use the SDK and illustrates it with an example: - This chapter is essential to learn - For specific business development, see [Bussiness Scenario](https://www.digchan.info/en-US/dxp/user-sso/sign-up) - The Business Scenario pr

556 lines (506 loc) 33.1 kB
/* tslint:disable */ /* eslint-disable */ /** * DXP API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore import type { QueryCustomerAddressesResp } from '../models'; // @ts-ignore import type { QueryCustomerAttachmentsResp } from '../models'; // @ts-ignore import type { QueryCustomerAttributesResp } from '../models'; // @ts-ignore import type { QueryCustomerContactsResp } from '../models'; // @ts-ignore import type { QueryCustomerDetailResp } from '../models'; // @ts-ignore import type { QueryIdentificationTypesResp } from '../models'; /** * CustomerManagementApi - axios parameter creator * @export */ export const CustomerManagementApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * Query customer address list based on customer number. * @summary Query Customer Addresses * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersCustNbrAddressesGet: async (custNbr: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { // verify required parameter 'custNbr' is not null or undefined assertParamExists('dxpCustomerManagementV1CustomersCustNbrAddressesGet', 'custNbr', custNbr) const localVarPath = `/dxp/customer-management/v1/customers/{custNbr}/addresses` .replace(`{${"custNbr"}}`, encodeURIComponent(String(custNbr))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Query customer attachment list based on customer number * @summary Query Customer Attachments * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersCustNbrAttachmentsGet: async (custNbr: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { // verify required parameter 'custNbr' is not null or undefined assertParamExists('dxpCustomerManagementV1CustomersCustNbrAttachmentsGet', 'custNbr', custNbr) const localVarPath = `/dxp/customer-management/v1/customers/{custNbr}/attachments` .replace(`{${"custNbr"}}`, encodeURIComponent(String(custNbr))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Query customer attribute list based on customer number. * @summary Query Customer Attributes * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersCustNbrAttributesGet: async (custNbr: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { // verify required parameter 'custNbr' is not null or undefined assertParamExists('dxpCustomerManagementV1CustomersCustNbrAttributesGet', 'custNbr', custNbr) const localVarPath = `/dxp/customer-management/v1/customers/{custNbr}/attributes` .replace(`{${"custNbr"}}`, encodeURIComponent(String(custNbr))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Query customer contact list based on customer number. * @summary Query Customer Contacts * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersCustNbrContactsGet: async (custNbr: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { // verify required parameter 'custNbr' is not null or undefined assertParamExists('dxpCustomerManagementV1CustomersCustNbrContactsGet', 'custNbr', custNbr) const localVarPath = `/dxp/customer-management/v1/customers/{custNbr}/contacts` .replace(`{${"custNbr"}}`, encodeURIComponent(String(custNbr))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Query customer details based on customer number. Note: Returns basic customer details, only one customer address is retained. For a list of customer addresses, call the query customer addresses API separately. For customer attachments, customer contacts, and customer certifications, call their respective APIs separately. * @summary Query Customer Detail * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersCustNbrGet: async (custNbr: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { // verify required parameter 'custNbr' is not null or undefined assertParamExists('dxpCustomerManagementV1CustomersCustNbrGet', 'custNbr', custNbr) const localVarPath = `/dxp/customer-management/v1/customers/{custNbr}` .replace(`{${"custNbr"}}`, encodeURIComponent(String(custNbr))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Query the list of certification types. * @summary Query Identification Types * @param {string} [custType] The type of customer, which can indicate whether the customer is an individual or a corporate customer. Possible values are: / A: Individual Customer/ B: Corporate Customer * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersIdentificationTypesGet: async (custType?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { const localVarPath = `/dxp/customer-management/v1/customers/identification-types`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (custType !== undefined) { localVarQueryParameter['custType'] = custType; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * CustomerManagementApi - functional programming interface * @export */ export const CustomerManagementApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CustomerManagementApiAxiosParamCreator(configuration) return { /** * Query customer address list based on customer number. * @summary Query Customer Addresses * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async dxpCustomerManagementV1CustomersCustNbrAddressesGet(custNbr: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryCustomerAddressesResp>> { const localVarAxiosArgs = await localVarAxiosParamCreator.dxpCustomerManagementV1CustomersCustNbrAddressesGet(custNbr, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CustomerManagementApi.dxpCustomerManagementV1CustomersCustNbrAddressesGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Query customer attachment list based on customer number * @summary Query Customer Attachments * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async dxpCustomerManagementV1CustomersCustNbrAttachmentsGet(custNbr: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryCustomerAttachmentsResp>> { const localVarAxiosArgs = await localVarAxiosParamCreator.dxpCustomerManagementV1CustomersCustNbrAttachmentsGet(custNbr, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CustomerManagementApi.dxpCustomerManagementV1CustomersCustNbrAttachmentsGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Query customer attribute list based on customer number. * @summary Query Customer Attributes * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async dxpCustomerManagementV1CustomersCustNbrAttributesGet(custNbr: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryCustomerAttributesResp>> { const localVarAxiosArgs = await localVarAxiosParamCreator.dxpCustomerManagementV1CustomersCustNbrAttributesGet(custNbr, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CustomerManagementApi.dxpCustomerManagementV1CustomersCustNbrAttributesGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Query customer contact list based on customer number. * @summary Query Customer Contacts * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async dxpCustomerManagementV1CustomersCustNbrContactsGet(custNbr: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryCustomerContactsResp>> { const localVarAxiosArgs = await localVarAxiosParamCreator.dxpCustomerManagementV1CustomersCustNbrContactsGet(custNbr, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CustomerManagementApi.dxpCustomerManagementV1CustomersCustNbrContactsGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Query customer details based on customer number. Note: Returns basic customer details, only one customer address is retained. For a list of customer addresses, call the query customer addresses API separately. For customer attachments, customer contacts, and customer certifications, call their respective APIs separately. * @summary Query Customer Detail * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async dxpCustomerManagementV1CustomersCustNbrGet(custNbr: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryCustomerDetailResp>> { const localVarAxiosArgs = await localVarAxiosParamCreator.dxpCustomerManagementV1CustomersCustNbrGet(custNbr, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CustomerManagementApi.dxpCustomerManagementV1CustomersCustNbrGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Query the list of certification types. * @summary Query Identification Types * @param {string} [custType] The type of customer, which can indicate whether the customer is an individual or a corporate customer. Possible values are: / A: Individual Customer/ B: Corporate Customer * @param {*} [options] Override http request option. * @throws {RequiredError} */ async dxpCustomerManagementV1CustomersIdentificationTypesGet(custType?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QueryIdentificationTypesResp>> { const localVarAxiosArgs = await localVarAxiosParamCreator.dxpCustomerManagementV1CustomersIdentificationTypesGet(custType, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['CustomerManagementApi.dxpCustomerManagementV1CustomersIdentificationTypesGet']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * CustomerManagementApi - factory interface * @export */ export const CustomerManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = CustomerManagementApiFp(configuration) return { /** * Query customer address list based on customer number. * @summary Query Customer Addresses * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersCustNbrAddressesGet(custNbr: string, options?: any): AxiosPromise<QueryCustomerAddressesResp> { return localVarFp.dxpCustomerManagementV1CustomersCustNbrAddressesGet(custNbr, options).then((request) => request(axios, basePath)); }, /** * Query customer attachment list based on customer number * @summary Query Customer Attachments * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersCustNbrAttachmentsGet(custNbr: string, options?: any): AxiosPromise<QueryCustomerAttachmentsResp> { return localVarFp.dxpCustomerManagementV1CustomersCustNbrAttachmentsGet(custNbr, options).then((request) => request(axios, basePath)); }, /** * Query customer attribute list based on customer number. * @summary Query Customer Attributes * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersCustNbrAttributesGet(custNbr: string, options?: any): AxiosPromise<QueryCustomerAttributesResp> { return localVarFp.dxpCustomerManagementV1CustomersCustNbrAttributesGet(custNbr, options).then((request) => request(axios, basePath)); }, /** * Query customer contact list based on customer number. * @summary Query Customer Contacts * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersCustNbrContactsGet(custNbr: string, options?: any): AxiosPromise<QueryCustomerContactsResp> { return localVarFp.dxpCustomerManagementV1CustomersCustNbrContactsGet(custNbr, options).then((request) => request(axios, basePath)); }, /** * Query customer details based on customer number. Note: Returns basic customer details, only one customer address is retained. For a list of customer addresses, call the query customer addresses API separately. For customer attachments, customer contacts, and customer certifications, call their respective APIs separately. * @summary Query Customer Detail * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersCustNbrGet(custNbr: string, options?: any): AxiosPromise<QueryCustomerDetailResp> { return localVarFp.dxpCustomerManagementV1CustomersCustNbrGet(custNbr, options).then((request) => request(axios, basePath)); }, /** * Query the list of certification types. * @summary Query Identification Types * @param {string} [custType] The type of customer, which can indicate whether the customer is an individual or a corporate customer. Possible values are: / A: Individual Customer/ B: Corporate Customer * @param {*} [options] Override http request option. * @throws {RequiredError} */ dxpCustomerManagementV1CustomersIdentificationTypesGet(custType?: string, options?: any): AxiosPromise<QueryIdentificationTypesResp> { return localVarFp.dxpCustomerManagementV1CustomersIdentificationTypesGet(custType, options).then((request) => request(axios, basePath)); }, }; }; /** * CustomerManagementApi - interface * @export * @interface CustomerManagementApi */ export interface CustomerManagementApiInterface { /** * Query customer address list based on customer number. * @summary Query Customer Addresses * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApiInterface */ dxpCustomerManagementV1CustomersCustNbrAddressesGet(custNbr: string, options?: RawAxiosRequestConfig): AxiosPromise<QueryCustomerAddressesResp>; /** * Query customer attachment list based on customer number * @summary Query Customer Attachments * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApiInterface */ dxpCustomerManagementV1CustomersCustNbrAttachmentsGet(custNbr: string, options?: RawAxiosRequestConfig): AxiosPromise<QueryCustomerAttachmentsResp>; /** * Query customer attribute list based on customer number. * @summary Query Customer Attributes * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApiInterface */ dxpCustomerManagementV1CustomersCustNbrAttributesGet(custNbr: string, options?: RawAxiosRequestConfig): AxiosPromise<QueryCustomerAttributesResp>; /** * Query customer contact list based on customer number. * @summary Query Customer Contacts * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApiInterface */ dxpCustomerManagementV1CustomersCustNbrContactsGet(custNbr: string, options?: RawAxiosRequestConfig): AxiosPromise<QueryCustomerContactsResp>; /** * Query customer details based on customer number. Note: Returns basic customer details, only one customer address is retained. For a list of customer addresses, call the query customer addresses API separately. For customer attachments, customer contacts, and customer certifications, call their respective APIs separately. * @summary Query Customer Detail * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApiInterface */ dxpCustomerManagementV1CustomersCustNbrGet(custNbr: string, options?: RawAxiosRequestConfig): AxiosPromise<QueryCustomerDetailResp>; /** * Query the list of certification types. * @summary Query Identification Types * @param {string} [custType] The type of customer, which can indicate whether the customer is an individual or a corporate customer. Possible values are: / A: Individual Customer/ B: Corporate Customer * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApiInterface */ dxpCustomerManagementV1CustomersIdentificationTypesGet(custType?: string, options?: RawAxiosRequestConfig): AxiosPromise<QueryIdentificationTypesResp>; } /** * CustomerManagementApi - object-oriented interface * @export * @class CustomerManagementApi * @extends {BaseAPI} */ export class CustomerManagementApi extends BaseAPI implements CustomerManagementApiInterface { /** * Query customer address list based on customer number. * @summary Query Customer Addresses * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApi */ public dxpCustomerManagementV1CustomersCustNbrAddressesGet(custNbr: string, options?: RawAxiosRequestConfig) { return CustomerManagementApiFp(this.configuration).dxpCustomerManagementV1CustomersCustNbrAddressesGet(custNbr, options).then((request) => request(this.axios, this.basePath)); } /** * Query customer attachment list based on customer number * @summary Query Customer Attachments * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApi */ public dxpCustomerManagementV1CustomersCustNbrAttachmentsGet(custNbr: string, options?: RawAxiosRequestConfig) { return CustomerManagementApiFp(this.configuration).dxpCustomerManagementV1CustomersCustNbrAttachmentsGet(custNbr, options).then((request) => request(this.axios, this.basePath)); } /** * Query customer attribute list based on customer number. * @summary Query Customer Attributes * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApi */ public dxpCustomerManagementV1CustomersCustNbrAttributesGet(custNbr: string, options?: RawAxiosRequestConfig) { return CustomerManagementApiFp(this.configuration).dxpCustomerManagementV1CustomersCustNbrAttributesGet(custNbr, options).then((request) => request(this.axios, this.basePath)); } /** * Query customer contact list based on customer number. * @summary Query Customer Contacts * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApi */ public dxpCustomerManagementV1CustomersCustNbrContactsGet(custNbr: string, options?: RawAxiosRequestConfig) { return CustomerManagementApiFp(this.configuration).dxpCustomerManagementV1CustomersCustNbrContactsGet(custNbr, options).then((request) => request(this.axios, this.basePath)); } /** * Query customer details based on customer number. Note: Returns basic customer details, only one customer address is retained. For a list of customer addresses, call the query customer addresses API separately. For customer attachments, customer contacts, and customer certifications, call their respective APIs separately. * @summary Query Customer Detail * @param {string} custNbr The unique customer code, used for uniquely identifying the customer in business operations. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApi */ public dxpCustomerManagementV1CustomersCustNbrGet(custNbr: string, options?: RawAxiosRequestConfig) { return CustomerManagementApiFp(this.configuration).dxpCustomerManagementV1CustomersCustNbrGet(custNbr, options).then((request) => request(this.axios, this.basePath)); } /** * Query the list of certification types. * @summary Query Identification Types * @param {string} [custType] The type of customer, which can indicate whether the customer is an individual or a corporate customer. Possible values are: / A: Individual Customer/ B: Corporate Customer * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CustomerManagementApi */ public dxpCustomerManagementV1CustomersIdentificationTypesGet(custType?: string, options?: RawAxiosRequestConfig) { return CustomerManagementApiFp(this.configuration).dxpCustomerManagementV1CustomersIdentificationTypesGet(custType, options).then((request) => request(this.axios, this.basePath)); } }