Skip to content

kmelodi/EasyBimehLanding_.NET

Repository files navigation

Getting started

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

How to Build

The generated code uses the Newtonsoft Json.NET NuGet Package. If the automatic NuGet package restore is enabled, these dependencies will be installed automatically. Therefore, you will need internet access for build.

"This library requires Visual Studio 2017 for compilation."

  1. Open the solution (EasyBimehLanding.sln) file.
  2. Invoke the build process using Ctrl+Shift+B shortcut key or using the Build menu as shown below.

Building SDK using Visual Studio

How to Use

The build process generates a portable class library, which can be used like a normal class library. The generated library is compatible with Windows Forms, Windows RT, Windows Phone 8, Silverlight 5, Xamarin iOS, Xamarin Android and Mono. More information on how to use can be found at the MSDN Portable Class Libraries documentation.

The following section explains how to use the EasyBimehLanding library in a new console project.

1. Starting a new project

For starting a new project, right click on the current solution from the solution explorer and choose Add -> New Project.

Add a new project in the existing solution using Visual Studio

Next, choose "Console Application", provide a TestConsoleProject as the project name and click OK.

Create a new console project using Visual Studio

2. Set as startup project

The new console project is the entry point for the eventual execution. This requires us to set the TestConsoleProject as the start-up project. To do this, right-click on the TestConsoleProject and choose Set as StartUp Project form the context menu.

Set the new cosole project as the start up project

3. Add reference of the library project

In order to use the EasyBimehLanding library in the new project, first we must add a projet reference to the TestConsoleProject. First, right click on the References node in the solution explorer and click Add Reference....

Open references of the TestConsoleProject

Next, a window will be displayed where we must set the checkbox on EasyBimehLanding.Tests and click OK. By doing this, we have added a reference of the EasyBimehLanding.Tests project into the new TestConsoleProject.

Add a reference to the TestConsoleProject

4. Write sample code

Once the TestConsoleProject is created, a file named Program.cs will be visible in the solution explorer with an empty Main method. This is the entry point for the execution of the entire solution. Here, you can add code to initialize the client library and acquire the instance of a Controller class. Sample code to initialize the client library and using controller methods is given in the subsequent sections.

Add a reference to the TestConsoleProject

How to Test

The generated SDK also contain one or more Tests, which are contained in the Tests project. In order to invoke these test cases, you will need NUnit 3.0 Test Adapter Extension for Visual Studio. Once the SDK is complied, the test cases should appear in the Test Explorer window. Here, you can click Run All to execute these test cases.

Initialization

API client can be initialized as following.

EasyBimehLandingClient client = new EasyBimehLandingClient();

Class Reference

List of Controllers

Class: FileManagerController

Get singleton instance

The singleton instance of the FileManagerController class can be accessed from the API Client.

FileManagerController fileManager = client.FileManager;

Method: Upload

آپلود فایل در ایزی بیمه بعد از آپلود، ادرس فایل باید در api های بعدی ارسال شود.

Task<Standard.Models.BaseModelUpload> Upload(string subDomain, string xApiKey, string file)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
xApiKey Required کلید اختصاصی ارتباط با سرور
file Required فایل ارسالی

Example Usage

string subDomain = "hfz1";
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";
string file = "file";

Standard.Models.BaseModelUpload result = await fileManager.Upload(subDomain, xApiKey, file);

Back to List of Controllers

Class: LiabilityDoctorInsuranceController

Get singleton instance

The singleton instance of the LiabilityDoctorInsuranceController class can be accessed from the API Client.

LiabilityDoctorInsuranceController liabilityDoctorInsurance = client.LiabilityDoctorInsurance;

Method: GetLiabilityDoctorInsurance

در یافت اطلاعات اولیه برای استعلام بیمه مسئولیت پزشکان

