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
- In order to successfully build and run your SDK files, you are required to have the following setup in your system:
- Go (Visit https://golang.org/doc/install for more details on how to install Go)
- Java VM Version 8 or later
- Eclipse 4.6 (Neon) or later (http://www.eclipse.org/neon/)
- GoClipse setup within above installed Eclipse (Follow the instructions at this link to setup GoClipse)
- Ensure that
GOPATH
environment variable is set in the system variables. If not, set it to your workspace directory where you will be adding your Go projects. - The generated code uses unirest-go http library. Therefore, you will need internet access to resolve this dependency. If Go is properly installed and configured, run the following command to pull the dependency:
go get github.com/apimatic/unirest-go
This will install unirest-go in the GOPATH
you specified in the system variables.
Now follow the steps mentioned below to build your SDK:
- Open eclipse in the Go language perspective and click on the
Import
option inFile
menu.
- Select
General -> Existing Projects into Workspace
option from the tree list.
- In
Select root directory
, provide path to the unzipped archive for the generated code. Once the path is set and the Project becomes visible underProjects
clickFinish
- The Go library will be imported and its files will be visible in the Project Explorer
The following section explains how to use the EasybimehlandingLib library in a new project.
Create a new project in Eclipse by File
-> New
-> Go Project
Name the Project as Test
and click Finish
Create a new directory in the src
directory of this project
Name it test.com
Now create a new file inside src/test.com
Name it testsdk.go
In this Go file, you can start adding code to initialize the client library. Sample code to initialize the client library and using its methods is given in the subsequent sections.
You need to import your generated library in this project in order to make use of its functions. In order to import the library, you can add its path in the GOPATH
for this project. Follow the below steps:
Right click on the project name and click on Properties
Choose Go Compiler
from the side menu. Check Use project specific settings
and uncheck Use same value as the GOPATH environment variable.
. By default, the GOPATH value from the environment variables will be visible in Eclipse GOPATH
. Do not remove this as this points to the unirest dependency.
Append the library path to this GOPATH
Once the path is appended, click on OK
Right click on the project name and click on Build Project
If the build is successful, right click on your Go file and click on Run As
-> Go Application
- filemanager_pkg
- liabilitydoctorinsurance_pkg
- carbody_pkg
- electronicequipmentinsurance_pkg
- otherinsurancetypes_pkg
- thirdpartyinsurance_pkg
- motorcycleinsurance_pkg
- fireinsurance_pkg
- earthquakeinsurance_pkg
- travelinsurance_pkg
- elevatorinsurance_pkg
- main_pkg
- combodata_pkg
- trackingdamage_pkg
- footer_pkg
- insurancepolicyplan_pkg
Factory for the FILEMANAGER
interface can be accessed from the package filemanager_pkg.
fileManager := filemanager_pkg.NewFILEMANAGER()
آپلود فایل در ایزی بیمه بعد از آپلود، ادرس فایل باید در api های بعدی ارسال شود.
func (me *FILEMANAGER_IMPL) Upload(
subDomain string,
xApiKey string,
file string)(*models_pkg.BaseModelUpload,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
file | Required |
فایل ارسالی |
subDomain := "hfz1"
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
file := "file"
var result *models_pkg.BaseModelUpload
result,_ = fileManager.Upload(subDomain, xApiKey, file)
Factory for the LIABILITYDOCTORINSURANCE
interface can be accessed from the package liabilitydoctorinsurance_pkg.
liabilityDoctorInsurance := liabilitydoctorinsurance_pkg.NewLIABILITYDOCTORINSURANCE()
در یافت اطلاعات اولیه برای استعلام بیمه مسئولیت پزشکان
func (me *LIABILITYDOCTORINSURANCE_IMPL) GetLiabilityDoctorInsurance(
subDomain string,
xApiKey string)(*models_pkg.BaseModelLiabilityDoctorInsurance,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelLiabilityDoctorInsurance
result,_ = liabilityDoctorInsurance.GetLiabilityDoctorInsurance(subDomain, xApiKey)
دریافت لیست تخصص های پزشکی
func (me *LIABILITYDOCTORINSURANCE_IMPL) GetMedicalSpecialties(
id string,
xApiKey string)(*models_pkg.BaseModelMedicalSpecialties,error)
Parameter | Tags | Description |
---|---|---|
id | Required |
نوع تخصص => ParamedicalExpertise => پیراپزشکی MedicalExpertise => پزشکی |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
id := "ParamedicalExpertise"
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelMedicalSpecialties
result,_ = liabilityDoctorInsurance.GetMedicalSpecialties(id, xApiKey)
Factory for the CARBODY
interface can be accessed from the package carbody_pkg.
carBody := carbody_pkg.NewCARBODY()
دریافت برند خودرو
func (me *CARBODY_IMPL) GetCarBrand(xApiKey string)(*models_pkg.CarBrand,error)
Parameter | Tags | Description |
---|---|---|
xApiKey | Required |
شناسه ی اختصاصی ارتباط با سرور |
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.CarBrand
result,_ = carBody.GetCarBrand(xApiKey)
دریافت لیست تیپ خودرو
func (me *CARBODY_IMPL) GetCarBrandTips(
carBrandId int64,
xApiKey string)(*models_pkg.CarBrandTips,error)
Parameter | Tags | Description |
---|---|---|
carBrandId | Required |
شناسه ی برند خودرو |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
carBrandId,_ := strconv.ParseInt("190", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.CarBrandTips
result,_ = carBody.GetCarBrandTips(carBrandId, xApiKey)
آیا این نوع بیمه نامه، طرح بیمه ای دارد؟
func (me *CARBODY_IMPL) GetHasPlan(
subDomain string,
insurancePolicyType int64,
xApiKey string)(*models_pkg.HasPlan,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyType | Required |
شناسه ی نوع بیمه نامه => بیمه بدنه=2 |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
insurancePolicyType,_ := strconv.ParseInt("2", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.HasPlan
result,_ = carBody.GetHasPlan(subDomain, insurancePolicyType, xApiKey)
Factory for the ELECTRONICEQUIPMENTINSURANCE
interface can be accessed from the package electronicequipmentinsurance_pkg.
electronicEquipmentInsurance := electronicequipmentinsurance_pkg.NewELECTRONICEQUIPMENTINSURANCE()
دریافت اطلاعات اولیه استعلام بیمه نامه ی تجهیزات الکترونیک
func (me *ELECTRONICEQUIPMENTINSURANCE_IMPL) GetElectronicEquipmentInsurance(
subDomain string,
xApiKey string)(*models_pkg.BaseModelElectronicEquipmentInsurance,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "subDomain"
xApiKey := "x-api-key"
var result *models_pkg.BaseModelElectronicEquipmentInsurance
result,_ = electronicEquipmentInsurance.GetElectronicEquipmentInsurance(subDomain, xApiKey)
دریافت لیست نوع برند دستگاه
func (me *ELECTRONICEQUIPMENTINSURANCE_IMPL) GetDeviceBrandTypes(
deviceGroup int64,
deviceTypeId int64,
xApiKey string)(*models_pkg.BaseModelDeviceBrandTypes,error)
Parameter | Tags | Description |
---|---|---|
deviceGroup | Required |
شناسه ی گروه دستگاه |
deviceTypeId | Required |
شناسه ی نوع دستگاه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
deviceGroup,_ := strconv.ParseInt("1", 10, 8)
deviceTypeId,_ := strconv.ParseInt("1", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelDeviceBrandTypes
result,_ = electronicEquipmentInsurance.GetDeviceBrandTypes(deviceGroup, deviceTypeId, xApiKey)
دریافت لیست فرانشیر استعلام بیمه نامه ی تجهیزات الکترونیک
func (me *ELECTRONICEQUIPMENTINSURANCE_IMPL) GetDiviceFranchisee(
deviceModelId int64,
xApiKey string)(*models_pkg.BaseModelDiviceFranchisee,error)
Parameter | Tags | Description |
---|---|---|
deviceModelId | Required |
شناسه ی مدل دستگاه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
deviceModelId,_ := strconv.ParseInt("1340", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelDiviceFranchisee
result,_ = electronicEquipmentInsurance.GetDiviceFranchisee(deviceModelId, xApiKey)
Factory for the OTHERINSURANCETYPES
interface can be accessed from the package otherinsurancetypes_pkg.
otherInsuranceTypes := otherinsurancetypes_pkg.NewOTHERINSURANCETYPES()
دریافت لیست سایر بیمه نامه ها
func (me *OTHERINSURANCETYPES_IMPL) GetOtherInsuranceTypes(
subDomain string,
xApiKey string)(*models_pkg.OtherInsuranceTypes,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.OtherInsuranceTypes
result,_ = otherInsuranceTypes.GetOtherInsuranceTypes(subDomain, xApiKey)
ارسال توکن تایید شماره تماس، برای احراز هویت کاربر
func (me *OTHERINSURANCETYPES_IMPL) GetSendSmsToken(
mobile string,
insuranceCentreSubDomain string,
xApiKey string)(*models_pkg.SendSmsToken,error)
Parameter | Tags | Description |
---|---|---|
mobile | Required |
شماره موبایل |
insuranceCentreSubDomain | Required |
دامنه یا زیردامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
mobile := "09018318086"
insuranceCentreSubDomain := "hfz1"
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.SendSmsToken
result,_ = otherInsuranceTypes.GetSendSmsToken(mobile, insuranceCentreSubDomain, xApiKey)
تایید توکن پیامک شده به کاربر، برای احراز هویت
func (me *OTHERINSURANCETYPES_IMPL) GetVerifySmsToken(
mobile string,
token int64,
insuranceCentreSubDomain string,
aliasName string,
resource string,
xApiKey string)(*models_pkg.Status200,error)
Parameter | Tags | Description |
---|---|---|
mobile | Required |
شماره موبایل |
token | Required |
توکن دریافتی کاربر از پیامک |
insuranceCentreSubDomain | Required |
دامنه یا زیر دامنه ی اختصاصی مرکز بیمه |
aliasName | Required |
نام و نام خانوادگی کاربر |
resource | Required |
دامنه ی درخواست دهنده |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
mobile := "09018318086"
token,_ := strconv.ParseInt("27763", 10, 8)
insuranceCentreSubDomain := "hfz1"
aliasName := "علی موسوی"
resource := "https://hfz1.easybimeh.com"
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.Status200
result,_ = otherInsuranceTypes.GetVerifySmsToken(mobile, token, insuranceCentreSubDomain, aliasName, resource, xApiKey)
Error Code | Error Description |
---|---|
400 | Bad Request |
Factory for the THIRDPARTYINSURANCE
interface can be accessed from the package thirdpartyinsurance_pkg.
thirdPartyInsurance := thirdpartyinsurance_pkg.NewTHIRDPARTYINSURANCE()
دریافت لیست برند خودرو ها
func (me *THIRDPARTYINSURANCE_IMPL) GetCarBrands(
carTypeGroup int64,
xApiKey string)(*models_pkg.CarBrands,error)
Parameter | Tags | Description |
---|---|---|
carTypeGroup | Required |
شناسه ی گروه خودرو |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
carTypeGroup,_ := strconv.ParseInt("1", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.CarBrands
result,_ = thirdPartyInsurance.GetCarBrands(carTypeGroup, xApiKey)
دریافت لیست تخفیف های بیمه
func (me *THIRDPARTYINSURANCE_IMPL) GetRiskLevel(
insurancePolicyType int64,
xApiKey string)(*models_pkg.RiskLevel,error)
Parameter | Tags | Description |
---|---|---|
insurancePolicyType | Required |
شناسه ی نوع بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
insurancePolicyType,_ := strconv.ParseInt("0", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.RiskLevel
result,_ = thirdPartyInsurance.GetRiskLevel(insurancePolicyType, xApiKey)
دریافت لیست تیپ خودرو
func (me *THIRDPARTYINSURANCE_IMPL) GetCarBrandTips(
carBrandId int64,
xApiKey string)(*models_pkg.CarBrandTips,error)
Parameter | Tags | Description |
---|---|---|
carBrandId | Required |
شناسه ی برند خودرو |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
carBrandId,_ := strconv.ParseInt("190", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.CarBrandTips
result,_ = thirdPartyInsurance.GetCarBrandTips(carBrandId, xApiKey)
دریافت لیست نوع کاربری خودرو
func (me *THIRDPARTYINSURANCE_IMPL) GetCarUses(
carTypeId int64,
xApiKey string)(*models_pkg.CarUses,error)
Parameter | Tags | Description |
---|---|---|
carTypeId | Required |
شناسه ی نوع خودرو |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
carTypeId,_ := strconv.ParseInt("103", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.CarUses
result,_ = thirdPartyInsurance.GetCarUses(carTypeId, xApiKey)
آیا این نوع بیمه نامه، طرح بیمه ای دارد؟
func (me *THIRDPARTYINSURANCE_IMPL) GetHasPlan(
subDomain string,
insurancePolicyType int64,
xApiKey string)(*models_pkg.HasPlan,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyType | Required |
شناسه ی نوع بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
insurancePolicyType,_ := strconv.ParseInt("0", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.HasPlan
result,_ = thirdPartyInsurance.GetHasPlan(subDomain, insurancePolicyType, xApiKey)
Factory for the MOTORCYCLEINSURANCE
interface can be accessed from the package motorcycleinsurance_pkg.
motorcycleInsurance := motorcycleinsurance_pkg.NewMOTORCYCLEINSURANCE()
دریافت لیست برند موتور سیکلت
func (me *MOTORCYCLEINSURANCE_IMPL) GetCarBrands(
carTypeGroup int64,
xApiKey string)(*models_pkg.CarBrands,error)
Parameter | Tags | Description |
---|---|---|
carTypeGroup | Required |
شناسه ی گروه خودرویی، موتور سیکلت =>0 |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
carTypeGroup,_ := strconv.ParseInt("0", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.CarBrands
result,_ = motorcycleInsurance.GetCarBrands(carTypeGroup, xApiKey)
دریافت لیست تیپ موتور سیکلت
func (me *MOTORCYCLEINSURANCE_IMPL) GetCarBrandTips(
carBrandId int64,
xApiKey string)(*models_pkg.CarBrandTips,error)
Parameter | Tags | Description |
---|---|---|
carBrandId | Required |
شناسه ی برند موتور سیکلت |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
carBrandId,_ := strconv.ParseInt("472", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.CarBrandTips
result,_ = motorcycleInsurance.GetCarBrandTips(carBrandId, xApiKey)
آیا این نوع بیمه نامه، طرح بیمه ای دارد؟
func (me *MOTORCYCLEINSURANCE_IMPL) GetHasPlan(
subDomain string,
insurancePolicyType int64,
xApiKey string)(*models_pkg.HasPlan,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyType | Required |
شناسه ی نوع بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
insurancePolicyType,_ := strconv.ParseInt("7", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.HasPlan
result,_ = motorcycleInsurance.GetHasPlan(subDomain, insurancePolicyType, xApiKey)
Factory for the FIREINSURANCE
interface can be accessed from the package fireinsurance_pkg.
fireInsurance := fireinsurance_pkg.NewFIREINSURANCE()
دریافت اطلاعات پایه بیمه ی آتش سوزی
func (me *FIREINSURANCE_IMPL) GetFireInsurance(
subDomain string,
insurancePolicyId int64,
xApiKey string)(*models_pkg.BaseModelFireInsurance,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyId | Required |
شناسه ی بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
insurancePolicyId,_ := strconv.ParseInt("0", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelFireInsurance
result,_ = fireInsurance.GetFireInsurance(subDomain, insurancePolicyId, xApiKey)
Factory for the EARTHQUAKEINSURANCE
interface can be accessed from the package earthquakeinsurance_pkg.
earthquakeInsurance := earthquakeinsurance_pkg.NewEARTHQUAKEINSURANCE()
دریافت اطلاعات پایه ی بیمه ی زلزله
func (me *EARTHQUAKEINSURANCE_IMPL) GetEarthquake(
subDomain string,
insurancePolicyId int64,
insurancePolicyType int64,
xApiKey string)(*models_pkg.BaseModelEarthquake,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyId | Required |
شناسه ی بیمه نامه |
insurancePolicyType | Required |
شناسه ی نوع بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
insurancePolicyId,_ := strconv.ParseInt("0", 10, 8)
insurancePolicyType,_ := strconv.ParseInt("6", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelEarthquake
result,_ = earthquakeInsurance.GetEarthquake(subDomain, insurancePolicyId, insurancePolicyType, xApiKey)
Factory for the TRAVELINSURANCE
interface can be accessed from the package travelinsurance_pkg.
travelInsurance := travelinsurance_pkg.NewTRAVELINSURANCE()
TODO: Add Description
func (me *TRAVELINSURANCE_IMPL) GetTravelInsurance(
subDomain string,
insurancePolicyId int64,
xApiKey string)(*models_pkg.BaseModelTravelInsurance,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyId | Required |
شناسه ی بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
insurancePolicyId,_ := strconv.ParseInt("0", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelTravelInsurance
result,_ = travelInsurance.GetTravelInsurance(subDomain, insurancePolicyId, xApiKey)
Factory for the ELEVATORINSURANCE
interface can be accessed from the package elevatorinsurance_pkg.
elevatorInsurance := elevatorinsurance_pkg.NewELEVATORINSURANCE()
دریافت اطلاعات پایه ی بیمه نامه ی آسانسور
func (me *ELEVATORINSURANCE_IMPL) GetElevatorInsurance(
subDomain string,
insurancePolicyId int64,
xApiKey string)(*models_pkg.BaseModelElevatorInsurance,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insurancePolicyId | Required |
شناسه ی بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
insurancePolicyId,_ := strconv.ParseInt("0", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelElevatorInsurance
result,_ = elevatorInsurance.GetElevatorInsurance(subDomain, insurancePolicyId, xApiKey)
Factory for the MAIN
interface can be accessed from the package main_pkg.
main := main_pkg.NewMAIN()
در یافت اطلاعات لندینگ مراکز بیمه
func (me *MAIN_IMPL) GetPortalLandingPage(
id string,
xApiKey string)(*models_pkg.BaseModelPortalLandingPage,error)
Parameter | Tags | Description |
---|---|---|
id | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
id := "hfz1"
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelPortalLandingPage
result,_ = main.GetPortalLandingPage(id, xApiKey)
دریافت لیست بیمه ی های ارائه شده توسط مرکز بیمه
func (me *MAIN_IMPL) GetInsuranceCentrePolicyTypes(
subDomain string,
xApiKey string)(*models_pkg.BaseModelInsuranceCentrePolicyTypes,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelInsuranceCentrePolicyTypes
result,_ = main.GetInsuranceCentrePolicyTypes(subDomain, xApiKey)
Factory for the COMBODATA
interface can be accessed from the package combodata_pkg.
comboData := combodata_pkg.NewCOMBODATA()
دریافت لیست نوع خسارت
func (me *COMBODATA_IMPL) GetDamageType(xApiKey string)(*models_pkg.BaseModelDamageType,error)
Parameter | Tags | Description |
---|---|---|
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelDamageType
result,_ = comboData.GetDamageType(xApiKey)
دریافت لیست نوع بیمه نامه
func (me *COMBODATA_IMPL) GetInsuranceTypes(
subDomain string,
issueInsurance bool,
xApiKey string)(*models_pkg.InsuranceTypes,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
issueInsurance | Required |
دریافت بیمه نامه های قابل صدور |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
issueInsurance := false
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.InsuranceTypes
result,_ = comboData.GetInsuranceTypes(subDomain, issueInsurance, xApiKey)
دریافت لیست شرکت های بیمه
func (me *COMBODATA_IMPL) GetInsuranceCompanies(
subDomain string,
insuranceTypeId int64,
xApiKey string)(*models_pkg.InsuranceCompanies,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
insuranceTypeId | Required |
شناسه ی نوع بیمه نامه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
insuranceTypeId,_ := strconv.ParseInt("1", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.InsuranceCompanies
result,_ = comboData.GetInsuranceCompanies(subDomain, insuranceTypeId, xApiKey)
Factory for the TRACKINGDAMAGE
interface can be accessed from the package trackingdamage_pkg.
trackingDamage := trackingdamage_pkg.NewTRACKINGDAMAGE()
استعلام وضعیت خسارت
func (me *TRACKINGDAMAGE_IMPL) GetTrackingCode(
mTrackingCode string,
xApiKey string)(*models_pkg.BaseModelTrakingCode,error)
Parameter | Tags | Description |
---|---|---|
mTrackingCode | Required |
کد پیگیری خسارت |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
mTrackingCode := "/{TrackingCode}"
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelTrakingCode
result,_ = trackingDamage.GetTrackingCode(mTrackingCode, xApiKey)
Error Code | Error Description |
---|---|
400 | Bad Request |
ثبت خسارت بیمه
func (me *TRACKINGDAMAGE_IMPL) CreateTrackingDamage(
body *models_pkg.TrackingDamageRequest,
xApiKey string,
contentType string)(*models_pkg.TrackingDamage,error)
Parameter | Tags | Description |
---|---|---|
body | Required |
اطلاعات خسارت |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
contentType | Required |
TODO: Add a parameter description |
bodyValue := []byte("{\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 *models_pkg.TrackingDamageRequest
json.Unmarshal(bodyValue,&body)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
contentType := "application/json"
var result *models_pkg.TrackingDamage
result,_ = trackingDamage.CreateTrackingDamage(body, xApiKey, contentType)
دریافت لیست وضعیت های خسارت
func (me *TRACKINGDAMAGE_IMPL) GetStatusStatusCollections(
statusType int64,
xApiKey string)(*models_pkg.BaseModelStatusStatusCollections,error)
Parameter | Tags | Description |
---|---|---|
statusType | Required |
نوع وضعیت ها ی خسارت => 0 |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
statusType,_ := strconv.ParseInt("0", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelStatusStatusCollections
result,_ = trackingDamage.GetStatusStatusCollections(statusType, xApiKey)
دریافت اطلاعات وضعیت
func (me *TRACKINGDAMAGE_IMPL) GetStatus(
entityId int64,
xApiKey string)(*models_pkg.BaseModelStatus,error)
Parameter | Tags | Description |
---|---|---|
entityId | Required |
شناسه ی وضعیت |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
entityId,_ := strconv.ParseInt("1129", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelStatus
result,_ = trackingDamage.GetStatus(entityId, xApiKey)
Factory for the FOOTER
interface can be accessed from the package footer_pkg.
footer := footer_pkg.NewFOOTER()
دریافت اطلاعات درباره ی ما
func (me *FOOTER_IMPL) GetPortalLandingContactAbout(xApiKey string)(*models_pkg.BaseModelPortalLandingContactAbout,error)
Parameter | Tags | Description |
---|---|---|
xApiKey | Required |
TODO: Add a parameter description |
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelPortalLandingContactAbout
result,_ = footer.GetPortalLandingContactAbout(xApiKey)
دریافت لیست سوالات متداول
func (me *FOOTER_IMPL) GetFaqInsuranceCentre(xApiKey string)(*models_pkg.BaseModelFaqInsuranceCentre,error)
Parameter | Tags | Description |
---|---|---|
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelFaqInsuranceCentre
result,_ = footer.GetFaqInsuranceCentre(xApiKey)
پیگیری وضعیت بیمه نامه
func (me *FOOTER_IMPL) GetInsurancePolicyTracking(
trackingCode int64,
nationalCode int64,
xApiKey string)(*models_pkg.BaseModelInsurancePolicyTracking,error)
Parameter | Tags | Description |
---|---|---|
trackingCode | Required |
شماره ی پیگیری بیمه نامه |
nationalCode | Required |
کد ملی کاربر |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
trackingCode,_ := strconv.ParseInt("213981083", 10, 8)
nationalCode,_ := strconv.ParseInt("3080115309", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelInsurancePolicyTracking
result,_ = footer.GetInsurancePolicyTracking(trackingCode, nationalCode, xApiKey)
Error Code | Error Description |
---|---|
500 | Internal Server Error |
Factory for the INSURANCEPOLICYPLAN
interface can be accessed from the package insurancepolicyplan_pkg.
insurancePolicyPlan := insurancepolicyplan_pkg.NewINSURANCEPOLICYPLAN()
دریافت لیست طرح های بیمه ای
func (me *INSURANCEPOLICYPLAN_IMPL) GetSpecialPlan(
subDomain string,
xApiKey string)(*models_pkg.BaseModelSpecialPlan,error)
Parameter | Tags | Description |
---|---|---|
subDomain | Required |
دامنه یا زیر دامنه ی مرکز بیمه |
xApiKey | Required |
کلید اختصاصی ارتباط با سرور |
subDomain := "hfz1"
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"
var result *models_pkg.BaseModelSpecialPlan
result,_ = insurancePolicyPlan.GetSpecialPlan(subDomain, xApiKey)