Skip to content

Commit cb17f39

Browse files
feat(api): new resend endpoint for Event Subscriptions (#587)
- Add new endpoint for resending events to event subscriptions - Refactor shipping method into reusable schema component (CardShippingMethod) - Deprecate `BeneficialOwnerEntities` in favor of BeneficialOwnerIndividuals` - Enhance card renewal documentation with details on PHYSICAL vs VIRTUAL card behavior - Rename `FinancialAccount.status_change_reason` to `substatus`
1 parent 9d70cb6 commit cb17f39

35 files changed

+1453
-929
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 156
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-fe97f820471b725722897539252e7444af7490c5a444a2e9304f5e6eec5513f3.yml
3-
openapi_spec_hash: 7e6a5737901cef39499bf749a17d9939
4-
config_hash: 4ad881d1e70144d965fd188c40350add
1+
configured_endpoints: 157
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-179992b114ffada2cdd2d9d56a8a25e0683bec2297606d32d0f0006b9eb9f21d.yml
3+
openapi_spec_hash: a111418d378ea248892306c81b00f8c8
4+
config_hash: 6729d695e399d14fff4891b6b82ec86c

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@ private constructor(
150150
fun accountToken(): Optional<String> = accountToken.getOptional("account_token")
151151

152152
/**
153-
* Only present when user_type == "BUSINESS". List of all entities with >25% ownership in the
154-
* company.
153+
* Deprecated. Only present when user_type == "BUSINESS".
155154
*
156155
* @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
157156
* server responded with an unexpected value).
@@ -613,10 +612,7 @@ private constructor(
613612
this.accountToken = accountToken
614613
}
615614

616-
/**
617-
* Only present when user_type == "BUSINESS". List of all entities with >25% ownership in
618-
* the company.
619-
*/
615+
/** Deprecated. Only present when user_type == "BUSINESS". */
620616
fun beneficialOwnerEntities(beneficialOwnerEntities: List<AccountHolderBusinessResponse>) =
621617
beneficialOwnerEntities(JsonField.of(beneficialOwnerEntities))
622618

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ private constructor(
6868
fun productId(): Optional<String> = body.productId()
6969

7070
/**
71-
* Shipping method for the card. Use of options besides `STANDARD` require additional
72-
* permissions.
71+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options besides
72+
* `STANDARD` require additional permissions.
7373
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
7474
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with tracking
7575
* - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
@@ -206,8 +206,8 @@ private constructor(
206206
fun productId(productId: JsonField<String>) = apply { body.productId(productId) }
207207

208208
/**
209-
* Shipping method for the card. Use of options besides `STANDARD` require additional
210-
* permissions.
209+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options
210+
* besides `STANDARD` require additional permissions.
211211
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
212212
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
213213
* tracking
@@ -432,8 +432,8 @@ private constructor(
432432
fun productId(): Optional<String> = productId.getOptional("product_id")
433433

434434
/**
435-
* Shipping method for the card. Use of options besides `STANDARD` require additional
436-
* permissions.
435+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options
436+
* besides `STANDARD` require additional permissions.
437437
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
438438
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
439439
* tracking
@@ -569,8 +569,8 @@ private constructor(
569569
fun productId(productId: JsonField<String>) = apply { this.productId = productId }
570570

571571
/**
572-
* Shipping method for the card. Use of options besides `STANDARD` require additional
573-
* permissions.
572+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options
573+
* besides `STANDARD` require additional permissions.
574574
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
575575
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
576576
* tracking
@@ -689,8 +689,8 @@ private constructor(
689689
}
690690

691691
/**
692-
* Shipping method for the card. Use of options besides `STANDARD` require additional
693-
* permissions.
692+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options besides
693+
* `STANDARD` require additional permissions.
694694
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
695695
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with tracking
696696
* - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
@@ -713,7 +713,7 @@ private constructor(
713713

714714
companion object {
715715

716-
@JvmField val _2_DAY = of("2-DAY")
716+
@JvmField val _2_DAY = of("2_DAY")
717717

718718
@JvmField val EXPEDITED = of("EXPEDITED")
719719

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ private constructor(
6464
fun shippingAddress(): Optional<ShippingAddress> = body.shippingAddress()
6565

6666
/**
67-
* Shipping method for the card. Use of options besides `STANDARD` require additional
68-
* permissions.
67+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options besides
68+
* `STANDARD` require additional permissions.
6969
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
7070
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with tracking
7171
* - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
@@ -201,8 +201,8 @@ private constructor(
201201
}
202202

203203
/**
204-
* Shipping method for the card. Use of options besides `STANDARD` require additional
205-
* permissions.
204+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options
205+
* besides `STANDARD` require additional permissions.
206206
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
207207
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
208208
* tracking
@@ -427,8 +427,8 @@ private constructor(
427427
shippingAddress.getOptional("shipping_address")
428428

429429
/**
430-
* Shipping method for the card. Use of options besides `STANDARD` require additional
431-
* permissions.
430+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options
431+
* besides `STANDARD` require additional permissions.
432432
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
433433
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
434434
* tracking
@@ -557,8 +557,8 @@ private constructor(
557557
}
558558

559559
/**
560-
* Shipping method for the card. Use of options besides `STANDARD` require additional
561-
* permissions.
560+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options
561+
* besides `STANDARD` require additional permissions.
562562
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
563563
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
564564
* tracking
@@ -670,8 +670,8 @@ private constructor(
670670
}
671671

672672
/**
673-
* Shipping method for the card. Use of options besides `STANDARD` require additional
674-
* permissions.
673+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options besides
674+
* `STANDARD` require additional permissions.
675675
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
676676
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with tracking
677677
* - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
@@ -694,7 +694,7 @@ private constructor(
694694

695695
companion object {
696696

697-
@JvmField val _2_DAY = of("2-DAY")
697+
@JvmField val _2_DAY = of("2_DAY")
698698

699699
@JvmField val EXPEDITED = of("EXPEDITED")
700700

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

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ import java.util.Optional
2222
import kotlin.jvm.optionals.getOrNull
2323

2424
/**
25-
* Creates a new card with the same card token and PAN, but updated expiry and CVC2 code. The
26-
* original card will keep working for card-present transactions until the new card is activated.
27-
* For card-not-present transactions, the original card details (expiry, CVC2) will also keep
28-
* working until the new card is activated. Applies to card types `PHYSICAL` and `VIRTUAL`. A card
29-
* can be replaced or renewed a total of 8 times.
25+
* Applies to card types `PHYSICAL` and `VIRTUAL`. For `PHYSICAL`, creates a new card with the same
26+
* card token and PAN, but updated expiry and CVC2 code. The original card will keep working for
27+
* card-present transactions until the new card is activated. For card-not-present transactions, the
28+
* original card details (expiry, CVC2) will also keep working until the new card is activated. A
29+
* `PHYSICAL` card can be replaced or renewed a total of 8 times. For `VIRTUAL`, the card will
30+
* retain the same card token and PAN and receive an updated expiry and CVC2 code. `product_id`,
31+
* `shipping_method`, `shipping_address`, `carrier` are only relevant for renewing `PHYSICAL` cards.
3032
*/
3133
class CardRenewParams
3234
private constructor(
@@ -83,8 +85,8 @@ private constructor(
8385
fun productId(): Optional<String> = body.productId()
8486

8587
/**
86-
* Shipping method for the card. Use of options besides `STANDARD` require additional
87-
* permissions.
88+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options besides
89+
* `STANDARD` require additional permissions.
8890
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
8991
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with tracking
9092
* - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
@@ -265,8 +267,8 @@ private constructor(
265267
fun productId(productId: JsonField<String>) = apply { body.productId(productId) }
266268

267269
/**
268-
* Shipping method for the card. Use of options besides `STANDARD` require additional
269-
* permissions.
270+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options
271+
* besides `STANDARD` require additional permissions.
270272
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
271273
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
272274
* tracking
@@ -523,8 +525,8 @@ private constructor(
523525
fun productId(): Optional<String> = productId.getOptional("product_id")
524526

525527
/**
526-
* Shipping method for the card. Use of options besides `STANDARD` require additional
527-
* permissions.
528+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options
529+
* besides `STANDARD` require additional permissions.
528530
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
529531
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
530532
* tracking
@@ -708,8 +710,8 @@ private constructor(
708710
fun productId(productId: JsonField<String>) = apply { this.productId = productId }
709711

710712
/**
711-
* Shipping method for the card. Use of options besides `STANDARD` require additional
712-
* permissions.
713+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options
714+
* besides `STANDARD` require additional permissions.
713715
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
714716
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with
715717
* tracking
@@ -834,8 +836,8 @@ private constructor(
834836
}
835837

836838
/**
837-
* Shipping method for the card. Use of options besides `STANDARD` require additional
838-
* permissions.
839+
* Shipping method for the card. Only applies to cards of type PHYSICAL. Use of options besides
840+
* `STANDARD` require additional permissions.
839841
* - `STANDARD` - USPS regular mail or similar international option, with no tracking
840842
* - `STANDARD_WITH_TRACKING` - USPS regular mail or similar international option, with tracking
841843
* - `PRIORITY` - USPS Priority, 1-3 day shipping, with tracking
@@ -858,7 +860,7 @@ private constructor(
858860

859861
companion object {
860862

861-
@JvmField val _2_DAY = of("2-DAY")
863+
@JvmField val _2_DAY = of("2_DAY")
862864

863865
@JvmField val EXPEDITED = of("EXPEDITED")
864866

0 commit comments

Comments
 (0)