EasyBimehConnect
یک ساب برند از ایزی بیمه است که وظیفه ارائه خدمات
B2B و B2B2C
را برپایه وب سرویس و وایت لیبل بر عهده دارد. اگر اپلیکیشن و یا سایت غیر بیمهای دارید و تمایل به فروش بیمه نامه دارید از امروز میتوانید با کمترین هزینه و کمترین زمان به زنجیره نوآوری در صنعت بیمه متصل شوید و تجارت جدیدی بسازید
به دلیل گستردگی پروژه و برای دسترسی بهتر، این پروژه به بخش های مختلف تقسیم شده است
و هر بخش در 10 پلتفرم مختلف، ارایه شده است
در این بخش، به وب سرویس های مربوط به صفحه ی لندینگ مرکز بیمه، دسترسی خواهید داشت که
اطلاعات هر پلتفرم را میتوانید بصورت تجمیعی در آدرس زیر مشاهده نمایید
https://www.apimatic.io/apidocs/easybimehlanding
و یا بصورت مجزا در آدرس های زیر قابل درسترس می باشند
1- Android: https://github.com/kmelodi/EasyBimehLanding_Android
2- .Net: https://github.com/kmelodi/EasyBimehLanding_.NET
3- Ios: https://github.com/kmelodi/EasyBimehLanding_IOS
4- Java: https://github.com/kmelodi/EasyBimehLanding_JAVA
5- Php: https://github.com/kmelodi/EasyBimehLanding_PHP
6- Python: https://github.com/kmelodi/EasyBimehLanding_Python
7- Ruby: https://github.com/kmelodi/EasyBimehLanding_Ruby
8- Angular: https://github.com/kmelodi/EasyBimehLanding_Angular
9- NodeJs: https://github.com/kmelodi/EasyBimehLanding_NodeJs
10- Go: https://github.com/kmelodi/EasyBimehLanding_Go
برای اطلاعات بیشتر به آدرس زیر مراجعه نمایید
https://easybimeh.com/ebconnect
The generated code has dependencies over external libraries like UniRest. These dependencies are defined in the PodFile
file that comes with the SDK.
To resolve these dependencies, we use the Cocoapods package manager.
Visit https://guides.cocoapods.org/using/getting-started.html to setup Cocoapods on your system.
Open command prompt and type pod --version
. This should display the current version of Cocoapods installed if the installation was successful.
Using command line, navigate to the directory containing the generated files (including PodFile
) for the SDK.
Run the command pod install
. This should install all the required dependencies and create the pods
directory in your project directory.
Open the project workspace using the (EasyBimehLanding.xcworkspace) file. Invoke the build process using Command(⌘)+B
shortcut key or using the Build
menu as shown below.
The generated code is a Cocoa Touch Static Library which can be used in any iOS project. The support for these generated libraries go all the way back to iOS 6.
The following section explains how to use the EasyBimehLanding library in a new iOS project.
To start a new project, left-click on the Create a new Xcode project
.
Next, choose Single View Application and click Next
.
Provide Test-Project as the product name click Next
.
Choose the desired location of your project folder and click Create
.
To add this dependency open a terminal and navigate to your project folder. Next, input pod init
and press enter.
Next, open the newly created PodFile
in your favourite text editor. Add the following line : pod 'EasyBimehLanding', :path => 'Vendor/EasyBimehLanding'
Execute pod install
from terminal to install the dependecy in your project. This would add the dependency to the newly created test project.
Unit tests in this SDK can be run using Xcode.
First build the SDK as shown in the steps above and naivgate to the project directory and open the EasyBimehLanding.xcworkspace file.
Go to the test explorer in Xcode as shown in the picture below and click on run tests
from the menu.
Configuration variables can be set as following.
- FileManagerController
- LiabilityDoctorInsuranceController
- CarBodyController
- ElectronicEquipmentInsuranceController
- OtherInsuranceTypesController
- ThirdPartyInsuranceController
- MotorcycleInsuranceController
- FireInsuranceController
- EarthquakeInsuranceController
- TravelInsuranceController
- ElevatorInsuranceController
- MainController
- ComboDataController
- TrackingDamageController
- FooterController
- InsurancePolicyPlanController
FileManager* fileManager = [[FileManager alloc]init] ;
آپلود فایل در ایزی بیمه بعد از آپلود، ادرس فایل باید در api های بعدی ارسال شود.
function uploadAsyncWithSubDomain:(NSString*) subDomain
xApiKey:(NSString*) xApiKey
file:(NSString*) file
completionBlock:(CompletedPostUpload) onCompleted(subDomain xApiKey : xApiKey file : file)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
file | Required |
فایل ارسالی |
// Parameters for the API call
NSString* subDomain = @"hfz1";
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
NSString* file = @"";
[self.fileManager uploadAsyncWithSubDomain: subDomain xApiKey : xApiKey file : file completionBlock:^(BOOL success, HttpContext* context, BaseModelUpload* response, NSError* error) {
//Add code here
}];
LiabilityDoctorInsurance* liabilityDoctorInsurance = [[LiabilityDoctorInsurance alloc]init] ;
در یافت اطلاعات اولیه برای استعلام بیمه مسئولیت پزشکان
function getLiabilityDoctorInsuranceAsyncWithSubDomain:(NSString*) subDomain
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetLiabilityDoctorInsurance) onCompleted(subDomain xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.liabilityDoctorInsurance getLiabilityDoctorInsuranceAsyncWithSubDomain: subDomain xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelLiabilityDoctorInsurance* response, NSError* error) {
//Add code here
}];
دریافت لیست تخصص های پزشکی
function getMedicalSpecialtiesAsyncWithId:(NSString*) mid
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetMedicalSpecialties) onCompleted(mid xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
mid | Required |
نوع تخصص => ParamedicalExpertise => پیراپزشکی MedicalExpertise => پزشکی |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* mid = @"ParamedicalExpertise";
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.liabilityDoctorInsurance getMedicalSpecialtiesAsyncWithId: mid xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelMedicalSpecialties* response, NSError* error) {
//Add code here
}];
CarBody* carBody = [[CarBody alloc]init] ;
دریافت برند خودرو
function getCarBrandAsyncWithXApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetCarBrand) onCompleted(xApiKey)
Parameter | Tags | Description |
---|---|---|
xApiKey | Required |
شناسه ی اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.carBody getCarBrandAsyncWithXApiKey: xApiKey completionBlock:^(BOOL success, HttpContext* context, CarBrand* response, NSError* error) {
//Add code here
}];
دریافت لیست تیپ خودرو
function getCarBrandTipsAsyncWithCarBrandId:(int) carBrandId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetCarBrandTips) onCompleted(carBrandId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
carBrandId | Required |
شناسه ی برند خودرو |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int carBrandId = [@"190" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.carBody getCarBrandTipsAsyncWithCarBrandId: carBrandId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, CarBrandTips* response, NSError* error) {
//Add code here
}];
آیا این نوع بیمه نامه، طرح بیمه ای دارد؟
function getHasPlanAsyncWithSubDomain:(NSString*) subDomain
insurancePolicyType:(int) insurancePolicyType
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetHasPlan) onCompleted(subDomain insurancePolicyType : insurancePolicyType xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyType | Required |
شناسه ی نوع بیمه نامه => بیمه بدنه=2 |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
int insurancePolicyType = [@"2" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.carBody getHasPlanAsyncWithSubDomain: subDomain insurancePolicyType : insurancePolicyType xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, HasPlan* response, NSError* error) {
//Add code here
}];
ElectronicEquipmentInsurance* electronicEquipmentInsurance = [[ElectronicEquipmentInsurance alloc]init] ;
دریافت اطلاعات اولیه استعلام بیمه نامه ی تجهیزات الکترونیک
function getElectronicEquipmentInsuranceAsyncWithSubDomain:(NSString*) subDomain
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetElectronicEquipmentInsurance) onCompleted(subDomain xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"subDomain";
NSString* xApiKey = @"x-api-key";
[self.electronicEquipmentInsurance getElectronicEquipmentInsuranceAsyncWithSubDomain: subDomain xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelElectronicEquipmentInsurance* response, NSError* error) {
//Add code here
}];
دریافت لیست نوع برند دستگاه
function getDeviceBrandTypesAsyncWithDeviceGroup:(int) deviceGroup
deviceTypeId:(int) deviceTypeId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetDeviceBrandTypes) onCompleted(deviceGroup deviceTypeId : deviceTypeId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
deviceGroup | Required |
شناسه ی گروه دستگاه |
deviceTypeId | Required |
شناسه ی نوع دستگاه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int deviceGroup = [@"1" intValue];
int deviceTypeId = [@"1" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.electronicEquipmentInsurance getDeviceBrandTypesAsyncWithDeviceGroup: deviceGroup deviceTypeId : deviceTypeId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelDeviceBrandTypes* response, NSError* error) {
//Add code here
}];
دریافت لیست فرانشیر استعلام بیمه نامه ی تجهیزات الکترونیک
function getDiviceFranchiseeAsyncWithDeviceModelId:(int) deviceModelId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetDiviceFranchisee) onCompleted(deviceModelId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
deviceModelId | Required |
شناسه ی مدل دستگاه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int deviceModelId = [@"1340" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.electronicEquipmentInsurance getDiviceFranchiseeAsyncWithDeviceModelId: deviceModelId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelDiviceFranchisee* response, NSError* error) {
//Add code here
}];
OtherInsuranceTypes* otherInsuranceTypes = [[OtherInsuranceTypes alloc]init] ;
دریافت لیست سایر بیمه نامه ها
function getOtherInsuranceTypesAsyncWithSubDomain:(NSString*) subDomain
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetOtherInsuranceTypes) onCompleted(subDomain xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.otherInsuranceTypes getOtherInsuranceTypesAsyncWithSubDomain: subDomain xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, OtherInsuranceTypes* response, NSError* error) {
//Add code here
}];
ارسال توکن تایید شماره تماس، برای احراز هویت کاربر
function getSendSmsTokenAsyncWithMobile:(NSString*) mobile
insuranceCentreSubDomain:(NSString*) insuranceCentreSubDomain
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetSendSmsToken) onCompleted(mobile insuranceCentreSubDomain : insuranceCentreSubDomain xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
mobile | Required |
شماره موبایل |
insuranceCentreSubDomain | Required |
دامنه یا زیردامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* mobile = @"09018318086";
NSString* insuranceCentreSubDomain = @"hfz1";
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.otherInsuranceTypes getSendSmsTokenAsyncWithMobile: mobile insuranceCentreSubDomain : insuranceCentreSubDomain xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, SendSmsToken* response, NSError* error) {
//Add code here
}];
تایید توکن پیامک شده به کاربر، برای احراز هویت
function getVerifySmsTokenAsyncWithMobile:(NSString*) mobile
token:(int) token
insuranceCentreSubDomain:(NSString*) insuranceCentreSubDomain
aliasName:(NSString*) aliasName
resource:(NSString*) resource
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetVerifySmsToken) onCompleted(mobile token : token insuranceCentreSubDomain : insuranceCentreSubDomain aliasName : aliasName resource : resource xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
mobile | Required |
شماره موبایل |
token | Required |
توکن دریافتی کاربر از پیامک |
insuranceCentreSubDomain | Required |
دامنه یا زیر دامنه ی اختصاصی مرکز بیمه |
aliasName | Required |
نام و نام خانوادگی کاربر |
resource | Required |
دامنه ی درخواست دهنده |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* mobile = @"09018318086";
int token = [@"27763" intValue];
NSString* insuranceCentreSubDomain = @"hfz1";
NSString* aliasName = @"علی موسوی";
NSString* resource = @"https://hfz1.easybimeh.com";
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.otherInsuranceTypes getVerifySmsTokenAsyncWithMobile: mobile token : token insuranceCentreSubDomain : insuranceCentreSubDomain aliasName : aliasName resource : resource xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, Status200* response, NSError* error) {
//Add code here
}];
Error Code | Error Description |
---|---|
400 | Bad Request |
ThirdPartyInsurance* thirdPartyInsurance = [[ThirdPartyInsurance alloc]init] ;
دریافت لیست برند خودرو ها
function getCarBrandsAsyncWithCarTypeGroup:(int) carTypeGroup
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetCarBrands) onCompleted(carTypeGroup xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
carTypeGroup | Required |
شناسه ی گروه خودرو |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int carTypeGroup = [@"1" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.thirdPartyInsurance getCarBrandsAsyncWithCarTypeGroup: carTypeGroup xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, CarBrands* response, NSError* error) {
//Add code here
}];
دریافت لیست تخفیف های بیمه
function getRiskLevelAsyncWithInsurancePolicyType:(int) insurancePolicyType
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetRiskLevel) onCompleted(insurancePolicyType xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
insurancePolicyType | Required |
شناسه ی نوع بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int insurancePolicyType = [@"0" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.thirdPartyInsurance getRiskLevelAsyncWithInsurancePolicyType: insurancePolicyType xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, RiskLevel* response, NSError* error) {
//Add code here
}];
دریافت لیست تیپ خودرو
function getCarBrandTipsAsyncWithCarBrandId:(int) carBrandId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetCarBrandTips) onCompleted(carBrandId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
carBrandId | Required |
شناسه ی برند خودرو |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int carBrandId = [@"190" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.thirdPartyInsurance getCarBrandTipsAsyncWithCarBrandId: carBrandId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, CarBrandTips* response, NSError* error) {
//Add code here
}];
دریافت لیست نوع کاربری خودرو
function getCarUsesAsyncWithCarTypeId:(int) carTypeId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetCarUses) onCompleted(carTypeId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
carTypeId | Required |
شناسه ی نوع خودرو |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int carTypeId = [@"103" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.thirdPartyInsurance getCarUsesAsyncWithCarTypeId: carTypeId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, CarUses* response, NSError* error) {
//Add code here
}];
آیا این نوع بیمه نامه، طرح بیمه ای دارد؟
function getHasPlanAsyncWithSubDomain:(NSString*) subDomain
insurancePolicyType:(int) insurancePolicyType
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetHasPlan) onCompleted(subDomain insurancePolicyType : insurancePolicyType xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyType | Required |
شناسه ی نوع بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
int insurancePolicyType = [@"0" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.thirdPartyInsurance getHasPlanAsyncWithSubDomain: subDomain insurancePolicyType : insurancePolicyType xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, HasPlan* response, NSError* error) {
//Add code here
}];
MotorcycleInsurance* motorcycleInsurance = [[MotorcycleInsurance alloc]init] ;
دریافت لیست برند موتور سیکلت
function getCarBrandsAsyncWithCarTypeGroup:(int) carTypeGroup
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetCarBrands) onCompleted(carTypeGroup xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
carTypeGroup | Required |
شناسه ی گروه خودرویی، موتور سیکلت =>0 |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int carTypeGroup = [@"0" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.motorcycleInsurance getCarBrandsAsyncWithCarTypeGroup: carTypeGroup xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, CarBrands* response, NSError* error) {
//Add code here
}];
دریافت لیست تیپ موتور سیکلت
function getCarBrandTipsAsyncWithCarBrandId:(int) carBrandId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetCarBrandTips) onCompleted(carBrandId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
carBrandId | Required |
شناسه ی برند موتور سیکلت |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int carBrandId = [@"472" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.motorcycleInsurance getCarBrandTipsAsyncWithCarBrandId: carBrandId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, CarBrandTips* response, NSError* error) {
//Add code here
}];
آیا این نوع بیمه نامه، طرح بیمه ای دارد؟
function getHasPlanAsyncWithSubDomain:(NSString*) subDomain
insurancePolicyType:(int) insurancePolicyType
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetHasPlan) onCompleted(subDomain insurancePolicyType : insurancePolicyType xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyType | Required |
شناسه ی نوع بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
int insurancePolicyType = [@"7" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.motorcycleInsurance getHasPlanAsyncWithSubDomain: subDomain insurancePolicyType : insurancePolicyType xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, HasPlan* response, NSError* error) {
//Add code here
}];
FireInsurance* fireInsurance = [[FireInsurance alloc]init] ;
دریافت اطلاعات پایه بیمه ی آتش سوزی
function getFireInsuranceAsyncWithSubDomain:(NSString*) subDomain
insurancePolicyId:(int) insurancePolicyId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetFireInsurance) onCompleted(subDomain insurancePolicyId : insurancePolicyId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyId | Required |
شناسه ی بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
int insurancePolicyId = [@"0" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.fireInsurance getFireInsuranceAsyncWithSubDomain: subDomain insurancePolicyId : insurancePolicyId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelFireInsurance* response, NSError* error) {
//Add code here
}];
EarthquakeInsurance* earthquakeInsurance = [[EarthquakeInsurance alloc]init] ;
دریافت اطلاعات پایه ی بیمه ی زلزله
function getEarthquakeAsyncWithSubDomain:(NSString*) subDomain
insurancePolicyId:(int) insurancePolicyId
insurancePolicyType:(int) insurancePolicyType
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetEarthquake) onCompleted(subDomain insurancePolicyId : insurancePolicyId insurancePolicyType : insurancePolicyType xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyId | Required |
شناسه ی بیمه نامه |
insurancePolicyType | Required |
شناسه ی نوع بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
int insurancePolicyId = [@"0" intValue];
int insurancePolicyType = [@"6" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.earthquakeInsurance getEarthquakeAsyncWithSubDomain: subDomain insurancePolicyId : insurancePolicyId insurancePolicyType : insurancePolicyType xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelEarthquake* response, NSError* error) {
//Add code here
}];
TravelInsurance* travelInsurance = [[TravelInsurance alloc]init] ;
TODO: Add Description
function getTravelInsuranceAsyncWithSubDomain:(NSString*) subDomain
insurancePolicyId:(int) insurancePolicyId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetTravelInsurance) onCompleted(subDomain insurancePolicyId : insurancePolicyId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyId | Required |
شناسه ی بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
int insurancePolicyId = [@"0" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.travelInsurance getTravelInsuranceAsyncWithSubDomain: subDomain insurancePolicyId : insurancePolicyId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelTravelInsurance* response, NSError* error) {
//Add code here
}];
ElevatorInsurance* elevatorInsurance = [[ElevatorInsurance alloc]init] ;
دریافت اطلاعات پایه ی بیمه نامه ی آسانسور
function getElevatorInsuranceAsyncWithSubDomain:(NSString*) subDomain
insurancePolicyId:(int) insurancePolicyId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetElevatorInsurance) onCompleted(subDomain insurancePolicyId : insurancePolicyId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyId | Required |
شناسه ی بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
int insurancePolicyId = [@"0" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.elevatorInsurance getElevatorInsuranceAsyncWithSubDomain: subDomain insurancePolicyId : insurancePolicyId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelElevatorInsurance* response, NSError* error) {
//Add code here
}];
Main* main = [[Main alloc]init] ;
در یافت اطلاعات لندینگ مراکز بیمه
function getPortalLandingPageAsyncWithId:(NSString*) mid
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetPortalLandingPage) onCompleted(mid xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
mid | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* mid = @"hfz1";
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.main getPortalLandingPageAsyncWithId: mid xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelPortalLandingPage* response, NSError* error) {
//Add code here
}];
دریافت لیست بیمه ی های ارائه شده توسط مرکز بیمه
function getInsuranceCentrePolicyTypesAsyncWithSubDomain:(NSString*) subDomain
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetInsuranceCentrePolicyTypes) onCompleted(subDomain xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.main getInsuranceCentrePolicyTypesAsyncWithSubDomain: subDomain xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelInsuranceCentrePolicyTypes* response, NSError* error) {
//Add code here
}];
ComboData* comboData = [[ComboData alloc]init] ;
دریافت لیست نوع خسارت
function getDamageTypeAsyncWithXApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetDamageType) onCompleted(xApiKey)
Parameter | Tags | Description |
---|---|---|
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.comboData getDamageTypeAsyncWithXApiKey: xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelDamageType* response, NSError* error) {
//Add code here
}];
دریافت لیست نوع بیمه نامه
function getInsuranceTypesAsyncWithSubDomain:(NSString*) subDomain
issueInsurance:(BOOL) issueInsurance
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetInsuranceTypes) onCompleted(subDomain issueInsurance : issueInsurance xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
issueInsurance | Required |
دریافت بیمه نامه های قابل صدور |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
BOOL issueInsurance = [@"false" boolValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.comboData getInsuranceTypesAsyncWithSubDomain: subDomain issueInsurance : issueInsurance xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, InsuranceTypes* response, NSError* error) {
//Add code here
}];
دریافت لیست شرکت های بیمه
function getInsuranceCompaniesAsyncWithSubDomain:(NSString*) subDomain
insuranceTypeId:(int) insuranceTypeId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetInsuranceCompanies) onCompleted(subDomain insuranceTypeId : insuranceTypeId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insuranceTypeId | Required |
شناسه ی نوع بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
int insuranceTypeId = [@"1" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.comboData getInsuranceCompaniesAsyncWithSubDomain: subDomain insuranceTypeId : insuranceTypeId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, InsuranceCompanies* response, NSError* error) {
//Add code here
}];
TrackingDamage* trackingDamage = [[TrackingDamage alloc]init] ;
استعلام وضعیت خسارت
function getTrackingCodeAsyncWithMTrackingCode:(NSString*) mTrackingCode
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetTrackingCode) onCompleted(mTrackingCode xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
mTrackingCode | Required |
کد پیگیری خسارت |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* mTrackingCode = @"/{TrackingCode}";
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.trackingDamage getTrackingCodeAsyncWithMTrackingCode: mTrackingCode xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelTrakingCode* response, NSError* error) {
//Add code here
}];
Error Code | Error Description |
---|---|
400 | Bad Request |
ثبت خسارت بیمه
function createTrackingDamageAsyncWithBody:(TrackingDamageRequest*) body
xApiKey:(NSString*) xApiKey
contentType:(NSString*) contentType
completionBlock:(CompletedPostTrackingDamage) onCompleted(body xApiKey : xApiKey contentType : contentType)
Parameter | Tags | Description |
---|---|---|
body | Required |
اطلاعات خسارت |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
contentType | Required |
TODO: Add a parameter description |
// Parameters for the API call
TrackingDamageRequest* body = (TrackingDamageRequest*) [APIHelper jsonDeserialize: @"{
\"personalityType\": 0,
\"trackingDamageStatus\": [
{
\"trackingDamageFile\": [
{
\"id\": 162747,
\"url\": \"https://media.easybimeh.com//Easybimeh/FileManager/InsuranceCentre/hfz1/637089119345134776.jpeg\",
\"title\": \"کارت شناسایی\"
}
]
}
],
\"description\": \"بدنه ی خودرو خسارت دیده\",
\"insuranceTypeId\": 1,
\"insuranceCompanyId\": 34,
\"insurancePolicyNumber\": \"123456\",
\"damageType\": \"مالی\",
\"name\": \"کاظم\",
\"nationalCode\": \"3080118383\",
\"mobile\": \"09018318086\",
\"insuredProfile\": \"پژو 405\",
\"subDomain\": \"hfz1\"
}"
toClass: TrackingDamageRequest.class];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
NSString* contentType = @"application/json";
[self.trackingDamage createTrackingDamageAsyncWithBody: body xApiKey : xApiKey contentType : contentType completionBlock:^(BOOL success, HttpContext* context, TrackingDamage* response, NSError* error) {
//Add code here
}];
دریافت لیست وضعیت های خسارت
function getStatusStatusCollectionsAsyncWithStatusType:(int) statusType
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetStatusStatusCollections) onCompleted(statusType xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
statusType | Required |
نوع وضعیت ها ی خسارت => 0 |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int statusType = [@"0" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.trackingDamage getStatusStatusCollectionsAsyncWithStatusType: statusType xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelStatusStatusCollections* response, NSError* error) {
//Add code here
}];
دریافت اطلاعات وضعیت
function getStatusAsyncWithEntityId:(int) entityId
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetStatus) onCompleted(entityId xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
entityId | Required |
شناسه ی وضعیت |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int entityId = [@"1129" intValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.trackingDamage getStatusAsyncWithEntityId: entityId xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelStatus* response, NSError* error) {
//Add code here
}];
Footer* footer = [[Footer alloc]init] ;
دریافت اطلاعات درباره ی ما
function getPortalLandingContactAboutAsyncWithXApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetPortalLandingContactAbout) onCompleted(xApiKey)
Parameter | Tags | Description |
---|---|---|
xApiKey | Required |
TODO: Add a parameter description |
// Parameters for the API call
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.footer getPortalLandingContactAboutAsyncWithXApiKey: xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelPortalLandingContactAbout* response, NSError* error) {
//Add code here
}];
دریافت لیست سوالات متداول
function getFaqInsuranceCentreAsyncWithXApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetFaqInsuranceCentre) onCompleted(xApiKey)
Parameter | Tags | Description |
---|---|---|
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.footer getFaqInsuranceCentreAsyncWithXApiKey: xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelFaqInsuranceCentre* response, NSError* error) {
//Add code here
}];
پیگیری وضعیت بیمه نامه
function getInsurancePolicyTrackingAsyncWithTrackingCode:(int) trackingCode
nationalCode:(long) nationalCode
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetInsurancePolicyTracking) onCompleted(trackingCode nationalCode : nationalCode xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
trackingCode | Required |
شماره ی پیگیری بیمه نامه |
nationalCode | Required |
کد ملی کاربر |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
int trackingCode = [@"213981083" intValue];
long nationalCode = [@"3080115309" longLongValue];
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.footer getInsurancePolicyTrackingAsyncWithTrackingCode: trackingCode nationalCode : nationalCode xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelInsurancePolicyTracking* response, NSError* error) {
//Add code here
}];
Error Code | Error Description |
---|---|
500 | Internal Server Error |
InsurancePolicyPlan* insurancePolicyPlan = [[InsurancePolicyPlan alloc]init] ;
دریافت لیست طرح های بیمه ای
function getSpecialPlanAsyncWithSubDomain:(NSString*) subDomain
xApiKey:(NSString*) xApiKey
completionBlock:(CompletedGetSpecialPlan) onCompleted(subDomain xApiKey : xApiKey)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
// Parameters for the API call
NSString* subDomain = @"hfz1";
NSString* xApiKey = @"d6dfd932-75d8-e911-811a-000c294ecf01";
[self.insurancePolicyPlan getSpecialPlanAsyncWithSubDomain: subDomain xApiKey : xApiKey completionBlock:^(BOOL success, HttpContext* context, BaseModelSpecialPlan* response, NSError* error) {
//Add code here
}];