├── .gitattributes ├── Migration_Guide.md ├── README.md ├── composer.json └── src ├── com └── zoho │ ├── api │ ├── authenticator │ │ ├── OAuthToken.php │ │ ├── Token.php │ │ └── store │ │ │ ├── DBStore.php │ │ │ ├── FileStore.php │ │ │ └── TokenStore.php │ └── logger │ │ ├── Levels.php │ │ ├── Logger.php │ │ └── SDKLogger.php │ └── crm │ └── api │ ├── Header.php │ ├── HeaderMap.php │ ├── Initializer.php │ ├── Param.php │ ├── ParameterMap.php │ ├── RequestProxy.php │ ├── SDKConfigBuilder.php │ ├── UserSignature.php │ ├── attachments │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── Attachment.php │ ├── AttachmentsOperations.php │ ├── DeleteAttachmentsParam.php │ ├── FileBodyWrapper.php │ ├── GetAttachmentsParam.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── SuccessResponse.php │ └── UploadLinkAttachmentParam.php │ ├── blueprint │ ├── APIException.php │ ├── ActionResponse.php │ ├── BluePrint.php │ ├── BluePrintOperations.php │ ├── BodyWrapper.php │ ├── NextTransition.php │ ├── ProcessInfo.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── SuccessResponse.php │ ├── Transition.php │ └── ValidationError.php │ ├── bulkread │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BulkReadOperations.php │ ├── CallBack.php │ ├── Criteria.php │ ├── FileBodyWrapper.php │ ├── JobDetail.php │ ├── Query.php │ ├── RequestWrapper.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── Result.php │ └── SuccessResponse.php │ ├── bulkwrite │ ├── APIException.php │ ├── ActionResponse.php │ ├── BulkWriteOperations.php │ ├── BulkWriteResponse.php │ ├── CallBack.php │ ├── FieldMapping.php │ ├── File.php │ ├── FileBodyWrapper.php │ ├── RequestWrapper.php │ ├── Resource.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── Result.php │ ├── SuccessResponse.php │ └── UploadFileHeader.php │ ├── contactroles │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BodyWrapper.php │ ├── ContactRole.php │ ├── ContactRolesOperations.php │ ├── DeleteContactRolesParam.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ └── SuccessResponse.php │ ├── currencies │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BaseCurrencyActionHandler.php │ ├── BaseCurrencyActionWrapper.php │ ├── BaseCurrencyWrapper.php │ ├── BodyWrapper.php │ ├── CurrenciesOperations.php │ ├── Currency.php │ ├── Format.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ └── SuccessResponse.php │ ├── customviews │ ├── APIException.php │ ├── Criteria.php │ ├── CustomView.php │ ├── CustomViewsOperations.php │ ├── GetCustomViewParam.php │ ├── GetCustomViewsParam.php │ ├── Info.php │ ├── Range.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── SharedDetails.php │ └── Translation.php │ ├── dc │ ├── AUDataCenter.php │ ├── CNDataCenter.php │ ├── DataCenter.php │ ├── EUDataCenter.php │ ├── INDataCenter.php │ └── USDataCenter.php │ ├── exception │ └── SDKException.php │ ├── fields │ ├── APIException.php │ ├── AssociationDetails.php │ ├── AutoNumber.php │ ├── Crypt.php │ ├── Currency.php │ ├── Field.php │ ├── FieldsOperations.php │ ├── Formula.php │ ├── GetFieldParam.php │ ├── GetFieldsParam.php │ ├── LookupField.php │ ├── Module.php │ ├── MultiSelectLookup.php │ ├── PickListValue.php │ ├── Private1.php │ ├── RelatedDetails.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── ToolTip.php │ ├── Unique.php │ └── ViewType.php │ ├── file │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BodyWrapper.php │ ├── FileBodyWrapper.php │ ├── FileOperations.php │ ├── GetFileParam.php │ ├── ResponseHandler.php │ ├── SuccessResponse.php │ └── UploadFilesParam.php │ ├── layouts │ ├── APIException.php │ ├── GetLayoutParam.php │ ├── GetLayoutsParam.php │ ├── Layout.php │ ├── LayoutsOperations.php │ ├── Properties.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ └── Section.php │ ├── modules │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── Argument.php │ ├── BodyWrapper.php │ ├── GetModulesHeader.php │ ├── Module.php │ ├── ModulesOperations.php │ ├── RelatedListProperties.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── SuccessResponse.php │ └── Territory.php │ ├── notes │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BodyWrapper.php │ ├── DeleteNotesParam.php │ ├── GetNoteHeader.php │ ├── GetNoteParam.php │ ├── GetNotesHeader.php │ ├── GetNotesParam.php │ ├── Info.php │ ├── Note.php │ ├── NotesOperations.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ └── SuccessResponse.php │ ├── notification │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BodyWrapper.php │ ├── DisableNotificationsParam.php │ ├── GetNotificationDetailsParam.php │ ├── Info.php │ ├── Notification.php │ ├── NotificationOperations.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ └── SuccessResponse.php │ ├── org │ ├── APIException.php │ ├── ActionResponse.php │ ├── FileBodyWrapper.php │ ├── LicenseDetails.php │ ├── Org.php │ ├── OrgOperations.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ └── SuccessResponse.php │ ├── profiles │ ├── APIException.php │ ├── Category.php │ ├── GetProfileHeader.php │ ├── GetProfilesHeader.php │ ├── PermissionDetail.php │ ├── Profile.php │ ├── ProfilesOperations.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ └── Section.php │ ├── query │ ├── APIException.php │ ├── BodyWrapper.php │ ├── QueryOperations.php │ ├── ResponseHandler.php │ └── ResponseWrapper.php │ ├── record │ ├── APIException.php │ ├── Accounts.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── Attachments.php │ ├── BodyWrapper.php │ ├── Calls.php │ ├── Campaigns.php │ ├── CarryOverTags.php │ ├── Cases.php │ ├── Comment.php │ ├── Consent.php │ ├── Contacts.php │ ├── ConvertActionHandler.php │ ├── ConvertActionResponse.php │ ├── ConvertActionWrapper.php │ ├── ConvertBodyWrapper.php │ ├── Criteria.php │ ├── Deals.php │ ├── DeleteRecordHeader.php │ ├── DeleteRecordParam.php │ ├── DeleteRecordsHeader.php │ ├── DeleteRecordsParam.php │ ├── DeletedRecord.php │ ├── DeletedRecordsHandler.php │ ├── DeletedRecordsWrapper.php │ ├── DownloadHandler.php │ ├── Events.php │ ├── Field.php │ ├── FileBodyWrapper.php │ ├── FileDetails.php │ ├── FileHandler.php │ ├── GetDeletedRecordsHeader.php │ ├── GetDeletedRecordsParam.php │ ├── GetMassUpdateStatusParam.php │ ├── GetRecordHeader.php │ ├── GetRecordParam.php │ ├── GetRecordsHeader.php │ ├── GetRecordsParam.php │ ├── Info.php │ ├── InventoryLineItems.php │ ├── Invoices.php │ ├── LeadConverter.php │ ├── Leads.php │ ├── LineItemProduct.php │ ├── LineTax.php │ ├── MassUpdate.php │ ├── MassUpdateActionHandler.php │ ├── MassUpdateActionResponse.php │ ├── MassUpdateActionWrapper.php │ ├── MassUpdateBodyWrapper.php │ ├── MassUpdateResponse.php │ ├── MassUpdateResponseHandler.php │ ├── MassUpdateResponseWrapper.php │ ├── MassUpdateSuccessResponse.php │ ├── Notes.php │ ├── Options.php │ ├── Participants.php │ ├── Price_Books.php │ ├── PricingDetails.php │ ├── Products.php │ ├── Purchase_Orders.php │ ├── Quotes.php │ ├── Record.php │ ├── RecordOperations.php │ ├── RecurringActivity.php │ ├── RemindAt.php │ ├── Reminder.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── Sales_Orders.php │ ├── SearchRecordsHeader.php │ ├── SearchRecordsParam.php │ ├── Solutions.php │ ├── SuccessResponse.php │ ├── SuccessfulConvert.php │ ├── Tasks.php │ ├── Territory.php │ ├── UpdateRecordHeader.php │ ├── UpdateRecordsHeader.php │ ├── UpsertRecordsHeader.php │ └── Vendors.php │ ├── relatedlists │ ├── APIException.php │ ├── GetRelatedListParam.php │ ├── GetRelatedListsParam.php │ ├── RelatedList.php │ ├── RelatedListsOperations.php │ ├── ResponseHandler.php │ └── ResponseWrapper.php │ ├── relatedrecords │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BodyWrapper.php │ ├── DelinkRecordsParam.php │ ├── FileBodyWrapper.php │ ├── GetRelatedRecordHeader.php │ ├── GetRelatedRecordsHeader.php │ ├── GetRelatedRecordsParam.php │ ├── RelatedRecordsOperations.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ └── SuccessResponse.php │ ├── roles │ ├── APIException.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── Role.php │ └── RolesOperations.php │ ├── sharerecords │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BodyWrapper.php │ ├── DeleteActionHandler.php │ ├── DeleteActionResponse.php │ ├── DeleteActionWrapper.php │ ├── GetSharedRecordDetailsParam.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── ShareRecord.php │ ├── ShareRecordsOperations.php │ ├── SharedThrough.php │ └── SuccessResponse.php │ ├── tags │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── AddTagsToMultipleRecordsParam.php │ ├── AddTagsToRecordParam.php │ ├── BodyWrapper.php │ ├── ConflictWrapper.php │ ├── CountHandler.php │ ├── CountWrapper.php │ ├── CreateTagsParam.php │ ├── GetRecordCountForTagParam.php │ ├── GetTagsParam.php │ ├── Info.php │ ├── MergeWrapper.php │ ├── RecordActionHandler.php │ ├── RecordActionResponse.php │ ├── RecordActionWrapper.php │ ├── RemoveTagsFromMultipleRecordsParam.php │ ├── RemoveTagsFromRecordParam.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── SuccessResponse.php │ ├── Tag.php │ ├── TagsOperations.php │ ├── UpdateTagParam.php │ └── UpdateTagsParam.php │ ├── taxes │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BodyWrapper.php │ ├── DeleteTaxesParam.php │ ├── Preference.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── SuccessResponse.php │ ├── Tax.php │ └── TaxesOperations.php │ ├── territories │ ├── APIException.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── TerritoriesOperations.php │ └── Territory.php │ ├── users │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BodyWrapper.php │ ├── CustomizeInfo.php │ ├── GetUserHeader.php │ ├── GetUsersHeader.php │ ├── GetUsersParam.php │ ├── Info.php │ ├── RequestWrapper.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── Shift.php │ ├── SuccessResponse.php │ ├── TabTheme.php │ ├── Territory.php │ ├── Theme.php │ ├── User.php │ └── UsersOperations.php │ ├── util │ ├── APIHTTPConnector.php │ ├── APIResponse.php │ ├── Choice.php │ ├── CommonAPIHandler.php │ ├── Constants.php │ ├── Converter.php │ ├── DataTypeConverter.php │ ├── Downloader.php │ ├── FormDataConverter.php │ ├── HeaderParamValidator.php │ ├── JSONConverter.php │ ├── Model.php │ ├── ModuleFieldsHandler.php │ ├── StreamWrapper.php │ ├── Utility.php │ └── XMLConverter.php │ ├── variablegroups │ ├── APIException.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── VariableGroup.php │ └── VariableGroupsOperations.php │ └── variables │ ├── APIException.php │ ├── ActionHandler.php │ ├── ActionResponse.php │ ├── ActionWrapper.php │ ├── BodyWrapper.php │ ├── DeleteVariablesParam.php │ ├── GetVariableByIDParam.php │ ├── GetVariableForAPINameParam.php │ ├── GetVariablesParam.php │ ├── ResponseHandler.php │ ├── ResponseWrapper.php │ ├── SuccessResponse.php │ ├── Variable.php │ └── VariablesOperations.php └── resources └── JSONDetails.json /.gitattributes: -------------------------------------------------------------------------------- 1 | /samples export-ignore 2 | /class_hierarchy.png export-ignore -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "zohocrm/php-sdk", 3 | "description" : "Zoho CRM API SDK for PHP", 4 | "type" : "sdk", 5 | "homepage": "https://github.com/zoho/zohocrm-php-sdk", 6 | "authors" : [ 7 | { 8 | "name" : "Zoho CRM API Team", 9 | "email" : "support@zohocrm.com", 10 | "homepage" : "https://www.zoho.com/crm/help/customer-support.html", 11 | "role" : "Developer" 12 | } 13 | ], 14 | "require" : { 15 | "php" : ">=7.0", 16 | "ext-json" : "*", 17 | "ext-curl" : "*" 18 | }, 19 | "require-dev" : { 20 | "phpunit/phpunit" : ">=5.7" 21 | }, 22 | "autoload" : { 23 | "psr-4" : { 24 | "" : "src/" 25 | } 26 | } 27 | } -------------------------------------------------------------------------------- /src/com/zoho/api/authenticator/Token.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/com/zoho/api/logger/Logger.php: -------------------------------------------------------------------------------- 1 | level = $level; 17 | 18 | $this->filePath = $filePath; 19 | } 20 | 21 | /** 22 | * Creates an Logger class instance with the specified log level and file path. 23 | * @param Levels $level A string containing the log level. 24 | * @param string $filePath A string containing the log file path. 25 | * @return \com\zoho\api\logger\Logger A Logger class instance. 26 | */ 27 | public static function getInstance($level, $filePath) 28 | { 29 | return new Logger($level, $filePath); 30 | } 31 | 32 | /** 33 | * This is a getter method to get logger level. 34 | * @return string A string representing the logger level. 35 | */ 36 | public function getLevel() 37 | { 38 | return $this->level; 39 | } 40 | 41 | /** 42 | * This is a getter method to get log file path. 43 | * @return string A string representing the log file path. 44 | */ 45 | public function getFilePath() 46 | { 47 | return $this->filePath; 48 | } 49 | } 50 | ?> -------------------------------------------------------------------------------- /src/com/zoho/crm/api/Header.php: -------------------------------------------------------------------------------- 1 | name = $name; 21 | 22 | $this->className = $className; 23 | } 24 | 25 | /** 26 | * This is a getter method to get header name. 27 | * @return string A string representing the header name. 28 | */ 29 | public function getName() 30 | { 31 | return $this->name; 32 | } 33 | 34 | /** 35 | * This is a getter method to get header class name. 36 | * @return string A string representing the header class name. 37 | */ 38 | public function getClassName() 39 | { 40 | return $this->className; 41 | } 42 | } -------------------------------------------------------------------------------- /src/com/zoho/crm/api/Param.php: -------------------------------------------------------------------------------- 1 | name = $name; 21 | 22 | $this->className = $className; 23 | } 24 | 25 | /** 26 | * This is a getter method to get parameter name. 27 | * @return string A string representing the parameter name. 28 | */ 29 | public function getName() 30 | { 31 | return $this->name; 32 | } 33 | 34 | /** 35 | * This is a getter method to get parameter class name. 36 | * @return string A string representing the parameter class name. 37 | */ 38 | public function getClassName() 39 | { 40 | return $this->className; 41 | } 42 | } -------------------------------------------------------------------------------- /src/com/zoho/crm/api/RequestProxy.php: -------------------------------------------------------------------------------- 1 | host = $host; 28 | 29 | $this->port = $port; 30 | 31 | $this->user = $user; 32 | 33 | $this->password = $password != null?$password : ""; 34 | } 35 | 36 | /** 37 | * This is a getter method to get Proxy host. 38 | * @return string host 39 | */ 40 | public function getHost() 41 | { 42 | return $this->host; 43 | } 44 | 45 | /** 46 | * This is a getter method to get Proxy port. 47 | * @return string port 48 | */ 49 | public function getPort() 50 | { 51 | return $this->port; 52 | } 53 | 54 | /** 55 | * This is a getter method to get Proxy user name. 56 | * @return string user 57 | */ 58 | public function getUser() 59 | { 60 | return $this->user; 61 | } 62 | 63 | /** 64 | * This is a getter method to get Proxy password. 65 | * @return string password 66 | */ 67 | public function getPassword() 68 | { 69 | return $this->password; 70 | } 71 | } 72 | ?> -------------------------------------------------------------------------------- /src/com/zoho/crm/api/UserSignature.php: -------------------------------------------------------------------------------- 1 | email = $email; 34 | } 35 | 36 | /** 37 | * This is a getter method to get user email. 38 | * @return string A string representing the CRM user email. 39 | */ 40 | public function getEmail() 41 | { 42 | return $this->email; 43 | } 44 | } -------------------------------------------------------------------------------- /src/com/zoho/crm/api/attachments/ActionHandler.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/attachments/DeleteAttachmentsParam.php: -------------------------------------------------------------------------------- 1 | file; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to file 25 | * @param StreamWrapper $file An instance of StreamWrapper 26 | */ 27 | public function setFile(StreamWrapper $file) 28 | { 29 | $this->file=$file; 30 | $this->keyModified['file'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to check if the user has modified the given key 36 | * @param string $key A string 37 | * @return int A int representing the modification 38 | */ 39 | public function isKeyModified(string $key) 40 | { 41 | if(((array_key_exists($key, $this->keyModified)))) 42 | { 43 | return $this->keyModified[$key]; 44 | 45 | } 46 | return null; 47 | 48 | } 49 | 50 | /** 51 | * The method to mark the given key as modified 52 | * @param string $key A string 53 | * @param int $modification A int 54 | */ 55 | public function setKeyModified(string $key, int $modification) 56 | { 57 | $this->keyModified[$key] = $modification; 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/attachments/GetAttachmentsParam.php: -------------------------------------------------------------------------------- 1 | data; 21 | 22 | } 23 | 24 | /** 25 | * The method to set the value to data 26 | * @param array $data A array 27 | */ 28 | public function setData(array $data) 29 | { 30 | $this->data=$data; 31 | $this->keyModified['data'] = 1; 32 | 33 | } 34 | 35 | /** 36 | * The method to get the info 37 | * @return Info An instance of Info 38 | */ 39 | public function getInfo() 40 | { 41 | return $this->info; 42 | 43 | } 44 | 45 | /** 46 | * The method to set the value to info 47 | * @param Info $info An instance of Info 48 | */ 49 | public function setInfo(Info $info) 50 | { 51 | $this->info=$info; 52 | $this->keyModified['info'] = 1; 53 | 54 | } 55 | 56 | /** 57 | * The method to check if the user has modified the given key 58 | * @param string $key A string 59 | * @return int A int representing the modification 60 | */ 61 | public function isKeyModified(string $key) 62 | { 63 | if(((array_key_exists($key, $this->keyModified)))) 64 | { 65 | return $this->keyModified[$key]; 66 | 67 | } 68 | return null; 69 | 70 | } 71 | 72 | /** 73 | * The method to mark the given key as modified 74 | * @param string $key A string 75 | * @param int $modification A int 76 | */ 77 | public function setKeyModified(string $key, int $modification) 78 | { 79 | $this->keyModified[$key] = $modification; 80 | 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/attachments/UploadLinkAttachmentParam.php: -------------------------------------------------------------------------------- 1 | blueprint; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to blueprint 24 | * @param array $blueprint A array 25 | */ 26 | public function setBlueprint(array $blueprint) 27 | { 28 | $this->blueprint=$blueprint; 29 | $this->keyModified['blueprint'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/blueprint/NextTransition.php: -------------------------------------------------------------------------------- 1 | id; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to id 25 | * @param string $id A string 26 | */ 27 | public function setId(string $id) 28 | { 29 | $this->id=$id; 30 | $this->keyModified['id'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the name 36 | * @return string A string representing the name 37 | */ 38 | public function getName() 39 | { 40 | return $this->name; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to name 46 | * @param string $name A string 47 | */ 48 | public function setName(string $name) 49 | { 50 | $this->name=$name; 51 | $this->keyModified['name'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/blueprint/ResponseHandler.php: -------------------------------------------------------------------------------- 1 | blueprint; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to blueprint 24 | * @param BluePrint $blueprint An instance of BluePrint 25 | */ 26 | public function setBlueprint(BluePrint $blueprint) 27 | { 28 | $this->blueprint=$blueprint; 29 | $this->keyModified['blueprint'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/blueprint/ValidationError.php: -------------------------------------------------------------------------------- 1 | apiName; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to aPIName 25 | * @param string $apiName A string 26 | */ 27 | public function setAPIName(string $apiName) 28 | { 29 | $this->apiName=$apiName; 30 | $this->keyModified['api_name'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the message 36 | * @return string A string representing the message 37 | */ 38 | public function getMessage() 39 | { 40 | return $this->message; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to message 46 | * @param string $message A string 47 | */ 48 | public function setMessage(string $message) 49 | { 50 | $this->message=$message; 51 | $this->keyModified['message'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/bulkread/ActionHandler.php: -------------------------------------------------------------------------------- 1 | data; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to data 25 | * @param array $data A array 26 | */ 27 | public function setData(array $data) 28 | { 29 | $this->data=$data; 30 | $this->keyModified['data'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the info 36 | * @return array A array representing the info 37 | */ 38 | public function getInfo() 39 | { 40 | return $this->info; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to info 46 | * @param array $info A array 47 | */ 48 | public function setInfo(array $info) 49 | { 50 | $this->info=$info; 51 | $this->keyModified['info'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/bulkread/CallBack.php: -------------------------------------------------------------------------------- 1 | url; 21 | 22 | } 23 | 24 | /** 25 | * The method to set the value to url 26 | * @param string $url A string 27 | */ 28 | public function setUrl(string $url) 29 | { 30 | $this->url=$url; 31 | $this->keyModified['url'] = 1; 32 | 33 | } 34 | 35 | /** 36 | * The method to get the method 37 | * @return Choice An instance of Choice 38 | */ 39 | public function getMethod() 40 | { 41 | return $this->method; 42 | 43 | } 44 | 45 | /** 46 | * The method to set the value to method 47 | * @param Choice $method An instance of Choice 48 | */ 49 | public function setMethod(Choice $method) 50 | { 51 | $this->method=$method; 52 | $this->keyModified['method'] = 1; 53 | 54 | } 55 | 56 | /** 57 | * The method to check if the user has modified the given key 58 | * @param string $key A string 59 | * @return int A int representing the modification 60 | */ 61 | public function isKeyModified(string $key) 62 | { 63 | if(((array_key_exists($key, $this->keyModified)))) 64 | { 65 | return $this->keyModified[$key]; 66 | 67 | } 68 | return null; 69 | 70 | } 71 | 72 | /** 73 | * The method to mark the given key as modified 74 | * @param string $key A string 75 | * @param int $modification A int 76 | */ 77 | public function setKeyModified(string $key, int $modification) 78 | { 79 | $this->keyModified[$key] = $modification; 80 | 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/bulkread/FileBodyWrapper.php: -------------------------------------------------------------------------------- 1 | file; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to file 25 | * @param StreamWrapper $file An instance of StreamWrapper 26 | */ 27 | public function setFile(StreamWrapper $file) 28 | { 29 | $this->file=$file; 30 | $this->keyModified['file'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to check if the user has modified the given key 36 | * @param string $key A string 37 | * @return int A int representing the modification 38 | */ 39 | public function isKeyModified(string $key) 40 | { 41 | if(((array_key_exists($key, $this->keyModified)))) 42 | { 43 | return $this->keyModified[$key]; 44 | 45 | } 46 | return null; 47 | 48 | } 49 | 50 | /** 51 | * The method to mark the given key as modified 52 | * @param string $key A string 53 | * @param int $modification A int 54 | */ 55 | public function setKeyModified(string $key, int $modification) 56 | { 57 | $this->keyModified[$key] = $modification; 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/bulkread/ResponseHandler.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/bulkwrite/ActionResponse.php: -------------------------------------------------------------------------------- 1 | url; 21 | 22 | } 23 | 24 | /** 25 | * The method to set the value to url 26 | * @param string $url A string 27 | */ 28 | public function setUrl(string $url) 29 | { 30 | $this->url=$url; 31 | $this->keyModified['url'] = 1; 32 | 33 | } 34 | 35 | /** 36 | * The method to get the method 37 | * @return Choice An instance of Choice 38 | */ 39 | public function getMethod() 40 | { 41 | return $this->method; 42 | 43 | } 44 | 45 | /** 46 | * The method to set the value to method 47 | * @param Choice $method An instance of Choice 48 | */ 49 | public function setMethod(Choice $method) 50 | { 51 | $this->method=$method; 52 | $this->keyModified['method'] = 1; 53 | 54 | } 55 | 56 | /** 57 | * The method to check if the user has modified the given key 58 | * @param string $key A string 59 | * @return int A int representing the modification 60 | */ 61 | public function isKeyModified(string $key) 62 | { 63 | if(((array_key_exists($key, $this->keyModified)))) 64 | { 65 | return $this->keyModified[$key]; 66 | 67 | } 68 | return null; 69 | 70 | } 71 | 72 | /** 73 | * The method to mark the given key as modified 74 | * @param string $key A string 75 | * @param int $modification A int 76 | */ 77 | public function setKeyModified(string $key, int $modification) 78 | { 79 | $this->keyModified[$key] = $modification; 80 | 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/bulkwrite/FileBodyWrapper.php: -------------------------------------------------------------------------------- 1 | file; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to file 25 | * @param StreamWrapper $file An instance of StreamWrapper 26 | */ 27 | public function setFile(StreamWrapper $file) 28 | { 29 | $this->file=$file; 30 | $this->keyModified['file'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to check if the user has modified the given key 36 | * @param string $key A string 37 | * @return int A int representing the modification 38 | */ 39 | public function isKeyModified(string $key) 40 | { 41 | if(((array_key_exists($key, $this->keyModified)))) 42 | { 43 | return $this->keyModified[$key]; 44 | 45 | } 46 | return null; 47 | 48 | } 49 | 50 | /** 51 | * The method to mark the given key as modified 52 | * @param string $key A string 53 | * @param int $modification A int 54 | */ 55 | public function setKeyModified(string $key, int $modification) 56 | { 57 | $this->keyModified[$key] = $modification; 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/bulkwrite/ResponseHandler.php: -------------------------------------------------------------------------------- 1 | downloadUrl; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to downloadUrl 24 | * @param string $downloadUrl A string 25 | */ 26 | public function setDownloadUrl(string $downloadUrl) 27 | { 28 | $this->downloadUrl=$downloadUrl; 29 | $this->keyModified['download_url'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/bulkwrite/UploadFileHeader.php: -------------------------------------------------------------------------------- 1 | contactRoles; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to contactRoles 24 | * @param array $contactRoles A array 25 | */ 26 | public function setContactRoles(array $contactRoles) 27 | { 28 | $this->contactRoles=$contactRoles; 29 | $this->keyModified['contact_roles'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/contactroles/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | contactRoles; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to contactRoles 24 | * @param array $contactRoles A array 25 | */ 26 | public function setContactRoles(array $contactRoles) 27 | { 28 | $this->contactRoles=$contactRoles; 29 | $this->keyModified['contact_roles'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/contactroles/DeleteContactRolesParam.php: -------------------------------------------------------------------------------- 1 | contactRoles; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to contactRoles 24 | * @param array $contactRoles A array 25 | */ 26 | public function setContactRoles(array $contactRoles) 27 | { 28 | $this->contactRoles=$contactRoles; 29 | $this->keyModified['contact_roles'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/currencies/ActionHandler.php: -------------------------------------------------------------------------------- 1 | currencies; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to currencies 24 | * @param array $currencies A array 25 | */ 26 | public function setCurrencies(array $currencies) 27 | { 28 | $this->currencies=$currencies; 29 | $this->keyModified['currencies'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/currencies/BaseCurrencyActionHandler.php: -------------------------------------------------------------------------------- 1 | baseCurrency; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to baseCurrency 24 | * @param ActionResponse $baseCurrency An instance of ActionResponse 25 | */ 26 | public function setBaseCurrency(ActionResponse $baseCurrency) 27 | { 28 | $this->baseCurrency=$baseCurrency; 29 | $this->keyModified['base_currency'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/currencies/BaseCurrencyWrapper.php: -------------------------------------------------------------------------------- 1 | baseCurrency; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to baseCurrency 24 | * @param Currency $baseCurrency An instance of Currency 25 | */ 26 | public function setBaseCurrency(Currency $baseCurrency) 27 | { 28 | $this->baseCurrency=$baseCurrency; 29 | $this->keyModified['base_currency'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/currencies/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | currencies; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to currencies 24 | * @param array $currencies A array 25 | */ 26 | public function setCurrencies(array $currencies) 27 | { 28 | $this->currencies=$currencies; 29 | $this->keyModified['currencies'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/currencies/ResponseHandler.php: -------------------------------------------------------------------------------- 1 | currencies; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to currencies 24 | * @param array $currencies A array 25 | */ 26 | public function setCurrencies(array $currencies) 27 | { 28 | $this->currencies=$currencies; 29 | $this->keyModified['currencies'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/customviews/GetCustomViewParam.php: -------------------------------------------------------------------------------- 1 | from; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to from 25 | * @param int $from A int 26 | */ 27 | public function setFrom(int $from) 28 | { 29 | $this->from=$from; 30 | $this->keyModified['from'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the to 36 | * @return int A int representing the to 37 | */ 38 | public function getTo() 39 | { 40 | return $this->to; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to to 46 | * @param int $to A int 47 | */ 48 | public function setTo(int $to) 49 | { 50 | $this->to=$to; 51 | $this->keyModified['to'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/customviews/ResponseHandler.php: -------------------------------------------------------------------------------- 1 | customViews; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to customViews 25 | * @param array $customViews A array 26 | */ 27 | public function setCustomViews(array $customViews) 28 | { 29 | $this->customViews=$customViews; 30 | $this->keyModified['custom_views'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the info 36 | * @return Info An instance of Info 37 | */ 38 | public function getInfo() 39 | { 40 | return $this->info; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to info 46 | * @param Info $info An instance of Info 47 | */ 48 | public function setInfo(Info $info) 49 | { 50 | $this->info=$info; 51 | $this->keyModified['info'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/fields/GetFieldParam.php: -------------------------------------------------------------------------------- 1 | id; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to id 25 | * @param string $id A string 26 | */ 27 | public function setId(string $id) 28 | { 29 | $this->id=$id; 30 | $this->keyModified['id'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the name 36 | * @return string A string representing the name 37 | */ 38 | public function getName() 39 | { 40 | return $this->name; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to name 46 | * @param string $name A string 47 | */ 48 | public function setName(string $name) 49 | { 50 | $this->name=$name; 51 | $this->keyModified['name'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/fields/ResponseHandler.php: -------------------------------------------------------------------------------- 1 | fields; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to fields 24 | * @param array $fields A array 25 | */ 26 | public function setFields(array $fields) 27 | { 28 | $this->fields=$fields; 29 | $this->keyModified['fields'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/fields/ToolTip.php: -------------------------------------------------------------------------------- 1 | name; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to name 25 | * @param string $name A string 26 | */ 27 | public function setName(string $name) 28 | { 29 | $this->name=$name; 30 | $this->keyModified['name'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the value 36 | * @return string A string representing the value 37 | */ 38 | public function getValue() 39 | { 40 | return $this->value; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to value 46 | * @param string $value A string 47 | */ 48 | public function setValue(string $value) 49 | { 50 | $this->value=$value; 51 | $this->keyModified['value'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/fields/Unique.php: -------------------------------------------------------------------------------- 1 | casesensitive; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to casesensitive 24 | * @param string $casesensitive A string 25 | */ 26 | public function setCasesensitive(string $casesensitive) 27 | { 28 | $this->casesensitive=$casesensitive; 29 | $this->keyModified['casesensitive'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/file/ActionHandler.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/file/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | file; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to file 25 | * @param array $file A array 26 | */ 27 | public function setFile(array $file) 28 | { 29 | $this->file=$file; 30 | $this->keyModified['file'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to check if the user has modified the given key 36 | * @param string $key A string 37 | * @return int A int representing the modification 38 | */ 39 | public function isKeyModified(string $key) 40 | { 41 | if(((array_key_exists($key, $this->keyModified)))) 42 | { 43 | return $this->keyModified[$key]; 44 | 45 | } 46 | return null; 47 | 48 | } 49 | 50 | /** 51 | * The method to mark the given key as modified 52 | * @param string $key A string 53 | * @param int $modification A int 54 | */ 55 | public function setKeyModified(string $key, int $modification) 56 | { 57 | $this->keyModified[$key] = $modification; 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/file/FileBodyWrapper.php: -------------------------------------------------------------------------------- 1 | file; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to file 25 | * @param StreamWrapper $file An instance of StreamWrapper 26 | */ 27 | public function setFile(StreamWrapper $file) 28 | { 29 | $this->file=$file; 30 | $this->keyModified['file'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to check if the user has modified the given key 36 | * @param string $key A string 37 | * @return int A int representing the modification 38 | */ 39 | public function isKeyModified(string $key) 40 | { 41 | if(((array_key_exists($key, $this->keyModified)))) 42 | { 43 | return $this->keyModified[$key]; 44 | 45 | } 46 | return null; 47 | 48 | } 49 | 50 | /** 51 | * The method to mark the given key as modified 52 | * @param string $key A string 53 | * @param int $modification A int 54 | */ 55 | public function setKeyModified(string $key, int $modification) 56 | { 57 | $this->keyModified[$key] = $modification; 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/file/GetFileParam.php: -------------------------------------------------------------------------------- 1 | layouts; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to layouts 24 | * @param array $layouts A array 25 | */ 26 | public function setLayouts(array $layouts) 27 | { 28 | $this->layouts=$layouts; 29 | $this->keyModified['layouts'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/modules/ActionHandler.php: -------------------------------------------------------------------------------- 1 | modules; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to modules 24 | * @param array $modules A array 25 | */ 26 | public function setModules(array $modules) 27 | { 28 | $this->modules=$modules; 29 | $this->keyModified['modules'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/modules/Argument.php: -------------------------------------------------------------------------------- 1 | name; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to name 25 | * @param string $name A string 26 | */ 27 | public function setName(string $name) 28 | { 29 | $this->name=$name; 30 | $this->keyModified['name'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the value 36 | * @return string A string representing the value 37 | */ 38 | public function getValue() 39 | { 40 | return $this->value; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to value 46 | * @param string $value A string 47 | */ 48 | public function setValue(string $value) 49 | { 50 | $this->value=$value; 51 | $this->keyModified['value'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/modules/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | modules; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to modules 24 | * @param array $modules A array 25 | */ 26 | public function setModules(array $modules) 27 | { 28 | $this->modules=$modules; 29 | $this->keyModified['modules'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/modules/GetModulesHeader.php: -------------------------------------------------------------------------------- 1 | modules; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to modules 24 | * @param array $modules A array 25 | */ 26 | public function setModules(array $modules) 27 | { 28 | $this->modules=$modules; 29 | $this->keyModified['modules'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/notes/ActionHandler.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/notes/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/notes/DeleteNotesParam.php: -------------------------------------------------------------------------------- 1 | data; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to data 25 | * @param array $data A array 26 | */ 27 | public function setData(array $data) 28 | { 29 | $this->data=$data; 30 | $this->keyModified['data'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the info 36 | * @return Info An instance of Info 37 | */ 38 | public function getInfo() 39 | { 40 | return $this->info; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to info 46 | * @param Info $info An instance of Info 47 | */ 48 | public function setInfo(Info $info) 49 | { 50 | $this->info=$info; 51 | $this->keyModified['info'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/notification/ActionHandler.php: -------------------------------------------------------------------------------- 1 | watch; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to watch 24 | * @param array $watch A array 25 | */ 26 | public function setWatch(array $watch) 27 | { 28 | $this->watch=$watch; 29 | $this->keyModified['watch'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/notification/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | watch; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to watch 24 | * @param array $watch A array 25 | */ 26 | public function setWatch(array $watch) 27 | { 28 | $this->watch=$watch; 29 | $this->keyModified['watch'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/notification/DisableNotificationsParam.php: -------------------------------------------------------------------------------- 1 | watch; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to watch 25 | * @param array $watch A array 26 | */ 27 | public function setWatch(array $watch) 28 | { 29 | $this->watch=$watch; 30 | $this->keyModified['watch'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the info 36 | * @return Info An instance of Info 37 | */ 38 | public function getInfo() 39 | { 40 | return $this->info; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to info 46 | * @param Info $info An instance of Info 47 | */ 48 | public function setInfo(Info $info) 49 | { 50 | $this->info=$info; 51 | $this->keyModified['info'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/org/ActionResponse.php: -------------------------------------------------------------------------------- 1 | file; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to file 25 | * @param StreamWrapper $file An instance of StreamWrapper 26 | */ 27 | public function setFile(StreamWrapper $file) 28 | { 29 | $this->file=$file; 30 | $this->keyModified['file'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to check if the user has modified the given key 36 | * @param string $key A string 37 | * @return int A int representing the modification 38 | */ 39 | public function isKeyModified(string $key) 40 | { 41 | if(((array_key_exists($key, $this->keyModified)))) 42 | { 43 | return $this->keyModified[$key]; 44 | 45 | } 46 | return null; 47 | 48 | } 49 | 50 | /** 51 | * The method to mark the given key as modified 52 | * @param string $key A string 53 | * @param int $modification A int 54 | */ 55 | public function setKeyModified(string $key, int $modification) 56 | { 57 | $this->keyModified[$key] = $modification; 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/org/OrgOperations.php: -------------------------------------------------------------------------------- 1 | setAPIPath($apiPath); 22 | $handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_GET); 23 | $handlerInstance->setCategoryMethod(Constants::REQUEST_CATEGORY_READ); 24 | return $handlerInstance->apiCall(ResponseHandler::class, 'application/json'); 25 | 26 | } 27 | 28 | /** 29 | * The method to upload organization photo 30 | * @param FileBodyWrapper $request An instance of FileBodyWrapper 31 | * @return APIResponse An instance of APIResponse 32 | */ 33 | public function uploadOrganizationPhoto(FileBodyWrapper $request) 34 | { 35 | $handlerInstance=new CommonAPIHandler(); 36 | $apiPath=""; 37 | $apiPath=$apiPath.('/crm/v2/org/photo'); 38 | $handlerInstance->setAPIPath($apiPath); 39 | $handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_POST); 40 | $handlerInstance->setCategoryMethod(Constants::REQUEST_CATEGORY_CREATE); 41 | $handlerInstance->setContentType('multipart/form-data'); 42 | $handlerInstance->setRequest($request); 43 | $handlerInstance->setMandatoryChecker(true); 44 | return $handlerInstance->apiCall(ActionResponse::class, 'application/json'); 45 | 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/org/ResponseHandler.php: -------------------------------------------------------------------------------- 1 | org; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to org 24 | * @param array $org A array 25 | */ 26 | public function setOrg(array $org) 27 | { 28 | $this->org=$org; 29 | $this->keyModified['org'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/profiles/GetProfileHeader.php: -------------------------------------------------------------------------------- 1 | profiles; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to profiles 24 | * @param array $profiles A array 25 | */ 26 | public function setProfiles(array $profiles) 27 | { 28 | $this->profiles=$profiles; 29 | $this->keyModified['profiles'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/profiles/Section.php: -------------------------------------------------------------------------------- 1 | name; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to name 25 | * @param string $name A string 26 | */ 27 | public function setName(string $name) 28 | { 29 | $this->name=$name; 30 | $this->keyModified['name'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the categories 36 | * @return array A array representing the categories 37 | */ 38 | public function getCategories() 39 | { 40 | return $this->categories; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to categories 46 | * @param array $categories A array 47 | */ 48 | public function setCategories(array $categories) 49 | { 50 | $this->categories=$categories; 51 | $this->keyModified['categories'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/query/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | selectQuery; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to selectQuery 24 | * @param string $selectQuery A string 25 | */ 26 | public function setSelectQuery(string $selectQuery) 27 | { 28 | $this->selectQuery=$selectQuery; 29 | $this->keyModified['select_query'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/query/QueryOperations.php: -------------------------------------------------------------------------------- 1 | setAPIPath($apiPath); 23 | $handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_POST); 24 | $handlerInstance->setCategoryMethod(Constants::REQUEST_CATEGORY_CREATE); 25 | $handlerInstance->setContentType('application/json'); 26 | $handlerInstance->setRequest($request); 27 | $handlerInstance->setMandatoryChecker(true); 28 | return $handlerInstance->apiCall(ResponseHandler::class, 'application/json'); 29 | 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/query/ResponseHandler.php: -------------------------------------------------------------------------------- 1 | data; 22 | 23 | } 24 | 25 | /** 26 | * The method to set the value to data 27 | * @param array $data A array 28 | */ 29 | public function setData(array $data) 30 | { 31 | $this->data=$data; 32 | $this->keyModified['data'] = 1; 33 | 34 | } 35 | 36 | /** 37 | * The method to get the info 38 | * @return Info An instance of Info 39 | */ 40 | public function getInfo() 41 | { 42 | return $this->info; 43 | 44 | } 45 | 46 | /** 47 | * The method to set the value to info 48 | * @param Info $info An instance of Info 49 | */ 50 | public function setInfo(Info $info) 51 | { 52 | $this->info=$info; 53 | $this->keyModified['info'] = 1; 54 | 55 | } 56 | 57 | /** 58 | * The method to check if the user has modified the given key 59 | * @param string $key A string 60 | * @return int A int representing the modification 61 | */ 62 | public function isKeyModified(string $key) 63 | { 64 | if(((array_key_exists($key, $this->keyModified)))) 65 | { 66 | return $this->keyModified[$key]; 67 | 68 | } 69 | return null; 70 | 71 | } 72 | 73 | /** 74 | * The method to mark the given key as modified 75 | * @param string $key A string 76 | * @param int $modification A int 77 | */ 78 | public function setKeyModified(string $key, int $modification) 79 | { 80 | $this->keyModified[$key] = $modification; 81 | 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/ActionHandler.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/Attachments.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/ConvertBodyWrapper.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/DeleteRecordHeader.php: -------------------------------------------------------------------------------- 1 | data; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to data 25 | * @param array $data A array 26 | */ 27 | public function setData(array $data) 28 | { 29 | $this->data=$data; 30 | $this->keyModified['data'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the info 36 | * @return Info An instance of Info 37 | */ 38 | public function getInfo() 39 | { 40 | return $this->info; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to info 46 | * @param Info $info An instance of Info 47 | */ 48 | public function setInfo(Info $info) 49 | { 50 | $this->info=$info; 51 | $this->keyModified['info'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/DownloadHandler.php: -------------------------------------------------------------------------------- 1 | apiName=$apiName; 27 | 28 | } 29 | 30 | /** 31 | * The method to get the aPIName 32 | * @return string A string representing the apiName 33 | */ 34 | public function getAPIName() 35 | { 36 | return $this->apiName; 37 | 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/FileBodyWrapper.php: -------------------------------------------------------------------------------- 1 | file; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to file 25 | * @param StreamWrapper $file An instance of StreamWrapper 26 | */ 27 | public function setFile(StreamWrapper $file) 28 | { 29 | $this->file=$file; 30 | $this->keyModified['file'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to check if the user has modified the given key 36 | * @param string $key A string 37 | * @return int A int representing the modification 38 | */ 39 | public function isKeyModified(string $key) 40 | { 41 | if(((array_key_exists($key, $this->keyModified)))) 42 | { 43 | return $this->keyModified[$key]; 44 | 45 | } 46 | return null; 47 | 48 | } 49 | 50 | /** 51 | * The method to mark the given key as modified 52 | * @param string $key A string 53 | * @param int $modification A int 54 | */ 55 | public function setKeyModified(string $key, int $modification) 56 | { 57 | $this->keyModified[$key] = $modification; 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/FileHandler.php: -------------------------------------------------------------------------------- 1 | getKeyValue('Product_Code'); 18 | 19 | } 20 | 21 | /** 22 | * The method to set the value to productCode 23 | * @param string $productCode A string 24 | */ 25 | public function setProductCode(string $productCode) 26 | { 27 | $this->addKeyValue('Product_Code', $productCode); 28 | 29 | } 30 | 31 | /** 32 | * The method to get the currency 33 | * @return string A string representing the currency 34 | */ 35 | public function getCurrency() 36 | { 37 | return $this->getKeyValue('Currency'); 38 | 39 | } 40 | 41 | /** 42 | * The method to set the value to currency 43 | * @param string $currency A string 44 | */ 45 | public function setCurrency(string $currency) 46 | { 47 | $this->addKeyValue('Currency', $currency); 48 | 49 | } 50 | 51 | /** 52 | * The method to get the name 53 | * @return string A string representing the name 54 | */ 55 | public function getName() 56 | { 57 | return $this->getKeyValue('name'); 58 | 59 | } 60 | 61 | /** 62 | * The method to set the value to name 63 | * @param string $name A string 64 | */ 65 | public function setName(string $name) 66 | { 67 | $this->addKeyValue('name', $name); 68 | 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/MassUpdateActionHandler.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/MassUpdateResponse.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/Notes.php: -------------------------------------------------------------------------------- 1 | getKeyValue('to_range'); 18 | 19 | } 20 | 21 | /** 22 | * The method to set the value to toRange 23 | * @param float $toRange A float 24 | */ 25 | public function setToRange(float $toRange) 26 | { 27 | $this->addKeyValue('to_range', $toRange); 28 | 29 | } 30 | 31 | /** 32 | * The method to get the discount 33 | * @return float A float representing the discount 34 | */ 35 | public function getDiscount() 36 | { 37 | return $this->getKeyValue('discount'); 38 | 39 | } 40 | 41 | /** 42 | * The method to set the value to discount 43 | * @param float $discount A float 44 | */ 45 | public function setDiscount(float $discount) 46 | { 47 | $this->addKeyValue('discount', $discount); 48 | 49 | } 50 | 51 | /** 52 | * The method to get the fromRange 53 | * @return float A float representing the fromRange 54 | */ 55 | public function getFromRange() 56 | { 57 | return $this->getKeyValue('from_range'); 58 | 59 | } 60 | 61 | /** 62 | * The method to set the value to fromRange 63 | * @param float $fromRange A float 64 | */ 65 | public function setFromRange(float $fromRange) 66 | { 67 | $this->addKeyValue('from_range', $fromRange); 68 | 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/RecurringActivity.php: -------------------------------------------------------------------------------- 1 | rrule; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to rrule 24 | * @param string $rrule A string 25 | */ 26 | public function setRrule(string $rrule) 27 | { 28 | $this->rrule=$rrule; 29 | $this->keyModified['RRULE'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/RemindAt.php: -------------------------------------------------------------------------------- 1 | alarm; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to alarm 24 | * @param string $alarm A string 25 | */ 26 | public function setAlarm(string $alarm) 27 | { 28 | $this->alarm=$alarm; 29 | $this->keyModified['ALARM'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/Reminder.php: -------------------------------------------------------------------------------- 1 | period; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to period 25 | * @param string $period A string 26 | */ 27 | public function setPeriod(string $period) 28 | { 29 | $this->period=$period; 30 | $this->keyModified['period'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the unit 36 | * @return string A string representing the unit 37 | */ 38 | public function getUnit() 39 | { 40 | return $this->unit; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to unit 46 | * @param string $unit A string 47 | */ 48 | public function setUnit(string $unit) 49 | { 50 | $this->unit=$unit; 51 | $this->keyModified['unit'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/ResponseHandler.php: -------------------------------------------------------------------------------- 1 | data; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to data 25 | * @param array $data A array 26 | */ 27 | public function setData(array $data) 28 | { 29 | $this->data=$data; 30 | $this->keyModified['data'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the info 36 | * @return Info An instance of Info 37 | */ 38 | public function getInfo() 39 | { 40 | return $this->info; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to info 46 | * @param Info $info An instance of Info 47 | */ 48 | public function setInfo(Info $info) 49 | { 50 | $this->info=$info; 51 | $this->keyModified['info'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/SearchRecordsHeader.php: -------------------------------------------------------------------------------- 1 | id; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to id 25 | * @param string $id A string 26 | */ 27 | public function setId(string $id) 28 | { 29 | $this->id=$id; 30 | $this->keyModified['id'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the includeChild 36 | * @return bool A bool representing the includeChild 37 | */ 38 | public function getIncludeChild() 39 | { 40 | return $this->includeChild; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to includeChild 46 | * @param bool $includeChild A bool 47 | */ 48 | public function setIncludeChild(bool $includeChild) 49 | { 50 | $this->includeChild=$includeChild; 51 | $this->keyModified['include_child'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/record/UpdateRecordHeader.php: -------------------------------------------------------------------------------- 1 | relatedLists; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to relatedLists 24 | * @param array $relatedLists A array 25 | */ 26 | public function setRelatedLists(array $relatedLists) 27 | { 28 | $this->relatedLists=$relatedLists; 29 | $this->keyModified['related_lists'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/relatedrecords/ActionHandler.php: -------------------------------------------------------------------------------- 1 | data; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to data 24 | * @param array $data A array 25 | */ 26 | public function setData(array $data) 27 | { 28 | $this->data=$data; 29 | $this->keyModified['data'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/relatedrecords/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | data; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to data 25 | * @param array $data A array 26 | */ 27 | public function setData(array $data) 28 | { 29 | $this->data=$data; 30 | $this->keyModified['data'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to check if the user has modified the given key 36 | * @param string $key A string 37 | * @return int A int representing the modification 38 | */ 39 | public function isKeyModified(string $key) 40 | { 41 | if(((array_key_exists($key, $this->keyModified)))) 42 | { 43 | return $this->keyModified[$key]; 44 | 45 | } 46 | return null; 47 | 48 | } 49 | 50 | /** 51 | * The method to mark the given key as modified 52 | * @param string $key A string 53 | * @param int $modification A int 54 | */ 55 | public function setKeyModified(string $key, int $modification) 56 | { 57 | $this->keyModified[$key] = $modification; 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/relatedrecords/DelinkRecordsParam.php: -------------------------------------------------------------------------------- 1 | file; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to file 25 | * @param StreamWrapper $file An instance of StreamWrapper 26 | */ 27 | public function setFile(StreamWrapper $file) 28 | { 29 | $this->file=$file; 30 | $this->keyModified['file'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to check if the user has modified the given key 36 | * @param string $key A string 37 | * @return int A int representing the modification 38 | */ 39 | public function isKeyModified(string $key) 40 | { 41 | if(((array_key_exists($key, $this->keyModified)))) 42 | { 43 | return $this->keyModified[$key]; 44 | 45 | } 46 | return null; 47 | 48 | } 49 | 50 | /** 51 | * The method to mark the given key as modified 52 | * @param string $key A string 53 | * @param int $modification A int 54 | */ 55 | public function setKeyModified(string $key, int $modification) 56 | { 57 | $this->keyModified[$key] = $modification; 58 | 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/relatedrecords/GetRelatedRecordHeader.php: -------------------------------------------------------------------------------- 1 | roles; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to roles 24 | * @param array $roles A array 25 | */ 26 | public function setRoles(array $roles) 27 | { 28 | $this->roles=$roles; 29 | $this->keyModified['roles'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/roles/RolesOperations.php: -------------------------------------------------------------------------------- 1 | setAPIPath($apiPath); 22 | $handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_GET); 23 | $handlerInstance->setCategoryMethod(Constants::REQUEST_CATEGORY_READ); 24 | return $handlerInstance->apiCall(ResponseHandler::class, 'application/json'); 25 | 26 | } 27 | 28 | /** 29 | * The method to get role 30 | * @param string $id A string 31 | * @return APIResponse An instance of APIResponse 32 | */ 33 | public function getRole(string $id) 34 | { 35 | $handlerInstance=new CommonAPIHandler(); 36 | $apiPath=""; 37 | $apiPath=$apiPath.('/crm/v2/settings/roles/'); 38 | $apiPath=$apiPath.(strval($id)); 39 | $handlerInstance->setAPIPath($apiPath); 40 | $handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_GET); 41 | $handlerInstance->setCategoryMethod(Constants::REQUEST_CATEGORY_READ); 42 | return $handlerInstance->apiCall(ResponseHandler::class, 'application/json'); 43 | 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/sharerecords/ActionHandler.php: -------------------------------------------------------------------------------- 1 | share; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to share 24 | * @param array $share A array 25 | */ 26 | public function setShare(array $share) 27 | { 28 | $this->share=$share; 29 | $this->keyModified['share'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/sharerecords/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | share; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to share 24 | * @param array $share A array 25 | */ 26 | public function setShare(array $share) 27 | { 28 | $this->share=$share; 29 | $this->keyModified['share'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/sharerecords/DeleteActionHandler.php: -------------------------------------------------------------------------------- 1 | share; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to share 24 | * @param DeleteActionResponse $share An instance of DeleteActionResponse 25 | */ 26 | public function setShare(DeleteActionResponse $share) 27 | { 28 | $this->share=$share; 29 | $this->keyModified['share'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/sharerecords/GetSharedRecordDetailsParam.php: -------------------------------------------------------------------------------- 1 | tags; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to tags 24 | * @param array $tags A array 25 | */ 26 | public function setTags(array $tags) 27 | { 28 | $this->tags=$tags; 29 | $this->keyModified['tags'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/tags/AddTagsToMultipleRecordsParam.php: -------------------------------------------------------------------------------- 1 | tags; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to tags 24 | * @param array $tags A array 25 | */ 26 | public function setTags(array $tags) 27 | { 28 | $this->tags=$tags; 29 | $this->keyModified['tags'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/tags/ConflictWrapper.php: -------------------------------------------------------------------------------- 1 | conflictId; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to conflictId 24 | * @param string $conflictId A string 25 | */ 26 | public function setConflictId(string $conflictId) 27 | { 28 | $this->conflictId=$conflictId; 29 | $this->keyModified['conflict_id'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/tags/CountHandler.php: -------------------------------------------------------------------------------- 1 | count; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to count 24 | * @param string $count A string 25 | */ 26 | public function setCount(string $count) 27 | { 28 | $this->count=$count; 29 | $this->keyModified['count'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/tags/CreateTagsParam.php: -------------------------------------------------------------------------------- 1 | count; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to count 25 | * @param int $count A int 26 | */ 27 | public function setCount(int $count) 28 | { 29 | $this->count=$count; 30 | $this->keyModified['count'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the allowedCount 36 | * @return int A int representing the allowedCount 37 | */ 38 | public function getAllowedCount() 39 | { 40 | return $this->allowedCount; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to allowedCount 46 | * @param int $allowedCount A int 47 | */ 48 | public function setAllowedCount(int $allowedCount) 49 | { 50 | $this->allowedCount=$allowedCount; 51 | $this->keyModified['allowed_count'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/tags/MergeWrapper.php: -------------------------------------------------------------------------------- 1 | tags; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to tags 24 | * @param array $tags A array 25 | */ 26 | public function setTags(array $tags) 27 | { 28 | $this->tags=$tags; 29 | $this->keyModified['tags'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/tags/RecordActionHandler.php: -------------------------------------------------------------------------------- 1 | tags; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to tags 25 | * @param array $tags A array 26 | */ 27 | public function setTags(array $tags) 28 | { 29 | $this->tags=$tags; 30 | $this->keyModified['tags'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the info 36 | * @return Info An instance of Info 37 | */ 38 | public function getInfo() 39 | { 40 | return $this->info; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to info 46 | * @param Info $info An instance of Info 47 | */ 48 | public function setInfo(Info $info) 49 | { 50 | $this->info=$info; 51 | $this->keyModified['info'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/tags/UpdateTagParam.php: -------------------------------------------------------------------------------- 1 | taxes; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to taxes 24 | * @param array $taxes A array 25 | */ 26 | public function setTaxes(array $taxes) 27 | { 28 | $this->taxes=$taxes; 29 | $this->keyModified['taxes'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/taxes/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | taxes; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to taxes 24 | * @param array $taxes A array 25 | */ 26 | public function setTaxes(array $taxes) 27 | { 28 | $this->taxes=$taxes; 29 | $this->keyModified['taxes'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/taxes/DeleteTaxesParam.php: -------------------------------------------------------------------------------- 1 | territories; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to territories 24 | * @param array $territories A array 25 | */ 26 | public function setTerritories(array $territories) 27 | { 28 | $this->territories=$territories; 29 | $this->keyModified['territories'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/territories/TerritoriesOperations.php: -------------------------------------------------------------------------------- 1 | setAPIPath($apiPath); 22 | $handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_GET); 23 | $handlerInstance->setCategoryMethod(Constants::REQUEST_CATEGORY_READ); 24 | return $handlerInstance->apiCall(ResponseHandler::class, 'application/json'); 25 | 26 | } 27 | 28 | /** 29 | * The method to get territory 30 | * @param string $id A string 31 | * @return APIResponse An instance of APIResponse 32 | */ 33 | public function getTerritory(string $id) 34 | { 35 | $handlerInstance=new CommonAPIHandler(); 36 | $apiPath=""; 37 | $apiPath=$apiPath.('/crm/v2/settings/territories/'); 38 | $apiPath=$apiPath.(strval($id)); 39 | $handlerInstance->setAPIPath($apiPath); 40 | $handlerInstance->setHttpMethod(Constants::REQUEST_METHOD_GET); 41 | $handlerInstance->setCategoryMethod(Constants::REQUEST_CATEGORY_READ); 42 | return $handlerInstance->apiCall(ResponseHandler::class, 'application/json'); 43 | 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/users/ActionHandler.php: -------------------------------------------------------------------------------- 1 | users; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to users 24 | * @param array $users A array 25 | */ 26 | public function setUsers(array $users) 27 | { 28 | $this->users=$users; 29 | $this->keyModified['users'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/users/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | users; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to users 24 | * @param array $users A array 25 | */ 26 | public function setUsers(array $users) 27 | { 28 | $this->users=$users; 29 | $this->keyModified['users'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/users/GetUserHeader.php: -------------------------------------------------------------------------------- 1 | users; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to users 24 | * @param array $users A array 25 | */ 26 | public function setUsers(array $users) 27 | { 28 | $this->users=$users; 29 | $this->keyModified['users'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/users/ResponseHandler.php: -------------------------------------------------------------------------------- 1 | users; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to users 25 | * @param array $users A array 26 | */ 27 | public function setUsers(array $users) 28 | { 29 | $this->users=$users; 30 | $this->keyModified['users'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the info 36 | * @return Info An instance of Info 37 | */ 38 | public function getInfo() 39 | { 40 | return $this->info; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to info 46 | * @param Info $info An instance of Info 47 | */ 48 | public function setInfo(Info $info) 49 | { 50 | $this->info=$info; 51 | $this->keyModified['info'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/users/Shift.php: -------------------------------------------------------------------------------- 1 | id; 20 | 21 | } 22 | 23 | /** 24 | * The method to set the value to id 25 | * @param string $id A string 26 | */ 27 | public function setId(string $id) 28 | { 29 | $this->id=$id; 30 | $this->keyModified['id'] = 1; 31 | 32 | } 33 | 34 | /** 35 | * The method to get the name 36 | * @return string A string representing the name 37 | */ 38 | public function getName() 39 | { 40 | return $this->name; 41 | 42 | } 43 | 44 | /** 45 | * The method to set the value to name 46 | * @param string $name A string 47 | */ 48 | public function setName(string $name) 49 | { 50 | $this->name=$name; 51 | $this->keyModified['name'] = 1; 52 | 53 | } 54 | 55 | /** 56 | * The method to check if the user has modified the given key 57 | * @param string $key A string 58 | * @return int A int representing the modification 59 | */ 60 | public function isKeyModified(string $key) 61 | { 62 | if(((array_key_exists($key, $this->keyModified)))) 63 | { 64 | return $this->keyModified[$key]; 65 | 66 | } 67 | return null; 68 | 69 | } 70 | 71 | /** 72 | * The method to mark the given key as modified 73 | * @param string $key A string 74 | * @param int $modification A int 75 | */ 76 | public function setKeyModified(string $key, int $modification) 77 | { 78 | $this->keyModified[$key] = $modification; 79 | 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/util/Choice.php: -------------------------------------------------------------------------------- 1 | value = $value; 11 | } 12 | 13 | public function getValue() 14 | { 15 | return $this->value; 16 | } 17 | } -------------------------------------------------------------------------------- /src/com/zoho/crm/api/util/Model.php: -------------------------------------------------------------------------------- 1 | name = $name; 24 | 25 | $this->stream = $stream; 26 | 27 | if ($filepath != null) 28 | { 29 | if(file_exists($filepath)) 30 | { 31 | $file = fopen($filepath, "rb"); 32 | 33 | $this->name = basename($filepath); 34 | 35 | $this->stream = fread($file, filesize($filepath)); 36 | 37 | fclose($file); 38 | } 39 | else 40 | { 41 | throw new SDKException(Constants::FILE_ERROR, Constants::FILE_DOES_NOT_EXISTS." ".$filepath); 42 | } 43 | } 44 | } 45 | 46 | /** 47 | * This is a getter method to get the file name. 48 | * @return string A string representing the file name. 49 | */ 50 | public function getName() 51 | { 52 | return $this->name; 53 | } 54 | 55 | /** 56 | * This is a getter method to get the file input stream. 57 | * @return object A object representing the file input stream. 58 | */ 59 | public function getStream() 60 | { 61 | return $this->stream; 62 | } 63 | } -------------------------------------------------------------------------------- /src/com/zoho/crm/api/util/XMLConverter.php: -------------------------------------------------------------------------------- 1 | variableGroups; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to variableGroups 24 | * @param array $variableGroups A array 25 | */ 26 | public function setVariableGroups(array $variableGroups) 27 | { 28 | $this->variableGroups=$variableGroups; 29 | $this->keyModified['variable_groups'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/variables/ActionHandler.php: -------------------------------------------------------------------------------- 1 | variables; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to variables 24 | * @param array $variables A array 25 | */ 26 | public function setVariables(array $variables) 27 | { 28 | $this->variables=$variables; 29 | $this->keyModified['variables'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/variables/BodyWrapper.php: -------------------------------------------------------------------------------- 1 | variables; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to variables 24 | * @param array $variables A array 25 | */ 26 | public function setVariables(array $variables) 27 | { 28 | $this->variables=$variables; 29 | $this->keyModified['variables'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /src/com/zoho/crm/api/variables/DeleteVariablesParam.php: -------------------------------------------------------------------------------- 1 | variables; 19 | 20 | } 21 | 22 | /** 23 | * The method to set the value to variables 24 | * @param array $variables A array 25 | */ 26 | public function setVariables(array $variables) 27 | { 28 | $this->variables=$variables; 29 | $this->keyModified['variables'] = 1; 30 | 31 | } 32 | 33 | /** 34 | * The method to check if the user has modified the given key 35 | * @param string $key A string 36 | * @return int A int representing the modification 37 | */ 38 | public function isKeyModified(string $key) 39 | { 40 | if(((array_key_exists($key, $this->keyModified)))) 41 | { 42 | return $this->keyModified[$key]; 43 | 44 | } 45 | return null; 46 | 47 | } 48 | 49 | /** 50 | * The method to mark the given key as modified 51 | * @param string $key A string 52 | * @param int $modification A int 53 | */ 54 | public function setKeyModified(string $key, int $modification) 55 | { 56 | $this->keyModified[$key] = $modification; 57 | 58 | } 59 | } 60 | --------------------------------------------------------------------------------