Skip to content

Commit f382a71

Browse files
committed
chore(internal): remove redundant namespacing in references (#91)
1 parent 77b91f1 commit f382a71

1 file changed

Lines changed: 20 additions & 22 deletions

File tree

  • lithic-java-core/src/main/kotlin/com/lithic/api/models

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

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ private constructor(
3131
private val status: JsonField<FinancialTransaction.Status>,
3232
private val token: JsonField<String>,
3333
private val updated: JsonField<OffsetDateTime>,
34-
private val methodAttributes: JsonField<Payment.PaymentMethodAttributes>,
34+
private val methodAttributes: JsonField<PaymentMethodAttributes>,
3535
private val externalBankAccountToken: JsonField<String>,
36-
private val direction: JsonField<Payment.Direction>,
37-
private val source: JsonField<Payment.Source>,
38-
private val method: JsonField<Payment.Method>,
36+
private val direction: JsonField<Direction>,
37+
private val source: JsonField<Source>,
38+
private val method: JsonField<Method>,
3939
private val userDefinedId: JsonField<String>,
4040
private val additionalProperties: Map<String, JsonValue>,
4141
) {
@@ -105,17 +105,17 @@ private constructor(
105105
/** Date and time when the financial transaction was last updated. UTC time zone. */
106106
fun updated(): OffsetDateTime = updated.getRequired("updated")
107107

108-
fun methodAttributes(): Payment.PaymentMethodAttributes =
108+
fun methodAttributes(): PaymentMethodAttributes =
109109
methodAttributes.getRequired("method_attributes")
110110

111111
fun externalBankAccountToken(): Optional<String> =
112112
Optional.ofNullable(externalBankAccountToken.getNullable("external_bank_account_token"))
113113

114-
fun direction(): Payment.Direction = direction.getRequired("direction")
114+
fun direction(): Direction = direction.getRequired("direction")
115115

116-
fun source(): Payment.Source = source.getRequired("source")
116+
fun source(): Source = source.getRequired("source")
117117

118-
fun method(): Payment.Method = method.getRequired("method")
118+
fun method(): Method = method.getRequired("method")
119119

120120
fun userDefinedId(): Optional<String> =
121121
Optional.ofNullable(userDefinedId.getNullable("user_defined_id"))
@@ -313,11 +313,11 @@ private constructor(
313313
private var status: JsonField<FinancialTransaction.Status> = JsonMissing.of()
314314
private var token: JsonField<String> = JsonMissing.of()
315315
private var updated: JsonField<OffsetDateTime> = JsonMissing.of()
316-
private var methodAttributes: JsonField<Payment.PaymentMethodAttributes> = JsonMissing.of()
316+
private var methodAttributes: JsonField<PaymentMethodAttributes> = JsonMissing.of()
317317
private var externalBankAccountToken: JsonField<String> = JsonMissing.of()
318-
private var direction: JsonField<Payment.Direction> = JsonMissing.of()
319-
private var source: JsonField<Payment.Source> = JsonMissing.of()
320-
private var method: JsonField<Payment.Method> = JsonMissing.of()
318+
private var direction: JsonField<Direction> = JsonMissing.of()
319+
private var source: JsonField<Source> = JsonMissing.of()
320+
private var method: JsonField<Method> = JsonMissing.of()
321321
private var userDefinedId: JsonField<String> = JsonMissing.of()
322322
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
323323

@@ -497,12 +497,12 @@ private constructor(
497497
@ExcludeMissing
498498
fun updated(updated: JsonField<OffsetDateTime>) = apply { this.updated = updated }
499499

500-
fun methodAttributes(methodAttributes: Payment.PaymentMethodAttributes) =
500+
fun methodAttributes(methodAttributes: PaymentMethodAttributes) =
501501
methodAttributes(JsonField.of(methodAttributes))
502502

503503
@JsonProperty("method_attributes")
504504
@ExcludeMissing
505-
fun methodAttributes(methodAttributes: JsonField<Payment.PaymentMethodAttributes>) = apply {
505+
fun methodAttributes(methodAttributes: JsonField<PaymentMethodAttributes>) = apply {
506506
this.methodAttributes = methodAttributes
507507
}
508508

@@ -515,25 +515,23 @@ private constructor(
515515
this.externalBankAccountToken = externalBankAccountToken
516516
}
517517

518-
fun direction(direction: Payment.Direction) = direction(JsonField.of(direction))
518+
fun direction(direction: Direction) = direction(JsonField.of(direction))
519519

520520
@JsonProperty("direction")
521521
@ExcludeMissing
522-
fun direction(direction: JsonField<Payment.Direction>) = apply {
523-
this.direction = direction
524-
}
522+
fun direction(direction: JsonField<Direction>) = apply { this.direction = direction }
525523

526-
fun source(source: Payment.Source) = source(JsonField.of(source))
524+
fun source(source: Source) = source(JsonField.of(source))
527525

528526
@JsonProperty("source")
529527
@ExcludeMissing
530-
fun source(source: JsonField<Payment.Source>) = apply { this.source = source }
528+
fun source(source: JsonField<Source>) = apply { this.source = source }
531529

532-
fun method(method: Payment.Method) = method(JsonField.of(method))
530+
fun method(method: Method) = method(JsonField.of(method))
533531

534532
@JsonProperty("method")
535533
@ExcludeMissing
536-
fun method(method: JsonField<Payment.Method>) = apply { this.method = method }
534+
fun method(method: JsonField<Method>) = apply { this.method = method }
537535

538536
fun userDefinedId(userDefinedId: String) = userDefinedId(JsonField.of(userDefinedId))
539537

0 commit comments

Comments
 (0)