freeclimb 4.2.0 → 4.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +23 -5
  5. data/docs/DefaultApi.md +437 -1
  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 +367 -0
  18. data/lib/freeclimb/models/account_result.rb +2 -0
  19. data/lib/freeclimb/models/account_result_all_of.rb +2 -0
  20. data/lib/freeclimb/models/call_result.rb +3 -0
  21. data/lib/freeclimb/models/call_result_all_of.rb +3 -0
  22. data/lib/freeclimb/models/conference_result.rb +2 -0
  23. data/lib/freeclimb/models/conference_result_all_of.rb +2 -0
  24. data/lib/freeclimb/models/create_conference.rb +1 -0
  25. data/lib/freeclimb/models/create_conference_all_of.rb +1 -0
  26. data/lib/freeclimb/models/create_conference_request.rb +1 -0
  27. data/lib/freeclimb/models/get_speech.rb +1 -0
  28. data/lib/freeclimb/models/get_speech_all_of.rb +1 -0
  29. data/lib/freeclimb/models/incoming_number_request.rb +15 -4
  30. data/lib/freeclimb/models/log_result.rb +1 -0
  31. data/lib/freeclimb/models/message_result.rb +1 -0
  32. data/lib/freeclimb/models/message_result_all_of.rb +1 -0
  33. data/lib/freeclimb/models/sms_ten_dlc_brand.rb +960 -0
  34. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result.rb +306 -0
  35. data/lib/freeclimb/models/sms_ten_dlc_brands_list_result_all_of.rb +221 -0
  36. data/lib/freeclimb/models/sms_ten_dlc_campaign.rb +814 -0
  37. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result.rb +306 -0
  38. data/lib/freeclimb/models/sms_ten_dlc_campaigns_list_result_all_of.rb +221 -0
  39. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign.rb +807 -0
  40. data/lib/freeclimb/models/sms_ten_dlc_partner_campaign_brand.rb +445 -0
  41. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result.rb +306 -0
  42. data/lib/freeclimb/models/sms_ten_dlc_partner_campaigns_list_result_all_of.rb +221 -0
  43. data/lib/freeclimb/models/update_conference_request.rb +1 -0
  44. data/lib/freeclimb/version.rb +1 -1
  45. data/lib/freeclimb.rb +10 -0
  46. data/openapi.json +1200 -27
  47. data/spec/api/default_api_spec.rb +156 -2
  48. data/spec/models/sms_ten_dlc_brand_spec.rb +234 -0
  49. data/spec/models/sms_ten_dlc_brands_list_result_spec.rb +76 -0
  50. data/spec/models/sms_ten_dlc_campaign_spec.rb +218 -0
  51. data/spec/models/sms_ten_dlc_campaigns_list_result_spec.rb +76 -0
  52. data/spec/models/sms_ten_dlc_partner_campaign_brand_spec.rb +94 -0
  53. data/spec/models/sms_ten_dlc_partner_campaign_spec.rb +206 -0
  54. data/spec/models/sms_ten_dlc_partner_campaigns_list_result_spec.rb +76 -0
  55. data/spec/utils/signature_information_spec.rb +4 -3
  56. metadata +107 -73
@@ -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.
@@ -1798,6 +2155,7 @@ module Freeclimb
1798
2155
  # @option opts [String] :start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.
1799
2156
  # @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
1800
2157
  # @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
2158
+ # @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
1801
2159
  # @return [CallList]
1802
2160
  def list_calls(opts = {})
1803
2161
  data, _status_code, _headers = list_calls_with_http_info(opts)
@@ -1813,11 +2171,16 @@ module Freeclimb
1813
2171
  # @option opts [String] :start_time Only show Calls that started at or after this time, given as YYYY-MM-DD hh:mm:ss.
1814
2172
  # @option opts [String] :end_time Only show Calls that ended at or before this time, given as YYYY-MM- DD hh:mm:ss.
