Skip to content

Commit a429a2e

Browse files
feat(api): add AMEX to network enum in settlement reports
1 parent 0df0d6c commit a429a2e

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 190
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-599dd2ac665b09566a84c4871ffb3b7313f6b40d0808b8ab4df63bec608b4f9f.yml
3-
openapi_spec_hash: 429e0ad5e3aae4f63935859c2ac64fdc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-ab626b78e088455e814b80debc85d420839bc11f95416491fef6a0460f2d95ed.yml
3+
openapi_spec_hash: f6ae1bbed371a5d45927cd63797a9908
44
config_hash: ac8326134e692f3f3bdec82396bbec80

src/lithic/resources/reports/settlement/network_totals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def list(
8383
end: Union[str, datetime] | Omit = omit,
8484
ending_before: str | Omit = omit,
8585
institution_id: str | Omit = omit,
86-
network: Literal["VISA", "MASTERCARD", "MAESTRO", "INTERLINK"] | Omit = omit,
86+
network: Literal["AMEX", "VISA", "MASTERCARD", "MAESTRO", "INTERLINK"] | Omit = omit,
8787
page_size: int | Omit = omit,
8888
report_date: Union[str, date] | Omit = omit,
8989
report_date_begin: Union[str, date] | Omit = omit,
@@ -227,7 +227,7 @@ def list(
227227
end: Union[str, datetime] | Omit = omit,
228228
ending_before: str | Omit = omit,
229229
institution_id: str | Omit = omit,
230-
network: Literal["VISA", "MASTERCARD", "MAESTRO", "INTERLINK"] | Omit = omit,
230+
network: Literal["AMEX", "VISA", "MASTERCARD", "MAESTRO", "INTERLINK"] | Omit = omit,
231231
page_size: int | Omit = omit,
232232
report_date: Union[str, date] | Omit = omit,
233233
report_date_begin: Union[str, date] | Omit = omit,

src/lithic/types/reports/settlement/network_total_list_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class NetworkTotalListParams(TypedDict, total=False):
3333
institution_id: str
3434
"""Institution ID to filter on."""
3535

36-
network: Literal["VISA", "MASTERCARD", "MAESTRO", "INTERLINK"]
36+
network: Literal["AMEX", "VISA", "MASTERCARD", "MAESTRO", "INTERLINK"]
3737
"""Network to filter on."""
3838

3939
page_size: int

src/lithic/types/settlement_detail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class SettlementDetail(BaseModel):
6565
interchange_gross_amount: int
6666
"""The total amount of interchange."""
6767

68-
network: Literal["INTERLINK", "MAESTRO", "MASTERCARD", "UNKNOWN", "VISA"]
68+
network: Literal["AMEX", "INTERLINK", "MAESTRO", "MASTERCARD", "UNKNOWN", "VISA"]
6969
"""Card network where the transaction took place."""
7070

7171
other_fees_details: OtherFeesDetails

src/lithic/types/settlement_summary_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SettlementSummaryDetails(BaseModel):
2424
interchange_gross_amount: Optional[int] = None
2525
"""The total amount of interchange."""
2626

27-
network: Optional[Literal["INTERLINK", "MAESTRO", "MASTERCARD", "UNKNOWN", "VISA"]] = None
27+
network: Optional[Literal["AMEX", "INTERLINK", "MAESTRO", "MASTERCARD", "UNKNOWN", "VISA"]] = None
2828
"""Card network where the transaction took place"""
2929

3030
other_fees_gross_amount: Optional[int] = None

tests/api_resources/reports/settlement/test_network_totals.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def test_method_list_with_all_params(self, client: Lithic) -> None:
6969
end=parse_datetime("2019-12-27T18:11:19.117Z"),
7070
ending_before="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
7171
institution_id="institution_id",
72-
network="VISA",
72+
network="AMEX",
7373
page_size=1,
7474
report_date=parse_date("2019-12-27"),
7575
report_date_begin=parse_date("2019-12-27"),
@@ -155,7 +155,7 @@ async def test_method_list_with_all_params(self, async_client: AsyncLithic) -> N
155155
end=parse_datetime("2019-12-27T18:11:19.117Z"),
156156
ending_before="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
157157
institution_id="institution_id",
158-
network="VISA",
158+
network="AMEX",
159159
page_size=1,
160160
report_date=parse_date("2019-12-27"),
161161
report_date_begin=parse_date("2019-12-27"),

0 commit comments

Comments
 (0)