cenit-collection-ecommerce 0.0.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.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +10 -0
  3. data/.travis.yml +3 -0
  4. data/Gemfile +6 -0
  5. data/README.md +83 -0
  6. data/Rakefile +1 -0
  7. data/bin/console +14 -0
  8. data/bin/setup +7 -0
  9. data/cenit-collection-ecommerce.gemspec +26 -0
  10. data/lib/cenit/collection/ecommerce.rb +29 -0
  11. data/lib/cenit/collection/ecommerce/build.rb +14 -0
  12. data/lib/cenit/collection/ecommerce/index.json +6 -0
  13. data/lib/cenit/collection/ecommerce/libraries/ecommerce/address.json +37 -0
  14. data/lib/cenit/collection/ecommerce/libraries/ecommerce/adjustment.json +10 -0
  15. data/lib/cenit/collection/ecommerce/libraries/ecommerce/cart.json +10 -0
  16. data/lib/cenit/collection/ecommerce/libraries/ecommerce/customer.json +27 -0
  17. data/lib/cenit/collection/ecommerce/libraries/ecommerce/dimension.json +10 -0
  18. data/lib/cenit/collection/ecommerce/libraries/ecommerce/image.json +25 -0
  19. data/lib/cenit/collection/ecommerce/libraries/ecommerce/inventory.json +21 -0
  20. data/lib/cenit/collection/ecommerce/libraries/ecommerce/line_item.json +21 -0
  21. data/lib/cenit/collection/ecommerce/libraries/ecommerce/order.json +60 -0
  22. data/lib/cenit/collection/ecommerce/libraries/ecommerce/order_total.json +32 -0
  23. data/lib/cenit/collection/ecommerce/libraries/ecommerce/payment.json +24 -0
  24. data/lib/cenit/collection/ecommerce/libraries/ecommerce/product.json +65 -0
  25. data/lib/cenit/collection/ecommerce/libraries/ecommerce/shipment.json +50 -0
  26. data/lib/cenit/collection/ecommerce/libraries/ecommerce/source.json +24 -0
  27. data/lib/cenit/collection/ecommerce/libraries/ecommerce/variant.json +31 -0
  28. data/lib/cenit/collection/ecommerce/libraries/index.json +1 -0
  29. data/lib/cenit/collection/ecommerce/support/sample/cart.json +205 -0
  30. data/lib/cenit/collection/ecommerce/support/sample/customer.json +82 -0
  31. data/lib/cenit/collection/ecommerce/support/sample/inventory.json +16 -0
  32. data/lib/cenit/collection/ecommerce/support/sample/orders.json +119 -0
  33. data/lib/cenit/collection/ecommerce/support/sample/product.json +61 -0
  34. data/lib/cenit/collection/ecommerce/support/sample/shipment.json +54 -0
  35. data/lib/cenit/collection/ecommerce/support/sample/sms.json +14 -0
  36. data/lib/cenit/collection/ecommerce/support/sample/stores.json +22 -0
  37. data/lib/cenit/collection/ecommerce/version.rb +7 -0
  38. metadata +109 -0
