bigcommerce 1.0.0.beta → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +98 -36
  3. data/bigcommerce.gemspec +11 -13
  4. data/lib/bigcommerce.rb +4 -33
  5. data/lib/bigcommerce/config.rb +14 -0
  6. data/lib/bigcommerce/connection.rb +24 -0
  7. data/lib/bigcommerce/exception.rb +25 -18
  8. data/lib/bigcommerce/request.rb +8 -9
  9. data/lib/bigcommerce/resource_actions.rb +11 -11
  10. data/lib/bigcommerce/resources/content/blog_post.rb +3 -5
  11. data/lib/bigcommerce/resources/content/blog_tag.rb +2 -3
  12. data/lib/bigcommerce/resources/content/redirect.rb +2 -2
  13. data/lib/bigcommerce/resources/customers/customer.rb +2 -2
  14. data/lib/bigcommerce/resources/customers/customer_address.rb +5 -5
  15. data/lib/bigcommerce/resources/customers/customer_group.rb +2 -2
  16. data/lib/bigcommerce/resources/geography/country.rb +4 -3
  17. data/lib/bigcommerce/resources/geography/state.rb +6 -5
  18. data/lib/bigcommerce/resources/marketing/banner.rb +21 -0
  19. data/lib/bigcommerce/resources/marketing/coupon.rb +2 -2
  20. data/lib/bigcommerce/resources/marketing/gift_certificates.rb +25 -0
  21. data/lib/bigcommerce/resources/orders/order.rb +46 -44
  22. data/lib/bigcommerce/resources/orders/order_coupon.rb +5 -5
  23. data/lib/bigcommerce/resources/orders/order_message.rb +8 -7
  24. data/lib/bigcommerce/resources/orders/order_product.rb +37 -36
  25. data/lib/bigcommerce/resources/orders/order_shipping_address.rb +24 -23
  26. data/lib/bigcommerce/resources/orders/order_status.rb +2 -1
  27. data/lib/bigcommerce/resources/orders/order_tax.rb +8 -7
  28. data/lib/bigcommerce/resources/orders/shipment.rb +11 -10
  29. data/lib/bigcommerce/resources/products/brand.rb +2 -2
  30. data/lib/bigcommerce/resources/products/bulk_pricing_rule.rb +6 -5
  31. data/lib/bigcommerce/resources/products/category.rb +2 -2
  32. data/lib/bigcommerce/resources/products/configurable_field.rb +6 -5
  33. data/lib/bigcommerce/resources/products/custom_field.rb +6 -5
  34. data/lib/bigcommerce/resources/products/google_product_search_mapping.rb +9 -8
  35. data/lib/bigcommerce/resources/products/option.rb +2 -2
  36. data/lib/bigcommerce/resources/products/option_set.rb +2 -2
  37. data/lib/bigcommerce/resources/products/option_set_option.rb +2 -1
  38. data/lib/bigcommerce/resources/products/option_value.rb +1 -0
  39. data/lib/bigcommerce/resources/products/product.rb +61 -61
  40. data/lib/bigcommerce/resources/products/product_image.rb +4 -4
  41. data/lib/bigcommerce/resources/products/product_option.rb +2 -1
  42. data/lib/bigcommerce/resources/products/product_review.rb +1 -5
  43. data/lib/bigcommerce/resources/products/product_rule.rb +4 -4
  44. data/lib/bigcommerce/resources/products/product_video.rb +4 -4
  45. data/lib/bigcommerce/resources/products/sku.rb +15 -9
  46. data/lib/bigcommerce/resources/shipping/shipping_method.rb +2 -1
  47. data/lib/bigcommerce/resources/store/store_information.rb +18 -14
  48. data/lib/bigcommerce/resources/system/time.rb +2 -2
  49. data/lib/bigcommerce/resources/tax/tax_class.rb +2 -1
  50. data/lib/bigcommerce/resources/webhooks/webhook.rb +2 -1
  51. data/lib/bigcommerce/subresource_actions.rb +14 -14
  52. data/lib/bigcommerce/version.rb +1 -1
  53. metadata +32 -165
  54. data/.gitignore +0 -17
  55. data/.rspec +0 -2
  56. data/.rubocop.yml +0 -620
  57. data/.travis.yml +0 -15
  58. data/CHANGELOG.md +0 -11
  59. data/CONTRIBUTING.md +0 -119
  60. data/DEPENDENCIES.md +0 -7
  61. data/Gemfile +0 -15
  62. data/Guardfile +0 -22
  63. data/LICENSE +0 -20
  64. data/RELEASING.md +0 -64
  65. data/Rakefile +0 -13
  66. data/examples/README.md +0 -148
  67. data/examples/configuration/legacy_auth.rb +0 -12
  68. data/examples/configuration/oauth.rb +0 -9
  69. data/examples/content/blog_post.rb +0 -39
  70. data/examples/content/blog_tag.rb +0 -10
  71. data/examples/content/redirect.rb +0 -43
  72. data/examples/customers/customer.rb +0 -36
  73. data/examples/customers/customer_address.rb +0 -50
  74. data/examples/customers/customer_group.rb +0 -35
  75. data/examples/exception_handling.rb +0 -50
  76. data/examples/geography/country.rb +0 -16
  77. data/examples/geography/state.rb +0 -19
  78. data/examples/marketing/coupon.rb +0 -44
  79. data/examples/orders/order.rb +0 -53
  80. data/examples/orders/order_coupon.rb +0 -17
  81. data/examples/orders/order_message.rb +0 -17
  82. data/examples/orders/order_product.rb +0 -23
  83. data/examples/orders/order_shipping_address.rb +0 -23
  84. data/examples/orders/order_status.rb +0 -15
  85. data/examples/orders/order_tax.rb +0 -17
  86. data/examples/orders/shipment.rb +0 -57
  87. data/examples/payments/payment_method.rb +0 -10
  88. data/examples/products/brand.rb +0 -36
  89. data/examples/products/bulk_pricing_rule.rb +0 -47
  90. data/examples/products/category.rb +0 -37
  91. data/examples/products/configurable_field.rb +0 -29
  92. data/examples/products/custom_field.rb +0 -44
  93. data/examples/products/google_product_search_mapping.rb +0 -12
  94. data/examples/products/option.rb +0 -37
  95. data/examples/products/option_set.rb +0 -35
  96. data/examples/products/option_set_option.rb +0 -50
  97. data/examples/products/option_value.rb +0 -43
  98. data/examples/products/product.rb +0 -44
  99. data/examples/products/product_image.rb +0 -42
  100. data/examples/products/product_option.rb +0 -17
  101. data/examples/products/product_review.rb +0 -12
  102. data/examples/products/product_rule.rb +0 -54
  103. data/examples/products/product_video.rb +0 -45
  104. data/examples/products/sku.rb +0 -48
  105. data/examples/shipping/shipping_method.rb +0 -13
  106. data/examples/store/store_info.rb +0 -10
  107. data/examples/system/time.rb +0 -10
  108. data/examples/tax/tax_class.rb +0 -13
  109. data/examples/webhooks/webhook.rb +0 -29
  110. data/spec/bigcommerce/bigcommerce_spec.rb +0 -76
  111. data/spec/bigcommerce/unit/actions_spec.rb +0 -151
  112. data/spec/bigcommerce/unit/exception_spec.rb +0 -53
  113. data/spec/bigcommerce/unit/middleware/auth_spec.rb +0 -18
  114. data/spec/bigcommerce/unit/middleware/http_exception_spec.rb +0 -40
  115. data/spec/bigcommerce/unit/request_spec.rb +0 -180
  116. data/spec/bigcommerce/unit/resources/content/blog_post_spec.rb +0 -12
  117. data/spec/bigcommerce/unit/resources/content/blog_tag_spec.rb +0 -12
  118. data/spec/bigcommerce/unit/resources/content/redirect_spec.rb +0 -12
  119. data/spec/bigcommerce/unit/resources/customers/customer_address_spec.rb +0 -21
  120. data/spec/bigcommerce/unit/resources/customers/customer_group_spec.rb +0 -12
  121. data/spec/bigcommerce/unit/resources/customers/customer_spec.rb +0 -12
  122. data/spec/bigcommerce/unit/resources/geography/country_spec.rb +0 -12
  123. data/spec/bigcommerce/unit/resources/geography/state_spec.rb +0 -21
  124. data/spec/bigcommerce/unit/resources/marketing/coupon_spec.rb +0 -12
  125. data/spec/bigcommerce/unit/resources/orders/order_product_spec.rb +0 -21
  126. data/spec/bigcommerce/unit/resources/orders/order_shipping_address_spec.rb +0 -21
  127. data/spec/bigcommerce/unit/resources/orders/order_spec.rb +0 -13
  128. data/spec/bigcommerce/unit/resources/orders/shipment_spec.rb +0 -21
  129. data/spec/bigcommerce/unit/resources/payments/payment_method_spec.rb +0 -23
  130. data/spec/bigcommerce/unit/resources/products/brand_spec.rb +0 -12
  131. data/spec/bigcommerce/unit/resources/products/bulk_pricing_rule_spec.rb +0 -21
  132. data/spec/bigcommerce/unit/resources/products/category_spec.rb +0 -12
  133. data/spec/bigcommerce/unit/resources/products/configurable_field_spec.rb +0 -21
  134. data/spec/bigcommerce/unit/resources/products/custom_field_spec.rb +0 -21
  135. data/spec/bigcommerce/unit/resources/products/google_product_search_mapping_spec.rb +0 -14
  136. data/spec/bigcommerce/unit/resources/products/option_set_spec.rb +0 -12
  137. data/spec/bigcommerce/unit/resources/products/option_spec.rb +0 -12
  138. data/spec/bigcommerce/unit/resources/products/product_image_spec.rb +0 -21
  139. data/spec/bigcommerce/unit/resources/products/product_review_spec.rb +0 -14
  140. data/spec/bigcommerce/unit/resources/products/product_rule_spec.rb +0 -21
  141. data/spec/bigcommerce/unit/resources/products/product_spec.rb +0 -13
  142. data/spec/bigcommerce/unit/resources/products/product_video_spec.rb +0 -21
  143. data/spec/bigcommerce/unit/resources/products/sku_spec.rb +0 -21
  144. data/spec/bigcommerce/unit/resources/resource_spec.rb +0 -4
  145. data/spec/bigcommerce/unit/resources/store_info/store_information_spec.rb +0 -12
  146. data/spec/bigcommerce/unit/resources/system/time_spec.rb +0 -12
  147. data/spec/bigcommerce/unit/version_spec.rb +0 -7
  148. data/spec/spec_helper.rb +0 -11
