@@ -11416,6 +11416,7 @@ private constructor(
1141611416 private val category: JsonField<Category>,
1141711417 private val chargeback: JsonField<Chargeback>,
1141811418 private val createdAt: JsonField<OffsetDateTime>,
11419+ private val explanation: JsonField<String>,
1141911420 private val furtherInformationRequestedAt: JsonField<OffsetDateTime>,
1142011421 private val furtherInformationRequestedReason: JsonField<String>,
1142111422 private val merchantPrearbitrationDecline: JsonField<MerchantPrearbitrationDecline>,
@@ -11443,6 +11444,9 @@ private constructor(
1144311444 @JsonProperty("created_at")
1144411445 @ExcludeMissing
1144511446 createdAt: JsonField<OffsetDateTime> = JsonMissing.of(),
11447+ @JsonProperty("explanation")
11448+ @ExcludeMissing
11449+ explanation: JsonField<String> = JsonMissing.of(),
1144611450 @JsonProperty("further_information_requested_at")
1144711451 @ExcludeMissing
1144811452 furtherInformationRequestedAt: JsonField<OffsetDateTime> = JsonMissing.of(),
@@ -11469,6 +11473,7 @@ private constructor(
1146911473 category,
1147011474 chargeback,
1147111475 createdAt,
11476+ explanation,
1147211477 furtherInformationRequestedAt,
1147311478 furtherInformationRequestedReason,
1147411479 merchantPrearbitrationDecline,
@@ -11537,6 +11542,15 @@ private constructor(
1153711542 */
1153811543 fun createdAt(): OffsetDateTime = createdAt.getRequired("created_at")
1153911544
11545+ /**
11546+ * The free-form explanation provided to Increase to provide more context for the user
11547+ * submission. This field is not sent directly to the card networks.
11548+ *
11549+ * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g.
11550+ * if the server responded with an unexpected value).
11551+ */
11552+ fun explanation(): Optional<String> = explanation.getOptional("explanation")
11553+
1154011554 /**
1154111555 * The date and time at which Increase requested further information from the user for
1154211556 * the Visa Card Dispute.
@@ -11659,6 +11673,16 @@ private constructor(
1165911673 @ExcludeMissing
1166011674 fun _createdAt(): JsonField<OffsetDateTime> = createdAt
1166111675
11676+ /**
11677+ * Returns the raw JSON value of [explanation].
11678+ *
11679+ * Unlike [explanation], this method doesn't throw if the JSON field has an unexpected
11680+ * type.
11681+ */
11682+ @JsonProperty("explanation")
11683+ @ExcludeMissing
11684+ fun _explanation(): JsonField<String> = explanation
11685+
1166211686 /**
1166311687 * Returns the raw JSON value of [furtherInformationRequestedAt].
1166411688 *
@@ -11744,6 +11768,7 @@ private constructor(
1174411768 * .category()
1174511769 * .chargeback()
1174611770 * .createdAt()
11771+ * .explanation()
1174711772 * .furtherInformationRequestedAt()
1174811773 * .furtherInformationRequestedReason()
1174911774 * .merchantPrearbitrationDecline()
@@ -11764,6 +11789,7 @@ private constructor(
1176411789 private var category: JsonField<Category>? = null
1176511790 private var chargeback: JsonField<Chargeback>? = null
1176611791 private var createdAt: JsonField<OffsetDateTime>? = null
11792+ private var explanation: JsonField<String>? = null
1176711793 private var furtherInformationRequestedAt: JsonField<OffsetDateTime>? = null
1176811794 private var furtherInformationRequestedReason: JsonField<String>? = null
1176911795 private var merchantPrearbitrationDecline:
@@ -11782,6 +11808,7 @@ private constructor(
1178211808 category = userSubmission.category
1178311809 chargeback = userSubmission.chargeback
1178411810 createdAt = userSubmission.createdAt
11811+ explanation = userSubmission.explanation
1178511812 furtherInformationRequestedAt = userSubmission.furtherInformationRequestedAt
1178611813 furtherInformationRequestedReason =
1178711814 userSubmission.furtherInformationRequestedReason
@@ -11923,6 +11950,28 @@ private constructor(
1192311950 this.createdAt = createdAt
1192411951 }
1192511952
11953+ /**
11954+ * The free-form explanation provided to Increase to provide more context for the
11955+ * user submission. This field is not sent directly to the card networks.
11956+ */
11957+ fun explanation(explanation: String?) =
11958+ explanation(JsonField.ofNullable(explanation))
11959+
11960+ /** Alias for calling [Builder.explanation] with `explanation.orElse(null)`. */
11961+ fun explanation(explanation: Optional<String>) =
11962+ explanation(explanation.getOrNull())
11963+
11964+ /**
11965+ * Sets [Builder.explanation] to an arbitrary JSON value.
11966+ *
11967+ * You should usually call [Builder.explanation] with a well-typed [String] value
11968+ * instead. This method is primarily for setting the field to an undocumented or not
11969+ * yet supported value.
11970+ */
11971+ fun explanation(explanation: JsonField<String>) = apply {
11972+ this.explanation = explanation
11973+ }
11974+
1192611975 /**
1192711976 * The date and time at which Increase requested further information from the user
1192811977 * for the Visa Card Dispute.
@@ -12104,6 +12153,7 @@ private constructor(
1210412153 * .category()
1210512154 * .chargeback()
1210612155 * .createdAt()
12156+ * .explanation()
1210712157 * .furtherInformationRequestedAt()
1210812158 * .furtherInformationRequestedReason()
1210912159 * .merchantPrearbitrationDecline()
@@ -12122,6 +12172,7 @@ private constructor(
1212212172 checkRequired("category", category),
1212312173 checkRequired("chargeback", chargeback),
1212412174 checkRequired("createdAt", createdAt),
12175+ checkRequired("explanation", explanation),
1212512176 checkRequired(
1212612177 "furtherInformationRequestedAt",
1212712178 furtherInformationRequestedAt,
@@ -12154,6 +12205,7 @@ private constructor(
1215412205 category().validate()
1215512206 chargeback().ifPresent { it.validate() }
1215612207 createdAt()
12208+ explanation()
1215712209 furtherInformationRequestedAt()
1215812210 furtherInformationRequestedReason()
1215912211 merchantPrearbitrationDecline().ifPresent { it.validate() }
@@ -12185,6 +12237,7 @@ private constructor(
1218512237 (category.asKnown().getOrNull()?.validity() ?: 0) +
1218612238 (chargeback.asKnown().getOrNull()?.validity() ?: 0) +
1218712239 (if (createdAt.asKnown().isPresent) 1 else 0) +
12240+ (if (explanation.asKnown().isPresent) 1 else 0) +
1218812241 (if (furtherInformationRequestedAt.asKnown().isPresent) 1 else 0) +
1218912242 (if (furtherInformationRequestedReason.asKnown().isPresent) 1 else 0) +
1219012243 (merchantPrearbitrationDecline.asKnown().getOrNull()?.validity() ?: 0) +
@@ -41052,6 +41105,7 @@ private constructor(
4105241105 category == other.category &&
4105341106 chargeback == other.chargeback &&
4105441107 createdAt == other.createdAt &&
41108+ explanation == other.explanation &&
4105541109 furtherInformationRequestedAt == other.furtherInformationRequestedAt &&
4105641110 furtherInformationRequestedReason == other.furtherInformationRequestedReason &&
4105741111 merchantPrearbitrationDecline == other.merchantPrearbitrationDecline &&
@@ -41069,6 +41123,7 @@ private constructor(
4106941123 category,
4107041124 chargeback,
4107141125 createdAt,
41126+ explanation,
4107241127 furtherInformationRequestedAt,
4107341128 furtherInformationRequestedReason,
4107441129 merchantPrearbitrationDecline,
@@ -41082,7 +41137,7 @@ private constructor(
4108241137 override fun hashCode(): Int = hashCode
4108341138
4108441139 override fun toString() =
41085- "UserSubmission{acceptedAt=$acceptedAt, amount=$amount, attachmentFiles=$attachmentFiles, category=$category, chargeback=$chargeback, createdAt=$createdAt, furtherInformationRequestedAt=$furtherInformationRequestedAt, furtherInformationRequestedReason=$furtherInformationRequestedReason, merchantPrearbitrationDecline=$merchantPrearbitrationDecline, status=$status, updatedAt=$updatedAt, userPrearbitration=$userPrearbitration, additionalProperties=$additionalProperties}"
41140+ "UserSubmission{acceptedAt=$acceptedAt, amount=$amount, attachmentFiles=$attachmentFiles, category=$category, chargeback=$chargeback, createdAt=$createdAt, explanation=$explanation, furtherInformationRequestedAt=$furtherInformationRequestedAt, furtherInformationRequestedReason=$furtherInformationRequestedReason, merchantPrearbitrationDecline=$merchantPrearbitrationDecline, status=$status, updatedAt=$updatedAt, userPrearbitration=$userPrearbitration, additionalProperties=$additionalProperties}"
4108641141 }
4108741142
4108841143 override fun equals(other: Any?): Boolean {
0 commit comments