apifreaks 1.0.2 → 1.0.3

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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/apifreaks/client.rb +19 -10
  3. data/lib/apifreaks/types/astronomy_lookup_response.rb +1 -1
  4. data/lib/apifreaks/types/astronomy_lookup_response_location.rb +7 -7
  5. data/lib/apifreaks/types/bulk_domain_availability_check_response.rb +1 -1
  6. data/lib/apifreaks/types/bulk_domain_availability_check_response_bulk_domain_available_response_item.rb +3 -3
  7. data/lib/apifreaks/types/bulk_domain_dns_lookup_request.rb +3 -1
  8. data/lib/apifreaks/types/bulk_domain_dns_lookup_response_bulk_dns_info_item.rb +4 -2
  9. data/lib/apifreaks/types/bulk_domain_dns_lookup_response_bulk_dns_info_item_dns_types.rb +2 -0
  10. data/lib/apifreaks/types/bulk_email_validate_response_email_validation_responses_item.rb +1 -1
  11. data/lib/apifreaks/types/bulk_email_validate_response_email_validation_responses_item_dns.rb +1 -1
  12. data/lib/apifreaks/types/bulk_email_validate_response_email_validation_responses_item_valid_email.rb +3 -1
  13. data/lib/apifreaks/types/bulk_geolocation_lookup_response_item.rb +1 -1
  14. data/lib/apifreaks/types/bulk_zipcode_lookup_response_results_item.rb +0 -2
  15. data/lib/apifreaks/types/commodity_fluctuation_request.rb +1 -1
  16. data/lib/apifreaks/types/commodity_fluctuation_response.rb +3 -7
  17. data/lib/apifreaks/types/commodity_historical_rates_request.rb +1 -1
  18. data/lib/apifreaks/types/commodity_historical_rates_response.rb +3 -5
  19. data/lib/apifreaks/types/commodity_latest_rates_request.rb +1 -1
  20. data/lib/apifreaks/types/commodity_latest_rates_response.rb +2 -2
  21. data/lib/apifreaks/types/commodity_time_series_request.rb +1 -1
  22. data/lib/apifreaks/types/commodity_time_series_response.rb +3 -7
  23. data/lib/apifreaks/types/currency_convert_by_ip_request.rb +1 -1
  24. data/lib/apifreaks/types/currency_convert_historical_request.rb +1 -1
  25. data/lib/apifreaks/types/currency_convert_latest_request.rb +1 -1
  26. data/lib/apifreaks/types/domain_availability_check_response.rb +2 -4
  27. data/lib/apifreaks/types/domain_availability_suggestions_request.rb +2 -0
  28. data/lib/apifreaks/types/domain_availability_suggestions_response.rb +1 -1
  29. data/lib/apifreaks/types/domain_availability_suggestions_response_domain_available_response_item.rb +2 -4
  30. data/lib/apifreaks/types/domain_dns_history_request.rb +1 -1
  31. data/lib/apifreaks/types/domain_dns_history_response.rb +4 -4
  32. data/lib/apifreaks/types/domain_dns_history_response_historical_dns_records_item.rb +0 -2
  33. data/lib/apifreaks/types/domain_dns_lookup_request.rb +1 -1
  34. data/lib/apifreaks/types/domain_dns_reverse_response_reverse_dns_records_item.rb +1 -1
  35. data/lib/apifreaks/types/domain_ssl_chain_lookup_response_ssl_certificates_item_extensions_authority_info_access.rb +2 -2
  36. data/lib/apifreaks/types/domain_ssl_chain_lookup_response_ssl_certificates_item_issuer.rb +2 -2
  37. data/lib/apifreaks/types/domain_ssl_lookup_response_ssl_certificates_item_extensions_authority_info_access.rb +2 -2
  38. data/lib/apifreaks/types/domain_ssl_lookup_response_ssl_certificates_item_issuer.rb +2 -2
  39. data/lib/apifreaks/types/domain_whois_history_response_whois_domains_historical_item_administrative_contact.rb +2 -2
  40. data/lib/apifreaks/types/domain_whois_history_response_whois_domains_historical_item_billing_contact.rb +2 -2
  41. data/lib/apifreaks/types/domain_whois_history_response_whois_domains_historical_item_registrant_contact.rb +2 -2
  42. data/lib/apifreaks/types/domain_whois_history_response_whois_domains_historical_item_technical_contact.rb +2 -2
  43. data/lib/apifreaks/types/domain_whois_reverse_response.rb +3 -3
  44. data/lib/apifreaks/types/domain_whois_reverse_response_whois_domains_historical_item_companyname.rb +1 -1
  45. data/lib/apifreaks/types/email_validate_response.rb +1 -1
  46. data/lib/apifreaks/types/email_validate_response_dns.rb +1 -1
  47. data/lib/apifreaks/types/email_validate_response_valid_email.rb +3 -1
  48. data/lib/apifreaks/types/geolocation_lookup_response.rb +1 -1
  49. data/lib/apifreaks/types/get_admin_unit_details_response.rb +3 -1
  50. data/lib/apifreaks/types/subdomains_lookup_response_subdomains_item.rb +1 -1
  51. data/lib/apifreaks/types/timezone_lookup_response.rb +2 -2
  52. data/lib/apifreaks/types/timezone_lookup_response_airport_details.rb +12 -12
  53. data/lib/apifreaks/types/timezone_lookup_response_lo_code_details.rb +8 -8
  54. data/lib/apifreaks/types/timezone_lookup_response_time_zone.rb +2 -10
  55. data/lib/apifreaks/types/user_agent_lookup_request.rb +2 -0
  56. data/lib/apifreaks/types/vat_validate_response.rb +2 -2
  57. data/lib/apifreaks/types/zipcode_distance_match_response.rb +1 -1
  58. data/lib/apifreaks/types/zipcode_distance_response.rb +1 -1
  59. data/lib/apifreaks/types/zipcode_lookup_response_results_item.rb +0 -2
  60. data/lib/apifreaks/types/zipcode_search_by_radius_response_results_item.rb +0 -2
  61. data/lib/apifreaks/version.rb +1 -1
  62. data/lib/apifreaks.rb +0 -3
  63. data/reference.md +43 -11
  64. metadata +3 -9
  65. data/lib/apifreaks/types/commodity_fluctuation_response_rates_value.rb +0 -15
  66. data/lib/apifreaks/types/commodity_historical_rates_response_rates_value.rb +0 -17
  67. data/lib/apifreaks/types/commodity_time_series_response_rates_value_value.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14c006fe1588734fcd107e50bbcbcce4e54ec68a067490ba0960ea4fb1c281ff