@@ -20,12 +20,12 @@ module Bigcommerce
20
20
  property :description
21
21
  property :date_created
22
22
 
23
- def self.count(product_id)
24
- get "products/#{product_id}/images/count"
23
+ def self.count(product_id, params = {})
24
+ get "products/#{product_id}/images/count", params
25
25
  end
26
26
 
27
- def self.count_all
28
- get 'products/images/count'
27
+ def self.count_all(params = {})
28
+ get 'products/images/count', params
29
29
  end
30
30
  end
31
31
  end
@@ -6,7 +6,8 @@ module Bigcommerce
6
6
  class ProductOption < Resource
7
7
  include Bigcommerce::SubresourceActions.new(
8
8
  uri: 'products/%d/options/%d',
9
- disable: [:create, :update, :destroy, :destroy_all])
9
+ disable: [:create, :update, :destroy, :destroy_all]
10
+ )
10
11
 
11
12
  property :id
12
13
  property :option_id
@@ -4,7 +4,7 @@
4
4
 
5
5
  module Bigcommerce
6
6
  class ProductReview < Resource
7
- include Bigcommerce::Request.new 'products/%d/reviews'
7
+ include Bigcommerce::SubresourceActions.new uri: 'products/%d/reviews/%d'
8
8
 
9
9
  property :id
10
10
  property :product_id
@@ -14,9 +14,5 @@ module Bigcommerce
14
14
  property :title
15
15
  property :review
16
16
  property :status
17
-
18
- def self.all(product_id)
19
- get path.build(product_id)
20
- end
21
17
  end
22
18
  end
@@ -20,12 +20,12 @@ module Bigcommerce
20
20
  property :image_file
21
21
  property :conditions
22
22
 
23
- def self.count(product_id)
24
- get "products/#{product_id}/rules/count"
23
+ def self.count(product_id, params = {})
24
+ get "products/#{product_id}/rules/count", params
25
25
  end
26
26
 
27
- def self.count_all
28
- get 'products/rules/count'
27
+ def self.count_all(params = {})
28
+ get 'products/rules/count', params
29
29
  end
30
30
  end
31
31
  end
@@ -13,12 +13,12 @@ module Bigcommerce
13
13
  property :sort_order
14
14
  property :name
15
15
 
16
- def self.count(product_id)
17
- get "products/#{product_id}/videos/count"
16
+ def self.count(product_id, params = {})
17
+ get "products/#{product_id}/videos/count", params
18
18
  end
19
19
 
20
- def self.count_all
21
- get 'products/videos/count'
20
+ def self.count_all(params = {})
21
+ get 'products/videos/count', params
22
22
  end
23
23
  end
24
24
  end
@@ -7,23 +7,29 @@ module Bigcommerce
7
7
  include Bigcommerce::SubresourceActions.new uri: 'products/%d/skus/%d'
8
8
 
9
9
  property :id
10
- property :product_id
11
10
  property :sku
12
- property :cost_price
13
- property :count
14
11
  property :upc
12
+ property :price
13
+ property :weight
14
+ property :options
15
+ property :cost_price
16
+ property :image_file
17
+ property :product_id
18
+ property :adjusted_price
19
+ property :adjusted_weight
15
20
  property :inventory_level
16
- property :intentory_warning_level
17
21
  property :bin_picking_number
18
- property :options
22
+ property :is_purchasing_disabled
19
23
  property :inventory_warning_level
24
+ property :purchasing_disabled_message
25
+ property :count
20
26
 
21
- def self.count_all
22
- get 'products/skus/count'
27
+ def self.count_all(params = {})
28
+ get 'products/skus/count', params
23
29
  end
24
30
 
25
- def self.count(product_id)
26
- get "products/#{product_id}/skus/count"
31
+ def self.count(product_id, params = {})
32
+ get "products/#{product_id}/skus/count", params
27
33
  end
28
34
  end
29
35
  end
@@ -6,7 +6,8 @@ module Bigcommerce
6
6
  class ShippingMethod < Resource
7
7
  include Bigcommerce::ResourceActions.new(
8
8
  uri: 'shipping/methods/%d',
9
- disable: [:create, :update, :destroy, :destroy_all])
9
+ disable: [:create, :update, :destroy, :destroy_all]
10
+ )
10
11
 
11
12
  property :id
12
13
  property :name
@@ -7,31 +7,35 @@ module Bigcommerce
7
7
  include Bigcommerce::Request.new 'store'
8
8
 
9
9
  property :id
10
- property :domain
10
+ property :logo
11
11
  property :name
12
- property :address
13
12
  property :phone
13
+ property :domain
14
+ property :address
15
+ property :currency
16
+ property :features
17
+ property :language
18
+ property :timezone
19
+ property :plan_name
20
+ property :plan_level
21
+ property :secure_url
14
22
  property :admin_email
15
23
  property :order_email
16
- property :language
17
- property :currency
24
+ property :weight_units
25
+ property :decimal_places
18
26
  property :currency_symbol
27
+ property :dimension_units
19
28
  property :decimal_separator
20
29
  property :thousands_separator
21
- property :decimal_places
22
- property :dimension_decimal_places
23
30
  property :dimension_decimal_token
24
- property :dimension_thousands_token
25
31
  property :currency_symbol_location
26
- property :is_price_entered_with_tax
32
+ property :dimension_decimal_places
27
33
  property :active_comparison_modules
28
- property :weight_units
29
- property :dimension_units
30
- property :plan_name
31
- property :logo
34
+ property :dimension_thousands_token
35
+ property :is_price_entered_with_tax
32
36
 
33
- def self.info
34
- get path.build
37
+ def self.info(params = {})
38
+ get path.build, params
35
39
  end
36
40
  end
37
41
  end
@@ -8,8 +8,8 @@ module Bigcommerce
8
8
 
9
9
  property :time
10
10
 
11
- def self.time
12
- get path.build
11
+ def self.time(params = {})
12
+ get path.build, params
13
13
  end
14
14
  end
15
15
  end
@@ -7,7 +7,8 @@ module Bigcommerce
7
7
  class TaxClass < Resource
8
8
  include Bigcommerce::ResourceActions.new(
9
9
  uri: 'tax_classes/%d',
10
- disable: [:create, :update, :destroy, :destroy_all])
10
+ disable: [:create, :update, :destroy, :destroy_all]
11
+ )
11
12
 
12
13
  property :id
13
14
  property :name
@@ -7,7 +7,8 @@ module Bigcommerce
7
7
  class Webhook < Resource
8
8
  include Bigcommerce::ResourceActions.new(
9
9
  uri: 'hooks/%d',
10
- disable: [:destroy_all])
10
+ disable: [:destroy_all]
11
+ )
11
12
 
12
13
  property :id
13
14
  property :client_id
@@ -10,33 +10,33 @@ module Bigcommerce
10
10
 
11
11
  module ClassMethods
12
12
  def all(parent_id, params = {})
13
- fail ArgumentError if parent_id.nil?
13
+ raise ArgumentError if parent_id.nil?
14
14
  get path.build(parent_id), params
15
15
  end
16
16
 
17
- def find(parent_id, resource_id)
18
- fail ArgumentError if [parent_id, resource_id].any?(&:nil?)
19
- get path.build([parent_id, resource_id])
17
+ def find(parent_id, resource_id, params = {})
18
+ raise ArgumentError if [parent_id, resource_id].any?(&:nil?)
19
+ get path.build([parent_id, resource_id]), params
20
20
  end
21
21
 
22
- def create(parent_id, params)
23
- fail ArgumentError if parent_id.nil?
22
+ def create(parent_id, params = {})
23
+ raise ArgumentError if parent_id.nil?
24
24
  post path.build(parent_id), params
25
25
  end
26
26
 
27
- def update(parent_id, resource_id, params)
28
- fail ArgumentError if [parent_id, resource_id].any?(&:nil?)
27
+ def update(parent_id, resource_id, params = {})
28
+ raise ArgumentError if [parent_id, resource_id].any?(&:nil?)
29
29
  put path.build([parent_id, resource_id]), params
30
30
  end
31
31
 
32
- def destroy(parent_id, resource_id)
33
- fail ArgumentError if [parent_id, resource_id].any?(&:nil?)
34
- delete path.build([parent_id, resource_id])
32
+ def destroy(parent_id, resource_id, params = {})
33
+ raise ArgumentError if [parent_id, resource_id].any?(&:nil?)
34
+ delete path.build([parent_id, resource_id]), params
35
35
  end
36
36
 
37
- def destroy_all(parent_id)
38
- fail ArgumentError if parent_id.nil?
39
- delete path.build(parent_id)
37
+ def destroy_all(parent_id, params = {})
38
+ raise ArgumentError if parent_id.nil?
39
+ delete path.build(parent_id), params
40
40
  end
41
41
  end
42
42
  end
@@ -1,3 +1,3 @@
1
1
  module Bigcommerce
2
- VERSION = '1.0.0.beta'
2
+ VERSION = '1.0.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,153 +1,96 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigcommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Edelman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-17 00:00:00.000000000 Z
11
+ date: 2016-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake
14
+ name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
28
+ name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '0.9'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '0.9'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: faraday_middleware
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.10.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.10.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: hashie
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: '3.4'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
83
- description: |-
84
- Bigcommerce API Ruby client library. Allows developers to \
85
- easily communicate with the Bigcommerce API, for either CLI tools or public \
86
- apps. More info: http://developer.bigcommerce.com
82
+ version: '3.4'
83
+ description: Ruby client library for the BigCommerce API
87
84
  email:
88
85
  executables: []
89
86
  extensions: []
90
87
  extra_rdoc_files: []
91
88
  files:
92
- - .gitignore
93
- - .rspec
94
- - .rubocop.yml
95
- - .travis.yml
96
- - CHANGELOG.md
97
- - CONTRIBUTING.md
98
- - DEPENDENCIES.md
99
- - Gemfile
100
- - Guardfile
101
- - LICENSE
102
89
  - README.md
103
- - RELEASING.md
104
- - Rakefile
105
90
  - bigcommerce.gemspec
106
- - examples/README.md
107
- - examples/configuration/legacy_auth.rb
108
- - examples/configuration/oauth.rb
109
- - examples/content/blog_post.rb
110
- - examples/content/blog_tag.rb
111
- - examples/content/redirect.rb
112
- - examples/customers/customer.rb
113
- - examples/customers/customer_address.rb
114
- - examples/customers/customer_group.rb
115
- - examples/exception_handling.rb
116
- - examples/geography/country.rb
117
- - examples/geography/state.rb
118
- - examples/marketing/coupon.rb
119
- - examples/orders/order.rb
120
- - examples/orders/order_coupon.rb
121
- - examples/orders/order_message.rb
122
- - examples/orders/order_product.rb
123
- - examples/orders/order_shipping_address.rb
124
- - examples/orders/order_status.rb
125
- - examples/orders/order_tax.rb
126
- - examples/orders/shipment.rb
127
- - examples/payments/payment_method.rb
128
- - examples/products/brand.rb
129
- - examples/products/bulk_pricing_rule.rb
130
- - examples/products/category.rb
131
- - examples/products/configurable_field.rb
132
- - examples/products/custom_field.rb
133
- - examples/products/google_product_search_mapping.rb
134
- - examples/products/option.rb
135
- - examples/products/option_set.rb
136
- - examples/products/option_set_option.rb
137
- - examples/products/option_value.rb
138
- - examples/products/product.rb
139
- - examples/products/product_image.rb
140
- - examples/products/product_option.rb
141
- - examples/products/product_review.rb
142
- - examples/products/product_rule.rb
143
- - examples/products/product_video.rb
144
- - examples/products/sku.rb
145
- - examples/shipping/shipping_method.rb
146
- - examples/store/store_info.rb
147
- - examples/system/time.rb
148
- - examples/tax/tax_class.rb
149
- - examples/webhooks/webhook.rb
150
91
  - lib/bigcommerce.rb
92
+ - lib/bigcommerce/config.rb
93
+ - lib/bigcommerce/connection.rb
151
94
  - lib/bigcommerce/exception.rb
152
95
  - lib/bigcommerce/middleware/auth.rb
153
96
  - lib/bigcommerce/middleware/http_exception.rb
@@ -161,7 +104,9 @@ files:
161
104
  - lib/bigcommerce/resources/customers/customer_group.rb
162
105
  - lib/bigcommerce/resources/geography/country.rb
163
106
  - lib/bigcommerce/resources/geography/state.rb
107
+ - lib/bigcommerce/resources/marketing/banner.rb
164
108
  - lib/bigcommerce/resources/marketing/coupon.rb
