ifeelgoods 0.0.1 → 0.2.0.beta.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +178 -133
- data/docs/RewardDetails.md +1 -1
- data/docs/StatsValuesInnerStates.md +9 -9
- data/lib/ifeelgoods/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 385c12eb3324955b38542f156a1cff700126e8bb370e05985716cb5e39d6807c
|
|
4
|
+
data.tar.gz: a8bc03826e01e93aa79c5f2c388655a25d6a9c2d71cbe320de3dcf4313bf51aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7bb884c9c93030de9b84c3da4f07dedba89e4dbf075ac269684c2ef8130ff267b7438ff3b640ae878eb438897caf60f4b0172b6d0bb8cc77045ddf42c63520f6
|
|
7
|
+
data.tar.gz: 26e5215a89fd42f1765a605e91b3704b580534145849026298345e852fbf2a717995a8c49dd22dd08fcff64cd84f948d3b1d06ceb0c676f1f2eced65f2387be6
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,167 +1,212 @@
|
|
|
1
1
|
# ifeelgoods
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Ifeelgoods - the Ruby gem for the Fulfillment API
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
**Module namespace:** `Ifeelgoods::`
|
|
5
|
+
Public API exposed to ifeelgoods customers.
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
- API version: v2
|
|
10
|
+
- Package version: 0.2.0.beta.1
|
|
11
|
+
- Generator version: 7.24.0
|
|
12
|
+
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
11
13
|
|
|
12
|
-
|
|
13
|
-
Use this for simple scripts or when you prefer direct authentication:
|
|
14
|
+
## Installation
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
require 'ifeelgoods'
|
|
17
|
-
|
|
18
|
-
# Configure the SDK globally
|
|
19
|
-
Ifeelgoods.configure do |config|
|
|
20
|
-
config.scheme = 'https' # http for testing only [not recommended for production]
|
|
21
|
-
config.host = 'api.ifeelgoods.com'
|
|
22
|
-
# Sandbox: config.host = 'api-sandbox.ifeelgoods.com'
|
|
23
|
-
config.api_key['Api-Key'] = 'YOUR_API_KEY'
|
|
24
|
-
config.api_key['Api-Secret'] = 'YOUR_API_SECRET'
|
|
25
|
-
config.debugging = ENV['IFEELGOODS_DEBUG'] == 'true' # Optional: Enable debugging
|
|
26
|
-
end
|
|
16
|
+
### Build a gem
|
|
27
17
|
|
|
28
|
-
|
|
29
|
-
accounts_api = Ifeelgoods::AccountsApi.new
|
|
30
|
-
result = accounts_api.get_current_account
|
|
18
|
+
To build the Ruby code into a gem:
|
|
31
19
|
|
|
32
|
-
|
|
20
|
+
```shell
|
|
21
|
+
gem build ifeelgoods.gemspec
|
|
33
22
|
```
|
|
34
23
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
Use OAuth2 to exchange API Key + Secret for a bearer token, then cache it to avoid repeated token requests.
|
|
24
|
+
Then either install the gem locally:
|
|
38
25
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
# Set your API credentials
|
|
42
|
-
export IFEELGOODS_API_KEY='your-api-key'
|
|
43
|
-
export IFEELGOODS_API_SECRET='your-api-secret'
|
|
44
|
-
|
|
45
|
-
# Set OAuth endpoint (defaults to production)
|
|
46
|
-
export IFEELGOODS_OAUTH_URL='https://oauth.ifeelgoods.com'
|
|
47
|
-
# Or for sandbox:
|
|
48
|
-
# export IFEELGOODS_OAUTH_URL='https://oauth-sandbox.ifeelgoods.com'
|
|
26
|
+
```shell
|
|
27
|
+
gem install ./ifeelgoods-0.2.0.beta.1.gem
|
|
49
28
|
```
|
|
50
29
|
|
|
51
|
-
|
|
52
|
-
require 'ifeelgoods'
|
|
53
|
-
require 'net/http'
|
|
54
|
-
require 'json'
|
|
55
|
-
|
|
56
|
-
class OAuthTokenManager
|
|
57
|
-
# Default to production OAuth endpoint. Override with IFEELGOODS_OAUTH_URL environment variable.
|
|
58
|
-
# Production: https://oauth.ifeelgoods.com
|
|
59
|
-
# Sandbox: https://oauth-sandbox.ifeelgoods.com
|
|
60
|
-
DEFAULT_OAUTH_URL = 'https://oauth.ifeelgoods.com'
|
|
61
|
-
|
|
62
|
-
def initialize(api_key = nil, api_secret = nil, oauth_url = nil)
|
|
63
|
-
@api_key = api_key || ENV['IFEELGOODS_API_KEY']
|
|
64
|
-
@api_secret = api_secret || ENV['IFEELGOODS_API_SECRET']
|
|
65
|
-
@oauth_url = oauth_url || ENV['IFEELGOODS_OAUTH_URL'] || DEFAULT_OAUTH_URL
|
|
66
|
-
|
|
67
|
-
raise 'IFEELGOODS_API_KEY environment variable not set' if @api_key.nil?
|
|
68
|
-
raise 'IFEELGOODS_API_SECRET environment variable not set' if @api_secret.nil?
|
|
69
|
-
@token = nil
|
|
70
|
-
@token_expires_at = nil
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
def access_token
|
|
74
|
-
# Return cached token if still valid
|
|
75
|
-
return @token if @token && Time.now < @token_expires_at
|
|
76
|
-
|
|
77
|
-
# Fetch new token
|
|
78
|
-
fetch_new_token
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
private
|
|
82
|
-
|
|
83
|
-
def fetch_new_token
|
|
84
|
-
uri = URI("#{@oauth_url}/oauth/token")
|
|
85
|
-
|
|
86
|
-
request = Net::HTTP::Post.new(uri)
|
|
87
|
-
request.basic_auth(@api_key, @api_secret)
|
|
88
|
-
request['Content-Type'] = 'application/x-www-form-urlencoded'
|
|
89
|
-
request.body = 'grant_type=client_credentials'
|
|
90
|
-
|
|
91
|
-
http = Net::HTTP.new(uri.host, uri.port)
|
|
92
|
-
http.use_ssl = uri.scheme == 'https'
|
|
93
|
-
response = http.request(request)
|
|
94
|
-
|
|
95
|
-
if response.code.to_i == 200
|
|
96
|
-
data = JSON.parse(response.body)
|
|
97
|
-
@token = data['access_token']
|
|
98
|
-
@token_expires_at = Time.now + data['expires_in'] - 60 # Refresh 60s before expiry
|
|
99
|
-
@token
|
|
100
|
-
else
|
|
101
|
-
raise "Failed to get access token: #{response.body}"
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
end
|
|
30
|
+
(for development, run `gem install --dev ./ifeelgoods-0.2.0.beta.1.gem` to install the development dependencies)
|
|
105
31
|
|
|
106
|
-
|
|
107
|
-
token_manager = OAuthTokenManager.new # Reads from environment variables
|
|
32
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
108
33
|
|
|
109
|
-
|
|
110
|
-
api_client.config.host = 'https://api.ifeelgoods.com'
|
|
111
|
-
api_client.config.access_token_getter = -> { token_manager.access_token }
|
|
34
|
+
Finally add this to the Gemfile:
|
|
112
35
|
|
|
113
|
-
|
|
114
|
-
result = accounts_api.get_current_account
|
|
115
|
-
```
|
|
36
|
+
gem 'ifeelgoods', '~> 0.2.0.beta.1'
|
|
116
37
|
|
|
117
|
-
|
|
118
|
-
- ✅ Token is cached and reused (fewer network requests)
|
|
119
|
-
- ✅ Automatic refresh before expiry
|
|
120
|
-
- ✅ Recommended for production environments
|
|
121
|
-
- ✅ More secure (API credentials stay server-side)
|
|
38
|
+
### Install from Git
|
|
122
39
|
|
|
123
|
-
|
|
40
|
+
If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
|
|
124
41
|
|
|
125
|
-
|
|
42
|
+
gem 'ifeelgoods', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
|
|
126
43
|
|
|
127
|
-
|
|
128
|
-
gem install ifeelgoods
|
|
129
|
-
```
|
|
44
|
+
### Include the Ruby code directly
|
|
130
45
|
|
|
131
|
-
|
|
46
|
+
Include the Ruby code directly using `-I` as follows:
|
|
132
47
|
|
|
133
48
|
```shell
|
|
134
|
-
ruby -
|
|
49
|
+
ruby -Ilib script.rb
|
|
135
50
|
```
|
|
136
51
|
|
|
137
|
-
|
|
52
|
+
## Getting Started
|
|
138
53
|
|
|
139
|
-
|
|
54
|
+
Please follow the [installation](#installation) procedure and then run the following code:
|
|
140
55
|
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
gem install ./ifeelgoods-VERSION.gem
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
## Documentation
|
|
149
|
-
|
|
150
|
-
Full API documentation is available at:
|
|
56
|
+
```ruby
|
|
57
|
+
# Load the gem
|
|
58
|
+
require 'ifeelgoods'
|
|
151
59
|
|
|
152
|
-
|
|
153
|
-
|
|
60
|
+
# Setup authorization
|
|
61
|
+
Ifeelgoods.configure do |config|
|
|
62
|
+
# Configure API key authorization: api_key
|
|
63
|
+
config.api_key['Api-Key'] = 'YOUR API KEY'
|
|
64
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
65
|
+
# config.api_key_prefix['Api-Key'] = 'Bearer'
|
|
66
|
+
|
|
67
|
+
# Configure Bearer authorization: bearer_auth
|
|
68
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
69
|
+
# Configure a proc to get access tokens in lieu of the static access_token configuration
|
|
70
|
+
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
|
|
71
|
+
|
|
72
|
+
# Configure API key authorization: api_secret
|
|
73
|
+
config.api_key['Api-Secret'] = 'YOUR API KEY'
|
|
74
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
75
|
+
# config.api_key_prefix['Api-Secret'] = 'Bearer'
|
|
76
|
+
end
|
|
154
77
|
|
|
155
|
-
|
|
78
|
+
api_instance = Ifeelgoods::AccountsApi.new
|
|
156
79
|
|
|
157
|
-
|
|
80
|
+
begin
|
|
81
|
+
#Get current account
|
|
82
|
+
result = api_instance.get_current_account
|
|
83
|
+
p result
|
|
84
|
+
rescue Ifeelgoods::ApiError => e
|
|
85
|
+
puts "Exception when calling AccountsApi->get_current_account: #{e}"
|
|
86
|
+
end
|
|
158
87
|
|
|
159
|
-
```
|
|
160
|
-
require 'ifeelgoods'
|
|
88
|
+
```
|
|
161
89
|
|
|
162
|
-
|
|
163
|
-
|
|
90
|
+
## Documentation for API Endpoints
|
|
91
|
+
|
|
92
|
+
All URIs are relative to *https://api-sandbox.ifeelgoods.com*
|
|
93
|
+
|
|
94
|
+
Class | Method | HTTP request | Description
|
|
95
|
+
------------ | ------------- | ------------- | -------------
|
|
96
|
+
*Ifeelgoods::AccountsApi* | [**get_current_account**](docs/AccountsApi.md#get_current_account) | **GET** /fulfillment/v2/accounts/me | Get current account
|
|
97
|
+
*Ifeelgoods::ClientsApi* | [**get_client_budget_history**](docs/ClientsApi.md#get_client_budget_history) | **GET** /fulfillment/v2/clients/{client_id}/budget/history | Get a Client budget history
|
|
98
|
+
*Ifeelgoods::ClientsApi* | [**get_client_by_id**](docs/ClientsApi.md#get_client_by_id) | **GET** /fulfillment/v2/clients/{client_id} | Get a Client
|
|
99
|
+
*Ifeelgoods::ClientsApi* | [**list_client_discounts**](docs/ClientsApi.md#list_client_discounts) | **GET** /fulfillment/v2/clients/{client_id}/discounts | List all discounts
|
|
100
|
+
*Ifeelgoods::ClientsApi* | [**list_clients**](docs/ClientsApi.md#list_clients) | **GET** /fulfillment/v2/clients | List all Clients
|
|
101
|
+
*Ifeelgoods::PromotionsApi* | [**get_promotion_by_id**](docs/PromotionsApi.md#get_promotion_by_id) | **GET** /fulfillment/v2/promotions/{promotion_id} | Get a promotion
|
|
102
|
+
*Ifeelgoods::PromotionsApi* | [**list_client_promotions**](docs/PromotionsApi.md#list_client_promotions) | **GET** /fulfillment/v2/clients/{client_id}/promotions | List all Promotions
|
|
103
|
+
*Ifeelgoods::RedemptionsApi* | [**activate_redemption**](docs/RedemptionsApi.md#activate_redemption) | **POST** /fulfillment/v2/redemptions/{redemption_id}/actions/activate | Activate
|
|
104
|
+
*Ifeelgoods::RedemptionsApi* | [**book_redemption**](docs/RedemptionsApi.md#book_redemption) | **POST** /fulfillment/v2/promotions/{promotion_id}/rewards/{reward_sku}/redemptions/book | Book
|
|
105
|
+
*Ifeelgoods::RedemptionsApi* | [**cancel_redemption**](docs/RedemptionsApi.md#cancel_redemption) | **POST** /fulfillment/v2/redemptions/{redemption_id}/actions/cancel | Cancel
|
|
106
|
+
*Ifeelgoods::RedemptionsApi* | [**card_consult_redemption**](docs/RedemptionsApi.md#card_consult_redemption) | **GET** /fulfillment/v2/redemptions/{redemption_id}/card_consult | Consult Card
|
|
107
|
+
*Ifeelgoods::RedemptionsApi* | [**create_and_redeem**](docs/RedemptionsApi.md#create_and_redeem) | **POST** /fulfillment/v2/promotions/{promotion_id}/rewards/{reward_sku}/redemptions/redeem | Create and Redeem
|
|
108
|
+
*Ifeelgoods::RedemptionsApi* | [**create_redemption**](docs/RedemptionsApi.md#create_redemption) | **POST** /fulfillment/v2/promotions/{promotion_id}/redemptions | Create a redemption
|
|
109
|
+
*Ifeelgoods::RedemptionsApi* | [**get_redemption_by_id**](docs/RedemptionsApi.md#get_redemption_by_id) | **GET** /fulfillment/v2/redemptions/{redemption_id} | Get a redemption
|
|
110
|
+
*Ifeelgoods::RedemptionsApi* | [**list_redemptions**](docs/RedemptionsApi.md#list_redemptions) | **GET** /fulfillment/v2/promotions/{promotion_id}/redemptions | List all Redemptions
|
|
111
|
+
*Ifeelgoods::RedemptionsApi* | [**redeem_redemption**](docs/RedemptionsApi.md#redeem_redemption) | **POST** /fulfillment/v2/redemptions/{redemption_id}/actions/redeem | Redeem
|
|
112
|
+
*Ifeelgoods::RedemptionsApi* | [**refund_redemption**](docs/RedemptionsApi.md#refund_redemption) | **POST** /fulfillment/v2/redemptions/{redemption_id}/actions/refund | Refund
|
|
113
|
+
*Ifeelgoods::RewardsApi* | [**get_reward_by_sku**](docs/RewardsApi.md#get_reward_by_sku) | **GET** /fulfillment/v2/rewards/{sku} | Get a Reward
|
|
114
|
+
*Ifeelgoods::RewardsApi* | [**list_rewards**](docs/RewardsApi.md#list_rewards) | **GET** /fulfillment/v2/rewards | List all Rewards
|
|
115
|
+
*Ifeelgoods::StatsApi* | [**get_redemption_stats**](docs/StatsApi.md#get_redemption_stats) | **GET** /fulfillment/v2/clients/{client_id}/stats | Get Redemption Stats
|
|
116
|
+
*Ifeelgoods::VendorPlacesApi* | [**list_client_vendor_places**](docs/VendorPlacesApi.md#list_client_vendor_places) | **GET** /fulfillment/v2/clients/{client_id}/vendor_places | List all vendor places
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## Documentation for Models
|
|
120
|
+
|
|
121
|
+
- [Ifeelgoods::Account](docs/Account.md)
|
|
122
|
+
- [Ifeelgoods::ActivateRedemptionRequest](docs/ActivateRedemptionRequest.md)
|
|
123
|
+
- [Ifeelgoods::ActivateRedemptionRequestData](docs/ActivateRedemptionRequestData.md)
|
|
124
|
+
- [Ifeelgoods::Address](docs/Address.md)
|
|
125
|
+
- [Ifeelgoods::BrandSummary](docs/BrandSummary.md)
|
|
126
|
+
- [Ifeelgoods::BudgetLineItem](docs/BudgetLineItem.md)
|
|
127
|
+
- [Ifeelgoods::CardConsultRedemption200Response](docs/CardConsultRedemption200Response.md)
|
|
128
|
+
- [Ifeelgoods::CardConsultRedemption200ResponseData](docs/CardConsultRedemption200ResponseData.md)
|
|
129
|
+
- [Ifeelgoods::CardConsultRedemption422Response](docs/CardConsultRedemption422Response.md)
|
|
130
|
+
- [Ifeelgoods::ClientDetails](docs/ClientDetails.md)
|
|
131
|
+
- [Ifeelgoods::ClientSummary](docs/ClientSummary.md)
|
|
132
|
+
- [Ifeelgoods::ClientSummaryBudgetAlerts](docs/ClientSummaryBudgetAlerts.md)
|
|
133
|
+
- [Ifeelgoods::CreateAndRedeemRequest](docs/CreateAndRedeemRequest.md)
|
|
134
|
+
- [Ifeelgoods::CreateAndRedeemRequestData](docs/CreateAndRedeemRequestData.md)
|
|
135
|
+
- [Ifeelgoods::CreateRedemption201Response](docs/CreateRedemption201Response.md)
|
|
136
|
+
- [Ifeelgoods::CreateRedemption422Response](docs/CreateRedemption422Response.md)
|
|
137
|
+
- [Ifeelgoods::CreateRedemptionRequest](docs/CreateRedemptionRequest.md)
|
|
138
|
+
- [Ifeelgoods::CreateRedemptionRequestData](docs/CreateRedemptionRequestData.md)
|
|
139
|
+
- [Ifeelgoods::CreateRedemptionRequestDataCustomization](docs/CreateRedemptionRequestDataCustomization.md)
|
|
140
|
+
- [Ifeelgoods::CreateRedemptionRequestDataCustomizationPdf](docs/CreateRedemptionRequestDataCustomizationPdf.md)
|
|
141
|
+
- [Ifeelgoods::CreateRedemptionRequestDataReward](docs/CreateRedemptionRequestDataReward.md)
|
|
142
|
+
- [Ifeelgoods::CreateRedemptionRequestDataValue](docs/CreateRedemptionRequestDataValue.md)
|
|
143
|
+
- [Ifeelgoods::Dimension](docs/Dimension.md)
|
|
144
|
+
- [Ifeelgoods::DimensionDenomination](docs/DimensionDenomination.md)
|
|
145
|
+
- [Ifeelgoods::DiscountSummary](docs/DiscountSummary.md)
|
|
146
|
+
- [Ifeelgoods::ErrorResponse](docs/ErrorResponse.md)
|
|
147
|
+
- [Ifeelgoods::GetClientBudgetHistory200Response](docs/GetClientBudgetHistory200Response.md)
|
|
148
|
+
- [Ifeelgoods::GetClientById200Response](docs/GetClientById200Response.md)
|
|
149
|
+
- [Ifeelgoods::GetCurrentAccount200Response](docs/GetCurrentAccount200Response.md)
|
|
150
|
+
- [Ifeelgoods::GetPromotionByID200Response](docs/GetPromotionByID200Response.md)
|
|
151
|
+
- [Ifeelgoods::GetPromotionByID401Response](docs/GetPromotionByID401Response.md)
|
|
152
|
+
- [Ifeelgoods::GetPromotionByID404Response](docs/GetPromotionByID404Response.md)
|
|
153
|
+
- [Ifeelgoods::GetRedemptionStats200Response](docs/GetRedemptionStats200Response.md)
|
|
154
|
+
- [Ifeelgoods::GetRewardBySKU200Response](docs/GetRewardBySKU200Response.md)
|
|
155
|
+
- [Ifeelgoods::ListClientDiscounts200Response](docs/ListClientDiscounts200Response.md)
|
|
156
|
+
- [Ifeelgoods::ListClientPromotions200Response](docs/ListClientPromotions200Response.md)
|
|
157
|
+
- [Ifeelgoods::ListClientPromotions200ResponsePaging](docs/ListClientPromotions200ResponsePaging.md)
|
|
158
|
+
- [Ifeelgoods::ListClientPromotions401Response](docs/ListClientPromotions401Response.md)
|
|
159
|
+
- [Ifeelgoods::ListClientVendorPlaces200Response](docs/ListClientVendorPlaces200Response.md)
|
|
160
|
+
- [Ifeelgoods::ListClients200Response](docs/ListClients200Response.md)
|
|
161
|
+
- [Ifeelgoods::ListRedemptions200Response](docs/ListRedemptions200Response.md)
|
|
162
|
+
- [Ifeelgoods::ListRewards200Response](docs/ListRewards200Response.md)
|
|
163
|
+
- [Ifeelgoods::ProductSummary](docs/ProductSummary.md)
|
|
164
|
+
- [Ifeelgoods::ProductType](docs/ProductType.md)
|
|
165
|
+
- [Ifeelgoods::PromotionDetails](docs/PromotionDetails.md)
|
|
166
|
+
- [Ifeelgoods::PromotionDetailsClient](docs/PromotionDetailsClient.md)
|
|
167
|
+
- [Ifeelgoods::PromotionDetailsRewardsInner](docs/PromotionDetailsRewardsInner.md)
|
|
168
|
+
- [Ifeelgoods::Redemption](docs/Redemption.md)
|
|
169
|
+
- [Ifeelgoods::RedemptionPromotion](docs/RedemptionPromotion.md)
|
|
170
|
+
- [Ifeelgoods::RedemptionReward](docs/RedemptionReward.md)
|
|
171
|
+
- [Ifeelgoods::RedemptionRewardFormat](docs/RedemptionRewardFormat.md)
|
|
172
|
+
- [Ifeelgoods::RedemptionValue](docs/RedemptionValue.md)
|
|
173
|
+
- [Ifeelgoods::RewardDetails](docs/RewardDetails.md)
|
|
174
|
+
- [Ifeelgoods::RewardDetailsBrand](docs/RewardDetailsBrand.md)
|
|
175
|
+
- [Ifeelgoods::RewardDetailsDimensions](docs/RewardDetailsDimensions.md)
|
|
176
|
+
- [Ifeelgoods::RewardDetailsProduct](docs/RewardDetailsProduct.md)
|
|
177
|
+
- [Ifeelgoods::RewardDetailsProductType](docs/RewardDetailsProductType.md)
|
|
178
|
+
- [Ifeelgoods::RewardDetailsTargeting](docs/RewardDetailsTargeting.md)
|
|
179
|
+
- [Ifeelgoods::RewardFormat](docs/RewardFormat.md)
|
|
180
|
+
- [Ifeelgoods::Stats](docs/Stats.md)
|
|
181
|
+
- [Ifeelgoods::StatsTimeframe](docs/StatsTimeframe.md)
|
|
182
|
+
- [Ifeelgoods::StatsValuesInner](docs/StatsValuesInner.md)
|
|
183
|
+
- [Ifeelgoods::StatsValuesInnerGroupByInner](docs/StatsValuesInnerGroupByInner.md)
|
|
184
|
+
- [Ifeelgoods::StatsValuesInnerStates](docs/StatsValuesInnerStates.md)
|
|
185
|
+
- [Ifeelgoods::User](docs/User.md)
|
|
186
|
+
- [Ifeelgoods::VendorPlace](docs/VendorPlace.md)
|
|
187
|
+
- [Ifeelgoods::VendorPlaceBrand](docs/VendorPlaceBrand.md)
|
|
188
|
+
- [Ifeelgoods::VendorPlaceGeoloc](docs/VendorPlaceGeoloc.md)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
## Documentation for Authorization
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
Authentication schemes defined for the API:
|
|
195
|
+
### bearer_auth
|
|
196
|
+
|
|
197
|
+
- **Type**: Bearer authentication
|
|
198
|
+
|
|
199
|
+
### api_key
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
- **Type**: API key
|
|
203
|
+
- **API key parameter name**: Api-Key
|
|
204
|
+
- **Location**: HTTP header
|
|
205
|
+
|
|
206
|
+
### api_secret
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
- **Type**: API key
|
|
210
|
+
- **API key parameter name**: Api-Secret
|
|
211
|
+
- **Location**: HTTP header
|
|
164
212
|
|
|
165
|
-
# Explore a specific API
|
|
166
|
-
Ifeelgoods::AccountsApi.instance_methods(false)
|
|
167
|
-
```
|
data/docs/RewardDetails.md
CHANGED
|
@@ -56,7 +56,7 @@ instance = Ifeelgoods::RewardDetails.new(
|
|
|
56
56
|
product: null,
|
|
57
57
|
product_type: null,
|
|
58
58
|
usages: ["primary"],
|
|
59
|
-
expiration_date:
|
|
59
|
+
expiration_date: 2023-03-31,
|
|
60
60
|
categories: ["Sports"],
|
|
61
61
|
description: null,
|
|
62
62
|
country: ["US","CA"],
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
require 'ifeelgoods'
|
|
21
21
|
|
|
22
22
|
instance = Ifeelgoods::StatsValuesInnerStates.new(
|
|
23
|
-
pending:
|
|
24
|
-
booked:
|
|
25
|
-
redeemed:
|
|
26
|
-
denied:
|
|
27
|
-
failed:
|
|
28
|
-
refunded:
|
|
29
|
-
blocked:
|
|
30
|
-
canceled:
|
|
31
|
-
expired:
|
|
23
|
+
pending: 1,
|
|
24
|
+
booked: 1,
|
|
25
|
+
redeemed: 1,
|
|
26
|
+
denied: 1,
|
|
27
|
+
failed: 1,
|
|
28
|
+
refunded: 1,
|
|
29
|
+
blocked: 1,
|
|
30
|
+
canceled: 1,
|
|
31
|
+
expired: 1
|
|
32
32
|
)
|
|
33
33
|
```
|
|
34
34
|
|
data/lib/ifeelgoods/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ifeelgoods
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.1
|
|
4
|
+
version: 0.2.0.beta.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- IFeelGoods Team
|
|
@@ -310,9 +310,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
310
310
|
version: '2.7'
|
|
311
311
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
requirements:
|
|
313
|
-
- - "
|
|
313
|
+
- - ">"
|
|
314
314
|
- !ruby/object:Gem::Version
|
|
315
|
-
version:
|
|
315
|
+
version: 1.3.1
|
|
316
316
|
requirements: []
|
|
317
317
|
rubygems_version: 3.4.19
|
|
318
318
|
signing_key:
|