Skip to content

Commit 713da0b

Browse files
feat(api): manual updates
1 parent 8a94375 commit 713da0b

15 files changed

Lines changed: 684 additions & 27 deletions

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 157
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-8469aee20249c9dcb2b57796df62fd39d2c14668a6853476b6c1bab9c80a4e4c.yml
3-
openapi_spec_hash: 3339f9fd912f2eb8ba5efc3c73f5d030
4-
config_hash: 620bf845d9ccfaf0ad7e2452463bb227
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-9580d7ed7ee603cba3dd0db9bb1ee48094dfe2a90c1ca13a7f10ab8deaa73e2c.yml
3+
openapi_spec_hash: 6f707e3df699aec761f20db720fb3a32
4+
config_hash: dc221a354631e360e545ebb7435ecd35

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

Lines changed: 74 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6345,6 +6345,7 @@ private constructor(
63456345
class Transaction
63466346
private constructor(
63476347
private val amount: JsonField<Double>,
6348+
private val cardholderAmount: JsonField<Double>,
63486349
private val currency: JsonField<String>,
63496350
private val currencyExponent: JsonField<Double>,
63506351
private val dateTime: JsonField<OffsetDateTime>,
@@ -6355,6 +6356,9 @@ private constructor(
63556356
@JsonCreator
63566357
private constructor(
63576358
@JsonProperty("amount") @ExcludeMissing amount: JsonField<Double> = JsonMissing.of(),
6359+
@JsonProperty("cardholder_amount")
6360+
@ExcludeMissing
6361+
cardholderAmount: JsonField<Double> = JsonMissing.of(),
63586362
@JsonProperty("currency")
63596363
@ExcludeMissing
63606364
currency: JsonField<String> = JsonMissing.of(),
@@ -6365,7 +6369,15 @@ private constructor(
63656369
@ExcludeMissing
63666370
dateTime: JsonField<OffsetDateTime> = JsonMissing.of(),
63676371
@JsonProperty("type") @ExcludeMissing type: JsonField<Type> = JsonMissing.of(),
6368-
) : this(amount, currency, currencyExponent, dateTime, type, mutableMapOf())
6372+
) : this(
6373+
amount,
6374+
cardholderAmount,
6375+
currency,
6376+
currencyExponent,
6377+
dateTime,
6378+
type,
6379+
mutableMapOf(),
6380+
)
63696381

63706382
/**
63716383
* Amount of the purchase in minor units of currency with all punctuation removed. Maps to
@@ -6376,6 +6388,15 @@ private constructor(
63766388
*/
63776389
fun amount(): Double = amount.getRequired("amount")
63786390

6391+
/**
6392+
* Approximate amount of the purchase in minor units of cardholder currency. Derived from
6393+
* `amount` using a daily conversion rate.
6394+
*
6395+
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
6396+
* server responded with an unexpected value).
6397+
*/
6398+
fun cardholderAmount(): Optional<Double> = cardholderAmount.getOptional("cardholder_amount")
6399+
63796400
/**
63806401
* Currency of the purchase. Maps to EMV 3DS field purchaseCurrency.
63816402
*
@@ -6418,6 +6439,16 @@ private constructor(
64186439
*/
64196440
@JsonProperty("amount") @ExcludeMissing fun _amount(): JsonField<Double> = amount
64206441

6442+
/**
6443+
* Returns the raw JSON value of [cardholderAmount].
6444+
*
6445+
* Unlike [cardholderAmount], this method doesn't throw if the JSON field has an unexpected
6446+
* type.
6447+
*/
6448+
@JsonProperty("cardholder_amount")
6449+
@ExcludeMissing
6450+
fun _cardholderAmount(): JsonField<Double> = cardholderAmount
6451+
64216452
/**
64226453
* Returns the raw JSON value of [currency].
64236454
*
@@ -6471,6 +6502,7 @@ private constructor(
64716502
* The following fields are required:
64726503
* ```java
64736504
* .amount()
6505+
* .cardholderAmount()
64746506
* .currency()
64756507
* .currencyExponent()
64766508
* .dateTime()
@@ -6484,6 +6516,7 @@ private constructor(
64846516
class Builder internal constructor() {
64856517

64866518
private var amount: JsonField<Double>? = null
6519+
private var cardholderAmount: JsonField<Double>? = null
64876520
private var currency: JsonField<String>? = null
64886521
private var currencyExponent: JsonField<Double>? = null
64896522
private var dateTime: JsonField<OffsetDateTime>? = null
@@ -6493,6 +6526,7 @@ private constructor(
64936526
@JvmSynthetic
64946527
internal fun from(transaction: Transaction) = apply {
64956528
amount = transaction.amount
6529+
cardholderAmount = transaction.cardholderAmount
64966530
currency = transaction.currency
64976531
currencyExponent = transaction.currencyExponent
64986532
dateTime = transaction.dateTime
@@ -6515,6 +6549,38 @@ private constructor(
65156549
*/
65166550
fun amount(amount: JsonField<Double>) = apply { this.amount = amount }
65176551

6552+
/**
6553+
* Approximate amount of the purchase in minor units of cardholder currency. Derived
6554+
* from `amount` using a daily conversion rate.
6555+
*/
6556+
fun cardholderAmount(cardholderAmount: Double?) =
6557+
cardholderAmount(JsonField.ofNullable(cardholderAmount))
6558+
6559+
/**
6560+
* Alias for [Builder.cardholderAmount].
6561+
*
6562+
* This unboxed primitive overload exists for backwards compatibility.
6563+
*/
6564+
fun cardholderAmount(cardholderAmount: Double) =
6565+
cardholderAmount(cardholderAmount as Double?)
6566+
6567+
/**
6568+
* Alias for calling [Builder.cardholderAmount] with `cardholderAmount.orElse(null)`.
6569+
*/
6570+
fun cardholderAmount(cardholderAmount: Optional<Double>) =
6571+
cardholderAmount(cardholderAmount.getOrNull())
6572+
6573+
/**
6574+
* Sets [Builder.cardholderAmount] to an arbitrary JSON value.
6575+
*
6576+
* You should usually call [Builder.cardholderAmount] with a well-typed [Double] value
6577+
* instead. This method is primarily for setting the field to an undocumented or not yet
6578+
* supported value.
6579+
*/
6580+
fun cardholderAmount(cardholderAmount: JsonField<Double>) = apply {
6581+
this.cardholderAmount = cardholderAmount
6582+
}
6583+
65186584
/** Currency of the purchase. Maps to EMV 3DS field purchaseCurrency. */
65196585
fun currency(currency: String) = currency(JsonField.of(currency))
65206586

@@ -6605,6 +6671,7 @@ private constructor(
66056671
* The following fields are required:
66066672
* ```java
66076673
* .amount()
6674+
* .cardholderAmount()
66086675
* .currency()
66096676
* .currencyExponent()
66106677
* .dateTime()
@@ -6616,6 +6683,7 @@ private constructor(
66166683
fun build(): Transaction =
66176684
Transaction(
66186685
checkRequired("amount", amount),
6686+
checkRequired("cardholderAmount", cardholderAmount),
66196687
checkRequired("currency", currency),
66206688
checkRequired("currencyExponent", currencyExponent),
66216689
checkRequired("dateTime", dateTime),
@@ -6632,6 +6700,7 @@ private constructor(
66326700
}
66336701

66346702
amount()
6703+
cardholderAmount()
66356704
currency()
66366705
currencyExponent()
66376706
dateTime()
@@ -6656,6 +6725,7 @@ private constructor(
66566725
@JvmSynthetic
66576726
internal fun validity(): Int =
66586727
(if (amount.asKnown().isPresent) 1 else 0) +
6728+
(if (cardholderAmount.asKnown().isPresent) 1 else 0) +
66596729
(if (currency.asKnown().isPresent) 1 else 0) +
66606730
(if (currencyExponent.asKnown().isPresent) 1 else 0) +
66616731
(if (dateTime.asKnown().isPresent) 1 else 0) +
@@ -6815,17 +6885,17 @@ private constructor(
68156885
return true
68166886
}
68176887

6818-
return /* spotless:off */ other is Transaction && amount == other.amount && currency == other.currency && currencyExponent == other.currencyExponent && dateTime == other.dateTime && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
6888+
return /* spotless:off */ other is Transaction && amount == other.amount && cardholderAmount == other.cardholderAmount && currency == other.currency && currencyExponent == other.currencyExponent && dateTime == other.dateTime && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
68196889
}
68206890

68216891
/* spotless:off */
6822-
private val hashCode: Int by lazy { Objects.hash(amount, currency, currencyExponent, dateTime, type, additionalProperties) }
6892+
private val hashCode: Int by lazy { Objects.hash(amount, cardholderAmount, currency, currencyExponent, dateTime, type, additionalProperties) }
68236893
/* spotless:on */
68246894

68256895
override fun hashCode(): Int = hashCode
68266896

68276897
override fun toString() =
6828-
"Transaction{amount=$amount, currency=$currency, currencyExponent=$currencyExponent, dateTime=$dateTime, type=$type, additionalProperties=$additionalProperties}"
6898+
"Transaction{amount=$amount, cardholderAmount=$cardholderAmount, currency=$currency, currencyExponent=$currencyExponent, dateTime=$dateTime, type=$type, additionalProperties=$additionalProperties}"
68296899
}
68306900

68316901
override fun equals(other: Any?): Boolean {

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

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ private constructor(
2222
private val begin: OffsetDateTime?,
2323
private val end: OffsetDateTime?,
2424
private val endingBefore: String?,
25+
private val memo: String?,
2526
private val pageSize: Long?,
2627
private val startingAfter: String?,
2728
private val state: State?,
@@ -50,6 +51,9 @@ private constructor(
5051
*/
5152
fun endingBefore(): Optional<String> = Optional.ofNullable(endingBefore)
5253

54+
/** Returns cards containing the specified partial or full memo text. */
55+
fun memo(): Optional<String> = Optional.ofNullable(memo)
56+
5357
/** Page size (for pagination). */
5458
fun pageSize(): Optional<Long> = Optional.ofNullable(pageSize)
5559

@@ -83,6 +87,7 @@ private constructor(
8387
private var begin: OffsetDateTime? = null
8488
private var end: OffsetDateTime? = null
8589
private var endingBefore: String? = null
90+
private var memo: String? = null
8691
private var pageSize: Long? = null
8792
private var startingAfter: String? = null
8893
private var state: State? = null
@@ -95,6 +100,7 @@ private constructor(
95100
begin = cardListParams.begin
96101
end = cardListParams.end
97102
endingBefore = cardListParams.endingBefore
103+
memo = cardListParams.memo
98104
pageSize = cardListParams.pageSize
99105
startingAfter = cardListParams.startingAfter
100106
state = cardListParams.state
@@ -135,6 +141,12 @@ private constructor(
135141
/** Alias for calling [Builder.endingBefore] with `endingBefore.orElse(null)`. */
136142
fun endingBefore(endingBefore: Optional<String>) = endingBefore(endingBefore.getOrNull())
137143

144+
/** Returns cards containing the specified partial or full memo text. */
145+
fun memo(memo: String?) = apply { this.memo = memo }
146+
147+
/** Alias for calling [Builder.memo] with `memo.orElse(null)`. */
148+
fun memo(memo: Optional<String>) = memo(memo.getOrNull())
149+
138150
/** Page size (for pagination). */
139151
fun pageSize(pageSize: Long?) = apply { this.pageSize = pageSize }
140152

@@ -273,6 +285,7 @@ private constructor(
273285
begin,
274286
end,
275287
endingBefore,
288+
memo,
276289
pageSize,
277290
startingAfter,
278291
state,
@@ -290,6 +303,7 @@ private constructor(
290303
begin?.let { put("begin", DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(it)) }
291304
end?.let { put("end", DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(it)) }
292305
endingBefore?.let { put("ending_before", it) }
306+
memo?.let { put("memo", it) }
293307
pageSize?.let { put("page_size", it.toString()) }
294308
startingAfter?.let { put("starting_after", it) }
295309
state?.let { put("state", it.toString()) }
@@ -446,11 +460,11 @@ private constructor(
446460
return true
447461
}
448462

449-
return /* spotless:off */ other is CardListParams && accountToken == other.accountToken && begin == other.begin && end == other.end && endingBefore == other.endingBefore && pageSize == other.pageSize && startingAfter == other.startingAfter && state == other.state && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
463+
return /* spotless:off */ other is CardListParams && accountToken == other.accountToken && begin == other.begin && end == other.end && endingBefore == other.endingBefore && memo == other.memo && pageSize == other.pageSize && startingAfter == other.startingAfter && state == other.state && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
450464
}
451465

452-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(accountToken, begin, end, endingBefore, pageSize, startingAfter, state, additionalHeaders, additionalQueryParams) /* spotless:on */
466+
override fun hashCode(): Int = /* spotless:off */ Objects.hash(accountToken, begin, end, endingBefore, memo, pageSize, startingAfter, state, additionalHeaders, additionalQueryParams) /* spotless:on */
453467

454468
override fun toString() =
455-
"CardListParams{accountToken=$accountToken, begin=$begin, end=$end, endingBefore=$endingBefore, pageSize=$pageSize, startingAfter=$startingAfter, state=$state, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
469+
"CardListParams{accountToken=$accountToken, begin=$begin, end=$end, endingBefore=$endingBefore, memo=$memo, pageSize=$pageSize, startingAfter=$startingAfter, state=$state, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}"
456470
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ private constructor(
430430

431431
@JvmField val FINANCIAL_ACCOUNT_UPDATED = of("financial_account.updated")
432432

433+
@JvmField val FUNDING_EVENT_CREATED = of("funding_event.created")
434+
433435
@JvmField val LOAN_TAPE_CREATED = of("loan_tape.created")
434436

435437
@JvmField val LOAN_TAPE_UPDATED = of("loan_tape.updated")
@@ -498,6 +500,7 @@ private constructor(
498500
EXTERNAL_PAYMENT_UPDATED,
499501
FINANCIAL_ACCOUNT_CREATED,
500502
FINANCIAL_ACCOUNT_UPDATED,
503+
FUNDING_EVENT_CREATED,
501504
LOAN_TAPE_CREATED,
502505
LOAN_TAPE_UPDATED,
503506
MANAGEMENT_OPERATION_CREATED,
@@ -552,6 +555,7 @@ private constructor(
552555
EXTERNAL_PAYMENT_UPDATED,
553556
FINANCIAL_ACCOUNT_CREATED,
554557
FINANCIAL_ACCOUNT_UPDATED,
558+
FUNDING_EVENT_CREATED,
555559
LOAN_TAPE_CREATED,
556560
LOAN_TAPE_UPDATED,
557561
MANAGEMENT_OPERATION_CREATED,
@@ -612,6 +616,7 @@ private constructor(
612616
EXTERNAL_PAYMENT_UPDATED -> Value.EXTERNAL_PAYMENT_UPDATED
613617
FINANCIAL_ACCOUNT_CREATED -> Value.FINANCIAL_ACCOUNT_CREATED
614618
FINANCIAL_ACCOUNT_UPDATED -> Value.FINANCIAL_ACCOUNT_UPDATED
619+
FUNDING_EVENT_CREATED -> Value.FUNDING_EVENT_CREATED
615620
LOAN_TAPE_CREATED -> Value.LOAN_TAPE_CREATED
616621
LOAN_TAPE_UPDATED -> Value.LOAN_TAPE_UPDATED
617622
MANAGEMENT_OPERATION_CREATED -> Value.MANAGEMENT_OPERATION_CREATED
@@ -673,6 +678,7 @@ private constructor(
673678
EXTERNAL_PAYMENT_UPDATED -> Known.EXTERNAL_PAYMENT_UPDATED
674679
FINANCIAL_ACCOUNT_CREATED -> Known.FINANCIAL_ACCOUNT_CREATED
675680
FINANCIAL_ACCOUNT_UPDATED -> Known.FINANCIAL_ACCOUNT_UPDATED
681+
FUNDING_EVENT_CREATED -> Known.FUNDING_EVENT_CREATED
676682
LOAN_TAPE_CREATED -> Known.LOAN_TAPE_CREATED
677683
LOAN_TAPE_UPDATED -> Known.LOAN_TAPE_UPDATED
678684
MANAGEMENT_OPERATION_CREATED -> Known.MANAGEMENT_OPERATION_CREATED

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ private constructor(
390390

391391
@JvmField val FINANCIAL_ACCOUNT_UPDATED = of("financial_account.updated")
392392

393+
@JvmField val FUNDING_EVENT_CREATED = of("funding_event.created")
394+
393395
@JvmField val LOAN_TAPE_CREATED = of("loan_tape.created")
394396

395397
@JvmField val LOAN_TAPE_UPDATED = of("loan_tape.updated")
@@ -458,6 +460,7 @@ private constructor(
458460
EXTERNAL_PAYMENT_UPDATED,
459461
FINANCIAL_ACCOUNT_CREATED,
460462
FINANCIAL_ACCOUNT_UPDATED,
463+
FUNDING_EVENT_CREATED,
461464
LOAN_TAPE_CREATED,
462465
LOAN_TAPE_UPDATED,
463466
MANAGEMENT_OPERATION_CREATED,
@@ -512,6 +515,7 @@ private constructor(
512515
EXTERNAL_PAYMENT_UPDATED,
513516
FINANCIAL_ACCOUNT_CREATED,
514517
FINANCIAL_ACCOUNT_UPDATED,
518+
FUNDING_EVENT_CREATED,
515519
LOAN_TAPE_CREATED,
516520
LOAN_TAPE_UPDATED,
517521
MANAGEMENT_OPERATION_CREATED,
@@ -572,6 +576,7 @@ private constructor(
572576
EXTERNAL_PAYMENT_UPDATED -> Value.EXTERNAL_PAYMENT_UPDATED
573577
FINANCIAL_ACCOUNT_CREATED -> Value.FINANCIAL_ACCOUNT_CREATED
574578
FINANCIAL_ACCOUNT_UPDATED -> Value.FINANCIAL_ACCOUNT_UPDATED
579+
FUNDING_EVENT_CREATED -> Value.FUNDING_EVENT_CREATED
575580
LOAN_TAPE_CREATED -> Value.LOAN_TAPE_CREATED
576581
LOAN_TAPE_UPDATED -> Value.LOAN_TAPE_UPDATED
577582
MANAGEMENT_OPERATION_CREATED -> Value.MANAGEMENT_OPERATION_CREATED
@@ -633,6 +638,7 @@ private constructor(
633638
EXTERNAL_PAYMENT_UPDATED -> Known.EXTERNAL_PAYMENT_UPDATED
634639
FINANCIAL_ACCOUNT_CREATED -> Known.FINANCIAL_ACCOUNT_CREATED
635640
FINANCIAL_ACCOUNT_UPDATED -> Known.FINANCIAL_ACCOUNT_UPDATED
641+
FUNDING_EVENT_CREATED -> Known.FUNDING_EVENT_CREATED
636642
LOAN_TAPE_CREATED -> Known.LOAN_TAPE_CREATED
637643
LOAN_TAPE_UPDATED -> Known.LOAN_TAPE_UPDATED
638644
MANAGEMENT_OPERATION_CREATED -> Known.MANAGEMENT_OPERATION_CREATED

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ private constructor(
393393

394394
@JvmField val FINANCIAL_ACCOUNT_UPDATED = of("financial_account.updated")
395395

396+
@JvmField val FUNDING_EVENT_CREATED = of("funding_event.created")
397+
396398
@JvmField val LOAN_TAPE_CREATED = of("loan_tape.created")
397399

398400
@JvmField val LOAN_TAPE_UPDATED = of("loan_tape.updated")
@@ -461,6 +463,7 @@ private constructor(
461463
EXTERNAL_PAYMENT_UPDATED,
462464
FINANCIAL_ACCOUNT_CREATED,
463465
FINANCIAL_ACCOUNT_UPDATED,
466+
FUNDING_EVENT_CREATED,
464467
LOAN_TAPE_CREATED,
465468
LOAN_TAPE_UPDATED,
466469
MANAGEMENT_OPERATION_CREATED,
@@ -515,6 +518,7 @@ private constructor(
515518
EXTERNAL_PAYMENT_UPDATED,
516519
FINANCIAL_ACCOUNT_CREATED,
517520
FINANCIAL_ACCOUNT_UPDATED,
521+
FUNDING_EVENT_CREATED,
518522
LOAN_TAPE_CREATED,
519523
LOAN_TAPE_UPDATED,
520524
MANAGEMENT_OPERATION_CREATED,
@@ -575,6 +579,7 @@ private constructor(
575579
EXTERNAL_PAYMENT_UPDATED -> Value.EXTERNAL_PAYMENT_UPDATED
576580
FINANCIAL_ACCOUNT_CREATED -> Value.FINANCIAL_ACCOUNT_CREATED
577581
FINANCIAL_ACCOUNT_UPDATED -> Value.FINANCIAL_ACCOUNT_UPDATED
582+
FUNDING_EVENT_CREATED -> Value.FUNDING_EVENT_CREATED
578583
LOAN_TAPE_CREATED -> Value.LOAN_TAPE_CREATED
579584
LOAN_TAPE_UPDATED -> Value.LOAN_TAPE_UPDATED
580585
MANAGEMENT_OPERATION_CREATED -> Value.MANAGEMENT_OPERATION_CREATED
@@ -636,6 +641,7 @@ private constructor(
636641
EXTERNAL_PAYMENT_UPDATED -> Known.EXTERNAL_PAYMENT_UPDATED
637642
FINANCIAL_ACCOUNT_CREATED -> Known.FINANCIAL_ACCOUNT_CREATED
638643
FINANCIAL_ACCOUNT_UPDATED -> Known.FINANCIAL_ACCOUNT_UPDATED
644+
FUNDING_EVENT_CREATED -> Known.FUNDING_EVENT_CREATED
639645
LOAN_TAPE_CREATED -> Known.LOAN_TAPE_CREATED
640646
LOAN_TAPE_UPDATED -> Known.LOAN_TAPE_UPDATED
641647
MANAGEMENT_OPERATION_CREATED -> Known.MANAGEMENT_OPERATION_CREATED

0 commit comments

Comments
 (0)