requestsproxy-rest 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +149 -0
  4. data/Rakefile +8 -0
  5. data/docs/ProtobufListValue.md +8 -0
  6. data/docs/ProtobufNullValue.md +7 -0
  7. data/docs/ProtobufStruct.md +8 -0
  8. data/docs/ProtobufValue.md +13 -0
  9. data/docs/RequestsproxyAccountStarRatingResponse.md +9 -0
  10. data/docs/RequestsproxyApi.md +1008 -0
  11. data/docs/RequestsproxyAuthInfoResponse.md +9 -0
  12. data/docs/RequestsproxyCategory.md +9 -0
  13. data/docs/RequestsproxyComment.md +11 -0
  14. data/docs/RequestsproxyCoupon.md +8 -0
  15. data/docs/RequestsproxyCreateDynamicCouponsCodesResponse.md +9 -0
  16. data/docs/RequestsproxyCreateWebhookParams.md +9 -0
  17. data/docs/RequestsproxyDynamicCouponError.md +9 -0
  18. data/docs/RequestsproxyDynamicCouponsResponse.md +8 -0
  19. data/docs/RequestsproxyDynamicCouponsStatisticsResponse.md +8 -0
  20. data/docs/RequestsproxyDynamicCouponsStats.md +9 -0
  21. data/docs/RequestsproxyFeature.md +12 -0
  22. data/docs/RequestsproxyFeaturesResponse.md +8 -0
  23. data/docs/RequestsproxyImageData.md +10 -0
  24. data/docs/RequestsproxyOrdersResponse.md +8 -0
  25. data/docs/RequestsproxyPagination.md +10 -0
  26. data/docs/RequestsproxyProductImage.md +11 -0
  27. data/docs/RequestsproxyProductResponse.md +19 -0
  28. data/docs/RequestsproxyProductSpecs.md +9 -0
  29. data/docs/RequestsproxyProductStarRatingResponse.md +10 -0
  30. data/docs/RequestsproxyProductsResponse.md +8 -0
  31. data/docs/RequestsproxyProductsStarRatingResponse.md +8 -0
  32. data/docs/RequestsproxyPromotedProduct.md +10 -0
  33. data/docs/RequestsproxyPromotedProductsResponse.md +8 -0
  34. data/docs/RequestsproxyPurchase.md +16 -0
  35. data/docs/RequestsproxyResponse.md +28 -0
  36. data/docs/RequestsproxyReview.md +24 -0
  37. data/docs/RequestsproxyReviewCustomField.md +11 -0
  38. data/docs/RequestsproxyReviewResponse.md +8 -0
  39. data/docs/RequestsproxyReviewsResponse.md +8 -0
  40. data/docs/RequestsproxyStatus.md +9 -0
  41. data/docs/RequestsproxyTopReview.md +13 -0
  42. data/docs/RequestsproxyTopReviewsResponse.md +8 -0
  43. data/docs/RequestsproxyUserResponse.md +11 -0
  44. data/docs/RequestsproxyWebhook.md +11 -0
  45. data/docs/RequestsproxyWebhookEvent.md +9 -0
  46. data/docs/RequestsproxyWebhookEventsResponse.md +8 -0
  47. data/docs/RequestsproxyWebhookResponse.md +8 -0
  48. data/docs/RequestsproxyWebhooksResponse.md +8 -0
  49. data/git_push.sh +55 -0
  50. data/lib/requestsproxy-rest.rb +83 -0
  51. data/lib/requestsproxy-rest/api/requestsproxy_api.rb +1161 -0
  52. data/lib/requestsproxy-rest/api_client.rb +388 -0
  53. data/lib/requestsproxy-rest/api_error.rb +38 -0
  54. data/lib/requestsproxy-rest/configuration.rb +202 -0
  55. data/lib/requestsproxy-rest/models/protobuf_list_value.rb +187 -0
  56. data/lib/requestsproxy-rest/models/protobuf_null_value.rb +29 -0
  57. data/lib/requestsproxy-rest/models/protobuf_struct.rb +187 -0
  58. data/lib/requestsproxy-rest/models/protobuf_value.rb +235 -0
  59. data/lib/requestsproxy-rest/models/requestsproxy_account_star_rating_response.rb +192 -0
  60. data/lib/requestsproxy-rest/models/requestsproxy_auth_info_response.rb +194 -0
  61. data/lib/requestsproxy-rest/models/requestsproxy_category.rb +192 -0
  62. data/lib/requestsproxy-rest/models/requestsproxy_comment.rb +210 -0
  63. data/lib/requestsproxy-rest/models/requestsproxy_coupon.rb +183 -0
  64. data/lib/requestsproxy-rest/models/requestsproxy_create_dynamic_coupons_codes_response.rb +194 -0
  65. data/lib/requestsproxy-rest/models/requestsproxy_create_webhook_params.rb +192 -0
  66. data/lib/requestsproxy-rest/models/requestsproxy_dynamic_coupon_error.rb +192 -0
  67. data/lib/requestsproxy-rest/models/requestsproxy_dynamic_coupons_response.rb +185 -0
  68. data/lib/requestsproxy-rest/models/requestsproxy_dynamic_coupons_statistics_response.rb +183 -0
  69. data/lib/requestsproxy-rest/models/requestsproxy_dynamic_coupons_stats.rb +192 -0
  70. data/lib/requestsproxy-rest/models/requestsproxy_feature.rb +219 -0
  71. data/lib/requestsproxy-rest/models/requestsproxy_features_response.rb +185 -0
  72. data/lib/requestsproxy-rest/models/requestsproxy_image_data.rb +201 -0
  73. data/lib/requestsproxy-rest/models/requestsproxy_orders_response.rb +185 -0
  74. data/lib/requestsproxy-rest/models/requestsproxy_pagination.rb +201 -0
  75. data/lib/requestsproxy-rest/models/requestsproxy_product_image.rb +210 -0
  76. data/lib/requestsproxy-rest/models/requestsproxy_product_response.rb +286 -0
  77. data/lib/requestsproxy-rest/models/requestsproxy_product_specs.rb +192 -0
  78. data/lib/requestsproxy-rest/models/requestsproxy_product_star_rating_response.rb +201 -0
  79. data/lib/requestsproxy-rest/models/requestsproxy_products_response.rb +185 -0
  80. data/lib/requestsproxy-rest/models/requestsproxy_products_star_rating_response.rb +185 -0
  81. data/lib/requestsproxy-rest/models/requestsproxy_promoted_product.rb +201 -0
  82. data/lib/requestsproxy-rest/models/requestsproxy_promoted_products_response.rb +185 -0
  83. data/lib/requestsproxy-rest/models/requestsproxy_purchase.rb +255 -0
  84. data/lib/requestsproxy-rest/models/requestsproxy_response.rb +363 -0
  85. data/lib/requestsproxy-rest/models/requestsproxy_review.rb +331 -0
  86. data/lib/requestsproxy-rest/models/requestsproxy_review_custom_field.rb +210 -0
  87. data/lib/requestsproxy-rest/models/requestsproxy_review_response.rb +183 -0
  88. data/lib/requestsproxy-rest/models/requestsproxy_reviews_response.rb +185 -0
  89. data/lib/requestsproxy-rest/models/requestsproxy_status.rb +192 -0
  90. data/lib/requestsproxy-rest/models/requestsproxy_top_review.rb +228 -0
  91. data/lib/requestsproxy-rest/models/requestsproxy_top_reviews_response.rb +185 -0
  92. data/lib/requestsproxy-rest/models/requestsproxy_user_response.rb +210 -0
  93. data/lib/requestsproxy-rest/models/requestsproxy_webhook.rb +210 -0
  94. data/lib/requestsproxy-rest/models/requestsproxy_webhook_event.rb +192 -0
  95. data/lib/requestsproxy-rest/models/requestsproxy_webhook_events_response.rb +185 -0
  96. data/lib/requestsproxy-rest/models/requestsproxy_webhook_response.rb +183 -0
  97. data/lib/requestsproxy-rest/models/requestsproxy_webhooks_response.rb +185 -0
  98. data/lib/requestsproxy-rest/version.rb +15 -0
  99. data/requestsproxy-rest.gemspec +45 -0
  100. data/spec/api/requestsproxy_api_spec.rb +271 -0
  101. data/spec/api_client_spec.rb +226 -0
  102. data/spec/configuration_spec.rb +42 -0
  103. data/spec/models/protobuf_list_value_spec.rb +41 -0
  104. data/spec/models/protobuf_null_value_spec.rb +35 -0
  105. data/spec/models/protobuf_struct_spec.rb +41 -0
  106. data/spec/models/protobuf_value_spec.rb +71 -0
  107. data/spec/models/requestsproxy_account_star_rating_response_spec.rb +47 -0
  108. data/spec/models/requestsproxy_auth_info_response_spec.rb +47 -0
  109. data/spec/models/requestsproxy_category_spec.rb +47 -0
  110. data/spec/models/requestsproxy_comment_spec.rb +59 -0
  111. data/spec/models/requestsproxy_coupon_spec.rb +41 -0
  112. data/spec/models/requestsproxy_create_dynamic_coupons_codes_response_spec.rb +47 -0
  113. data/spec/models/requestsproxy_create_webhook_params_spec.rb +47 -0
  114. data/spec/models/requestsproxy_dynamic_coupon_error_spec.rb +47 -0
  115. data/spec/models/requestsproxy_dynamic_coupons_response_spec.rb +41 -0
  116. data/spec/models/requestsproxy_dynamic_coupons_statistics_response_spec.rb +41 -0
  117. data/spec/models/requestsproxy_dynamic_coupons_stats_spec.rb +47 -0
  118. data/spec/models/requestsproxy_feature_spec.rb +65 -0
  119. data/spec/models/requestsproxy_features_response_spec.rb +41 -0
  120. data/spec/models/requestsproxy_image_data_spec.rb +53 -0
  121. data/spec/models/requestsproxy_orders_response_spec.rb +41 -0
  122. data/spec/models/requestsproxy_pagination_spec.rb +53 -0
  123. data/spec/models/requestsproxy_product_image_spec.rb +59 -0
  124. data/spec/models/requestsproxy_product_response_spec.rb +107 -0
  125. data/spec/models/requestsproxy_product_specs_spec.rb +47 -0
  126. data/spec/models/requestsproxy_product_star_rating_response_spec.rb +53 -0
  127. data/spec/models/requestsproxy_products_response_spec.rb +41 -0
  128. data/spec/models/requestsproxy_products_star_rating_response_spec.rb +41 -0
  129. data/spec/models/requestsproxy_promoted_product_spec.rb +53 -0
  130. data/spec/models/requestsproxy_promoted_products_response_spec.rb +41 -0
  131. data/spec/models/requestsproxy_purchase_spec.rb +89 -0
  132. data/spec/models/requestsproxy_response_spec.rb +161 -0
  133. data/spec/models/requestsproxy_review_custom_field_spec.rb +59 -0
  134. data/spec/models/requestsproxy_review_response_spec.rb +41 -0
  135. data/spec/models/requestsproxy_review_spec.rb +137 -0
  136. data/spec/models/requestsproxy_reviews_response_spec.rb +41 -0
  137. data/spec/models/requestsproxy_status_spec.rb +47 -0
  138. data/spec/models/requestsproxy_top_review_spec.rb +71 -0
  139. data/spec/models/requestsproxy_top_reviews_response_spec.rb +41 -0
  140. data/spec/models/requestsproxy_user_response_spec.rb +59 -0
  141. data/spec/models/requestsproxy_webhook_event_spec.rb +47 -0
  142. data/spec/models/requestsproxy_webhook_events_response_spec.rb +41 -0
  143. data/spec/models/requestsproxy_webhook_response_spec.rb +41 -0
  144. data/spec/models/requestsproxy_webhook_spec.rb +59 -0
  145. data/spec/models/requestsproxy_webhooks_response_spec.rb +41 -0
  146. data/spec/spec_helper.rb +111 -0
  147. metadata +416 -0
