-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding support for ordered_from, brand_name, site_* top level fields,…
… and *_language fields in browser and app complex fields (#52) * adding support for ordered_from, brand_name, site_* top level fields, and *_language fields in browser and app complex fields
- Loading branch information
1 parent
a51157a
commit 7d6317c
Showing
29 changed files
with
541 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
src/main/java/com/siftscience/model/BaseAppBrowserFieldSet.java
This file was deleted.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
src/main/java/com/siftscience/model/BaseAppBrowserSiteBrandFieldSet.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package com.siftscience.model; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
public abstract class BaseAppBrowserSiteBrandFieldSet<T extends BaseAppBrowserSiteBrandFieldSet<T>> | ||
extends EventsApiRequestFieldSet<T> { | ||
@Expose @SerializedName("$app") private App app; | ||
@Expose @SerializedName("$browser") private Browser browser; | ||
@Expose @SerializedName("$brand_name") private String brandName; | ||
@Expose @SerializedName("$site_country") private String siteCountry; | ||
@Expose @SerializedName("$site_domain") private String siteDomain; | ||
|
||
public App getApp() { | ||
return app; | ||
} | ||
|
||
public T setApp(App app) { | ||
this.app = app; | ||
return (T) this; | ||
} | ||
|
||
public Browser getBrowser() { | ||
return browser; | ||
} | ||
|
||
public T setBrowser(Browser browser) { | ||
this.browser = browser; | ||
return (T) this; | ||
} | ||
|
||
public String getBrandName() { | ||
return brandName; | ||
} | ||
|
||
public T setBrandName(String brandName) { | ||
this.brandName = brandName; | ||
return (T) this; | ||
} | ||
|
||
public String getSiteCountry() { | ||
return siteCountry; | ||
} | ||
|
||
public T setSiteCountry(String siteCountry) { | ||
this.siteCountry = siteCountry; | ||
return (T) this; | ||
} | ||
|
||
public String getSiteDomain() { | ||
return siteDomain; | ||
} | ||
|
||
public T setSiteDomain(String siteDomain) { | ||
this.siteDomain = siteDomain; | ||
return (T) this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.siftscience.model; | ||
|
||
import com.google.gson.annotations.Expose; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class OrderedFrom { | ||
@Expose @SerializedName("$store_address") private Address storeAddress; | ||
@Expose @SerializedName("$store_id") private String storeId; | ||
|
||
public Address getStoreAddress() { | ||
return storeAddress; | ||
} | ||
|
||
public OrderedFrom setStoreAddress(Address storeAddress) { | ||
this.storeAddress = storeAddress; | ||
return this; | ||
} | ||
|
||
public String getStoreId() { | ||
return storeId; | ||
} | ||
|
||
public OrderedFrom setStoreId(String storeId) { | ||
this.storeId = storeId; | ||
return this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.