Skip to content

Commit 6040598

Browse files
feat(api): add payment_details
fix(api): fix oneOf -> anyOf in account holder update
1 parent ea05274 commit 6040598

File tree

10 files changed

+74
-444
lines changed

10 files changed

+74
-444
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: 168
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-fceec607fd66c8b227edc9f52ca348a906855f9aa1b0727f5eeb9f5975889e91.yml
3-
openapi_spec_hash: 759ede618594b93833ca93a34b97a11f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-2cfd81dfd3ad2c5a4e98161e54dbac5ddee125c058f9163f29aad4632cadf08d.yml
3+
openapi_spec_hash: 400a2563ad969fba47b3eb0f02372b1e
44
config_hash: f5a16e702bac54729afed6e50b0de3ff

lithic-java-core/src/main/kotlin/com/lithic/api/models/LoanTape.kt

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2754,6 +2754,7 @@ private constructor(
27542754
private val purchases: JsonField<Long>,
27552755
private val creditDetails: JsonValue,
27562756
private val debitDetails: JsonValue,
2757+
private val paymentDetails: JsonValue,
27572758
private val additionalProperties: MutableMap<String, JsonValue>,
27582759
) {
27592760

@@ -2779,6 +2780,9 @@ private constructor(
27792780
@JsonProperty("debit_details")
27802781
@ExcludeMissing
27812782
debitDetails: JsonValue = JsonMissing.of(),
2783+
@JsonProperty("payment_details")
2784+
@ExcludeMissing
2785+
paymentDetails: JsonValue = JsonMissing.of(),
27822786
) : this(
27832787
balanceTransfers,
27842788
cashAdvances,
@@ -2790,6 +2794,7 @@ private constructor(
27902794
purchases,
27912795
creditDetails,
27922796
debitDetails,
2797+
paymentDetails,
27932798
mutableMapOf(),
27942799
)
27952800

@@ -2865,6 +2870,11 @@ private constructor(
28652870
/** Breakdown of debits */
28662871
@JsonProperty("debit_details") @ExcludeMissing fun _debitDetails(): JsonValue = debitDetails
28672872

2873+
/** Breakdown of payments */
2874+
@JsonProperty("payment_details")
2875+
@ExcludeMissing
2876+
fun _paymentDetails(): JsonValue = paymentDetails
2877+
28682878
/**
28692879
* Returns the raw JSON value of [balanceTransfers].
28702880
*
@@ -2972,6 +2982,7 @@ private constructor(
29722982
private var purchases: JsonField<Long>? = null
29732983
private var creditDetails: JsonValue = JsonMissing.of()
29742984
private var debitDetails: JsonValue = JsonMissing.of()
2985+
private var paymentDetails: JsonValue = JsonMissing.of()
29752986
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
29762987

29772988
@JvmSynthetic
@@ -2986,6 +2997,7 @@ private constructor(
29862997
purchases = statementTotals.purchases
29872998
creditDetails = statementTotals.creditDetails
29882999
debitDetails = statementTotals.debitDetails
3000+
paymentDetails = statementTotals.paymentDetails
29893001
additionalProperties = statementTotals.additionalProperties.toMutableMap()
29903002
}
29913003

@@ -3101,6 +3113,11 @@ private constructor(
31013113
/** Breakdown of debits */
31023114
fun debitDetails(debitDetails: JsonValue) = apply { this.debitDetails = debitDetails }
31033115

3116+
/** Breakdown of payments */
3117+
fun paymentDetails(paymentDetails: JsonValue) = apply {
3118+
this.paymentDetails = paymentDetails
3119+
}
3120+
31043121
fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
31053122
this.additionalProperties.clear()
31063123
putAllAdditionalProperties(additionalProperties)
@@ -3151,6 +3168,7 @@ private constructor(
31513168
checkRequired("purchases", purchases),
31523169
creditDetails,
31533170
debitDetails,
3171+
paymentDetails,
31543172
additionalProperties.toMutableMap(),
31553173
)
31563174
}
@@ -3214,6 +3232,7 @@ private constructor(
32143232
purchases == other.purchases &&
32153233
creditDetails == other.creditDetails &&
32163234
debitDetails == other.debitDetails &&
3235+
paymentDetails == other.paymentDetails &&
32173236
additionalProperties == other.additionalProperties
32183237
}
32193238

@@ -3229,14 +3248,15 @@ private constructor(
32293248
purchases,
32303249
creditDetails,
32313250
debitDetails,
3251+
paymentDetails,
32323252
additionalProperties,
32333253
)
32343254
}
32353255

32363256
override fun hashCode(): Int = hashCode
32373257

32383258
override fun toString() =
3239-
"StatementTotals{balanceTransfers=$balanceTransfers, cashAdvances=$cashAdvances, credits=$credits, debits=$debits, fees=$fees, interest=$interest, payments=$payments, purchases=$purchases, creditDetails=$creditDetails, debitDetails=$debitDetails, additionalProperties=$additionalProperties}"
3259+
"StatementTotals{balanceTransfers=$balanceTransfers, cashAdvances=$cashAdvances, credits=$credits, debits=$debits, fees=$fees, interest=$interest, payments=$payments, purchases=$purchases, creditDetails=$creditDetails, debitDetails=$debitDetails, paymentDetails=$paymentDetails, additionalProperties=$additionalProperties}"
32403260
}
32413261

