Skip to content

Commit 0fd4c89

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(internal): specify API version for each endpoints instead of hardcoded in base URLs (#306)
1 parent a6fab05 commit 0fd4c89

82 files changed

Lines changed: 494 additions & 396 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.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ constructor(
160160
val request =
161161
HttpRequest.builder()
162162
.method(HttpMethod.GET)
163-
.addPathSegments("status")
163+
.addPathSegments("v1", "status")
164164
.putAllQueryParams(clientOptions.queryParams)
165165
.putAllQueryParams(params.getQueryParams())
166166
.putAllHeaders(clientOptions.headers)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ constructor(
154154
val request =
155155
HttpRequest.builder()
156156
.method(HttpMethod.GET)
157-
.addPathSegments("status")
157+
.addPathSegments("v1", "status")
158158
.putAllQueryParams(clientOptions.queryParams)
159159
.putAllQueryParams(params.getQueryParams())
160160
.putAllHeaders(clientOptions.headers)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ private constructor(
2424

2525
companion object {
2626

27-
const val PRODUCTION_URL = "https://api.lithic.com/v1"
27+
const val PRODUCTION_URL = "https://api.lithic.com"
2828

29-
const val SANDBOX_URL = "https://sandbox.lithic.com/v1"
29+
const val SANDBOX_URL = "https://sandbox.lithic.com"
3030

3131
@JvmStatic fun builder() = Builder()
3232

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

Lines changed: 64 additions & 64 deletions
Large diffs are not rendered by default.

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

Lines changed: 68 additions & 68 deletions
Large diffs are not rendered by default.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ private constructor(
4747

4848
/**
4949
* Countries in which the Auth Rule permits transactions. Note that Lithic maintains a list of
50-
* countries in which all transactions are blocked; "allowing" those countries in an Auth Rule
50+
* countries in which all transactions are blocked; 'allowing' those countries in an Auth Rule
5151
* does not override the Lithic-wide restrictions.
5252
*/
5353
fun allowedCountries(): Optional<List<String>> =
@@ -90,7 +90,7 @@ private constructor(
9090

9191
/**
9292
* Countries in which the Auth Rule permits transactions. Note that Lithic maintains a list of
93-
* countries in which all transactions are blocked; "allowing" those countries in an Auth Rule
93+
* countries in which all transactions are blocked; 'allowing' those countries in an Auth Rule
9494
* does not override the Lithic-wide restrictions.
9595
*/
9696
@JsonProperty("allowed_countries") @ExcludeMissing fun _allowedCountries() = allowedCountries
@@ -230,15 +230,15 @@ private constructor(
230230

231231
/**
232232
* Countries in which the Auth Rule permits transactions. Note that Lithic maintains a list
233-
* of countries in which all transactions are blocked; "allowing" those countries in an Auth
233+
* of countries in which all transactions are blocked; 'allowing' those countries in an Auth
234234
* Rule does not override the Lithic-wide restrictions.
235235
*/
236236
fun allowedCountries(allowedCountries: List<String>) =
237237
allowedCountries(JsonField.of(allowedCountries))
238238

239239
/**
240240
* Countries in which the Auth Rule permits transactions. Note that Lithic maintains a list
241-
* of countries in which all transactions are blocked; "allowing" those countries in an Auth
241+
* of countries in which all transactions are blocked; 'allowing' those countries in an Auth
242242
* Rule does not override the Lithic-wide restrictions.
243243
*/
244244
@JsonProperty("allowed_countries")

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ constructor(
8484

8585
/**
8686
* Countries in which the Auth Rule permits transactions. Note that Lithic maintains a list
87-
* of countries in which all transactions are blocked; "allowing" those countries in an Auth
87+
* of countries in which all transactions are blocked; 'allowing' those countries in an Auth
8888
* Rule does not override the Lithic-wide restrictions.
8989
*/
9090
@JsonProperty("allowed_countries") fun allowedCountries(): List<String>? = allowedCountries
@@ -188,7 +188,7 @@ constructor(
188188

189189
/**
190190
* Countries in which the Auth Rule permits transactions. Note that Lithic maintains a
191-
* list of countries in which all transactions are blocked; "allowing" those countries
191+
* list of countries in which all transactions are blocked; 'allowing' those countries
192192
* in an Auth Rule does not override the Lithic-wide restrictions.
193193
*/
194194
@JsonProperty("allowed_countries")
@@ -345,7 +345,7 @@ constructor(
345345

346346
/**
347347
* Countries in which the Auth Rule permits transactions. Note that Lithic maintains a list
348-
* of countries in which all transactions are blocked; "allowing" those countries in an Auth
348+
* of countries in which all transactions are blocked; 'allowing' those countries in an Auth
349349
* Rule does not override the Lithic-wide restrictions.
350350
*/
351351
fun allowedCountries(allowedCountries: List<String>) = apply {
@@ -355,7 +355,7 @@ constructor(
355355

356356
/**
357357
* Countries in which the Auth Rule permits transactions. Note that Lithic maintains a list
358-
* of countries in which all transactions are blocked; "allowing" those countries in an Auth
358+
* of countries in which all transactions are blocked; 'allowing' those countries in an Auth
359359
* Rule does not override the Lithic-wide restrictions.
360360
*/
361361
fun addAllowedCountry(allowedCountry: String) = apply {

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private constructor(
161161
* - `PAUSED` - Card will decline authorizations, but can be resumed at a later time.
162162
* - `PENDING_FULFILLMENT` - The initial state for cards of type `PHYSICAL`. The card is
163163
* provisioned pending manufacturing and fulfillment. Cards in this state can accept
164-
* authorizations for e-commerce purchases, but not for "Card Present" purchases where the
164+
* authorizations for e-commerce purchases, but not for 'Card Present' purchases where the
165165
* physical card itself is present.
166166
* - `PENDING_ACTIVATION` - At regular intervals, cards of type `PHYSICAL` in state
167167
* `PENDING_FULFILLMENT` are sent to the card production warehouse and updated to state
@@ -299,7 +299,7 @@ private constructor(
299299
* - `PAUSED` - Card will decline authorizations, but can be resumed at a later time.
300300
* - `PENDING_FULFILLMENT` - The initial state for cards of type `PHYSICAL`. The card is
301301
* provisioned pending manufacturing and fulfillment. Cards in this state can accept
302-
* authorizations for e-commerce purchases, but not for "Card Present" purchases where the
302+
* authorizations for e-commerce purchases, but not for 'Card Present' purchases where the
303303
* physical card itself is present.
304304
* - `PENDING_ACTIVATION` - At regular intervals, cards of type `PHYSICAL` in state
305305
* `PENDING_FULFILLMENT` are sent to the card production warehouse and updated to state
@@ -748,7 +748,7 @@ private constructor(
748748
* - `PAUSED` - Card will decline authorizations, but can be resumed at a later time.
749749
* - `PENDING_FULFILLMENT` - The initial state for cards of type `PHYSICAL`. The card is
750750
* provisioned pending manufacturing and fulfillment. Cards in this state can accept
751-
* authorizations for e-commerce purchases, but not for "Card Present" purchases where the
751+
* authorizations for e-commerce purchases, but not for 'Card Present' purchases where the
752752
* physical card itself is present.
753753
* - `PENDING_ACTIVATION` - At regular intervals, cards of type `PHYSICAL` in state
754754
* `PENDING_FULFILLMENT` are sent to the card production warehouse and updated to state
@@ -768,7 +768,7 @@ private constructor(
768768
* - `PAUSED` - Card will decline authorizations, but can be resumed at a later time.
769769
* - `PENDING_FULFILLMENT` - The initial state for cards of type `PHYSICAL`. The card is
770770
* provisioned pending manufacturing and fulfillment. Cards in this state can accept
771-
* authorizations for e-commerce purchases, but not for "Card Present" purchases where the
771+
* authorizations for e-commerce purchases, but not for 'Card Present' purchases where the
772772
* physical card itself is present.
773773
* - `PENDING_ACTIVATION` - At regular intervals, cards of type `PHYSICAL` in state
774774
* `PENDING_FULFILLMENT` are sent to the card production warehouse and updated to state

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ constructor(
6060

6161
/**
6262
* The communication method that the user has selected to use to receive the authentication
63-
* code. Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email =
64-
* "EMAIL_TO_CARDHOLDER_ADDRESS"
63+
* code. Supported Values: Sms = 'TEXT_TO_CARDHOLDER_NUMBER'. Email =
64+
* 'EMAIL_TO_CARDHOLDER_ADDRESS'
6565
*/
6666
@JsonProperty("activation_method_type")
6767
fun activationMethodType(): ActivationMethodType? = activationMethodType
@@ -113,8 +113,8 @@ constructor(
113113

114114
/**
115115
* The communication method that the user has selected to use to receive the
116-
* authentication code. Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email =
117-
* "EMAIL_TO_CARDHOLDER_ADDRESS"
116+
* authentication code. Supported Values: Sms = 'TEXT_TO_CARDHOLDER_NUMBER'. Email =
117+
* 'EMAIL_TO_CARDHOLDER_ADDRESS'
118118
*/
119119
@JsonProperty("activation_method_type")
120120
fun activationMethodType(activationMethodType: ActivationMethodType) = apply {
@@ -210,8 +210,8 @@ constructor(
210210

211211
/**
212212
* The communication method that the user has selected to use to receive the authentication
213-
* code. Supported Values: Sms = "TEXT_TO_CARDHOLDER_NUMBER". Email =
214-
* "EMAIL_TO_CARDHOLDER_ADDRESS"
213+
* code. Supported Values: Sms = 'TEXT_TO_CARDHOLDER_NUMBER'. Email =
214+
* 'EMAIL_TO_CARDHOLDER_ADDRESS'
215215
*/
216216
fun activationMethodType(activationMethodType: ActivationMethodType) = apply {
217217
this.activationMethodType = activationMethodType

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,14 @@ private constructor(
107107
fun merchant(): Merchant = merchant.getRequired("merchant")
108108

109109
/**
110-
* Analogous to the "amount" property, but will represent the amount in the transaction's local
110+
* Analogous to the 'amount' property, but will represent the amount in the transaction's local
111111
* currency (smallest unit), including any acquirer fees.
112112
*/
113113
fun merchantAmount(): Optional<Long> =
114114
Optional.ofNullable(merchantAmount.getNullable("merchant_amount"))
115115

116116
/**
117-
* Analogous to the "authorization_amount" property, but will represent the amount in the
117+
* Analogous to the 'authorization_amount' property, but will represent the amount in the
118118
* transaction's local currency (smallest unit), including any acquirer fees.
119119
*/
120120
fun merchantAuthorizationAmount(): Optional<Long> =
@@ -228,13 +228,13 @@ private constructor(
228228
@JsonProperty("merchant") @ExcludeMissing fun _merchant() = merchant
229229

230230
/**
231-
* Analogous to the "amount" property, but will represent the amount in the transaction's local
231+
* Analogous to the 'amount' property, but will represent the amount in the transaction's local
232232
* currency (smallest unit), including any acquirer fees.
233233
*/
234234
@JsonProperty("merchant_amount") @ExcludeMissing fun _merchantAmount() = merchantAmount
235235

236236
/**
237-
* Analogous to the "authorization_amount" property, but will represent the amount in the
237+
* Analogous to the 'authorization_amount' property, but will represent the amount in the
238238
* transaction's local currency (smallest unit), including any acquirer fees.
239239
*/
240240
@JsonProperty("merchant_authorization_amount")
@@ -594,13 +594,13 @@ private constructor(
594594
fun merchant(merchant: JsonField<Merchant>) = apply { this.merchant = merchant }
595595

596596
/**
597-
* Analogous to the "amount" property, but will represent the amount in the transaction's
597+
* Analogous to the 'amount' property, but will represent the amount in the transaction's
598598
* local currency (smallest unit), including any acquirer fees.
599599
*/
600600
fun merchantAmount(merchantAmount: Long) = merchantAmount(JsonField.of(merchantAmount))
601601

602602
/**
603-
* Analogous to the "amount" property, but will represent the amount in the transaction's
603+
* Analogous to the 'amount' property, but will represent the amount in the transaction's
604604
* local currency (smallest unit), including any acquirer fees.
605605
*/
606606
@JsonProperty("merchant_amount")
@@ -610,14 +610,14 @@ private constructor(
610610
}
611611

612612
/**
613-
* Analogous to the "authorization_amount" property, but will represent the amount in the
613+
* Analogous to the 'authorization_amount' property, but will represent the amount in the
614614
* transaction's local currency (smallest unit), including any acquirer fees.
615615
*/
616616
fun merchantAuthorizationAmount(merchantAuthorizationAmount: Long) =
617617
merchantAuthorizationAmount(JsonField.of(merchantAuthorizationAmount))
618618

619619
/**
620-
* Analogous to the "authorization_amount" property, but will represent the amount in the
620+
* Analogous to the 'authorization_amount' property, but will represent the amount in the
621621
* transaction's local currency (smallest unit), including any acquirer fees.
622622
*/
623623
@JsonProperty("merchant_authorization_amount")

0 commit comments

Comments
 (0)