Skip to content

Commit

Permalink
feat(api): removes transfer_transaction.created webhook and updates…
Browse files Browse the repository at this point in the history
… to VerificationApplication (#603)

- removes `transfer_transaction.created` webhook
- marks more properties on VerificationApplication as required
- adds new items to VerificationApplication status_reasons enum
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Oct 22, 2024
1 parent 73a28e5 commit b387f32
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 46 deletions.
2 changes: 0 additions & 2 deletions src/lithic/resources/events/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def list(
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down Expand Up @@ -386,7 +385,6 @@ def list(
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down
6 changes: 0 additions & 6 deletions src/lithic/resources/events/subscriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ def create(
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down Expand Up @@ -227,7 +226,6 @@ def update(
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down Expand Up @@ -664,7 +662,6 @@ def send_simulated_example(
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down Expand Up @@ -771,7 +768,6 @@ async def create(
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down Expand Up @@ -902,7 +898,6 @@ async def update(
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down Expand Up @@ -1339,7 +1334,6 @@ async def send_simulated_example(
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,49 +331,47 @@ class Individual(BaseModel):


class VerificationApplication(BaseModel):
created: Optional[datetime] = None
created: datetime
"""Timestamp of when the application was created."""

status: Optional[Literal["ACCEPTED", "PENDING_DOCUMENT", "PENDING_RESUBMIT", "REJECTED"]] = None
status: Literal["ACCEPTED", "PENDING_DOCUMENT", "PENDING_RESUBMIT", "REJECTED"]
"""KYC and KYB evaluation states.
Note: `PENDING_RESUBMIT` and `PENDING_DOCUMENT` are only applicable for the
`ADVANCED` workflow.
"""

status_reasons: Optional[
List[
Literal[
"ADDRESS_VERIFICATION_FAILURE",
"AGE_THRESHOLD_FAILURE",
"COMPLETE_VERIFICATION_FAILURE",
"DOB_VERIFICATION_FAILURE",
"ID_VERIFICATION_FAILURE",
"MAX_DOCUMENT_ATTEMPTS",
"MAX_RESUBMISSION_ATTEMPTS",
"NAME_VERIFICATION_FAILURE",
"OTHER_VERIFICATION_FAILURE",
"RISK_THRESHOLD_FAILURE",
"WATCHLIST_ALERT_FAILURE",
"PRIMARY_BUSINESS_ENTITY_ID_VERIFICATION_FAILURE",
"PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE",
"PRIMARY_BUSINESS_ENTITY_NAME_VERIFICATION_FAILURE",
"PRIMARY_BUSINESS_ENTITY_BUSINESS_OFFICERS_NOT_MATCHED",
"PRIMARY_BUSINESS_ENTITY_SOS_FILING_INACTIVE",
"PRIMARY_BUSINESS_ENTITY_SOS_NOT_MATCHED",
"PRIMARY_BUSINESS_ENTITY_CMRA_FAILURE",
"PRIMARY_BUSINESS_ENTITY_WATCHLIST_FAILURE",
"PRIMARY_BUSINESS_ENTITY_REGISTERED_AGENT_FAILURE",
"CONTROL_PERSON_BLOCKLIST_ALERT_FAILURE",
"CONTROL_PERSON_ID_VERIFICATION_FAILURE",
"CONTROL_PERSON_DOB_VERIFICATION_FAILURE",
"CONTROL_PERSON_NAME_VERIFICATION_FAILURE",
]
status_reasons: List[
Literal[
"ADDRESS_VERIFICATION_FAILURE",
"AGE_THRESHOLD_FAILURE",
"COMPLETE_VERIFICATION_FAILURE",
"DOB_VERIFICATION_FAILURE",
"ID_VERIFICATION_FAILURE",
"MAX_DOCUMENT_ATTEMPTS",
"MAX_RESUBMISSION_ATTEMPTS",
"NAME_VERIFICATION_FAILURE",
"OTHER_VERIFICATION_FAILURE",
"RISK_THRESHOLD_FAILURE",
"WATCHLIST_ALERT_FAILURE",
"PRIMARY_BUSINESS_ENTITY_ID_VERIFICATION_FAILURE",
"PRIMARY_BUSINESS_ENTITY_ADDRESS_VERIFICATION_FAILURE",
"PRIMARY_BUSINESS_ENTITY_NAME_VERIFICATION_FAILURE",
"PRIMARY_BUSINESS_ENTITY_BUSINESS_OFFICERS_NOT_MATCHED",
"PRIMARY_BUSINESS_ENTITY_SOS_FILING_INACTIVE",
"PRIMARY_BUSINESS_ENTITY_SOS_NOT_MATCHED",
"PRIMARY_BUSINESS_ENTITY_CMRA_FAILURE",
"PRIMARY_BUSINESS_ENTITY_WATCHLIST_FAILURE",
"PRIMARY_BUSINESS_ENTITY_REGISTERED_AGENT_FAILURE",
"CONTROL_PERSON_BLOCKLIST_ALERT_FAILURE",
"CONTROL_PERSON_ID_VERIFICATION_FAILURE",
"CONTROL_PERSON_DOB_VERIFICATION_FAILURE",
"CONTROL_PERSON_NAME_VERIFICATION_FAILURE",
]
] = None
]
"""Reason for the evaluation status."""

updated: Optional[datetime] = None
updated: datetime
"""Timestamp of when the application was last updated."""


Expand Down
1 change: 0 additions & 1 deletion src/lithic/types/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class Event(BaseModel):
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down
1 change: 0 additions & 1 deletion src/lithic/types/event_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ class EventListParams(TypedDict, total=False):
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down
1 change: 0 additions & 1 deletion src/lithic/types/event_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ class EventSubscription(BaseModel):
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down
1 change: 0 additions & 1 deletion src/lithic/types/events/subscription_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class SubscriptionCreateParams(TypedDict, total=False):
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ class SubscriptionSendSimulatedExampleParams(TypedDict, total=False):
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down
1 change: 0 additions & 1 deletion src/lithic/types/events/subscription_update_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class SubscriptionUpdateParams(TypedDict, total=False):
"settlement_report.updated",
"statements.created",
"three_ds_authentication.created",
"transfer_transaction.created",
"tokenization.approval_request",
"tokenization.result",
"tokenization.two_factor_authentication_code",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,16 @@ class LineItemListResponse(BaseModel):
"AUTHORIZATION_REVERSAL",
"BALANCE_INQUIRY",
"BILLING_ERROR",
"BILLING_ERROR_REVERSAL",
"CASH_BACK",
"CASH_BACK_REVERSAL",
"CLEARING",
"CORRECTION_CREDIT",
"CORRECTION_DEBIT",
"CREDIT_AUTHORIZATION",
"CREDIT_AUTHORIZATION_ADVICE",
"CURRENCY_CONVERSION",
"CURRENCY_CONVERSION_REVERSAL",
"DISPUTE_WON",
"EXTERNAL_ACH_CANCELED",
"EXTERNAL_ACH_INITIATED",
Expand All @@ -86,8 +89,11 @@ class LineItemListResponse(BaseModel):
"FINANCIAL_AUTHORIZATION",
"FINANCIAL_CREDIT_AUTHORIZATION",
"INTEREST",
"INTEREST_REVERSAL",
"LATE_PAYMENT",
"LATE_PAYMENT_REVERSAL",
"PROVISIONAL_CREDIT",
"PROVISIONAL_CREDIT_REVERSAL",
"RETURN",
"RETURN_REVERSAL",
"TRANSFER",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,16 @@ class Data(BaseModel):
"AUTHORIZATION_REVERSAL",
"BALANCE_INQUIRY",
"BILLING_ERROR",
"BILLING_ERROR_REVERSAL",
"CASH_BACK",
"CASH_BACK_REVERSAL",
"CLEARING",
"CORRECTION_CREDIT",
"CORRECTION_DEBIT",
"CREDIT_AUTHORIZATION",
"CREDIT_AUTHORIZATION_ADVICE",
"CURRENCY_CONVERSION",
"CURRENCY_CONVERSION_REVERSAL",
"DISPUTE_WON",
"EXTERNAL_ACH_CANCELED",
"EXTERNAL_ACH_INITIATED",
Expand All @@ -86,8 +89,11 @@ class Data(BaseModel):
"FINANCIAL_AUTHORIZATION",
"FINANCIAL_CREDIT_AUTHORIZATION",
"INTEREST",
"INTEREST_REVERSAL",
"LATE_PAYMENT",
"LATE_PAYMENT_REVERSAL",
"PROVISIONAL_CREDIT",
"PROVISIONAL_CREDIT_REVERSAL",
"RETURN",
"RETURN_REVERSAL",
"TRANSFER",
Expand Down
6 changes: 6 additions & 0 deletions src/lithic/types/financial_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@ class Event(BaseModel):
"AUTHORIZATION_REVERSAL",
"BALANCE_INQUIRY",
"BILLING_ERROR",
"BILLING_ERROR_REVERSAL",
"CASH_BACK",
"CASH_BACK_REVERSAL",
"CLEARING",
"CORRECTION_CREDIT",
"CORRECTION_DEBIT",
"CREDIT_AUTHORIZATION",
"CREDIT_AUTHORIZATION_ADVICE",
"CURRENCY_CONVERSION",
"CURRENCY_CONVERSION_REVERSAL",
"DISPUTE_WON",
"EXTERNAL_ACH_CANCELED",
"EXTERNAL_ACH_INITIATED",
Expand All @@ -77,8 +80,11 @@ class Event(BaseModel):
"FINANCIAL_AUTHORIZATION",
"FINANCIAL_CREDIT_AUTHORIZATION",
"INTEREST",
"INTEREST_REVERSAL",
"LATE_PAYMENT",
"LATE_PAYMENT_REVERSAL",
"PROVISIONAL_CREDIT",
"PROVISIONAL_CREDIT_REVERSAL",
"RETURN",
"RETURN_REVERSAL",
"TRANSFER",
Expand Down

0 comments on commit b387f32

Please sign in to comment.