freeclimb 4.3.0 → 4.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +20 -4
  5. data/docs/DefaultApi.md +433 -0
  6. data/docs/IncomingNumberRequest.md +3 -1
  7. data/docs/SMSTenDLCBrand.md +78 -0
  8. data/docs/SMSTenDLCBrandsListResult.md +32 -0
  9. data/docs/SMSTenDLCBrandsListResultAllOf.md +18 -0
  10. data/docs/SMSTenDLCCampaign.md +78 -0
  11. data/docs/SMSTenDLCCampaignsListResult.md +32 -0
  12. data/docs/SMSTenDLCCampaignsListResultAllOf.md +18 -0
  13. data/docs/SMSTenDLCPartnerCampaign.md +74 -0
  14. data/docs/SMSTenDLCPartnerCampaignBrand.md +38 -0
  15. data/docs/SMSTenDLCPartnerCampaignsListResult.md +32 -0
  16. data/docs/SMSTenDLCPartnerCampaignsListResultAllOf.md +18 -0
  17. data/lib/freeclimb/api/default_api.rb +360 -0
  18. data/lib/freeclimb/models/incoming_number_request.rb +15 -4
  19. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +960 -0
  20. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +306 -0
  21. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result_all_of.rb +221 -0
  22. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +814 -0
  23. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +306 -0
  24. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result_all_of.rb +221 -0
  25. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +807 -0
  26. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +445 -0
  27. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +306 -0
  28. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result_all_of.rb +221 -0
  29. data/lib/freeclimb/version.rb +1 -1
  30. data/lib/freeclimb.rb +10 -0
  31. data/openapi.json +1277 -12
  32. data/spec/api/default_api_spec.rb +151 -1
  33. data/spec/models/account_request_spec.rb +143 -2
  34. data/spec/models/account_result_spec.rb +377 -13
  35. data/spec/models/account_status_spec.rb +39 -6
  36. data/spec/models/account_type_spec.rb +26 -4
  37. data/spec/models/add_to_conference_spec.rb +343 -10
  38. data/spec/models/answered_by_spec.rb +26 -4
  39. data/spec/models/application_list_spec.rb +293 -8
  40. data/spec/models/application_request_spec.rb +268 -7
  41. data/spec/models/application_result_spec.rb +418 -13
  42. data/spec/models/available_number_list_spec.rb +293 -8
  43. data/spec/models/available_number_spec.rb +263 -7
  44. data/spec/models/buy_incoming_number_request_spec.rb +168 -3
  45. data/spec/models/call_direction_spec.rb +39 -6
  46. data/spec/models/call_list_spec.rb +293 -8
  47. data/spec/models/call_result_spec.rb +603 -22
  48. data/spec/models/call_status_spec.rb +104 -16
  49. data/spec/models/capabilities_spec.rb +218 -5
  50. data/spec/models/conference_list_spec.rb +293 -8
  51. data/spec/models/conference_participant_list_spec.rb +293 -8
  52. data/spec/models/conference_participant_result_spec.rb +343 -10
  53. data/spec/models/conference_result_spec.rb +464 -16
  54. data/spec/models/conference_status_spec.rb +52 -8
  55. data/spec/models/create_conference_request_spec.rb +228 -6
  56. data/spec/models/create_conference_spec.rb +253 -7
  57. data/spec/models/enqueue_spec.rb +193 -4
  58. data/spec/models/filter_logs_request_spec.rb +118 -1
  59. data/spec/models/get_digits_spec.rb +318 -9
  60. data/spec/models/get_speech_reason_spec.rb +78 -12
  61. data/spec/models/get_speech_spec.rb +388 -14
  62. data/spec/models/grammar_file_built_in_spec.rb +195 -30
  63. data/spec/models/grammar_type_spec.rb +26 -4
  64. data/spec/models/hangup_spec.rb +118 -1
  65. data/spec/models/if_machine_spec.rb +26 -4
  66. data/spec/models/incoming_number_list_spec.rb +293 -8
  67. data/spec/models/incoming_number_request_spec.rb +173 -2
  68. data/spec/models/incoming_number_result_spec.rb +488 -16
  69. data/spec/models/language_spec.rb +338 -52
  70. data/spec/models/log_level_spec.rb +39 -6
  71. data/spec/models/log_list_spec.rb +293 -8
  72. data/spec/models/log_result_spec.rb +275 -8
  73. data/spec/models/machine_type_spec.rb +26 -4
  74. data/spec/models/make_call_request_spec.rb +343 -10
  75. data/spec/models/message_direction_spec.rb +26 -4
  76. data/spec/models/message_request_spec.rb +318 -9
  77. data/spec/models/message_result_spec.rb +431 -13
  78. data/spec/models/message_status_spec.rb +143 -22
  79. data/spec/models/messages_list_spec.rb +293 -8
  80. data/spec/models/mutable_resource_model_spec.rb +193 -4
  81. data/spec/models/out_dial_spec.rb +345 -11
  82. data/spec/models/pagination_model_spec.rb +268 -7
  83. data/spec/models/park_spec.rb +168 -3
  84. data/spec/models/pause_spec.rb +118 -1
  85. data/spec/models/percl_command_spec.rb +132 -3
  86. data/spec/models/percl_script_spec.rb +118 -1
  87. data/spec/models/play_beep_spec.rb +52 -8
  88. data/spec/models/play_early_media_spec.rb +118 -1
  89. data/spec/models/play_spec.rb +193 -4
  90. data/spec/models/queue_list_spec.rb +293 -8
  91. data/spec/models/queue_member_list_spec.rb +293 -8
  92. data/spec/models/queue_member_spec.rb +218 -5
  93. data/spec/models/queue_request_spec.rb +143 -2
  94. data/spec/models/queue_result_spec.rb +369 -11
  95. data/spec/models/queue_result_status_spec.rb +52 -8
  96. data/spec/models/record_utterance_spec.rb +268 -7
  97. data/spec/models/record_utterance_term_reason_spec.rb +52 -8
  98. data/spec/models/recording_list_spec.rb +293 -8
  99. data/spec/models/recording_result_spec.rb +318 -9
  100. data/spec/models/redirect_spec.rb +118 -1
  101. data/spec/models/reject_spec.rb +118 -1
  102. data/spec/models/remove_from_conference_spec.rb +118 -1
  103. data/spec/models/request_type_spec.rb +299 -46
  104. data/spec/models/say_spec.rb +218 -5
  105. data/spec/models/send_digits_spec.rb +168 -3
  106. data/spec/models/set_listen_spec.rb +143 -2
  107. data/spec/models/set_talk_spec.rb +143 -2
  108. data/spec/models/sms_spec.rb +193 -4
  109. data/spec/models/sms_ten_dlc_brand_spec.rb +1240 -0
  110. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +361 -0
  111. data/spec/models/sms_ten_dlc_campaign_spec.rb +1055 -0
  112. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +361 -0
  113. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +448 -0
  114. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +994 -0
  115. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +361 -0
  116. data/spec/models/terminate_conference_spec.rb +118 -1
  117. data/spec/models/update_call_request_spec.rb +120 -2
  118. data/spec/models/update_call_request_status_spec.rb +26 -4
  119. data/spec/models/update_conference_participant_request_spec.rb +143 -2
  120. data/spec/models/update_conference_request_spec.rb +180 -5
  121. data/spec/models/update_conference_request_status_spec.rb +26 -4
  122. metadata +102 -68
