Skip to content

Commit

Permalink
Merge pull request #9 from febrihidayan/patch-1
Browse files Browse the repository at this point in the history
fix request body addPromotion
  • Loading branch information
nVuln authored Dec 26, 2022
2 parents bbbe060 + 8a0dde3 commit 62a4f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/Promotion.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ public function addOrUpdateDiscountItem($request_serial_no, $promotion_id, $prod
]);
}

public function addPromotion($request_serial_no, $promotion_id, $title, $begin_time = null, $end_time = null, $product_type = 1)
public function addPromotion($request_serial_no, $title, $begin_time = null, $end_time = null, $product_type = 1, $promotion_type = 1)
{
return $this->call('POST', 'activity/create', [
RequestOptions::JSON => [
'promotion_id' => $promotion_id,
'request_serial_no' => $request_serial_no,
'title' => $title,
'begin_time' => static::dataTypeCast('timestamp', $begin_time),
'end_time' => static::dataTypeCast('timestamp', $end_time),
'product_type' => $product_type,
'promotion_type' => $promotion_type,
]
]);
}
Expand Down

0 comments on commit 62a4f61

Please sign in to comment.