Skip to content

kmelodi/EasyBimehLanding_Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

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

  • In order to successfully build and run your SDK files, you are required to have the following setup in your system:
  • 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:

  1. Open eclipse in the Go language perspective and click on the Import option in File menu.

Importing SDK into Eclipse - Step 1

  1. Select General -> Existing Projects into Workspace option from the tree list.

Importing SDK into Eclipse - Step 2

  1. In Select root directory, provide path to the unzipped archive for the generated code. Once the path is set and the Project becomes visible under Projects click Finish

Importing SDK into Eclipse - Step 3

  1. The Go library will be imported and its files will be visible in the Project Explorer

Importing SDK into Eclipse - Step 4

How to Use

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

1. Add a new Test Project

Create a new project in Eclipse by File -> New -> Go Project

Add a new project in Eclipse

Name the Project as Test and click Finish

Create a new Maven Project - Step 1

Create a new directory in the src directory of this project

Create a new Maven Project - Step 2

Name it test.com

Create a new Maven Project - Step 3

Now create a new file inside src/test.com

Create a new Maven Project - Step 4

Name it testsdk.go

Create a new Maven Project - Step 5

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.

2. Configure the Test Project

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

Adding dependency to the client library - Step 1

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.

Adding dependency to the client library - Step 2

Append the library path to this GOPATH

Adding dependency to the client library - Step 3

Once the path is appended, click on OK

3. Build the Test Project

Right click on the project name and click on Build Project

Build Project

4. Run the Test Project

If the build is successful, right click on your Go file and click on Run As -> Go Application

Run Project

Class Reference

List of Controllers

Class: filemanager_pkg

Get instance

Factory for the FILEMANAGER interface can be accessed from the package filemanager_pkg.

fileManager := filemanager_pkg.NewFILEMANAGER()

Method: Upload

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

func (me *FILEMANAGER_IMPL) Upload(
            subDomain string,
            xApiKey string,
            file string)(*models_pkg.BaseModelUpload,error)

Parameters

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

Example Usage

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

var result *models_pkg.BaseModelUpload
result,_ = fileManager.Upload(subDomain, xApiKey, file)

Back to List of Controllers

Class: liabilitydoctorinsurance_pkg

Get instance

Factory for the LIABILITYDOCTORINSURANCE interface can be accessed from the package liabilitydoctorinsurance_pkg.

liabilityDoctorInsurance := liabilitydoctorinsurance_pkg.NewLIABILITYDOCTORINSURANCE()

Method: GetLiabilityDoctorInsurance

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

func (me *LIABILITYDOCTORINSURANCE_IMPL) GetLiabilityDoctorInsurance(
            subDomain string,
            xApiKey string)(*models_pkg.BaseModelLiabilityDoctorInsurance,error)

Parameters

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

Example Usage

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

var result *models_pkg.BaseModelLiabilityDoctorInsurance
result,_ = liabilityDoctorInsurance.GetLiabilityDoctorInsurance(subDomain, xApiKey)

Method: GetMedicalSpecialties

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

func (me *LIABILITYDOCTORINSURANCE_IMPL) GetMedicalSpecialties(
            id string,
            xApiKey string)(*models_pkg.BaseModelMedicalSpecialties,error)

Parameters

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

Example Usage

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

var result *models_pkg.BaseModelMedicalSpecialties
result,_ = liabilityDoctorInsurance.GetMedicalSpecialties(id, xApiKey)

Back to List of Controllers

Class: carbody_pkg

Get instance

Factory for the CARBODY interface can be accessed from the package carbody_pkg.

carBody := carbody_pkg.NewCARBODY()

Method: GetCarBrand

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

func (me *CARBODY_IMPL) GetCarBrand(xApiKey string)(*models_pkg.CarBrand,error)

Parameters

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

Example Usage

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

var result *models_pkg.CarBrand
result,_ = carBody.GetCarBrand(xApiKey)

Method: GetCarBrandTips

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

func (me *CARBODY_IMPL) GetCarBrandTips(
            carBrandId int64,
            xApiKey string)(*models_pkg.CarBrandTips,error)