@@ -1406,6 +1406,363 @@ module Freeclimb
1406
1406
  return data, status_code, headers
1407
1407
  end
1408
1408
 
1409
+ # Get a 10DLC SMS Brand
1410
+ # @param brand_id [String] String that uniquely identifies this brand resource.
1411
+ # @param [Hash] opts the optional parameters
1412
+ # @return [SMSTenDLCBrand]
1413
+ def get_ten_dlc_sms_brand(brand_id, opts = {})
1414
+ data, _status_code, _headers = get_ten_dlc_sms_brand_with_http_info(brand_id, opts)
1415
+ data
1416
+ end
1417
+
1418
+ # Get a 10DLC SMS Brand
1419
+ # @param brand_id [String] String that uniquely identifies this brand resource.
1420
+ # @param [Hash] opts the optional parameters
1421
+ # @return [Array<(SMSTenDLCBrand, Integer, Hash)>] SMSTenDLCBrand data, response status code and response headers
1422
+ def get_ten_dlc_sms_brand_with_http_info(brand_id, opts = {})
1423
+ if @api_client.config.debugging
1424
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_brand ...'
1425
+ end
1426
+
1427
+ # verify the required parameter 'brand_id' is set
1428
+ if @api_client.config.client_side_validation && brand_id.nil?
1429
+ fail ArgumentError, "Missing the required parameter 'brand_id' when calling DefaultApi.get_ten_dlc_sms_brand"
1430
+ end
1431
+ # resource path
1432
+ local_var_path = '/Accounts/{accountId}/Messages/10DLC/Brands/{brandId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'brandId' + '}', CGI.escape(brand_id.to_s))
1433
+
1434
+ # query parameters
1435
+ query_params = opts[:query_params] || {}
1436
+
1437
+ # header parameters
1438
+ header_params = opts[:header_params] || {}
1439
+ # HTTP header 'Accept' (if needed)
1440
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1441
+
1442
+ # form parameters
1443
+ form_params = opts[:form_params] || {}
1444
+
1445
+ # http body (model)
1446
+ post_body = opts[:debug_body]
1447
+
1448
+ # return_type
1449
+ return_type = opts[:debug_return_type] || 'SMSTenDLCBrand'
1450
+
1451
+ # auth_names
1452
+ auth_names = opts[:debug_auth_names] || ['fc']
1453
+
1454
+ new_options = opts.merge(
1455
+ :operation => :"DefaultApi.get_ten_dlc_sms_brand",
1456
+ :header_params => header_params,
1457
+ :query_params => query_params,
1458
+ :form_params => form_params,
1459
+ :body => post_body,
1460
+ :auth_names => auth_names,
1461
+ :return_type => return_type
1462
+ )
1463
+
1464
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1465
+ if @api_client.config.debugging
1466
+ @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_brand\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1467
+ end
1468
+ return data, status_code, headers
1469
+ end
1470
+
1471
+ # Get list of SMS 10DLC Brands
1472
+ # @param [Hash] opts the optional parameters
1473
+ # @return [SMSTenDLCBrandsListResult]
1474
+ def get_ten_dlc_sms_brands(opts = {})
1475
+ data, _status_code, _headers = get_ten_dlc_sms_brands_with_http_info(opts)
1476
+ data
1477
+ end
1478
+
1479
+ # Get list of SMS 10DLC Brands
1480
+ # @param [Hash] opts the optional parameters
1481
+ # @return [Array<(SMSTenDLCBrandsListResult, Integer, Hash)>] SMSTenDLCBrandsListResult data, response status code and response headers
1482
+ def get_ten_dlc_sms_brands_with_http_info(opts = {})
1483
+ if @api_client.config.debugging
1484
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_brands ...'
1485
+ end
1486
+ # resource path
1487
+ local_var_path = '/Accounts/{accountId}/Messages/10DLC/Brands'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1488
+
1489
+ # query parameters
1490
+ query_params = opts[:query_params] || {}
1491
+
1492
+ # header parameters
1493
+ header_params = opts[:header_params] || {}
1494
+ # HTTP header 'Accept' (if needed)
1495
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1496
+
1497
+ # form parameters
1498
+ form_params = opts[:form_params] || {}
1499
+
1500
+ # http body (model)
1501
+ post_body = opts[:debug_body]
1502
+
1503
+ # return_type
1504
+ return_type = opts[:debug_return_type] || 'SMSTenDLCBrandsListResult'
1505
+
1506
+ # auth_names
1507
+ auth_names = opts[:debug_auth_names] || ['fc']
1508
+
1509
+ new_options = opts.merge(
1510
+ :operation => :"DefaultApi.get_ten_dlc_sms_brands",
1511
+ :header_params => header_params,
1512
+ :query_params => query_params,
1513
+ :form_params => form_params,
1514
+ :body => post_body,
1515
+ :auth_names => auth_names,
1516
+ :return_type => return_type
1517
+ )
1518
+
1519
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1520
+ if @api_client.config.debugging
1521
+ @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_brands\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1522
+ end
1523
+ return data, status_code, headers
1524
+ end
1525
+
1526
+ # Get a 10DLC SMS Campaign
1527
+ # @param campaign_id [String] String that uniquely identifies this campaign resource.
1528
+ # @param [Hash] opts the optional parameters
1529
+ # @return [SMSTenDLCCampaign]
1530
+ def get_ten_dlc_sms_campaign(campaign_id, opts = {})
1531
+ data, _status_code, _headers = get_ten_dlc_sms_campaign_with_http_info(campaign_id, opts)
1532
+ data
1533
+ end
1534
+
1535
+ # Get a 10DLC SMS Campaign
1536
+ # @param campaign_id [String] String that uniquely identifies this campaign resource.
1537
+ # @param [Hash] opts the optional parameters
1538
+ # @return [Array<(SMSTenDLCCampaign, Integer, Hash)>] SMSTenDLCCampaign data, response status code and response headers
1539
+ def get_ten_dlc_sms_campaign_with_http_info(campaign_id, opts = {})
1540
+ if @api_client.config.debugging
1541
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_campaign ...'
1542
+ end
1543
+
1544
+ # verify the required parameter 'campaign_id' is set
1545
+ if @api_client.config.client_side_validation && campaign_id.nil?
1546
+ fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_ten_dlc_sms_campaign"
1547
+ end
1548
+ # resource path
1549
+ local_var_path = '/Accounts/{accountId}/Messages/10DLC/Campaigns/{campaignId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
1550
+
1551
+ # query parameters
1552
+ query_params = opts[:query_params] || {}
1553
+
1554
+ # header parameters
1555
+ header_params = opts[:header_params] || {}
1556
+ # HTTP header 'Accept' (if needed)
1557
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1558
+
1559
+ # form parameters
1560
+ form_params = opts[:form_params] || {}
1561
+
1562
+ # http body (model)
1563
+ post_body = opts[:debug_body]
1564
+
1565
+ # return_type
1566
+ return_type = opts[:debug_return_type] || 'SMSTenDLCCampaign'
1567
+
1568
+ # auth_names
1569
+ auth_names = opts[:debug_auth_names] || ['fc']
1570
+
1571
+ new_options = opts.merge(
1572
+ :operation => :"DefaultApi.get_ten_dlc_sms_campaign",
1573
+ :header_params => header_params,
1574
+ :query_params => query_params,
1575
+ :form_params => form_params,
1576
+ :body => post_body,
1577
+ :auth_names => auth_names,
1578
+ :return_type => return_type
1579
+ )
1580
+
1581
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1582
+ if @api_client.config.debugging
1583
+ @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1584
+ end
1585
+ return data, status_code, headers
1586
+ end
1587
+
1588
+ # Get list of SMS 10DLC Campaigns
1589
+ # @param [Hash] opts the optional parameters
1590
+ # @option opts [String] :brand_id The unique identifier for a brand
1591
+ # @return [SMSTenDLCCampaignsListResult]
1592
+ def get_ten_dlc_sms_campaigns(opts = {})
1593
+ data, _status_code, _headers = get_ten_dlc_sms_campaigns_with_http_info(opts)
1594
+ data
1595
+ end
1596
+
1597
+ # Get list of SMS 10DLC Campaigns
1598
+ # @param [Hash] opts the optional parameters
1599
+ # @option opts [String] :brand_id The unique identifier for a brand
1600
+ # @return [Array<(SMSTenDLCCampaignsListResult, Integer, Hash)>] SMSTenDLCCampaignsListResult data, response status code and response headers
1601
+ def get_ten_dlc_sms_campaigns_with_http_info(opts = {})
1602
+ if @api_client.config.debugging
1603
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_campaigns ...'
1604
+ end
1605
+ # resource path
1606
+ local_var_path = '/Accounts/{accountId}/Messages/10DLC/Campaigns'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1607
+
1608
+ # query parameters
1609
+ query_params = opts[:query_params] || {}
1610
+ query_params[:'brandId'] = opts[:'brand_id'] if !opts[:'brand_id'].nil?
1611
+
1612
+ # header parameters
1613
+ header_params = opts[:header_params] || {}
1614
+ # HTTP header 'Accept' (if needed)
1615
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1616
+
1617
+ # form parameters
1618
+ form_params = opts[:form_params] || {}
1619
+
1620
+ # http body (model)
1621
+ post_body = opts[:debug_body]
1622
+
1623
+ # return_type
1624
+ return_type = opts[:debug_return_type] || 'SMSTenDLCCampaignsListResult'
1625
+
1626
+ # auth_names
1627
+ auth_names = opts[:debug_auth_names] || ['fc']
1628
+
1629
+ new_options = opts.merge(
1630
+ :operation => :"DefaultApi.get_ten_dlc_sms_campaigns",
1631
+ :header_params => header_params,
1632
+ :query_params => query_params,
1633
+ :form_params => form_params,
1634
+ :body => post_body,
1635
+ :auth_names => auth_names,
1636
+ :return_type => return_type
1637
+ )
1638
+
1639
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1640
+ if @api_client.config.debugging
1641
+ @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1642
+ end
1643
+ return data, status_code, headers
1644
+ end
1645
+
1646
+ # Get a 10DLC SMS Partner Campaign
1647
+ # @param campaign_id [String] String that uniquely identifies this campaign resource.
1648
+ # @param [Hash] opts the optional parameters
1649
+ # @return [SMSTenDLCPartnerCampaign]
1650
+ def get_ten_dlc_sms_partner_campaign(campaign_id, opts = {})
1651
+ data, _status_code, _headers = get_ten_dlc_sms_partner_campaign_with_http_info(campaign_id, opts)
1652
+ data
1653
+ end
1654
+
1655
+ # Get a 10DLC SMS Partner Campaign
1656
+ # @param campaign_id [String] String that uniquely identifies this campaign resource.
1657
+ # @param [Hash] opts the optional parameters
1658
+ # @return [Array<(SMSTenDLCPartnerCampaign, Integer, Hash)>] SMSTenDLCPartnerCampaign data, response status code and response headers
1659
+ def get_ten_dlc_sms_partner_campaign_with_http_info(campaign_id, opts = {})
1660
+ if @api_client.config.debugging
1661
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_partner_campaign ...'
1662
+ end
1663
+
1664
+ # verify the required parameter 'campaign_id' is set
1665
+ if @api_client.config.client_side_validation && campaign_id.nil?
1666
+ fail ArgumentError, "Missing the required parameter 'campaign_id' when calling DefaultApi.get_ten_dlc_sms_partner_campaign"
1667
+ end
1668
+ # resource path
1669
+ local_var_path = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns/{campaignId}'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s)).sub('{' + 'campaignId' + '}', CGI.escape(campaign_id.to_s))
1670
+
1671
+ # query parameters
1672
+ query_params = opts[:query_params] || {}
1673
+
1674
+ # header parameters
1675
+ header_params = opts[:header_params] || {}
1676
+ # HTTP header 'Accept' (if needed)
1677
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1678
+
1679
+ # form parameters
1680
+ form_params = opts[:form_params] || {}
1681
+
1682
+ # http body (model)
1683
+ post_body = opts[:debug_body]
1684
+
1685
+ # return_type
1686
+ return_type = opts[:debug_return_type] || 'SMSTenDLCPartnerCampaign'
1687
+
1688
+ # auth_names
1689
+ auth_names = opts[:debug_auth_names] || ['fc']
1690
+
1691
+ new_options = opts.merge(
1692
+ :operation => :"DefaultApi.get_ten_dlc_sms_partner_campaign",
1693
+ :header_params => header_params,
1694
+ :query_params => query_params,
1695
+ :form_params => form_params,
1696
+ :body => post_body,
1697
+ :auth_names => auth_names,
1698
+ :return_type => return_type
1699
+ )
1700
+
1701
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1702
+ if @api_client.config.debugging
1703
+ @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_partner_campaign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1704
+ end
1705
+ return data, status_code, headers
1706
+ end
1707
+
1708
+ # Get list of SMS 10DLC Partner Campaigns
1709
+ # @param [Hash] opts the optional parameters
1710
+ # @option opts [String] :brand_id The unique identifier for a brand
1711
+ # @return [SMSTenDLCPartnerCampaignsListResult]
1712
+ def get_ten_dlc_sms_partner_campaigns(opts = {})
1713
+ data, _status_code, _headers = get_ten_dlc_sms_partner_campaigns_with_http_info(opts)
1714
+ data
1715
+ end
1716
+
1717
+ # Get list of SMS 10DLC Partner Campaigns
1718
+ # @param [Hash] opts the optional parameters
1719
+ # @option opts [String] :brand_id The unique identifier for a brand
1720
+ # @return [Array<(SMSTenDLCPartnerCampaignsListResult, Integer, Hash)>] SMSTenDLCPartnerCampaignsListResult data, response status code and response headers
1721
+ def get_ten_dlc_sms_partner_campaigns_with_http_info(opts = {})
1722
+ if @api_client.config.debugging
1723
+ @api_client.config.logger.debug 'Calling API: DefaultApi.get_ten_dlc_sms_partner_campaigns ...'
1724
+ end
1725
+ # resource path
1726
+ local_var_path = '/Accounts/{accountId}/Messages/10DLC/PartnerCampaigns'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1727
+
1728
+ # query parameters
1729
+ query_params = opts[:query_params] || {}
1730
+ query_params[:'brandId'] = opts[:'brand_id'] if !opts[:'brand_id'].nil?
1731
+
1732
+ # header parameters
1733
+ header_params = opts[:header_params] || {}
1734
+ # HTTP header 'Accept' (if needed)
1735
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1736
+
1737
+ # form parameters
1738
+ form_params = opts[:form_params] || {}
1739
+
1740
+ # http body (model)
1741
+ post_body = opts[:debug_body]
1742
+
1743
+ # return_type
1744
+ return_type = opts[:debug_return_type] || 'SMSTenDLCPartnerCampaignsListResult'
1745
+
1746
+ # auth_names
1747
+ auth_names = opts[:debug_auth_names] || ['fc']
1748
+
1749
+ new_options = opts.merge(
1750
+ :operation => :"DefaultApi.get_ten_dlc_sms_partner_campaigns",
1751
+ :header_params => header_params,
1752
+ :query_params => query_params,
1753
+ :form_params => form_params,
1754
+ :body => post_body,
1755
+ :auth_names => auth_names,
1756
+ :return_type => return_type
1757
+ )
1758
+
1759
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1760
+ if @api_client.config.debugging
1761
+ @api_client.config.logger.debug "API called: DefaultApi#get_ten_dlc_sms_partner_campaigns\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1762
+ end
1763
+ return data, status_code, headers
1764
+ end
1765
+
1409
1766
  # List Active Queues