109
+ - lib/bigcommerce/resources/marketing/gift_certificates.rb
165
110
  - lib/bigcommerce/resources/orders/order.rb
166
111
  - lib/bigcommerce/resources/orders/order_coupon.rb
167
112
  - lib/bigcommerce/resources/orders/order_message.rb
@@ -196,45 +141,6 @@ files:
196
141
  - lib/bigcommerce/resources/webhooks/webhook.rb
197
142
  - lib/bigcommerce/subresource_actions.rb
198
143
  - lib/bigcommerce/version.rb
199
- - spec/bigcommerce/bigcommerce_spec.rb
200
- - spec/bigcommerce/unit/actions_spec.rb
201
- - spec/bigcommerce/unit/exception_spec.rb
202
- - spec/bigcommerce/unit/middleware/auth_spec.rb
203
- - spec/bigcommerce/unit/middleware/http_exception_spec.rb
204
- - spec/bigcommerce/unit/request_spec.rb
205
- - spec/bigcommerce/unit/resources/content/blog_post_spec.rb
206
- - spec/bigcommerce/unit/resources/content/blog_tag_spec.rb
207
- - spec/bigcommerce/unit/resources/content/redirect_spec.rb
208
- - spec/bigcommerce/unit/resources/customers/customer_address_spec.rb
209
- - spec/bigcommerce/unit/resources/customers/customer_group_spec.rb
210
- - spec/bigcommerce/unit/resources/customers/customer_spec.rb
211
- - spec/bigcommerce/unit/resources/geography/country_spec.rb
212
- - spec/bigcommerce/unit/resources/geography/state_spec.rb
213
- - spec/bigcommerce/unit/resources/marketing/coupon_spec.rb
214
- - spec/bigcommerce/unit/resources/orders/order_product_spec.rb
215
- - spec/bigcommerce/unit/resources/orders/order_shipping_address_spec.rb
216
- - spec/bigcommerce/unit/resources/orders/order_spec.rb
217
- - spec/bigcommerce/unit/resources/orders/shipment_spec.rb
218
- - spec/bigcommerce/unit/resources/payments/payment_method_spec.rb
219
- - spec/bigcommerce/unit/resources/products/brand_spec.rb
220
- - spec/bigcommerce/unit/resources/products/bulk_pricing_rule_spec.rb
221
- - spec/bigcommerce/unit/resources/products/category_spec.rb
222
- - spec/bigcommerce/unit/resources/products/configurable_field_spec.rb
223
- - spec/bigcommerce/unit/resources/products/custom_field_spec.rb
224
- - spec/bigcommerce/unit/resources/products/google_product_search_mapping_spec.rb
225
- - spec/bigcommerce/unit/resources/products/option_set_spec.rb
226
- - spec/bigcommerce/unit/resources/products/option_spec.rb
227
- - spec/bigcommerce/unit/resources/products/product_image_spec.rb
228
- - spec/bigcommerce/unit/resources/products/product_review_spec.rb
229
- - spec/bigcommerce/unit/resources/products/product_rule_spec.rb
230
- - spec/bigcommerce/unit/resources/products/product_spec.rb
231
- - spec/bigcommerce/unit/resources/products/product_video_spec.rb
232
- - spec/bigcommerce/unit/resources/products/sku_spec.rb
233
- - spec/bigcommerce/unit/resources/resource_spec.rb
234
- - spec/bigcommerce/unit/resources/store_info/store_information_spec.rb
235
- - spec/bigcommerce/unit/resources/system/time_spec.rb
236
- - spec/bigcommerce/unit/version_spec.rb
237
- - spec/spec_helper.rb
238
144
  homepage: https://github.com/bigcommerce/bigcommerce-api-ruby
239
145
  licenses:
240
146
  - MIT
@@ -245,57 +151,18 @@ require_paths:
245
151
  - lib
