Skip to content

Commit 044cc14

Browse files
committed
Release 1.0.7
1 parent 296f271 commit 044cc14

File tree

3 files changed

+32
-11
lines changed

3 files changed

+32
-11
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "flagright"
3-
version = "1.0.6"
3+
version = "1.0.7"
44
description = ""
55
readme = "README.md"
66
authors = []

src/flagright/core/client_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
1414
headers: typing.Dict[str, str] = {
1515
"X-Fern-Language": "Python",
1616
"X-Fern-SDK-Name": "flagright",
17-
"X-Fern-SDK-Version": "1.0.6",
17+
"X-Fern-SDK-Version": "1.0.7",
1818
}
1919
headers["x-api-key"] = self.api_key
2020
return headers

src/flagright/types/card_details.py

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,48 @@ class CardDetails(pydantic.BaseModel):
2121
"""
2222
Model for credit or debit card details
2323
"""
24+
2425
method: CardPaymentMethod
25-
card_fingerprint: typing.Optional[str] = pydantic.Field(alias="cardFingerprint", description="Unique card fingerprint that helps identify a specific card without having to use explicit card number. This is likely available at your card payment scheme provider <span style=\"white-space: nowrap\">`non-empty`</span> ")
26+
card_fingerprint: typing.Optional[str] = pydantic.Field(
27+
alias="cardFingerprint",
28+
description='Unique card fingerprint that helps identify a specific card without having to use explicit card number. This is likely available at your card payment scheme provider <span style="white-space: nowrap">`non-empty`</span> ',
29+
)
2630
card_issued_country: typing.Optional[CountryCode] = pydantic.Field(alias="cardIssuedCountry")
27-
transaction_reference_field: typing.Optional[str] = pydantic.Field(alias="transactionReferenceField", description="Reference for the transaction <span style=\"white-space: nowrap\">`non-empty`</span> ")
28-
3_ds_done: typing.Optional[bool] = pydantic.Field(alias="3dsDone", description="Whether 3ds was successfully enforced for the transaction")
31+
transaction_reference_field: typing.Optional[str] = pydantic.Field(
32+
alias="transactionReferenceField",
33+
description='Reference for the transaction <span style="white-space: nowrap">`non-empty`</span> ',
34+
)
35+
_3_ds_done: typing.Optional[bool] = pydantic.Field(
36+
alias="3dsDone", description="Whether 3ds was successfully enforced for the transaction"
37+
)
2938
name_on_card: typing.Optional[ConsumerName] = pydantic.Field(alias="nameOnCard")
3039
card_expiry: typing.Optional[CardExpiry] = pydantic.Field(alias="cardExpiry")
31-
card_last_4_digits: typing.Optional[str] = pydantic.Field(alias="cardLast4Digits", description="Last 4 digits of Card <span style=\"white-space: nowrap\">`<= 4 characters`</span> ")
40+
card_last_4_digits: typing.Optional[str] = pydantic.Field(
41+
alias="cardLast4Digits",
42+
description='Last 4 digits of Card <span style="white-space: nowrap">`<= 4 characters`</span> ',
43+
)
3244
card_brand: typing.Optional[CardDetailsCardBrand] = pydantic.Field(alias="cardBrand", description="Brand of Card")
33-
card_funding: typing.Optional[CardDetailsCardFunding] = pydantic.Field(alias="cardFunding", description="Funding of Card")
34-
card_authenticated: typing.Optional[bool] = pydantic.Field(alias="cardAuthenticated", description="Authentication of Card")
45+
card_funding: typing.Optional[CardDetailsCardFunding] = pydantic.Field(
46+
alias="cardFunding", description="Funding of Card"
47+
)
48+
card_authenticated: typing.Optional[bool] = pydantic.Field(
49+
alias="cardAuthenticated", description="Authentication of Card"
50+
)
3551
payment_channel: typing.Optional[str] = pydantic.Field(alias="paymentChannel")
3652
card_type: typing.Optional[CardDetailsCardType] = pydantic.Field(alias="cardType")
3753
merchant_details: typing.Optional[CardMerchantDetails] = pydantic.Field(alias="merchantDetails")
38-
tags: typing.Optional[typing.List[Tag]] = pydantic.Field(description="Additional information that can be added via tags")
54+
tags: typing.Optional[typing.List[Tag]] = pydantic.Field(
55+
description="Additional information that can be added via tags"
56+
)
57+
3958
def json(self, **kwargs: typing.Any) -> str:
40-
kwargs_with_defaults: typing.Any = { "by_alias": True, "exclude_unset": True, **kwargs }
59+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
4160
return super().json(**kwargs_with_defaults)
61+
4262
def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
43-
kwargs_with_defaults: typing.Any = { "by_alias": True, "exclude_unset": True, **kwargs }
63+
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
4464
return super().dict(**kwargs_with_defaults)
65+
4566
class Config:
4667
frozen = True
4768
smart_union = True

0 commit comments

Comments
 (0)