Skip to content

Commit 0acde79

Browse files
feat(api)!: remove some endpoints and other API updates (#235)
1 parent 303ff1e commit 0acde79

81 files changed

Lines changed: 2690 additions & 5884 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 115
1+
configured_endpoints: 110

lithic-java-core/src/main/kotlin/com/lithic/api/client/LithicClient.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ interface LithicClient {
5252

5353
fun reports(): ReportService
5454

55-
fun cardProduct(): CardProductService
56-
5755
fun cardPrograms(): CardProgramService
5856

5957
fun digitalCardArt(): DigitalCardArtService

lithic-java-core/src/main/kotlin/com/lithic/api/client/LithicClientAsync.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ interface LithicClientAsync {
5353

5454
fun reports(): ReportServiceAsync
5555

56-
fun cardProduct(): CardProductServiceAsync
57-
5856
fun cardPrograms(): CardProgramServiceAsync
5957

6058
fun digitalCardArt(): DigitalCardArtServiceAsync

lithic-java-core/src/main/kotlin/com/lithic/api/client/LithicClientAsyncImpl.kt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ constructor(
8282

8383
private val reports: ReportServiceAsync by lazy { ReportServiceAsyncImpl(clientOptions) }
8484

85-
private val cardProduct: CardProductServiceAsync by lazy {
86-
CardProductServiceAsyncImpl(clientOptions)
87-
}
88-
8985
private val cardPrograms: CardProgramServiceAsync by lazy {
9086
CardProgramServiceAsyncImpl(clientOptions)
9187
}
@@ -137,8 +133,6 @@ constructor(
137133

138134
override fun reports(): ReportServiceAsync = reports
139135

140-
override fun cardProduct(): CardProductServiceAsync = cardProduct
141-
142136
override fun cardPrograms(): CardProgramServiceAsync = cardPrograms
143137

144138
override fun digitalCardArt(): DigitalCardArtServiceAsync = digitalCardArt

lithic-java-core/src/main/kotlin/com/lithic/api/client/LithicClientImpl.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,6 @@ constructor(
7979

8080
private val reports: ReportService by lazy { ReportServiceImpl(clientOptions) }
8181

82-
private val cardProduct: CardProductService by lazy { CardProductServiceImpl(clientOptions) }
83-
8482
private val cardPrograms: CardProgramService by lazy { CardProgramServiceImpl(clientOptions) }
8583

8684
private val digitalCardArt: DigitalCardArtService by lazy {
@@ -129,8 +127,6 @@ constructor(
129127

130128
override fun reports(): ReportService = reports
131129

132-
override fun cardProduct(): CardProductService = cardProduct
133-
134130
override fun cardPrograms(): CardProgramService = cardPrograms
135131

136132
override fun digitalCardArt(): DigitalCardArtService = digitalCardArt

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

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import com.lithic.api.core.JsonValue
1515
import com.lithic.api.core.NoAutoDetect
1616
import com.lithic.api.core.toUnmodifiable
1717
import com.lithic.api.errors.LithicInvalidDataException
18+
import java.time.OffsetDateTime
1819
import java.util.Objects
1920
import java.util.Optional
2021

@@ -28,6 +29,7 @@ private constructor(
2829
private val state: JsonField<State>,
2930
private val token: JsonField<String>,
3031
private val verificationAddress: JsonField<VerificationAddress>,
32+
private val created: JsonField<OffsetDateTime>,
3133
private val additionalProperties: Map<String, JsonValue>,
3234
) {
3335

@@ -71,6 +73,12 @@ private constructor(
7173
fun verificationAddress(): Optional<VerificationAddress> =
7274
Optional.ofNullable(verificationAddress.getNullable("verification_address"))
7375

76+
/**
77+
* Timestamp of when the account was created. For accounts created before 2023-05-11, this field
78+
* will be null.
79+
*/
80+
fun created(): Optional<OffsetDateTime> = Optional.ofNullable(created.getNullable("created"))
81+
7482
@JsonProperty("account_holder") @ExcludeMissing fun _accountHolder() = accountHolder
7583

7684
/** List of identifiers for the Auth Rule(s) that are applied on the account. */
@@ -106,6 +114,12 @@ private constructor(
106114
@ExcludeMissing
107115
fun _verificationAddress() = verificationAddress
108116

117+
/**
118+
* Timestamp of when the account was created. For accounts created before 2023-05-11, this field
119+
* will be null.
120+
*/
121+
@JsonProperty("created") @ExcludeMissing fun _created() = created
122+
109123
@JsonAnyGetter
110124
@ExcludeMissing
111125
fun _additionalProperties(): Map<String, JsonValue> = additionalProperties
@@ -118,6 +132,7 @@ private constructor(
118132
state()
119133
token()
120134
verificationAddress().map { it.validate() }
135+
created()
121136
validated = true
122137
}
123138
}
@@ -136,6 +151,7 @@ private constructor(
136151
this.state == other.state &&
137152
this.token == other.token &&
138153
this.verificationAddress == other.verificationAddress &&
154+
this.created == other.created &&
139155
this.additionalProperties == other.additionalProperties
140156
}
141157

@@ -149,14 +165,15 @@ private constructor(
149165
state,
150166
token,
151167
verificationAddress,
168+
created,
152169
additionalProperties,
153170
)
154171
}
155172
return hashCode
156173
}
157174

158175
override fun toString() =
159-
"Account{accountHolder=$accountHolder, authRuleTokens=$authRuleTokens, spendLimit=$spendLimit, state=$state, token=$token, verificationAddress=$verificationAddress, additionalProperties=$additionalProperties}"
176+
"Account{accountHolder=$accountHolder, authRuleTokens=$authRuleTokens, spendLimit=$spendLimit, state=$state, token=$token, verificationAddress=$verificationAddress, created=$created, additionalProperties=$additionalProperties}"
160177

161178
companion object {
162179

@@ -171,6 +188,7 @@ private constructor(
171188
private var state: JsonField<State> = JsonMissing.of()
172189
private var token: JsonField<String> = JsonMissing.of()
173190
private var verificationAddress: JsonField<VerificationAddress> = JsonMissing.of()
191+
private var created: JsonField<OffsetDateTime> = JsonMissing.of()
174192
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
175193

176194
@JvmSynthetic
@@ -181,6 +199,7 @@ private constructor(
181199
this.state = account.state
182200
this.token = account.token
183201
this.verificationAddress = account.verificationAddress
202+
this.created = account.created
184203
additionalProperties(account.additionalProperties)
185204
}
186205

@@ -272,6 +291,20 @@ private constructor(
272291
this.verificationAddress = verificationAddress
273292
}
274293

294+
/**
295+
* Timestamp of when the account was created. For accounts created before 2023-05-11, this
296+
* field will be null.
297+
*/
298+
fun created(created: OffsetDateTime) = created(JsonField.of(created))
299+
300+
/**
301+
* Timestamp of when the account was created. For accounts created before 2023-05-11, this
302+
* field will be null.
303+
*/
304+
@JsonProperty("created")
305+
@ExcludeMissing
306+
fun created(created: JsonField<OffsetDateTime>) = apply { this.created = created }
307+
275308
fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
276309
this.additionalProperties.clear()
277310
this.additionalProperties.putAll(additionalProperties)
@@ -294,6 +327,7 @@ private constructor(
294327
state,
295328
token,
296329
verificationAddress,
330+
created,
297331
additionalProperties.toUnmodifiable(),
298332
)
299333
}

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

Lines changed: 0 additions & 153 deletions
This file was deleted.

0 commit comments

Comments
 (0)