diff --git a/.release-please-manifest.json b/.release-please-manifest.json index bc54c8a6a..ec76f67f6 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.451.0" + ".": "0.452.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 73242f912..dd629af04 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 234 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e4cf84ebe7ee8dbfbaa709d310fb62f12631f4b69f7aa73be2a88f149c726dc3.yml -openapi_spec_hash: 123949338534df87debdfbd846fc40b1 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5ad5e7687261a6a66ca0b94fed6765c7f703e809a4ad1ea2697f13125b2a4149.yml +openapi_spec_hash: d0109b057a653545ee169947b9aa76b2 config_hash: 890ca5fa6b8209d4eaac90550c7dc62c diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a9842cfa..97e1c40f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.452.0 (2026-03-05) + +Full Changelog: [v0.451.0...v0.452.0](https://github.com/Increase/increase-java/compare/v0.451.0...v0.452.0) + +### Features + +* **api:** api update ([e4abaae](https://github.com/Increase/increase-java/commit/e4abaaef1cd8a8cbec9429dacd6bdf09abf9af25)) + ## 0.451.0 (2026-03-05) Full Changelog: [v0.450.0...v0.451.0](https://github.com/Increase/increase-java/compare/v0.450.0...v0.451.0) diff --git a/README.md b/README.md index a22cd7614..bc71b9930 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.451.0) -[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.451.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.451.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.452.0) +[![javadoc](https://javadoc.io/badge2/com.increase.api/increase-java/0.452.0/javadoc.svg)](https://javadoc.io/doc/com.increase.api/increase-java/0.452.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.451.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.452.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.451.0") +implementation("com.increase.api:increase-java:0.452.0") ``` ### Maven @@ -33,7 +33,7 @@ implementation("com.increase.api:increase-java:0.451.0") com.increase.api increase-java - 0.451.0 + 0.452.0 ``` diff --git a/build.gradle.kts b/build.gradle.kts index f71285a6c..4ea500e4f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ repositories { allprojects { group = "com.increase.api" - version = "0.451.0" // x-release-please-version + version = "0.452.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 c3b13c43e..3f533c05a 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,6 +1754,7 @@ private constructor( @JsonCreator(mode = JsonCreator.Mode.DISABLED) private constructor( private val id: JsonField, + private val accessControlServerTransactionId: JsonField, private val billingAddressCity: JsonField, private val billingAddressCountry: JsonField, private val billingAddressLine1: JsonField, @@ -1770,6 +1771,7 @@ private constructor( private val createdAt: JsonField, private val denyReason: JsonField, private val deviceChannel: JsonField, + private val directoryServerTransactionId: JsonField, private val merchantAcceptorId: JsonField, private val merchantCategoryCode: JsonField, private val merchantCountry: JsonField, @@ -1783,7 +1785,16 @@ private constructor( private val requestorChallengeIndicator: JsonField, private val requestorName: JsonField, private val requestorUrl: JsonField, + private val shippingAddressCity: JsonField, + private val shippingAddressCountry: JsonField, + private val shippingAddressLine1: JsonField, + private val shippingAddressLine2: JsonField, + private val shippingAddressLine3: JsonField, + private val shippingAddressPostalCode: JsonField, + private val shippingAddressState: JsonField, private val status: JsonField, + private val threeDSecureServerTransactionId: JsonField, + private val transactionType: JsonField, private val type: JsonField, private val additionalProperties: MutableMap, ) { @@ -1791,6 +1802,9 @@ private constructor( @JsonCreator private constructor( @JsonProperty("id") @ExcludeMissing id: JsonField = JsonMissing.of(), + @JsonProperty("access_control_server_transaction_id") + @ExcludeMissing + accessControlServerTransactionId: JsonField = JsonMissing.of(), @JsonProperty("billing_address_city") @ExcludeMissing billingAddressCity: JsonField = JsonMissing.of(), @@ -1839,6 +1853,9 @@ private constructor( @JsonProperty("device_channel") @ExcludeMissing deviceChannel: JsonField = JsonMissing.of(), + @JsonProperty("directory_server_transaction_id") + @ExcludeMissing + directoryServerTransactionId: JsonField = JsonMissing.of(), @JsonProperty("merchant_acceptor_id") @ExcludeMissing merchantAcceptorId: JsonField = JsonMissing.of(), @@ -1877,12 +1894,40 @@ private constructor( @JsonProperty("requestor_url") @ExcludeMissing requestorUrl: JsonField = JsonMissing.of(), + @JsonProperty("shipping_address_city") + @ExcludeMissing + shippingAddressCity: JsonField = JsonMissing.of(), + @JsonProperty("shipping_address_country") + @ExcludeMissing + shippingAddressCountry: JsonField = JsonMissing.of(), + @JsonProperty("shipping_address_line1") + @ExcludeMissing + shippingAddressLine1: JsonField = JsonMissing.of(), + @JsonProperty("shipping_address_line2") + @ExcludeMissing + shippingAddressLine2: JsonField = JsonMissing.of(), + @JsonProperty("shipping_address_line3") + @ExcludeMissing + shippingAddressLine3: JsonField = JsonMissing.of(), + @JsonProperty("shipping_address_postal_code") + @ExcludeMissing + shippingAddressPostalCode: JsonField = JsonMissing.of(), + @JsonProperty("shipping_address_state") + @ExcludeMissing + shippingAddressState: JsonField = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing status: JsonField = JsonMissing.of(), + @JsonProperty("three_d_secure_server_transaction_id") + @ExcludeMissing + threeDSecureServerTransactionId: JsonField = JsonMissing.of(), + @JsonProperty("transaction_type") + @ExcludeMissing + transactionType: JsonField = JsonMissing.of(), @JsonProperty("type") @ExcludeMissing type: JsonField = JsonMissing.of(), ) : this( id, + accessControlServerTransactionId, billingAddressCity, billingAddressCountry, billingAddressLine1, @@ -1899,6 +1944,7 @@ private constructor( createdAt, denyReason, deviceChannel, + directoryServerTransactionId, merchantAcceptorId, merchantCategoryCode, merchantCountry, @@ -1911,7 +1957,16 @@ private constructor( requestorChallengeIndicator, requestorName, requestorUrl, + shippingAddressCity, + shippingAddressCountry, + shippingAddressLine1, + shippingAddressLine2, + shippingAddressLine3, + shippingAddressPostalCode, + shippingAddressState, status, + threeDSecureServerTransactionId, + transactionType, type, mutableMapOf(), ) @@ -1925,6 +1980,16 @@ private constructor( */ fun id(): String = id.getRequired("id") + /** + * A unique identifier assigned by the Access Control Server (us) for this transaction. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is + * unexpectedly missing or null (e.g. if the server responded with an unexpected + * value). + */ + fun accessControlServerTransactionId(): String = + accessControlServerTransactionId.getRequired("access_control_server_transaction_id") + /** * The city of the cardholder billing address associated with the card used for this * purchase. @@ -2073,6 +2138,17 @@ private constructor( */ fun deviceChannel(): DeviceChannel = deviceChannel.getRequired("device_channel") + /** + * A unique identifier assigned by the Directory Server (the card network) for this + * transaction. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is + * unexpectedly missing or null (e.g. if the server responded with an unexpected + * value). + */ + fun directoryServerTransactionId(): String = + directoryServerTransactionId.getRequired("directory_server_transaction_id") + /** * The merchant identifier (commonly abbreviated as MID) of the merchant the card is * transacting with. @@ -2188,6 +2264,69 @@ private constructor( */ fun requestorUrl(): String = requestorUrl.getRequired("requestor_url") + /** + * The city of the shipping address associated with this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun shippingAddressCity(): Optional = + shippingAddressCity.getOptional("shipping_address_city") + + /** + * The country of the shipping address associated with this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun shippingAddressCountry(): Optional = + shippingAddressCountry.getOptional("shipping_address_country") + + /** + * The first line of the shipping address associated with this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun shippingAddressLine1(): Optional = + shippingAddressLine1.getOptional("shipping_address_line1") + + /** + * The second line of the shipping address associated with this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun shippingAddressLine2(): Optional = + shippingAddressLine2.getOptional("shipping_address_line2") + + /** + * The third line of the shipping address associated with this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun shippingAddressLine3(): Optional = + shippingAddressLine3.getOptional("shipping_address_line3") + + /** + * The postal code of the shipping address associated with this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun shippingAddressPostalCode(): Optional = + shippingAddressPostalCode.getOptional("shipping_address_postal_code") + + /** + * The US state of the shipping address associated with this purchase. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun shippingAddressState(): Optional = + shippingAddressState.getOptional("shipping_address_state") + /** * The status of the card authentication. * @@ -2197,6 +2336,26 @@ private constructor( */ fun status(): Status = status.getRequired("status") + /** + * A unique identifier assigned by the 3DS Server initiating the authentication attempt + * for this transaction. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is + * unexpectedly missing or null (e.g. if the server responded with an unexpected + * value). + */ + fun threeDSecureServerTransactionId(): String = + threeDSecureServerTransactionId.getRequired("three_d_secure_server_transaction_id") + + /** + * The type of transaction being authenticated. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type (e.g. + * if the server responded with an unexpected value). + */ + fun transactionType(): Optional = + transactionType.getOptional("transaction_type") + /** * A constant representing the object's type. For this resource it will always be * `card_authentication`. @@ -2214,6 +2373,17 @@ private constructor( */ @JsonProperty("id") @ExcludeMissing fun _id(): JsonField = id + /** + * Returns the raw JSON value of [accessControlServerTransactionId]. + * + * Unlike [accessControlServerTransactionId], this method doesn't throw if the JSON + * field has an unexpected type. + */ + @JsonProperty("access_control_server_transaction_id") + @ExcludeMissing + fun _accessControlServerTransactionId(): JsonField = + accessControlServerTransactionId + /** * Returns the raw JSON value of [billingAddressCity]. * @@ -2371,6 +2541,16 @@ private constructor( @ExcludeMissing fun _deviceChannel(): JsonField = deviceChannel + /** + * Returns the raw JSON value of [directoryServerTransactionId]. + * + * Unlike [directoryServerTransactionId], this method doesn't throw if the JSON field + * has an unexpected type. + */ + @JsonProperty("directory_server_transaction_id") + @ExcludeMissing + fun _directoryServerTransactionId(): JsonField = directoryServerTransactionId + /** * Returns the raw JSON value of [merchantAcceptorId]. * @@ -2493,6 +2673,76 @@ private constructor( @ExcludeMissing fun _requestorUrl(): JsonField = requestorUrl + /** + * Returns the raw JSON value of [shippingAddressCity]. + * + * Unlike [shippingAddressCity], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("shipping_address_city") + @ExcludeMissing + fun _shippingAddressCity(): JsonField = shippingAddressCity + + /** + * Returns the raw JSON value of [shippingAddressCountry]. + * + * Unlike [shippingAddressCountry], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("shipping_address_country") + @ExcludeMissing + fun _shippingAddressCountry(): JsonField = shippingAddressCountry + + /** + * Returns the raw JSON value of [shippingAddressLine1]. + * + * Unlike [shippingAddressLine1], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("shipping_address_line1") + @ExcludeMissing + fun _shippingAddressLine1(): JsonField = shippingAddressLine1 + + /** + * Returns the raw JSON value of [shippingAddressLine2]. + * + * Unlike [shippingAddressLine2], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("shipping_address_line2") + @ExcludeMissing + fun _shippingAddressLine2(): JsonField = shippingAddressLine2 + + /** + * Returns the raw JSON value of [shippingAddressLine3]. + * + * Unlike [shippingAddressLine3], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("shipping_address_line3") + @ExcludeMissing + fun _shippingAddressLine3(): JsonField = shippingAddressLine3 + + /** + * Returns the raw JSON value of [shippingAddressPostalCode]. + * + * Unlike [shippingAddressPostalCode], this method doesn't throw if the JSON field has + * an unexpected type. + */ + @JsonProperty("shipping_address_postal_code") + @ExcludeMissing + fun _shippingAddressPostalCode(): JsonField = shippingAddressPostalCode + + /** + * Returns the raw JSON value of [shippingAddressState]. + * + * Unlike [shippingAddressState], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("shipping_address_state") + @ExcludeMissing + fun _shippingAddressState(): JsonField = shippingAddressState + /** * Returns the raw JSON value of [status]. * @@ -2500,6 +2750,27 @@ private constructor( */ @JsonProperty("status") @ExcludeMissing fun _status(): JsonField = status + /** + * Returns the raw JSON value of [threeDSecureServerTransactionId]. + * + * Unlike [threeDSecureServerTransactionId], this method doesn't throw if the JSON field + * has an unexpected type. + */ + @JsonProperty("three_d_secure_server_transaction_id") + @ExcludeMissing + fun _threeDSecureServerTransactionId(): JsonField = + threeDSecureServerTransactionId + + /** + * Returns the raw JSON value of [transactionType]. + * + * Unlike [transactionType], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("transaction_type") + @ExcludeMissing + fun _transactionType(): JsonField = transactionType + /** * Returns the raw JSON value of [type]. * @@ -2527,6 +2798,7 @@ private constructor( * The following fields are required: * ```java * .id() + * .accessControlServerTransactionId() * .billingAddressCity() * .billingAddressCountry() * .billingAddressLine1() @@ -2543,6 +2815,7 @@ private constructor( * .createdAt() * .denyReason() * .deviceChannel() + * .directoryServerTransactionId() * .merchantAcceptorId() * .merchantCategoryCode() * .merchantCountry() @@ -2555,7 +2828,16 @@ private constructor( * .requestorChallengeIndicator() * .requestorName() * .requestorUrl() + * .shippingAddressCity() + * .shippingAddressCountry() + * .shippingAddressLine1() + * .shippingAddressLine2() + * .shippingAddressLine3() + * .shippingAddressPostalCode() + * .shippingAddressState() * .status() + * .threeDSecureServerTransactionId() + * .transactionType() * .type() * ``` */ @@ -2566,6 +2848,7 @@ private constructor( class Builder internal constructor() { private var id: JsonField? = null + private var accessControlServerTransactionId: JsonField? = null private var billingAddressCity: JsonField? = null private var billingAddressCountry: JsonField? = null private var billingAddressLine1: JsonField? = null @@ -2582,6 +2865,7 @@ private constructor( private var createdAt: JsonField? = null private var denyReason: JsonField? = null private var deviceChannel: JsonField? = null + private var directoryServerTransactionId: JsonField? = null private var merchantAcceptorId: JsonField? = null private var merchantCategoryCode: JsonField? = null private var merchantCountry: JsonField? = null @@ -2597,13 +2881,24 @@ private constructor( null private var requestorName: JsonField? = null private var requestorUrl: JsonField? = null + private var shippingAddressCity: JsonField? = null + private var shippingAddressCountry: JsonField? = null + private var shippingAddressLine1: JsonField? = null + private var shippingAddressLine2: JsonField? = null + private var shippingAddressLine3: JsonField? = null + private var shippingAddressPostalCode: JsonField? = null + private var shippingAddressState: JsonField? = null private var status: JsonField? = null + private var threeDSecureServerTransactionId: JsonField? = null + private var transactionType: JsonField? = null private var type: JsonField? = null private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(cardAuthentication: CardAuthentication) = apply { id = cardAuthentication.id + accessControlServerTransactionId = + cardAuthentication.accessControlServerTransactionId billingAddressCity = cardAuthentication.billingAddressCity billingAddressCountry = cardAuthentication.billingAddressCountry billingAddressLine1 = cardAuthentication.billingAddressLine1 @@ -2620,6 +2915,7 @@ private constructor( createdAt = cardAuthentication.createdAt denyReason = cardAuthentication.denyReason deviceChannel = cardAuthentication.deviceChannel + directoryServerTransactionId = cardAuthentication.directoryServerTransactionId merchantAcceptorId = cardAuthentication.merchantAcceptorId merchantCategoryCode = cardAuthentication.merchantCategoryCode merchantCountry = cardAuthentication.merchantCountry @@ -2633,7 +2929,17 @@ private constructor( requestorChallengeIndicator = cardAuthentication.requestorChallengeIndicator requestorName = cardAuthentication.requestorName requestorUrl = cardAuthentication.requestorUrl + shippingAddressCity = cardAuthentication.shippingAddressCity + shippingAddressCountry = cardAuthentication.shippingAddressCountry + shippingAddressLine1 = cardAuthentication.shippingAddressLine1 + shippingAddressLine2 = cardAuthentication.shippingAddressLine2 + shippingAddressLine3 = cardAuthentication.shippingAddressLine3 + shippingAddressPostalCode = cardAuthentication.shippingAddressPostalCode + shippingAddressState = cardAuthentication.shippingAddressState status = cardAuthentication.status + threeDSecureServerTransactionId = + cardAuthentication.threeDSecureServerTransactionId + transactionType = cardAuthentication.transactionType type = cardAuthentication.type additionalProperties = cardAuthentication.additionalProperties.toMutableMap() } @@ -2650,6 +2956,26 @@ private constructor( */ fun id(id: JsonField) = apply { this.id = id } + /** + * A unique identifier assigned by the Access Control Server (us) for this + * transaction. + */ + fun accessControlServerTransactionId(accessControlServerTransactionId: String) = + accessControlServerTransactionId(JsonField.of(accessControlServerTransactionId)) + + /** + * Sets [Builder.accessControlServerTransactionId] to an arbitrary JSON value. + * + * You should usually call [Builder.accessControlServerTransactionId] with a + * well-typed [String] value instead. This method is primarily for setting the field + * to an undocumented or not yet supported value. + */ + fun accessControlServerTransactionId( + accessControlServerTransactionId: JsonField + ) = apply { + this.accessControlServerTransactionId = accessControlServerTransactionId + } + /** * The city of the cardholder billing address associated with the card used for this * purchase. @@ -2977,6 +3303,25 @@ private constructor( this.deviceChannel = deviceChannel } + /** + * A unique identifier assigned by the Directory Server (the card network) for this + * transaction. + */ + fun directoryServerTransactionId(directoryServerTransactionId: String) = + directoryServerTransactionId(JsonField.of(directoryServerTransactionId)) + + /** + * Sets [Builder.directoryServerTransactionId] to an arbitrary JSON value. + * + * You should usually call [Builder.directoryServerTransactionId] with a well-typed + * [String] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun directoryServerTransactionId(directoryServerTransactionId: JsonField) = + apply { + this.directoryServerTransactionId = directoryServerTransactionId + } + /** * The merchant identifier (commonly abbreviated as MID) of the merchant the card is * transacting with. @@ -3231,64 +3576,259 @@ private constructor( this.requestorUrl = requestorUrl } - /** The status of the card authentication. */ - fun status(status: Status) = status(JsonField.of(status)) + /** The city of the shipping address associated with this purchase. */ + fun shippingAddressCity(shippingAddressCity: String?) = + shippingAddressCity(JsonField.ofNullable(shippingAddressCity)) /** - * Sets [Builder.status] to an arbitrary JSON value. + * Alias for calling [Builder.shippingAddressCity] with + * `shippingAddressCity.orElse(null)`. + */ + fun shippingAddressCity(shippingAddressCity: Optional) = + shippingAddressCity(shippingAddressCity.getOrNull()) + + /** + * Sets [Builder.shippingAddressCity] to an arbitrary JSON value. * - * You should usually call [Builder.status] with a well-typed [Status] value - * instead. This method is primarily for setting the field to an undocumented or not - * yet supported value. + * You should usually call [Builder.shippingAddressCity] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. */ - fun status(status: JsonField) = apply { this.status = status } + fun shippingAddressCity(shippingAddressCity: JsonField) = apply { + this.shippingAddressCity = shippingAddressCity + } + + /** The country of the shipping address associated with this purchase. */ + fun shippingAddressCountry(shippingAddressCountry: String?) = + shippingAddressCountry(JsonField.ofNullable(shippingAddressCountry)) /** - * A constant representing the object's type. For this resource it will always be - * `card_authentication`. + * Alias for calling [Builder.shippingAddressCountry] with + * `shippingAddressCountry.orElse(null)`. */ - fun type(type: Type) = type(JsonField.of(type)) + fun shippingAddressCountry(shippingAddressCountry: Optional) = + shippingAddressCountry(shippingAddressCountry.getOrNull()) /** - * Sets [Builder.type] to an arbitrary JSON value. + * Sets [Builder.shippingAddressCountry] to an arbitrary JSON value. * - * You should usually call [Builder.type] with a well-typed [Type] value instead. - * This method is primarily for setting the field to an undocumented or not yet - * supported value. + * You should usually call [Builder.shippingAddressCountry] with a well-typed + * [String] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. */ - fun type(type: JsonField) = apply { this.type = type } - - fun additionalProperties(additionalProperties: Map) = apply { - this.additionalProperties.clear() - putAllAdditionalProperties(additionalProperties) + fun shippingAddressCountry(shippingAddressCountry: JsonField) = apply { + this.shippingAddressCountry = shippingAddressCountry } - fun putAdditionalProperty(key: String, value: JsonValue) = apply { - additionalProperties.put(key, value) + /** The first line of the shipping address associated with this purchase. */ + fun shippingAddressLine1(shippingAddressLine1: String?) = + shippingAddressLine1(JsonField.ofNullable(shippingAddressLine1)) + + /** + * Alias for calling [Builder.shippingAddressLine1] with + * `shippingAddressLine1.orElse(null)`. + */ + fun shippingAddressLine1(shippingAddressLine1: Optional) = + shippingAddressLine1(shippingAddressLine1.getOrNull()) + + /** + * Sets [Builder.shippingAddressLine1] to an arbitrary JSON value. + * + * You should usually call [Builder.shippingAddressLine1] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun shippingAddressLine1(shippingAddressLine1: JsonField) = apply { + this.shippingAddressLine1 = shippingAddressLine1 } - fun putAllAdditionalProperties(additionalProperties: Map) = - apply { - this.additionalProperties.putAll(additionalProperties) - } + /** The second line of the shipping address associated with this purchase. */ + fun shippingAddressLine2(shippingAddressLine2: String?) = + shippingAddressLine2(JsonField.ofNullable(shippingAddressLine2)) - fun removeAdditionalProperty(key: String) = apply { - additionalProperties.remove(key) + /** + * Alias for calling [Builder.shippingAddressLine2] with + * `shippingAddressLine2.orElse(null)`. + */ + fun shippingAddressLine2(shippingAddressLine2: Optional) = + shippingAddressLine2(shippingAddressLine2.getOrNull()) + + /** + * Sets [Builder.shippingAddressLine2] to an arbitrary JSON value. + * + * You should usually call [Builder.shippingAddressLine2] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun shippingAddressLine2(shippingAddressLine2: JsonField) = apply { + this.shippingAddressLine2 = shippingAddressLine2 } - fun removeAllAdditionalProperties(keys: Set) = apply { - keys.forEach(::removeAdditionalProperty) + /** The third line of the shipping address associated with this purchase. */ + fun shippingAddressLine3(shippingAddressLine3: String?) = + shippingAddressLine3(JsonField.ofNullable(shippingAddressLine3)) + + /** + * Alias for calling [Builder.shippingAddressLine3] with + * `shippingAddressLine3.orElse(null)`. + */ + fun shippingAddressLine3(shippingAddressLine3: Optional) = + shippingAddressLine3(shippingAddressLine3.getOrNull()) + + /** + * Sets [Builder.shippingAddressLine3] to an arbitrary JSON value. + * + * You should usually call [Builder.shippingAddressLine3] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun shippingAddressLine3(shippingAddressLine3: JsonField) = apply { + this.shippingAddressLine3 = shippingAddressLine3 } + /** The postal code of the shipping address associated with this purchase. */ + fun shippingAddressPostalCode(shippingAddressPostalCode: String?) = + shippingAddressPostalCode(JsonField.ofNullable(shippingAddressPostalCode)) + /** - * Returns an immutable instance of [CardAuthentication]. + * Alias for calling [Builder.shippingAddressPostalCode] with + * `shippingAddressPostalCode.orElse(null)`. + */ + fun shippingAddressPostalCode(shippingAddressPostalCode: Optional) = + shippingAddressPostalCode(shippingAddressPostalCode.getOrNull()) + + /** + * Sets [Builder.shippingAddressPostalCode] to an arbitrary JSON value. * - * Further updates to this [Builder] will not mutate the returned instance. + * You should usually call [Builder.shippingAddressPostalCode] with a well-typed + * [String] value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun shippingAddressPostalCode(shippingAddressPostalCode: JsonField) = + apply { + this.shippingAddressPostalCode = shippingAddressPostalCode + } + + /** The US state of the shipping address associated with this purchase. */ + fun shippingAddressState(shippingAddressState: String?) = + shippingAddressState(JsonField.ofNullable(shippingAddressState)) + + /** + * Alias for calling [Builder.shippingAddressState] with + * `shippingAddressState.orElse(null)`. + */ + fun shippingAddressState(shippingAddressState: Optional) = + shippingAddressState(shippingAddressState.getOrNull()) + + /** + * Sets [Builder.shippingAddressState] to an arbitrary JSON value. * - * The following fields are required: - * ```java - * .id() - * .billingAddressCity() + * You should usually call [Builder.shippingAddressState] with a well-typed [String] + * value instead. This method is primarily for setting the field to an undocumented + * or not yet supported value. + */ + fun shippingAddressState(shippingAddressState: JsonField) = apply { + this.shippingAddressState = shippingAddressState + } + + /** The status of the card authentication. */ + fun status(status: Status) = status(JsonField.of(status)) + + /** + * Sets [Builder.status] to an arbitrary JSON value. + * + * You should usually call [Builder.status] with a well-typed [Status] value + * instead. This method is primarily for setting the field to an undocumented or not + * yet supported value. + */ + fun status(status: JsonField) = apply { this.status = status } + + /** + * A unique identifier assigned by the 3DS Server initiating the authentication + * attempt for this transaction. + */ + fun threeDSecureServerTransactionId(threeDSecureServerTransactionId: String) = + threeDSecureServerTransactionId(JsonField.of(threeDSecureServerTransactionId)) + + /** + * Sets [Builder.threeDSecureServerTransactionId] to an arbitrary JSON value. + * + * You should usually call [Builder.threeDSecureServerTransactionId] with a + * well-typed [String] value instead. This method is primarily for setting the field + * to an undocumented or not yet supported value. + */ + fun threeDSecureServerTransactionId( + threeDSecureServerTransactionId: JsonField + ) = apply { this.threeDSecureServerTransactionId = threeDSecureServerTransactionId } + + /** The type of transaction being authenticated. */ + fun transactionType(transactionType: TransactionType?) = + transactionType(JsonField.ofNullable(transactionType)) + + /** + * Alias for calling [Builder.transactionType] with `transactionType.orElse(null)`. + */ + fun transactionType(transactionType: Optional) = + transactionType(transactionType.getOrNull()) + + /** + * Sets [Builder.transactionType] to an arbitrary JSON value. + * + * You should usually call [Builder.transactionType] with a well-typed + * [TransactionType] value instead. This method is primarily for setting the field + * to an undocumented or not yet supported value. + */ + fun transactionType(transactionType: JsonField) = apply { + this.transactionType = transactionType + } + + /** + * A constant representing the object's type. For this resource it will always be + * `card_authentication`. + */ + fun type(type: Type) = type(JsonField.of(type)) + + /** + * Sets [Builder.type] to an arbitrary JSON value. + * + * You should usually call [Builder.type] with a well-typed [Type] value instead. + * This method is primarily for setting the field to an undocumented or not yet + * supported value. + */ + fun type(type: JsonField) = apply { this.type = type } + + fun additionalProperties(additionalProperties: Map) = apply { + this.additionalProperties.clear() + putAllAdditionalProperties(additionalProperties) + } + + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.putAll(additionalProperties) + } + + fun removeAdditionalProperty(key: String) = apply { + additionalProperties.remove(key) + } + + fun removeAllAdditionalProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalProperty) + } + + /** + * Returns an immutable instance of [CardAuthentication]. + * + * Further updates to this [Builder] will not mutate the returned instance. + * + * The following fields are required: + * ```java + * .id() + * .accessControlServerTransactionId() + * .billingAddressCity() * .billingAddressCountry() * .billingAddressLine1() * .billingAddressLine2() @@ -3304,6 +3844,7 @@ private constructor( * .createdAt() * .denyReason() * .deviceChannel() + * .directoryServerTransactionId() * .merchantAcceptorId() * .merchantCategoryCode() * .merchantCountry() @@ -3316,7 +3857,16 @@ private constructor( * .requestorChallengeIndicator() * .requestorName() * .requestorUrl() + * .shippingAddressCity() + * .shippingAddressCountry() + * .shippingAddressLine1() + * .shippingAddressLine2() + * .shippingAddressLine3() + * .shippingAddressPostalCode() + * .shippingAddressState() * .status() + * .threeDSecureServerTransactionId() + * .transactionType() * .type() * ``` * @@ -3325,6 +3875,10 @@ private constructor( fun build(): CardAuthentication = CardAuthentication( checkRequired("id", id), + checkRequired( + "accessControlServerTransactionId", + accessControlServerTransactionId, + ), checkRequired("billingAddressCity", billingAddressCity), checkRequired("billingAddressCountry", billingAddressCountry), checkRequired("billingAddressLine1", billingAddressLine1), @@ -3341,6 +3895,7 @@ private constructor( checkRequired("createdAt", createdAt), checkRequired("denyReason", denyReason), checkRequired("deviceChannel", deviceChannel), + checkRequired("directoryServerTransactionId", directoryServerTransactionId), checkRequired("merchantAcceptorId", merchantAcceptorId), checkRequired("merchantCategoryCode", merchantCategoryCode), checkRequired("merchantCountry", merchantCountry), @@ -3356,7 +3911,19 @@ private constructor( checkRequired("requestorChallengeIndicator", requestorChallengeIndicator), checkRequired("requestorName", requestorName), checkRequired("requestorUrl", requestorUrl), + checkRequired("shippingAddressCity", shippingAddressCity), + checkRequired("shippingAddressCountry", shippingAddressCountry), + checkRequired("shippingAddressLine1", shippingAddressLine1), + checkRequired("shippingAddressLine2", shippingAddressLine2), + checkRequired("shippingAddressLine3", shippingAddressLine3), + checkRequired("shippingAddressPostalCode", shippingAddressPostalCode), + checkRequired("shippingAddressState", shippingAddressState), checkRequired("status", status), + checkRequired( + "threeDSecureServerTransactionId", + threeDSecureServerTransactionId, + ), + checkRequired("transactionType", transactionType), checkRequired("type", type), additionalProperties.toMutableMap(), ) @@ -3370,6 +3937,7 @@ private constructor( } id() + accessControlServerTransactionId() billingAddressCity() billingAddressCountry() billingAddressLine1() @@ -3386,6 +3954,7 @@ private constructor( createdAt() denyReason().ifPresent { it.validate() } deviceChannel().validate() + directoryServerTransactionId() merchantAcceptorId() merchantCategoryCode() merchantCountry() @@ -3398,7 +3967,16 @@ private constructor( requestorChallengeIndicator().ifPresent { it.validate() } requestorName() requestorUrl() + shippingAddressCity() + shippingAddressCountry() + shippingAddressLine1() + shippingAddressLine2() + shippingAddressLine3() + shippingAddressPostalCode() + shippingAddressState() status().validate() + threeDSecureServerTransactionId() + transactionType().ifPresent { it.validate() } type().validate() validated = true } @@ -3420,6 +3998,7 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (if (id.asKnown().isPresent) 1 else 0) + + (if (accessControlServerTransactionId.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) + @@ -3436,6 +4015,7 @@ private constructor( (if (createdAt.asKnown().isPresent) 1 else 0) + (denyReason.asKnown().getOrNull()?.validity() ?: 0) + (deviceChannel.asKnown().getOrNull()?.validity() ?: 0) + + (if (directoryServerTransactionId.asKnown().isPresent) 1 else 0) + (if (merchantAcceptorId.asKnown().isPresent) 1 else 0) + (if (merchantCategoryCode.asKnown().isPresent) 1 else 0) + (if (merchantCountry.asKnown().isPresent) 1 else 0) + @@ -3448,7 +4028,16 @@ private constructor( (requestorChallengeIndicator.asKnown().getOrNull()?.validity() ?: 0) + (if (requestorName.asKnown().isPresent) 1 else 0) + (if (requestorUrl.asKnown().isPresent) 1 else 0) + + (if (shippingAddressCity.asKnown().isPresent) 1 else 0) + + (if (shippingAddressCountry.asKnown().isPresent) 1 else 0) + + (if (shippingAddressLine1.asKnown().isPresent) 1 else 0) + + (if (shippingAddressLine2.asKnown().isPresent) 1 else 0) + + (if (shippingAddressLine3.asKnown().isPresent) 1 else 0) + + (if (shippingAddressPostalCode.asKnown().isPresent) 1 else 0) + + (if (shippingAddressState.asKnown().isPresent) 1 else 0) + (status.asKnown().getOrNull()?.validity() ?: 0) + + (if (threeDSecureServerTransactionId.asKnown().isPresent) 1 else 0) + + (transactionType.asKnown().getOrNull()?.validity() ?: 0) + (type.asKnown().getOrNull()?.validity() ?: 0) /** The category of the card authentication attempt. */ @@ -4692,6 +5281,7 @@ private constructor( private constructor( private val browser: JsonField, private val category: JsonField, + private val merchantInitiated: JsonField, private val additionalProperties: MutableMap, ) { @@ -4703,7 +5293,10 @@ private constructor( @JsonProperty("category") @ExcludeMissing category: JsonField = JsonMissing.of(), - ) : this(browser, category, mutableMapOf()) + @JsonProperty("merchant_initiated") + @ExcludeMissing + merchantInitiated: JsonField = JsonMissing.of(), + ) : this(browser, category, merchantInitiated, mutableMapOf()) /** * Fields specific to the browser device channel. @@ -4722,6 +5315,15 @@ private constructor( */ fun category(): Category = category.getRequired("category") + /** + * Fields specific to merchant initiated transactions. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type + * (e.g. if the server responded with an unexpected value). + */ + fun merchantInitiated(): Optional = + merchantInitiated.getOptional("merchant_initiated") + /** * Returns the raw JSON value of [browser]. * @@ -4742,6 +5344,16 @@ private constructor( @ExcludeMissing fun _category(): JsonField = category + /** + * Returns the raw JSON value of [merchantInitiated]. + * + * Unlike [merchantInitiated], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("merchant_initiated") + @ExcludeMissing + fun _merchantInitiated(): JsonField = merchantInitiated + @JsonAnySetter private fun putAdditionalProperty(key: String, value: JsonValue) { additionalProperties.put(key, value) @@ -4763,6 +5375,7 @@ private constructor( * ```java * .browser() * .category() + * .merchantInitiated() * ``` */ @JvmStatic fun builder() = Builder() @@ -4773,12 +5386,14 @@ private constructor( private var browser: JsonField? = null private var category: JsonField? = null + private var merchantInitiated: JsonField? = null private var additionalProperties: MutableMap = mutableMapOf() @JvmSynthetic internal fun from(deviceChannel: DeviceChannel) = apply { browser = deviceChannel.browser category = deviceChannel.category + merchantInitiated = deviceChannel.merchantInitiated additionalProperties = deviceChannel.additionalProperties.toMutableMap() } @@ -4809,6 +5424,28 @@ private constructor( */ fun category(category: JsonField) = apply { this.category = category } + /** Fields specific to merchant initiated transactions. */ + fun merchantInitiated(merchantInitiated: MerchantInitiated?) = + merchantInitiated(JsonField.ofNullable(merchantInitiated)) + + /** + * Alias for calling [Builder.merchantInitiated] with + * `merchantInitiated.orElse(null)`. + */ + fun merchantInitiated(merchantInitiated: Optional) = + merchantInitiated(merchantInitiated.getOrNull()) + + /** + * Sets [Builder.merchantInitiated] to an arbitrary JSON value. + * + * You should usually call [Builder.merchantInitiated] with a well-typed + * [MerchantInitiated] value instead. This method is primarily for setting the + * field to an undocumented or not yet supported value. + */ + fun merchantInitiated(merchantInitiated: JsonField) = apply { + this.merchantInitiated = merchantInitiated + } + fun additionalProperties(additionalProperties: Map) = apply { this.additionalProperties.clear() putAllAdditionalProperties(additionalProperties) @@ -4840,6 +5477,7 @@ private constructor( * ```java * .browser() * .category() + * .merchantInitiated() * ``` * * @throws IllegalStateException if any required field is unset. @@ -4848,6 +5486,7 @@ private constructor( DeviceChannel( checkRequired("browser", browser), checkRequired("category", category), + checkRequired("merchantInitiated", merchantInitiated), additionalProperties.toMutableMap(), ) } @@ -4861,6 +5500,7 @@ private constructor( browser().ifPresent { it.validate() } category().validate() + merchantInitiated().ifPresent { it.validate() } validated = true } @@ -4881,7 +5521,8 @@ private constructor( @JvmSynthetic internal fun validity(): Int = (browser.asKnown().getOrNull()?.validity() ?: 0) + - (category.asKnown().getOrNull()?.validity() ?: 0) + (category.asKnown().getOrNull()?.validity() ?: 0) + + (merchantInitiated.asKnown().getOrNull()?.validity() ?: 0) /** Fields specific to the browser device channel. */ class Browser @@ -5578,6 +6219,492 @@ private constructor( override fun toString() = value.toString() } + /** Fields specific to merchant initiated transactions. */ + class MerchantInitiated + @JsonCreator(mode = JsonCreator.Mode.DISABLED) + private constructor( + private val indicator: JsonField, + private val additionalProperties: MutableMap, + ) { + + @JsonCreator + private constructor( + @JsonProperty("indicator") + @ExcludeMissing + indicator: JsonField = JsonMissing.of() + ) : this(indicator, mutableMapOf()) + + /** + * The merchant initiated indicator for the transaction. + * + * @throws IncreaseInvalidDataException if the JSON field has an unexpected type + * or is unexpectedly missing or null (e.g. if the server responded with an + * unexpected value). + */ + fun indicator(): Indicator = indicator.getRequired("indicator") + + /** + * Returns the raw JSON value of [indicator]. + * + * Unlike [indicator], this method doesn't throw if the JSON field has an + * unexpected type. + */ + @JsonProperty("indicator") + @ExcludeMissing + fun _indicator(): JsonField = indicator + + @JsonAnySetter + private fun putAdditionalProperty(key: String, value: JsonValue) { + additionalProperties.put(key, value) + } + + @JsonAnyGetter + @ExcludeMissing + fun _additionalProperties(): Map = + Collections.unmodifiableMap(additionalProperties) + + fun toBuilder() = Builder().from(this) + + companion object { + + /** + * Returns a mutable builder for constructing an instance of + * [MerchantInitiated]. + * + * The following fields are required: + * ```java + * .indicator() + * ``` + */ + @JvmStatic fun builder() = Builder() + } + + /** A builder for [MerchantInitiated]. */ + class Builder internal constructor() { + + private var indicator: JsonField? = null + private var additionalProperties: MutableMap = + mutableMapOf() + + @JvmSynthetic + internal fun from(merchantInitiated: MerchantInitiated) = apply { + indicator = merchantInitiated.indicator + additionalProperties = + merchantInitiated.additionalProperties.toMutableMap() + } + + /** The merchant initiated indicator for the transaction. */ + fun indicator(indicator: Indicator) = indicator(JsonField.of(indicator)) + + /** + * Sets [Builder.indicator] to an arbitrary JSON value. + * + * You should usually call [Builder.indicator] with a well-typed [Indicator] + * value instead. This method is primarily for setting the field to an + * undocumented or not yet supported value. + */ + fun indicator(indicator: JsonField) = apply { + this.indicator = indicator + } + + fun additionalProperties(additionalProperties: Map) = + apply { + this.additionalProperties.clear() + putAllAdditionalProperties(additionalProperties) + } + + fun putAdditionalProperty(key: String, value: JsonValue) = apply { + additionalProperties.put(key, value) + } + + fun putAllAdditionalProperties( + additionalProperties: Map + ) = apply { this.additionalProperties.putAll(additionalProperties) } + + fun removeAdditionalProperty(key: String) = apply { + additionalProperties.remove(key) + } + + fun removeAllAdditionalProperties(keys: Set) = apply { + keys.forEach(::removeAdditionalProperty) + } + + /** + * Returns an immutable instance of [MerchantInitiated]. + * + * Further updates to this [Builder] will not mutate the returned instance. + * + * The following fields are required: + * ```java + * .indicator() + * ``` + * + * @throws IllegalStateException if any required field is unset. + */ + fun build(): MerchantInitiated = + MerchantInitiated( + checkRequired("indicator", indicator), + additionalProperties.toMutableMap(), + ) + } + + private var validated: Boolean = false + + fun validate(): MerchantInitiated = apply { + if (validated) { + return@apply + } + + indicator().validate() + validated = true + } + + fun isValid(): Boolean = + try { + validate() + true + } catch (e: IncreaseInvalidDataException) { + false + } + + /** + * Returns a score indicating how many valid values are contained in this object + * recursively. + * + * Used for best match union deserialization. + */ + @JvmSynthetic + internal fun validity(): Int = + (indicator.asKnown().getOrNull()?.validity() ?: 0) + + /** The merchant initiated indicator for the transaction. */ + class Indicator + @JsonCreator + private constructor(private val value: JsonField) : Enum { + + /** + * Returns this class instance's raw value. + * + * This is usually only useful if this instance was deserialized from data + * that doesn't match any known member, and you want to know that value. For + * example, if the SDK is on an older version than the API, then the API may + * respond with new members that the SDK is unaware of. + */ + @com.fasterxml.jackson.annotation.JsonValue + fun _value(): JsonField = value + + companion object { + + /** Recurring transaction. */ + @JvmField val RECURRING_TRANSACTION = of("recurring_transaction") + + /** Installment transaction. */ + @JvmField val INSTALLMENT_TRANSACTION = of("installment_transaction") + + /** Add card. */ + @JvmField val ADD_CARD = of("add_card") + + /** Maintain card information. */ + @JvmField + val MAINTAIN_CARD_INFORMATION = of("maintain_card_information") + + /** Account verification. */ + @JvmField val ACCOUNT_VERIFICATION = of("account_verification") + + /** Split or delayed shipment. */ + @JvmField val SPLIT_DELAYED_SHIPMENT = of("split_delayed_shipment") + + /** Top up. */ + @JvmField val TOP_UP = of("top_up") + + /** Mail order. */ + @JvmField val MAIL_ORDER = of("mail_order") + + /** Telephone order. */ + @JvmField val TELEPHONE_ORDER = of("telephone_order") + + /** Whitelist status check. */ + @JvmField val WHITELIST_STATUS_CHECK = of("whitelist_status_check") + + /** Other payment. */ + @JvmField val OTHER_PAYMENT = of("other_payment") + + /** Billing agreement. */ + @JvmField val BILLING_AGREEMENT = of("billing_agreement") + + /** Device binding status check. */ + @JvmField + val DEVICE_BINDING_STATUS_CHECK = of("device_binding_status_check") + + /** Card security code status check. */ + @JvmField + val CARD_SECURITY_CODE_STATUS_CHECK = + of("card_security_code_status_check") + + /** Delayed shipment. */ + @JvmField val DELAYED_SHIPMENT = of("delayed_shipment") + + /** Split payment. */ + @JvmField val SPLIT_PAYMENT = of("split_payment") + + /** FIDO credential deletion. */ + @JvmField val FIDO_CREDENTIAL_DELETION = of("fido_credential_deletion") + + /** FIDO credential registration. */ + @JvmField + val FIDO_CREDENTIAL_REGISTRATION = of("fido_credential_registration") + + /** Decoupled authentication fallback. */ + @JvmField + val DECOUPLED_AUTHENTICATION_FALLBACK = + of("decoupled_authentication_fallback") + + @JvmStatic fun of(value: String) = Indicator(JsonField.of(value)) + } + + /** An enum containing [Indicator]'s known values. */ + enum class Known { + /** Recurring transaction. */ + RECURRING_TRANSACTION, + /** Installment transaction. */ + INSTALLMENT_TRANSACTION, + /** Add card. */ + ADD_CARD, + /** Maintain card information. */ + MAINTAIN_CARD_INFORMATION, + /** Account verification. */ + ACCOUNT_VERIFICATION, + /** Split or delayed shipment. */ + SPLIT_DELAYED_SHIPMENT, + /** Top up. */ + TOP_UP, + /** Mail order. */ + MAIL_ORDER, + /** Telephone order. */ + TELEPHONE_ORDER, + /** Whitelist status check. */ + WHITELIST_STATUS_CHECK, + /** Other payment. */ + OTHER_PAYMENT, + /** Billing agreement. */ + BILLING_AGREEMENT, + /** Device binding status check. */ + DEVICE_BINDING_STATUS_CHECK, + /** Card security code status check. */ + CARD_SECURITY_CODE_STATUS_CHECK, + /** Delayed shipment. */ + DELAYED_SHIPMENT, + /** Split payment. */ + SPLIT_PAYMENT, + /** FIDO credential deletion. */ + FIDO_CREDENTIAL_DELETION, + /** FIDO credential registration. */ + FIDO_CREDENTIAL_REGISTRATION, + /** Decoupled authentication fallback. */ + DECOUPLED_AUTHENTICATION_FALLBACK, + } + + /** + * An enum containing [Indicator]'s known values, as well as an [_UNKNOWN] + * member. + * + * An instance of [Indicator] can contain an unknown value in a couple of + * cases: + * - It was deserialized from data that doesn't match any known member. For + * example, if the SDK is on an older version than the API, then the API + * may respond with new members that the SDK is unaware of. + * - It was constructed with an arbitrary value using the [of] method. + */ + enum class Value { + /** Recurring transaction. */ + RECURRING_TRANSACTION, + /** Installment transaction. */ + INSTALLMENT_TRANSACTION, + /** Add card. */ + ADD_CARD, + /** Maintain card information. */ + MAINTAIN_CARD_INFORMATION, + /** Account verification. */ + ACCOUNT_VERIFICATION, + /** Split or delayed shipment. */ + SPLIT_DELAYED_SHIPMENT, + /** Top up. */ + TOP_UP, + /** Mail order. */ + MAIL_ORDER, + /** Telephone order. */ + TELEPHONE_ORDER, + /** Whitelist status check. */ + WHITELIST_STATUS_CHECK, + /** Other payment. */ + OTHER_PAYMENT, + /** Billing agreement. */ + BILLING_AGREEMENT, + /** Device binding status check. */ + DEVICE_BINDING_STATUS_CHECK, + /** Card security code status check. */ + CARD_SECURITY_CODE_STATUS_CHECK, + /** Delayed shipment. */ + DELAYED_SHIPMENT, + /** Split payment. */ + SPLIT_PAYMENT, + /** FIDO credential deletion. */ + FIDO_CREDENTIAL_DELETION, + /** FIDO credential registration. */ + FIDO_CREDENTIAL_REGISTRATION, + /** Decoupled authentication fallback. */ + DECOUPLED_AUTHENTICATION_FALLBACK, + /** + * An enum member indicating that [Indicator] was instantiated with an + * unknown value. + */ + _UNKNOWN, + } + + /** + * Returns an enum member corresponding to this class instance's value, or + * [Value._UNKNOWN] if the class was instantiated with an unknown value. + * + * Use the [known] method instead if you're certain the value is always + * known or if you want to throw for the unknown case. + */ + fun value(): Value = + when (this) { + RECURRING_TRANSACTION -> Value.RECURRING_TRANSACTION + INSTALLMENT_TRANSACTION -> Value.INSTALLMENT_TRANSACTION + ADD_CARD -> Value.ADD_CARD + MAINTAIN_CARD_INFORMATION -> Value.MAINTAIN_CARD_INFORMATION + ACCOUNT_VERIFICATION -> Value.ACCOUNT_VERIFICATION + SPLIT_DELAYED_SHIPMENT -> Value.SPLIT_DELAYED_SHIPMENT + TOP_UP -> Value.TOP_UP + MAIL_ORDER -> Value.MAIL_ORDER + TELEPHONE_ORDER -> Value.TELEPHONE_ORDER + WHITELIST_STATUS_CHECK -> Value.WHITELIST_STATUS_CHECK + OTHER_PAYMENT -> Value.OTHER_PAYMENT + BILLING_AGREEMENT -> Value.BILLING_AGREEMENT + DEVICE_BINDING_STATUS_CHECK -> Value.DEVICE_BINDING_STATUS_CHECK + CARD_SECURITY_CODE_STATUS_CHECK -> + Value.CARD_SECURITY_CODE_STATUS_CHECK + DELAYED_SHIPMENT -> Value.DELAYED_SHIPMENT + SPLIT_PAYMENT -> Value.SPLIT_PAYMENT + FIDO_CREDENTIAL_DELETION -> Value.FIDO_CREDENTIAL_DELETION + FIDO_CREDENTIAL_REGISTRATION -> Value.FIDO_CREDENTIAL_REGISTRATION + DECOUPLED_AUTHENTICATION_FALLBACK -> + Value.DECOUPLED_AUTHENTICATION_FALLBACK + else -> Value._UNKNOWN + } + + /** + * Returns an enum member corresponding to this class instance's value. + * + * Use the [value] method instead if you're uncertain the value is always + * known and don't want to throw for the unknown case. + * + * @throws IncreaseInvalidDataException if this class instance's value is a + * not a known member. + */ + fun known(): Known = + when (this) { + RECURRING_TRANSACTION -> Known.RECURRING_TRANSACTION + INSTALLMENT_TRANSACTION -> Known.INSTALLMENT_TRANSACTION + ADD_CARD -> Known.ADD_CARD + MAINTAIN_CARD_INFORMATION -> Known.MAINTAIN_CARD_INFORMATION + ACCOUNT_VERIFICATION -> Known.ACCOUNT_VERIFICATION + SPLIT_DELAYED_SHIPMENT -> Known.SPLIT_DELAYED_SHIPMENT + TOP_UP -> Known.TOP_UP + MAIL_ORDER -> Known.MAIL_ORDER + TELEPHONE_ORDER -> Known.TELEPHONE_ORDER + WHITELIST_STATUS_CHECK -> Known.WHITELIST_STATUS_CHECK + OTHER_PAYMENT -> Known.OTHER_PAYMENT + BILLING_AGREEMENT -> Known.BILLING_AGREEMENT + DEVICE_BINDING_STATUS_CHECK -> Known.DEVICE_BINDING_STATUS_CHECK + CARD_SECURITY_CODE_STATUS_CHECK -> + Known.CARD_SECURITY_CODE_STATUS_CHECK + DELAYED_SHIPMENT -> Known.DELAYED_SHIPMENT + SPLIT_PAYMENT -> Known.SPLIT_PAYMENT + FIDO_CREDENTIAL_DELETION -> Known.FIDO_CREDENTIAL_DELETION + FIDO_CREDENTIAL_REGISTRATION -> Known.FIDO_CREDENTIAL_REGISTRATION + DECOUPLED_AUTHENTICATION_FALLBACK -> + Known.DECOUPLED_AUTHENTICATION_FALLBACK + else -> + throw IncreaseInvalidDataException("Unknown Indicator: $value") + } + + /** + * Returns this class instance's primitive wire representation. + * + * This differs from the [toString] method because that method is primarily + * for debugging and generally doesn't throw. + * + * @throws IncreaseInvalidDataException if this class instance's value does + * not have the expected primitive type. + */ + fun asString(): String = + _value().asString().orElseThrow { + IncreaseInvalidDataException("Value is not a String") + } + + private var validated: Boolean = false + + fun validate(): Indicator = apply { + if (validated) { + return@apply + } + + known() + validated = true + } + + fun isValid(): Boolean = + try { + validate() + true + } catch (e: IncreaseInvalidDataException) { + false + } + + /** + * Returns a score indicating how many valid values are contained in this + * object recursively. + * + * Used for best match union deserialization. + */ + @JvmSynthetic + internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1 + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is Indicator && value == other.value + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() + } + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is MerchantInitiated && + indicator == other.indicator && + additionalProperties == other.additionalProperties + } + + private val hashCode: Int by lazy { + Objects.hash(indicator, additionalProperties) + } + + override fun hashCode(): Int = hashCode + + override fun toString() = + "MerchantInitiated{indicator=$indicator, additionalProperties=$additionalProperties}" + } + override fun equals(other: Any?): Boolean { if (this === other) { return true @@ -5586,17 +6713,18 @@ private constructor( return other is DeviceChannel && browser == other.browser && category == other.category && + merchantInitiated == other.merchantInitiated && additionalProperties == other.additionalProperties } private val hashCode: Int by lazy { - Objects.hash(browser, category, additionalProperties) + Objects.hash(browser, category, merchantInitiated, additionalProperties) } override fun hashCode(): Int = hashCode override fun toString() = - "DeviceChannel{browser=$browser, category=$category, additionalProperties=$additionalProperties}" + "DeviceChannel{browser=$browser, category=$category, merchantInitiated=$merchantInitiated, additionalProperties=$additionalProperties}" } /** @@ -6245,6 +7373,175 @@ private constructor( override fun toString() = value.toString() } + /** The type of transaction being authenticated. */ + class TransactionType + @JsonCreator + private constructor(private val value: JsonField) : Enum { + + /** + * Returns this class instance's raw value. + * + * This is usually only useful if this instance was deserialized from data that + * doesn't match any known member, and you want to know that value. For example, if + * the SDK is on an older version than the API, then the API may respond with new + * members that the SDK is unaware of. + */ + @com.fasterxml.jackson.annotation.JsonValue fun _value(): JsonField = value + + companion object { + + /** Purchase of goods or services. */ + @JvmField val GOODS_SERVICE_PURCHASE = of("goods_service_purchase") + + /** Check acceptance. */ + @JvmField val CHECK_ACCEPTANCE = of("check_acceptance") + + /** Account funding. */ + @JvmField val ACCOUNT_FUNDING = of("account_funding") + + /** Quasi-cash transaction. */ + @JvmField val QUASI_CASH_TRANSACTION = of("quasi_cash_transaction") + + /** Prepaid activation and load. */ + @JvmField val PREPAID_ACTIVATION_AND_LOAD = of("prepaid_activation_and_load") + + @JvmStatic fun of(value: String) = TransactionType(JsonField.of(value)) + } + + /** An enum containing [TransactionType]'s known values. */ + enum class Known { + /** Purchase of goods or services. */ + GOODS_SERVICE_PURCHASE, + /** Check acceptance. */ + CHECK_ACCEPTANCE, + /** Account funding. */ + ACCOUNT_FUNDING, + /** Quasi-cash transaction. */ + QUASI_CASH_TRANSACTION, + /** Prepaid activation and load. */ + PREPAID_ACTIVATION_AND_LOAD, + } + + /** + * An enum containing [TransactionType]'s known values, as well as an [_UNKNOWN] + * member. + * + * An instance of [TransactionType] can contain an unknown value in a couple of + * cases: + * - It was deserialized from data that doesn't match any known member. For example, + * if the SDK is on an older version than the API, then the API may respond with + * new members that the SDK is unaware of. + * - It was constructed with an arbitrary value using the [of] method. + */ + enum class Value { + /** Purchase of goods or services. */ + GOODS_SERVICE_PURCHASE, + /** Check acceptance. */ + CHECK_ACCEPTANCE, + /** Account funding. */ + ACCOUNT_FUNDING, + /** Quasi-cash transaction. */ + QUASI_CASH_TRANSACTION, + /** Prepaid activation and load. */ + PREPAID_ACTIVATION_AND_LOAD, + /** + * An enum member indicating that [TransactionType] was instantiated with an + * unknown value. + */ + _UNKNOWN, + } + + /** + * Returns an enum member corresponding to this class instance's value, or + * [Value._UNKNOWN] if the class was instantiated with an unknown value. + * + * Use the [known] method instead if you're certain the value is always known or if + * you want to throw for the unknown case. + */ + fun value(): Value = + when (this) { + GOODS_SERVICE_PURCHASE -> Value.GOODS_SERVICE_PURCHASE + CHECK_ACCEPTANCE -> Value.CHECK_ACCEPTANCE + ACCOUNT_FUNDING -> Value.ACCOUNT_FUNDING + QUASI_CASH_TRANSACTION -> Value.QUASI_CASH_TRANSACTION + PREPAID_ACTIVATION_AND_LOAD -> Value.PREPAID_ACTIVATION_AND_LOAD + else -> Value._UNKNOWN + } + + /** + * Returns an enum member corresponding to this class instance's value. + * + * Use the [value] method instead if you're uncertain the value is always known and + * don't want to throw for the unknown case. + * + * @throws IncreaseInvalidDataException if this class instance's value is a not a + * known member. + */ + fun known(): Known = + when (this) { + GOODS_SERVICE_PURCHASE -> Known.GOODS_SERVICE_PURCHASE + CHECK_ACCEPTANCE -> Known.CHECK_ACCEPTANCE + ACCOUNT_FUNDING -> Known.ACCOUNT_FUNDING + QUASI_CASH_TRANSACTION -> Known.QUASI_CASH_TRANSACTION + PREPAID_ACTIVATION_AND_LOAD -> Known.PREPAID_ACTIVATION_AND_LOAD + else -> + throw IncreaseInvalidDataException("Unknown TransactionType: $value") + } + + /** + * Returns this class instance's primitive wire representation. + * + * This differs from the [toString] method because that method is primarily for + * debugging and generally doesn't throw. + * + * @throws IncreaseInvalidDataException if this class instance's value does not have + * the expected primitive type. + */ + fun asString(): String = + _value().asString().orElseThrow { + IncreaseInvalidDataException("Value is not a String") + } + + private var validated: Boolean = false + + fun validate(): TransactionType = apply { + if (validated) { + return@apply + } + + known() + validated = true + } + + fun isValid(): Boolean = + try { + validate() + true + } catch (e: IncreaseInvalidDataException) { + false + } + + /** + * Returns a score indicating how many valid values are contained in this object + * recursively. + * + * Used for best match union deserialization. + */ + @JvmSynthetic internal fun validity(): Int = if (value() == Value._UNKNOWN) 0 else 1 + + override fun equals(other: Any?): Boolean { + if (this === other) { + return true + } + + return other is TransactionType && value == other.value + } + + override fun hashCode() = value.hashCode() + + override fun toString() = value.toString() + } + /** * A constant representing the object's type. For this resource it will always be * `card_authentication`. @@ -6380,6 +7677,7 @@ private constructor( return other is CardAuthentication && id == other.id && + accessControlServerTransactionId == other.accessControlServerTransactionId && billingAddressCity == other.billingAddressCity && billingAddressCountry == other.billingAddressCountry && billingAddressLine1 == other.billingAddressLine1 && @@ -6396,6 +7694,7 @@ private constructor( createdAt == other.createdAt && denyReason == other.denyReason && deviceChannel == other.deviceChannel && + directoryServerTransactionId == other.directoryServerTransactionId && merchantAcceptorId == other.merchantAcceptorId && merchantCategoryCode == other.merchantCategoryCode && merchantCountry == other.merchantCountry && @@ -6408,7 +7707,16 @@ private constructor( requestorChallengeIndicator == other.requestorChallengeIndicator && requestorName == other.requestorName && requestorUrl == other.requestorUrl && + shippingAddressCity == other.shippingAddressCity && + shippingAddressCountry == other.shippingAddressCountry && + shippingAddressLine1 == other.shippingAddressLine1 && + shippingAddressLine2 == other.shippingAddressLine2 && + shippingAddressLine3 == other.shippingAddressLine3 && + shippingAddressPostalCode == other.shippingAddressPostalCode && + shippingAddressState == other.shippingAddressState && status == other.status && + threeDSecureServerTransactionId == other.threeDSecureServerTransactionId && + transactionType == other.transactionType && type == other.type && additionalProperties == other.additionalProperties } @@ -6416,6 +7724,7 @@ private constructor( private val hashCode: Int by lazy { Objects.hash( id, + accessControlServerTransactionId, billingAddressCity, billingAddressCountry, billingAddressLine1, @@ -6432,6 +7741,7 @@ private constructor( createdAt, denyReason, deviceChannel, + directoryServerTransactionId, merchantAcceptorId, merchantCategoryCode, merchantCountry, @@ -6444,7 +7754,16 @@ private constructor( requestorChallengeIndicator, requestorName, requestorUrl, + shippingAddressCity, + shippingAddressCountry, + shippingAddressLine1, + shippingAddressLine2, + shippingAddressLine3, + shippingAddressPostalCode, + shippingAddressState, status, + threeDSecureServerTransactionId, + transactionType, type, additionalProperties, ) @@ -6453,7 +7772,7 @@ private constructor( override fun hashCode(): Int = hashCode override fun toString() = - "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, priorCardAuthenticationId=$priorCardAuthenticationId, purchaseAmount=$purchaseAmount, purchaseCurrency=$purchaseCurrency, realTimeDecisionId=$realTimeDecisionId, requestorAuthenticationIndicator=$requestorAuthenticationIndicator, requestorChallengeIndicator=$requestorChallengeIndicator, requestorName=$requestorName, requestorUrl=$requestorUrl, status=$status, type=$type, additionalProperties=$additionalProperties}" + "CardAuthentication{id=$id, accessControlServerTransactionId=$accessControlServerTransactionId, 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, directoryServerTransactionId=$directoryServerTransactionId, merchantAcceptorId=$merchantAcceptorId, merchantCategoryCode=$merchantCategoryCode, merchantCountry=$merchantCountry, merchantName=$merchantName, priorCardAuthenticationId=$priorCardAuthenticationId, purchaseAmount=$purchaseAmount, purchaseCurrency=$purchaseCurrency, realTimeDecisionId=$realTimeDecisionId, requestorAuthenticationIndicator=$requestorAuthenticationIndicator, requestorChallengeIndicator=$requestorChallengeIndicator, requestorName=$requestorName, requestorUrl=$requestorUrl, shippingAddressCity=$shippingAddressCity, shippingAddressCountry=$shippingAddressCountry, shippingAddressLine1=$shippingAddressLine1, shippingAddressLine2=$shippingAddressLine2, shippingAddressLine3=$shippingAddressLine3, shippingAddressPostalCode=$shippingAddressPostalCode, shippingAddressState=$shippingAddressState, status=$status, threeDSecureServerTransactionId=$threeDSecureServerTransactionId, transactionType=$transactionType, 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 176c611ac..c67dceb95 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,6 +30,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -111,8 +114,26 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element + .CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -133,10 +154,25 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication + .TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -2142,6 +2178,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -2223,8 +2262,26 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element + .CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -2245,10 +2302,25 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication + .TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -4254,6 +4326,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -4335,8 +4410,26 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element + .CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -4357,10 +4450,25 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication + .TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -6366,6 +6474,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -6447,8 +6558,26 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element + .CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -6469,10 +6598,25 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication + .TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -8520,6 +8664,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -8597,8 +8744,25 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -8619,10 +8783,24 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -10514,6 +10692,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -10591,8 +10772,25 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -10613,10 +10811,24 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -12508,6 +12720,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -12585,8 +12800,25 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -12607,10 +12839,24 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -14502,6 +14748,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -14579,8 +14828,25 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -14601,10 +14867,24 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -16540,6 +16820,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -16621,8 +16904,26 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element + .CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -16643,10 +16944,25 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication + .TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -18652,6 +18968,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -18733,8 +19052,26 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element + .CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -18755,10 +19092,25 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication + .TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -20764,6 +21116,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -20845,8 +21200,26 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element + .CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -20867,10 +21240,25 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication + .TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -22876,6 +23264,9 @@ internal class CardPaymentListPageResponseTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -22957,8 +23348,26 @@ internal class CardPaymentListPageResponseTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element + .CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -22979,10 +23388,25 @@ internal class CardPaymentListPageResponseTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication + .TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_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 304be8897..76de360e9 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,6 +28,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -98,8 +101,24 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -120,10 +139,24 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -1900,6 +1933,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -1970,8 +2006,24 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -1992,10 +2044,24 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -3772,6 +3838,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -3842,8 +3911,24 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -3864,10 +3949,24 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -5644,6 +5743,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -5714,8 +5816,24 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -5736,10 +5854,24 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -7550,6 +7682,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -7613,8 +7748,21 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId("8990a978-5eb2-4440-8539-5619e24b0b0d") .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -7634,9 +7782,21 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status.VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId("6839e1b0-dcae-482d-8166-40e44dd0d8cd") + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type(CardPayment.Element.CardAuthentication.Type.CARD_AUTHENTICATION) .build() ) @@ -9231,6 +9391,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -9294,8 +9457,21 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId("8990a978-5eb2-4440-8539-5619e24b0b0d") .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -9315,9 +9491,21 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status.VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId("6839e1b0-dcae-482d-8166-40e44dd0d8cd") + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type(CardPayment.Element.CardAuthentication.Type.CARD_AUTHENTICATION) .build() ) @@ -10912,6 +11100,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -10975,8 +11166,21 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId("8990a978-5eb2-4440-8539-5619e24b0b0d") .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -10996,9 +11200,21 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status.VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId("6839e1b0-dcae-482d-8166-40e44dd0d8cd") + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type(CardPayment.Element.CardAuthentication.Type.CARD_AUTHENTICATION) .build() ) @@ -12593,6 +12809,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -12656,8 +12875,21 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId("8990a978-5eb2-4440-8539-5619e24b0b0d") .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -12677,9 +12909,21 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status.VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId("6839e1b0-dcae-482d-8166-40e44dd0d8cd") + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type(CardPayment.Element.CardAuthentication.Type.CARD_AUTHENTICATION) .build() ) @@ -14314,6 +14558,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -14384,8 +14631,24 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -14406,10 +14669,24 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -16186,6 +16463,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -16256,8 +16536,24 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -16278,10 +16574,24 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -18058,6 +18368,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -18128,8 +18441,24 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -18150,10 +18479,24 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION @@ -19930,6 +20273,9 @@ internal class CardPaymentTest { .cardAuthentication( CardPayment.Element.CardAuthentication.builder() .id("card_authentication_xft30xjdubptlgrxboch") + .accessControlServerTransactionId( + "1a628378-4d43-4438-a31f-25c0e1bf2537" + ) .billingAddressCity("New York") .billingAddressCountry("US") .billingAddressLine1("33 Liberty Street") @@ -20000,8 +20346,24 @@ internal class CardPaymentTest { .Category .BROWSER ) + .merchantInitiated( + CardPayment.Element.CardAuthentication.DeviceChannel + .MerchantInitiated + .builder() + .indicator( + CardPayment.Element.CardAuthentication + .DeviceChannel + .MerchantInitiated + .Indicator + .RECURRING_TRANSACTION + ) + .build() + ) .build() ) + .directoryServerTransactionId( + "8990a978-5eb2-4440-8539-5619e24b0b0d" + ) .merchantAcceptorId("5665270011000168") .merchantCategoryCode("5734") .merchantCountry("US") @@ -20022,10 +20384,24 @@ internal class CardPaymentTest { ) .requestorName("Example Requestor") .requestorUrl("https://example.com") + .shippingAddressCity("New York") + .shippingAddressCountry("US") + .shippingAddressLine1("33 Liberty Street") + .shippingAddressLine2(null) + .shippingAddressLine3(null) + .shippingAddressPostalCode("10045") + .shippingAddressState("NY") .status( CardPayment.Element.CardAuthentication.Status .VALIDATING_CHALLENGE ) + .threeDSecureServerTransactionId( + "6839e1b0-dcae-482d-8166-40e44dd0d8cd" + ) + .transactionType( + CardPayment.Element.CardAuthentication.TransactionType + .GOODS_SERVICE_PURCHASE + ) .type( CardPayment.Element.CardAuthentication.Type .CARD_AUTHENTICATION