cloverrb 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/lib/cloverrb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b62e56ff7ac29d6fb569f7bb9c66cc986c76e7f
|
4
|
+
data.tar.gz: b84547af6bb468bf994e64b4b9d81467798f5722
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48a9eae0548e2816c804df263b48485f144ab3388f5c7fde56fb594935ed012803991adf8d2638fc22034b60783a72bd09e0026a084ee330142df6da30895b9b
|
7
|
+
data.tar.gz: 8b30f264d40cc72fc0ea5a6b3fa1d8cd3d07c0ab75cf675be385f33bea05849f98f5b69e2679487c068ba4c46b6462866ec5f6a2e5d0512fb9b5e6edde7aa98f
|
data/README.md
CHANGED
@@ -57,7 +57,11 @@ Or install it yourself as:
|
|
57
57
|
> Get a list of orders from a specific timeframe
|
58
58
|
```ruby
|
59
59
|
order_client = Cloverrb::Order(token)
|
60
|
-
|
60
|
+
options = {
|
61
|
+
"start_date": start_date,
|
62
|
+
"end_date": end_date
|
63
|
+
}
|
64
|
+
orders = order_client.all(merchant_id, options)
|
61
65
|
```
|
62
66
|
Note: `start_date` and `end_date` must be in milliseconds.
|
63
67
|
Example:
|
@@ -65,6 +69,15 @@ Or install it yourself as:
|
|
65
69
|
"June 15, 2017 8:00am".to_time.to_i * 1000
|
66
70
|
```
|
67
71
|
|
72
|
+
> Get a list of orders and filter by state
|
73
|
+
```ruby
|
74
|
+
order_client = Cloverrb::Order(token)
|
75
|
+
options = {
|
76
|
+
"state": "paid"
|
77
|
+
}
|
78
|
+
orders = order_client.all(merchant_id, options)
|
79
|
+
```
|
80
|
+
|
68
81
|
### Line Item
|
69
82
|
> Get a list of line items for a specific order
|
70
83
|
```ruby
|
data/lib/cloverrb/version.rb
CHANGED