1410
1767
  # @param [Hash] opts the optional parameters
1411
1768
  # @option opts [String] :_alias Return only the Queue resources with aliases that exactly match this name.
@@ -1949,6 +2306,7 @@ module Freeclimb
1949
2306
  # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it. (default to false)
1950
2307
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
1951
2308
  # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers. (default to true)
2309
+ # @option opts [Boolean] :has_campaign Indication of whether the phone number has a campaign associated with it
1952
2310
  # @option opts [Boolean] :capabilities_voice
1953
2311
  # @option opts [Boolean] :capabilities_sms
1954
2312
  # @option opts [Boolean] :capabilities_toll_free
@@ -1971,6 +2329,7 @@ module Freeclimb
1971
2329
  # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it.
1972
2330
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1973
2331
  # @option opts [Boolean] :sms_enabled Indication of whether the phone number can handle sending and receiving SMS messages. Typically set to true for all numbers.
2332
+ # @option opts [Boolean] :has_campaign Indication of whether the phone number has a campaign associated with it
1974
2333
  # @option opts [Boolean] :capabilities_voice
1975
2334
  # @option opts [Boolean] :capabilities_sms
1976
2335
  # @option opts [Boolean] :capabilities_toll_free
@@ -1995,6 +2354,7 @@ module Freeclimb
1995
2354
  query_params[:'hasApplication'] = opts[:'has_application'] if !opts[:'has_application'].nil?
