flat structures
This commit is contained in:
		@@ -14,70 +14,74 @@ type Warehouses struct {
 | 
			
		||||
type GetListOfWarehousesResponse struct {
 | 
			
		||||
	core.CommonResponse
 | 
			
		||||
 | 
			
		||||
	Result []struct {
 | 
			
		||||
		// Trusted acceptance attribute. `true` if trusted acceptance is enabled in the warehouse
 | 
			
		||||
		HasEntrustedAcceptance bool `json:"has_entrusted_acceptance"`
 | 
			
		||||
	Result []GetListOfWarehousesResult `json:"result"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		// Indication that the warehouse works under the rFBS scheme:
 | 
			
		||||
		//   - true — the warehouse works under the rFBS scheme;
 | 
			
		||||
		//   - false — the warehouse does not work under the rFBS scheme.
 | 
			
		||||
		IsRFBS bool `json:"is_rfbs"`
 | 
			
		||||
type GetListOfWarehousesResult struct {
 | 
			
		||||
	// Trusted acceptance attribute. `true` if trusted acceptance is enabled in the warehouse
 | 
			
		||||
	HasEntrustedAcceptance bool `json:"has_entrusted_acceptance"`
 | 
			
		||||
 | 
			
		||||
		// Warehouse name
 | 
			
		||||
		Name string `json:"name"`
 | 
			
		||||
	// Indication that the warehouse works under the rFBS scheme:
 | 
			
		||||
	//   - true — the warehouse works under the rFBS scheme;
 | 
			
		||||
	//   - false — the warehouse does not work under the rFBS scheme.
 | 
			
		||||
	IsRFBS bool `json:"is_rfbs"`
 | 
			
		||||
 | 
			
		||||
		// Warehouse identifier
 | 
			
		||||
		WarehouseId int64 `json:"warehouse_id"`
 | 
			
		||||
	// Warehouse name
 | 
			
		||||
	Name string `json:"name"`
 | 
			
		||||
 | 
			
		||||
		// Possibility to print an acceptance certificate in advance. `true` if printing in advance is possible
 | 
			
		||||
		CanPrintActInAdvance bool `json:"can_print_act_in_advance"`
 | 
			
		||||
	// Warehouse identifier
 | 
			
		||||
	WarehouseId int64 `json:"warehouse_id"`
 | 
			
		||||
 | 
			
		||||
		// FBS first mile
 | 
			
		||||
		FirstMileType struct {
 | 
			
		||||
			// DropOff point identifier
 | 
			
		||||
			DropoffPointId string `json:"dropoff_point_id"`
 | 
			
		||||
	// Possibility to print an acceptance certificate in advance. `true` if printing in advance is possible
 | 
			
		||||
	CanPrintActInAdvance bool `json:"can_print_act_in_advance"`
 | 
			
		||||
 | 
			
		||||
			// DropOff timeslot identifier
 | 
			
		||||
			DropoffTimeslotId int64 `json:"dropoff_timeslot_id"`
 | 
			
		||||
	// FBS first mile
 | 
			
		||||
	FirstMileType GetListOfWarehousesResultFirstMile `json:"first_mile_type"`
 | 
			
		||||
 | 
			
		||||
			// Indication that the warehouse settings are being updated
 | 
			
		||||
			FirstMileIsChanging bool `json:"first_mile_is_changing"`
 | 
			
		||||
	// Indication if there is a limit on the minimum number of orders. `true` if there is such a limit
 | 
			
		||||
	HasPostingsLimit bool `json:"has_postings_limit"`
 | 
			
		||||
 | 
			
		||||
			// First mile type:
 | 
			
		||||
			//
 | 
			
		||||
			// Enum: "DropOff" "Pickup"
 | 
			
		||||
			//   - DropOff
 | 
			
		||||
			//   - Pickup
 | 
			
		||||
			FirstMileType string `json:"first_mile_type"`
 | 
			
		||||
		} `json:"first_mile_type"`
 | 
			
		||||
	// Indication that the warehouse is not working due to quarantine
 | 
			
		||||
	IsKarantin bool `json:"is_karantin"`
 | 
			
		||||
 | 
			
		||||
		// Indication if there is a limit on the minimum number of orders. `true` if there is such a limit
 | 
			
		||||
		HasPostingsLimit bool `json:"has_postings_limit"`
 | 
			
		||||
	// Indication that the warehouse accepts bulky products
 | 
			
		||||
	IsKGT bool `json:"is_kgt"`
 | 
			
		||||
 | 
			
		||||
		// Indication that the warehouse is not working due to quarantine
 | 
			
		||||
		IsKarantin bool `json:"is_karantin"`
 | 
			
		||||
	// Indication that warehouse schedule can be changed
 | 
			
		||||
	IsTimetableEditable bool `json:"is_timetable_editable"`
 | 
			
		||||
 | 
			
		||||
		// Indication that the warehouse accepts bulky products
 | 
			
		||||
		IsKGT bool `json:"is_kgt"`
 | 
			
		||||
	// Minimum limit value: the number of orders that can be brought in one shipment
 | 
			
		||||
	MinPostingsLimit int32 `json:"min_postings_limit"`
 | 
			
		||||
 | 
			
		||||
		// Indication that warehouse schedule can be changed
 | 
			
		||||
		IsTimetableEditable bool `json:"is_timetable_editable"`
 | 
			
		||||
	// Limit value. -1 if there is no limit
 | 
			
		||||
	PostingsLimit int32 `json:"postings_limit"`
 | 
			
		||||
 | 
			
		||||
		// Minimum limit value: the number of orders that can be brought in one shipment
 | 
			
		||||
		MinPostingsLimit int32 `json:"min_postings_limit"`
 | 
			
		||||
	// Number of warehouse working days
 | 
			
		||||
	MinWorkingDays int64 `json:"min_working_days"`
 | 
			
		||||
 | 
			
		||||
		// Limit value. -1 if there is no limit
 | 
			
		||||
		PostingsLimit int32 `json:"postings_limit"`
 | 
			
		||||
	// Warehouse status
 | 
			
		||||
	Status string `json:"status"`
 | 
			
		||||
 | 
			
		||||
		// Number of warehouse working days
 | 
			
		||||
		MinWorkingDays int64 `json:"min_working_days"`
 | 
			
		||||
	// Warehouse working days
 | 
			
		||||
	WorkingDays []WorkingDay `json:"working_days"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		// Warehouse status
 | 
			
		||||
		Status string `json:"status"`
 | 
			
		||||
type GetListOfWarehousesResultFirstMile struct {
 | 
			
		||||
	// DropOff point identifier
 | 
			
		||||
	DropoffPointId string `json:"dropoff_point_id"`
 | 
			
		||||
 | 
			
		||||
		// Warehouse working days
 | 
			
		||||
		WorkingDays []WorkingDay `json:"working_days"`
 | 
			
		||||
	} `json:"resulCommonResponse"`
 | 
			
		||||
	// DropOff timeslot identifier
 | 
			
		||||
	DropoffTimeslotId int64 `json:"dropoff_timeslot_id"`
 | 
			
		||||
 | 
			
		||||
	// Indication that the warehouse settings are being updated
 | 
			
		||||
	FirstMileIsChanging bool `json:"first_mile_is_changing"`
 | 
			
		||||
 | 
			
		||||
	// First mile type:
 | 
			
		||||
	//
 | 
			
		||||
	// Enum: "DropOff" "Pickup"
 | 
			
		||||
	//   - DropOff
 | 
			
		||||
	//   - Pickup
 | 
			
		||||
	FirstMileType string `json:"first_mile_type"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// You do not need to specify any parameters in the request. Your company will be identified by the Warehouses ID
 | 
			
		||||
@@ -131,41 +135,43 @@ type GetListOfDeliveryMethodsResponse struct {
 | 
			
		||||
	HasNext bool `json:"has_next"`
 | 
			
		||||
 | 
			
		||||
	// Method result
 | 
			
		||||
	Result []struct {
 | 
			
		||||
		// Company identifier
 | 
			
		||||
		CompanyId int64 `json:"company_id"`
 | 
			
		||||
	Result []GetListOfDeliveryMethodsResult `json:"result"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		// Date and time of delivery method creation
 | 
			
		||||
		CreatedAt time.Time `json:"created_at"`
 | 
			
		||||
type GetListOfDeliveryMethodsResult struct {
 | 
			
		||||
	// Company identifier
 | 
			
		||||
	CompanyId int64 `json:"company_id"`
 | 
			
		||||
 | 
			
		||||
		// Time before an order must be packaged
 | 
			
		||||
		Cutoff string `json:"cutoff"`
 | 
			
		||||
	// Date and time of delivery method creation
 | 
			
		||||
	CreatedAt time.Time `json:"created_at"`
 | 
			
		||||
 | 
			
		||||
		// Delivery method identifier
 | 
			
		||||
		Id int64 `json:"id"`
 | 
			
		||||
	// Time before an order must be packaged
 | 
			
		||||
	Cutoff string `json:"cutoff"`
 | 
			
		||||
 | 
			
		||||
		// Delivery method name
 | 
			
		||||
		Name string `json:"name"`
 | 
			
		||||
	// Delivery method identifier
 | 
			
		||||
	Id int64 `json:"id"`
 | 
			
		||||
 | 
			
		||||
		// Delivery service identifier
 | 
			
		||||
		ProviderId int64 `json:"provider_id"`
 | 
			
		||||
	// Delivery method name
 | 
			
		||||
	Name string `json:"name"`
 | 
			
		||||
 | 
			
		||||
		// Delivery method status:
 | 
			
		||||
		//   - NEW—created,
 | 
			
		||||
		//   - EDITED—being edited,
 | 
			
		||||
		//   - ACTIVE—active,
 | 
			
		||||
		//   - DISABLED—inactive
 | 
			
		||||
		Status string `json:"status"`
 | 
			
		||||
	// Delivery service identifier
 | 
			
		||||
	ProviderId int64 `json:"provider_id"`
 | 
			
		||||
 | 
			
		||||
		// Order delivery service identifier
 | 
			
		||||
		TemplateId int64 `json:"template_id"`
 | 
			
		||||
	// Delivery method status:
 | 
			
		||||
	//   - NEW—created,
 | 
			
		||||
	//   - EDITED—being edited,
 | 
			
		||||
	//   - ACTIVE—active,
 | 
			
		||||
	//   - DISABLED—inactive
 | 
			
		||||
	Status string `json:"status"`
 | 
			
		||||
 | 
			
		||||
		// Date and time when the delivery method was last updated
 | 
			
		||||
		UpdatedAt time.Time `json:"updated_at"`
 | 
			
		||||
	// Order delivery service identifier
 | 
			
		||||
	TemplateId int64 `json:"template_id"`
 | 
			
		||||
 | 
			
		||||
		// Warehouse identifier
 | 
			
		||||
		WarehouseId int64 `json:"warehouse_id"`
 | 
			
		||||
	} `json:"result"`
 | 
			
		||||
	// Date and time when the delivery method was last updated
 | 
			
		||||
	UpdatedAt time.Time `json:"updated_at"`
 | 
			
		||||
 | 
			
		||||
	// Warehouse identifier
 | 
			
		||||
	WarehouseId int64 `json:"warehouse_id"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// This methods allows you to get list of all delivery methods that can be applied for this warehouse
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user