tremendous_ruby 5.5.0 → 5.7.0
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/lib/tremendous/api/tremendous_api.rb +54 -256
- data/lib/tremendous/models/base_order_for_create.rb +1 -1
- data/lib/tremendous/models/create_order200_response.rb +1 -1
- data/lib/tremendous/models/create_order200_response_order.rb +403 -0
- data/lib/tremendous/models/create_order200_response_order_rewards_inner.rb +326 -0
- data/lib/tremendous/models/create_order200_response_order_rewards_inner_delivery.rb +296 -0
- data/lib/tremendous/models/{create_public_key_request.rb → create_order201_response.rb} +14 -15
- data/lib/tremendous/models/create_order_request.rb +1 -1
- data/lib/tremendous/models/create_organization.rb +51 -4
- data/lib/tremendous/models/create_organization200_response_organization.rb +20 -45
- data/lib/tremendous/models/{public_keys_response_public_keys_inner.rb → create_organization_for_response.rb} +72 -20
- data/lib/tremendous/models/{public_key.rb → create_organization_properties.rb} +57 -20
- data/lib/tremendous/models/create_organization_request.rb +7 -0
- data/lib/tremendous/models/create_report201_response.rb +231 -0
- data/lib/tremendous/models/create_report201_response_report.rb +291 -0
- data/lib/tremendous/models/create_report_request.rb +295 -0
- data/lib/tremendous/models/{create_public_key200_response.rb → create_report_request_filters.rb} +12 -17
- data/lib/tremendous/models/{create_invoice.rb → create_report_request_filters_digital_rewards.rb} +128 -32
- data/lib/tremendous/models/{create_public_key.rb → create_report_request_filters_digital_rewards_amount.rb} +22 -18
- data/lib/tremendous/models/{public_keys_response.rb → create_report_request_filters_digital_rewards_created_at.rb} +22 -19
- data/lib/tremendous/models/delivery_details.rb +0 -14
- data/lib/tremendous/models/delivery_details_with_link.rb +296 -0
- data/lib/tremendous/models/error_model.rb +11 -1
- data/lib/tremendous/models/fraud_rule400_response.rb +11 -1
- data/lib/tremendous/models/fraud_rule422_response.rb +11 -1
- data/lib/tremendous/models/fraud_rules_list_item.rb +4 -2
- data/lib/tremendous/models/generate_reward_link403_response.rb +11 -1
- data/lib/tremendous/models/invoice.rb +10 -1
- data/lib/tremendous/models/list_fraud_reviews200_response.rb +21 -4
- data/lib/tremendous/models/list_fraud_rules200_response_fraud_rules_inner.rb +4 -2
- data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta.rb +37 -7
- data/lib/tremendous/models/list_funding_sources200_response_funding_sources_inner_meta_failure_details.rb +225 -0
- data/lib/tremendous/models/list_invoices200_response_invoices_inner.rb +10 -1
- data/lib/tremendous/models/list_orders200_response_orders_inner_payment.rb +4 -48
- data/lib/tremendous/models/list_rewards200_response_rewards_inner_delivery.rb +0 -14
- data/lib/tremendous/models/list_rewards401_response.rb +11 -1
- data/lib/tremendous/models/list_rewards401_response_errors.rb +4 -2
- data/lib/tremendous/models/list_rewards429_response.rb +11 -1
- data/lib/tremendous/models/order_base_payment.rb +4 -48
- data/lib/tremendous/models/order_with_link.rb +403 -0
- data/lib/tremendous/models/order_with_link_rewards_inner.rb +385 -0
- data/lib/tremendous/models/payment_details.rb +4 -48
- data/lib/tremendous/models/payout.rb +352 -0
- data/lib/tremendous/models/report.rb +291 -0
- data/lib/tremendous/models/resend_reward422_response.rb +11 -1
- data/lib/tremendous/models/resend_reward_request.rb +225 -0
- data/lib/tremendous/models/reward_for_order_create.rb +1 -1
- data/lib/tremendous/models/{single_reward_order1_reward.rb → reward_with_link.rb} +78 -16
- data/lib/tremendous/models/reward_with_link_delivery.rb +296 -0
- data/lib/tremendous/models/reward_without_link_delivery.rb +0 -14
- data/lib/tremendous/models/single_reward_order.rb +1 -1
- data/lib/tremendous/models/{single_reward_order1_payment.rb → single_reward_order_payment.rb} +3 -3
- data/lib/tremendous/models/single_reward_order_reward.rb +3 -75
- data/lib/tremendous/models/{single_reward_order1_reward_custom_fields_inner.rb → single_reward_order_reward_custom_fields_inner.rb} +3 -3
- data/lib/tremendous/models/{single_reward_order1_reward_delivery.rb → single_reward_order_reward_delivery.rb} +3 -3
- data/lib/tremendous/models/{test_public_key.rb → single_reward_order_with_link.rb} +14 -15
- data/lib/tremendous/models/single_reward_order_with_link_order.rb +403 -0
- data/lib/tremendous/version.rb +1 -1
- data/lib/tremendous.rb +27 -14
- metadata +29 -16
- data/lib/tremendous/models/single_reward_order1.rb +0 -242
- data/lib/tremendous/models/test_public_key_request.rb +0 -222
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 195da80d84c9b36ee4e1f637992aa13deface61e0ab23e16b8987c1285b554f4
|
4
|
+
data.tar.gz: 4cee12139802e096dba6067ead8eb03349cdb94f75b8b075d0336bf8f4241043
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d74b168ef7ee0c64df551edce823e2656ee9be73970b50240dbc421b64b2b36d584ed1bea33026de07c9073ad53f0a688d3334fe6e1c4017f2bdda0cd73cb832
|
7
|
+
data.tar.gz: 7aa7bb52a9c9b443f9d0ea2ccb807392963d9773fd00ceba6d8a647d47c31bfc15fd1efd75aba167b747f8518e95969d8d9aa1793bfb5d9d2464922766fd6293
|
@@ -23,7 +23,7 @@ module Tremendous
|
|
23
23
|
# 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.
|
24
24
|
# @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.
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [
|
26
|
+
# @return [CreateOrder201Response]
|
27
27
|
def approve_order(id, opts = {})
|
28
28
|
data, _status_code, _headers = approve_order_with_http_info(id, opts)
|
29
29
|
data
|
@@ -33,7 +33,7 @@ module Tremendous
|
|
33
33
|
# 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.
|
34
34
|
# @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.
|
35
35
|
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(
|
36
|
+
# @return [Array<(CreateOrder201Response, Integer, Hash)>] CreateOrder201Response data, response status code and response headers
|
37
37
|
def approve_order_with_http_info(id, opts = {})
|
38
38
|
if @api_client.config.debugging
|
39
39
|
@api_client.config.logger.debug 'Calling API: TremendousApi.approve_order ...'
|
@@ -65,7 +65,7 @@ module Tremendous
|
|
65
65
|
post_body = opts[:debug_body]
|
66
66
|
|
67
67
|
# return_type
|
68
|
-
return_type = opts[:debug_return_type] || '
|
68
|
+
return_type = opts[:debug_return_type] || 'CreateOrder201Response'
|
69
69
|
|
70
70
|
# auth_names
|
71
71
|
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
|
@@ -545,31 +545,31 @@ module Tremendous
|
|
545
545
|
return data, status_code, headers
|
546
546
|
end
|
547
547
|
|
548
|
-
# Create
|
549
|
-
# Creating a
|
550
|
-
# @param
|
548
|
+
# Create report
|
549
|
+
# Creating a report allows your organization to programmatically retrieve information that's available in our dashboard UI. This request creates a new report object with a unique ID, and kicks off an async report generation. To retrieve a completed report, either poll `/api/v2/reports/{id}` or listen for REPORTS webhook event. ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">report_type</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Type of report for retrieval. <table> <thead> <tr> <th>Report type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>digital_rewards</code></td> <td>Report for Tremendous digital reward history</td> </tr> </tbody> </table></p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">format</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Format the report will be generated in. <table> <thead> <tr> <th>Format</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>csv</code></td> <td>CSV format for report</td> </tr> </tbody> </table></p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">filters</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Filters to apply to the report. Corresponds to the filters provided in the dashboard</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">digital_rewards</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Filters object for a <code>report_type: digital_rewards</code> report</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Amount of the rewards returned in the report</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">gte</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Minimum amount of the rewards that should be returned in the report</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">lte</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Maximum amount of the rewards that should be returned in the report</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the Tremendous campaign that this report should be limited to</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Creation dates of rewards returned in the report</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">gte</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Minimum date the reward was created</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">lte</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Maximum date the reward was created</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivered_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Delivery date for gifts that should be returned in the report</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery_method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Delivery method for rewards returned in the report</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the Tremendous order that this report should be limited to</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">order_status</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Order status for rewards returned in the report</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">status</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>Status for rewards returned in the report</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ## Rate limits Some reports may take a long time to generate and we limit the number of reports that can be simulataneously generated by an organization at a given time. If you exceed the rate limit, you'll receive a `429` response.
|
550
|
+
# @param create_report_request [CreateReportRequest] Report to create
|
551
551
|
# @param [Hash] opts the optional parameters
|
552
|
-
# @return [
|
553
|
-
def
|
554
|
-
data, _status_code, _headers =
|
552
|
+
# @return [CreateReport201Response]
|
553
|
+
def create_report(create_report_request, opts = {})
|
554
|
+
data, _status_code, _headers = create_report_with_http_info(create_report_request, opts)
|
555
555
|
data
|
556
556
|
end
|
557
557
|
|
558
|
-
# Create
|
559
|
-
# Creating a public key is the way for your organization to share it with Tremendous. > 🔒 Generating asymmetric keys > > **We recommend using [OpenSSL](https://www.openssl.org/).** > > 1. Generate a private key and a public key in PEM: > `openssl genrsa -out tremendous_key.pem 4096` > > 2. Extract the public key in PEM format: > `openssl rsa -in tremendous_key.pem -outform PEM -pubout -out tremendous_key.pem.pub` > > 3. And, before making your request, encode it as a `base64` string: > `base64 -i tremendous_key.pem.pub` <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">public_key</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Base64 encoded (public) PEM file</p> </td></tr> </tbody> </table> </div>
|
560
|
-
# @param
|
558
|
+
# Create report
|
559
|
+
# Creating a report allows your organization to programmatically retrieve information that's available in our dashboard UI. This request creates a new report object with a unique ID, and kicks off an async report generation. To retrieve a completed report, either poll `/api/v2/reports/{id}` or listen for REPORTS webhook event. ## Request body <div class=\"object-schema-request-schema\"> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">report_type</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Type of report for retrieval. <table> <thead> <tr> <th>Report type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>digital_rewards</code></td> <td>Report for Tremendous digital reward history</td> </tr> </tbody> </table></p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">format</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Format the report will be generated in. <table> <thead> <tr> <th>Format</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>csv</code></td> <td>CSV format for report</td> </tr> </tbody> </table></p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">filters</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Filters to apply to the report. Corresponds to the filters provided in the dashboard</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">digital_rewards</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Filters object for a <code>report_type: digital_rewards</code> report</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">amount</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Amount of the rewards returned in the report</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">gte</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Minimum amount of the rewards that should be returned in the report</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">lte</code> </div> </td><td><span class=\"property-type\">number</span> <span class=\"property-format\">double</span></td><td><p>Maximum amount of the rewards that should be returned in the report</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">campaign_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the Tremendous campaign that this report should be limited to</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">created_at</code> </div> </td><td><span class=\"property-type\">object</span></td><td><p>Creation dates of rewards returned in the report</p> </td></tr> <tr> <td colspan=\"3\"> <details> <summary>Show object properties</summary> <table> <thead> <tr> <th>Property</th> <th>Type</th> <th>Description</th> </tr> </thead> <tbody class=\"object-schema-table-body\"> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">gte</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Minimum date the reward was created</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">lte</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Maximum date the reward was created</p> </td></tr> </tbody> </table> </tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivered_at</code> </div> </td><td><span class=\"property-type\">string</span> <span class=\"property-format\">date</span></td><td><p>Delivery date for gifts that should be returned in the report</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">delivery_method</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Delivery method for rewards returned in the report</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">order_id</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>ID of the Tremendous order that this report should be limited to</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">order_status</code> </div> </td><td><span class=\"property-type\">string</span></td><td><p>Order status for rewards returned in the report</p> </td></tr> <tr class=\"\"><td><div class=\"property-name\"> <code class=\"property-name\">status</code> </div> </td><td><span class=\"property-type\">array</span> <span class=\"property-format\">string</span></td><td><p>Status for rewards returned in the report</p> </td></tr> </tbody> </table> </tr> </tbody> </table> </tr> </tbody> </table> </div> ## Rate limits Some reports may take a long time to generate and we limit the number of reports that can be simulataneously generated by an organization at a given time. If you exceed the rate limit, you'll receive a `429` response.
|
560
|
+
# @param create_report_request [CreateReportRequest] Report to create
|
561
561
|
# @param [Hash] opts the optional parameters
|
562
|
-
# @return [Array<(
|
563
|
-
def
|
562
|
+
# @return [Array<(CreateReport201Response, Integer, Hash)>] CreateReport201Response data, response status code and response headers
|
563
|
+
def create_report_with_http_info(create_report_request, opts = {})
|
564
564
|
if @api_client.config.debugging
|
565
|
-
@api_client.config.logger.debug 'Calling API: TremendousApi.
|
565
|
+
@api_client.config.logger.debug 'Calling API: TremendousApi.create_report ...'
|
566
566
|
end
|
567
|
-
# verify the required parameter '
|
568
|
-
if @api_client.config.client_side_validation &&
|
569
|
-
fail ArgumentError, "Missing the required parameter '
|
567
|
+
# verify the required parameter 'create_report_request' is set
|
568
|
+
if @api_client.config.client_side_validation && create_report_request.nil?
|
569
|
+
fail ArgumentError, "Missing the required parameter 'create_report_request' when calling TremendousApi.create_report"
|
570
570
|
end
|
571
571
|
# resource path
|
572
|
-
local_var_path = '/
|
572
|
+
local_var_path = '/reports'
|
573
573
|
|
574
574
|
# query parameters
|
575
575
|
query_params = opts[:query_params] || {}
|
@@ -588,16 +588,16 @@ module Tremendous
|
|
588
588
|
form_params = opts[:form_params] || {}
|
589
589
|
|
590
590
|
# http body (model)
|
591
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
591
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_report_request)
|
592
592
|
|
593
593
|
# return_type
|
594
|
-
return_type = opts[:debug_return_type] || '
|
594
|
+
return_type = opts[:debug_return_type] || 'CreateReport201Response'
|
595
595
|
|
596
596
|
# auth_names
|
597
597
|
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
|
598
598
|
|
599
599
|
new_options = opts.merge(
|
600
|
-
:operation => :"TremendousApi.
|
600
|
+
:operation => :"TremendousApi.create_report",
|
601
601
|
:header_params => header_params,
|
602
602
|
:query_params => query_params,
|
603
603
|
:form_params => form_params,
|
@@ -608,7 +608,7 @@ module Tremendous
|
|
608
608
|
|
609
609
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
610
610
|
if @api_client.config.debugging
|
611
|
-
@api_client.config.logger.debug "API called: TremendousApi#
|
611
|
+
@api_client.config.logger.debug "API called: TremendousApi#create_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
612
612
|
end
|
613
613
|
return data, status_code, headers
|
614
614
|
end
|
@@ -812,74 +812,6 @@ module Tremendous
|
|
812
812
|
return data, status_code, headers
|
813
813
|
end
|
814
814
|
|
815
|
-
# Delete public key
|
816
|
-
# Deactivates a public key. Any further attempt to verify a request signature with this key will fail.
|
817
|
-
# @param id [String] ID of the public key that should be deactivated
|
818
|
-
# @param [Hash] opts the optional parameters
|
819
|
-
# @return [nil]
|
820
|
-
def delete_public_key(id, opts = {})
|
821
|
-
delete_public_key_with_http_info(id, opts)
|
822
|
-
nil
|
823
|
-
end
|
824
|
-
|
825
|
-
# Delete public key
|
826
|
-
# Deactivates a public key. Any further attempt to verify a request signature with this key will fail.
|
827
|
-
# @param id [String] ID of the public key that should be deactivated
|
828
|
-
# @param [Hash] opts the optional parameters
|
829
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
830
|
-
def delete_public_key_with_http_info(id, opts = {})
|
831
|
-
if @api_client.config.debugging
|
832
|
-
@api_client.config.logger.debug 'Calling API: TremendousApi.delete_public_key ...'
|
833
|
-
end
|
834
|
-
# verify the required parameter 'id' is set
|
835
|
-
if @api_client.config.client_side_validation && id.nil?
|
836
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling TremendousApi.delete_public_key"
|
837
|
-
end
|
838
|
-
pattern = Regexp.new(/[A-Z0-9]{4,20}/)
|
839
|
-
if @api_client.config.client_side_validation && id !~ pattern
|
840
|
-
fail ArgumentError, "invalid value for 'id' when calling TremendousApi.delete_public_key, must conform to the pattern #{pattern}."
|
841
|
-
end
|
842
|
-
|
843
|
-
# resource path
|
844
|
-
local_var_path = '/public_keys/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
845
|
-
|
846
|
-
# query parameters
|
847
|
-
query_params = opts[:query_params] || {}
|
848
|
-
|
849
|
-
# header parameters
|
850
|
-
header_params = opts[:header_params] || {}
|
851
|
-
# HTTP header 'Accept' (if needed)
|
852
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
853
|
-
|
854
|
-
# form parameters
|
855
|
-
form_params = opts[:form_params] || {}
|
856
|
-
|
857
|
-
# http body (model)
|
858
|
-
post_body = opts[:debug_body]
|
859
|
-
|
860
|
-
# return_type
|
861
|
-
return_type = opts[:debug_return_type]
|
862
|
-
|
863
|
-
# auth_names
|
864
|
-
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
|
865
|
-
|
866
|
-
new_options = opts.merge(
|
867
|
-
:operation => :"TremendousApi.delete_public_key",
|
868
|
-
:header_params => header_params,
|
869
|
-
:query_params => query_params,
|
870
|
-
:form_params => form_params,
|
871
|
-
:body => post_body,
|
872
|
-
:auth_names => auth_names,
|
873
|
-
:return_type => return_type
|
874
|
-
)
|
875
|
-
|
876
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
877
|
-
if @api_client.config.debugging
|
878
|
-
@api_client.config.logger.debug "API called: TremendousApi#delete_public_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
879
|
-
end
|
880
|
-
return data, status_code, headers
|
881
|
-
end
|
882
|
-
|
883
815
|
# Delete webhook
|
884
816
|
# > 📘 Learn more about Webhooks > > Our guide explains everything you need to know about the Tremendous webhooks: > [Read it here](/docs/webhooks-1)
|
885
817
|
# @param id [String] ID of the webhook to delete
|
@@ -1617,7 +1549,7 @@ module Tremendous
|
|
1617
1549
|
# Retrieve the order, identified by the given `id` in the URL
|
1618
1550
|
# @param id [String] ID of the order that should be retrieved. In case the order has an `external_id` reference supplied by the customer on creation, it's possible to use it instead.
|
1619
1551
|
# @param [Hash] opts the optional parameters
|
1620
|
-
# @return [
|
1552
|
+
# @return [CreateOrder201Response]
|
1621
1553
|
def get_order(id, opts = {})
|
1622
1554
|
data, _status_code, _headers = get_order_with_http_info(id, opts)
|
1623
1555
|
data
|
@@ -1627,7 +1559,7 @@ module Tremendous
|
|
1627
1559
|
# Retrieve the order, identified by the given `id` in the URL
|
1628
1560
|
# @param id [String] ID of the order that should be retrieved. In case the order has an `external_id` reference supplied by the customer on creation, it's possible to use it instead.
|
1629
1561
|
# @param [Hash] opts the optional parameters
|
1630
|
-
# @return [Array<(
|
1562
|
+
# @return [Array<(CreateOrder201Response, Integer, Hash)>] CreateOrder201Response data, response status code and response headers
|
1631
1563
|
def get_order_with_http_info(id, opts = {})
|
1632
1564
|
if @api_client.config.debugging
|
1633
1565
|
@api_client.config.logger.debug 'Calling API: TremendousApi.get_order ...'
|
@@ -1654,7 +1586,7 @@ module Tremendous
|
|
1654
1586
|
post_body = opts[:debug_body]
|
1655
1587
|
|
1656
1588
|
# return_type
|
1657
|
-
return_type = opts[:debug_return_type] || '
|
1589
|
+
return_type = opts[:debug_return_type] || 'CreateOrder201Response'
|
1658
1590
|
|
1659
1591
|
# auth_names
|
1660
1592
|
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
|
@@ -1810,36 +1742,31 @@ module Tremendous
|
|
1810
1742
|
return data, status_code, headers
|
1811
1743
|
end
|
1812
1744
|
|
1813
|
-
# Retrieve
|
1814
|
-
# Retrieve
|
1815
|
-
# @param id [String] ID of the
|
1745
|
+
# Retrieve report
|
1746
|
+
# Retrieve the report, identified by the given `id` in the URL Using the ID that was returned by `POST /api/v2/reports`, retrieves a download link for the report, identified by the given ID in the URL. Returns the report’s current status and, if available, the URL for download. The URL is valid for 7 days.
|
1747
|
+
# @param id [String] ID of the report that should be retrieved. ID is returned from `POST` to /api/v2/reports
|
1816
1748
|
# @param [Hash] opts the optional parameters
|
1817
|
-
# @return [
|
1818
|
-
def
|
1819
|
-
data, _status_code, _headers =
|
1749
|
+
# @return [CreateReport201Response]
|
1750
|
+
def get_report(id, opts = {})
|
1751
|
+
data, _status_code, _headers = get_report_with_http_info(id, opts)
|
1820
1752
|
data
|
1821
1753
|
end
|
1822
1754
|
|
1823
|
-
# Retrieve
|
1824
|
-
# Retrieve
|
1825
|
-
# @param id [String] ID of the
|
1755
|
+
# Retrieve report
|
1756
|
+
# Retrieve the report, identified by the given `id` in the URL Using the ID that was returned by `POST /api/v2/reports`, retrieves a download link for the report, identified by the given ID in the URL. Returns the report’s current status and, if available, the URL for download. The URL is valid for 7 days.
|
1757
|
+
# @param id [String] ID of the report that should be retrieved. ID is returned from `POST` to /api/v2/reports
|
1826
1758
|
# @param [Hash] opts the optional parameters
|
1827
|
-
# @return [Array<(
|
1828
|
-
def
|
1759
|
+
# @return [Array<(CreateReport201Response, Integer, Hash)>] CreateReport201Response data, response status code and response headers
|
1760
|
+
def get_report_with_http_info(id, opts = {})
|
1829
1761
|
if @api_client.config.debugging
|
1830
|
-
@api_client.config.logger.debug 'Calling API: TremendousApi.
|
1762
|
+
@api_client.config.logger.debug 'Calling API: TremendousApi.get_report ...'
|
1831
1763
|
end
|
1832
1764
|
# verify the required parameter 'id' is set
|
1833
1765
|
if @api_client.config.client_side_validation && id.nil?
|
1834
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling TremendousApi.
|
1766
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling TremendousApi.get_report"
|
1835
1767
|
end
|
1836
|
-
pattern = Regexp.new(/[A-Z0-9]{4,20}/)
|
1837
|
-
if @api_client.config.client_side_validation && id !~ pattern
|
1838
|
-
fail ArgumentError, "invalid value for 'id' when calling TremendousApi.get_public_key, must conform to the pattern #{pattern}."
|
1839
|
-
end
|
1840
|
-
|
1841
1768
|
# resource path
|
1842
|
-
local_var_path = '/
|
1769
|
+
local_var_path = '/reports/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1843
1770
|
|
1844
1771
|
# query parameters
|
1845
1772
|
query_params = opts[:query_params] || {}
|
@@ -1856,13 +1783,13 @@ module Tremendous
|
|
1856
1783
|
post_body = opts[:debug_body]
|
1857
1784
|
|
1858
1785
|
# return_type
|
1859
|
-
return_type = opts[:debug_return_type] || '
|
1786
|
+
return_type = opts[:debug_return_type] || 'CreateReport201Response'
|
1860
1787
|
|
1861
1788
|
# auth_names
|
1862
1789
|
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
|
1863
1790
|
|
1864
1791
|
new_options = opts.merge(
|
1865
|
-
:operation => :"TremendousApi.
|
1792
|
+
:operation => :"TremendousApi.get_report",
|
1866
1793
|
:header_params => header_params,
|
1867
1794
|
:query_params => query_params,
|
1868
1795
|
:form_params => form_params,
|
@@ -1873,7 +1800,7 @@ module Tremendous
|
|
1873
1800
|
|
1874
1801
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1875
1802
|
if @api_client.config.debugging
|
1876
|
-
@api_client.config.logger.debug "API called: TremendousApi#
|
1803
|
+
@api_client.config.logger.debug "API called: TremendousApi#get_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1877
1804
|
end
|
1878
1805
|
return data, status_code, headers
|
1879
1806
|
end
|
@@ -2780,63 +2707,6 @@ module Tremendous
|
|
2780
2707
|
return data, status_code, headers
|
2781
2708
|
end
|
2782
2709
|
|
2783
|
-
# List public keys
|
2784
|
-
# Fetch a list of active public keys on your account. > 🚧 Inactive public keys are omitted > > The response does not include inactive public keys.
|
2785
|
-
# @param [Hash] opts the optional parameters
|
2786
|
-
# @return [PublicKeysResponse]
|
2787
|
-
def list_public_keys(opts = {})
|
2788
|
-
data, _status_code, _headers = list_public_keys_with_http_info(opts)
|
2789
|
-
data
|
2790
|
-
end
|
2791
|
-
|
2792
|
-
# List public keys
|
2793
|
-
# Fetch a list of active public keys on your account. > 🚧 Inactive public keys are omitted > > The response does not include inactive public keys.
|
2794
|
-
# @param [Hash] opts the optional parameters
|
2795
|
-
# @return [Array<(PublicKeysResponse, Integer, Hash)>] PublicKeysResponse data, response status code and response headers
|
2796
|
-
def list_public_keys_with_http_info(opts = {})
|
2797
|
-
if @api_client.config.debugging
|
2798
|
-
@api_client.config.logger.debug 'Calling API: TremendousApi.list_public_keys ...'
|
2799
|
-
end
|
2800
|
-
# resource path
|
2801
|
-
local_var_path = '/public_keys'
|
2802
|
-
|
2803
|
-
# query parameters
|
2804
|
-
query_params = opts[:query_params] || {}
|
2805
|
-
|
2806
|
-
# header parameters
|
2807
|
-
header_params = opts[:header_params] || {}
|
2808
|
-
# HTTP header 'Accept' (if needed)
|
2809
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2810
|
-
|
2811
|
-
# form parameters
|
2812
|
-
form_params = opts[:form_params] || {}
|
2813
|
-
|
2814
|
-
# http body (model)
|
2815
|
-
post_body = opts[:debug_body]
|
2816
|
-
|
2817
|
-
# return_type
|
2818
|
-
return_type = opts[:debug_return_type] || 'PublicKeysResponse'
|
2819
|
-
|
2820
|
-
# auth_names
|
2821
|
-
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
|
2822
|
-
|
2823
|
-
new_options = opts.merge(
|
2824
|
-
:operation => :"TremendousApi.list_public_keys",
|
2825
|
-
:header_params => header_params,
|
2826
|
-
:query_params => query_params,
|
2827
|
-
:form_params => form_params,
|
2828
|
-
:body => post_body,
|
2829
|
-
:auth_names => auth_names,
|
2830
|
-
:return_type => return_type
|
2831
|
-
)
|
2832
|
-
|
2833
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2834
|
-
if @api_client.config.debugging
|
2835
|
-
@api_client.config.logger.debug "API called: TremendousApi#list_public_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2836
|
-
end
|
2837
|
-
return data, status_code, headers
|
2838
|
-
end
|
2839
|
-
|
2840
2710
|
# List rewards
|
2841
2711
|
# Retrieve a list of all created rewards
|
2842
2712
|
# @param [Hash] opts the optional parameters
|
@@ -3083,7 +2953,7 @@ module Tremendous
|
|
3083
2953
|
# 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.
|
3084
2954
|
# @param id [String] ID of the order that should be rejected. In case the order has an `external_id` reference supplied by the customer on creation, it's possible to use it instead.
|
3085
2955
|
# @param [Hash] opts the optional parameters
|
3086
|
-
# @return [
|
2956
|
+
# @return [CreateOrder201Response]
|
3087
2957
|
def reject_order(id, opts = {})
|
3088
2958
|
data, _status_code, _headers = reject_order_with_http_info(id, opts)
|
3089
2959
|
data
|
@@ -3093,7 +2963,7 @@ module Tremendous
|
|
3093
2963
|
# 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.
|
3094
2964
|
# @param id [String] ID of the order that should be rejected. In case the order has an `external_id` reference supplied by the customer on creation, it's possible to use it instead.
|
3095
2965
|
# @param [Hash] opts the optional parameters
|
3096
|
-
# @return [Array<(
|
2966
|
+
# @return [Array<(CreateOrder201Response, Integer, Hash)>] CreateOrder201Response data, response status code and response headers
|
3097
2967
|
def reject_order_with_http_info(id, opts = {})
|
3098
2968
|
if @api_client.config.debugging
|
3099
2969
|
@api_client.config.logger.debug 'Calling API: TremendousApi.reject_order ...'
|
@@ -3125,7 +2995,7 @@ module Tremendous
|
|
3125
2995
|
post_body = opts[:debug_body]
|
3126
2996
|
|
3127
2997
|
# return_type
|
3128
|
-
return_type = opts[:debug_return_type] || '
|
2998
|
+
return_type = opts[:debug_return_type] || 'CreateOrder201Response'
|
3129
2999
|
|
3130
3000
|
# auth_names
|
3131
3001
|
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
|
@@ -3214,6 +3084,7 @@ module Tremendous
|
|
3214
3084
|
# Resends a reward, identified by the given `id` in the URL, to its recipient.
|
3215
3085
|
# @param id [String] ID of the reward that should be resent
|
3216
3086
|
# @param [Hash] opts the optional parameters
|
3087
|
+
# @option opts [ResendRewardRequest] :resend_reward_request _Only_ for rewards with a previous delivery failure: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both.
|
3217
3088
|
# @return [Object]
|
3218
3089
|
def resend_reward(id, opts = {})
|
3219
3090
|
data, _status_code, _headers = resend_reward_with_http_info(id, opts)
|
@@ -3224,6 +3095,7 @@ module Tremendous
|
|
3224
3095
|
# Resends a reward, identified by the given `id` in the URL, to its recipient.
|
3225
3096
|
# @param id [String] ID of the reward that should be resent
|
3226
3097
|
# @param [Hash] opts the optional parameters
|
3098
|
+
# @option opts [ResendRewardRequest] :resend_reward_request _Only_ for rewards with a previous delivery failure: You can update the email or phone number used for the resend. You can only provide one of `updated_email` or `updated_phone`, not both.
|
3227
3099
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
3228
3100
|
def resend_reward_with_http_info(id, opts = {})
|
3229
3101
|
if @api_client.config.debugging
|
@@ -3248,12 +3120,17 @@ module Tremendous
|
|
3248
3120
|
header_params = opts[:header_params] || {}
|
3249
3121
|
# HTTP header 'Accept' (if needed)
|
3250
3122
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
3123
|
+
# HTTP header 'Content-Type'
|
3124
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
3125
|
+
if !content_type.nil?
|
3126
|
+
header_params['Content-Type'] = content_type
|
3127
|
+
end
|
3251
3128
|
|
3252
3129
|
# form parameters
|
3253
3130
|
form_params = opts[:form_params] || {}
|
3254
3131
|
|
3255
3132
|
# http body (model)
|
3256
|
-
post_body = opts[:debug_body]
|
3133
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'resend_reward_request'])
|
3257
3134
|
|
3258
3135
|
# return_type
|
3259
3136
|
return_type = opts[:debug_return_type] || 'Object'
|
@@ -3357,85 +3234,6 @@ module Tremendous
|
|
3357
3234
|
return data, status_code, headers
|
3358
3235
|
end
|
3359
3236
|
|
3360
|
-
# Test public key
|
3361
|
-
# Making a request to this endpoint with a JWT signed with your private key will return a 200 response if the public key is active and the signature is valid. > 💡 Testing your integration > > **You can use [JWT.io](https://jwt.io/) to generate a signed token:** > > > 1. Select “RS256” in their algorithm dropdown; > 3. Define a JSON payload such as `{ \"foo\": \"bar\" }`; > 4. Fill the “Verify signature” fields with your public and private keys and copy the “Encoded” token.
|
3362
|
-
# @param id [String] ID of the public key to test
|
3363
|
-
# @param test_public_key_request [TestPublicKeyRequest]
|
3364
|
-
# @param [Hash] opts the optional parameters
|
3365
|
-
# @return [nil]
|
3366
|
-
def test_public_key(id, test_public_key_request, opts = {})
|
3367
|
-
test_public_key_with_http_info(id, test_public_key_request, opts)
|
3368
|
-
nil
|
3369
|
-
end
|
3370
|
-
|
3371
|
-
# Test public key
|
3372
|
-
# Making a request to this endpoint with a JWT signed with your private key will return a 200 response if the public key is active and the signature is valid. > 💡 Testing your integration > > **You can use [JWT.io](https://jwt.io/) to generate a signed token:** > > > 1. Select “RS256” in their algorithm dropdown; > 3. Define a JSON payload such as `{ \"foo\": \"bar\" }`; > 4. Fill the “Verify signature” fields with your public and private keys and copy the “Encoded” token.
|
3373
|
-
# @param id [String] ID of the public key to test
|
3374
|
-
# @param test_public_key_request [TestPublicKeyRequest]
|
3375
|
-
# @param [Hash] opts the optional parameters
|
3376
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
3377
|
-
def test_public_key_with_http_info(id, test_public_key_request, opts = {})
|
3378
|
-
if @api_client.config.debugging
|
3379
|
-
@api_client.config.logger.debug 'Calling API: TremendousApi.test_public_key ...'
|
3380
|
-
end
|
3381
|
-
# verify the required parameter 'id' is set
|
3382
|
-
if @api_client.config.client_side_validation && id.nil?
|
3383
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling TremendousApi.test_public_key"
|
3384
|
-
end
|
3385
|
-
pattern = Regexp.new(/[A-Z0-9]{4,20}/)
|
3386
|
-
if @api_client.config.client_side_validation && id !~ pattern
|
3387
|
-
fail ArgumentError, "invalid value for 'id' when calling TremendousApi.test_public_key, must conform to the pattern #{pattern}."
|
3388
|
-
end
|
3389
|
-
|
3390
|
-
# verify the required parameter 'test_public_key_request' is set
|
3391
|
-
if @api_client.config.client_side_validation && test_public_key_request.nil?
|
3392
|
-
fail ArgumentError, "Missing the required parameter 'test_public_key_request' when calling TremendousApi.test_public_key"
|
3393
|
-
end
|
3394
|
-
# resource path
|
3395
|
-
local_var_path = '/public_keys/{id}/decode_jwt'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
3396
|
-
|
3397
|
-
# query parameters
|
3398
|
-
query_params = opts[:query_params] || {}
|
3399
|
-
|
3400
|
-
# header parameters
|
3401
|
-
header_params = opts[:header_params] || {}
|
3402
|
-
# HTTP header 'Accept' (if needed)
|
3403
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
3404
|
-
# HTTP header 'Content-Type'
|
3405
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
3406
|
-
if !content_type.nil?
|
3407
|
-
header_params['Content-Type'] = content_type
|
3408
|
-
end
|
3409
|
-
|
3410
|
-
# form parameters
|
3411
|
-
form_params = opts[:form_params] || {}
|
3412
|
-
|
3413
|
-
# http body (model)
|
3414
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(test_public_key_request)
|
3415
|
-
|
3416
|
-
# return_type
|
3417
|
-
return_type = opts[:debug_return_type]
|
3418
|
-
|
3419
|
-
# auth_names
|
3420
|
-
auth_names = opts[:debug_auth_names] || ['BearerApiKey']
|
3421
|
-
|
3422
|
-
new_options = opts.merge(
|
3423
|
-
:operation => :"TremendousApi.test_public_key",
|
3424
|
-
:header_params => header_params,
|
3425
|
-
:query_params => query_params,
|
3426
|
-
:form_params => form_params,
|
3427
|
-
:body => post_body,
|
3428
|
-
:auth_names => auth_names,
|
3429
|
-
:return_type => return_type
|
3430
|
-
)
|
3431
|
-
|
3432
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
3433
|
-
if @api_client.config.debugging
|
3434
|
-
@api_client.config.logger.debug "API called: TremendousApi#test_public_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3435
|
-
end
|
3436
|
-
return data, status_code, headers
|
3437
|
-
end
|
3438
|
-
|
3439
3237
|
# Update campaign
|
3440
3238
|
# @param id [String] ID of the campaign that should be updated
|
3441
3239
|
# @param update_campaign_request [UpdateCampaignRequest] Campaign details
|