1815
2173
  # @option opts [String] :parent_call_id Only show Calls spawned by the call with this ID.
2174
+ # @option opts [Array<String>] :application_id Only show calls belonging to the given applicationId. This parameter can be repeated to return calls from multiple Applications.
1816
2175
  # @return [Array<(CallList, Integer, Hash)>] CallList data, response status code and response headers
1817
2176
  def list_calls_with_http_info(opts = {})
1818
2177
  if @api_client.config.debugging
1819
2178
  @api_client.config.logger.debug 'Calling API: DefaultApi.list_calls ...'
1820
2179
  end
2180
+ if @api_client.config.client_side_validation && !opts[:'application_id'].nil? && opts[:'application_id'].length > 16
2181
+ fail ArgumentError, 'invalid value for "opts[:"application_id"]" when calling DefaultApi.list_calls, number of items must be less than or equal to 16.'
2182
+ end
2183
+
1821
2184
  # resource path
1822
2185
  local_var_path = '/Accounts/{accountId}/Calls'.sub('{' + 'accountId' + '}', CGI.escape(account_id.to_s))
1823
2186
 
@@ -1830,6 +2193,7 @@ module Freeclimb
1830
2193
  query_params[:'startTime'] = opts[:'start_time'] if !opts[:'start_time'].nil?
1831
2194
  query_params[:'endTime'] = opts[:'end_time'] if !opts[:'end_time'].nil?
1832
2195
  query_params[:'parentCallId'] = opts[:'parent_call_id'] if !opts[:'parent_call_id'].nil?
2196
+ query_params[:'applicationId'] = @api_client.build_collection_param(opts[:'application_id'], :multi) if !opts[:'application_id'].nil?
1833
2197
 
1834
2198
  # header parameters
1835
2199
  header_params = opts[:header_params] || {}
@@ -1942,6 +2306,7 @@ module Freeclimb
1942
2306
  # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it. (default to false)
1943
2307
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers. (default to true)
1944
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
1945
2310
  # @option opts [Boolean] :capabilities_voice
1946
2311
  # @option opts [Boolean] :capabilities_sms
1947
2312
  # @option opts [Boolean] :capabilities_toll_free
@@ -1964,6 +2329,7 @@ module Freeclimb
1964
2329
  # @option opts [Boolean] :has_application Indication of whether the phone number has an application linked to it.
1965
2330
  # @option opts [Boolean] :voice_enabled Indicates whether the phone number can handle Calls. Typically set to true for all numbers.
1966
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
1967
2333
  # @option opts [Boolean] :capabilities_voice
1968
2334
  # @option opts [Boolean] :capabilities_sms
1969
2335
  # @option opts [Boolean] :capabilities_toll_free
@@ -1988,6 +2354,7 @@ module Freeclimb
1988
2354
  query_params[:'hasApplication'] = opts[:'has_application'] if !opts[:'has_application'].nil?
1989
2355
  query_params[:'voiceEnabled'] = opts[:'voice_enabled'] if !opts[:'voice_enabled'].nil?
1990
2356
  query_params[:'smsEnabled'] = opts[:'sms_enabled'] if !opts[:'sms_enabled'].nil?
2357
+ query_params[:'hasCampaign'] = opts[:'has_campaign'] if !opts[:'has_campaign'].nil?
1991
2358
  query_params[:'capabilities.voice'] = opts[:'capabilities_voice'] if !opts[:'capabilities_voice'].nil?
1992
2359
  query_params[:'capabilities.sms'] = opts[:'capabilities_sms'] if !opts[:'capabilities_sms'].nil?
1993
2360
  query_params[:'capabilities.tollFree'] = opts[:'capabilities_toll_free'] if !opts[:'capabilities_toll_free'].nil?
@@ -92,6 +92,8 @@ module Freeclimb
92
92
  :'api_key',
93
93
  :'_alias',
94
94
  :'label',
95
+ :'type',
96
+ :'status',
95
97
  :'subresource_uris'
96
98
  ])