Task<Standard.Models.BaseModelLiabilityDoctorInsurance> GetLiabilityDoctorInsurance(string subDomain, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelLiabilityDoctorInsurance result = await liabilityDoctorInsurance.GetLiabilityDoctorInsurance(subDomain, xApiKey);

Method: GetMedicalSpecialties

دریافت لیست تخصص های پزشکی

Task<Standard.Models.BaseModelMedicalSpecialties> GetMedicalSpecialties(string id, string xApiKey)

Parameters

Parameter Tags Description
id Required نوع تخصص => ParamedicalExpertise => پیراپزشکی MedicalExpertise => پزشکی
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string id = "ParamedicalExpertise";
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelMedicalSpecialties result = await liabilityDoctorInsurance.GetMedicalSpecialties(id, xApiKey);

Back to List of Controllers

Class: CarBodyController

Get singleton instance

The singleton instance of the CarBodyController class can be accessed from the API Client.

CarBodyController carBody = client.CarBody;

Method: GetCarBrand

دریافت برند خودرو

Task<Standard.Models.CarBrand> GetCarBrand(string xApiKey)

Parameters

Parameter Tags Description
xApiKey Required شناسه ی اختصاصی ارتباط با سرور

Example Usage

string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.CarBrand result = await carBody.GetCarBrand(xApiKey);

Method: GetCarBrandTips

دریافت لیست تیپ خودرو

Task<Standard.Models.CarBrandTips> GetCarBrandTips(int carBrandId, string xApiKey)

Parameters

Parameter Tags Description
carBrandId Required شناسه ی برند خودرو
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int carBrandId = 190;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.CarBrandTips result = await carBody.GetCarBrandTips(carBrandId, xApiKey);

Method: GetHasPlan

آیا این نوع بیمه نامه، طرح بیمه ای دارد؟

Task<Standard.Models.HasPlan> GetHasPlan(string subDomain, int insurancePolicyType, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
insurancePolicyType Required شناسه ی نوع بیمه نامه => بیمه بدنه=2
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
int insurancePolicyType = 2;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.HasPlan result = await carBody.GetHasPlan(subDomain, insurancePolicyType, xApiKey);

Back to List of Controllers

Class: ElectronicEquipmentInsuranceController

Get singleton instance

The singleton instance of the ElectronicEquipmentInsuranceController class can be accessed from the API Client.

ElectronicEquipmentInsuranceController electronicEquipmentInsurance = client.ElectronicEquipmentInsurance;

Method: GetElectronicEquipmentInsurance

دریافت اطلاعات اولیه استعلام بیمه نامه ی تجهیزات الکترونیک

Task<Standard.Models.BaseModelElectronicEquipmentInsurance> GetElectronicEquipmentInsurance(string subDomain, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "subDomain";
string xApiKey = "x-api-key";

Standard.Models.BaseModelElectronicEquipmentInsurance result = await electronicEquipmentInsurance.GetElectronicEquipmentInsurance(subDomain, xApiKey);

Method: GetDeviceBrandTypes

دریافت لیست نوع برند دستگاه

Task<Standard.Models.BaseModelDeviceBrandTypes> GetDeviceBrandTypes(int deviceGroup, int deviceTypeId, string xApiKey)

Parameters

Parameter Tags Description
deviceGroup Required شناسه ی گروه دستگاه
deviceTypeId Required شناسه ی نوع دستگاه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int deviceGroup = 1;
int deviceTypeId = 1;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelDeviceBrandTypes result = await electronicEquipmentInsurance.GetDeviceBrandTypes(deviceGroup, deviceTypeId, xApiKey);

Method: GetDiviceFranchisee

دریافت لیست فرانشیر استعلام بیمه نامه ی تجهیزات الکترونیک

Task<Standard.Models.BaseModelDiviceFranchisee> GetDiviceFranchisee(int deviceModelId, string xApiKey)

Parameters

Parameter Tags Description
deviceModelId Required شناسه ی مدل دستگاه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int deviceModelId = 1340;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelDiviceFranchisee result = await electronicEquipmentInsurance.GetDiviceFranchisee(deviceModelId, xApiKey);

Back to List of Controllers

Class: OtherInsuranceTypesController

Get singleton instance

The singleton instance of the OtherInsuranceTypesController class can be accessed from the API Client.

OtherInsuranceTypesController otherInsuranceTypes = client.OtherInsuranceTypes;

Method: GetOtherInsuranceTypes

دریافت لیست سایر بیمه نامه ها

Task<Standard.Models.OtherInsuranceTypes> GetOtherInsuranceTypes(string subDomain, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.OtherInsuranceTypes result = await otherInsuranceTypes.GetOtherInsuranceTypes(subDomain, xApiKey);

Method: GetSendSmsToken

ارسال توکن تایید شماره تماس، برای احراز هویت کاربر

Task<Standard.Models.SendSmsToken> GetSendSmsToken(string mobile, string insuranceCentreSubDomain, string xApiKey)

Parameters

Parameter Tags Description
mobile Required شماره موبایل
insuranceCentreSubDomain Required دامنه یا زیردامنه ی مرکز بیمه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string mobile = "09018318086";
string insuranceCentreSubDomain = "hfz1";
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.SendSmsToken result = await otherInsuranceTypes.GetSendSmsToken(mobile, insuranceCentreSubDomain, xApiKey);

Method: GetVerifySmsToken

تایید توکن پیامک شده به کاربر، برای احراز هویت

Task<Standard.Models.Status200> GetVerifySmsToken(
        string mobile,
        int token,
        string insuranceCentreSubDomain,
        string aliasName,
        string resource,
        string xApiKey)

Parameters

Parameter Tags Description
mobile Required شماره موبایل
token Required توکن دریافتی کاربر از پیامک
insuranceCentreSubDomain Required دامنه یا زیر دامنه ی اختصاصی مرکز بیمه
aliasName Required نام و نام خانوادگی کاربر
resource Required دامنه ی درخواست دهنده
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string mobile = "09018318086";
int token = 27763;
string insuranceCentreSubDomain = "hfz1";
string aliasName = "علی موسوی";
string resource = "https://hfz1.easybimeh.com";
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.Status200 result = await otherInsuranceTypes.GetVerifySmsToken(mobile, token, insuranceCentreSubDomain, aliasName, resource, xApiKey);

Errors

Error Code Error Description
400 Bad Request

Back to List of Controllers

Class: ThirdPartyInsuranceController

Get singleton instance

The singleton instance of the ThirdPartyInsuranceController class can be accessed from the API Client.

ThirdPartyInsuranceController thirdPartyInsurance = client.ThirdPartyInsurance;

Method: GetCarBrands

دریافت لیست برند خودرو ها

Task<Standard.Models.CarBrands> GetCarBrands(int carTypeGroup, string xApiKey)

Parameters

Parameter Tags Description
carTypeGroup Required شناسه ی گروه خودرو
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int carTypeGroup = 1;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.CarBrands result = await thirdPartyInsurance.GetCarBrands(carTypeGroup, xApiKey);

Method: GetRiskLevel

دریافت لیست تخفیف های بیمه

Task<Standard.Models.RiskLevel> GetRiskLevel(int insurancePolicyType, string xApiKey)

Parameters

Parameter Tags Description
insurancePolicyType Required شناسه ی نوع بیمه نامه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int insurancePolicyType = 0;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.RiskLevel result = await thirdPartyInsurance.GetRiskLevel(insurancePolicyType, xApiKey);

Method: GetCarBrandTips

دریافت لیست تیپ خودرو

Task<Standard.Models.CarBrandTips> GetCarBrandTips(int carBrandId, string xApiKey)

Parameters

Parameter Tags Description
carBrandId Required شناسه ی برند خودرو
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int carBrandId = 190;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.CarBrandTips result = await thirdPartyInsurance.GetCarBrandTips(carBrandId, xApiKey);

Method: GetCarUses

دریافت لیست نوع کاربری خودرو

Task<Standard.Models.CarUses> GetCarUses(int carTypeId, string xApiKey)

Parameters

Parameter Tags Description
carTypeId Required شناسه ی نوع خودرو
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int carTypeId = 103;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.CarUses result = await thirdPartyInsurance.GetCarUses(carTypeId, xApiKey);

Method: GetHasPlan

آیا این نوع بیمه نامه، طرح بیمه ای دارد؟

Task<Standard.Models.HasPlan> GetHasPlan(string subDomain, int insurancePolicyType, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
insurancePolicyType Required شناسه ی نوع بیمه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
int insurancePolicyType = 0;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.HasPlan result = await thirdPartyInsurance.GetHasPlan(subDomain, insurancePolicyType, xApiKey);

Back to List of Controllers

Class: MotorcycleInsuranceController

Get singleton instance

The singleton instance of the MotorcycleInsuranceController class can be accessed from the API Client.

MotorcycleInsuranceController motorcycleInsurance = client.MotorcycleInsurance;

Method: GetCarBrands

دریافت لیست برند موتور سیکلت

Task<Standard.Models.CarBrands> GetCarBrands(int carTypeGroup, string xApiKey)

Parameters

Parameter Tags Description
carTypeGroup Required شناسه ی گروه خودرویی، موتور سیکلت =>0
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int carTypeGroup = 0;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.CarBrands result = await motorcycleInsurance.GetCarBrands(carTypeGroup, xApiKey);

Method: GetCarBrandTips

دریافت لیست تیپ موتور سیکلت

Task<Standard.Models.CarBrandTips> GetCarBrandTips(int carBrandId, string xApiKey)

Parameters

Parameter Tags Description
carBrandId Required شناسه ی برند موتور سیکلت
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int carBrandId = 472;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.CarBrandTips result = await motorcycleInsurance.GetCarBrandTips(carBrandId, xApiKey);

Method: GetHasPlan

آیا این نوع بیمه نامه، طرح بیمه ای دارد؟

Task<Standard.Models.HasPlan> GetHasPlan(string subDomain, int insurancePolicyType, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
insurancePolicyType Required شناسه ی نوع بیمه نامه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
int insurancePolicyType = 7;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.HasPlan result = await motorcycleInsurance.GetHasPlan(subDomain, insurancePolicyType, xApiKey);

Back to List of Controllers

Class: FireInsuranceController

Get singleton instance

The singleton instance of the FireInsuranceController class can be accessed from the API Client.

FireInsuranceController fireInsurance = client.FireInsurance;

Method: GetFireInsurance

دریافت اطلاعات پایه بیمه ی آتش سوزی

Task<Standard.Models.BaseModelFireInsurance> GetFireInsurance(string subDomain, int insurancePolicyId, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
insurancePolicyId Required شناسه ی بیمه نامه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
int insurancePolicyId = 0;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelFireInsurance result = await fireInsurance.GetFireInsurance(subDomain, insurancePolicyId, xApiKey);

Back to List of Controllers

Class: EarthquakeInsuranceController

Get singleton instance

The singleton instance of the EarthquakeInsuranceController class can be accessed from the API Client.

EarthquakeInsuranceController earthquakeInsurance = client.EarthquakeInsurance;

Method: GetEarthquake

دریافت اطلاعات پایه ی بیمه ی زلزله

Task<Standard.Models.BaseModelEarthquake> GetEarthquake(
        string subDomain,
        int insurancePolicyId,
        int insurancePolicyType,
        string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
insurancePolicyId Required شناسه ی بیمه نامه
insurancePolicyType Required شناسه ی نوع بیمه نامه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
int insurancePolicyId = 0;
int insurancePolicyType = 6;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelEarthquake result = await earthquakeInsurance.GetEarthquake(subDomain, insurancePolicyId, insurancePolicyType, xApiKey);

Back to List of Controllers

Class: TravelInsuranceController

Get singleton instance

The singleton instance of the TravelInsuranceController class can be accessed from the API Client.

TravelInsuranceController travelInsurance = client.TravelInsurance;

Method: GetTravelInsurance

TODO: Add Description

Task<Standard.Models.BaseModelTravelInsurance> GetTravelInsurance(string subDomain, int insurancePolicyId, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
insurancePolicyId Required شناسه ی بیمه نامه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
int insurancePolicyId = 0;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelTravelInsurance result = await travelInsurance.GetTravelInsurance(subDomain, insurancePolicyId, xApiKey);

Back to List of Controllers

Class: ElevatorInsuranceController

Get singleton instance

The singleton instance of the ElevatorInsuranceController class can be accessed from the API Client.

ElevatorInsuranceController elevatorInsurance = client.ElevatorInsurance;

Method: GetElevatorInsurance

دریافت اطلاعات پایه ی بیمه نامه ی آسانسور

Task<Standard.Models.BaseModelElevatorInsurance> GetElevatorInsurance(string subDomain, int insurancePolicyId, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
insurancePolicyId Required شناسه ی بیمه نامه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
int insurancePolicyId = 0;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelElevatorInsurance result = await elevatorInsurance.GetElevatorInsurance(subDomain, insurancePolicyId, xApiKey);

Back to List of Controllers

Class: MainController

Get singleton instance

The singleton instance of the MainController class can be accessed from the API Client.

MainController main = client.Main;

Method: GetPortalLandingPage

در یافت اطلاعات لندینگ مراکز بیمه

Task<Standard.Models.BaseModelPortalLandingPage> GetPortalLandingPage(string id, string xApiKey)

Parameters

Parameter Tags Description
id Required دامنه یا زیر دامنه ی مرکز بیمه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string id = "hfz1";
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelPortalLandingPage result = await main.GetPortalLandingPage(id, xApiKey);

Method: GetInsuranceCentrePolicyTypes

دریافت لیست بیمه ی های ارائه شده توسط مرکز بیمه

Task<Standard.Models.BaseModelInsuranceCentrePolicyTypes> GetInsuranceCentrePolicyTypes(string subDomain, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelInsuranceCentrePolicyTypes result = await main.GetInsuranceCentrePolicyTypes(subDomain, xApiKey);

Back to List of Controllers

Class: ComboDataController

Get singleton instance

The singleton instance of the ComboDataController class can be accessed from the API Client.

ComboDataController comboData = client.ComboData;

Method: GetDamageType

دریافت لیست نوع خسارت

Task<Standard.Models.BaseModelDamageType> GetDamageType(string xApiKey)

Parameters

Parameter Tags Description
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelDamageType result = await comboData.GetDamageType(xApiKey);

Method: GetInsuranceTypes

دریافت لیست نوع بیمه نامه

Task<Standard.Models.InsuranceTypes> GetInsuranceTypes(string subDomain, bool issueInsurance, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
issueInsurance Required دریافت بیمه نامه های قابل صدور
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
bool issueInsurance = false;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.InsuranceTypes result = await comboData.GetInsuranceTypes(subDomain, issueInsurance, xApiKey);

Method: GetInsuranceCompanies

دریافت لیست شرکت های بیمه

Task<Standard.Models.InsuranceCompanies> GetInsuranceCompanies(string subDomain, int insuranceTypeId, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
insuranceTypeId Required شناسه ی نوع بیمه نامه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
int insuranceTypeId = 1;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.InsuranceCompanies result = await comboData.GetInsuranceCompanies(subDomain, insuranceTypeId, xApiKey);

Back to List of Controllers

Class: TrackingDamageController

Get singleton instance

The singleton instance of the TrackingDamageController class can be accessed from the API Client.

TrackingDamageController trackingDamage = client.TrackingDamage;

Method: GetTrackingCode

استعلام وضعیت خسارت

Task<Standard.Models.BaseModelTrakingCode> GetTrackingCode(string mTrackingCode, string xApiKey)

Parameters

Parameter Tags Description
mTrackingCode Required کد پیگیری خسارت
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string mTrackingCode = "/{TrackingCode}";
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelTrakingCode result = await trackingDamage.GetTrackingCode(mTrackingCode, xApiKey);

Errors

Error Code Error Description
400 Bad Request

Method: CreateTrackingDamage

ثبت خسارت بیمه

Task<Standard.Models.TrackingDamage> CreateTrackingDamage(Standard.Models.TrackingDamageRequest body, string xApiKey, string contentType)

Parameters

Parameter Tags Description
body Required اطلاعات خسارت
xApiKey Required کلید اختصاصی ارتباط با سرور
contentType Required TODO: Add a parameter description

Example Usage

string bodyValue = "{\r\n  \"personalityType\": 0,\r\n  \"trackingDamageStatus\": [\r\n    {\r\n      \"trackingDamageFile\": [\r\n        {\r\n          \"id\": 162747,\r\n          \"url\": \"https://media.easybimeh.com//Easybimeh/FileManager/InsuranceCentre/hfz1/637089119345134776.jpeg\",\r\n          \"title\": \"کارت شناسایی\"\r\n        }\r\n      ]\r\n    }\r\n  ],\r\n  \"description\": \"بدنه ی خودرو خسارت دیده\",\r\n  \"insuranceTypeId\": 1,\r\n  \"insuranceCompanyId\": 34,\r\n  \"insurancePolicyNumber\": \"123456\",\r\n  \"damageType\": \"مالی\",\r\n  \"name\": \"کاظم\",\r\n  \"nationalCode\": \"3080118383\",\r\n  \"mobile\": \"09018318086\",\r\n  \"insuredProfile\": \"پژو 405\",\r\n  \"subDomain\": \"hfz1\"\r\n}";
var body = Newtonsoft.Json.JsonConvert.DeserializeObject<Standard.Models.TrackingDamageRequest>(bodyValue);
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";
string contentType = "application/json";

Standard.Models.TrackingDamage result = await trackingDamage.CreateTrackingDamage(body, xApiKey, contentType);

Method: GetStatusStatusCollections

دریافت لیست وضعیت های خسارت

Task<Standard.Models.BaseModelStatusStatusCollections> GetStatusStatusCollections(int statusType, string xApiKey)

Parameters

Parameter Tags Description
statusType Required نوع وضعیت ها ی خسارت => 0
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int statusType = 0;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelStatusStatusCollections result = await trackingDamage.GetStatusStatusCollections(statusType, xApiKey);

Method: GetStatus

دریافت اطلاعات وضعیت

Task<Standard.Models.BaseModelStatus> GetStatus(int entityId, string xApiKey)

Parameters

Parameter Tags Description
entityId Required شناسه ی وضعیت
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int entityId = 1129;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelStatus result = await trackingDamage.GetStatus(entityId, xApiKey);

Back to List of Controllers

Class: FooterController

Get singleton instance

The singleton instance of the FooterController class can be accessed from the API Client.

FooterController footer = client.Footer;

Method: GetPortalLandingContactAbout

دریافت اطلاعات درباره ی ما

Task<Standard.Models.BaseModelPortalLandingContactAbout> GetPortalLandingContactAbout(string xApiKey)

Parameters

Parameter Tags Description
xApiKey Required TODO: Add a parameter description

Example Usage

string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelPortalLandingContactAbout result = await footer.GetPortalLandingContactAbout(xApiKey);

Method: GetFaqInsuranceCentre

دریافت لیست سوالات متداول

Task<Standard.Models.BaseModelFaqInsuranceCentre> GetFaqInsuranceCentre(string xApiKey)

Parameters

Parameter Tags Description
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelFaqInsuranceCentre result = await footer.GetFaqInsuranceCentre(xApiKey);

Method: GetInsurancePolicyTracking

پیگیری وضعیت بیمه نامه

Task<Standard.Models.BaseModelInsurancePolicyTracking> GetInsurancePolicyTracking(int trackingCode, long nationalCode, string xApiKey)

Parameters

Parameter Tags Description
trackingCode Required شماره ی پیگیری بیمه نامه
nationalCode Required کد ملی کاربر
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

int trackingCode = 213981083;
long nationalCode = 3080115309L;
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelInsurancePolicyTracking result = await footer.GetInsurancePolicyTracking(trackingCode, nationalCode, xApiKey);

Errors

Error Code Error Description
500 Internal Server Error

Back to List of Controllers

Class: InsurancePolicyPlanController

Get singleton instance

The singleton instance of the InsurancePolicyPlanController class can be accessed from the API Client.

InsurancePolicyPlanController insurancePolicyPlan = client.InsurancePolicyPlan;

Method: GetSpecialPlan

دریافت لیست طرح های بیمه ای

Task<Standard.Models.BaseModelSpecialPlan> GetSpecialPlan(string subDomain, string xApiKey)

Parameters

Parameter Tags Description
subDomain Required دامنه یا زیر دامنه ی مرکز بیمه
xApiKey Required کلید اختصاصی ارتباط با سرور

Example Usage

string subDomain = "hfz1";
string xApiKey = "d6dfd932-75d8-e911-811a-000c294ecf01";

Standard.Models.BaseModelSpecialPlan result = await insurancePolicyPlan.GetSpecialPlan(subDomain, xApiKey);

Back to List of Controllers

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages