ifeelgoods 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 (240) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +81 -0
  4. data/README.md +167 -0
  5. data/Rakefile +10 -0
  6. data/docs/Account.md +34 -0
  7. data/docs/AccountsApi.md +84 -0
  8. data/docs/ActivateRedemptionRequest.md +18 -0
  9. data/docs/ActivateRedemptionRequestData.md +18 -0
  10. data/docs/Address.md +32 -0
  11. data/docs/BrandSummary.md +24 -0
  12. data/docs/BudgetLineItem.md +30 -0
  13. data/docs/CardConsultRedemption200Response.md +18 -0
  14. data/docs/CardConsultRedemption200ResponseData.md +20 -0
  15. data/docs/CardConsultRedemption422Response.md +20 -0
  16. data/docs/ClientDetails.md +40 -0
  17. data/docs/ClientSummary.md +40 -0
  18. data/docs/ClientSummaryBudgetAlerts.md +20 -0
  19. data/docs/ClientsApi.md +341 -0
  20. data/docs/CreateAndRedeemRequest.md +18 -0
  21. data/docs/CreateAndRedeemRequestData.md +24 -0
  22. data/docs/CreateRedemption201Response.md +18 -0
  23. data/docs/CreateRedemption422Response.md +20 -0
  24. data/docs/CreateRedemptionRequest.md +18 -0
  25. data/docs/CreateRedemptionRequestData.md +26 -0
  26. data/docs/CreateRedemptionRequestDataCustomization.md +18 -0
  27. data/docs/CreateRedemptionRequestDataCustomizationPdf.md +20 -0
  28. data/docs/CreateRedemptionRequestDataReward.md +18 -0
  29. data/docs/CreateRedemptionRequestDataValue.md +18 -0
  30. data/docs/Dimension.md +44 -0
  31. data/docs/DimensionDenomination.md +49 -0
  32. data/docs/DiscountSummary.md +28 -0
  33. data/docs/ErrorResponse.md +20 -0
  34. data/docs/GetClientBudgetHistory200Response.md +20 -0
  35. data/docs/GetClientById200Response.md +18 -0
  36. data/docs/GetCurrentAccount200Response.md +18 -0
  37. data/docs/GetPromotionByID200Response.md +18 -0
  38. data/docs/GetPromotionByID401Response.md +20 -0
  39. data/docs/GetPromotionByID404Response.md +20 -0
  40. data/docs/GetRedemptionStats200Response.md +20 -0
  41. data/docs/GetRewardBySKU200Response.md +18 -0
  42. data/docs/ListClientDiscounts200Response.md +20 -0
  43. data/docs/ListClientPromotions200Response.md +20 -0
  44. data/docs/ListClientPromotions200ResponsePaging.md +22 -0
  45. data/docs/ListClientPromotions401Response.md +20 -0
  46. data/docs/ListClientVendorPlaces200Response.md +20 -0
  47. data/docs/ListClients200Response.md +20 -0
  48. data/docs/ListRedemptions200Response.md +20 -0
  49. data/docs/ListRewards200Response.md +20 -0
  50. data/docs/ProductSummary.md +26 -0
  51. data/docs/ProductType.md +20 -0
  52. data/docs/PromotionDetails.md +46 -0
  53. data/docs/PromotionDetailsClient.md +20 -0
  54. data/docs/PromotionDetailsRewardsInner.md +28 -0
  55. data/docs/PromotionsApi.md +173 -0
  56. data/docs/Redemption.md +58 -0
  57. data/docs/RedemptionPromotion.md +24 -0
  58. data/docs/RedemptionReward.md +24 -0
  59. data/docs/RedemptionRewardFormat.md +20 -0
  60. data/docs/RedemptionValue.md +20 -0
  61. data/docs/RedemptionsApi.md +857 -0
  62. data/docs/RewardDetails.md +76 -0
  63. data/docs/RewardDetailsBrand.md +24 -0
  64. data/docs/RewardDetailsDimensions.md +44 -0
  65. data/docs/RewardDetailsProduct.md +26 -0
  66. data/docs/RewardDetailsProductType.md +20 -0
  67. data/docs/RewardDetailsTargeting.md +22 -0
  68. data/docs/RewardFormat.md +20 -0
  69. data/docs/RewardsApi.md +175 -0
  70. data/docs/Stats.md +20 -0
  71. data/docs/StatsApi.md +101 -0
  72. data/docs/StatsTimeframe.md +20 -0
  73. data/docs/StatsValuesInner.md +24 -0
  74. data/docs/StatsValuesInnerGroupByInner.md +26 -0
  75. data/docs/StatsValuesInnerStates.md +34 -0
  76. data/docs/User.md +26 -0
  77. data/docs/VendorPlace.md +26 -0
  78. data/docs/VendorPlaceBrand.md +20 -0
  79. data/docs/VendorPlaceGeoloc.md +20 -0
  80. data/docs/VendorPlacesApi.md +97 -0
  81. data/git_push.sh +57 -0
  82. data/ifeelgoods.gemspec +39 -0
  83. data/lib/ifeelgoods/api/accounts_api.rb +79 -0
  84. data/lib/ifeelgoods/api/clients_api.rb +318 -0
  85. data/lib/ifeelgoods/api/promotions_api.rb +166 -0
  86. data/lib/ifeelgoods/api/redemptions_api.rb +762 -0
  87. data/lib/ifeelgoods/api/rewards_api.rb +166 -0
  88. data/lib/ifeelgoods/api/stats_api.rb +111 -0
  89. data/lib/ifeelgoods/api/vendor_places_api.rb +109 -0
  90. data/lib/ifeelgoods/api_client.rb +397 -0
  91. data/lib/ifeelgoods/api_error.rb +58 -0
  92. data/lib/ifeelgoods/api_model_base.rb +88 -0
  93. data/lib/ifeelgoods/configuration.rb +332 -0
  94. data/lib/ifeelgoods/models/account.rb +260 -0
  95. data/lib/ifeelgoods/models/activate_redemption_request.rb +164 -0
  96. data/lib/ifeelgoods/models/activate_redemption_request_data.rb +147 -0
  97. data/lib/ifeelgoods/models/address.rb +219 -0
  98. data/lib/ifeelgoods/models/brand_summary.rb +212 -0
  99. data/lib/ifeelgoods/models/budget_line_item.rb +249 -0
  100. data/lib/ifeelgoods/models/card_consult_redemption200_response.rb +147 -0
  101. data/lib/ifeelgoods/models/card_consult_redemption200_response_data.rb +158 -0
  102. data/lib/ifeelgoods/models/card_consult_redemption422_response.rb +157 -0
  103. data/lib/ifeelgoods/models/client_details.rb +287 -0
  104. data/lib/ifeelgoods/models/client_summary.rb +287 -0
  105. data/lib/ifeelgoods/models/client_summary_budget_alerts.rb +159 -0
  106. data/lib/ifeelgoods/models/create_and_redeem_request.rb +164 -0
  107. data/lib/ifeelgoods/models/create_and_redeem_request_data.rb +174 -0
  108. data/lib/ifeelgoods/models/create_redemption201_response.rb +147 -0
  109. data/lib/ifeelgoods/models/create_redemption422_response.rb +157 -0
  110. data/lib/ifeelgoods/models/create_redemption_request.rb +164 -0
  111. data/lib/ifeelgoods/models/create_redemption_request_data.rb +235 -0
  112. data/lib/ifeelgoods/models/create_redemption_request_data_customization.rb +147 -0
  113. data/lib/ifeelgoods/models/create_redemption_request_data_customization_pdf.rb +157 -0
  114. data/lib/ifeelgoods/models/create_redemption_request_data_reward.rb +147 -0
  115. data/lib/ifeelgoods/models/create_redemption_request_data_value.rb +148 -0
  116. data/lib/ifeelgoods/models/dimension.rb +293 -0
  117. data/lib/ifeelgoods/models/dimension_denomination.rb +105 -0
  118. data/lib/ifeelgoods/models/discount_summary.rb +195 -0
  119. data/lib/ifeelgoods/models/error_response.rb +157 -0
  120. data/lib/ifeelgoods/models/get_client_budget_history200_response.rb +158 -0
  121. data/lib/ifeelgoods/models/get_client_by_id200_response.rb +147 -0
  122. data/lib/ifeelgoods/models/get_current_account200_response.rb +147 -0
  123. data/lib/ifeelgoods/models/get_promotion_by_id200_response.rb +147 -0
  124. data/lib/ifeelgoods/models/get_promotion_by_id401_response.rb +157 -0
  125. data/lib/ifeelgoods/models/get_promotion_by_id404_response.rb +157 -0
  126. data/lib/ifeelgoods/models/get_redemption_stats200_response.rb +158 -0
  127. data/lib/ifeelgoods/models/get_reward_by_sku200_response.rb +147 -0
  128. data/lib/ifeelgoods/models/list_client_discounts200_response.rb +158 -0
  129. data/lib/ifeelgoods/models/list_client_promotions200_response.rb +158 -0
  130. data/lib/ifeelgoods/models/list_client_promotions200_response_paging.rb +165 -0
  131. data/lib/ifeelgoods/models/list_client_promotions401_response.rb +157 -0
  132. data/lib/ifeelgoods/models/list_client_vendor_places200_response.rb +158 -0
  133. data/lib/ifeelgoods/models/list_clients200_response.rb +158 -0
  134. data/lib/ifeelgoods/models/list_redemptions200_response.rb +158 -0
  135. data/lib/ifeelgoods/models/list_rewards200_response.rb +158 -0
  136. data/lib/ifeelgoods/models/product_summary.rb +222 -0
  137. data/lib/ifeelgoods/models/product_type.rb +204 -0
  138. data/lib/ifeelgoods/models/promotion_details.rb +354 -0
  139. data/lib/ifeelgoods/models/promotion_details_client.rb +157 -0
  140. data/lib/ifeelgoods/models/promotion_details_rewards_inner.rb +245 -0
  141. data/lib/ifeelgoods/models/redemption.rb +383 -0
  142. data/lib/ifeelgoods/models/redemption_promotion.rb +211 -0
  143. data/lib/ifeelgoods/models/redemption_reward.rb +224 -0
  144. data/lib/ifeelgoods/models/redemption_reward_format.rb +193 -0
  145. data/lib/ifeelgoods/models/redemption_value.rb +157 -0
  146. data/lib/ifeelgoods/models/reward_details.rb +486 -0
  147. data/lib/ifeelgoods/models/reward_details_brand.rb +213 -0
  148. data/lib/ifeelgoods/models/reward_details_dimensions.rb +293 -0
  149. data/lib/ifeelgoods/models/reward_details_product.rb +222 -0
  150. data/lib/ifeelgoods/models/reward_details_product_type.rb +204 -0
  151. data/lib/ifeelgoods/models/reward_details_targeting.rb +170 -0
  152. data/lib/ifeelgoods/models/reward_format.rb +192 -0
  153. data/lib/ifeelgoods/models/stats.rb +158 -0
  154. data/lib/ifeelgoods/models/stats_timeframe.rb +156 -0
  155. data/lib/ifeelgoods/models/stats_values_inner.rb +178 -0
  156. data/lib/ifeelgoods/models/stats_values_inner_group_by_inner.rb +186 -0
  157. data/lib/ifeelgoods/models/stats_values_inner_states.rb +219 -0
  158. data/lib/ifeelgoods/models/user.rb +188 -0
  159. data/lib/ifeelgoods/models/vendor_place.rb +186 -0
  160. data/lib/ifeelgoods/models/vendor_place_brand.rb +158 -0
  161. data/lib/ifeelgoods/models/vendor_place_geoloc.rb +156 -0
  162. data/lib/ifeelgoods/version.rb +15 -0
  163. data/lib/ifeelgoods.rb +115 -0
  164. data/spec/api/accounts_api_spec.rb +46 -0
  165. data/spec/api/clients_api_spec.rb +88 -0
  166. data/spec/api/promotions_api_spec.rb +61 -0
  167. data/spec/api/redemptions_api_spec.rb +175 -0
  168. data/spec/api/rewards_api_spec.rb +62 -0
  169. data/spec/api/stats_api_spec.rb +53 -0
  170. data/spec/api/vendor_places_api_spec.rb +51 -0
  171. data/spec/models/account_spec.rb +88 -0
  172. data/spec/models/activate_redemption_request_data_spec.rb +36 -0
  173. data/spec/models/activate_redemption_request_spec.rb +36 -0
  174. data/spec/models/address_spec.rb +78 -0
  175. data/spec/models/brand_summary_spec.rb +58 -0
  176. data/spec/models/budget_line_item_spec.rb +80 -0
  177. data/spec/models/card_consult_redemption200_response_data_spec.rb +42 -0
  178. data/spec/models/card_consult_redemption200_response_spec.rb +36 -0
  179. data/spec/models/card_consult_redemption422_response_spec.rb +42 -0
  180. data/spec/models/client_details_spec.rb +106 -0
  181. data/spec/models/client_summary_budget_alerts_spec.rb +42 -0
  182. data/spec/models/client_summary_spec.rb +106 -0
  183. data/spec/models/create_and_redeem_request_data_spec.rb +54 -0
  184. data/spec/models/create_and_redeem_request_spec.rb +36 -0
  185. data/spec/models/create_redemption201_response_spec.rb +36 -0
  186. data/spec/models/create_redemption422_response_spec.rb +42 -0
  187. data/spec/models/create_redemption_request_data_customization_pdf_spec.rb +42 -0
  188. data/spec/models/create_redemption_request_data_customization_spec.rb +36 -0
  189. data/spec/models/create_redemption_request_data_reward_spec.rb +36 -0
  190. data/spec/models/create_redemption_request_data_spec.rb +60 -0
  191. data/spec/models/create_redemption_request_data_value_spec.rb +36 -0
  192. data/spec/models/create_redemption_request_spec.rb +36 -0
  193. data/spec/models/dimension_denomination_spec.rb +32 -0
  194. data/spec/models/dimension_spec.rb +114 -0
  195. data/spec/models/discount_summary_spec.rb +66 -0
  196. data/spec/models/error_response_spec.rb +42 -0
  197. data/spec/models/get_client_budget_history200_response_spec.rb +42 -0
  198. data/spec/models/get_client_by_id200_response_spec.rb +36 -0
  199. data/spec/models/get_current_account200_response_spec.rb +36 -0
  200. data/spec/models/get_promotion_by_id200_response_spec.rb +36 -0
  201. data/spec/models/get_promotion_by_id401_response_spec.rb +42 -0
  202. data/spec/models/get_promotion_by_id404_response_spec.rb +42 -0
  203. data/spec/models/get_redemption_stats200_response_spec.rb +42 -0
  204. data/spec/models/get_reward_by_sku200_response_spec.rb +36 -0
  205. data/spec/models/list_client_discounts200_response_spec.rb +42 -0
  206. data/spec/models/list_client_promotions200_response_paging_spec.rb +48 -0
  207. data/spec/models/list_client_promotions200_response_spec.rb +42 -0
  208. data/spec/models/list_client_promotions401_response_spec.rb +42 -0
  209. data/spec/models/list_client_vendor_places200_response_spec.rb +42 -0
  210. data/spec/models/list_clients200_response_spec.rb +42 -0
  211. data/spec/models/list_redemptions200_response_spec.rb +42 -0
  212. data/spec/models/list_rewards200_response_spec.rb +42 -0
  213. data/spec/models/product_summary_spec.rb +64 -0
  214. data/spec/models/product_type_spec.rb +50 -0
  215. data/spec/models/promotion_details_client_spec.rb +42 -0
  216. data/spec/models/promotion_details_rewards_inner_spec.rb +78 -0
  217. data/spec/models/promotion_details_spec.rb +136 -0
  218. data/spec/models/redemption_promotion_spec.rb +58 -0
  219. data/spec/models/redemption_reward_format_spec.rb +50 -0
  220. data/spec/models/redemption_reward_spec.rb +62 -0
  221. data/spec/models/redemption_spec.rb +168 -0
  222. data/spec/models/redemption_value_spec.rb +42 -0
  223. data/spec/models/reward_details_brand_spec.rb +58 -0
  224. data/spec/models/reward_details_dimensions_spec.rb +114 -0
  225. data/spec/models/reward_details_product_spec.rb +64 -0
  226. data/spec/models/reward_details_product_type_spec.rb +50 -0
  227. data/spec/models/reward_details_spec.rb +218 -0
  228. data/spec/models/reward_details_targeting_spec.rb +48 -0
  229. data/spec/models/reward_format_spec.rb +50 -0
  230. data/spec/models/stats_spec.rb +42 -0
  231. data/spec/models/stats_timeframe_spec.rb +42 -0
  232. data/spec/models/stats_values_inner_group_by_inner_spec.rb +60 -0
  233. data/spec/models/stats_values_inner_spec.rb +54 -0
  234. data/spec/models/stats_values_inner_states_spec.rb +84 -0
  235. data/spec/models/user_spec.rb +60 -0
  236. data/spec/models/vendor_place_brand_spec.rb +42 -0
  237. data/spec/models/vendor_place_geoloc_spec.rb +42 -0
  238. data/spec/models/vendor_place_spec.rb +60 -0
  239. data/spec/spec_helper.rb +111 -0
  240. metadata +397 -0
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::GetClientBudgetHistory200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<ClientDetails>**](ClientDetails.md) | | [optional] |
8
+ | **paging** | [**ListClientPromotions200ResponsePaging**](ListClientPromotions200ResponsePaging.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::GetClientBudgetHistory200Response.new(
16
+ data: null,
17
+ paging: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # Ifeelgoods::GetClientById200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**ClientDetails**](ClientDetails.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ifeelgoods'
13
+
14
+ instance = Ifeelgoods::GetClientById200Response.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # Ifeelgoods::GetCurrentAccount200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Account**](Account.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ifeelgoods'
13
+
14
+ instance = Ifeelgoods::GetCurrentAccount200Response.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # Ifeelgoods::GetPromotionByID200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**PromotionDetails**](PromotionDetails.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ifeelgoods'
13
+
14
+ instance = Ifeelgoods::GetPromotionByID200Response.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::GetPromotionByID401Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error_name** | **String** | | [optional] |
8
+ | **error_message** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::GetPromotionByID401Response.new(
16
+ error_name: forbidden,
17
+ error_message: The authenticated user does not have permission to access this resource.
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::GetPromotionByID404Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error_name** | **String** | | [optional] |
8
+ | **error_message** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::GetPromotionByID404Response.new(
16
+ error_name: not_found,
17
+ error_message: The requested resource could not be found.
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::GetRedemptionStats200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<Stats>**](Stats.md) | | [optional] |
8
+ | **paging** | [**ListClientPromotions200ResponsePaging**](ListClientPromotions200ResponsePaging.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::GetRedemptionStats200Response.new(
16
+ data: null,
17
+ paging: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,18 @@
1
+ # Ifeelgoods::GetRewardBySKU200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**RewardDetails**](RewardDetails.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'ifeelgoods'
13
+
14
+ instance = Ifeelgoods::GetRewardBySKU200Response.new(
15
+ data: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::ListClientDiscounts200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<DiscountSummary>**](DiscountSummary.md) | | [optional] |
8
+ | **paging** | [**ListClientPromotions200ResponsePaging**](ListClientPromotions200ResponsePaging.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::ListClientDiscounts200Response.new(
16
+ data: null,
17
+ paging: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::ListClientPromotions200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<PromotionDetails>**](PromotionDetails.md) | | [optional] |
8
+ | **paging** | [**ListClientPromotions200ResponsePaging**](ListClientPromotions200ResponsePaging.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::ListClientPromotions200Response.new(
16
+ data: null,
17
+ paging: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # Ifeelgoods::ListClientPromotions200ResponsePaging
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **page** | **Integer** | | [optional] |
8
+ | **per_page** | **Integer** | | [optional] |
9
+ | **total** | **Integer** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ifeelgoods'
15
+
16
+ instance = Ifeelgoods::ListClientPromotions200ResponsePaging.new(
17
+ page: 1,
18
+ per_page: 20,
19
+ total: 100
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::ListClientPromotions401Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error_name** | **String** | | [optional] |
8
+ | **error_message** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::ListClientPromotions401Response.new(
16
+ error_name: unauthorized,
17
+ error_message: Authentication credentials are missing or invalid.
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::ListClientVendorPlaces200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<VendorPlace>**](VendorPlace.md) | | [optional] |
8
+ | **paging** | [**ListClientPromotions200ResponsePaging**](ListClientPromotions200ResponsePaging.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::ListClientVendorPlaces200Response.new(
16
+ data: null,
17
+ paging: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::ListClients200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<ClientSummary>**](ClientSummary.md) | | [optional] |
8
+ | **paging** | [**ListClientPromotions200ResponsePaging**](ListClientPromotions200ResponsePaging.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::ListClients200Response.new(
16
+ data: null,
17
+ paging: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::ListRedemptions200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<Redemption>**](Redemption.md) | | [optional] |
8
+ | **paging** | [**ListClientPromotions200ResponsePaging**](ListClientPromotions200ResponsePaging.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::ListRedemptions200Response.new(
16
+ data: null,
17
+ paging: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::ListRewards200Response
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **data** | [**Array<RewardDetails>**](RewardDetails.md) | | [optional] |
8
+ | **paging** | [**ListClientPromotions200ResponsePaging**](ListClientPromotions200ResponsePaging.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::ListRewards200Response.new(
16
+ data: null,
17
+ paging: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,26 @@
1
+ # Ifeelgoods::ProductSummary
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique identifier for the product (eg. `APP-ITC`). | [optional] |
8
+ | **name** | **String** | The product name (eg. `iTunes Code`). | [optional] |
9
+ | **deliverable_as_pdf** | **Boolean** | Indicates whether the product can be delivered as PDF or not. | [optional] |
10
+ | **vat_rate** | **Float** | Indicates product VAT rate. | [optional] |
11
+ | **vat_rule** | **String** | Indicates product VAT rule (BUU or BUM). | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ifeelgoods'
17
+
18
+ instance = Ifeelgoods::ProductSummary.new(
19
+ id: APP-ITC,
20
+ name: iTunes Code,
21
+ deliverable_as_pdf: null,
22
+ vat_rate: 0.19,
23
+ vat_rule: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::ProductType
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique identifier for the product type. | [optional] |
8
+ | **name** | **String** | The product type name. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::ProductType.new(
16
+ id: gift_card,
17
+ name: Gift Card
18
+ )
19
+ ```
20
+
@@ -0,0 +1,46 @@
1
+ # Ifeelgoods::PromotionDetails
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | [optional] |
8
+ | **ui_id** | **String** | | [optional] |
9
+ | **locale** | **String** | | [optional] |
10
+ | **name** | **String** | Campaign name. | [optional] |
11
+ | **start_datetime** | **Time** | | [optional] |
12
+ | **end_datetime** | **Time** | | [optional] |
13
+ | **client** | [**PromotionDetailsClient**](PromotionDetailsClient.md) | | [optional] |
14
+ | **status** | **String** | | [optional] |
15
+ | **state** | **String** | | [optional] |
16
+ | **rewards** | [**Array<PromotionDetailsRewardsInner>**](PromotionDetailsRewardsInner.md) | | [optional] |
17
+ | **fraud_level** | **String** | | [optional] |
18
+ | **redeem_frequency** | **String** | | [optional] |
19
+ | **authentication_systems** | **Array<String>** | List of authentication systems used for the campaign (eg. `[\"email\", \"sms\"]`). | [optional] |
20
+ | **secured_order_ids** | **Boolean** | Indicates whether the campaign stores secured order ids. | [optional] |
21
+ | **allow_pdf** | **Boolean** | | [optional] |
22
+
23
+ ## Example
24
+
25
+ ```ruby
26
+ require 'ifeelgoods'
27
+
28
+ instance = Ifeelgoods::PromotionDetails.new(
29
+ id: null,
30
+ ui_id: null,
31
+ locale: en,
32
+ name: Holiday Campaign,
33
+ start_datetime: null,
34
+ end_datetime: null,
35
+ client: null,
36
+ status: null,
37
+ state: null,
38
+ rewards: null,
39
+ fraud_level: null,
40
+ redeem_frequency: null,
41
+ authentication_systems: ["facebook_connect","google","email","sms"],
42
+ secured_order_ids: null,
43
+ allow_pdf: null
44
+ )
45
+ ```
46
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::PromotionDetailsClient
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **Integer** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::PromotionDetailsClient.new(
16
+ id: 237,
17
+ name: Ifeelgoods, Inc.
18
+ )
19
+ ```
20
+
@@ -0,0 +1,28 @@
1
+ # Ifeelgoods::PromotionDetailsRewardsInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Uggy Gift Card 10€ | [optional] |
8
+ | **sku** | **String** | Unique identifier that represents the reward (eg. `APP-ITC-10USD-US`). It must be used with the redeem APIs. | [optional] |
9
+ | **status** | **String** | Current lifecycle status of the offer (enabled, paused, disabled). Use this field to understand whether the offer is currently intended to be active for your program. | [optional] |
10
+ | **state** | **String** | Current availability outcome of the offer based on its setup and availability checks. This field explains why an offer can or cannot be used at the moment. | [optional] |
11
+ | **variable_value** | **Boolean** | Indicates whether the reward should be redeemed with a value. Range can be found in dimensions.available_denominations_range. | [optional] |
12
+ | **usages** | **Array<String>** | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'ifeelgoods'
18
+
19
+ instance = Ifeelgoods::PromotionDetailsRewardsInner.new(
20
+ name: Uggy Gift Card 10€,
21
+ sku: APP-ITC-10USD-US,
22
+ status: enabled,
23
+ state: ready,
24
+ variable_value: null,
25
+ usages: ["primary"]
26
+ )
27
+ ```
28
+
@@ -0,0 +1,173 @@
1
+ # Ifeelgoods::PromotionsApi
2
+
3
+ All URIs are relative to *https://api-sandbox.ifeelgoods.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_promotion_by_id**](PromotionsApi.md#get_promotion_by_id) | **GET** /fulfillment/v2/promotions/{promotion_id} | Get a promotion |
8
+ | [**list_client_promotions**](PromotionsApi.md#list_client_promotions) | **GET** /fulfillment/v2/clients/{client_id}/promotions | List all Promotions |
9
+
10
+
11
+ ## get_promotion_by_id
12
+
13
+ > <GetPromotionByID200Response> get_promotion_by_id(promotion_id)
14
+
15
+ Get a promotion
16
+
17
+ Use this function to retrieve detailed information about a promotion and the list of the rewards available for delivery as part of this operation
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'ifeelgoods'
24
+ # setup authorization
25
+ Ifeelgoods.configure do |config|
26
+ # Configure API key authorization: api_key
27
+ config.api_key['Api-Key'] = 'YOUR API KEY'
28
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
29
+ # config.api_key_prefix['Api-Key'] = 'Bearer'
30
+
31
+ # Configure Bearer authorization: bearer_auth
32
+ config.access_token = 'YOUR_BEARER_TOKEN'
33
+
34
+ # Configure API key authorization: api_secret
35
+ config.api_key['Api-Secret'] = 'YOUR API KEY'
36
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
37
+ # config.api_key_prefix['Api-Secret'] = 'Bearer'
38
+ end
39
+
40
+ api_instance = Ifeelgoods::PromotionsApi.new
41
+ promotion_id = 'promotion_id_example' # String | The promotion identifier
42
+
43
+ begin
44
+ # Get a promotion
45
+ result = api_instance.get_promotion_by_id(promotion_id)
46
+ p result
47
+ rescue Ifeelgoods::ApiError => e
48
+ puts "Error when calling PromotionsApi->get_promotion_by_id: #{e}"
49
+ end
50
+ ```
51
+
52
+ #### Using the get_promotion_by_id_with_http_info variant
53
+
54
+ This returns an Array which contains the response data, status code and headers.
55
+
56
+ > <Array(<GetPromotionByID200Response>, Integer, Hash)> get_promotion_by_id_with_http_info(promotion_id)
57
+
58
+ ```ruby
59
+ begin
60
+ # Get a promotion
61
+ data, status_code, headers = api_instance.get_promotion_by_id_with_http_info(promotion_id)
62
+ p status_code # => 2xx
63
+ p headers # => { ... }
64
+ p data # => <GetPromotionByID200Response>
65
+ rescue Ifeelgoods::ApiError => e
66
+ puts "Error when calling PromotionsApi->get_promotion_by_id_with_http_info: #{e}"
67
+ end
68
+ ```
69
+
70
+ ### Parameters
71
+
72
+ | Name | Type | Description | Notes |
73
+ | ---- | ---- | ----------- | ----- |
74
+ | **promotion_id** | **String** | The promotion identifier | |
75
+
76
+ ### Return type
77
+
78
+ [**GetPromotionByID200Response**](GetPromotionByID200Response.md)
79
+
80
+ ### Authorization
81
+
82
+ [api_key](../README.md#api_key), [bearer_auth](../README.md#bearer_auth), [api_secret](../README.md#api_secret)
83
+
84
+ ### HTTP request headers
85
+
86
+ - **Content-Type**: Not defined
87
+ - **Accept**: application/json
88
+
89
+
90
+ ## list_client_promotions
91
+
92
+ > <ListClientPromotions200Response> list_client_promotions(client_id, opts)
93
+
94
+ List all Promotions
95
+
96
+ Use this function to list all the promotions of a specific client
97
+
98
+ ### Examples
99
+
100
+ ```ruby
101
+ require 'time'
102
+ require 'ifeelgoods'
103
+ # setup authorization
104
+ Ifeelgoods.configure do |config|
105
+ # Configure API key authorization: api_key
106
+ config.api_key['Api-Key'] = 'YOUR API KEY'
107
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
108
+ # config.api_key_prefix['Api-Key'] = 'Bearer'
109
+
110
+ # Configure Bearer authorization: bearer_auth
111
+ config.access_token = 'YOUR_BEARER_TOKEN'
112
+
113
+ # Configure API key authorization: api_secret
114
+ config.api_key['Api-Secret'] = 'YOUR API KEY'
115
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
116
+ # config.api_key_prefix['Api-Secret'] = 'Bearer'
117
+ end
118
+
119
+ api_instance = Ifeelgoods::PromotionsApi.new
120
+ client_id = 'client_id_example' # String | The client identifier
121
+ opts = {
122
+ page: 56, # Integer |
123
+ per_page: 56 # Integer |
124
+ }
125
+
126
+ begin
127
+ # List all Promotions
128
+ result = api_instance.list_client_promotions(client_id, opts)
129
+ p result
130
+ rescue Ifeelgoods::ApiError => e
131
+ puts "Error when calling PromotionsApi->list_client_promotions: #{e}"
132
+ end
133
+ ```
134
+
135
+ #### Using the list_client_promotions_with_http_info variant
136
+
137
+ This returns an Array which contains the response data, status code and headers.
138
+
139
+ > <Array(<ListClientPromotions200Response>, Integer, Hash)> list_client_promotions_with_http_info(client_id, opts)
140
+
141
+ ```ruby
142
+ begin
143
+ # List all Promotions
144
+ data, status_code, headers = api_instance.list_client_promotions_with_http_info(client_id, opts)
145
+ p status_code # => 2xx
146
+ p headers # => { ... }
147
+ p data # => <ListClientPromotions200Response>
148
+ rescue Ifeelgoods::ApiError => e
149
+ puts "Error when calling PromotionsApi->list_client_promotions_with_http_info: #{e}"
150
+ end
151
+ ```
152
+
153
+ ### Parameters
154
+
155
+ | Name | Type | Description | Notes |
156
+ | ---- | ---- | ----------- | ----- |
157
+ | **client_id** | **String** | The client identifier | |
158
+ | **page** | **Integer** | | [optional][default to 1] |
159
+ | **per_page** | **Integer** | | [optional][default to 20] |
160
+
161
+ ### Return type
162
+
163
+ [**ListClientPromotions200Response**](ListClientPromotions200Response.md)
164
+
165
+ ### Authorization
166
+
167
+ [api_key](../README.md#api_key), [bearer_auth](../README.md#bearer_auth), [api_secret](../README.md#api_secret)
168
+
169
+ ### HTTP request headers
170
+
171
+ - **Content-Type**: Not defined
172
+ - **Accept**: application/json
173
+