1996
2355
  query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
1997
2356
  query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
2357
+ query_params[:'hasCampaign'] = opts[:'has_campaign'] if !opts[:'has_campaign'].nil?
1998
2358
  query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
1999
2359
  query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
2000
2360
  query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
@@ -21,11 +21,15 @@ module Freeclimb
21
21
  # Description for this phone number.
22
22
  attr_accessor :_alias
23
23
 
24
+ # The campaign ID generated by the campaign registry
25
+ attr_accessor :campaign_id
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'application_id' => :'applicationId',
28
- :'_alias' => :'alias'
31
+ :'_alias' => :'alias',
32
+ :'campaign_id' => :'campaignId'
29
33
  }
30
34
  end
31
35
 
@@ -38,13 +42,15 @@ module Freeclimb
38
42
  def self.openapi_types
39
43
  {
40
44
  :'application_id' => :'String',
41
- :'_alias' => :'String'
45
+ :'_alias' => :'String',
46
+ :'campaign_id' => :'String'
42
47
  }
43
48
  end
44
49
 
45
50
  # List of attributes with nullable: true
46
51
  def self.openapi_nullable
47
52
  Set.new([
53
+ :'campaign_id'
48
54
  ])
49
55
  end
50
56
 
@@ -70,6 +76,10 @@ module Freeclimb
70
76
  if attributes.key?(:'_alias')
71
77
  self._alias = attributes[:'_alias']
72
78
  end
79
+
80
+ if attributes.key?(:'campaign_id')
81
+ self.campaign_id = attributes[:'campaign_id']
82
+ end
73
83
  end
74
84
 
75
85
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,7 +101,8 @@ module Freeclimb
91
101
  return true if self.equal?(o)
92
102
  self.class == o.class &&
93
103
  application_id == o.application_id &&
94
- _alias == o._alias
104
+ _alias == o._alias &&
105
+ campaign_id == o.campaign_id
95
106
  end
96
107
 
97
108
  # @see the `==` method
@@ -103,7 +114,7 @@ module Freeclimb
103
114
  # Calculates hash code according to all attributes.
104
115
  # @return [Integer] Hash code
105
116
  def hash
106
- [application_id, _alias].hash
117
+ [application_id, _alias, campaign_id].hash
107
118
  end
108
119
 
109
120
  # Builds the object from hash