diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e817625b2..585712c6f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.441.0" + ".": "0.442.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 67156bd51..07ec80cbf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 232 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-0bdf7012f2b877d17a7dc56e14a67bd22ffee9acdff8627800cc91f5f6487d74.yml -openapi_spec_hash: db9f6935a1a74bee62d494e30122259b +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-cc2859c7f6f2b4f9338210cf63f9c769c5ee05c677973ae0181f8e0f442806cd.yml +openapi_spec_hash: 2fe8fbbcca41e6ff2873d9787333bd0f config_hash: d15ecbf4dc8a7a0ef99397d11b557444 diff --git a/CHANGELOG.md b/CHANGELOG.md index 752d84fee..93cc93af7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.442.0 (2026-03-03) + +Full Changelog: [v0.441.0...v0.442.0](https://github.com/Increase/increase-java/compare/v0.441.0...v0.442.0) + +### Features + +* **api:** api update ([ceb0eb0](https://github.com/Increase/increase-java/commit/ceb0eb078e9d807fca7f4d99b9157ebdf2ebbe35)) +* **api:** api update ([f9b0c75](https://github.com/Increase/increase-java/commit/f9b0c751b6b8767f49897317f6c6482590146ba7)) + ## 0.441.0 (2026-03-03) Full Changelog: [v0.440.0...v0.441.0](https://github.com/Increase/increase-java/compare/v0.440.0...v0.441.0) diff --git a/README.md b/README.md index 9f4fb9e1f..99a9ed5e1 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ -[![Maven Central](https://img.shields.io/maven-central/v/com.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.441.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.441.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.441.0) +[![Maven Central](https://img.shields.io/maven-central/v/com.increase.api/increase-java)](https://central.sonatype.com/artifact/com.increase.api/increase-java/0.442.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.442.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.442.0) @@ -13,7 +13,7 @@ The Increase Java SDK is similar to the Increase Kotlin SDK but with minor diffe -The REST API documentation can be found on [increase.com](https://increase.com/documentation). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.increase.api/increase-java/0.441.0). +The REST API documentation can be found on [increase.com](https://increase.com/documentation). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.increase.api/increase-java/0.442.0). @@ -24,7 +24,7 @@ The REST API documentation can be found on [increase.com](https://increase.com/d ### Gradle ```kotlin -implementation("com.increase.api:increase-java:0.441.0") +implementation("com.increase.api:increase-java:0.442.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.441.0") com.increase.api increase-java - 0.441.0 + 0.442.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index da0aff1a6..5f8efefc3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.441.0" // x-release-please-version + version = "0.442.0" // x-release-please-version } subprojects { diff --git a/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt b/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt index 44c86bd3d..e32a9e2ee 100644 --- a/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt +++ b/increase-java-core/src/main/kotlin/com/increase/api/models/cardpayments/CardPayment.kt @@ -1754,8 +1754,17 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, + private val billingAddressCity: JsonField, + private val billingAddressCountry: JsonField, + private val billingAddressLine1: JsonField, + private val billingAddressLine2: JsonField, + private val billingAddressLine3: JsonField, + private val billingAddressPostalCode: JsonField, + private val billingAddressState: JsonField, private val cardId: JsonField, private val cardPaymentId: JsonField, + private val cardholderEmail: JsonField, + private val cardholderName: JsonField, private val category: JsonField, private val challenge: JsonField, private val createdAt: JsonField, @@ -1776,12 +1785,39 @@ private constructor( @JsonCreator private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), + @JsonProperty("billing_address_city") + @ExcludeMissing + billingAddressCity: JsonField = JsonMissing.of(), + @JsonProperty("billing_address_country") + @ExcludeMissing + billingAddressCountry: JsonField = JsonMissing.of(), + @JsonProperty("billing_address_line1") + @ExcludeMissing + billingAddressLine1: JsonField = JsonMissing.of(), + @JsonProperty("billing_address_line2") + @ExcludeMissing + billingAddressLine2: JsonField = JsonMissing.of(), + @JsonProperty("billing_address_line3") + @ExcludeMissing + billingAddressLine3: JsonField = JsonMissing.of(), + @JsonProperty("billing_address_postal_code") + @ExcludeMissing + billingAddressPostalCode: JsonField = JsonMissing.of(), + @JsonProperty("billing_address_state") + @ExcludeMissing + billingAddressState: JsonField = JsonMissing.of(), @JsonProperty("card_id") @ExcludeMissing cardId: JsonField = JsonMissing.of(), @JsonProperty("card_payment_id") @ExcludeMissing cardPaymentId: JsonField = JsonMissing.of(), + @JsonProperty("cardholder_email") + @ExcludeMissing + cardholderEmail: JsonField = JsonMissing.of(), + @JsonProperty("cardholder_name") + @ExcludeMissing + cardholderName: JsonField = JsonMissing.of(), @JsonProperty("category") @ExcludeMissing category: JsonField = JsonMissing.of(), @@ -1824,8 +1860,17 @@ private constructor( @JsonProperty("type") @ExcludeMissing type: JsonField = JsonMissing.of(), ) : this( id, + billingAddressCity, + billingAddressCountry, + billingAddressLine1, + billingAddressLine2, + billingAddressLine3, + billingAddressPostalCode, + billingAddressState, cardId, cardPaymentId, + cardholderEmail, + cardholderName, category, challenge, createdAt, @@ -1852,6 +1897,76 @@ private constructor( */ fun id(): String = id.getRequired("id") + /** + * The city of the cardholder billing address associated with the card used for this + * purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun billingAddressCity(): Optional = + billingAddressCity.getOptional("billing_address_city") + + /** + * The country of the cardholder billing address associated with the card used for this + * purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun billingAddressCountry(): Optional = + billingAddressCountry.getOptional("billing_address_country") + + /** + * The first line of the cardholder billing address associated with the card used for + * this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun billingAddressLine1(): Optional = + billingAddressLine1.getOptional("billing_address_line1") + + /** + * The second line of the cardholder billing address associated with the card used for + * this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun billingAddressLine2(): Optional = + billingAddressLine2.getOptional("billing_address_line2") + + /** + * The third line of the cardholder billing address associated with the card used for + * this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun billingAddressLine3(): Optional = + billingAddressLine3.getOptional("billing_address_line3") + + /** + * The postal code of the cardholder billing address associated with the card used for + * this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun billingAddressPostalCode(): Optional = + billingAddressPostalCode.getOptional("billing_address_postal_code") + + /** + * The US state of the cardholder billing address associated with the card used for this + * purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun billingAddressState(): Optional = + billingAddressState.getOptional("billing_address_state") + /** * The identifier of the Card. * @@ -1870,6 +1985,23 @@ private constructor( */ fun cardPaymentId(): String = cardPaymentId.getRequired("card_payment_id") + /** + * The email address of the cardholder. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun cardholderEmail(): Optional = + cardholderEmail.getOptional("cardholder_email") + + /** + * The name of the cardholder. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun cardholderName(): Optional = cardholderName.getOptional("cardholder_name") + /** * The category of the card authentication attempt. * @@ -2007,6 +2139,76 @@ private constructor( */ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id + /** + * Returns the raw JSON value of [billingAddressCity]. + * + * Unlike [billingAddressCity], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("billing_address_city") + @ExcludeMissing + fun _billingAddressCity(): JsonField = billingAddressCity + + /** + * Returns the raw JSON value of [billingAddressCountry]. + * + * Unlike [billingAddressCountry], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("billing_address_country") + @ExcludeMissing + fun _billingAddressCountry(): JsonField = billingAddressCountry + + /** + * Returns the raw JSON value of [billingAddressLine1]. + * + * Unlike [billingAddressLine1], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("billing_address_line1") + @ExcludeMissing + fun _billingAddressLine1(): JsonField = billingAddressLine1 + + /** + * Returns the raw JSON value of [billingAddressLine2]. + * + * Unlike [billingAddressLine2], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("billing_address_line2") + @ExcludeMissing + fun _billingAddressLine2(): JsonField = billingAddressLine2 + + /** + * Returns the raw JSON value of [billingAddressLine3]. + * + * Unlike [billingAddressLine3], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("billing_address_line3") + @ExcludeMissing + fun _billingAddressLine3(): JsonField = billingAddressLine3 + + /** + * Returns the raw JSON value of [billingAddressPostalCode]. + * + * Unlike [billingAddressPostalCode], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("billing_address_postal_code") + @ExcludeMissing + fun _billingAddressPostalCode(): JsonField = billingAddressPostalCode + + /** + * Returns the raw JSON value of [billingAddressState]. + * + * Unlike [billingAddressState], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("billing_address_state") + @ExcludeMissing + fun _billingAddressState(): JsonField = billingAddressState + /** * Returns the raw JSON value of [cardId]. * @@ -2024,6 +2226,26 @@ private constructor( @ExcludeMissing fun _cardPaymentId(): JsonField = cardPaymentId + /** + * Returns the raw JSON value of [cardholderEmail]. + * + * Unlike [cardholderEmail], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("cardholder_email") + @ExcludeMissing + fun _cardholderEmail(): JsonField = cardholderEmail + + /** + * Returns the raw JSON value of [cardholderName]. + * + * Unlike [cardholderName], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("cardholder_name") + @ExcludeMissing + fun _cardholderName(): JsonField = cardholderName + /** * Returns the raw JSON value of [category]. * @@ -2178,8 +2400,17 @@ private constructor( * The following fields are required: * ```java * .id() + * .billingAddressCity() + * .billingAddressCountry() + * .billingAddressLine1() + * .billingAddressLine2() + * .billingAddressLine3() + * .billingAddressPostalCode() + * .billingAddressState() * .cardId() * .cardPaymentId() + * .cardholderEmail() + * .cardholderName() * .category() * .challenge() * .createdAt() @@ -2203,8 +2434,17 @@ private constructor( class Builder internal constructor() { private var id: JsonField? = null + private var billingAddressCity: JsonField? = null + private var billingAddressCountry: JsonField? = null + private var billingAddressLine1: JsonField? = null + private var billingAddressLine2: JsonField? = null + private var billingAddressLine3: JsonField? = null + private var billingAddressPostalCode: JsonField? = null + private var billingAddressState: JsonField? = null private var cardId: JsonField? = null private var cardPaymentId: JsonField? = null + private var cardholderEmail: JsonField? = null + private var cardholderName: JsonField? = null private var category: JsonField? = null private var challenge: JsonField? = null private var createdAt: JsonField? = null @@ -2224,8 +2464,17 @@ private constructor( @JvmSynthetic internal fun from(cardAuthentication: CardAuthentication) = apply { id = cardAuthentication.id + billingAddressCity = cardAuthentication.billingAddressCity + billingAddressCountry = cardAuthentication.billingAddressCountry + billingAddressLine1 = cardAuthentication.billingAddressLine1 + billingAddressLine2 = cardAuthentication.billingAddressLine2 + billingAddressLine3 = cardAuthentication.billingAddressLine3 + billingAddressPostalCode = cardAuthentication.billingAddressPostalCode + billingAddressState = cardAuthentication.billingAddressState cardId = cardAuthentication.cardId cardPaymentId = cardAuthentication.cardPaymentId + cardholderEmail = cardAuthentication.cardholderEmail + cardholderName = cardAuthentication.cardholderName category = cardAuthentication.category challenge = cardAuthentication.challenge createdAt = cardAuthentication.createdAt @@ -2255,6 +2504,181 @@ private constructor( */ fun id(id: JsonField) = apply { this.id = id } + /** + * The city of the cardholder billing address associated with the card used for this + * purchase. + */ + fun billingAddressCity(billingAddressCity: String?) = + billingAddressCity(JsonField.ofNullable(billingAddressCity)) + + /** + * Alias for calling [Builder.billingAddressCity] with + * `billingAddressCity.orElse(null)`. + */ + fun billingAddressCity(billingAddressCity: Optional) = + billingAddressCity(billingAddressCity.getOrNull()) + + /** + * Sets [Builder.billingAddressCity] to an arbitrary JSON value. + * + * You should usually call [Builder.billingAddressCity] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun billingAddressCity(billingAddressCity: JsonField) = apply { + this.billingAddressCity = billingAddressCity + } + + /** + * The country of the cardholder billing address associated with the card used for + * this purchase. + */ + fun billingAddressCountry(billingAddressCountry: String?) = + billingAddressCountry(JsonField.ofNullable(billingAddressCountry)) + + /** + * Alias for calling [Builder.billingAddressCountry] with + * `billingAddressCountry.orElse(null)`. + */ + fun billingAddressCountry(billingAddressCountry: Optional) = + billingAddressCountry(billingAddressCountry.getOrNull()) + + /** + * Sets [Builder.billingAddressCountry] to an arbitrary JSON value. + * + * You should usually call [Builder.billingAddressCountry] with a well-typed + * [String] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun billingAddressCountry(billingAddressCountry: JsonField) = apply { + this.billingAddressCountry = billingAddressCountry + } + + /** + * The first line of the cardholder billing address associated with the card used + * for this purchase. + */ + fun billingAddressLine1(billingAddressLine1: String?) = + billingAddressLine1(JsonField.ofNullable(billingAddressLine1)) + + /** + * Alias for calling [Builder.billingAddressLine1] with + * `billingAddressLine1.orElse(null)`. + */ + fun billingAddressLine1(billingAddressLine1: Optional) = + billingAddressLine1(billingAddressLine1.getOrNull()) + + /** + * Sets [Builder.billingAddressLine1] to an arbitrary JSON value. + * + * You should usually call [Builder.billingAddressLine1] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun billingAddressLine1(billingAddressLine1: JsonField) = apply { + this.billingAddressLine1 = billingAddressLine1 + } + + /** + * The second line of the cardholder billing address associated with the card used + * for this purchase. + */ + fun billingAddressLine2(billingAddressLine2: String?) = + billingAddressLine2(JsonField.ofNullable(billingAddressLine2)) + + /** + * Alias for calling [Builder.billingAddressLine2] with + * `billingAddressLine2.orElse(null)`. + */ + fun billingAddressLine2(billingAddressLine2: Optional) = + billingAddressLine2(billingAddressLine2.getOrNull()) + + /** + * Sets [Builder.billingAddressLine2] to an arbitrary JSON value. + * + * You should usually call [Builder.billingAddressLine2] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun billingAddressLine2(billingAddressLine2: JsonField) = apply { + this.billingAddressLine2 = billingAddressLine2 + } + + /** + * The third line of the cardholder billing address associated with the card used + * for this purchase. + */ + fun billingAddressLine3(billingAddressLine3: String?) = + billingAddressLine3(JsonField.ofNullable(billingAddressLine3)) + + /** + * Alias for calling [Builder.billingAddressLine3] with + * `billingAddressLine3.orElse(null)`. + */ + fun billingAddressLine3(billingAddressLine3: Optional) = + billingAddressLine3(billingAddressLine3.getOrNull()) + + /** + * Sets [Builder.billingAddressLine3] to an arbitrary JSON value. + * + * You should usually call [Builder.billingAddressLine3] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun billingAddressLine3(billingAddressLine3: JsonField) = apply { + this.billingAddressLine3 = billingAddressLine3 + } + + /** + * The postal code of the cardholder billing address associated with the card used + * for this purchase. + */ + fun billingAddressPostalCode(billingAddressPostalCode: String?) = + billingAddressPostalCode(JsonField.ofNullable(billingAddressPostalCode)) + + /** + * Alias for calling [Builder.billingAddressPostalCode] with + * `billingAddressPostalCode.orElse(null)`. + */ + fun billingAddressPostalCode(billingAddressPostalCode: Optional) = + billingAddressPostalCode(billingAddressPostalCode.getOrNull()) + + /** + * Sets [Builder.billingAddressPostalCode] to an arbitrary JSON value. + * + * You should usually call [Builder.billingAddressPostalCode] with a well-typed + * [String] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun billingAddressPostalCode(billingAddressPostalCode: JsonField) = apply { + this.billingAddressPostalCode = billingAddressPostalCode + } + + /** + * The US state of the cardholder billing address associated with the card used for + * this purchase. + */ + fun billingAddressState(billingAddressState: String?) = + billingAddressState(JsonField.ofNullable(billingAddressState)) + + /** + * Alias for calling [Builder.billingAddressState] with + * `billingAddressState.orElse(null)`. + */ + fun billingAddressState(billingAddressState: Optional) = + billingAddressState(billingAddressState.getOrNull()) + + /** + * Sets [Builder.billingAddressState] to an arbitrary JSON value. + * + * You should usually call [Builder.billingAddressState] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun billingAddressState(billingAddressState: JsonField) = apply { + this.billingAddressState = billingAddressState + } + /** The identifier of the Card. */ fun cardId(cardId: String) = cardId(JsonField.of(cardId)) @@ -2282,6 +2706,48 @@ private constructor( this.cardPaymentId = cardPaymentId } + /** The email address of the cardholder. */ + fun cardholderEmail(cardholderEmail: String?) = + cardholderEmail(JsonField.ofNullable(cardholderEmail)) + + /** + * Alias for calling [Builder.cardholderEmail] with `cardholderEmail.orElse(null)`. + */ + fun cardholderEmail(cardholderEmail: Optional) = + cardholderEmail(cardholderEmail.getOrNull()) + + /** + * Sets [Builder.cardholderEmail] to an arbitrary JSON value. + * + * You should usually call [Builder.cardholderEmail] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun cardholderEmail(cardholderEmail: JsonField) = apply { + this.cardholderEmail = cardholderEmail + } + + /** The name of the cardholder. */ + fun cardholderName(cardholderName: String?) = + cardholderName(JsonField.ofNullable(cardholderName)) + + /** + * Alias for calling [Builder.cardholderName] with `cardholderName.orElse(null)`. + */ + fun cardholderName(cardholderName: Optional) = + cardholderName(cardholderName.getOrNull()) + + /** + * Sets [Builder.cardholderName] to an arbitrary JSON value. + * + * You should usually call [Builder.cardholderName] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun cardholderName(cardholderName: JsonField) = apply { + this.cardholderName = cardholderName + } + /** The category of the card authentication attempt. */ fun category(category: Category?) = category(JsonField.ofNullable(category)) @@ -2569,8 +3035,17 @@ private constructor( * The following fields are required: * ```java * .id() + * .billingAddressCity() + * .billingAddressCountry() + * .billingAddressLine1() + * .billingAddressLine2() + * .billingAddressLine3() + * .billingAddressPostalCode() + * .billingAddressState() * .cardId() * .cardPaymentId() + * .cardholderEmail() + * .cardholderName() * .category() * .challenge() * .createdAt() @@ -2592,8 +3067,17 @@ private constructor( fun build(): CardAuthentication = CardAuthentication( checkRequired("id", id), + checkRequired("billingAddressCity", billingAddressCity), + checkRequired("billingAddressCountry", billingAddressCountry), + checkRequired("billingAddressLine1", billingAddressLine1), + checkRequired("billingAddressLine2", billingAddressLine2), + checkRequired("billingAddressLine3", billingAddressLine3), + checkRequired("billingAddressPostalCode", billingAddressPostalCode), + checkRequired("billingAddressState", billingAddressState), checkRequired("cardId", cardId), checkRequired("cardPaymentId", cardPaymentId), + checkRequired("cardholderEmail", cardholderEmail), + checkRequired("cardholderName", cardholderName), checkRequired("category", category), checkRequired("challenge", challenge), checkRequired("createdAt", createdAt), @@ -2620,8 +3104,17 @@ private constructor( } id() + billingAddressCity() + billingAddressCountry() + billingAddressLine1() + billingAddressLine2() + billingAddressLine3() + billingAddressPostalCode() + billingAddressState() cardId() cardPaymentId() + cardholderEmail() + cardholderName() category().ifPresent { it.validate() } challenge().ifPresent { it.validate() } createdAt() @@ -2656,8 +3149,17 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (id.asKnown().isPresent) 1 else 0) + + (if (billingAddressCity.asKnown().isPresent) 1 else 0) + + (if (billingAddressCountry.asKnown().isPresent) 1 else 0) + + (if (billingAddressLine1.asKnown().isPresent) 1 else 0) + + (if (billingAddressLine2.asKnown().isPresent) 1 else 0) + + (if (billingAddressLine3.asKnown().isPresent) 1 else 0) + + (if (billingAddressPostalCode.asKnown().isPresent) 1 else 0) + + (if (billingAddressState.asKnown().isPresent) 1 else 0) + (if (cardId.asKnown().isPresent) 1 else 0) + (if (cardPaymentId.asKnown().isPresent) 1 else 0) + + (if (cardholderEmail.asKnown().isPresent) 1 else 0) + + (if (cardholderName.asKnown().isPresent) 1 else 0) + (category.asKnown().getOrNull()?.validity() ?: 0) + (challenge.asKnown().getOrNull()?.validity() ?: 0) + (if (createdAt.asKnown().isPresent) 1 else 0) + @@ -4394,8 +4896,17 @@ private constructor( return other is CardAuthentication && id == other.id && + billingAddressCity == other.billingAddressCity && + billingAddressCountry == other.billingAddressCountry && + billingAddressLine1 == other.billingAddressLine1 && + billingAddressLine2 == other.billingAddressLine2 && + billingAddressLine3 == other.billingAddressLine3 && + billingAddressPostalCode == other.billingAddressPostalCode && + billingAddressState == other.billingAddressState && cardId == other.cardId && cardPaymentId == other.cardPaymentId && + cardholderEmail == other.cardholderEmail && + cardholderName == other.cardholderName && category == other.category && challenge == other.challenge && createdAt == other.createdAt && @@ -4416,8 +4927,17 @@ private constructor( private val hashCode: Int by lazy { Objects.hash( id, + billingAddressCity, + billingAddressCountry, + billingAddressLine1, + billingAddressLine2, + billingAddressLine3, + billingAddressPostalCode, + billingAddressState, cardId, cardPaymentId, + cardholderEmail, + cardholderName, category, challenge, createdAt, @@ -4439,7 +4959,7 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "CardAuthentication{id=$id, cardId=$cardId, cardPaymentId=$cardPaymentId, category=$category, challenge=$challenge, createdAt=$createdAt, denyReason=$denyReason, deviceChannel=$deviceChannel, merchantAcceptorId=$merchantAcceptorId, merchantCategoryCode=$merchantCategoryCode, merchantCountry=$merchantCountry, merchantName=$merchantName, purchaseAmount=$purchaseAmount, purchaseCurrency=$purchaseCurrency, realTimeDecisionId=$realTimeDecisionId, status=$status, type=$type, additionalProperties=$additionalProperties}" + "CardAuthentication{id=$id, billingAddressCity=$billingAddressCity, billingAddressCountry=$billingAddressCountry, billingAddressLine1=$billingAddressLine1, billingAddressLine2=$billingAddressLine2, billingAddressLine3=$billingAddressLine3, billingAddressPostalCode=$billingAddressPostalCode, billingAddressState=$billingAddressState, cardId=$cardId, cardPaymentId=$cardPaymentId, cardholderEmail=$cardholderEmail, cardholderName=$cardholderName, category=$category, challenge=$challenge, createdAt=$createdAt, denyReason=$denyReason, deviceChannel=$deviceChannel, merchantAcceptorId=$merchantAcceptorId, merchantCategoryCode=$merchantCategoryCode, merchantCountry=$merchantCountry, merchantName=$merchantName, purchaseAmount=$purchaseAmount, purchaseCurrency=$purchaseCurrency, realTimeDecisionId=$realTimeDecisionId, status=$status, type=$type, additionalProperties=$additionalProperties}" } /** diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/cardpayments/CardPaymentListPageResponseTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/cardpayments/CardPaymentListPageResponseTest.kt index c195b8482..7970d2960 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/cardpayments/CardPaymentListPageResponseTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/cardpayments/CardPaymentListPageResponseTest.kt @@ -30,8 +30,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -2094,8 +2103,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -4158,8 +4176,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -6222,8 +6249,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -8328,8 +8364,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -10275,8 +10320,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -12222,8 +12276,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -14169,8 +14232,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -16160,8 +16232,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -18224,8 +18305,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -20288,8 +20378,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -22352,8 +22451,17 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION diff --git a/increase-java-core/src/test/kotlin/com/increase/api/models/cardpayments/CardPaymentTest.kt b/increase-java-core/src/test/kotlin/com/increase/api/models/cardpayments/CardPaymentTest.kt index f34e8df2f..59137702a 100644 --- a/increase-java-core/src/test/kotlin/com/increase/api/models/cardpayments/CardPaymentTest.kt +++ b/increase-java-core/src/test/kotlin/com/increase/api/models/cardpayments/CardPaymentTest.kt @@ -28,8 +28,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -1854,8 +1863,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -3680,8 +3698,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -5506,8 +5533,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -7366,8 +7402,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -9005,8 +9050,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -10644,8 +10698,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -12283,8 +12346,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -13962,8 +14034,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -15788,8 +15869,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -17614,8 +17704,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION @@ -19440,8 +19539,17 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .billingAddressCity("New York") + .billingAddressCountry("US") + .billingAddressLine1("33 Liberty Street") + .billingAddressLine2(null) + .billingAddressLine3(null) + .billingAddressPostalCode("10045") + .billingAddressState("NY") .cardId("card_oubs0hwk5rn6knuecxg2") .cardPaymentId("card_payment_nd3k2kacrqjli8482ave") + .cardholderEmail("user@example.com") + .cardholderName("Ian Crease") .category( CardPayment.Element.CardAuthentication.Category .PAYMENT_AUTHENTICATION