@@ -0,0 +1,16 @@
1
+ {
2
+ "inventories": [
3
+ {
4
+ "id": "1",
5
+ "location": "us_warehouse",
6
+ "quantity": 93,
7
+ "product_id": "SPREE-T-SHIRT"
8
+ },
9
+ {
10
+ "id": "2",
11
+ "location": "us_warehouse",
12
+ "quantity": 93,
13
+ "product_id": "SPREE-T-SHIRT"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,119 @@
1
+ {"orders": [{
2
+ "id": "R2",
3
+ "status": "complete",
4
+ "channel": "spree",
5
+ "email": "spree@example.com",
6
+ "currency": "USD",
7
+ "placed_on": "2014-02-03T17:29:15+00:00",
8
+ "totals": {
9
+ "adjustment": 10.0,
10
+ "tax": 10.0,
11
+ "shipping": 0.0,
12
+ "payment": 210.0,
13
+ "order": 210.0,
14
+ "item": 200.0
15
+ },
16
+ "line_items": [
17
+ {
18
+ "name": "Spree T-Shirt",
19
+ "quantity": 2,
20
+ "price": 100.0,
21
+ "product_id": "SPREE-T-SHIRT"
22
+ }
23
+ ],
24
+ "adjustments": [
25
+ {
26
+ "name": "Tax",
27
+ "value": "10.0"
28
+ }
29
+ ],
30
+ "payments": [
31
+ {
32
+ "number": 63,
33
+ "status": "completed",
34
+ "amount": 210.0,
35
+ "payment_method": "Credit Card"
36
+ }
37
+ ],
38
+ "shipping_address": {
39
+ "firstname": "Joe",
40
+ "lastname": "Smith",
41
+ "address1": "1234 Awesome Street",
42
+ "address2": "",
43
+ "city": "Hollywood",
44
+ "state": "California",
45
+ "country": "US",
46
+ "phone": "0000000000",
47
+ "zipcode": "90210"
48
+ },
49
+ "billing_address": {
50
+ "firstname": "Joe",
51
+ "lastname": "Smith",
52
+ "address1": "1234 Awesome Street",
53
+ "address2": "",
54
+ "city": "Hollywood",
55
+ "state": "California",
56
+ "country": "US",
57
+ "phone": "0000000000",
58
+ "zipcode": "90210"
59
+ }
60
+ },{
61
+ "id": "R1",
62
+ "status": "complete",
63
+ "channel": "spree",
64
+ "email": "spree@example.com",
65
+ "currency": "USD",
66
+ "placed_on": "2014-02-03T17:29:15+00:00",
67
+ "totals": {
68
+ "adjustment": 10.0,
69
+ "tax": 10.0,
70
+ "shipping": 0.0,
71
+ "payment": 210.0,
72
+ "order": 210.0,
73
+ "item": 200.0
74
+ },
75
+ "line_items": [
76
+ {
77
+ "name": "Spree T-Shirt",
78
+ "quantity": 2,
79
+ "price": 100.0,
80
+ "product_id": "SPREE-T-SHIRT"
81
+ }
82
+ ],
83
+ "adjustments": [
84
+ {
85
+ "name": "Tax",
86
+ "value": "10.0"
87
+ }
88
+ ],
89
+ "payments": [
90
+ {
91
+ "number": 63,
92
+ "status": "completed",
93
+ "amount": 210.0,
94
+ "payment_method": "Credit Card"
95
+ }
96
+ ],
97
+ "shipping_address": {
98
+ "firstname": "Joe",
99
+ "lastname": "Smith",
100
+ "address1": "1234 Awesome Street",
101
+ "address2": "",
102
+ "city": "Hollywood",
103
+ "state": "California",
104
+ "country": "US",
105
+ "phone": "0000000000",
106
+ "zipcode": "90210"
107
+ },
108
+ "billing_address": {
109
+ "firstname": "Joe",
110
+ "lastname": "Smith",
111
+ "address1": "1234 Awesome Street",
112
+ "address2": "",
113
+ "city": "Hollywood",
114
+ "state": "California",
115
+ "country": "US",
116
+ "phone": "0000000000",
117
+ "zipcode": "90210"
118
+ }
119
+ }]}
@@ -0,0 +1,61 @@
1
+ {
2
+ "products": {
3
+ "id": "SPREE-T-SHIRT",
4
+ "name": "Spree T-Shirt",
5
+ "sku": "SPREE-T-SHIRT",
6
+ "description": "Awesome Spree T-Shirt",
7
+ "price": 35.00,
8
+ "cost_price": 22.33,
9
+ "available_on": "2014-01-29T14:01:28.000Z",
10
+ "permalink": "spree-tshirt",
11
+ "meta_description": null,
12
+ "meta_keywords": null,
13
+ "shipping_category": "Default",
14
+ "taxons": [
15
+ [ "Categories", "Clothes", "T-Shirts" ],
16
+ [ "Brands", "Spree" ],
17
+ [ "Brands", "Open Source" ]
18
+ ],
19
+ "options": ["color", "size"],
20
+ "properties": {
21
+ "material": "cotton",
22
+ "fit": "smart fit"
23
+ },
24
+ "images": [
25
+ {
26
+ "url": "http://dummyimage.com/600x400/000/fff.jpg&text=Spree T-Shirt",
27
+ "position": 1,
28
+ "title": "Spree T-Shirt - Grey Small",
29
+ "type": "thumbnail",
30
+ "dimensions": {
31
+ "height": 220,
32
+ "width": 100
33
+ }
34
+ }
35
+ ],
36
+ "variants": [
37
+ {
38
+ "sku": "SPREE-T-SHIRT-S",
39
+ "price": 39.99,
40
+ "cost_price": 22.33,
41
+ "quantity": 1,
42
+ "options": {
43
+ "color": "GREY",
44
+ "size": "S"
45
+ },
46
+ "images": [
47
+ {
48
+ "url": "http://dummyimage.com/600x400/000/fff.jpg&text=Spree T-Shirt Grey Small",
49
+ "position": 1,
50
+ "title": "Spree T-Shirt - Grey Small",
51
+ "type": "thumbnail",
52
+ "dimensions": {
53
+ "height": 220,
54
+ "width": 100
55
+ }
56
+ }
57
+ ]
58
+ }
59
+ ]
60
+ }
61
+ }
@@ -0,0 +1,54 @@
1
+ {
2
+ "shipments": {
3
+ "id": "12836",
4
+ "order_id": "R154085346",
5
+ "email": "spree@example.com",
6
+ "cost": 5.0,
7
+ "status": "ready",
8
+ "stock_location": "default",
9
+ "shipping_method": "UPS Ground (USD)",
10
+ "tracking": "12345678",
11
+ "shipped_at": "2014-02-03T17:33:55.343Z",
12
+ "channel": "spree",
13
+ "totals": {
14
+ "item": 200.0,
15
+ "adjustment": 10.0,
16
+ "tax": 10.0,
17
+ "shipping": 0.0,
18
+ "payment": 210.0,
19
+ "order": 210.0
20
+ },
21
+ "shipping_address": {
22
+ "firstname": "Joe",
23
+ "lastname": "Smith",
24
+ "address1": "1234 Awesome Street",
25
+ "address2": "",
26
+ "zipcode": "90210",
27
+ "city": "Hollywood",
28
+ "state": "California",
29
+ "country": "US",
30
+ "phone": "0000000000"
31
+ },
32
+ "billing_address": {
33
+ "firstname": "Joe",
34
+ "lastname": "Smith",
35
+ "address1": "1234 Awesome Street",
36
+ "address2": "",
37
+ "zipcode": "90210",
38
+ "city": "Hollywood",
39
+ "state": "California",
40
+ "country": "US",
41
+ "phone": "0000000000"
42
+ },
43
+ "items": [
44
+ {
45
+ "name": "Spree T-Shirt",
46
+ "product_id": "SPREE-T-SHIRT",
47
+ "quantity": 1,
48
+ "price": 30.0,
49
+ "options": {
50
+ }
51
+ }
52
+ ]
53
+ }
54
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "sms": [
3
+ {
4
+ "from": "+000000000",
5
+ "message": "Order ID R154085346 status complete!",
6
+ "phone": "+000000000"
7
+ },
8
+ {
9
+ "from": "+00000000",
10
+ "message": "Order ID R154085347 status canceled!",
11
+ "phone": "+000000000"
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "stores": [
3
+ {
4
+ "id": "51f788cf65762d3177000001",
5
+ "name": "Test Store 1",
6
+ "permalink": "test_store_1",
7
+ "time_zone": "UTC"
8
+ },
9
+ {
10
+ "id": "51f788cf65762d3177000002",
11
+ "name": "Test Store 2",
12
+ "permalink": "test_store_2",
13
+ "time_zone": "UTC"
14
+ },
15
+ {
16
+ "id": "51f788cf65762d3177000003",
17
+ "name": "Test Store 3",
18
+ "permalink": "test_store_3",
19
+ "time_zone": "UTC"
20
+ }
21
+ ]
22
+ }
@@ -0,0 +1,7 @@
1
+ module Cenit
2
+ module Collection
3
+ module Ecommerce
4
+ VERSION = "0.0.1"
5
+ end
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cenit-collection-ecommerce
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - asnioby
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ description: Collection for Cenit Library Ecommerce
42
+ email:
43
+ - asnioby@gmail.com
44
+ executables:
45
+ - console
46
+ - setup
47
+ extensions: []
48
+ extra_rdoc_files: []
49
+ files:
50
+ - ".gitignore"
51
+ - ".travis.yml"
52
+ - Gemfile
53
+ - README.md
54
+ - Rakefile
55
+ - bin/console
56
+ - bin/setup
57
+ - cenit-collection-ecommerce.gemspec
58
+ - lib/cenit/collection/ecommerce.rb
59
+ - lib/cenit/collection/ecommerce/build.rb
60
+ - lib/cenit/collection/ecommerce/index.json
61
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/address.json
62
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/adjustment.json
63
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/cart.json
64
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/customer.json
65
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/dimension.json
66
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/image.json
67
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/inventory.json
68
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/line_item.json
69
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/order.json
70
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/order_total.json
71
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/payment.json
72
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/product.json
73
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/shipment.json
74
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/source.json
75
+ - lib/cenit/collection/ecommerce/libraries/ecommerce/variant.json
76
+ - lib/cenit/collection/ecommerce/libraries/index.json
77
+ - lib/cenit/collection/ecommerce/support/sample/cart.json
78
+ - lib/cenit/collection/ecommerce/support/sample/customer.json
79
+ - lib/cenit/collection/ecommerce/support/sample/inventory.json
80
+ - lib/cenit/collection/ecommerce/support/sample/orders.json
81
+ - lib/cenit/collection/ecommerce/support/sample/product.json
82
+ - lib/cenit/collection/ecommerce/support/sample/shipment.json
83
+ - lib/cenit/collection/ecommerce/support/sample/sms.json
84
+ - lib/cenit/collection/ecommerce/support/sample/stores.json
85
+ - lib/cenit/collection/ecommerce/version.rb
86
+ homepage: https://github.com/openjaf/cenit-collection-ecommerce
87
+ licenses: []
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project: cenit-collection
105
+ rubygems_version: 2.2.2
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: Cenit Library Ecommerce
109
+ test_files: []