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,76 @@
1
+ # Ifeelgoods::RewardDetails
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Reward name (eg. `$10 iTunes® Code`). | [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
+ | **denomination** | **String** | Reward formatted value with currency (eg. `$10`). | [optional] |
10
+ | **display_value** | **String** | | [optional] |
11
+ | **free_value** | **Boolean** | Indicates whether the reward should be redeemed with a value. Range can be found in dimensions.available_denominations_range. | [optional] |
12
+ | **cost** | **Float** | Reward cost for your account (eg. `9.0`). You need to query the API with the `client_id` parameter to retrieve the acutal cost, otherwise it will return `face_value`. | [optional] |
13
+ | **cost_currency** | **String** | Reward cost currency (eg. `USD`, `EUR`). | [optional] |
14
+ | **face_value** | **String** | Reward face value, actual reward amount (e.g. `10.00`). | [optional] |
15
+ | **face_value_currency** | **String** | Reward face value currency. (eg. `EUR`). | [optional] |
16
+ | **in_stock** | **Boolean** | Boolean that represent reward availability. | [optional] |
17
+ | **stock_quantity** | **Integer** | Stock quantity. Can be `null` (if `stock_quantity` is `null`, `in_stock` is always `true`). | [optional] |
18
+ | **brand** | [**RewardDetailsBrand**](RewardDetailsBrand.md) | | [optional] |
19
+ | **product** | [**RewardDetailsProduct**](RewardDetailsProduct.md) | | [optional] |
20
+ | **product_type** | [**RewardDetailsProductType**](RewardDetailsProductType.md) | | [optional] |
21
+ | **usages** | **Array<String>** | Reward code format | [optional] |
22
+ | **expiration_date** | **String** | Expiration date (eg. `2023-03-31`) | [optional] |
23
+ | **categories** | **Array<String>** | Reward categories (eg. `['Games & Entertainment', 'Sports']`) (not maintained). | [optional] |
24
+ | **description** | **String** | Reward description. | [optional] |
25
+ | **country** | **Array<String>** | Reward country list (eg. `[\"US\", \"CA\"]` or `[\"WW\"]` if worldwide). If the reward is not specific to a country, it will be considered as worldwide. | [optional] |
26
+ | **conditions_of_sale** | **String** | | [optional] |
27
+ | **dimensions** | [**RewardDetailsDimensions**](RewardDetailsDimensions.md) | | [optional] |
28
+ | **tags** | **Array<String>** | Reward tags (not maintained). | [optional] |
29
+ | **targeting** | [**RewardDetailsTargeting**](RewardDetailsTargeting.md) | | [optional] |
30
+ | **catalog_badge_url** | **String** | Reward image, without scheme (eg. `//cdn.ifeelgoods.com/image.png`). | [optional] |
31
+ | **catalog_card_url** | **String** | (legacy) Reward image (same as catalog_badge_url). | [optional] |
32
+ | **logo_url** | **String** | Brand logo, without scheme (eg. `//cdn.ifeelgoods.com/logo.png`). | [optional] |
33
+ | **terms_and_conditions_url** | **String** | Reward 'Terms and Conditions' URL (when provided by brand, `null` otherwise). | [optional] |
34
+ | **terms_and_conditions** | **String** | Reward 'Terms and Conditions'. | [optional] |
35
+ | **how_to_use_instructions** | **String** | Reward 'How to use' instructions. | [optional] |
36
+ | **important_instructions** | **String** | Reward additional information. | [optional] |
37
+
38
+ ## Example
39
+
40
+ ```ruby
41
+ require 'ifeelgoods'
42
+
43
+ instance = Ifeelgoods::RewardDetails.new(
44
+ name: Uggy Gift Card 10€,
45
+ sku: APP-ITC-10USD-US,
46
+ denomination: 10€,
47
+ display_value: null,
48
+ free_value: null,
49
+ cost: 9.0,
50
+ cost_currency: EUR,
51
+ face_value: 10.00,
52
+ face_value_currency: EUR,
53
+ in_stock: null,
54
+ stock_quantity: 100,
55
+ brand: null,
56
+ product: null,
57
+ product_type: null,
58
+ usages: ["primary"],
59
+ expiration_date: 2026-08-03,
60
+ categories: ["Sports"],
61
+ description: null,
62
+ country: ["US","CA"],
63
+ conditions_of_sale: null,
64
+ dimensions: null,
65
+ tags: null,
66
+ targeting: null,
67
+ catalog_badge_url: //cdn.ifeelgoods.com/image.png,
68
+ catalog_card_url: //cdn.ifeelgoods.com/image.png,
69
+ logo_url: //cdn.ifeelgoods.com/images/logo.png,
70
+ terms_and_conditions_url: https//ifeelgoods.com/terms_and_conditions,
71
+ terms_and_conditions: null,
72
+ how_to_use_instructions: null,
73
+ important_instructions: null
74
+ )
75
+ ```
76
+
@@ -0,0 +1,24 @@
1
+ # Ifeelgoods::RewardDetailsBrand
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique identifier that represents the brand (eg. `APP`). | [optional] |
8
+ | **name** | **String** | Brand name (eg. `iTunes`). | [optional] |
9
+ | **status** | **String** | | [optional] |
10
+ | **url** | **String** | Brand URL (eg. `https://www.ifeelgoods.com`). | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ifeelgoods'
16
+
17
+ instance = Ifeelgoods::RewardDetailsBrand.new(
18
+ id: APP,
19
+ name: iTunes,
20
+ status: null,
21
+ url: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,44 @@
1
+ # Ifeelgoods::RewardDetailsDimensions
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **available_denominations_range** | **String** | Indicates the range of values that can be used with open value reward (when free_value is true) (eg. 5..250). | [optional] |
8
+ | **custom_offer** | **String** | When a custom offer has been configured for this product (eg. buy one get one, $20 off the second article, etc.). | [optional] |
9
+ | **validity_period** | **String** | Duration during which the reward code remains valid after delivery. Expressed as a number followed by a unit: d for days, m for months, y for years (eg. 30d for 30 days, 12m for 12 months, 1y for 1 year). Returns null if no validity period applies. | [optional] |
10
+ | **available_denominations** | **String** | List of specific monetary amounts available for this reward. | [optional] |
11
+ | **breakable** | **String** | Indicates whether the reward code can be broken into smaller values. | [optional] |
12
+ | **cumulable** | **String** | Indicates whether multiple reward codes can be combined. | [optional] |
13
+ | **denomination** | [**DimensionDenomination**](DimensionDenomination.md) | | [optional] |
14
+ | **denomination_currency** | **String** | Currency of the denomination amount (eg. EUR, USD, etc.). | [optional] |
15
+ | **duration** | **String** | Duration of a subscription or service (eg. 2 months). | [optional] |
16
+ | **duration_unit** | **String** | Unit of the duration dimension. Possible values: minute, hour, day, week, month, year, varying_duration. | [optional] |
17
+ | **people** | **String** | Number of people concerned by the reward. | [optional] |
18
+ | **quantity** | **String** | Virtual currency amount associated with the reward (eg. 300 points, 200 miles, etc.). | [optional] |
19
+ | **quantity_unit** | **String** | Unit of the quantity dimension. Possible values: points, miles, facebook_credits, minutes, movie, meal, e_magazine, e_ticket, song, lesson, box, subscription. | [optional] |
20
+ | **redemption_channel** | **Array<String>** | | [optional] |
21
+
22
+ ## Example
23
+
24
+ ```ruby
25
+ require 'ifeelgoods'
26
+
27
+ instance = Ifeelgoods::RewardDetailsDimensions.new(
28
+ available_denominations_range: 5..250,
29
+ custom_offer: Buy one get one,
30
+ validity_period: 30d,
31
+ available_denominations: null,
32
+ breakable: null,
33
+ cumulable: null,
34
+ denomination: null,
35
+ denomination_currency: EUR,
36
+ duration: 2,
37
+ duration_unit: month,
38
+ people: 2,
39
+ quantity: 300,
40
+ quantity_unit: points,
41
+ redemption_channel: null
42
+ )
43
+ ```
44
+
@@ -0,0 +1,26 @@
1
+ # Ifeelgoods::RewardDetailsProduct
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::RewardDetailsProduct.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::RewardDetailsProductType
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::RewardDetailsProductType.new(
16
+ id: gift_card,
17
+ name: Gift Card
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # Ifeelgoods::RewardDetailsTargeting
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **gender** | **Array<String>** | | [optional] |
8
+ | **age_range** | **Array<String>** | | [optional] |
9
+ | **reach** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ifeelgoods'
15
+
16
+ instance = Ifeelgoods::RewardDetailsTargeting.new(
17
+ gender: null,
18
+ age_range: ["18-24","25-34"],
19
+ reach: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::RewardFormat
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **usages** | **Array<String>** | | [optional] |
8
+ | **barcode_type** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::RewardFormat.new(
16
+ usages: null,
17
+ barcode_type: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,175 @@
1
+ # Ifeelgoods::RewardsApi
2
+
3
+ All URIs are relative to *https://api-sandbox.ifeelgoods.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_reward_by_sku**](RewardsApi.md#get_reward_by_sku) | **GET** /fulfillment/v2/rewards/{sku} | Get a Reward |
8
+ | [**list_rewards**](RewardsApi.md#list_rewards) | **GET** /fulfillment/v2/rewards | List all Rewards |
9
+
10
+
11
+ ## get_reward_by_sku
12
+
13
+ > <GetRewardBySKU200Response> get_reward_by_sku(sku)
14
+
15
+ Get a Reward
16
+
17
+ Use this function to retrieve detailed description about a reward
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::RewardsApi.new
41
+ sku = 'sku_example' # String | The reward SKU
42
+
43
+ begin
44
+ # Get a Reward
45
+ result = api_instance.get_reward_by_sku(sku)
46
+ p result
47
+ rescue Ifeelgoods::ApiError => e
48
+ puts "Error when calling RewardsApi->get_reward_by_sku: #{e}"
49
+ end
50
+ ```
51
+
52
+ #### Using the get_reward_by_sku_with_http_info variant
53
+
54
+ This returns an Array which contains the response data, status code and headers.
55
+
56
+ > <Array(<GetRewardBySKU200Response>, Integer, Hash)> get_reward_by_sku_with_http_info(sku)
57
+
58
+ ```ruby
59
+ begin
60
+ # Get a Reward
61
+ data, status_code, headers = api_instance.get_reward_by_sku_with_http_info(sku)
62
+ p status_code # => 2xx
63
+ p headers # => { ... }
64
+ p data # => <GetRewardBySKU200Response>
65
+ rescue Ifeelgoods::ApiError => e
66
+ puts "Error when calling RewardsApi->get_reward_by_sku_with_http_info: #{e}"
67
+ end
68
+ ```
69
+
70
+ ### Parameters
71
+
72
+ | Name | Type | Description | Notes |
73
+ | ---- | ---- | ----------- | ----- |
74
+ | **sku** | **String** | The reward SKU | |
75
+
76
+ ### Return type
77
+
78
+ [**GetRewardBySKU200Response**](GetRewardBySKU200Response.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_rewards
91
+
92
+ > <ListRewards200Response> list_rewards(opts)
93
+
94
+ List all Rewards
95
+
96
+ Use this function to list all the rewards from the Ifeelgoods Catalog
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::RewardsApi.new
120
+ opts = {
121
+ sku: 'sku1,sku2,sku3', # String | Comma-separated list of reward SKUs to filter by
122
+ client_id: 'client_id_example', # String | Unique Client identifier (used to retrieve cost with discount)
123
+ page: 56, # Integer |
124
+ per_page: 56 # Integer |
125
+ }
126
+
127
+ begin
128
+ # List all Rewards
129
+ result = api_instance.list_rewards(opts)
130
+ p result
131
+ rescue Ifeelgoods::ApiError => e
132
+ puts "Error when calling RewardsApi->list_rewards: #{e}"
133
+ end
134
+ ```
135
+
136
+ #### Using the list_rewards_with_http_info variant
137
+
138
+ This returns an Array which contains the response data, status code and headers.
139
+
140
+ > <Array(<ListRewards200Response>, Integer, Hash)> list_rewards_with_http_info(opts)
141
+
142
+ ```ruby
143
+ begin
144
+ # List all Rewards
145
+ data, status_code, headers = api_instance.list_rewards_with_http_info(opts)
146
+ p status_code # => 2xx
147
+ p headers # => { ... }
148
+ p data # => <ListRewards200Response>
149
+ rescue Ifeelgoods::ApiError => e
150
+ puts "Error when calling RewardsApi->list_rewards_with_http_info: #{e}"
151
+ end
152
+ ```
153
+
154
+ ### Parameters
155
+
156
+ | Name | Type | Description | Notes |
157
+ | ---- | ---- | ----------- | ----- |
158
+ | **sku** | **String** | Comma-separated list of reward SKUs to filter by | [optional] |
159
+ | **client_id** | **String** | Unique Client identifier (used to retrieve cost with discount) | [optional] |
160
+ | **page** | **Integer** | | [optional][default to 1] |
161
+ | **per_page** | **Integer** | | [optional][default to 20] |
162
+
163
+ ### Return type
164
+
165
+ [**ListRewards200Response**](ListRewards200Response.md)
166
+
167
+ ### Authorization
168
+
169
+ [api_key](../README.md#api_key), [bearer_auth](../README.md#bearer_auth), [api_secret](../README.md#api_secret)
170
+
171
+ ### HTTP request headers
172
+
173
+ - **Content-Type**: Not defined
174
+ - **Accept**: application/json
175
+
data/docs/Stats.md ADDED
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::Stats
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **timeframe** | [**StatsTimeframe**](StatsTimeframe.md) | | [optional] |
8
+ | **values** | [**Array&lt;StatsValuesInner&gt;**](StatsValuesInner.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::Stats.new(
16
+ timeframe: null,
17
+ values: null
18
+ )
19
+ ```
20
+
data/docs/StatsApi.md ADDED
@@ -0,0 +1,101 @@
1
+ # Ifeelgoods::StatsApi
2
+
3
+ All URIs are relative to *https://api-sandbox.ifeelgoods.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_redemption_stats**](StatsApi.md#get_redemption_stats) | **GET** /fulfillment/v2/clients/{client_id}/stats | Get Redemption Stats |
8
+
9
+
10
+ ## get_redemption_stats
11
+
12
+ > <GetRedemptionStats200Response> get_redemption_stats(client_id, opts)
13
+
14
+ Get Redemption Stats
15
+
16
+ Use this function to access data relative to the reward delivery activity for a specific client
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'ifeelgoods'
23
+ # setup authorization
24
+ Ifeelgoods.configure do |config|
25
+ # Configure API key authorization: api_key
26
+ config.api_key['Api-Key'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ # config.api_key_prefix['Api-Key'] = 'Bearer'
29
+
30
+ # Configure Bearer authorization: bearer_auth
31
+ config.access_token = 'YOUR_BEARER_TOKEN'
32
+
33
+ # Configure API key authorization: api_secret
34
+ config.api_key['Api-Secret'] = 'YOUR API KEY'
35
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
36
+ # config.api_key_prefix['Api-Secret'] = 'Bearer'
37
+ end
38
+
39
+ api_instance = Ifeelgoods::StatsApi.new
40
+ client_id = 'client_id_example' # String | The client identifier
41
+ opts = {
42
+ promotion_id: 'promotion_id_example', # String |
43
+ reward_sku: 'reward_sku_example', # String |
44
+ start_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | ISO-8601 String representing the start date for the date range for which activity stats are extracted
45
+ end_date: Time.parse('2013-10-20T19:20:30+01:00'), # Time | ISO-8601 String representing the end date for the date range for which activity stats are extracted
46
+ interval: 'daily', # String | Aggregation granularity - daily, monthly and yearly
47
+ states: 'all' # String | Filter to specify the state of the redemptions to include in the stats
48
+ }
49
+
50
+ begin
51
+ # Get Redemption Stats
52
+ result = api_instance.get_redemption_stats(client_id, opts)
53
+ p result
54
+ rescue Ifeelgoods::ApiError => e
55
+ puts "Error when calling StatsApi->get_redemption_stats: #{e}"
56
+ end
57
+ ```
58
+
59
+ #### Using the get_redemption_stats_with_http_info variant
60
+
61
+ This returns an Array which contains the response data, status code and headers.
62
+
63
+ > <Array(<GetRedemptionStats200Response>, Integer, Hash)> get_redemption_stats_with_http_info(client_id, opts)
64
+
65
+ ```ruby
66
+ begin
67
+ # Get Redemption Stats
68
+ data, status_code, headers = api_instance.get_redemption_stats_with_http_info(client_id, opts)
69
+ p status_code # => 2xx
70
+ p headers # => { ... }
71
+ p data # => <GetRedemptionStats200Response>
72
+ rescue Ifeelgoods::ApiError => e
73
+ puts "Error when calling StatsApi->get_redemption_stats_with_http_info: #{e}"
74
+ end
75
+ ```
76
+
77
+ ### Parameters
78
+
79
+ | Name | Type | Description | Notes |
80
+ | ---- | ---- | ----------- | ----- |
81
+ | **client_id** | **String** | The client identifier | |
82
+ | **promotion_id** | **String** | | [optional] |
83
+ | **reward_sku** | **String** | | [optional] |
84
+ | **start_date** | **Time** | ISO-8601 String representing the start date for the date range for which activity stats are extracted | [optional] |
85
+ | **end_date** | **Time** | ISO-8601 String representing the end date for the date range for which activity stats are extracted | [optional] |
86
+ | **interval** | **String** | Aggregation granularity - daily, monthly and yearly | [optional] |
87
+ | **states** | **String** | Filter to specify the state of the redemptions to include in the stats | [optional] |
88
+
89
+ ### Return type
90
+
91
+ [**GetRedemptionStats200Response**](GetRedemptionStats200Response.md)
92
+
93
+ ### Authorization
94
+
95
+ [api_key](../README.md#api_key), [bearer_auth](../README.md#bearer_auth), [api_secret](../README.md#api_secret)
96
+
97
+ ### HTTP request headers
98
+
99
+ - **Content-Type**: Not defined
100
+ - **Accept**: application/json
101
+
@@ -0,0 +1,20 @@
1
+ # Ifeelgoods::StatsTimeframe
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **start** | **Time** | | [optional] |
8
+ | **_end** | **Time** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ifeelgoods'
14
+
15
+ instance = Ifeelgoods::StatsTimeframe.new(
16
+ start: null,
17
+ _end: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # Ifeelgoods::StatsValuesInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **group_by** | [**Array&lt;StatsValuesInnerGroupByInner&gt;**](StatsValuesInnerGroupByInner.md) | | [optional] |
8
+ | **states** | [**StatsValuesInnerStates**](StatsValuesInnerStates.md) | | [optional] |
9
+ | **selling_price** | **Float** | | [optional] |
10
+ | **total_face_value** | **Float** | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ifeelgoods'
16
+
17
+ instance = Ifeelgoods::StatsValuesInner.new(
18
+ group_by: {},
19
+ states: null,
20
+ selling_price: 76,
21
+ total_face_value: 80
22
+ )
23
+ ```
24
+
@@ -0,0 +1,26 @@
1
+ # Ifeelgoods::StatsValuesInnerGroupByInner
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **resource_type** | **String** | | [optional] |
8
+ | **id** | **String** | | [optional] |
9
+ | **name** | **String** | | [optional] |
10
+ | **value** | **Float** | | [optional] |
11
+ | **iso_code** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ifeelgoods'
17
+
18
+ instance = Ifeelgoods::StatsValuesInnerGroupByInner.new(
19
+ resource_type: product,
20
+ id: GIF-GIFTCOOL,
21
+ name: Gift Cool,
22
+ value: 40,
23
+ iso_code: EUR
24
+ )
25
+ ```
26
+
@@ -0,0 +1,34 @@
1
+ # Ifeelgoods::StatsValuesInnerStates
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **pending** | **Integer** | | [optional] |
8
+ | **booked** | **Integer** | | [optional] |
9
+ | **redeemed** | **Integer** | | [optional] |
10
+ | **denied** | **Integer** | | [optional] |
11
+ | **failed** | **Integer** | | [optional] |
12
+ | **refunded** | **Integer** | | [optional] |
13
+ | **blocked** | **Integer** | | [optional] |
14
+ | **canceled** | **Integer** | | [optional] |
15
+ | **expired** | **Integer** | | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'ifeelgoods'
21
+
22
+ instance = Ifeelgoods::StatsValuesInnerStates.new(
23
+ pending: 5,
24
+ booked: 2,
25
+ redeemed: 7,
26
+ denied: 4,
27
+ failed: 0,
28
+ refunded: 6,
29
+ blocked: 9,
30
+ canceled: 6,
31
+ expired: 3
32
+ )
33
+ ```
34
+
data/docs/User.md ADDED
@@ -0,0 +1,26 @@
1
+ # Ifeelgoods::User
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **email** | **String** | | [optional] |
8
+ | **phone_number** | **String** | International format (eg. +336xxxxxxxx) | [optional] |
9
+ | **first_name** | **String** | | [optional] |
10
+ | **last_name** | **String** | | [optional] |
11
+ | **address** | [**Address**](Address.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ifeelgoods'
17
+
18
+ instance = Ifeelgoods::User.new(
19
+ email: james.brown@ifeelgoods.com,
20
+ phone_number: +33611111111,
21
+ first_name: James,
22
+ last_name: Brown,
23
+ address: null
24
+ )
25
+ ```
26
+