Skip to content

Commit b987bc0

Browse files
feat(api): make filter optional for Spend Velocity Auth Rules
fix(api): rename WIRE_DRAWDOWN_REQUEST to WIRE_INBOUND_DRAWDOWN_REQUEST
1 parent 06ce143 commit b987bc0

File tree

6 files changed

+54
-63
lines changed

6 files changed

+54
-63
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 176
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-4ecc06edca2cfad4eaf11573611e89823fda5f56370bac5cd02a498a6b277d09.yml
3-
openapi_spec_hash: 8f4a30bec4348cbde85b1e65bef9189a
4-
config_hash: 751a4cc75aa0276b40cc2c7879b24dea
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c06c4d54858775fef1de57e33d471e997cb28fe0c925fd7b08ba45fdd335e938.yml
3+
openapi_spec_hash: 23745357b2171bcdfb5d30bfef1df48d
4+
config_hash: 9dddee5f7af579864599849cb28a0770

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@
55
The Lithic Go library provides convenient access to the [Lithic REST API](https://docs.lithic.com)
66
from applications written in Go.
77

8-
## MCP Server
9-
10-
Use the Lithic MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
11-
12-
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=lithic-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImxpdGhpYy1tY3AiXX0)
13-
[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22lithic-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22lithic-mcp%22%5D%7D)
14-
15-
> Note: You may need to set environment variables in your MCP client.
16-
178
## Installation
189

1910
<!-- x-release-please-start-version -->

