Skip to content

Commit

Permalink
Merge pull request #41 from tremendous-rewards/lm/regen
Browse files Browse the repository at this point in the history
fix: regenerate internal classes after spec cleanup
  • Loading branch information
lucasmazza authored Sep 26, 2024
2 parents 001d23f + 3800706 commit c26f351
Show file tree
Hide file tree
Showing 31 changed files with 4,771 additions and 108 deletions.
14 changes: 14 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ lib/tremendous/models/create_member.rb
lib/tremendous/models/create_member200_response.rb
lib/tremendous/models/create_member_request.rb
lib/tremendous/models/create_order200_response.rb
lib/tremendous/models/create_order200_response_order.rb
lib/tremendous/models/create_order200_response_order_rewards_inner.rb
lib/tremendous/models/create_order200_response_order_rewards_inner_delivery.rb
lib/tremendous/models/create_order201_response.rb
lib/tremendous/models/create_order_request.rb
lib/tremendous/models/create_organization.rb
lib/tremendous/models/create_organization200_response.rb
lib/tremendous/models/create_organization200_response_organization.rb
lib/tremendous/models/create_organization_for_response.rb
lib/tremendous/models/create_organization_properties.rb
lib/tremendous/models/create_organization_request.rb
lib/tremendous/models/create_organization_request_copy_settings.rb
lib/tremendous/models/create_webhook200_response.rb
Expand All @@ -33,6 +39,7 @@ lib/tremendous/models/currency_codes.rb
lib/tremendous/models/custom_field.rb
lib/tremendous/models/delete_fraud_rule200_response.rb
lib/tremendous/models/delivery_details.rb
lib/tremendous/models/delivery_details_with_link.rb
lib/tremendous/models/delivery_method.rb
lib/tremendous/models/delivery_status.rb
lib/tremendous/models/error_model.rb
Expand Down Expand Up @@ -130,11 +137,14 @@ lib/tremendous/models/order.rb
lib/tremendous/models/order_base.rb
lib/tremendous/models/order_base_payment.rb
lib/tremendous/models/order_status.rb
lib/tremendous/models/order_with_link.rb
lib/tremendous/models/order_with_link_rewards_inner.rb
lib/tremendous/models/order_without_link.rb
lib/tremendous/models/order_without_link_rewards_inner.rb
lib/tremendous/models/organization.rb
lib/tremendous/models/payment_details.rb
lib/tremendous/models/payment_details_refund.rb
lib/tremendous/models/payout.rb
lib/tremendous/models/product.rb
lib/tremendous/models/recipient.rb
lib/tremendous/models/refund_details.rb
Expand All @@ -154,6 +164,8 @@ lib/tremendous/models/reward_for_order_create.rb
lib/tremendous/models/reward_link.rb
lib/tremendous/models/reward_token.rb
lib/tremendous/models/reward_value.rb
lib/tremendous/models/reward_with_link.rb
lib/tremendous/models/reward_with_link_delivery.rb
lib/tremendous/models/reward_without_link.rb
lib/tremendous/models/reward_without_link_delivery.rb
lib/tremendous/models/role.rb
Expand All @@ -163,6 +175,8 @@ lib/tremendous/models/single_reward_order_payment.rb
lib/tremendous/models/single_reward_order_reward.rb
lib/tremendous/models/single_reward_order_reward_custom_fields_inner.rb
lib/tremendous/models/single_reward_order_reward_delivery.rb
lib/tremendous/models/single_reward_order_with_link.rb
lib/tremendous/models/single_reward_order_with_link_order.rb
lib/tremendous/models/single_reward_order_without_link.rb
lib/tremendous/models/single_reward_order_without_link_order.rb
lib/tremendous/models/update_campaign.rb
Expand Down
14 changes: 14 additions & 0 deletions lib/tremendous.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@
require 'tremendous/models/create_member200_response'
require 'tremendous/models/create_member_request'
require 'tremendous/models/create_order200_response'
require 'tremendous/models/create_order200_response_order'
require 'tremendous/models/create_order200_response_order_rewards_inner'
require 'tremendous/models/create_order200_response_order_rewards_inner_delivery'
require 'tremendous/models/create_order201_response'
require 'tremendous/models/create_order_request'
require 'tremendous/models/create_organization'
require 'tremendous/models/create_organization200_response'
require 'tremendous/models/create_organization200_response_organization'
require 'tremendous/models/create_organization_for_response'
require 'tremendous/models/create_organization_properties'
require 'tremendous/models/create_organization_request'
require 'tremendous/models/create_organization_request_copy_settings'
require 'tremendous/models/create_webhook200_response'
Expand All @@ -47,6 +53,7 @@
require 'tremendous/models/custom_field'
require 'tremendous/models/delete_fraud_rule200_response'
require 'tremendous/models/delivery_details'
require 'tremendous/models/delivery_details_with_link'
require 'tremendous/models/delivery_method'
require 'tremendous/models/delivery_status'
require 'tremendous/models/error_model'
Expand Down Expand Up @@ -144,11 +151,14 @@
require 'tremendous/models/order_base'
require 'tremendous/models/order_base_payment'
require 'tremendous/models/order_status'
require 'tremendous/models/order_with_link'
require 'tremendous/models/order_with_link_rewards_inner'
require 'tremendous/models/order_without_link'
require 'tremendous/models/order_without_link_rewards_inner'
require 'tremendous/models/organization'
require 'tremendous/models/payment_details'
require 'tremendous/models/payment_details_refund'
require 'tremendous/models/payout'
require 'tremendous/models/product'
require 'tremendous/models/recipient'
require 'tremendous/models/refund_details'
Expand All @@ -168,6 +178,8 @@
require 'tremendous/models/reward_link'
require 'tremendous/models/reward_token'
require 'tremendous/models/reward_value'
require 'tremendous/models/reward_with_link'
require 'tremendous/models/reward_with_link_delivery'
require 'tremendous/models/reward_without_link'
require 'tremendous/models/reward_without_link_delivery'
require 'tremendous/models/role'
Expand All @@ -177,6 +189,8 @@
require 'tremendous/models/single_reward_order_reward'
require 'tremendous/models/single_reward_order_reward_custom_fields_inner'
require 'tremendous/models/single_reward_order_reward_delivery'
require 'tremendous/models/single_reward_order_with_link'
require 'tremendous/models/single_reward_order_with_link_order'
require 'tremendous/models/single_reward_order_without_link'
require 'tremendous/models/single_reward_order_without_link_order'
require 'tremendous/models/update_campaign'
Expand Down
18 changes: 9 additions & 9 deletions lib/tremendous/api/tremendous_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def initialize(api_client = ApiClient.default)
# Approves an order that is pending review, identified by the given `id` in the URL. Approvals is a feature that requires orders to be approved by an organization admin before they are sent out. To enable approvals for your organization, please enable 'Allow approvals via API' via the organization''s 'Order Approvals' settings from the Tremendous dashboard.
# @param id [String] ID of the order that should be approved. In case the order has an `external_id` reference supplied by the customer on creation, it's possible to use it instead.
# @param [Hash] opts the optional parameters
# @return [CreateOrder200Response]
# @return [CreateOrder201Response]
def approve_order(id, opts = {})
data, _status_code, _headers = approve_order_with_http_info(id, opts)
data
Expand All @@ -33,7 +33,7 @@ def approve_order(id, opts = {})
# Approves an order that is pending review, identified by the given `id` in the URL. Approvals is a feature that requires orders to be approved by an organization admin before they are sent out. To enable approvals for your organization, please enable 'Allow approvals via API' via the organization''s 'Order Approvals' settings from the Tremendous dashboard.
# @param id [String] ID of the order that should be approved. In case the order has an `external_id` reference supplied by the customer on creation, it's possible to use it instead.
# @param [Hash] opts the optional parameters
# @return [Array<(CreateOrder200Response, Integer, Hash)>] CreateOrder200Response data, response status code and response headers
# @return [Array<(CreateOrder201Response, Integer, Hash)>] CreateOrder201Response data, response status code and response headers
def approve_order_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TremendousApi.approve_order ...'
Expand Down Expand Up @@ -65,7 +65,7 @@ def approve_order_with_http_info(id, opts = {})
post_body = opts[:debug_body]

