Skip to content

Commit 1a412bd

Browse files
feat(api): api update
1 parent 6abc64c commit 1a412bd

File tree

10 files changed

+163
-5
lines changed

10 files changed

+163
-5
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 227
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e32ea60c7028faaf552e2846c9a58f838b16922041d551664dcb1bfa343f38cf.yml
3-
openapi_spec_hash: 8d3acf560b411999fee65eedda9e6a73
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9e8b4907003e0149ea10d8c95b2facfbc011f366cea40fe86b5f02940e68998d.yml
3+
openapi_spec_hash: e93ee5c48421038334b8961b303465d6
44
config_hash: ca52ca9a2968f330339fd50c1a386e05

increase-java-core/src/main/kotlin/com/increase/api/models/carddisputes/CardDispute.kt

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35652,6 +35652,7 @@ private constructor(
3565235652
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
3565335653
private constructor(
3565435654
private val cardholderCancellation: JsonField<CardholderCancellation>,
35655+
private val explanation: JsonField<String>,
3565535656
private val merchantResolutionAttempted: JsonField<MerchantResolutionAttempted>,
3565635657
private val receivedAt: JsonField<LocalDate>,
3565735658
private val additionalProperties: MutableMap<String, JsonValue>,
@@ -35663,6 +35664,9 @@ private constructor(
3566335664
@ExcludeMissing
3566435665
cardholderCancellation: JsonField<CardholderCancellation> =
3566535666
JsonMissing.of(),
35667+
@JsonProperty("explanation")
35668+
@ExcludeMissing
35669+
explanation: JsonField<String> = JsonMissing.of(),
3566635670
@JsonProperty("merchant_resolution_attempted")
3566735671
@ExcludeMissing
3566835672
merchantResolutionAttempted: JsonField<MerchantResolutionAttempted> =
@@ -35672,6 +35676,7 @@ private constructor(
3567235676
receivedAt: JsonField<LocalDate> = JsonMissing.of(),
3567335677
) : this(
3567435678
cardholderCancellation,
35679+
explanation,
3567535680
merchantResolutionAttempted,
3567635681
receivedAt,
3567735682
mutableMapOf(),
@@ -35687,6 +35692,15 @@ private constructor(
3568735692
fun cardholderCancellation(): CardholderCancellation =
3568835693
cardholderCancellation.getRequired("cardholder_cancellation")
3568935694

35695+
/**
35696+
* Explanation of what was ordered and was not as described.
35697+
*
35698+
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type
35699+
* or is unexpectedly missing or null (e.g. if the server responded with an
35700+
* unexpected value).
35701+
*/
35702+
fun explanation(): String = explanation.getRequired("explanation")
35703+
3569035704
/**
3569135705
* Merchant resolution attempted.
3569235706
*
@@ -35717,6 +35731,16 @@ private constructor(
3571735731
fun _cardholderCancellation(): JsonField<CardholderCancellation> =
3571835732
cardholderCancellation
3571935733

35734+
/**
35735+
* Returns the raw JSON value of [explanation].
35736+
*
35737+
* Unlike [explanation], this method doesn't throw if the JSON field has an
35738+
* unexpected type.
35739+
*/
35740+
@JsonProperty("explanation")
35741+
@ExcludeMissing
35742+
fun _explanation(): JsonField<String> = explanation
35743+
3572035744
/**
3572135745
* Returns the raw JSON value of [merchantResolutionAttempted].
3572235746
*
@@ -35759,6 +35783,7 @@ private constructor(
3575935783
* The following fields are required:
3576035784
* ```java
3576135785
* .cardholderCancellation()
35786+
* .explanation()
3576235787
* .merchantResolutionAttempted()
3576335788
* .receivedAt()
3576435789
* ```
@@ -35771,6 +35796,7 @@ private constructor(
3577135796

3577235797
private var cardholderCancellation: JsonField<CardholderCancellation>? =
3577335798
null
35799+
private var explanation: JsonField<String>? = null
3577435800
private var merchantResolutionAttempted:
3577535801
JsonField<MerchantResolutionAttempted>? =
3577635802
null
@@ -35784,6 +35810,7 @@ private constructor(
3578435810
) = apply {
3578535811
cardholderCancellation =
3578635812
consumerServicesNotAsDescribed.cardholderCancellation
35813+
explanation = consumerServicesNotAsDescribed.explanation
3578735814
merchantResolutionAttempted =
3578835815
consumerServicesNotAsDescribed.merchantResolutionAttempted
3578935816
receivedAt = consumerServicesNotAsDescribed.receivedAt
@@ -35807,6 +35834,21 @@ private constructor(
3580735834
cardholderCancellation: JsonField<CardholderCancellation>
3580835835
) = apply { this.cardholderCancellation = cardholderCancellation }
3580935836

35837+
/** Explanation of what was ordered and was not as described. */
35838+
fun explanation(explanation: String) =
35839+
explanation(JsonField.of(explanation))
35840+
35841+
/**
35842+
* Sets [Builder.explanation] to an arbitrary JSON value.
35843+
*
35844+
* You should usually call [Builder.explanation] with a well-typed [String]
35845+
* value instead. This method is primarily for setting the field to an
35846+
* undocumented or not yet supported value.
35847+
*/
35848+
fun explanation(explanation: JsonField<String>) = apply {
35849+
this.explanation = explanation
35850+
}
35851+
3581035852
/** Merchant resolution attempted. */
3581135853
fun merchantResolutionAttempted(
3581235854
merchantResolutionAttempted: MerchantResolutionAttempted
@@ -35868,6 +35910,7 @@ private constructor(
3586835910
* The following fields are required:
3586935911
* ```java
3587035912
* .cardholderCancellation()
35913+
* .explanation()
3587135914
* .merchantResolutionAttempted()
3587235915
* .receivedAt()
3587335916
* ```
@@ -35877,6 +35920,7 @@ private constructor(
3587735920
fun build(): ConsumerServicesNotAsDescribed =
3587835921
ConsumerServicesNotAsDescribed(
3587935922
checkRequired("cardholderCancellation", cardholderCancellation),
35923+
checkRequired("explanation", explanation),
3588035924
checkRequired(
3588135925
"merchantResolutionAttempted",
3588235926
merchantResolutionAttempted,
@@ -35894,6 +35938,7 @@ private constructor(
3589435938
}
3589535939

3589635940
cardholderCancellation().validate()
35941+
explanation()
3589735942
merchantResolutionAttempted().validate()
3589835943
receivedAt()
3589935944
validated = true
@@ -35916,6 +35961,7 @@ private constructor(
3591635961
@JvmSynthetic
3591735962
internal fun validity(): Int =
3591835963
(cardholderCancellation.asKnown().getOrNull()?.validity() ?: 0) +
35964+
(if (explanation.asKnown().isPresent) 1 else 0) +
3591935965
(merchantResolutionAttempted.asKnown().getOrNull()?.validity() ?: 0) +
3592035966
(if (receivedAt.asKnown().isPresent) 1 else 0)
3592135967

@@ -36499,6 +36545,7 @@ private constructor(
3649936545

3650036546
return other is ConsumerServicesNotAsDescribed &&
3650136547
cardholderCancellation == other.cardholderCancellation &&
36548+
explanation == other.explanation &&
3650236549
merchantResolutionAttempted == other.merchantResolutionAttempted &&
3650336550
receivedAt == other.receivedAt &&
3650436551
additionalProperties == other.additionalProperties
@@ -36507,6 +36554,7 @@ private constructor(
3650736554
private val hashCode: Int by lazy {
3650836555
Objects.hash(
3650936556
cardholderCancellation,
36557+
explanation,
3651036558
merchantResolutionAttempted,
3651136559
receivedAt,
3651236560
additionalProperties,
@@ -36516,7 +36564,7 @@ private constructor(
3651636564
override fun hashCode(): Int = hashCode
3651736565

3651836566
override fun toString() =
36519-
"ConsumerServicesNotAsDescribed{cardholderCancellation=$cardholderCancellation, merchantResolutionAttempted=$merchantResolutionAttempted, receivedAt=$receivedAt, additionalProperties=$additionalProperties}"
36567+
"ConsumerServicesNotAsDescribed{cardholderCancellation=$cardholderCancellation, explanation=$explanation, merchantResolutionAttempted=$merchantResolutionAttempted, receivedAt=$receivedAt, additionalProperties=$additionalProperties}"
3652036568
}
3652136569

3652236570
/**

increase-java-core/src/main/kotlin/com/increase/api/models/carddisputes/CardDisputeCreateParams.kt

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22584,6 +22584,7 @@ private constructor(
2258422584
@JsonCreator(mode = JsonCreator.Mode.DISABLED)
2258522585
private constructor(
2258622586
private val cardholderCancellation: JsonField<CardholderCancellation>,
22587+
private val explanation: JsonField<String>,
2258722588
private val merchantResolutionAttempted: JsonField<MerchantResolutionAttempted>,
2258822589
private val receivedAt: JsonField<LocalDate>,
2258922590
private val additionalProperties: MutableMap<String, JsonValue>,
@@ -22594,6 +22595,9 @@ private constructor(
2259422595
@JsonProperty("cardholder_cancellation")
2259522596
@ExcludeMissing
2259622597
cardholderCancellation: JsonField<CardholderCancellation> = JsonMissing.of(),
22598+
@JsonProperty("explanation")
22599+
@ExcludeMissing
22600+
explanation: JsonField<String> = JsonMissing.of(),
2259722601
@JsonProperty("merchant_resolution_attempted")
2259822602
@ExcludeMissing
2259922603
merchantResolutionAttempted: JsonField<MerchantResolutionAttempted> =
@@ -22603,6 +22607,7 @@ private constructor(
2260322607
receivedAt: JsonField<LocalDate> = JsonMissing.of(),
2260422608
) : this(
2260522609
cardholderCancellation,
22610+
explanation,
2260622611
merchantResolutionAttempted,
2260722612
receivedAt,
2260822613
mutableMapOf(),
@@ -22618,6 +22623,15 @@ private constructor(
2261822623
fun cardholderCancellation(): CardholderCancellation =
2261922624
cardholderCancellation.getRequired("cardholder_cancellation")
2262022625

22626+
/**
22627+
* Explanation of what was ordered and was not as described.
22628+
*
22629+
* @throws IncreaseInvalidDataException if the JSON field has an unexpected type or is
22630+
* unexpectedly missing or null (e.g. if the server responded with an unexpected
22631+
* value).
22632+
*/
22633+
fun explanation(): String = explanation.getRequired("explanation")
22634+
2262122635
/**
2262222636
* Merchant resolution attempted.
2262322637
*
@@ -22648,6 +22662,16 @@ private constructor(
2264822662
fun _cardholderCancellation(): JsonField<CardholderCancellation> =
2264922663
cardholderCancellation
2265022664

22665+
/**
22666+
* Returns the raw JSON value of [explanation].
22667+
*
22668+
* Unlike [explanation], this method doesn't throw if the JSON field has an unexpected
22669+
* type.
22670+
*/
22671+
@JsonProperty("explanation")
22672+
@ExcludeMissing
22673+
fun _explanation(): JsonField<String> = explanation
22674+
2265122675
/**
2265222676
* Returns the raw JSON value of [merchantResolutionAttempted].
2265322677
*
@@ -22690,6 +22714,7 @@ private constructor(
2269022714
* The following fields are required:
2269122715
* ```java
2269222716
* .cardholderCancellation()
22717+
* .explanation()
2269322718
* .merchantResolutionAttempted()
2269422719
* .receivedAt()
2269522720
* ```
@@ -22701,6 +22726,7 @@ private constructor(
2270122726
class Builder internal constructor() {
2270222727

2270322728
private var cardholderCancellation: JsonField<CardholderCancellation>? = null
22729+
private var explanation: JsonField<String>? = null
2270422730
private var merchantResolutionAttempted: JsonField<MerchantResolutionAttempted>? =
2270522731
null
2270622732
private var receivedAt: JsonField<LocalDate>? = null
@@ -22711,6 +22737,7 @@ private constructor(
2271122737
apply {
2271222738
cardholderCancellation =
2271322739
consumerServicesNotAsDescribed.cardholderCancellation
22740+
explanation = consumerServicesNotAsDescribed.explanation
2271422741
merchantResolutionAttempted =
2271522742
consumerServicesNotAsDescribed.merchantResolutionAttempted
2271622743
receivedAt = consumerServicesNotAsDescribed.receivedAt
@@ -22733,6 +22760,20 @@ private constructor(
2273322760
cardholderCancellation: JsonField<CardholderCancellation>
2273422761
) = apply { this.cardholderCancellation = cardholderCancellation }
2273522762

22763+
/** Explanation of what was ordered and was not as described. */
22764+
fun explanation(explanation: String) = explanation(JsonField.of(explanation))
22765+
22766+
/**
22767+
* Sets [Builder.explanation] to an arbitrary JSON value.
22768+
*
22769+
* You should usually call [Builder.explanation] with a well-typed [String] value
22770+
* instead. This method is primarily for setting the field to an undocumented or not
22771+
* yet supported value.
22772+
*/
22773+
fun explanation(explanation: JsonField<String>) = apply {
22774+
this.explanation = explanation
22775+
}
22776+
2273622777
/** Merchant resolution attempted. */
2273722778
fun merchantResolutionAttempted(
2273822779
merchantResolutionAttempted: MerchantResolutionAttempted
@@ -22793,6 +22834,7 @@ private constructor(
2279322834
* The following fields are required:
2279422835
* ```java
2279522836
* .cardholderCancellation()
22837+
* .explanation()
2279622838
* .merchantResolutionAttempted()
2279722839
* .receivedAt()
2279822840
* ```
@@ -22802,6 +22844,7 @@ private constructor(
2280222844
fun build(): ConsumerServicesNotAsDescribed =
2280322845
ConsumerServicesNotAsDescribed(
2280422846
checkRequired("cardholderCancellation", cardholderCancellation),
22847+
checkRequired("explanation", explanation),
2280522848
checkRequired("merchantResolutionAttempted", merchantResolutionAttempted),
2280622849
checkRequired("receivedAt", receivedAt),
2280722850
additionalProperties.toMutableMap(),
@@ -22816,6 +22859,7 @@ private constructor(
2281622859
}
2281722860

2281822861
cardholderCancellation().validate()
22862+
explanation()
2281922863
merchantResolutionAttempted().validate()
2282022864
receivedAt()
2282122865
validated = true
@@ -22838,6 +22882,7 @@ private constructor(
2283822882
@JvmSynthetic
2283922883
internal fun validity(): Int =
2284022884
(cardholderCancellation.asKnown().getOrNull()?.validity() ?: 0) +
22885+
(if (explanation.asKnown().isPresent) 1 else 0) +
2284122886
(merchantResolutionAttempted.asKnown().getOrNull()?.validity() ?: 0) +
2284222887
(if (receivedAt.asKnown().isPresent) 1 else 0)
2284322888

@@ -23405,6 +23450,7 @@ private constructor(
2340523450

2340623451
return other is ConsumerServicesNotAsDescribed &&
2340723452
cardholderCancellation == other.cardholderCancellation &&
23453+
explanation == other.explanation &&
2340823454
merchantResolutionAttempted == other.merchantResolutionAttempted &&
2340923455
receivedAt == other.receivedAt &&
2341023456
additionalProperties == other.additionalProperties
@@ -23413,6 +23459,7 @@ private constructor(
2341323459
private val hashCode: Int by lazy {
2341423460
Objects.hash(
2341523461
cardholderCancellation,
23462+
explanation,
2341623463
merchantResolutionAttempted,
2341723464
receivedAt,
2341823465
additionalProperties,
@@ -23422,7 +23469,7 @@ private constructor(
2342223469
override fun hashCode(): Int = hashCode
2342323470

2342423471
override fun toString() =
23425-
"ConsumerServicesNotAsDescribed{cardholderCancellation=$cardholderCancellation, merchantResolutionAttempted=$merchantResolutionAttempted, receivedAt=$receivedAt, additionalProperties=$additionalProperties}"
23472+
"ConsumerServicesNotAsDescribed{cardholderCancellation=$cardholderCancellation, explanation=$explanation, merchantResolutionAttempted=$merchantResolutionAttempted, receivedAt=$receivedAt, additionalProperties=$additionalProperties}"
2342623473
}
2342723474

2342823475
/**

0 commit comments

Comments
 (0)