algolia 3.0.0.alpha.8 → 3.0.0.alpha.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d10bc5a4416ac58ae021790e9690899657e2bb99bdb2db0545d0e66071768e7
4
- data.tar.gz: 8ba97103d301846b9dac5a00b6e3438865b6f7754e2f105142557ada23a21ba1
3
+ metadata.gz: cab6ed58cd68965730f109afe775bcb51f2f19ea1fccf264cca919e83a83d240
4
+ data.tar.gz: 6b6e2774ed307c347d4ce53bae0e6c2b19b5d52de3523ff08597fd8888a8f579
5
5
  SHA512:
6
- metadata.gz: 97eee1cc7661f4c159b9254f1c1355a37b3394bb306ba68f26165f027ae8f49fb5b6f6c287d1d62a3e9c50d63e160a63564f11b00f9ecaf4247d2efeceed907e
7
- data.tar.gz: 65a63a9ba144c499d608e86efb1e92715433a80a68620079c8c66be96fafc238fd75ffed2bf7ffa4614a5f34727acbe534933fff5870d809e37ac748ede06b5a
6
+ metadata.gz: 9f5f1e97198bbcacded629bdd2233c01b212965f12361f5cd4dbaab34178b1266c6105057592dca803b2089d63b2cc624109aee1fad513556d2cf6a7129ec5bd
7
+ data.tar.gz: d33741125aa7294c513c9f653f1fb58f35ea5f4e5e8b5e8cdabcdbcc62cfaa3372085b8bdf9ef67a3a38d43225fb30f61619808f8096df361bff404e41d7a850
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [3.0.0.alpha.10](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.alpha.9...3.0.0.alpha.10)
2
+
3
+ - [d48e2f624](https://github.com/algolia/api-clients-automation/commit/d48e2f624) fix(specs): add missing attributes for CT Source update ([#2792](https://github.com/algolia/api-clients-automation/pull/2792)) by [@damcou](https://github.com/damcou/)
4
+ - [f3e894002](https://github.com/algolia/api-clients-automation/commit/f3e894002) fix(clients): replace all objects ([#2762](https://github.com/algolia/api-clients-automation/pull/2762)) by [@shortcuts](https://github.com/shortcuts/)
5
+ - [92cd1c793](https://github.com/algolia/api-clients-automation/commit/92cd1c793) fix(clients): browse synonyms page not in response ([#2757](https://github.com/algolia/api-clients-automation/pull/2757)) by [@shortcuts](https://github.com/shortcuts/)
6
+
7
+ ## [3.0.0.alpha.9](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.alpha.8...3.0.0.alpha.9)
8
+
9
+ - [4f6e2d0b3](https://github.com/algolia/api-clients-automation/commit/4f6e2d0b3) fix(specs): allow custom fields to be nullable ([#2746](https://github.com/algolia/api-clients-automation/pull/2746)) by [@shortcuts](https://github.com/shortcuts/)
10
+
1
11
  ## [3.0.0.alpha.8](https://github.com/algolia/algoliasearch-client-ruby/compare/3.0.0.alpha.7...3.0.0.alpha.8)
2
12
 
3
13
  - [6624759e1](https://github.com/algolia/api-clients-automation/commit/6624759e1) feat(specs): add CustomFields to CT Source Input ([#2742](https://github.com/algolia/api-clients-automation/pull/2742)) by [@damcou](https://github.com/damcou/)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- algolia (3.0.0.alpha.8)
4
+ algolia (3.0.0.alpha.10)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-net_http_persistent (>= 0.15, < 3)
7
7
  net-http-persistent
@@ -41,7 +41,11 @@ module Algolia
41
41
 
42
42
  # List of attributes with nullable: true
43
43
  def self.openapi_nullable
44
- Set.new([])
44
+ Set.new([
45
+ :inventory,
46
+ :price,
47
+ :category
48
+ ])
45
49
  end
46
50
 
47
51
  # Initializes the object
@@ -12,6 +12,11 @@ module Algolia
12
12
  # Array of locales that must match the following pattern: ^[a-z]{2}(-[A-Z]{2})?$. For example [\"fr-FR\", \"en\"].
13
13
  attr_accessor :locales
14
14
 
15
+ attr_accessor :url
16
+
17
+ # Determines the value that will be stored in the Algolia record if there's no inventory information on the product.
18
+ attr_accessor :fallback_is_in_stock_value
19
+
15
20
  attr_accessor :custom_fields
16
21
 
17
22
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,6 +24,8 @@ module Algolia
19
24
  {
20
25
  :store_keys => :storeKeys,
21
26
  :locales => :locales,
27
+ :url => :url,
28
+ :fallback_is_in_stock_value => :fallbackIsInStockValue,
22
29
  :custom_fields => :customFields
23
30
  }
24
31
  end
@@ -33,6 +40,8 @@ module Algolia
33
40
  {
34
41
  :store_keys => :'Array<String>',
35
42
  :locales => :'Array<String>',
43
+ :url => :String,
44
+ :fallback_is_in_stock_value => :Boolean,
36
45
  :custom_fields => :CommercetoolsCustomFields
37
46
  }
38
47
  end
@@ -71,6 +80,14 @@ module Algolia
71
80
  end
72
81
  end
73
82
 
83
+ if attributes.key?(:url)
84
+ self.url = attributes[:url]
85
+ end
86
+
87
+ if attributes.key?(:fallback_is_in_stock_value)
88
+ self.fallback_is_in_stock_value = attributes[:fallback_is_in_stock_value]
89
+ end
90
+
74
91
  if attributes.key?(:custom_fields)
75
92
  self.custom_fields = attributes[:custom_fields]
76
93
  end
@@ -84,6 +101,8 @@ module Algolia
84
101
  self.class == other.class &&
85
102
  store_keys == other.store_keys &&
86
103
  locales == other.locales &&
104
+ url == other.url &&
105
+ fallback_is_in_stock_value == other.fallback_is_in_stock_value &&
87
106
  custom_fields == other.custom_fields
88
107
  end
89
108
 
@@ -96,7 +115,7 @@ module Algolia
96
115
  # Calculates hash code according to all attributes.
97
116
  # @return [Integer] Hash code
98
117
  def hash
99
- [store_keys, locales, custom_fields].hash
118
+ [store_keys, locales, url, fallback_is_in_stock_value, custom_fields].hash
100
119
  end
101
120
 
102
121
  # Builds the object from hash
@@ -1,5 +1,5 @@
1
1
  # Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
2
2
 
3
3
  module Algolia
4
- VERSION = '3.0.0.alpha.8'.freeze
4
+ VERSION = '3.0.0.alpha.10'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: algolia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha.8
4
+ version: 3.0.0.alpha.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Algolia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-20 00:00:00.000000000 Z
11
+ date: 2024-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday