Skip to content

Commit

Permalink
fix(specs): correct type for banners [skip-bc] (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3939

Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com>
  • Loading branch information
algolia-bot committed Oct 10, 2024
1 parent 77c866e commit e0502dd
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,35 @@

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/** image of a search banner. */
public class BannerImage {

@JsonProperty("urls")
private BannerImageUrl urls;
private List<BannerImageUrl> urls;

@JsonProperty("title")
private String title;

public BannerImage setUrls(BannerImageUrl urls) {
public BannerImage setUrls(List<BannerImageUrl> urls) {
this.urls = urls;
return this;
}

public BannerImage addUrls(BannerImageUrl urlsItem) {
if (this.urls == null) {
this.urls = new ArrayList<>();
}
this.urls.add(urlsItem);
return this;
}

/** Get urls */
@javax.annotation.Nullable
public BannerImageUrl getUrls() {
public List<BannerImageUrl> getUrls() {
return urls;
}

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,32 @@

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/** widgets returned from any rules that are applied to the current search. */
public class Widgets {

@JsonProperty("banners")
private Banners banners;
private List<Banner> banners;

public Widgets setBanners(Banners banners) {
public Widgets setBanners(List<Banner> banners) {
this.banners = banners;
return this;
}

/** Get banners */
public Widgets addBanners(Banner bannersItem) {
if (this.banners == null) {
this.banners = new ArrayList<>();
}
this.banners.add(bannersItem);
return this;
}

/** banners defined in the merchandising studio for the given search. */
@javax.annotation.Nullable
public Banners getBanners() {
public List<Banner> getBanners() {
return banners;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,35 @@

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/** image of a search banner. */
public class BannerImage {

@JsonProperty("urls")
private BannerImageUrl urls;
private List<BannerImageUrl> urls;

@JsonProperty("title")
private String title;

public BannerImage setUrls(BannerImageUrl urls) {
public BannerImage setUrls(List<BannerImageUrl> urls) {
this.urls = urls;
return this;
}

public BannerImage addUrls(BannerImageUrl urlsItem) {
if (this.urls == null) {
this.urls = new ArrayList<>();
}
this.urls.add(urlsItem);
return this;
}

/** Get urls */
@javax.annotation.Nullable
public BannerImageUrl getUrls() {
public List<BannerImageUrl> getUrls() {
return urls;
}

Expand Down
62 changes: 0 additions & 62 deletions algoliasearch/src/main/java/com/algolia/model/search/Banners.java

This file was deleted.

18 changes: 14 additions & 4 deletions algoliasearch/src/main/java/com/algolia/model/search/Widgets.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,32 @@

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/** widgets returned from any rules that are applied to the current search. */
public class Widgets {

@JsonProperty("banners")
private Banners banners;
private List<Banner> banners;

public Widgets setBanners(Banners banners) {
public Widgets setBanners(List<Banner> banners) {
this.banners = banners;
return this;
}

/** Get banners */
public Widgets addBanners(Banner bannersItem) {
if (this.banners == null) {
this.banners = new ArrayList<>();
}
this.banners.add(bannersItem);
return this;
}

/** banners defined in the merchandising studio for the given search. */
@javax.annotation.Nullable
public Banners getBanners() {
public List<Banner> getBanners() {
return banners;
}

Expand Down

0 comments on commit e0502dd

Please sign in to comment.