Parameters

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

Example Usage

carBrandId,_ := strconv.ParseInt("190", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"

var result *models_pkg.CarBrandTips
result,_ = carBody.GetCarBrandTips(carBrandId, xApiKey)

Method: GetHasPlan

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

func (me *CARBODY_IMPL) GetHasPlan(
            subDomain string,
            insurancePolicyType int64,
            xApiKey string)(*models_pkg.HasPlan,error)

Parameters

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

Example Usage

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)

Back to List of Controllers

Class: electronicequipmentinsurance_pkg

Get instance

Factory for the ELECTRONICEQUIPMENTINSURANCE interface can be accessed from the package electronicequipmentinsurance_pkg.

electronicEquipmentInsurance := electronicequipmentinsurance_pkg.NewELECTRONICEQUIPMENTINSURANCE()

Method: GetElectronicEquipmentInsurance

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

func (me *ELECTRONICEQUIPMENTINSURANCE_IMPL) GetElectronicEquipmentInsurance(
            subDomain string,
            xApiKey string)(*models_pkg.BaseModelElectronicEquipmentInsurance,error)

Parameters

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

Example Usage

subDomain := "subDomain"
xApiKey := "x-api-key"

var result *models_pkg.BaseModelElectronicEquipmentInsurance
result,_ = electronicEquipmentInsurance.GetElectronicEquipmentInsurance(subDomain, xApiKey)

Method: GetDeviceBrandTypes

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

func (me *ELECTRONICEQUIPMENTINSURANCE_IMPL) GetDeviceBrandTypes(
            deviceGroup int64,
            deviceTypeId int64,
            xApiKey string)(*models_pkg.BaseModelDeviceBrandTypes,error)

Parameters

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

Example Usage

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)

Method: GetDiviceFranchisee

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

func (me *ELECTRONICEQUIPMENTINSURANCE_IMPL) GetDiviceFranchisee(
            deviceModelId int64,
            xApiKey string)(*models_pkg.BaseModelDiviceFranchisee,error)

Parameters

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

Example Usage

deviceModelId,_ := strconv.ParseInt("1340", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"

var result *models_pkg.BaseModelDiviceFranchisee
result,_ = electronicEquipmentInsurance.GetDiviceFranchisee(deviceModelId, xApiKey)

Back to List of Controllers

Class: otherinsurancetypes_pkg

Get instance

Factory for the OTHERINSURANCETYPES interface can be accessed from the package otherinsurancetypes_pkg.

otherInsuranceTypes := otherinsurancetypes_pkg.NewOTHERINSURANCETYPES()

Method: GetOtherInsuranceTypes

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

func (me *OTHERINSURANCETYPES_IMPL) GetOtherInsuranceTypes(
            subDomain string,
            xApiKey string)(*models_pkg.OtherInsuranceTypes,error)

Parameters

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

Example Usage

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

var result *models_pkg.OtherInsuranceTypes
result,_ = otherInsuranceTypes.GetOtherInsuranceTypes(subDomain, xApiKey)

Method: GetSendSmsToken

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

func (me *OTHERINSURANCETYPES_IMPL) GetSendSmsToken(
            mobile string,
            insuranceCentreSubDomain string,
            xApiKey string)(*models_pkg.SendSmsToken,error)

Parameters

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

Example Usage

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

var result *models_pkg.SendSmsToken
result,_ = otherInsuranceTypes.GetSendSmsToken(mobile, insuranceCentreSubDomain, xApiKey)

Method: GetVerifySmsToken

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

func (me *OTHERINSURANCETYPES_IMPL) GetVerifySmsToken(
            mobile string,
            token int64,
            insuranceCentreSubDomain string,
            aliasName string,
            resource string,
            xApiKey string)(*models_pkg.Status200,error)

Parameters

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

Example Usage

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)

Errors

Error Code Error Description
400 Bad Request

Back to List of Controllers

Class: thirdpartyinsurance_pkg

Get instance

Factory for the THIRDPARTYINSURANCE interface can be accessed from the package thirdpartyinsurance_pkg.

thirdPartyInsurance := thirdpartyinsurance_pkg.NewTHIRDPARTYINSURANCE()

Method: GetCarBrands

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

func (me *THIRDPARTYINSURANCE_IMPL) GetCarBrands(
            carTypeGroup int64,
            xApiKey string)(*models_pkg.CarBrands,error)

Parameters

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

Example Usage

carTypeGroup,_ := strconv.ParseInt("1", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"

var result *models_pkg.CarBrands
result,_ = thirdPartyInsurance.GetCarBrands(carTypeGroup, xApiKey)

Method: GetRiskLevel

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

func (me *THIRDPARTYINSURANCE_IMPL) GetRiskLevel(
            insurancePolicyType int64,
            xApiKey string)(*models_pkg.RiskLevel,error)

Parameters

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

Example Usage

insurancePolicyType,_ := strconv.ParseInt("0", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"

var result *models_pkg.RiskLevel
result,_ = thirdPartyInsurance.GetRiskLevel(insurancePolicyType, xApiKey)

Method: GetCarBrandTips

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

func (me *THIRDPARTYINSURANCE_IMPL) GetCarBrandTips(
            carBrandId int64,
            xApiKey string)(*models_pkg.CarBrandTips,error)

Parameters

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

Example Usage

carBrandId,_ := strconv.ParseInt("190", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"

var result *models_pkg.CarBrandTips
result,_ = thirdPartyInsurance.GetCarBrandTips(carBrandId, xApiKey)

Method: GetCarUses

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

func (me *THIRDPARTYINSURANCE_IMPL) GetCarUses(
            carTypeId int64,
            xApiKey string)(*models_pkg.CarUses,error)

Parameters

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

Example Usage

carTypeId,_ := strconv.ParseInt("103", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"

var result *models_pkg.CarUses
result,_ = thirdPartyInsurance.GetCarUses(carTypeId, xApiKey)

Method: GetHasPlan

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

func (me *THIRDPARTYINSURANCE_IMPL) GetHasPlan(
            subDomain string,
            insurancePolicyType int64,
            xApiKey string)(*models_pkg.HasPlan,error)

Parameters

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

Example Usage

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)

Back to List of Controllers

Class: motorcycleinsurance_pkg

Get instance

Factory for the MOTORCYCLEINSURANCE interface can be accessed from the package motorcycleinsurance_pkg.

motorcycleInsurance := motorcycleinsurance_pkg.NewMOTORCYCLEINSURANCE()

Method: GetCarBrands

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

func (me *MOTORCYCLEINSURANCE_IMPL) GetCarBrands(
            carTypeGroup int64,
            xApiKey string)(*models_pkg.CarBrands,error)

Parameters

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

Example Usage

carTypeGroup,_ := strconv.ParseInt("0", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"

var result *models_pkg.CarBrands
result,_ = motorcycleInsurance.GetCarBrands(carTypeGroup, xApiKey)

Method: GetCarBrandTips

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

func (me *MOTORCYCLEINSURANCE_IMPL) GetCarBrandTips(
            carBrandId int64,
            xApiKey string)(*models_pkg.CarBrandTips,error)

Parameters

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

Example Usage

carBrandId,_ := strconv.ParseInt("472", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"

var result *models_pkg.CarBrandTips
result,_ = motorcycleInsurance.GetCarBrandTips(carBrandId, xApiKey)

Method: GetHasPlan

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

func (me *MOTORCYCLEINSURANCE_IMPL) GetHasPlan(
            subDomain string,
            insurancePolicyType int64,
            xApiKey string)(*models_pkg.HasPlan,error)

Parameters

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

Example Usage

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)

Back to List of Controllers

Class: fireinsurance_pkg

Get instance

Factory for the FIREINSURANCE interface can be accessed from the package fireinsurance_pkg.

fireInsurance := fireinsurance_pkg.NewFIREINSURANCE()

Method: GetFireInsurance

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

func (me *FIREINSURANCE_IMPL) GetFireInsurance(
            subDomain string,
            insurancePolicyId int64,
            xApiKey string)(*models_pkg.BaseModelFireInsurance,error)

Parameters

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

Example Usage

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)

Back to List of Controllers

Class: earthquakeinsurance_pkg

Get instance

Factory for the EARTHQUAKEINSURANCE interface can be accessed from the package earthquakeinsurance_pkg.

earthquakeInsurance := earthquakeinsurance_pkg.NewEARTHQUAKEINSURANCE()

Method: GetEarthquake

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

func (me *EARTHQUAKEINSURANCE_IMPL) GetEarthquake(
            subDomain string,
            insurancePolicyId int64,
            insurancePolicyType int64,
            xApiKey string)(*models_pkg.BaseModelEarthquake,error)

Parameters

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

Example Usage

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)

Back to List of Controllers

Class: travelinsurance_pkg

Get instance

Factory for the TRAVELINSURANCE interface can be accessed from the package travelinsurance_pkg.

travelInsurance := travelinsurance_pkg.NewTRAVELINSURANCE()

Method: GetTravelInsurance

TODO: Add Description

func (me *TRAVELINSURANCE_IMPL) GetTravelInsurance(
            subDomain string,
            insurancePolicyId int64,
            xApiKey string)(*models_pkg.BaseModelTravelInsurance,error)

Parameters

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

Example Usage

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)

Back to List of Controllers

Class: elevatorinsurance_pkg

Get instance

Factory for the ELEVATORINSURANCE interface can be accessed from the package elevatorinsurance_pkg.

elevatorInsurance := elevatorinsurance_pkg.NewELEVATORINSURANCE()

Method: GetElevatorInsurance

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

func (me *ELEVATORINSURANCE_IMPL) GetElevatorInsurance(
            subDomain string,
            insurancePolicyId int64,
            xApiKey string)(*models_pkg.BaseModelElevatorInsurance,error)

Parameters

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

Example Usage

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)

Back to List of Controllers

Class: main_pkg

Get instance

Factory for the MAIN interface can be accessed from the package main_pkg.

main := main_pkg.NewMAIN()

Method: GetPortalLandingPage

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

func (me *MAIN_IMPL) GetPortalLandingPage(
            id string,
            xApiKey string)(*models_pkg.BaseModelPortalLandingPage,error)

Parameters

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

Example Usage

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

var result *models_pkg.BaseModelPortalLandingPage
result,_ = main.GetPortalLandingPage(id, xApiKey)

Method: GetInsuranceCentrePolicyTypes

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

func (me *MAIN_IMPL) GetInsuranceCentrePolicyTypes(
            subDomain string,
            xApiKey string)(*models_pkg.BaseModelInsuranceCentrePolicyTypes,error)

Parameters

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

Example Usage

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

var result *models_pkg.BaseModelInsuranceCentrePolicyTypes
result,_ = main.GetInsuranceCentrePolicyTypes(subDomain, xApiKey)

Back to List of Controllers

Class: combodata_pkg

Get instance

Factory for the COMBODATA interface can be accessed from the package combodata_pkg.

comboData := combodata_pkg.NewCOMBODATA()

Method: GetDamageType

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

func (me *COMBODATA_IMPL) GetDamageType(xApiKey string)(*models_pkg.BaseModelDamageType,error)

Parameters

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

Example Usage

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

var result *models_pkg.BaseModelDamageType
result,_ = comboData.GetDamageType(xApiKey)

Method: GetInsuranceTypes

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

func (me *COMBODATA_IMPL) GetInsuranceTypes(
            subDomain string,
            issueInsurance bool,
            xApiKey string)(*models_pkg.InsuranceTypes,error)

Parameters

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

Example Usage

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

var result *models_pkg.InsuranceTypes
result,_ = comboData.GetInsuranceTypes(subDomain, issueInsurance, xApiKey)

Method: GetInsuranceCompanies

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

func (me *COMBODATA_IMPL) GetInsuranceCompanies(
            subDomain string,
            insuranceTypeId int64,
            xApiKey string)(*models_pkg.InsuranceCompanies,error)

Parameters

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

