/** * NOTE: This class is auto generated by DANA Indonesia. * Do not edit the class manually. */ import type { ValidationErrorContext } from '../../../runtime'; import type { BusinessDocs } from './BusinessDocs'; import type { UserName } from './UserName'; import type { MobileNoInfo } from './MobileNoInfo'; import type { PicInfo } from './PicInfo'; import type { AddressInfo } from './AddressInfo'; /** * * @export * @interface CreateShopRequest */ export interface CreateShopRequest { /** * Merchant id * @type {string} * @memberof CreateShopRequest */ merchantId: string; /** * Parent division ID. Required when shopParentType is DIVISION or EXTERNAL_DIVISION * @type {string} * @memberof CreateShopRequest */ parentDivisionId?: string; /** * Parent type for the shop * @type {string} * @memberof CreateShopRequest */ shopParentType: CreateShopRequestShopParentTypeEnum; /** * Shop name * @type {string} * @memberof CreateShopRequest */ mainName: string; /** * * @type {AddressInfo} * @memberof CreateShopRequest */ shopAddress?: AddressInfo; /** * Shop description * @type {string} * @memberof CreateShopRequest */ shopDesc?: string; /** * External shop identifier * @type {string} * @memberof CreateShopRequest */ externalShopId: string; /** * Logo images encoded in base64. Keys can be LOGO, PC_LOGO, MOBILE_LOGO. Images must be PNG format. * @type {{ [key: string]: string; }} * @memberof CreateShopRequest */ logoUrlMap?: { [key: string]: string; }; /** * MCC codes * @type {Array} * @memberof CreateShopRequest */ mccCodes?: Array; /** * Size type of the shop * @type {string} * @memberof CreateShopRequest */ sizeType: CreateShopRequestSizeTypeEnum; /** * Longitude * @type {string} * @memberof CreateShopRequest */ ln?: string; /** * Latitude * @type {string} * @memberof CreateShopRequest */ lat?: string; /** * Tax number (NPWP). Must be 15 digits * @type {string} * @memberof CreateShopRequest */ taxNo?: string; /** * Legal name/tax name * @type {string} * @memberof CreateShopRequest */ brandName?: string; /** * * @type {AddressInfo} * @memberof CreateShopRequest */ taxAddress?: AddressInfo; /** * Flag for loyalty category * @type {string} * @memberof CreateShopRequest */ loyalty?: CreateShopRequestLoyaltyEnum; /** * API version flag. Use > 2 for new attributes * @type {string} * @memberof CreateShopRequest */ apiVersion?: string; /** * Business entity type. Required if apiVersion > 2 * @type {string} * @memberof CreateShopRequest */ businessEntity?: CreateShopRequestBusinessEntityEnum; /** * Business documents. Required if apiVersion > 2 * @type {Array} * @memberof CreateShopRequest */ businessDocs?: Array; /** * * @type {UserName} * @memberof CreateShopRequest */ ownerName?: UserName; /** * Owner ID type. Required if apiVersion > 2 * @type {string} * @memberof CreateShopRequest */ ownerIdType?: CreateShopRequestOwnerIdTypeEnum; /** * Owner ID number. Required if apiVersion > 2 * @type {string} * @memberof CreateShopRequest */ ownerIdNo?: string; /** * * @type {AddressInfo} * @memberof CreateShopRequest */ ownerAddress?: AddressInfo; /** * * @type {MobileNoInfo} * @memberof CreateShopRequest */ ownerPhoneNumber?: MobileNoInfo; /** * Shop ownership type. Required if apiVersion > 2 * @type {string} * @memberof CreateShopRequest */ shopOwning?: CreateShopRequestShopOwningEnum; /** * Device number. Required if apiVersion > 2 * @type {string} * @memberof CreateShopRequest */ deviceNumber?: string; /** * POS number. Required if apiVersion > 2 * @type {string} * @memberof CreateShopRequest */ posNumber?: string; /** * Director PICs. Required if apiVersion > 2 * @type {Array} * @memberof CreateShopRequest */ directorPics?: Array; /** * Non-director PICs. Required if apiVersion > 2 * @type {Array} * @memberof CreateShopRequest */ nonDirectorPics?: Array; /** * Shop business type * @type {string} * @memberof CreateShopRequest */ shopBizType?: string; /** * Extended information * @type {{ [key: string]: any; }} * @memberof CreateShopRequest */ extInfo?: { [key: string]: any; }; } /** * @export */ export declare const CreateShopRequestShopParentTypeEnum: { readonly Merchant: "MERCHANT"; readonly Division: "DIVISION"; readonly ExternalDivision: "EXTERNAL_DIVISION"; }; export type CreateShopRequestShopParentTypeEnum = typeof CreateShopRequestShopParentTypeEnum[keyof typeof CreateShopRequestShopParentTypeEnum] | ''; /** * @export */ export declare const CreateShopRequestSizeTypeEnum: { readonly Umi: "UMI"; readonly Uke: "UKE"; readonly Ume: "UME"; readonly Ube: "UBE"; readonly Ure: "URE"; }; export type CreateShopRequestSizeTypeEnum = typeof CreateShopRequestSizeTypeEnum[keyof typeof CreateShopRequestSizeTypeEnum] | ''; /** * @export */ export declare const CreateShopRequestLoyaltyEnum: { readonly True: "true"; readonly False: "false"; }; export type CreateShopRequestLoyaltyEnum = typeof CreateShopRequestLoyaltyEnum[keyof typeof CreateShopRequestLoyaltyEnum] | ''; /** * @export */ export declare const CreateShopRequestBusinessEntityEnum: { readonly Pt: "pt"; readonly Cv: "cv"; readonly Individu: "individu"; readonly UsahaDagang: "usaha_dagang"; readonly Yayasan: "yayasan"; readonly Koperasi: "koperasi"; }; export type CreateShopRequestBusinessEntityEnum = typeof CreateShopRequestBusinessEntityEnum[keyof typeof CreateShopRequestBusinessEntityEnum] | ''; /** * @export */ export declare const CreateShopRequestOwnerIdTypeEnum: { readonly Ktp: "KTP"; readonly Sim: "SIM"; readonly Passport: "PASSPORT"; readonly Siup: "SIUP"; readonly Nib: "NIB"; }; export type CreateShopRequestOwnerIdTypeEnum = typeof CreateShopRequestOwnerIdTypeEnum[keyof typeof CreateShopRequestOwnerIdTypeEnum] | ''; /** * @export */ export declare const CreateShopRequestShopOwningEnum: { readonly DirectOwned: "DIRECT_OWNED"; readonly Franchised: "FRANCHISED"; }; export type CreateShopRequestShopOwningEnum = typeof CreateShopRequestShopOwningEnum[keyof typeof CreateShopRequestShopOwningEnum] | ''; /** * Check if a given object implements the CreateShopRequest interface. */ export declare function instanceOfCreateShopRequest(value: object): value is CreateShopRequest; export declare function CreateShopRequestFromJSON(json: any): CreateShopRequest; export declare function CreateShopRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateShopRequest; export declare function CreateShopRequestToJSON(json: any): CreateShopRequest; export declare function CreateShopRequestToJSONTyped(value?: CreateShopRequest | null, ignoreDiscriminator?: boolean): any; export declare function validateCreateShopRequest(value: CreateShopRequest): ValidationErrorContext[];