Skip to content

Commit 2fe8851

Browse files
committed
Update/revert nullable attributes
1 parent 4cec761 commit 2fe8851

12 files changed

Lines changed: 60 additions & 0 deletions

src/main/java/one/talon/model/AddItemCatalogAction.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@
2424
import io.swagger.annotations.ApiModelProperty;
2525
import java.io.IOException;
2626
import java.math.BigDecimal;
27+
import one.talon.custom.JsonNullable;
28+
import one.talon.custom.NullableAdapterFactory;
2729

2830
/**
2931
* The specific properties of the \"ADD\" catalog sync action.
3032
*/
3133
@ApiModel(description = "The specific properties of the \"ADD\" catalog sync action.")
34+
@JsonAdapter(NullableAdapterFactory.class)
3235

3336
public class AddItemCatalogAction {
3437
public static final String SERIALIZED_NAME_SKU = "sku";
@@ -41,6 +44,8 @@ public class AddItemCatalogAction {
4144

4245
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
4346
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
47+
/*allow Serializing null for this field */
48+
@JsonNullable
4449
private Object attributes;
4550

4651
public static final String SERIALIZED_NAME_REPLACE_IF_EXISTS = "replaceIfExists";

src/main/java/one/talon/model/CartItem.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,14 @@
2828
import java.util.List;
2929
import java.util.Map;
3030
import one.talon.model.AdditionalCost;
31+
import one.talon.custom.JsonNullable;
32+
import one.talon.custom.NullableAdapterFactory;
3133

3234
/**
3335
* CartItem
3436
*/
3537

38+
@JsonAdapter(NullableAdapterFactory.class)
3639
public class CartItem {
3740
public static final String SERIALIZED_NAME_NAME = "name";
3841
@SerializedName(SERIALIZED_NAME_NAME)
@@ -84,6 +87,8 @@ public class CartItem {
8487

8588
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
8689
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
90+
/*allow Serializing null for this field */
91+
@JsonNullable
8792
private Object attributes;
8893

8994
public static final String SERIALIZED_NAME_ADDITIONAL_COSTS = "additionalCosts";

src/main/java/one/talon/model/CustomerProfileIntegrationRequestV2.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,20 @@
2626
import java.util.ArrayList;
2727
import java.util.List;
2828
import one.talon.model.ProfileAudiencesChanges;
29+
import one.talon.custom.JsonNullable;
30+
import one.talon.custom.NullableAdapterFactory;
2931

3032
/**
3133
*
3234
*/
3335
@ApiModel(description = "")
36+
@JsonAdapter(NullableAdapterFactory.class)
3437

3538
public class CustomerProfileIntegrationRequestV2 {
3639
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
3740
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
41+
/*allow Serializing null for this field */
42+
@JsonNullable
3843
private Object attributes;
3944

4045
public static final String SERIALIZED_NAME_EVALUABLE_CAMPAIGN_IDS = "evaluableCampaignIds";

src/main/java/one/talon/model/IntegrationEventV2Request.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@
2525
import java.io.IOException;
2626
import java.util.ArrayList;
2727
import java.util.List;
28+
import one.talon.custom.JsonNullable;
29+
import one.talon.custom.NullableAdapterFactory;
2830

2931
/**
3032
*
3133
*/
3234
@ApiModel(description = "")
35+
@JsonAdapter(NullableAdapterFactory.class)
3336

3437
public class IntegrationEventV2Request {
3538
public static final String SERIALIZED_NAME_PROFILE_ID = "profileId";
@@ -46,6 +49,8 @@ public class IntegrationEventV2Request {
4649

4750
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
4851
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
52+
/*allow Serializing null for this field */
53+
@JsonNullable
4954
private Object attributes;
5055

5156
/**

src/main/java/one/talon/model/MultipleCustomerProfileIntegrationRequestItem.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,20 @@
2323
import io.swagger.annotations.ApiModel;
2424
import io.swagger.annotations.ApiModelProperty;
2525
import java.io.IOException;
26+
import one.talon.custom.JsonNullable;
27+
import one.talon.custom.NullableAdapterFactory;
2628

2729
/**
2830
*
2931
*/
3032
@ApiModel(description = "")
33+
@JsonAdapter(NullableAdapterFactory.class)
3134

3235
public class MultipleCustomerProfileIntegrationRequestItem {
3336
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
3437
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
38+
/*allow Serializing null for this field */
39+
@JsonNullable
3540
private Object attributes;
3641

3742
public static final String SERIALIZED_NAME_INTEGRATION_ID = "integrationId";

src/main/java/one/talon/model/NewCustomerProfile.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,19 @@
2323
import io.swagger.annotations.ApiModel;
2424
import io.swagger.annotations.ApiModelProperty;
2525
import java.io.IOException;
26+
import one.talon.custom.JsonNullable;
27+
import one.talon.custom.NullableAdapterFactory;
2628

2729
/**
2830
* NewCustomerProfile
2931
*/
32+
@JsonAdapter(NullableAdapterFactory.class)
3033

3134
public class NewCustomerProfile {
3235
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
3336
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
37+
/*allow Serializing null for this field */
38+
@JsonNullable
3439
private Object attributes;
3540

3641

src/main/java/one/talon/model/NewCustomerSession.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@
2727
import java.util.ArrayList;
2828
import java.util.List;
2929
import one.talon.model.CartItem;
30+
import one.talon.custom.JsonNullable;
31+
import one.talon.custom.NullableAdapterFactory;
3032

3133
/**
3234
*
3335
*/
3436
@ApiModel(description = "")
37+
@JsonAdapter(NullableAdapterFactory.class)
3538

3639
public class NewCustomerSession {
3740
public static final String SERIALIZED_NAME_PROFILE_ID = "profileId";
@@ -115,6 +118,8 @@ public StateEnum read(final JsonReader jsonReader) throws IOException {
115118

116119
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
117120
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
121+
/*allow Serializing null for this field */
122+
@JsonNullable
118123
private Object attributes;
119124

120125

src/main/java/one/talon/model/NewCustomerSessionV2.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,14 @@
2929
import java.util.Map;
3030
import one.talon.model.AdditionalCost;
3131
import one.talon.model.CartItem;
32+
import one.talon.custom.JsonNullable;
33+
import one.talon.custom.NullableAdapterFactory;
3234

3335
/**
3436
* The representation of the customer session.
3537
*/
3638
@ApiModel(description = "The representation of the customer session.")
39+
@JsonAdapter(NullableAdapterFactory.class)
3740

3841
public class NewCustomerSessionV2 {
3942
public static final String SERIALIZED_NAME_PROFILE_ID = "profileId";
@@ -125,6 +128,8 @@ public StateEnum read(final JsonReader jsonReader) throws IOException {
125128

126129
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
127130
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
131+
/*allow Serializing null for this field */
132+
@JsonNullable
128133
private Object attributes;
129134

130135

src/main/java/one/talon/model/NewEvent.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@
2323
import io.swagger.annotations.ApiModel;
2424
import io.swagger.annotations.ApiModelProperty;
2525
import java.io.IOException;
26+
import one.talon.custom.JsonNullable;
27+
import one.talon.custom.NullableAdapterFactory;
2628

2729
/**
2830
*
2931
*/
3032
@ApiModel(description = "")
33+
@JsonAdapter(NullableAdapterFactory.class)
3134

3235
public class NewEvent {
3336
public static final String SERIALIZED_NAME_PROFILE_ID = "profileId";
@@ -40,6 +43,8 @@ public class NewEvent {
4043

4144
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
4245
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
46+
/*allow Serializing null for this field */
47+
@JsonNullable
4348
private Object attributes;
4449

4550
public static final String SERIALIZED_NAME_SESSION_ID = "sessionId";

src/main/java/one/talon/model/NewReferralsForMultipleAdvocates.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@
2626
import java.util.ArrayList;
2727
import java.util.List;
2828
import org.threeten.bp.OffsetDateTime;
29+
import one.talon.custom.JsonNullable;
30+
import one.talon.custom.NullableAdapterFactory;
2931

3032
/**
3133
*
3234
*/
3335
@ApiModel(description = "")
36+
@JsonAdapter(NullableAdapterFactory.class)
3437

3538
public class NewReferralsForMultipleAdvocates {
3639
public static final String SERIALIZED_NAME_START_DATE = "startDate";
@@ -55,6 +58,8 @@ public class NewReferralsForMultipleAdvocates {
5558

5659
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
5760
@SerializedName(SERIALIZED_NAME_ATTRIBUTES)
61+
/*allow Serializing null for this field */
62+
@JsonNullable
5863
private Object attributes;
5964

6065
public static final String SERIALIZED_NAME_VALID_CHARACTERS = "validCharacters";

0 commit comments

Comments
 (0)