Example Usage

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)

Back to List of Controllers

Class: trackingdamage_pkg

Get instance

Factory for the TRACKINGDAMAGE interface can be accessed from the package trackingdamage_pkg.

trackingDamage := trackingdamage_pkg.NewTRACKINGDAMAGE()

Method: GetTrackingCode

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

func (me *TRACKINGDAMAGE_IMPL) GetTrackingCode(
            mTrackingCode string,
            xApiKey string)(*models_pkg.BaseModelTrakingCode,error)

Parameters

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

Example Usage

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

var result *models_pkg.BaseModelTrakingCode
result,_ = trackingDamage.GetTrackingCode(mTrackingCode, xApiKey)

Errors

Error Code Error Description
400 Bad Request

Method: CreateTrackingDamage

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

func (me *TRACKINGDAMAGE_IMPL) CreateTrackingDamage(
            body *models_pkg.TrackingDamageRequest,
            xApiKey string,
            contentType string)(*models_pkg.TrackingDamage,error)

Parameters

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

Example Usage

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)

Method: GetStatusStatusCollections

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

func (me *TRACKINGDAMAGE_IMPL) GetStatusStatusCollections(
            statusType int64,
            xApiKey string)(*models_pkg.BaseModelStatusStatusCollections,error)

Parameters

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

Example Usage

statusType,_ := strconv.ParseInt("0", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"

var result *models_pkg.BaseModelStatusStatusCollections
result,_ = trackingDamage.GetStatusStatusCollections(statusType, xApiKey)

Method: GetStatus

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

func (me *TRACKINGDAMAGE_IMPL) GetStatus(
            entityId int64,
            xApiKey string)(*models_pkg.BaseModelStatus,error)

Parameters

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

Example Usage

entityId,_ := strconv.ParseInt("1129", 10, 8)
xApiKey := "d6dfd932-75d8-e911-811a-000c294ecf01"

var result *models_pkg.BaseModelStatus
result,_ = trackingDamage.GetStatus(entityId, xApiKey)

Back to List of Controllers

Class: footer_pkg

Get instance

Factory for the FOOTER interface can be accessed from the package footer_pkg.

footer := footer_pkg.NewFOOTER()

Method: GetPortalLandingContactAbout

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

func (me *FOOTER_IMPL) GetPortalLandingContactAbout(xApiKey string)(*models_pkg.BaseModelPortalLandingContactAbout,error)

Parameters

Parameter Tags Description
xApiKey Required TODO: Add a parameter description

Example Usage

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

var result *models_pkg.BaseModelPortalLandingContactAbout
result,_ = footer.GetPortalLandingContactAbout(xApiKey)

Method: GetFaqInsuranceCentre

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

func (me *FOOTER_IMPL) GetFaqInsuranceCentre(xApiKey string)(*models_pkg.BaseModelFaqInsuranceCentre,error)

Parameters

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

Example Usage

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

var result *models_pkg.BaseModelFaqInsuranceCentre
result,_ = footer.GetFaqInsuranceCentre(xApiKey)

Method: GetInsurancePolicyTracking

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

func (me *FOOTER_IMPL) GetInsurancePolicyTracking(
            trackingCode int64,
            nationalCode int64,
            xApiKey string)(*models_pkg.BaseModelInsurancePolicyTracking,error)

Parameters

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

Example Usage

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)

Errors

Error Code Error Description
500 Internal Server Error

Back to List of Controllers

Class: insurancepolicyplan_pkg

Get instance

Factory for the INSURANCEPOLICYPLAN interface can be accessed from the package insurancepolicyplan_pkg.

insurancePolicyPlan := insurancepolicyplan_pkg.NewINSURANCEPOLICYPLAN()

Method: GetSpecialPlan

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

func (me *INSURANCEPOLICYPLAN_IMPL) GetSpecialPlan(
            subDomain string,
            xApiKey string)(*models_pkg.BaseModelSpecialPlan,error)

Parameters

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

Example Usage

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

var result *models_pkg.BaseModelSpecialPlan
result,_ = 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

 
 
 

Languages