# return_type
return_type = opts[:debug_return_type] || 'CreateOrder200Response'
return_type = opts[:debug_return_type] || 'CreateOrder201Response'

# auth_names
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
Expand Down Expand Up @@ -1481,7 +1481,7 @@ def get_member_with_http_info(id, opts = {})
# Retrieve the order, identified by the given `id` in the URL
# @param id [String] ID of the order that should be retrieved. In case the order has an &#x60;external_id&#x60; reference supplied by the customer on creation, it&#39;s possible to use it instead.
# @param [Hash] opts the optional parameters
# @return [CreateOrder200Response]
# @return [CreateOrder201Response]
def get_order(id, opts = {})
data, _status_code, _headers = get_order_with_http_info(id, opts)
data
Expand All @@ -1491,7 +1491,7 @@ def get_order(id, opts = {})
# Retrieve the order, identified by the given &#x60;id&#x60; in the URL
# @param id [String] ID of the order that should be retrieved. In case the order has an &#x60;external_id&#x60; reference supplied by the customer on creation, it&#39;s possible to use it instead.
# @param [Hash] opts the optional parameters
# @return [Array<(CreateOrder200Response, Integer, Hash)>] CreateOrder200Response data, response status code and response headers
# @return [Array<(CreateOrder201Response, Integer, Hash)>] CreateOrder201Response data, response status code and response headers
def get_order_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TremendousApi.get_order ...'
Expand All @@ -1518,7 +1518,7 @@ def get_order_with_http_info(id, opts = {})
post_body = opts[:debug_body]

