File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -1424,6 +1424,19 @@ public static function deleteAllShipmentsForOrder($orderID)
1424
1424
return self ::deleteResource ('/orders/ ' . $ orderID . '/shipments ' );
1425
1425
}
1426
1426
1427
+ /**
1428
+ * Get order coupons for a given order
1429
+ *
1430
+ * @param $orderID
1431
+ * @param array $filter
1432
+ * @return mixed
1433
+ */
1434
+ public static function getOrderCoupons ($ orderID , $ filter = array ())
1435
+ {
1436
+ $ filter = Filter::create ($ filter );
1437
+ return self ::getCollection ('/orders/ ' . $ orderID . '/coupons ' . $ filter ->toQuery (), 'OrderCoupons ' );
1438
+ }
1439
+
1427
1440
/**
1428
1441
* Get a single order shipping address by given order and order shipping address id.
1429
1442
*
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Bigcommerce \Api \Resources ;
4
+
5
+ use Bigcommerce \Api \Resource ;
6
+ use Bigcommerce \Api \Client ;
7
+
8
+ class OrderCoupons extends Resource
9
+ {
10
+
11
+ }
You can’t perform that action at this time.
0 commit comments