Update April 16, 2024 (#78)
This commit is contained in:
		
							
								
								
									
										106
									
								
								ozon/common.go
									
									
									
									
									
								
							
							
						
						
									
										106
									
								
								ozon/common.go
									
									
									
									
									
								
							@@ -698,3 +698,109 @@ const (
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	GetCarriageStatusCancelled GetCarriageStatus = "cancelled"
 | 
						GetCarriageStatusCancelled GetCarriageStatus = "cancelled"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					type TransactionOperationService string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const (
 | 
				
			||||||
 | 
						// return of unclaimed products from the customer to the warehouse
 | 
				
			||||||
 | 
						TransactionNotDelivered TransactionOperationService = "MarketplaceNotDeliveredCostItem"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// return from the customer to the warehouse after delivery
 | 
				
			||||||
 | 
						TransactionReturnAfterDelivery TransactionOperationService = "TransactionOperationServiceNotDelivered"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// product delivery to the customer
 | 
				
			||||||
 | 
						TransactionDelivery TransactionOperationService = "MarketplaceDeliveryCostItem"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// purchasing reviews on the platform
 | 
				
			||||||
 | 
						TransactionSaleReviews TransactionOperationService = "MarketplaceSaleReviewsItem"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// products delivery to the Ozon warehouse (cross docking)
 | 
				
			||||||
 | 
						TransactionItemAdForSupplierLogistic TransactionOperationService = "ItemAdvertisementForSupplierLogistic"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// product placement service
 | 
				
			||||||
 | 
						TransactionServiceStorageItem TransactionOperationService = "MarketplaceServiceStorageItem"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// products promotion
 | 
				
			||||||
 | 
						TransactionMarketingActionCost TransactionOperationService = "MarketplaceMarketingActionCostItem"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// promotion and selling on an instalment plan
 | 
				
			||||||
 | 
						TransactionServiceItemInstallment TransactionOperationService = "MarketplaceServiceItemInstallment"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// mandatory products labeling
 | 
				
			||||||
 | 
						TransactionServiceMarkingItems TransactionOperationService = "MarketplaceServiceItemMarkingItems"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// flexible payment schedule
 | 
				
			||||||
 | 
						TransactionServiceFlexiblePaymentSchedule TransactionOperationService = "MarketplaceServiceItemFlexiblePaymentSchedule"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// picking up products for removal by the seller
 | 
				
			||||||
 | 
						TransactionServiceReturnFromStock TransactionOperationService = "MarketplaceServiceItemReturnFromStock"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// forwarding trade
 | 
				
			||||||
 | 
						TransactionItemAdForSupplierLogisticSeller TransactionOperationService = "ItemAdvertisementForSupplierLogisticSeller"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// last mile
 | 
				
			||||||
 | 
						TransactionServiceDeliveryToCustomer TransactionOperationService = "MarketplaceServiceItemDelivToCustomer"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// pipeline
 | 
				
			||||||
 | 
						TransactionServiceDirectFlowTrans TransactionOperationService = "MarketplaceServiceItemDirectFlowTrans"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// shipment processing
 | 
				
			||||||
 | 
						TransactionServiceDropoffFF TransactionOperationService = "MarketplaceServiceItemDropoffFF"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// shipment processing
 | 
				
			||||||
 | 
						TransactionServiceDropoffPVZ TransactionOperationService = "MarketplaceServiceItemDropoffPVZ"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// shipment processing
 | 
				
			||||||
 | 
						TransactionServiceDropoffSC TransactionOperationService = "MarketplaceServiceItemDropoffSC"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// order packaging
 | 
				
			||||||
 | 
						TransactionServiceFulfillment TransactionOperationService = "MarketplaceServiceItemFulfillment"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// picking products up by car from the seller's address (Pick-up)
 | 
				
			||||||
 | 
						TransactionServicePickup TransactionOperationService = "MarketplaceServiceItemPickup"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// return processing
 | 
				
			||||||
 | 
						TransactionServiceReturnAfterDelivToCustomer TransactionOperationService = "MarketplaceServiceItemReturnAfterDelivToCustomer"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// reverse pipeline
 | 
				
			||||||
 | 
						TransactionServiceReturnFlowTrans TransactionOperationService = "MarketplaceServiceItemReturnFlowTrans"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// cancellation processing
 | 
				
			||||||
 | 
						TransactionServiceReturnNotDelivToCustomer TransactionOperationService = "MarketplaceServiceItemReturnNotDelivToCustomer"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// unredeemed order processing
 | 
				
			||||||
 | 
						TransactionServiceReturnPartGoodsCustomer TransactionOperationService = "MarketplaceServiceItemReturnPartGoodsCustomer"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// acquiring payment
 | 
				
			||||||
 | 
						TransactionRedistributionOfAcquiringOperation TransactionOperationService = "MarketplaceRedistributionOfAcquiringOperation"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// FBS return short-term placement
 | 
				
			||||||
 | 
						TransactionServiceAtPickupPointFBS TransactionOperationService = "MarketplaceReturnStorageServiceAtThePickupPointFbsItem"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// FBS return long-term placement
 | 
				
			||||||
 | 
						TransactionServiceInWarehouseFBS TransactionOperationService = "MarketplaceReturnStorageServiceInTheWarehouseFbsItem"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// bulky products delivery
 | 
				
			||||||
 | 
						TransactionServiceDeliveryKGT TransactionOperationService = "MarketplaceServiceItemDeliveryKGT"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// logistics
 | 
				
			||||||
 | 
						TransactionServiceDirectFlowLogistic TransactionOperationService = "MarketplaceServiceItemDirectFlowLogistic"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// reverse logistics
 | 
				
			||||||
 | 
						TransactionServiceReturnFlowLogistic TransactionOperationService = "MarketplaceServiceItemReturnFlowLogistic"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// "Seller's Bonus" promotion service
 | 
				
			||||||
 | 
						TransactionServicePremiumCashbackIndPoints TransactionOperationService = "MarketplaceServicePremiumCashbackIndividualPoints"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// Premium promotion service, fixed commission
 | 
				
			||||||
 | 
						TransactionServicePremiumPromotion TransactionOperationService = "MarketplaceServicePremiumPromotion"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// withholding for product shortage
 | 
				
			||||||
 | 
						TransactionServiceWithHoldingForUndeliverableGoods TransactionOperationService = "OperationMarketplaceWithHoldingForUndeliverableGoods"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// drop-off service at the pick-up point
 | 
				
			||||||
 | 
						TransactionServiceDropoffPPZ TransactionOperationService = "MarketplaceServiceItemDropoffPPZ"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						// reissue of returns at the pick-up point
 | 
				
			||||||
 | 
						TransactionServiceRedistributionReturnsPVZ TransactionOperationService = "MarketplaceServiceItemRedistributionReturnsPVZ"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -382,7 +382,7 @@ type ListTransactionsResultOperationPosting struct {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
type ListTransactionsResultOperationService struct {
 | 
					type ListTransactionsResultOperationService struct {
 | 
				
			||||||
	// Service name
 | 
						// Service name
 | 
				
			||||||
	Name string `json:"name"`
 | 
						Name TransactionOperationService `json:"name"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Price
 | 
						// Price
 | 
				
			||||||
	Price float64 `json:"price"`
 | 
						Price float64 `json:"price"`
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -890,6 +890,7 @@ type CreateOrUpdateProductResult struct {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// This method allows you to create products and update their details
 | 
					// This method allows you to create products and update their details
 | 
				
			||||||
 | 
					// More info: https://docs.ozon.ru/api/seller/en/#operation/ProductAPI_ImportProductsV3
 | 
				
			||||||
func (c Products) CreateOrUpdateProduct(ctx context.Context, params *CreateOrUpdateProductParams) (*CreateOrUpdateProductResponse, error) {
 | 
					func (c Products) CreateOrUpdateProduct(ctx context.Context, params *CreateOrUpdateProductParams) (*CreateOrUpdateProductResponse, error) {
 | 
				
			||||||
	url := "/v3/product/import"
 | 
						url := "/v3/product/import"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -377,6 +377,7 @@ type GetCompetitorPriceResult struct {
 | 
				
			|||||||
	StrategyCompetitorProductURL string `json:"strategy_competitor_product_url"`
 | 
						StrategyCompetitorProductURL string `json:"strategy_competitor_product_url"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// If you add a product to your pricing strategy, the method returns you the price and a link to the competitor's product
 | 
				
			||||||
func (c Strategies) GetCompetitorPrice(ctx context.Context, params *GetCompetitorPriceParams) (*GetCompetitorPriceResponse, error) {
 | 
					func (c Strategies) GetCompetitorPrice(ctx context.Context, params *GetCompetitorPriceParams) (*GetCompetitorPriceResponse, error) {
 | 
				
			||||||
	url := "/v1/pricing-strategy/product/info"
 | 
						url := "/v1/pricing-strategy/product/info"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user