@@ -0,0 +1,183 @@
1
+ =begin
2
+ #requestsproxy.proto
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: version not set
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Requestsproxy
16
+ class RequestsproxyWebhookResponse
17
+ attr_accessor :webhook
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'webhook' => :'webhook'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.swagger_types
28
+ {
29
+ :'webhook' => :'RequestsproxyWebhook'
30
+ }
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ return unless attributes.is_a?(Hash)
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+
41
+ if attributes.has_key?(:'webhook')
42
+ self.webhook = attributes[:'webhook']
43
+ end
44
+ end
45
+
46
+ # Show invalid properties with the reasons. Usually used together with valid?
47
+ # @return Array for valid properties with the reasons
48
+ def list_invalid_properties
49
+ invalid_properties = Array.new
50
+ invalid_properties
51
+ end
52
+
53
+ # Check to see if the all the properties in the model are valid
54
+ # @return true if the model is valid
55
+ def valid?
56
+ true
57
+ end
58
+
59
+ # Checks equality by comparing each attribute.
60
+ # @param [Object] Object to be compared
61
+ def ==(o)
62
+ return true if self.equal?(o)
63
+ self.class == o.class &&
64
+ webhook == o.webhook
65
+ end
66
+
67
+ # @see the `==` method
68
+ # @param [Object] Object to be compared
69
+ def eql?(o)
70
+ self == o
71
+ end
72
+
73
+ # Calculates hash code according to all attributes.
74
+ # @return [Fixnum] Hash code
75
+ def hash
76
+ [webhook].hash
77
+ end
78
+
79
+ # Builds the object from hash
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ # @return [Object] Returns the model itself
82
+ def build_from_hash(attributes)
83
+ return nil unless attributes.is_a?(Hash)
84
+ self.class.swagger_types.each_pair do |key, type|
85
+ if type =~ /\AArray<(.*)>/i
86
+ # check to ensure the input is an array given that the the attribute
87
+ # is documented as an array but the input is not
88
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
89
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
90
+ end
91
+ elsif !attributes[self.class.attribute_map[key]].nil?
92
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
93
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
94
+ end
95
+
96
+ self
97
+ end
98
+
99
+ # Deserializes the data based on type
100
+ # @param string type Data type
101
+ # @param string value Value to be deserialized
102
+ # @return [Object] Deserialized data
103
+ def _deserialize(type, value)
104
+ case type.to_sym
105
+ when :DateTime
106
+ DateTime.parse(value)
107
+ when :Date
108
+ Date.parse(value)
109
+ when :String
110
+ value.to_s
111
+ when :Integer
112
+ value.to_i
113
+ when :Float
114
+ value.to_f
115
+ when :BOOLEAN
116
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
117
+ true
118
+ else
119
+ false
120
+ end
121
+ when :Object
122
+ # generic object (usually a Hash), return directly
123
+ value
124
+ when /\AArray<(?<inner_type>.+)>\z/
125
+ inner_type = Regexp.last_match[:inner_type]
126
+ value.map { |v| _deserialize(inner_type, v) }
127
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
128
+ k_type = Regexp.last_match[:k_type]
129
+ v_type = Regexp.last_match[:v_type]
130
+ {}.tap do |hash|
131
+ value.each do |k, v|
132
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
133
+ end
134
+ end
135
+ else # model
136
+ temp_model = Requestsproxy.const_get(type).new
137
+ temp_model.build_from_hash(value)
138
+ end
139
+ end
140
+
141
+ # Returns the string representation of the object
142
+ # @return [String] String presentation of the object
143
+ def to_s
144
+ to_hash.to_s
145
+ end
146
+
147
+ # to_body is an alias to to_hash (backward compatibility)
148
+ # @return [Hash] Returns the object in the form of hash
149
+ def to_body
150
+ to_hash
151
+ end
152
+
153
+ # Returns the object in the form of hash
154
+ # @return [Hash] Returns the object in the form of hash
155
+ def to_hash
156
+ hash = {}
157
+ self.class.attribute_map.each_pair do |attr, param|
158
+ value = self.send(attr)
159
+ next if value.nil?
160
+ hash[param] = _to_hash(value)
161
+ end
162
+ hash
163
+ end
164
+
165
+ # Outputs non-array value in the form of hash
166
+ # For object, use to_hash. Otherwise, just return the value
167
+ # @param [Object] value Any valid value
168
+ # @return [Hash] Returns the value in the form of hash
169
+ def _to_hash(value)
170
+ if value.is_a?(Array)
171
+ value.compact.map { |v| _to_hash(v) }
172
+ elsif value.is_a?(Hash)
173
+ {}.tap do |hash|
174
+ value.each { |k, v| hash[k] = _to_hash(v) }
175
+ end
176
+ elsif value.respond_to? :to_hash
177
+ value.to_hash
178
+ else
179
+ value
180
+ end
181
+ end
182
+ end
183
+ end
@@ -0,0 +1,185 @@
1
+ =begin
2
+ #requestsproxy.proto
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: version not set
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Requestsproxy
16
+ class RequestsproxyWebhooksResponse
17
+ attr_accessor :webhooks
18
+
19
+ # Attribute mapping from ruby-style variable name to JSON key.
20
+ def self.attribute_map
21
+ {
22
+ :'webhooks' => :'webhooks'
23
+ }
24
+ end
25
+
26
+ # Attribute type mapping.
27
+ def self.swagger_types
28
+ {
29
+ :'webhooks' => :'Array<RequestsproxyWebhook>'
30
+ }
31
+ end
32
+
33
+ # Initializes the object
34
+ # @param [Hash] attributes Model attributes in the form of hash
35
+ def initialize(attributes = {})
36
+ return unless attributes.is_a?(Hash)
37
+
38
+ # convert string to symbol for hash key
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
40
+
41
+ if attributes.has_key?(:'webhooks')
42
+ if (value = attributes[:'webhooks']).is_a?(Array)
43
+ self.webhooks = value
44
+ end
45
+ end
46
+ end
47
+
48
+ # Show invalid properties with the reasons. Usually used together with valid?
49
+ # @return Array for valid properties with the reasons
50
+ def list_invalid_properties
51
+ invalid_properties = Array.new
52
+ invalid_properties
53
+ end
54
+
55
+ # Check to see if the all the properties in the model are valid
56
+ # @return true if the model is valid
57
+ def valid?
58
+ true
59
+ end
60
+
61
+ # Checks equality by comparing each attribute.
62
+ # @param [Object] Object to be compared
63
+ def ==(o)
64
+ return true if self.equal?(o)
65
+ self.class == o.class &&
66
+ webhooks == o.webhooks
67
+ end
68
+
69
+ # @see the `==` method
70
+ # @param [Object] Object to be compared
71
+ def eql?(o)
72
+ self == o
73
+ end
74
+
75
+ # Calculates hash code according to all attributes.
76
+ # @return [Fixnum] Hash code
77
+ def hash
78
+ [webhooks].hash
79
+ end
80
+
81
+ # Builds the object from hash
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ # @return [Object] Returns the model itself
84
+ def build_from_hash(attributes)
85
+ return nil unless attributes.is_a?(Hash)
86
+ self.class.swagger_types.each_pair do |key, type|
87
+ if type =~ /\AArray<(.*)>/i
88
+ # check to ensure the input is an array given that the the attribute
89
+ # is documented as an array but the input is not
90
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
92
+ end
93
+ elsif !attributes[self.class.attribute_map[key]].nil?
94
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
95
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
96
+ end
97
+
98
+ self
99
+ end
100
+
101
+ # Deserializes the data based on type
102
+ # @param string type Data type
103
+ # @param string value Value to be deserialized
104
+ # @return [Object] Deserialized data
105
+ def _deserialize(type, value)
106
+ case type.to_sym
107
+ when :DateTime
108
+ DateTime.parse(value)
109
+ when :Date
110
+ Date.parse(value)
111
+ when :String
112
+ value.to_s
113
+ when :Integer
114
+ value.to_i
115
+ when :Float
116
+ value.to_f
117
+ when :BOOLEAN
118
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
119
+ true
120
+ else
121
+ false
122
+ end
123
+ when :Object
124
+ # generic object (usually a Hash), return directly
125
+ value
126
+ when /\AArray<(?<inner_type>.+)>\z/
127
+ inner_type = Regexp.last_match[:inner_type]
128
+ value.map { |v| _deserialize(inner_type, v) }
129
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
130
+ k_type = Regexp.last_match[:k_type]
131
+ v_type = Regexp.last_match[:v_type]
132
+ {}.tap do |hash|
133
+ value.each do |k, v|
134
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
135
+ end
136
+ end
137
+ else # model
138
+ temp_model = Requestsproxy.const_get(type).new
139
+ temp_model.build_from_hash(value)
140
+ end
141
+ end
142
+
143
+ # Returns the string representation of the object
144
+ # @return [String] String presentation of the object
145
+ def to_s
146
+ to_hash.to_s
147
+ end
148
+
149
+ # to_body is an alias to to_hash (backward compatibility)
150
+ # @return [Hash] Returns the object in the form of hash
151
+ def to_body
152
+ to_hash
153
+ end
154
+
155
+ # Returns the object in the form of hash
156
+ # @return [Hash] Returns the object in the form of hash
157
+ def to_hash
158
+ hash = {}
159
+ self.class.attribute_map.each_pair do |attr, param|
160
+ value = self.send(attr)
161
+ next if value.nil?
162
+ hash[param] = _to_hash(value)
163
+ end
164
+ hash
165
+ end
166
+
167
+ # Outputs non-array value in the form of hash
168
+ # For object, use to_hash. Otherwise, just return the value
169
+ # @param [Object] value Any valid value
170
+ # @return [Hash] Returns the value in the form of hash
171
+ def _to_hash(value)
172
+ if value.is_a?(Array)
173
+ value.compact.map { |v| _to_hash(v) }
174
+ elsif value.is_a?(Hash)
175
+ {}.tap do |hash|
176
+ value.each { |k, v| hash[k] = _to_hash(v) }
177
+ end
178
+ elsif value.respond_to? :to_hash
179
+ value.to_hash
180
+ else
181
+ value
182
+ end
183
+ end
184
+ end
185
+ end
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #requestsproxy.proto
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: version not set
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ module Requestsproxy
14
+ VERSION = '0.0.1'
15
+ end
@@ -0,0 +1,45 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #requestsproxy.proto
5
+
6
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ Swagger Codegen version: 2.4.0-SNAPSHOT
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "requestsproxy-rest/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "requestsproxy-rest"
20
+ s.version = Requestsproxy::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["Vladislav Shub"]
23
+ s.email = ["vlad@yotpo.com"]
24
+ s.homepage = "https://github.com/swagger-api/swagger-codegen"
25
+ s.summary = "requestsproxy.proto Ruby Gem"
26
+ s.description = "No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)"
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
+
41
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
42
+ s.test_files = `find spec/*`.split("\n")
43
+ s.executables = []
44
+ s.require_paths = ["lib"]
45
+ end
@@ -0,0 +1,271 @@
1
+ =begin
2
+ #requestsproxy.proto
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: version not set
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for Requestsproxy::RequestsproxyApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'RequestsproxyApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = Requestsproxy::RequestsproxyApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RequestsproxyApi' do
30
+ it 'should create an instance of RequestsproxyApi' do
31
+ expect(@instance).to be_instance_of(Requestsproxy::RequestsproxyApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for account_star_rating
36
+ # @param account_id
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [RequestsproxyResponse]
39
+ describe 'account_star_rating test' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+
45
+ # unit tests for auth_info
46
+ # @param account_id
47
+ # @param [Hash] opts the optional parameters
48
+ # @return [RequestsproxyResponse]
49
+ describe 'auth_info test' do
50
+ it 'should work' do
51
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
+ end
53
+ end
54
+
55
+ # unit tests for create_webhook
56
+ # @param account_id
57
+ # @param body
58
+ # @param [Hash] opts the optional parameters
59
+ # @return [RequestsproxyResponse]
60
+ describe 'create_webhook test' do
61
+ it 'should work' do
62
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
63
+ end
64
+ end
65
+
66
+ # unit tests for delete_webhook
67
+ # @param account_id
68
+ # @param id
69
+ # @param [Hash] opts the optional parameters
70
+ # @option opts [String] :access_token
71
+ # @return [RequestsproxyResponse]
72
+ describe 'delete_webhook test' do
73
+ it 'should work' do
74
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
75
+ end
76
+ end
77
+
78
+ # unit tests for features
79
+ # @param account_id
80
+ # @param [Hash] opts the optional parameters
81
+ # @return [RequestsproxyResponse]
82
+ describe 'features test' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
88
+ # unit tests for orders
89
+ # @param account_id
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [String] :first_id
92
+ # @option opts [String] :count
93
+ # @option opts [String] :page
94
+ # @return [RequestsproxyResponse]
95
+ describe 'orders test' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ # unit tests for product
102
+ # @param account_id
103
+ # @param external_product_id
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [RequestsproxyResponse]
106
+ describe 'product test' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
+ end
110
+ end
111
+
112
+ # unit tests for product_star_rating
113
+ # @param account_id
114
+ # @param external_product_id
115
+ # @param [Hash] opts the optional parameters
116
+ # @return [RequestsproxyResponse]
117
+ describe 'product_star_rating test' do
118
+ it 'should work' do
119
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
120
+ end
121
+ end
122
+
123
+ # unit tests for products
124
+ # @param account_id
125
+ # @param [Hash] opts the optional parameters
126
+ # @option opts [String] :page
127
+ # @option opts [String] :count
128
+ # @return [RequestsproxyResponse]
129
+ describe 'products test' do
130
+ it 'should work' do
131
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
132
+ end
133
+ end
134
+
135
+ # unit tests for products_star_rating
136
+ # @param account_id
137
+ # @param [Hash] opts the optional parameters
138
+ # @return [RequestsproxyResponse]
139
+ describe 'products_star_rating test' do
140
+ it 'should work' do
141
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
142
+ end
143
+ end
144
+
145
+ # unit tests for promoted_products
146
+ # @param account_id
147
+ # @param [Hash] opts the optional parameters
148
+ # @return [RequestsproxyResponse]
149
+ describe 'promoted_products test' do
150
+ it 'should work' do
151
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
152
+ end
153
+ end
154
+
155
+ # unit tests for review
156
+ # @param account_id
157
+ # @param review_id
158
+ # @param [Hash] opts the optional parameters
159
+ # @option opts [BOOLEAN] :include_nested
160
+ # @return [RequestsproxyResponse]
161
+ describe 'review test' do
162
+ it 'should work' do
163
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
164
+ end
165
+ end
166
+
167
+ # unit tests for reviews
168
+ # @param account_id
169
+ # @param [Hash] opts the optional parameters
170
+ # @option opts [String] :first_id
171
+ # @option opts [String] :count
172
+ # @option opts [String] :page
173
+ # @option opts [String] :include_site_reviews
174
+ # @option opts [String] :sort
175
+ # @option opts [String] :direction
176
+ # @option opts [String] :star
177
+ # @option opts [BOOLEAN] :include_nested
178
+ # @return [RequestsproxyResponse]
179
+ describe 'reviews test' do
180
+ it 'should work' do
181
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
182
+ end
183
+ end
184
+
185
+ # unit tests for reviews_by_product
186
+ # @param account_id
187
+ # @param external_product_id
188
+ # @param [Hash] opts the optional parameters
189
+ # @option opts [String] :first_id
190
+ # @option opts [String] :count
191
+ # @option opts [String] :page
192
+ # @option opts [String] :include_site_reviews
193
+ # @option opts [String] :sort
194
+ # @option opts [String] :direction
195
+ # @option opts [String] :star
196
+ # @option opts [BOOLEAN] :include_nested
197
+ # @return [RequestsproxyResponse]
198
+ describe 'reviews_by_product test' do
199
+ it 'should work' do
200
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
201
+ end
202
+ end
203
+
204
+ # unit tests for top_reviews
205
+ # @param account_id
206
+ # @param [Hash] opts the optional parameters
207
+ # @option opts [String] :external_product_id
208
+ # @return [RequestsproxyResponse]
209
+ describe 'top_reviews test' do
210
+ it 'should work' do
211
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
212
+ end
213
+ end
214
+
215
+ # unit tests for update_webhook
216
+ # @param account_id
217
+ # @param id
218
+ # @param body
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [RequestsproxyResponse]
221
+ describe 'update_webhook test' do
222
+ it 'should work' do
223
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
224
+ end
225
+ end
226
+
227
+ # unit tests for user
228
+ # @param account_id
229
+ # @param user_id
230
+ # @param [Hash] opts the optional parameters
231
+ # @return [RequestsproxyResponse]
232
+ describe 'user test' do
233
+ it 'should work' do
234
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
235
+ end
236
+ end
237
+
238
+ # unit tests for webhook
239
+ # @param account_id
240
+ # @param id
241
+ # @param [Hash] opts the optional parameters
242
+ # @option opts [String] :access_token
243
+ # @return [RequestsproxyResponse]
244
+ describe 'webhook test' do
245
+ it 'should work' do
246
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
247
+ end
248
+ end
249
+
250
+ # unit tests for webhook_events
251
+ # @param account_id
252
+ # @param [Hash] opts the optional parameters
253
+ # @return [RequestsproxyResponse]
254
+ describe 'webhook_events test' do
255
+ it 'should work' do
256
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
257
+ end
258
+ end
259
+
260
+ # unit tests for webhooks
261
+ # @param account_id
262
+ # @param [Hash] opts the optional parameters
263
+ # @option opts [String] :access_token
264
+ # @return [RequestsproxyResponse]
265
+ describe 'webhooks test' do
266
+ it 'should work' do
267
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
268
+ end
269
+ end
270
+
271
+ end