accountactivity.go

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -786,20 +786,20 @@ func (r AccountActivityListResponseSource) IsKnown() bool {
786786
type AccountActivityListResponseType string
787787

788788
const (
789-
AccountActivityListResponseTypeOriginationCredit AccountActivityListResponseType = "ORIGINATION_CREDIT"
790-
AccountActivityListResponseTypeOriginationDebit AccountActivityListResponseType = "ORIGINATION_DEBIT"
791-
AccountActivityListResponseTypeReceiptCredit AccountActivityListResponseType = "RECEIPT_CREDIT"
792-
AccountActivityListResponseTypeReceiptDebit AccountActivityListResponseType = "RECEIPT_DEBIT"
793-
AccountActivityListResponseTypeWireInboundPayment AccountActivityListResponseType = "WIRE_INBOUND_PAYMENT"
794-
AccountActivityListResponseTypeWireInboundAdmin AccountActivityListResponseType = "WIRE_INBOUND_ADMIN"
795-
AccountActivityListResponseTypeWireOutboundPayment AccountActivityListResponseType = "WIRE_OUTBOUND_PAYMENT"
796-
AccountActivityListResponseTypeWireOutboundAdmin AccountActivityListResponseType = "WIRE_OUTBOUND_ADMIN"
797-
AccountActivityListResponseTypeWireDrawdownRequest AccountActivityListResponseType = "WIRE_DRAWDOWN_REQUEST"
789+
AccountActivityListResponseTypeOriginationCredit AccountActivityListResponseType = "ORIGINATION_CREDIT"
790+
AccountActivityListResponseTypeOriginationDebit AccountActivityListResponseType = "ORIGINATION_DEBIT"
791+
AccountActivityListResponseTypeReceiptCredit AccountActivityListResponseType = "RECEIPT_CREDIT"
792+
AccountActivityListResponseTypeReceiptDebit AccountActivityListResponseType = "RECEIPT_DEBIT"
793+
AccountActivityListResponseTypeWireInboundPayment AccountActivityListResponseType = "WIRE_INBOUND_PAYMENT"
794+
AccountActivityListResponseTypeWireInboundAdmin AccountActivityListResponseType = "WIRE_INBOUND_ADMIN"
795+
AccountActivityListResponseTypeWireOutboundPayment AccountActivityListResponseType = "WIRE_OUTBOUND_PAYMENT"
796+
AccountActivityListResponseTypeWireOutboundAdmin AccountActivityListResponseType = "WIRE_OUTBOUND_ADMIN"
797+
AccountActivityListResponseTypeWireInboundDrawdownRequest AccountActivityListResponseType = "WIRE_INBOUND_DRAWDOWN_REQUEST"
798798
)
799799

800800
func (r AccountActivityListResponseType) IsKnown() bool {
801801
switch r {
802-
case AccountActivityListResponseTypeOriginationCredit, AccountActivityListResponseTypeOriginationDebit, AccountActivityListResponseTypeReceiptCredit, AccountActivityListResponseTypeReceiptDebit, AccountActivityListResponseTypeWireInboundPayment, AccountActivityListResponseTypeWireInboundAdmin, AccountActivityListResponseTypeWireOutboundPayment, AccountActivityListResponseTypeWireOutboundAdmin, AccountActivityListResponseTypeWireDrawdownRequest:
802+
case AccountActivityListResponseTypeOriginationCredit, AccountActivityListResponseTypeOriginationDebit, AccountActivityListResponseTypeReceiptCredit, AccountActivityListResponseTypeReceiptDebit, AccountActivityListResponseTypeWireInboundPayment, AccountActivityListResponseTypeWireInboundAdmin, AccountActivityListResponseTypeWireOutboundPayment, AccountActivityListResponseTypeWireOutboundAdmin, AccountActivityListResponseTypeWireInboundDrawdownRequest:
803803
return true
804804
}
805805
return false
@@ -1487,20 +1487,20 @@ func (r AccountActivityGetTransactionResponseSource) IsKnown() bool {
14871487
type AccountActivityGetTransactionResponseType string
14881488

14891489
const (
1490-
AccountActivityGetTransactionResponseTypeOriginationCredit AccountActivityGetTransactionResponseType = "ORIGINATION_CREDIT"
1491-
AccountActivityGetTransactionResponseTypeOriginationDebit AccountActivityGetTransactionResponseType = "ORIGINATION_DEBIT"
1492-
AccountActivityGetTransactionResponseTypeReceiptCredit AccountActivityGetTransactionResponseType = "RECEIPT_CREDIT"
1493-
AccountActivityGetTransactionResponseTypeReceiptDebit AccountActivityGetTransactionResponseType = "RECEIPT_DEBIT"
1494-
AccountActivityGetTransactionResponseTypeWireInboundPayment AccountActivityGetTransactionResponseType = "WIRE_INBOUND_PAYMENT"
1495-
AccountActivityGetTransactionResponseTypeWireInboundAdmin AccountActivityGetTransactionResponseType = "WIRE_INBOUND_ADMIN"
1496-
AccountActivityGetTransactionResponseTypeWireOutboundPayment AccountActivityGetTransactionResponseType = "WIRE_OUTBOUND_PAYMENT"
1497-
AccountActivityGetTransactionResponseTypeWireOutboundAdmin AccountActivityGetTransactionResponseType = "WIRE_OUTBOUND_ADMIN"
1498-
AccountActivityGetTransactionResponseTypeWireDrawdownRequest AccountActivityGetTransactionResponseType = "WIRE_DRAWDOWN_REQUEST"
1490+
AccountActivityGetTransactionResponseTypeOriginationCredit AccountActivityGetTransactionResponseType = "ORIGINATION_CREDIT"
1491+
AccountActivityGetTransactionResponseTypeOriginationDebit AccountActivityGetTransactionResponseType = "ORIGINATION_DEBIT"
1492+
AccountActivityGetTransactionResponseTypeReceiptCredit AccountActivityGetTransactionResponseType = "RECEIPT_CREDIT"
1493+
AccountActivityGetTransactionResponseTypeReceiptDebit AccountActivityGetTransactionResponseType = "RECEIPT_DEBIT"
1494+
AccountActivityGetTransactionResponseTypeWireInboundPayment AccountActivityGetTransactionResponseType = "WIRE_INBOUND_PAYMENT"
1495+
AccountActivityGetTransactionResponseTypeWireInboundAdmin AccountActivityGetTransactionResponseType = "WIRE_INBOUND_ADMIN"
1496+
AccountActivityGetTransactionResponseTypeWireOutboundPayment AccountActivityGetTransactionResponseType = "WIRE_OUTBOUND_PAYMENT"
1497+
AccountActivityGetTransactionResponseTypeWireOutboundAdmin AccountActivityGetTransactionResponseType = "WIRE_OUTBOUND_ADMIN"
1498+
AccountActivityGetTransactionResponseTypeWireInboundDrawdownRequest AccountActivityGetTransactionResponseType = "WIRE_INBOUND_DRAWDOWN_REQUEST"
14991499
)
15001500

15011501
func (r AccountActivityGetTransactionResponseType) IsKnown() bool {
15021502
switch r {
1503-
case AccountActivityGetTransactionResponseTypeOriginationCredit, AccountActivityGetTransactionResponseTypeOriginationDebit, AccountActivityGetTransactionResponseTypeReceiptCredit, AccountActivityGetTransactionResponseTypeReceiptDebit, AccountActivityGetTransactionResponseTypeWireInboundPayment, AccountActivityGetTransactionResponseTypeWireInboundAdmin, AccountActivityGetTransactionResponseTypeWireOutboundPayment, AccountActivityGetTransactionResponseTypeWireOutboundAdmin, AccountActivityGetTransactionResponseTypeWireDrawdownRequest:
1503+
case AccountActivityGetTransactionResponseTypeOriginationCredit, AccountActivityGetTransactionResponseTypeOriginationDebit, AccountActivityGetTransactionResponseTypeReceiptCredit, AccountActivityGetTransactionResponseTypeReceiptDebit, AccountActivityGetTransactionResponseTypeWireInboundPayment, AccountActivityGetTransactionResponseTypeWireInboundAdmin, AccountActivityGetTransactionResponseTypeWireOutboundPayment, AccountActivityGetTransactionResponseTypeWireOutboundAdmin, AccountActivityGetTransactionResponseTypeWireInboundDrawdownRequest:
15041504
return true
15051505
}
15061506
return false

authrulev2.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2319,11 +2319,11 @@ func (r RuleStatsExamplesDecision) IsKnown() bool {
23192319
}
23202320

23212321
type VelocityLimitParams struct {
2322-
Filters VelocityLimitParamsFilters `json:"filters,required"`
23232322
// Velocity over the current day since 00:00 / 12 AM in Eastern Time
23242323
Period VelocityLimitPeriod `json:"period,required"`
23252324
// The scope the velocity is calculated for
2326-
Scope VelocityLimitParamsScope `json:"scope,required"`
2325+
Scope VelocityLimitParamsScope `json:"scope,required"`
2326+
Filters VelocityLimitParamsFilters `json:"filters"`
23272327
// The maximum amount of spend velocity allowed in the period in minor units (the
23282328
// smallest unit of a currency, e.g. cents for USD). Transactions exceeding this
23292329
// limit will be declined.
@@ -2340,9 +2340,9 @@ type VelocityLimitParams struct {
23402340
// velocityLimitParamsJSON contains the JSON metadata for the struct
23412341
// [VelocityLimitParams]
23422342
type velocityLimitParamsJSON struct {
2343-
Filters apijson.Field
23442343
Period apijson.Field
23452344
Scope apijson.Field
2345+
Filters apijson.Field
23462346
LimitAmount apijson.Field
23472347
LimitCount apijson.Field
23482348
raw string
@@ -2361,6 +2361,22 @@ func (r VelocityLimitParams) implementsAuthRuleCurrentVersionParameters() {}
23612361

23622362
func (r VelocityLimitParams) implementsAuthRuleDraftVersionParameters() {}
23632363

2364+
// The scope the velocity is calculated for
2365+
type VelocityLimitParamsScope string
2366+
2367+
const (
2368+
VelocityLimitParamsScopeCard VelocityLimitParamsScope = "CARD"
2369+
VelocityLimitParamsScopeAccount VelocityLimitParamsScope = "ACCOUNT"
2370+
)
2371+
2372+
func (r VelocityLimitParamsScope) IsKnown() bool {
2373+
switch r {
2374+
case VelocityLimitParamsScopeCard, VelocityLimitParamsScopeAccount:
2375+
return true
2376+
}
2377+
return false
2378+
}
2379+
23642380
type VelocityLimitParamsFilters struct {
23652381
// ISO-3166-1 alpha-3 Country Codes to exclude from the velocity calculation.
23662382
// Transactions matching any of the provided will be excluded from the calculated
@@ -2430,22 +2446,6 @@ func (r VelocityLimitParamsFiltersIncludePanEntryMode) IsKnown() bool {
24302446
return false
24312447
}
24322448

2433-
// The scope the velocity is calculated for
2434-
type VelocityLimitParamsScope string
2435-
2436-
const (
2437-
VelocityLimitParamsScopeCard VelocityLimitParamsScope = "CARD"
2438-
VelocityLimitParamsScopeAccount VelocityLimitParamsScope = "ACCOUNT"
2439-
)
2440-
2441-
func (r VelocityLimitParamsScope) IsKnown() bool {
2442-
switch r {
2443-
case VelocityLimitParamsScopeCard, VelocityLimitParamsScopeAccount:
2444-
return true
2445-
}
2446-
return false
2447-
}
2448-
24492449
// Velocity over the current day since 00:00 / 12 AM in Eastern Time
24502450
type VelocityLimitPeriod struct {
24512451
Type VelocityLimitPeriodType `json:"type,required"`

payment.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -816,20 +816,20 @@ func (r PaymentStatus) IsKnown() bool {
816816
type PaymentType string
817817

818818
const (
819-
PaymentTypeOriginationCredit PaymentType = "ORIGINATION_CREDIT"
820-
PaymentTypeOriginationDebit PaymentType = "ORIGINATION_DEBIT"
821-
PaymentTypeReceiptCredit PaymentType = "RECEIPT_CREDIT"
822-
PaymentTypeReceiptDebit PaymentType = "RECEIPT_DEBIT"
823-
PaymentTypeWireInboundPayment PaymentType = "WIRE_INBOUND_PAYMENT"
824-
PaymentTypeWireInboundAdmin PaymentType = "WIRE_INBOUND_ADMIN"
825-
PaymentTypeWireOutboundPayment PaymentType = "WIRE_OUTBOUND_PAYMENT"
826-
PaymentTypeWireOutboundAdmin PaymentType = "WIRE_OUTBOUND_ADMIN"
827-
PaymentTypeWireDrawdownRequest PaymentType = "WIRE_DRAWDOWN_REQUEST"
819+
PaymentTypeOriginationCredit PaymentType = "ORIGINATION_CREDIT"
820+
PaymentTypeOriginationDebit PaymentType = "ORIGINATION_DEBIT"
821+
PaymentTypeReceiptCredit PaymentType = "RECEIPT_CREDIT"
822+
PaymentTypeReceiptDebit PaymentType = "RECEIPT_DEBIT"
823+
PaymentTypeWireInboundPayment PaymentType = "WIRE_INBOUND_PAYMENT"
824+
PaymentTypeWireInboundAdmin PaymentType = "WIRE_INBOUND_ADMIN"
825+
PaymentTypeWireOutboundPayment PaymentType = "WIRE_OUTBOUND_PAYMENT"
826+
PaymentTypeWireOutboundAdmin PaymentType = "WIRE_OUTBOUND_ADMIN"
827+
PaymentTypeWireInboundDrawdownRequest PaymentType = "WIRE_INBOUND_DRAWDOWN_REQUEST"
828828
)
829829

830830
func (r PaymentType) IsKnown() bool {
831831
switch r {
832-
case PaymentTypeOriginationCredit, PaymentTypeOriginationDebit, PaymentTypeReceiptCredit, PaymentTypeReceiptDebit, PaymentTypeWireInboundPayment, PaymentTypeWireInboundAdmin, PaymentTypeWireOutboundPayment, PaymentTypeWireOutboundAdmin, PaymentTypeWireDrawdownRequest:
832+
case PaymentTypeOriginationCredit, PaymentTypeOriginationDebit, PaymentTypeReceiptCredit, PaymentTypeReceiptDebit, PaymentTypeWireInboundPayment, PaymentTypeWireInboundAdmin, PaymentTypeWireOutboundPayment, PaymentTypeWireOutboundAdmin, PaymentTypeWireInboundDrawdownRequest:
833833
return true
834834
}
835835
return false

webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7320,12 +7320,12 @@ const (
73207320
ParsedWebhookEventTypeWireInboundAdmin ParsedWebhookEventType = "WIRE_INBOUND_ADMIN"
73217321
ParsedWebhookEventTypeWireOutboundPayment ParsedWebhookEventType = "WIRE_OUTBOUND_PAYMENT"
73227322
ParsedWebhookEventTypeWireOutboundAdmin ParsedWebhookEventType = "WIRE_OUTBOUND_ADMIN"
7323-
ParsedWebhookEventTypeWireDrawdownRequest ParsedWebhookEventType = "WIRE_DRAWDOWN_REQUEST"
7323+
ParsedWebhookEventTypeWireInboundDrawdownRequest ParsedWebhookEventType = "WIRE_INBOUND_DRAWDOWN_REQUEST"
73247324
)
73257325

73267326
func (r ParsedWebhookEventType) IsKnown() bool {
73277327
switch r {
7328-
case ParsedWebhookEventTypeChecking, ParsedWebhookEventTypeSavings, ParsedWebhookEventTypeIssuing, ParsedWebhookEventTypeReserve, ParsedWebhookEventTypeOperating, ParsedWebhookEventTypeChargedOffFees, ParsedWebhookEventTypeChargedOffInterest, ParsedWebhookEventTypeChargedOffPrincipal, ParsedWebhookEventTypeSecurity, ParsedWebhookEventTypeProgramReceivables, ParsedWebhookEventTypeCollection, ParsedWebhookEventTypeProgramBankAccountsPayable, ParsedWebhookEventTypeOriginationCredit, ParsedWebhookEventTypeOriginationDebit, ParsedWebhookEventTypeReceiptCredit, ParsedWebhookEventTypeReceiptDebit, ParsedWebhookEventTypeWireInboundPayment, ParsedWebhookEventTypeWireInboundAdmin, ParsedWebhookEventTypeWireOutboundPayment, ParsedWebhookEventTypeWireOutboundAdmin, ParsedWebhookEventTypeWireDrawdownRequest:
7328+
case ParsedWebhookEventTypeChecking, ParsedWebhookEventTypeSavings, ParsedWebhookEventTypeIssuing, ParsedWebhookEventTypeReserve, ParsedWebhookEventTypeOperating, ParsedWebhookEventTypeChargedOffFees, ParsedWebhookEventTypeChargedOffInterest, ParsedWebhookEventTypeChargedOffPrincipal, ParsedWebhookEventTypeSecurity, ParsedWebhookEventTypeProgramReceivables, ParsedWebhookEventTypeCollection, ParsedWebhookEventTypeProgramBankAccountsPayable, ParsedWebhookEventTypeOriginationCredit, ParsedWebhookEventTypeOriginationDebit, ParsedWebhookEventTypeReceiptCredit, ParsedWebhookEventTypeReceiptDebit, ParsedWebhookEventTypeWireInboundPayment, ParsedWebhookEventTypeWireInboundAdmin, ParsedWebhookEventTypeWireOutboundPayment, ParsedWebhookEventTypeWireOutboundAdmin, ParsedWebhookEventTypeWireInboundDrawdownRequest:
73297329
return true
73307330
}
73317331
return false

0 commit comments

Comments
 (0)