97
99
  end
@@ -72,6 +72,8 @@ module Freeclimb
72
72
  :'api_key',
73
73
  :'_alias',
74
74
  :'label',
75
+ :'type',
76
+ :'status',
75
77
  :'subresource_uris'
76
78
  ])
77
79
  end
@@ -133,11 +133,14 @@ module Freeclimb
133
133
  :'from',
134
134
  :'to',
135
135
  :'phone_number_id',
136
+ :'call_status',
136
137
  :'start_time',
137
138
  :'connect_time',
138
139
  :'end_time',
139
140
  :'duration',
140
141
  :'connect_duration',
142
+ :'direction',
143
+ :'answered_by',
141
144
  :'subresource_uris'
142
145
  ])
143
146
  end
@@ -113,11 +113,14 @@ module Freeclimb
113
113
  :'from',
114
114
  :'to',
115
115
  :'phone_number_id',
116
+ :'call_status',
116
117
  :'start_time',
117
118
  :'connect_time',
118
119
  :'end_time',
119
120
  :'duration',
120
121
  :'connect_duration',
122
+ :'direction',
123
+ :'answered_by',
121
124
  :'subresource_uris'
122
125
  ])
123
126
  end
@@ -106,7 +106,9 @@ module Freeclimb
106
106
  :'conference_id',
107
107
  :'account_id',
108
108
  :'_alias',
109
+ :'play_beep',
109
110
  :'record',
111
+ :'status',
110
112
  :'wait_url',
111
113
  :'action_url',
112
114
  :'status_callback_url',
@@ -86,7 +86,9 @@ module Freeclimb
86
86
  :'conference_id',
87
87
  :'account_id',
88
88
  :'_alias',
89
+ :'play_beep',
89
90
  :'record',
91
+ :'status',
90
92
  :'wait_url',
91
93
  :'action_url',
92
94
  :'status_callback_url',
@@ -65,6 +65,7 @@ module Freeclimb
65
65
  # List of attributes with nullable: true
66
66
  def self.openapi_nullable
67
67
  Set.new([
68
+ :'play_beep',
68
69
  ])
69
70
  end
70
71
 
@@ -64,6 +64,7 @@ module Freeclimb
64
64
  # List of attributes with nullable: true
65
65
  def self.openapi_nullable
66
66
  Set.new([
67
+ :'play_beep',
67
68
  ])
68
69
  end
69
70
 
@@ -59,6 +59,7 @@ module Freeclimb
59
59
  # List of attributes with nullable: true
60
60
  def self.openapi_nullable
61
61
  Set.new([
62
+ :'play_beep',
62
63
  ])
63
64
  end
64
65
 
@@ -100,6 +100,7 @@ module Freeclimb
100
100
  # List of attributes with nullable: true
101
101
  def self.openapi_nullable
102
102
  Set.new([
103
+ :'grammar_type',
103
104
  ])
104
105
  end
105
106
 
@@ -99,6 +99,7 @@ module Freeclimb
99
99
  # List of attributes with nullable: true
100
100
  def self.openapi_nullable
101
101
  Set.new([
102
+ :'grammar_type',
102
103
  ])
103
104
  end
104
105
 
@@ -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
@@ -70,6 +70,7 @@ module Freeclimb
70
70
  def self.openapi_nullable
71
71
  Set.new([
72
72
  :'timestamp',
73
+ :'level',
73
74
  :'request_id',
74
75
  :'account_id',
75
76
  :'call_id',
@@ -96,6 +96,7 @@ module Freeclimb
96
96
  Set.new([
97
97
  :'account_id',
98
98
  :'message_id',
99
+ :'status',
99
100
  :'from',
100
101
  :'to',
101
102
  :'text',
@@ -76,6 +76,7 @@ module Freeclimb
76
76
  Set.new([
77
77
  :'account_id',
78
78
  :'message_id',
79
+ :'status',
79
80
  :'from',
80
81
  :'to',
81
82
  :'text',