Skip to content

Commit a8a2239

Browse files
committed
v2.0.0 - Added null safety support, Dependency updates
1 parent 3a92084 commit a8a2239

File tree

83 files changed

+2119
-2095
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+2119
-2095
lines changed

.idea/libraries/Dart_Packages.xml

Lines changed: 44 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/libraries/Flutter_Plugins.xml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/workspace.xml

Lines changed: 67 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [2.0.0] - 2021-04-10
2+
3+
* Added null safety support
4+
* Dependency updates
5+
16
## [1.5.1+1] - 2021-03-27
27

38
* Update README

README.md

Lines changed: 37 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In your flutter project add the dependency:
1515
``` dart
1616
dependencies:
1717
...
18-
woosignal: ^1.5.1+1
18+
woosignal: ^2.0.0
1919
```
2020

2121
### Usage example #
@@ -41,12 +41,9 @@ _getProducts() async {
4141
};
4242
4343
// CREATING AN INSTANCE
44-
WooSignal.getInstance(config: wsConfig).then( (wcStore) {
45-
46-
wcStore.getProducts().then( (products) {
47-
print(products[0].name);
48-
});
49-
44+
WooSignal wooSignal = await WooSignal.getInstance(config: wsConfig);
45+
List<Product> products = await wooSignal.getProducts();
46+
print(products[0].name);
5047
});
5148
}
5249
```
@@ -59,8 +56,7 @@ _getProducts() async {
5956
- Update a Product by id
6057
- Delete a Product by id
6158
- Create a Product
62-
- Create, Delete and Update Product Multiple Time.
63-
<!-- -->
59+
- Batch update Products
6460

6561
[See Products API](https://woosignal.com/docs/api/1.0/products#list-all-products)
6662

@@ -138,7 +134,7 @@ _getProducts() async {
138134
- Retrieve a Order by id
139135
- Create an Order
140136
- Update an Order
141-
- Create, Delete and Update Order Multiple Time.
137+
- Batch update Orders
142138

143139
[See Order API](https://woosignal.com/docs/api/1.0/orders)
144140

@@ -148,7 +144,7 @@ _getProducts() async {
148144
- Create a Customer
149145
- Delete a Customer
150146
- Update a Customer
151-
- Create, Delete and Update Product Multiple Time.
147+
- Batch update Customers
152148

153149
[See Customers API](https://woosignal.com/docs/api/1.0/customers)
154150

@@ -161,97 +157,63 @@ _getProducts() async {
161157
[See Orders Notes API](https://woosignal.com/docs/api/1.0/order-notes)
162158

163159
#### WooCommerce - Refunds
164-
<!-- The refunds API allows you to create, view, and delete individual refunds. -->
165-
- List all all the refunds from an order.
160+
- Get refunds from an order id
166161
- Retrieve a retrieve and view a specific refund from an order
167162
- Delete a delete an order refund.
168-
- Create a new refund for an order.
163+
- Create a new refund for an order
169164

170165
[See Refunds API](https://woosignal.com/docs/api/1.0/order-refund)
171166

172167
#### WooCommerce - Coupons
173-
<!-- The coupons API allows you to create, view, update, and delete individual, or a batch, of coupon codes. -->
174-
- List all the coupons that have been created.
168+
- Get all coupons.
175169
- Retrieve and view a specific coupon by ID
176-
- This API lets you make changes or update to a coupon.
177-
- Delete a delete a coupon.
178-
- Create, Delete and Update Coupons Multiple Time.
170+
- Update a coupon.
171+
- Delete a coupon.
172+
- Batch update Coupons.
179173

180174
[See Coupons API](https://woosignal.com/docs/api/1.0/coupons)
181175

182176
#### WooCommerce - Reports
183-
<!-- The reports API allows you to view all types of reports available. -->
184-
185-
<!-- Retrieve and view a simple list of available reports. -->
186-
- List all the Reports that have been created.
187-
<!-- Retrieve sales report -->
188-
- API lets you retrieve and view a sales report.
189-
<!-- Retrieve top sellers report -->
190-
- API lets you retrieve and view a list of top sellers report.
191-
<!-- Retrieve coupons totals -->
192-
- API lets you retrieve and view coupons totals report.
193-
<!-- Retrieve customers totals -->
194-
- API lets you retrieve and view customers totals report.
195-
<!-- Retrieve orders totals -->
196-
- API lets you retrieve and view orders totals report.
197-
<!-- Retrieve products totals -->
198-
- API lets you retrieve and view products totals report
199-
<!-- Retrieve reviews totals -->
200-
- API lets you retrieve and view reviews totals report.
177+
- Get Reports
178+
- Retrieve a report of Sales
179+
- Retrieve a report of Top Sellers
180+
- Retrieve a report of the Total Coupons
181+
- Retrieve a report of the Total Customers
182+
- Retrieve a report of the Total Orders
183+
- Retrieve a report of the Total Products
184+
- Retrieve a report of the Total Reviews
201185

202186
[See Reports API](https://woosignal.com/docs/api/1.0/reports)
203187

204188
#### WooCommerce - Data
205-
<!-- The data API allows you to view all types of data available. -->
206-
<!-- List all data -->
207-
- Retrieve and view a simple list of available data endpoints.
208-
<!-- List all continents -->
209-
- API helps you to view all the continents..
210-
<!-- Retrieve continent data -->
211-
- API lets you retrieve and view a continent data.
212-
<!-- List all countries -->
213-
- API helps you to view all the countries..
214-
<!-- Retrieve country data -->
215-
- API lets you retrieve and view a country data.
216-
<!-- List all currencies -->
217-
- API helps you to view all the currencies.
218-
<!-- Retrieve currency data -->
219-
- API lets you retrieve and view a currency data.
220-
<!-- Retrieve current currency -->
221-
- API lets you retrieve and view store's current currency data.
189+
- Retrieve a list of available data endpoints.
190+
- Get continents.
191+
- Retrieve continent data.
192+
- Get countries.
193+
- Retrieve country data.
194+
- Get currencies.
195+
- Retrieve currency data.
196+
- Retrieve current currency data.
222197

223198
[See Data API](https://woosignal.com/docs/api/1.0/data)
224199

225200
#### WooCommerce - System Status
226-
<!-- The system status API allows you to view all system status items. -->
227-
<!-- List all system status items -->
228-
- API helps you to view all the system status items.
201+
- Get System Status Items
229202

230203
[See System Status API](https://woosignal.com/docs/api/1.0/system-status)
231204

232205
#### WooCommerce - Payment gateways
233-
<!--The payment gateways API allows you to view, and update individual payment gateways.
234-
Results are not paginated - all gateways will be returned -->
235-
<!-- Retrieve an payment gateway -->
236-
- API lets you retrieve and view a specific payment gateway.
237-
<!-- List all payment gateways -->
238-
- API helps you to view all the payment gateways.
239-
<!-- Update a payment gateway -->
240-
- API lets you make changes to a payment gateway.
206+
- Retrieve a Payment Gateway by id
207+
- Get all the Payment Gateways
208+
- Update a Payment Gateway
241209

242210
[See Payment gateways API](https://woosignal.com/docs/api/1.0/payment-gateways)
243211

244212
#### WooCommerce - Setting options
245-
<!--The payment gateways API allows you to view, and update individual payment gateways.
246-
Results are not paginated - all gateways will be returned -->
247-
<!-- Retrieve a setting option -->
248-
- API lets you retrieve and view a specific setting option.
249-
<!-- List all setting options -->
250-
- API helps you to view all the setting options.
251-
<!-- Update a setting option -->
252-
- API lets you make changes to a setting option.
253-
<!-- Batch update setting options -->
254-
- Create, Delete and Update Setting options Multiple Time.
213+
- Retrieve a specific Setting Option
214+
- Get all the Setting Options
215+
- Update a Setting Option by id
216+
- Batch update Setting Options
255217

256218
[See Setting options API](https://woosignal.com/docs/api/1.0/setting-options)
257219

Binary file not shown.
Binary file not shown.
-1 Bytes
Binary file not shown.
-17 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)