# return_type
return_type = opts[:debug_return_type] || 'CreateOrder200Response'
return_type = opts[:debug_return_type] || 'CreateOrder201Response'

# auth_names
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
Expand Down Expand Up @@ -2822,7 +2822,7 @@ def list_webhooks_with_http_info(opts = {})
# Rejects an order that is pending review, identified by the given `id` in the URL. Approvals is a feature that requires orders to be approved by an organization admin before they are sent out. To enable approvals for your organization, please enable 'Allow approvals via API' via the organization''s 'Order Approvals' settings from the Tremendous dashboard.
# @param id [String] ID of the order that should be rejected. In case the order has an &#x60;external_id&#x60; reference supplied by the customer on creation, it&#39;s possible to use it instead.
# @param [Hash] opts the optional parameters
# @return [CreateOrder200Response]
# @return [CreateOrder201Response]
def reject_order(id, opts = {})
data, _status_code, _headers = reject_order_with_http_info(id, opts)
data
Expand All @@ -2832,7 +2832,7 @@ def reject_order(id, opts = {})
# Rejects an order that is pending review, identified by the given &#x60;id&#x60; in the URL. Approvals is a feature that requires orders to be approved by an organization admin before they are sent out. To enable approvals for your organization, please enable &#39;Allow approvals via API&#39; via the organization&#39;&#39;s &#39;Order Approvals&#39; settings from the Tremendous dashboard.
# @param id [String] ID of the order that should be rejected. In case the order has an &#x60;external_id&#x60; reference supplied by the customer on creation, it&#39;s possible to use it instead.
# @param [Hash] opts the optional parameters
# @return [Array<(CreateOrder200Response, Integer, Hash)>] CreateOrder200Response data, response status code and response headers
# @return [Array<(CreateOrder201Response, Integer, Hash)>] CreateOrder201Response data, response status code and response headers
def reject_order_with_http_info(id, opts = {})
if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: TremendousApi.reject_order ...'
Expand Down Expand Up @@ -2864,7 +2864,7 @@ def reject_order_with_http_info(id, opts = {})
post_body = opts[:debug_body]

# return_type
return_type = opts[:debug_return_type] || 'CreateOrder200Response'
return_type = opts[:debug_return_type] || 'CreateOrder201Response'

# auth_names
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
Expand Down
2 changes: 1 addition & 1 deletion lib/tremendous/models/create_order200_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'order' => :'ListOrders200ResponseOrdersInner'
:'order' => :'CreateOrder200ResponseOrder'
}
end

Expand Down
Loading

0 comments on commit c26f351

Please sign in to comment.