4
- data.tar.gz: c93f06cdfd70c2afd170ea87f9448dd11f95f2bbee2329cb2690854035bbd3db
3
+ metadata.gz: c022d7049fc7c4f1c67188c17d82573b8df89f836bfe1ec26055ce9970c5f4b6
4
+ data.tar.gz: ba53b7d5c019c3ddd3c022ba91f677ed5b400222bd89e57577d88f11d35fc6ed
5
5
  SHA512:
6
- metadata.gz: 29279264024f25315d056ea53c5a835c42c6e1917ef2d90032f02dbe023b0cd61365ecd9c5607f47e862d144c41c3ea526cd6f0a3c5199715461ba1298b1fdd2
7
- data.tar.gz: a2f625b51f07f5b1a41a31dfbf2ad3445dd377d911fea5aab982cfff0dc4dee4b89e13914d68a777f8fdb3c61f9e5991955adb0a34914254b2019a24ec522d7a
6
+ metadata.gz: 8dbace455253a45ca007ed39a15bf9d820aa4ec8c7af2b4102726d31e75ff2aa09a500fc0541c039163aff5a3b1990a80078f3d9f2834a894b2846134dfd03c8
7
+ data.tar.gz: 4eca80c3c150f77773bd15532a8bab7849e355f7241e1647567775d56fe0f0572cc0b363834a4a6e366f088958c7e71892af60d2c0c4886ae7261070d1922156
@@ -594,7 +594,7 @@ module Apifreaks
594
594
  # @option params [Apifreaks::Types::DomainDNSLookupRequestFormat, nil] :format
595
595
  # @option params [String, nil] :host_name
596
596
  # @option params [String, nil] :ip_address
597
- # @option params [String, nil] :type
597
+ # @option params [String] :type
598
598
  #
599
599
  # @return [Apifreaks::Types::DomainDNSLookupResponse]
600
600
  def domain_dns_lookup(request_options: {}, **params)
@@ -639,7 +639,8 @@ module Apifreaks
639
639
  # @option request_options [Integer] :timeout_in_seconds
640
640
  # @option params [String] :api_key
641
641
  # @option params [Apifreaks::Types::BulkDomainDNSLookupRequestFormat, nil] :format
642
- # @option params [String, nil] :type
642
+ # @option params [String] :type
643
+ # @option params [Internal::Types::Array[String], nil] :ip_addresses
643
644
  #
644
645
  # @return [Apifreaks::Types::BulkDomainDNSLookupResponse]
645
646
  def bulk_domain_dns_lookup(request_options: {}, **params)
@@ -689,7 +690,7 @@ module Apifreaks
689
690
  # @option params [String] :api_key
690
691
  # @option params [Apifreaks::Types::DomainDNSHistoryRequestFormat, nil] :format
691
692
  # @option params [String] :host_name
692
- # @option params [String, nil] :type
693
+ # @option params [String] :type
693
694
  # @option params [Integer, nil] :page
694
695
  #
695
696
  # @return [Apifreaks::Types::DomainDNSHistoryResponse]
@@ -1213,6 +1214,7 @@ module Apifreaks
1213
1214
  # @option params [String] :domain
1214
1215
  # @option params [Apifreaks::Types::DomainAvailabilitySuggestionsRequestSource, nil] :source
1215
1216
  # @option params [Integer, nil] :count
1217
+ # @option params [Boolean, nil] :sug
1216
1218
  #
1217
1219
  # @return [Apifreaks::Types::DomainAvailabilitySuggestionsResponse]
1218
1220
  def domain_availability_suggestions(request_options: {}, **params)
@@ -1223,6 +1225,7 @@ module Apifreaks
1223
1225
  query_params["domain"] = params[:domain] if params.key?(:domain)
1224
1226
  query_params["source"] = params[:source] if params.key?(:source)
1225
1227
  query_params["count"] = params[:count] if params.key?(:count)
1228
+ query_params["sug"] = params[:sug] if params.key?(:sug)
1226
1229
 
1227
1230
  request = Apifreaks::Internal::JSON::Request.new(
1228
1231
  base_url: request_options[:base_url],
@@ -2086,6 +2089,7 @@ module Apifreaks
2086
2089
  # @option request_options [Integer] :timeout_in_seconds
2087
2090
  # @option params [String] :api_key
2088
2091
  # @option params [Apifreaks::Types::PdfUploadResourcesRequestFormat, nil] :format
2092
+ # @option params [File] :file
2089
2093
  #
2090
2094
  # @return [Apifreaks::Types::PdfUploadResourcesResponse]
2091
2095
  def pdf_upload_resources(request_options: {}, **params)
@@ -2702,7 +2706,7 @@ module Apifreaks
2702
2706
  # @option params [Apifreaks::Types::CurrencyConvertLatestRequestFormat, nil] :format
2703
2707
  # @option params [String] :from
2704
2708
  # @option params [String] :to
2705
- # @option params [Integer, nil] :amount
2709
+ # @option params [String, nil] :amount
2706
2710
  # @option params [Apifreaks::Types::CurrencyConvertLatestRequestUpdates, nil] :updates
2707
2711
  #
2708
2712
  # @return [Apifreaks::Types::CurrencyConvertLatestResponse]
@@ -2750,7 +2754,7 @@ module Apifreaks
2750
2754
  # @option params [Apifreaks::Types::CurrencyConvertHistoricalRequestFormat, nil] :format
2751
2755
  # @option params [String] :from
2752
2756
  # @option params [String] :to
2753
- # @option params [Integer, nil] :amount
2757
+ # @option params [String, nil] :amount
2754
2758
  # @option params [String] :date
2755
2759
  #
2756
2760
  # @return [Apifreaks::Types::CurrencyConvertHistoricalResponse]
@@ -2895,7 +2899,7 @@ module Apifreaks
2895
2899
  # @option params [Apifreaks::Types::CurrencyConvertByIPRequestUpdates, nil] :updates
2896
2900
  # @option params [String] :from
2897
2901
  # @option params [String, nil] :ip
2898
- # @option params [Integer, nil] :amount
2902
+ # @option params [String, nil] :amount
2899
2903
  #
2900
2904
  # @return [Apifreaks::Types::CurrencyConvertByIPResponse]
2901
2905
  def currency_convert_by_ip(request_options: {}, **params)
@@ -3060,7 +3064,7 @@ module Apifreaks
3060
3064
  # @option request_options [Integer] :timeout_in_seconds
3061
3065
  # @option params [String] :api_key
3062
3066
  # @option params [Apifreaks::Types::CommodityLatestRatesRequestFormat, nil] :format
3063
- # @option params [String, nil] :symbols
3067
+ # @option params [String] :symbols
3064
3068
  # @option params [Apifreaks::Types::CommodityLatestRatesRequestUpdates] :updates
3065
3069
  # @option params [String, nil] :quote
3066
3070
  #
@@ -3107,7 +3111,7 @@ module Apifreaks
3107
3111
  # @option params [String] :api_key
3108
3112
  # @option params [Apifreaks::Types::CommodityHistoricalRatesRequestFormat, nil] :format
3109
3113
  # @option params [String] :date
3110
- # @option params [String, nil] :symbols
3114
+ # @option params [String] :symbols
3111
3115
  #
3112
3116
  # @return [Apifreaks::Types::CommodityHistoricalRatesResponse]
3113
3117
  def commodity_historical_rates(request_options: {}, **params)
@@ -3150,7 +3154,7 @@ module Apifreaks
3150
3154
  # @option request_options [Integer] :timeout_in_seconds
3151
3155
  # @option params [String] :api_key
3152
3156
  # @option params [Apifreaks::Types::CommodityFluctuationRequestFormat, nil] :format
3153
- # @option params [String, nil] :symbols
3157
+ # @option params [String] :symbols
3154
3158
  # @option params [String] :start_date
3155
3159
  # @option params [String] :end_date
3156
3160
  #
@@ -3196,7 +3200,7 @@ module Apifreaks
3196
3200
  # @option request_options [Integer] :timeout_in_seconds
3197
3201
  # @option params [String] :api_key
3198
3202
  # @option params [Apifreaks::Types::CommodityTimeSeriesRequestFormat, nil] :format
3199
- # @option params [String, nil] :symbols
3203
+ # @option params [String] :symbols
3200
3204
  # @option params [String] :start_date
3201
3205
  # @option params [String] :end_date
3202
3206
  #
@@ -4949,6 +4953,7 @@ module Apifreaks
4949
4953
  # @option request_options [Integer] :timeout_in_seconds
4950
4954
  # @option params [String] :api_key
4951
4955
  # @option params [Apifreaks::Types::UserAgentLookupRequestFormat, nil] :format
4956
+ # @option params [String] :user_agent
4952
4957
  #
4953
4958
  # @return [Apifreaks::Types::UserAgentLookupResponse]
4954
4959
  def user_agent_lookup(request_options: {}, **params)
@@ -4957,10 +4962,14 @@ module Apifreaks
4957
4962
  query_params["apiKey"] = params[:api_key] if params.key?(:api_key)
4958
4963
  query_params["format"] = params[:format] if params.key?(:format)
4959
4964
 
4965
+ headers = {}
4966
+ headers["User-Agent"] = params[:user_agent] if params[:user_agent]
4967
+
4960
4968
  request = Apifreaks::Internal::JSON::Request.new(
4961
4969
  base_url: request_options[:base_url],
4962
4970
  method: "GET",
4963
4971
  path: "v1.0/user-agent/lookup",
4972
+ headers: headers,
4964
4973
  query: query_params,
4965
4974
  request_options: request_options
4966
4975
  )
@@ -5,7 +5,7 @@ module Apifreaks
5
5
  class AstronomyLookupResponse < Internal::Types::Model
6
6
  field :ip, -> { String }, optional: true, nullable: false
7
7
 
8
- field :location, -> { Apifreaks::Types::AstronomyLookupResponseLocation }, optional: false, nullable: false
8
+ field :location, -> { Apifreaks::Types::AstronomyLookupResponseLocation }, optional: true, nullable: false
9
9
 
10
10
  field :astronomy, -> { Apifreaks::Types::AstronomyLookupResponseAstronomy }, optional: false, nullable: false
11
11
  end
@@ -13,29 +13,29 @@ module Apifreaks
13
13
 
14
14
  field :country_code3, -> { String }, optional: true, nullable: false
15
15
 
16
- field :country_name, -> { String }, optional: false, nullable: false
16
+ field :country_name, -> { String }, optional: true, nullable: false
17
17
 
18
18
  field :country_name_official, -> { String }, optional: true, nullable: false
19
19
 
20
20
  field :is_eu, -> { Internal::Types::Boolean }, optional: true, nullable: false
21
21
 
22
- field :state_prov, -> { String }, optional: false, nullable: false
22
+ field :state_prov, -> { String }, optional: true, nullable: false
23
23
 
24
24
  field :state_code, -> { String }, optional: true, nullable: false
25
25
 
26
26
  field :district, -> { String }, optional: true, nullable: false
27
27
 
28
- field :city, -> { String }, optional: false, nullable: false
28
+ field :city, -> { String }, optional: true, nullable: false
29
29
 
30
30
  field :zipcode, -> { String }, optional: true, nullable: false
31
31
 
32
- field :latitude, -> { String }, optional: false, nullable: false
32
+ field :latitude, -> { String }, optional: true, nullable: false
33
33
 
34
- field :longitude, -> { String }, optional: false, nullable: false
34
+ field :longitude, -> { String }, optional: true, nullable: false
35
35
 
36
- field :locality, -> { String }, optional: false, nullable: false
36
+ field :locality, -> { String }, optional: true, nullable: false
37
37
 
38
- field :elevation, -> { String }, optional: false, nullable: false
38
+ field :elevation, -> { String }, optional: true, nullable: false
39
39
  end
40
40
  end
41
41
  end
@@ -3,7 +3,7 @@
3
3
  module Apifreaks
4
4
  module Types
5
5
  class BulkDomainAvailabilityCheckResponse < Internal::Types::Model
6
- field :bulk_domain_available_response, -> { Internal::Types::Array[Apifreaks::Types::BulkDomainAvailabilityCheckResponseBulkDomainAvailableResponseItem] }, optional: true, nullable: false
6
+ field :bulk_domain_available_response, -> { Internal::Types::Array[Apifreaks::Types::BulkDomainAvailabilityCheckResponseBulkDomainAvailableResponseItem] }, optional: false, nullable: false
7
7
  end
8
8
  end
9
9
  end
@@ -3,11 +3,11 @@
3
3
  module Apifreaks
4
4
  module Types
5
5
  class BulkDomainAvailabilityCheckResponseBulkDomainAvailableResponseItem < Internal::Types::Model
6
- field :domain, -> { String }, optional: true, nullable: false
6
+ field :domain, -> { String }, optional: false, nullable: false
7
7
 
8
- field :domain_availability, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "domainAvailability"
8
+ field :domain_availability, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "domainAvailability"
9
9
 
10
- field :status, -> { Internal::Types::Boolean }, optional: true, nullable: false
10
+ field :status, -> { Internal::Types::Boolean }, optional: false, nullable: false
11
11
  end
12
12
  end
13
13
  end
@@ -7,9 +7,11 @@ module Apifreaks
7
7
 
8
8
  field :format, -> { Apifreaks::Types::BulkDomainDNSLookupRequestFormat }, optional: true, nullable: false
9
9
 
10
- field :type, -> { String }, optional: true, nullable: false
10
+ field :type, -> { String }, optional: false, nullable: false
11
11
 
12
12
  field :domain_names, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "domainNames"
13
+
14
+ field :ip_addresses, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "ipAddresses"
13
15
  end
14
16
  end
15
17
  end
@@ -7,9 +7,11 @@ module Apifreaks
7
7
 
8
8
  field :query_time, -> { String }, optional: false, nullable: false, api_name: "queryTime"
9
9
 
10
- field :domain_name, -> { String }, optional: false, nullable: false, api_name: "domainName"
10
+ field :domain_name, -> { String }, optional: true, nullable: false, api_name: "domainName"
11
11
 
12
- field :domain_registered, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "domainRegistered"
12
+ field :domain_registered, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "domainRegistered"
13
+
14
+ field :ip_address, -> { String }, optional: true, nullable: false, api_name: "ipAddress"
13
15
 
14
16
  field :dns_types, -> { Apifreaks::Types::BulkDomainDNSLookupResponseBulkDNSInfoItemDNSTypes }, optional: false, nullable: false, api_name: "dnsTypes"
15
17
 
@@ -18,6 +18,8 @@ module Apifreaks
18
18
  field :txt, -> { Integer }, optional: true, nullable: false, api_name: "TXT"
19
19
 
20
20
  field :spf, -> { Integer }, optional: true, nullable: false, api_name: "SPF"
21
+
22
+ field :ptr, -> { Integer }, optional: true, nullable: false, api_name: "PTR"
21
23
  end
22
24
  end
23
25
  end
@@ -21,7 +21,7 @@ module Apifreaks
21
21
 
22
22
  field :dns, -> { Apifreaks::Types::BulkEmailValidateResponseEmailValidationResponsesItemDNS }, optional: false, nullable: false
23
23
 
24
- field :ip, -> { String }, optional: true, nullable: false
24
+ field :ip_address, -> { String }, optional: true, nullable: false, api_name: "ipAddress"
25
25
 
26
26
  field :address, -> { Apifreaks::Types::BulkEmailValidateResponseEmailValidationResponsesItemAddress }, optional: true, nullable: false
27
27
  end
@@ -5,7 +5,7 @@ module Apifreaks
5
5
  class BulkEmailValidateResponseEmailValidationResponsesItemDNS < Internal::Types::Model
6
6
  field :mx_records, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "mxRecords"
7
7
 
8
- field :a_records, -> { Internal::Types::Array[String] }, optional: true, nullable: false, api_name: "aRecords"
8
+ field :a_records, -> { Internal::Types::Array[String] }, optional: false, nullable: false, api_name: "aRecords"
9
9
  end
10
10
  end
11
11
  end
@@ -6,7 +6,9 @@ module Apifreaks
6
6
  extend Apifreaks::Internal::Types::Enum
7
7
 
8
8
  VALID = "valid"
9
- INVALID = "invalid"
9
+ INVALID = "Invalid"
10
+ UNKNOWN = "Unknown"
11
+ RISKY = "Risky"
10
12
  end
11
13
  end
12
14
  end
@@ -17,7 +17,7 @@ module Apifreaks
17
17
 
18
18
  field :security, -> { Apifreaks::Types::BulkGeolocationLookupResponseItemSecurity }, optional: true, nullable: false
19
19
 
20
- field :abuse, -> { Internal::Types::Array[Apifreaks::Types::BulkGeolocationLookupResponseItemAbuseItem] }, optional: true, nullable: false
20
+ field :abuse, -> { Apifreaks::Types::BulkGeolocationLookupResponseItemAbuseItem }, optional: true, nullable: false
21
21
 
22
22
  field :time_zone, -> { Apifreaks::Types::BulkGeolocationLookupResponseItemTimeZone }, optional: true, nullable: false
23
23
 
@@ -9,8 +9,6 @@ module Apifreaks
9
9
 
10
10
  field :region, -> { String }, optional: true, nullable: false
11
11
 
12
- field :region_code, -> { String }, optional: true, nullable: false
13
-
14
12
  field :city, -> { String }, optional: true, nullable: false
15
13
 
16
14
  field :locality, -> { String }, optional: true, nullable: false
@@ -7,7 +7,7 @@ module Apifreaks
7
7
 
8
8
  field :format, -> { Apifreaks::Types::CommodityFluctuationRequestFormat }, optional: true, nullable: false
9
9
 
10
- field :symbols, -> { String }, optional: true, nullable: false
10
+ field :symbols, -> { String }, optional: false, nullable: false
11
11
 
12
12
  field :start_date, -> { String }, optional: false, nullable: false, api_name: "startDate"
13
13
 
@@ -5,15 +5,11 @@ module Apifreaks
5
5
  class CommodityFluctuationResponse < Internal::Types::Model
6
6
  field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
7
7
 
8
- field :timestamp, -> { Integer }, optional: true, nullable: false
8
+ field :timestamp, -> { Float }, optional: false, nullable: false
9
9
 
10
- field :metadata, -> { Internal::Types::Hash[String, Apifreaks::Types::CommodityFluctuationResponseMetadataValue] }, optional: true, nullable: false
10
+ field :rates, -> { Internal::Types::Hash[String, Float] }, optional: false, nullable: false
11
11
 
12
- field :start_date, -> { String }, optional: false, nullable: false, api_name: "startDate"
13
-
14
- field :end_date, -> { String }, optional: false, nullable: false, api_name: "endDate"
15
-
16
- field :rates, -> { Internal::Types::Hash[String, Apifreaks::Types::CommodityFluctuationResponseRatesValue] }, optional: false, nullable: false
12
+ field :metadata, -> { Internal::Types::Hash[String, Apifreaks::Types::CommodityFluctuationResponseMetadataValue] }, optional: false, nullable: false
17
13
  end
18
14
  end
19
15
  end
@@ -9,7 +9,7 @@ module Apifreaks
9
9
 
10
10
  field :date, -> { String }, optional: false, nullable: false
11
11
 
12
- field :symbols, -> { String }, optional: true, nullable: false
12
+ field :symbols, -> { String }, optional: false, nullable: false
13
13
  end
14
14
  end
15
15
  end
@@ -5,13 +5,11 @@ module Apifreaks
5
5
  class CommodityHistoricalRatesResponse < Internal::Types::Model
6
6
  field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
7
7
 
8
- field :timestamp, -> { Integer }, optional: true, nullable: false
8
+ field :timestamp, -> { Float }, optional: false, nullable: false
9
9
 
10
- field :metadata, -> { Internal::Types::Hash[String, Apifreaks::Types::CommodityHistoricalRatesResponseMetadataValue] }, optional: true, nullable: false
10
+ field :rates, -> { Internal::Types::Hash[String, Float] }, optional: false, nullable: false
11
11
 
12
- field :date, -> { String }, optional: false, nullable: false
13
-
14
- field :rates, -> { Internal::Types::Hash[String, Apifreaks::Types::CommodityHistoricalRatesResponseRatesValue] }, optional: false, nullable: false
12
+ field :metadata, -> { Internal::Types::Hash[String, Apifreaks::Types::CommodityHistoricalRatesResponseMetadataValue] }, optional: false, nullable: false
15
13
  end
16
14
  end
17
15
  end
@@ -7,7 +7,7 @@ module Apifreaks
7
7
 
8
8
  field :format, -> { Apifreaks::Types::CommodityLatestRatesRequestFormat }, optional: true, nullable: false
9
9
 
10
- field :symbols, -> { String }, optional: true, nullable: false
10
+ field :symbols, -> { String }, optional: false, nullable: false
11
11
 
12
12
  field :updates, -> { Apifreaks::Types::CommodityLatestRatesRequestUpdates }, optional: false, nullable: false
13
13
 
@@ -5,9 +5,9 @@ module Apifreaks
5
5
  class CommodityLatestRatesResponse < Internal::Types::Model
6
6
  field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
7
7
 
8
- field :timestamp, -> { Integer }, optional: false, nullable: false
8
+ field :timestamp, -> { Float }, optional: false, nullable: false
9
9
 
10
- field :rates, -> { Internal::Types::Hash[String, Integer] }, optional: false, nullable: false
10
+ field :rates, -> { Internal::Types::Hash[String, Float] }, optional: false, nullable: false
11
11
 
12
12
  field :metadata, -> { Internal::Types::Hash[String, Apifreaks::Types::CommodityLatestRatesResponseMetadataValue] }, optional: false, nullable: false
13
13
  end
@@ -7,7 +7,7 @@ module Apifreaks
7
7
 
8
8
  field :format, -> { Apifreaks::Types::CommodityTimeSeriesRequestFormat }, optional: true, nullable: false
9
9
 
10
- field :symbols, -> { String }, optional: true, nullable: false
10
+ field :symbols, -> { String }, optional: false, nullable: false
11
11
 
12
12
  field :start_date, -> { String }, optional: false, nullable: false, api_name: "startDate"
13
13
 
@@ -5,15 +5,11 @@ module Apifreaks
5
5
  class CommodityTimeSeriesResponse < Internal::Types::Model
6
6
  field :success, -> { Internal::Types::Boolean }, optional: false, nullable: false
7
7
 
8
- field :timestamp, -> { Integer }, optional: true, nullable: false
8
+ field :timestamp, -> { Float }, optional: false, nullable: false
9
9
 
10
- field :metadata, -> { Internal::Types::Hash[String, Apifreaks::Types::CommodityTimeSeriesResponseMetadataValue] }, optional: true, nullable: false
10
+ field :rates, -> { Internal::Types::Hash[String, Float] }, optional: false, nullable: false
11
11
 
12
- field :start_date, -> { String }, optional: false, nullable: false, api_name: "startDate"
13
-
14
- field :end_date, -> { String }, optional: false, nullable: false, api_name: "endDate"
15
-
16
- field :rates, -> { Internal::Types::Hash[String, Internal::Types::Hash[String, Apifreaks::Types::CommodityTimeSeriesResponseRatesValueValue]] }, optional: false, nullable: false
12
+ field :metadata, -> { Internal::Types::Hash[String, Apifreaks::Types::CommodityTimeSeriesResponseMetadataValue] }, optional: false, nullable: false
17
13
  end
18
14
  end
19
15
  end
@@ -13,7 +13,7 @@ module Apifreaks
13
13
 
14
14
  field :ip, -> { String }, optional: true, nullable: false
15
15
 
16
- field :amount, -> { Integer }, optional: true, nullable: false
16
+ field :amount, -> { String }, optional: true, nullable: false
17
17
  end
18
18
  end
19
19
  end
@@ -11,7 +11,7 @@ module Apifreaks
11
11
 
12
12
  field :to, -> { String }, optional: false, nullable: false
13
13
 
14
- field :amount, -> { Integer }, optional: true, nullable: false
14
+ field :amount, -> { String }, optional: true, nullable: false
15
15
 
16
16
  field :date, -> { String }, optional: false, nullable: false
17
17
  end
@@ -11,7 +11,7 @@ module Apifreaks
11
11
 
12
12
  field :to, -> { String }, optional: false, nullable: false
13
13
 
14
- field :amount, -> { Integer }, optional: true, nullable: false
14
+ field :amount, -> { String }, optional: true, nullable: false
15
15
 
16
16
  field :updates, -> { Apifreaks::Types::CurrencyConvertLatestRequestUpdates }, optional: true, nullable: false
17
17
  end
@@ -3,11 +3,9 @@
3
3
  module Apifreaks
4
4
  module Types
5
5
  class DomainAvailabilityCheckResponse < Internal::Types::Model
6
- field :domain, -> { String }, optional: true, nullable: false
6
+ field :domain, -> { String }, optional: false, nullable: false
7
7
 
8
- field :domain_availability, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "domainAvailability"
9
-
10
- field :message, -> { String }, optional: true, nullable: false
8
+ field :domain_availability, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "domainAvailability"
11
9
  end
12
10
  end
13
11
  end
@@ -12,6 +12,8 @@ module Apifreaks
12
12
  field :source, -> { Apifreaks::Types::DomainAvailabilitySuggestionsRequestSource }, optional: true, nullable: false
13
13
 
14
14
  field :count, -> { Integer }, optional: true, nullable: false
15
+
16
+ field :sug, -> { Internal::Types::Boolean }, optional: true, nullable: false
15
17
  end
16
18
  end
17
19
  end
@@ -3,7 +3,7 @@
3
3
  module Apifreaks
4
4
  module Types
5
5
  class DomainAvailabilitySuggestionsResponse < Internal::Types::Model
6
- field :domain_available_response, -> { Internal::Types::Array[Apifreaks::Types::DomainAvailabilitySuggestionsResponseDomainAvailableResponseItem] }, optional: true, nullable: false
6
+ field :domain_available_response, -> { Internal::Types::Array[Apifreaks::Types::DomainAvailabilitySuggestionsResponseDomainAvailableResponseItem] }, optional: false, nullable: false
7
7
  end
8
8
  end
9
9
  end
@@ -3,11 +3,9 @@
3
3
  module Apifreaks
4
4
  module Types
5
5
  class DomainAvailabilitySuggestionsResponseDomainAvailableResponseItem < Internal::Types::Model
6
- field :domain, -> { String }, optional: true, nullable: false
6
+ field :domain, -> { String }, optional: false, nullable: false
7
7
 
8
- field :domain_availability, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "domainAvailability"
9
-
10
- field :message, -> { String }, optional: true, nullable: false
8
+ field :domain_availability, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "domainAvailability"
11
9
  end
12
10
  end
13
11
  end
@@ -9,7 +9,7 @@ module Apifreaks
9
9
 
10
10
  field :host_name, -> { String }, optional: false, nullable: false, api_name: "host-name"
11
11
 
12
- field :type, -> { String }, optional: true, nullable: false
12
+ field :type, -> { String }, optional: false, nullable: false
13
13
 
14
14
  field :page, -> { Integer }, optional: true, nullable: false
15
15
  end
@@ -3,13 +3,13 @@
3
3
  module Apifreaks
4
4
  module Types
5
5
  class DomainDNSHistoryResponse < Internal::Types::Model
6
- field :total_records, -> { Integer }, optional: true, nullable: false, api_name: "totalRecords"
6
+ field :total_records, -> { Integer }, optional: false, nullable: false, api_name: "totalRecords"
7
7
 
8
- field :total_pages, -> { Integer }, optional: true, nullable: false, api_name: "totalPages"
8
+ field :total_pages, -> { Integer }, optional: false, nullable: false, api_name: "totalPages"
9
9
 
10
- field :current_page, -> { Integer }, optional: true, nullable: false, api_name: "currentPage"
10
+ field :current_page, -> { Integer }, optional: false, nullable: false, api_name: "currentPage"
11
11
 
12
- field :historical_dns_records, -> { Internal::Types::Array[Apifreaks::Types::DomainDNSHistoryResponseHistoricalDNSRecordsItem] }, optional: true, nullable: false, api_name: "historicalDnsRecords"
12
+ field :historical_dns_records, -> { Internal::Types::Array[Apifreaks::Types::DomainDNSHistoryResponseHistoricalDNSRecordsItem] }, optional: false, nullable: false, api_name: "historicalDnsRecords"
13
13
  end
14
14
  end
15
15
  end
@@ -7,8 +7,6 @@ module Apifreaks
7
7
 
8
8
  field :domain_name, -> { String }, optional: false, nullable: false, api_name: "domainName"
9
9
 
10
- field :domain_registered, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "domainRegistered"
11
-
12
10
  field :dns_types, -> { Apifreaks::Types::DomainDNSHistoryResponseHistoricalDNSRecordsItemDNSTypes }, optional: false, nullable: false, api_name: "dnsTypes"
13
11
 
14
12
  field :dns_records, -> { Internal::Types::Array[Apifreaks::Types::DomainDNSHistoryResponseHistoricalDNSRecordsItemDNSRecordsItem] }, optional: false, nullable: false, api_name: "dnsRecords"
@@ -11,7 +11,7 @@ module Apifreaks
11
11
 
12
12
  field :ip_address, -> { String }, optional: true, nullable: false, api_name: "ipAddress"
13
13
 
14
- field :type, -> { String }, optional: true, nullable: false
14
+ field :type, -> { String }, optional: false, nullable: false
15
15
  end
16
16
  end
17
17
  end
@@ -7,7 +7,7 @@ module Apifreaks
7
7
 
8
8
  field :domain_name, -> { String }, optional: false, nullable: false, api_name: "domainName"
9
9
 
10
- field :domain_registered, -> { Internal::Types::Boolean }, optional: false, nullable: false, api_name: "domainRegistered"
10
+ field :domain_registered, -> { Internal::Types::Boolean }, optional: true, nullable: false, api_name: "domainRegistered"
11
11
 
12
12
  field :dns_types, -> { Apifreaks::Types::DomainDNSReverseResponseReverseDNSRecordsItemDNSTypes }, optional: false, nullable: false, api_name: "dnsTypes"
13
13
 
@@ -3,9 +3,9 @@
3
3
  module Apifreaks
4
4
  module Types
5
5
  class DomainSslChainLookupResponseSslCertificatesItemExtensionsAuthorityInfoAccess < Internal::Types::Model
6
- field :issuers, -> { Internal::Types::Array[String] }, optional: false, nullable: false
6
+ field :issuers, -> { Internal::Types::Array[String] }, optional: true, nullable: false
7
7
 
8
- field :ocsp, -> { Internal::Types::Array[String] }, optional: false, nullable: false
8
+ field :ocsp, -> { Internal::Types::Array[String] }, optional: true, nullable: false
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module Apifreaks
5
5
  class DomainSslChainLookupResponseSslCertificatesItemIssuer < Internal::Types::Model
6
6
  field :common_name, -> { String }, optional: false, nullable: false, api_name: "commonName"
7
7
 
8
- field :organization, -> { String }, optional: true, nullable: false
8
+ field :organization, -> { String }, optional: false, nullable: false
9
9
 
10
10
  field :organizational_unit, -> { String }, optional: true, nullable: false, api_name: "organizationalUnit"
11
11
 
@@ -13,7 +13,7 @@ module Apifreaks
13
13
 
14
14
  field :state, -> { String }, optional: true, nullable: false
15
15
 
16
- field :country, -> { String }, optional: true, nullable: false
16
+ field :country, -> { String }, optional: false, nullable: false
17
17
 
18
18
  field :inc_country, -> { String }, optional: true, nullable: false, api_name: "incCountry"
19
19
 
@@ -3,9 +3,9 @@
3
3
  module Apifreaks
4
4
  module Types
5
5
  class DomainSslLookupResponseSslCertificatesItemExtensionsAuthorityInfoAccess < Internal::Types::Model
6
- field :issuers, -> { Internal::Types::Array[String] }, optional: false, nullable: false
6
+ field :issuers, -> { Internal::Types::Array[String] }, optional: true, nullable: false
7
7
 
8
- field :ocsp, -> { Internal::Types::Array[String] }, optional: false, nullable: false
8
+ field :ocsp, -> { Internal::Types::Array[String] }, optional: true, nullable: false
9
9
  end
10
10
  end
11
11
  end
@@ -5,7 +5,7 @@ module Apifreaks
5
5
  class DomainSslLookupResponseSslCertificatesItemIssuer < Internal::Types::Model
6
6
  field :common_name, -> { String }, optional: false, nullable: false, api_name: "commonName"
7
7
 
8
- field :organization, -> { String }, optional: true, nullable: false
8
+ field :organization, -> { String }, optional: false, nullable: false
9
9
 
10
10
  field :organizational_unit, -> { String }, optional: true, nullable: false, api_name: "organizationalUnit"
11
11
 
@@ -13,7 +13,7 @@ module Apifreaks
13
13
 
14
14
  field :state, -> { String }, optional: true, nullable: false
15
15
 
16
- field :country, -> { String }, optional: true, nullable: false
16
+ field :country, -> { String }, optional: false, nullable: false
17
17
 
18
18
  field :inc_country, -> { String }, optional: true, nullable: false, api_name: "incCountry"
19
19