246
152
  required_ruby_version: !ruby/object:Gem::Requirement
247
153
  requirements:
248
- - - '>='
154
+ - - ">="
249
155
  - !ruby/object:Gem::Version
250
- version: 1.9.3
156
+ version: 2.0.0
251
157
  required_rubygems_version: !ruby/object:Gem::Requirement
252
158
  requirements:
253
- - - '>'
159
+ - - ">="
254
160
  - !ruby/object:Gem::Version
255
- version: 1.3.1
161
+ version: '0'
256
162
  requirements: []
257
163
  rubyforge_project:
258
- rubygems_version: 2.0.14
164
+ rubygems_version: 2.4.5.1
259
165
  signing_key:
260
166
  specification_version: 4
261
- summary: Ruby client library for the Bigcommerce v2 API
262
- test_files:
263
- - spec/bigcommerce/bigcommerce_spec.rb
264
- - spec/bigcommerce/unit/actions_spec.rb
265
- - spec/bigcommerce/unit/exception_spec.rb
266
- - spec/bigcommerce/unit/middleware/auth_spec.rb
267
- - spec/bigcommerce/unit/middleware/http_exception_spec.rb
268
- - spec/bigcommerce/unit/request_spec.rb
269
- - spec/bigcommerce/unit/resources/content/blog_post_spec.rb
270
- - spec/bigcommerce/unit/resources/content/blog_tag_spec.rb
271
- - spec/bigcommerce/unit/resources/content/redirect_spec.rb
272
- - spec/bigcommerce/unit/resources/customers/customer_address_spec.rb
273
- - spec/bigcommerce/unit/resources/customers/customer_group_spec.rb
274
- - spec/bigcommerce/unit/resources/customers/customer_spec.rb
275
- - spec/bigcommerce/unit/resources/geography/country_spec.rb
276
- - spec/bigcommerce/unit/resources/geography/state_spec.rb
277
- - spec/bigcommerce/unit/resources/marketing/coupon_spec.rb
278
- - spec/bigcommerce/unit/resources/orders/order_product_spec.rb
279
- - spec/bigcommerce/unit/resources/orders/order_shipping_address_spec.rb
280
- - spec/bigcommerce/unit/resources/orders/order_spec.rb
281
- - spec/bigcommerce/unit/resources/orders/shipment_spec.rb
282
- - spec/bigcommerce/unit/resources/payments/payment_method_spec.rb
283
- - spec/bigcommerce/unit/resources/products/brand_spec.rb
284
- - spec/bigcommerce/unit/resources/products/bulk_pricing_rule_spec.rb
285
- - spec/bigcommerce/unit/resources/products/category_spec.rb
286
- - spec/bigcommerce/unit/resources/products/configurable_field_spec.rb
287
- - spec/bigcommerce/unit/resources/products/custom_field_spec.rb
288
- - spec/bigcommerce/unit/resources/products/google_product_search_mapping_spec.rb
289
- - spec/bigcommerce/unit/resources/products/option_set_spec.rb
290
- - spec/bigcommerce/unit/resources/products/option_spec.rb
291
- - spec/bigcommerce/unit/resources/products/product_image_spec.rb
292
- - spec/bigcommerce/unit/resources/products/product_review_spec.rb
293
- - spec/bigcommerce/unit/resources/products/product_rule_spec.rb
294
- - spec/bigcommerce/unit/resources/products/product_spec.rb
295
- - spec/bigcommerce/unit/resources/products/product_video_spec.rb
296
- - spec/bigcommerce/unit/resources/products/sku_spec.rb
297
- - spec/bigcommerce/unit/resources/resource_spec.rb
298
- - spec/bigcommerce/unit/resources/store_info/store_information_spec.rb
299
- - spec/bigcommerce/unit/resources/system/time_spec.rb
300
- - spec/bigcommerce/unit/version_spec.rb
301
- - spec/spec_helper.rb
167
+ summary: Ruby client library for the BigCommerce API
168
+ test_files: []