replace method from GET to POST for /v1/actions/products/activate request (#97)

Co-authored-by: o.tyurin <o.tyurin@corp.mail.ru>
This commit is contained in:
Zloy_Leshiy
2024-07-22 14:31:28 +03:00
committed by GitHub
parent 680a155294
commit b0c133ba40

View File

@@ -98,7 +98,7 @@ type AddProductToPromotionParams struct {
type AddProductToPromotionProduct struct {
// Product identifier
ProductId float64 `json:"produt_id"`
ProductId float64 `json:"product_id"`
// Promotional product price
ActionPrice float64 `json:"action_price"`
@@ -136,7 +136,7 @@ func (c Promotions) AddToPromotion(ctx context.Context, params *AddProductToProm
resp := &AddProductToPromotionResponse{}
response, err := c.client.Request(ctx, http.MethodGet, url, params, resp, nil)
response, err := c.client.Request(ctx, http.MethodPost, url, params, resp, nil)
if err != nil {
return nil, err
}