32423262
class InterestDetails

lithic-java-core/src/main/kotlin/com/lithic/api/models/Statement.kt

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2399,6 +2399,7 @@ private constructor(
23992399
private val purchases: JsonField<Long>,
24002400
private val creditDetails: JsonValue,
24012401
private val debitDetails: JsonValue,
2402+
private val paymentDetails: JsonValue,
24022403
private val additionalProperties: MutableMap<String, JsonValue>,
24032404
) {
24042405

@@ -2424,6 +2425,9 @@ private constructor(
24242425
@JsonProperty("debit_details")
24252426
@ExcludeMissing
24262427
debitDetails: JsonValue = JsonMissing.of(),
2428+
@JsonProperty("payment_details")
2429+
@ExcludeMissing
2430+
paymentDetails: JsonValue = JsonMissing.of(),
24272431
) : this(
24282432
balanceTransfers,
24292433
cashAdvances,
@@ -2435,6 +2439,7 @@ private constructor(
24352439
purchases,
24362440
creditDetails,
24372441
debitDetails,
2442+
paymentDetails,
24382443
mutableMapOf(),
24392444
)
24402445

@@ -2510,6 +2515,11 @@ private constructor(
25102515
/** Breakdown of debits */
25112516
@JsonProperty("debit_details") @ExcludeMissing fun _debitDetails(): JsonValue = debitDetails
25122517

2518+
/** Breakdown of payments */
2519+
@JsonProperty("payment_details")
2520+
@ExcludeMissing
2521+
fun _paymentDetails(): JsonValue = paymentDetails
2522+
25132523
/**
25142524
* Returns the raw JSON value of [balanceTransfers].
25152525
*
@@ -2617,6 +2627,7 @@ private constructor(
26172627
private var purchases: JsonField<Long>? = null
26182628
private var creditDetails: JsonValue = JsonMissing.of()
26192629
private var debitDetails: JsonValue = JsonMissing.of()
2630+
private var paymentDetails: JsonValue = JsonMissing.of()
26202631
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
26212632

26222633
@JvmSynthetic
@@ -2631,6 +2642,7 @@ private constructor(
26312642
purchases = statementTotals.purchases
26322643
creditDetails = statementTotals.creditDetails
26332644
debitDetails = statementTotals.debitDetails
2645+
paymentDetails = statementTotals.paymentDetails
26342646
additionalProperties = statementTotals.additionalProperties.toMutableMap()
26352647
}
26362648

@@ -2746,6 +2758,11 @@ private constructor(
27462758
/** Breakdown of debits */
27472759
fun debitDetails(debitDetails: JsonValue) = apply { this.debitDetails = debitDetails }
27482760

2761+
/** Breakdown of payments */
2762+
fun paymentDetails(paymentDetails: JsonValue) = apply {
2763+
this.paymentDetails = paymentDetails
2764+
}
2765+
27492766
fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
27502767
this.additionalProperties.clear()
27512768
putAllAdditionalProperties(additionalProperties)
@@ -2796,6 +2813,7 @@ private constructor(
27962813
checkRequired("purchases", purchases),
27972814
creditDetails,
27982815
debitDetails,
2816+
paymentDetails,
27992817
additionalProperties.toMutableMap(),
28002818
)
28012819
}
@@ -2859,6 +2877,7 @@ private constructor(
28592877
purchases == other.purchases &&
28602878
creditDetails == other.creditDetails &&
28612879
debitDetails == other.debitDetails &&
2880+
paymentDetails == other.paymentDetails &&
28622881
additionalProperties == other.additionalProperties
28632882
}
28642883

@@ -2874,14 +2893,15 @@ private constructor(
28742893
purchases,
28752894
creditDetails,
28762895
debitDetails,
2896+
paymentDetails,
28772897
additionalProperties,
28782898
)
28792899
}
28802900

28812901
override fun hashCode(): Int = hashCode
28822902

28832903
override fun toString() =
2884-
"StatementTotals{balanceTransfers=$balanceTransfers, cashAdvances=$cashAdvances, credits=$credits, debits=$debits, fees=$fees, interest=$interest, payments=$payments, purchases=$purchases, creditDetails=$creditDetails, debitDetails=$debitDetails, additionalProperties=$additionalProperties}"
2904+
"StatementTotals{balanceTransfers=$balanceTransfers, cashAdvances=$cashAdvances, credits=$credits, debits=$debits, fees=$fees, interest=$interest, payments=$payments, purchases=$purchases, creditDetails=$creditDetails, debitDetails=$debitDetails, paymentDetails=$paymentDetails, additionalProperties=$additionalProperties}"
28852905
}
28862906

28872907
class StatementType @JsonCreator private constructor(private val value: JsonField<String>) :

0 commit comments

Comments
 (0)