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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +81 -0
- data/README.md +167 -0
- data/Rakefile +10 -0
- data/docs/Account.md +34 -0
- data/docs/AccountsApi.md +84 -0
- data/docs/ActivateRedemptionRequest.md +18 -0
- data/docs/ActivateRedemptionRequestData.md +18 -0
- data/docs/Address.md +32 -0
- data/docs/BrandSummary.md +24 -0
- data/docs/BudgetLineItem.md +30 -0
- data/docs/CardConsultRedemption200Response.md +18 -0
- data/docs/CardConsultRedemption200ResponseData.md +20 -0
- data/docs/CardConsultRedemption422Response.md +20 -0
- data/docs/ClientDetails.md +40 -0
- data/docs/ClientSummary.md +40 -0
- data/docs/ClientSummaryBudgetAlerts.md +20 -0
- data/docs/ClientsApi.md +341 -0
- data/docs/CreateAndRedeemRequest.md +18 -0
- data/docs/CreateAndRedeemRequestData.md +24 -0
- data/docs/CreateRedemption201Response.md +18 -0
- data/docs/CreateRedemption422Response.md +20 -0
- data/docs/CreateRedemptionRequest.md +18 -0
- data/docs/CreateRedemptionRequestData.md +26 -0
- data/docs/CreateRedemptionRequestDataCustomization.md +18 -0
- data/docs/CreateRedemptionRequestDataCustomizationPdf.md +20 -0
- data/docs/CreateRedemptionRequestDataReward.md +18 -0
- data/docs/CreateRedemptionRequestDataValue.md +18 -0
- data/docs/Dimension.md +44 -0
- data/docs/DimensionDenomination.md +49 -0
- data/docs/DiscountSummary.md +28 -0
- data/docs/ErrorResponse.md +20 -0
- data/docs/GetClientBudgetHistory200Response.md +20 -0
- data/docs/GetClientById200Response.md +18 -0
- data/docs/GetCurrentAccount200Response.md +18 -0
- data/docs/GetPromotionByID200Response.md +18 -0
- data/docs/GetPromotionByID401Response.md +20 -0
- data/docs/GetPromotionByID404Response.md +20 -0
- data/docs/GetRedemptionStats200Response.md +20 -0
- data/docs/GetRewardBySKU200Response.md +18 -0
- data/docs/ListClientDiscounts200Response.md +20 -0
- data/docs/ListClientPromotions200Response.md +20 -0
- data/docs/ListClientPromotions200ResponsePaging.md +22 -0
- data/docs/ListClientPromotions401Response.md +20 -0
- data/docs/ListClientVendorPlaces200Response.md +20 -0
- data/docs/ListClients200Response.md +20 -0
- data/docs/ListRedemptions200Response.md +20 -0
- data/docs/ListRewards200Response.md +20 -0
- data/docs/ProductSummary.md +26 -0
- data/docs/ProductType.md +20 -0
- data/docs/PromotionDetails.md +46 -0
- data/docs/PromotionDetailsClient.md +20 -0
- data/docs/PromotionDetailsRewardsInner.md +28 -0
- data/docs/PromotionsApi.md +173 -0
- data/docs/Redemption.md +58 -0
- data/docs/RedemptionPromotion.md +24 -0
- data/docs/RedemptionReward.md +24 -0
- data/docs/RedemptionRewardFormat.md +20 -0
- data/docs/RedemptionValue.md +20 -0
- data/docs/RedemptionsApi.md +857 -0
- data/docs/RewardDetails.md +76 -0
- data/docs/RewardDetailsBrand.md +24 -0
- data/docs/RewardDetailsDimensions.md +44 -0
- data/docs/RewardDetailsProduct.md +26 -0
- data/docs/RewardDetailsProductType.md +20 -0
- data/docs/RewardDetailsTargeting.md +22 -0
- data/docs/RewardFormat.md +20 -0
- data/docs/RewardsApi.md +175 -0
- data/docs/Stats.md +20 -0
- data/docs/StatsApi.md +101 -0
- data/docs/StatsTimeframe.md +20 -0
- data/docs/StatsValuesInner.md +24 -0
- data/docs/StatsValuesInnerGroupByInner.md +26 -0
- data/docs/StatsValuesInnerStates.md +34 -0
- data/docs/User.md +26 -0
- data/docs/VendorPlace.md +26 -0
- data/docs/VendorPlaceBrand.md +20 -0
- data/docs/VendorPlaceGeoloc.md +20 -0
- data/docs/VendorPlacesApi.md +97 -0
- data/git_push.sh +57 -0
- data/ifeelgoods.gemspec +39 -0
- data/lib/ifeelgoods/api/accounts_api.rb +79 -0
- data/lib/ifeelgoods/api/clients_api.rb +318 -0
- data/lib/ifeelgoods/api/promotions_api.rb +166 -0
- data/lib/ifeelgoods/api/redemptions_api.rb +762 -0
- data/lib/ifeelgoods/api/rewards_api.rb +166 -0
- data/lib/ifeelgoods/api/stats_api.rb +111 -0
- data/lib/ifeelgoods/api/vendor_places_api.rb +109 -0
- data/lib/ifeelgoods/api_client.rb +397 -0
- data/lib/ifeelgoods/api_error.rb +58 -0
- data/lib/ifeelgoods/api_model_base.rb +88 -0
- data/lib/ifeelgoods/configuration.rb +332 -0
- data/lib/ifeelgoods/models/account.rb +260 -0
- data/lib/ifeelgoods/models/activate_redemption_request.rb +164 -0
- data/lib/ifeelgoods/models/activate_redemption_request_data.rb +147 -0
- data/lib/ifeelgoods/models/address.rb +219 -0
- data/lib/ifeelgoods/models/brand_summary.rb +212 -0
- data/lib/ifeelgoods/models/budget_line_item.rb +249 -0
- data/lib/ifeelgoods/models/card_consult_redemption200_response.rb +147 -0
- data/lib/ifeelgoods/models/card_consult_redemption200_response_data.rb +158 -0
- data/lib/ifeelgoods/models/card_consult_redemption422_response.rb +157 -0
- data/lib/ifeelgoods/models/client_details.rb +287 -0
- data/lib/ifeelgoods/models/client_summary.rb +287 -0
- data/lib/ifeelgoods/models/client_summary_budget_alerts.rb +159 -0
- data/lib/ifeelgoods/models/create_and_redeem_request.rb +164 -0
- data/lib/ifeelgoods/models/create_and_redeem_request_data.rb +174 -0
- data/lib/ifeelgoods/models/create_redemption201_response.rb +147 -0
- data/lib/ifeelgoods/models/create_redemption422_response.rb +157 -0
- data/lib/ifeelgoods/models/create_redemption_request.rb +164 -0
- data/lib/ifeelgoods/models/create_redemption_request_data.rb +235 -0
- data/lib/ifeelgoods/models/create_redemption_request_data_customization.rb +147 -0
- data/lib/ifeelgoods/models/create_redemption_request_data_customization_pdf.rb +157 -0
- data/lib/ifeelgoods/models/create_redemption_request_data_reward.rb +147 -0
- data/lib/ifeelgoods/models/create_redemption_request_data_value.rb +148 -0
- data/lib/ifeelgoods/models/dimension.rb +293 -0
- data/lib/ifeelgoods/models/dimension_denomination.rb +105 -0
- data/lib/ifeelgoods/models/discount_summary.rb +195 -0
- data/lib/ifeelgoods/models/error_response.rb +157 -0
- data/lib/ifeelgoods/models/get_client_budget_history200_response.rb +158 -0
- data/lib/ifeelgoods/models/get_client_by_id200_response.rb +147 -0
- data/lib/ifeelgoods/models/get_current_account200_response.rb +147 -0
- data/lib/ifeelgoods/models/get_promotion_by_id200_response.rb +147 -0
- data/lib/ifeelgoods/models/get_promotion_by_id401_response.rb +157 -0
- data/lib/ifeelgoods/models/get_promotion_by_id404_response.rb +157 -0
- data/lib/ifeelgoods/models/get_redemption_stats200_response.rb +158 -0
- data/lib/ifeelgoods/models/get_reward_by_sku200_response.rb +147 -0
- data/lib/ifeelgoods/models/list_client_discounts200_response.rb +158 -0
- data/lib/ifeelgoods/models/list_client_promotions200_response.rb +158 -0
- data/lib/ifeelgoods/models/list_client_promotions200_response_paging.rb +165 -0
- data/lib/ifeelgoods/models/list_client_promotions401_response.rb +157 -0
- data/lib/ifeelgoods/models/list_client_vendor_places200_response.rb +158 -0
- data/lib/ifeelgoods/models/list_clients200_response.rb +158 -0
- data/lib/ifeelgoods/models/list_redemptions200_response.rb +158 -0
- data/lib/ifeelgoods/models/list_rewards200_response.rb +158 -0
- data/lib/ifeelgoods/models/product_summary.rb +222 -0
- data/lib/ifeelgoods/models/product_type.rb +204 -0
- data/lib/ifeelgoods/models/promotion_details.rb +354 -0
- data/lib/ifeelgoods/models/promotion_details_client.rb +157 -0
- data/lib/ifeelgoods/models/promotion_details_rewards_inner.rb +245 -0
- data/lib/ifeelgoods/models/redemption.rb +383 -0
- data/lib/ifeelgoods/models/redemption_promotion.rb +211 -0
- data/lib/ifeelgoods/models/redemption_reward.rb +224 -0
- data/lib/ifeelgoods/models/redemption_reward_format.rb +193 -0
- data/lib/ifeelgoods/models/redemption_value.rb +157 -0
- data/lib/ifeelgoods/models/reward_details.rb +486 -0
- data/lib/ifeelgoods/models/reward_details_brand.rb +213 -0
- data/lib/ifeelgoods/models/reward_details_dimensions.rb +293 -0
- data/lib/ifeelgoods/models/reward_details_product.rb +222 -0
- data/lib/ifeelgoods/models/reward_details_product_type.rb +204 -0
- data/lib/ifeelgoods/models/reward_details_targeting.rb +170 -0
- data/lib/ifeelgoods/models/reward_format.rb +192 -0
- data/lib/ifeelgoods/models/stats.rb +158 -0
- data/lib/ifeelgoods/models/stats_timeframe.rb +156 -0
- data/lib/ifeelgoods/models/stats_values_inner.rb +178 -0
- data/lib/ifeelgoods/models/stats_values_inner_group_by_inner.rb +186 -0
- data/lib/ifeelgoods/models/stats_values_inner_states.rb +219 -0
- data/lib/ifeelgoods/models/user.rb +188 -0
- data/lib/ifeelgoods/models/vendor_place.rb +186 -0
- data/lib/ifeelgoods/models/vendor_place_brand.rb +158 -0
- data/lib/ifeelgoods/models/vendor_place_geoloc.rb +156 -0
- data/lib/ifeelgoods/version.rb +15 -0
- data/lib/ifeelgoods.rb +115 -0
- data/spec/api/accounts_api_spec.rb +46 -0
- data/spec/api/clients_api_spec.rb +88 -0
- data/spec/api/promotions_api_spec.rb +61 -0
- data/spec/api/redemptions_api_spec.rb +175 -0
- data/spec/api/rewards_api_spec.rb +62 -0
- data/spec/api/stats_api_spec.rb +53 -0
- data/spec/api/vendor_places_api_spec.rb +51 -0
- data/spec/models/account_spec.rb +88 -0
- data/spec/models/activate_redemption_request_data_spec.rb +36 -0
- data/spec/models/activate_redemption_request_spec.rb +36 -0
- data/spec/models/address_spec.rb +78 -0
- data/spec/models/brand_summary_spec.rb +58 -0
- data/spec/models/budget_line_item_spec.rb +80 -0
- data/spec/models/card_consult_redemption200_response_data_spec.rb +42 -0
- data/spec/models/card_consult_redemption200_response_spec.rb +36 -0
- data/spec/models/card_consult_redemption422_response_spec.rb +42 -0
- data/spec/models/client_details_spec.rb +106 -0
- data/spec/models/client_summary_budget_alerts_spec.rb +42 -0
- data/spec/models/client_summary_spec.rb +106 -0
- data/spec/models/create_and_redeem_request_data_spec.rb +54 -0
- data/spec/models/create_and_redeem_request_spec.rb +36 -0
- data/spec/models/create_redemption201_response_spec.rb +36 -0
- data/spec/models/create_redemption422_response_spec.rb +42 -0
- data/spec/models/create_redemption_request_data_customization_pdf_spec.rb +42 -0
- data/spec/models/create_redemption_request_data_customization_spec.rb +36 -0
- data/spec/models/create_redemption_request_data_reward_spec.rb +36 -0
- data/spec/models/create_redemption_request_data_spec.rb +60 -0
- data/spec/models/create_redemption_request_data_value_spec.rb +36 -0
- data/spec/models/create_redemption_request_spec.rb +36 -0
- data/spec/models/dimension_denomination_spec.rb +32 -0
- data/spec/models/dimension_spec.rb +114 -0
- data/spec/models/discount_summary_spec.rb +66 -0
- data/spec/models/error_response_spec.rb +42 -0
- data/spec/models/get_client_budget_history200_response_spec.rb +42 -0
- data/spec/models/get_client_by_id200_response_spec.rb +36 -0
- data/spec/models/get_current_account200_response_spec.rb +36 -0
- data/spec/models/get_promotion_by_id200_response_spec.rb +36 -0
- data/spec/models/get_promotion_by_id401_response_spec.rb +42 -0
- data/spec/models/get_promotion_by_id404_response_spec.rb +42 -0
- data/spec/models/get_redemption_stats200_response_spec.rb +42 -0
- data/spec/models/get_reward_by_sku200_response_spec.rb +36 -0
- data/spec/models/list_client_discounts200_response_spec.rb +42 -0
- data/spec/models/list_client_promotions200_response_paging_spec.rb +48 -0
- data/spec/models/list_client_promotions200_response_spec.rb +42 -0
- data/spec/models/list_client_promotions401_response_spec.rb +42 -0
- data/spec/models/list_client_vendor_places200_response_spec.rb +42 -0
- data/spec/models/list_clients200_response_spec.rb +42 -0
- data/spec/models/list_redemptions200_response_spec.rb +42 -0
- data/spec/models/list_rewards200_response_spec.rb +42 -0
- data/spec/models/product_summary_spec.rb +64 -0
- data/spec/models/product_type_spec.rb +50 -0
- data/spec/models/promotion_details_client_spec.rb +42 -0
- data/spec/models/promotion_details_rewards_inner_spec.rb +78 -0
- data/spec/models/promotion_details_spec.rb +136 -0
- data/spec/models/redemption_promotion_spec.rb +58 -0
- data/spec/models/redemption_reward_format_spec.rb +50 -0
- data/spec/models/redemption_reward_spec.rb +62 -0
- data/spec/models/redemption_spec.rb +168 -0
- data/spec/models/redemption_value_spec.rb +42 -0
- data/spec/models/reward_details_brand_spec.rb +58 -0
- data/spec/models/reward_details_dimensions_spec.rb +114 -0
- data/spec/models/reward_details_product_spec.rb +64 -0
- data/spec/models/reward_details_product_type_spec.rb +50 -0
- data/spec/models/reward_details_spec.rb +218 -0
- data/spec/models/reward_details_targeting_spec.rb +48 -0
- data/spec/models/reward_format_spec.rb +50 -0
- data/spec/models/stats_spec.rb +42 -0
- data/spec/models/stats_timeframe_spec.rb +42 -0
- data/spec/models/stats_values_inner_group_by_inner_spec.rb +60 -0
- data/spec/models/stats_values_inner_spec.rb +54 -0
- data/spec/models/stats_values_inner_states_spec.rb +84 -0
- data/spec/models/user_spec.rb +60 -0
- data/spec/models/vendor_place_brand_spec.rb +42 -0
- data/spec/models/vendor_place_geoloc_spec.rb +42 -0
- data/spec/models/vendor_place_spec.rb +60 -0
- data/spec/spec_helper.rb +111 -0
- 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
|
+
|
data/docs/ProductType.md
ADDED
|
@@ -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
|
+
|