Skip to content

Commit df4e534

Browse files
committed
Added new features Attribute, Category, Coupon, Refund, Report, Review, Setting, Shipping Zone Method, Shipping Zone, Sysytem, Tag, Tax, Tax Class, Variation
1 parent 4fd2241 commit df4e534

36 files changed

+1057
-16
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ WOOCOMMERCE_STORE_URL=YOUR_WEBSITE_URL
2020
WOOCOMMERCE_CONSUMER_KEY=API_CONSUMER_KEY
2121
WOOCOMMERCE_CONSUMER_SECRET=API_CONSUMER_SECRET
2222
```
23-
### Do you need any help to create your own API credentials? Read the [WooCommerce Officials Doc](https://docs.woocommerce.com/document/woocommerce-rest-api/)
24-
### If you face any error after change the .env file in `production` then run below command
25-
26-
`php artisan config:cache`
27-
28-
For more details about config cache follow the [Laravel Official Doc](https://laravel.com/docs/6.x/configuration#configuration-caching)
23+
#Do you need any help to create your own API credentials? Read the officials Doc https://docs.woocommerce.com/document/woocommerce-rest-api/
2924

3025
# Example for Product
3126

composer.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,24 @@
3333
"Codexshaper\\WooCommerce\\WooCommerceServiceProvider"
3434
],
3535
"aliases": {
36-
"WooCommerce": "Codexshaper\\WooCommerce\\Facades\\WooCommerce",
37-
"Product": "Codexshaper\\WooCommerce\\Models\\Product",
36+
"Attribute": "Codexshaper\\WooCommerce\\Models\\Attribute",
37+
"Category": "Codexshaper\\WooCommerce\\Models\\Category",
38+
"Coupon": "Codexshaper\\WooCommerce\\Models\\Coupon",
39+
"Customer": "Codexshaper\\WooCommerce\\Models\\Customer",
3840
"Order": "Codexshaper\\WooCommerce\\Models\\Order",
39-
"Customer": "Codexshaper\\WooCommerce\\Models\\Customer"
41+
"Product": "Codexshaper\\WooCommerce\\Models\\Product",
42+
"Refund": "Codexshaper\\WooCommerce\\Models\\Refund",
43+
"Report": "Codexshaper\\WooCommerce\\Models\\Report",
44+
"Review": "Codexshaper\\WooCommerce\\Models\\Review",
45+
"Setting": "Codexshaper\\WooCommerce\\Models\\Setting",
46+
"ShippingMethod": "Codexshaper\\WooCommerce\\Models\\ShippingMethod",
47+
"ShippingZone": "Codexshaper\\WooCommerce\\Models\\ShippingZone",
48+
"System": "Codexshaper\\WooCommerce\\Models\\System",
49+
"Tag": "Codexshaper\\WooCommerce\\Models\\Tag",
50+
"Tax": "Codexshaper\\WooCommerce\\Models\\Tax",
51+
"TaxClass": "Codexshaper\\WooCommerce\\Models\\TaxClass",
52+
"Variation": "Codexshaper\\WooCommerce\\Models\\Variation",
53+
"WooCommerce": "Codexshaper\\WooCommerce\\Facades\\WooCommerce"
4054
}
4155
}
4256
}

src/Facades/Attribute.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace Codexshaper\WooCommerce\Facades;
3+
4+
use Illuminate\Support\Facades\Facade;
5+
6+
class Attribute extends Facade
7+
{
8+
/**
9+
* Get the registered name of the component.
10+
*
11+
* @return string
12+
*/
13+
protected static function getFacadeAccessor()
14+
{
15+
return 'Codexshaper\WooCommerce\Models\Attribute';
16+
}
17+
}

src/Facades/Category.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace Codexshaper\WooCommerce\Facades;
3+
4+
use Illuminate\Support\Facades\Facade;
5+
6+
class Category extends Facade
7+
{
8+
/**
9+
* Get the registered name of the component.
10+
*
11+
* @return string
12+
*/
13+
protected static function getFacadeAccessor()
14+
{
15+
return 'Codexshaper\WooCommerce\Models\Category';
16+
}
17+
}

src/Facades/Coupon.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace Codexshaper\WooCommerce\Facades;
3+
4+
use Illuminate\Support\Facades\Facade;
5+
6+
class Coupon extends Facade
7+
{
8+
/**
9+
* Get the registered name of the component.
10+
*
11+
* @return string
12+
*/
13+
protected static function getFacadeAccessor()
14+
{
15+
return 'Codexshaper\WooCommerce\Models\Coupon';
16+
}
17+
}

src/Facades/Refund.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace Codexshaper\WooCommerce\Facades;
3+
4+
use Illuminate\Support\Facades\Facade;
5+
6+
class Refund extends Facade
7+
{
8+
/**
9+
* Get the registered name of the component.
10+
*
11+
* @return string
12+
*/
13+
protected static function getFacadeAccessor()
14+
{
15+
return 'Codexshaper\WooCommerce\Models\Refund';
16+
}
17+
}

src/Facades/Report.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace Codexshaper\WooCommerce\Facades;
3+
4+
use Illuminate\Support\Facades\Facade;
5+
6+
class Report extends Facade
7+
{
8+
/**
9+
* Get the registered name of the component.
10+
*
11+
* @return string
12+
*/
13+
protected static function getFacadeAccessor()
14+
{
15+
return 'Codexshaper\WooCommerce\Models\Report';
16+
}
17+
}

src/Facades/Review.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace Codexshaper\WooCommerce\Facades;
3+
4+
use Illuminate\Support\Facades\Facade;
5+
6+
class Review extends Facade
7+
{
8+
/**
9+
* Get the registered name of the component.
10+
*
11+
* @return string
12+
*/
13+
protected static function getFacadeAccessor()
14+
{
15+
return 'Codexshaper\WooCommerce\Models\Review';
16+
}
17+
}

src/Facades/Setting.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace Codexshaper\WooCommerce\Facades;
3+
4+
use Illuminate\Support\Facades\Facade;
5+
6+
class Setting extends Facade
7+
{
8+
/**
9+
* Get the registered name of the component.
10+
*
11+
* @return string
12+
*/
13+
protected static function getFacadeAccessor()
14+
{
15+
return 'Codexshaper\WooCommerce\Models\Setting';
16+
}
17+
}

src/Facades/ShippingMethod.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace Codexshaper\WooCommerce\Facades;
3+
4+
use Illuminate\Support\Facades\Facade;
5+
6+
class ShippingMethod extends Facade
7+
{
8+
/**
9+
* Get the registered name of the component.
10+
*
11+
* @return string
12+
*/
13+
protected static function getFacadeAccessor()
14+
{
15+
return 'Codexshaper\WooCommerce\Models\ShippingMethod';
16+
}
17+
}

0 commit comments

Comments
 (0)