Skip to content

Commit

Permalink
Merge 0f48ca1 into 287c85d
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed May 9, 2024
2 parents 287c85d + 0f48ca1 commit c7b65c0
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1020
v1023
4 changes: 4 additions & 0 deletions stripe/_charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,10 @@ class Receipt(StripeObject):
"""
Defines whether the authorized amount can be over-captured or not
"""
preferred_locales: Optional[List[str]]
"""
EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
"""
read_method: Optional[
Literal[
"contact_emv",
Expand Down
4 changes: 4 additions & 0 deletions stripe/_confirmation_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,10 @@ class Networks(StripeObject):
"""
Contains information about card networks that can be used to process the payment.
"""
preferred_locales: Optional[List[str]]
"""
EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
"""
read_method: Optional[
Literal[
"contact_emv",
Expand Down
4 changes: 4 additions & 0 deletions stripe/_payment_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,10 @@ class Networks(StripeObject):
"""
Contains information about card networks that can be used to process the payment.
"""
preferred_locales: Optional[List[str]]
"""
EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
"""
read_method: Optional[
Literal[
"contact_emv",
Expand Down
2 changes: 1 addition & 1 deletion stripe/financial_connections/_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class CreateParamsAccountHolder(TypedDict):
"""

class CreateParamsFilters(TypedDict):
countries: List[str]
countries: NotRequired[List[str]]
"""
List of countries from which to collect accounts.
"""
Expand Down
2 changes: 1 addition & 1 deletion stripe/financial_connections/_session_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class CreateParamsAccountHolder(TypedDict):
"""

class CreateParamsFilters(TypedDict):
countries: List[str]
countries: NotRequired[List[str]]
"""
List of countries from which to collect accounts.
"""
Expand Down
47 changes: 47 additions & 0 deletions stripe/issuing/_dispute.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,16 @@ class MerchandiseNotAsDescribed(StripeObject):
Date when the product was returned or attempted to be returned.
"""

class NoValidAuthorization(StripeObject):
additional_documentation: Optional[ExpandableField["File"]]
"""
(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
"""
explanation: Optional[str]
"""
Explanation of why the cardholder is disputing this transaction.
"""

class NotReceived(StripeObject):
additional_documentation: Optional[ExpandableField["File"]]
"""
Expand Down Expand Up @@ -207,13 +217,15 @@ class ServiceNotAsDescribed(StripeObject):
duplicate: Optional[Duplicate]
fraudulent: Optional[Fraudulent]
merchandise_not_as_described: Optional[MerchandiseNotAsDescribed]
no_valid_authorization: Optional[NoValidAuthorization]
not_received: Optional[NotReceived]
other: Optional[Other]
reason: Literal[
"canceled",
"duplicate",
"fraudulent",
"merchandise_not_as_described",
"no_valid_authorization",
"not_received",
"other",
"service_not_as_described",
Expand All @@ -227,6 +239,7 @@ class ServiceNotAsDescribed(StripeObject):
"duplicate": Duplicate,
"fraudulent": Fraudulent,
"merchandise_not_as_described": MerchandiseNotAsDescribed,
"no_valid_authorization": NoValidAuthorization,
"not_received": NotReceived,
"other": Other,
"service_not_as_described": ServiceNotAsDescribed,
Expand Down Expand Up @@ -293,6 +306,12 @@ class CreateParamsEvidence(TypedDict):
"""
Evidence provided when `reason` is 'merchandise_not_as_described'.
"""
no_valid_authorization: NotRequired[
"Literal['']|Dispute.CreateParamsEvidenceNoValidAuthorization"
]
"""
Evidence provided when `reason` is 'no_valid_authorization'.
"""
not_received: NotRequired[
"Literal['']|Dispute.CreateParamsEvidenceNotReceived"
]
Expand All @@ -309,6 +328,7 @@ class CreateParamsEvidence(TypedDict):
"duplicate",
"fraudulent",
"merchandise_not_as_described",
"no_valid_authorization",
"not_received",
"other",
"service_not_as_described",
Expand Down Expand Up @@ -434,6 +454,16 @@ class CreateParamsEvidenceMerchandiseNotAsDescribed(TypedDict):
Date when the product was returned or attempted to be returned.
"""

class CreateParamsEvidenceNoValidAuthorization(TypedDict):
additional_documentation: NotRequired["Literal['']|str"]
"""
(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
"""
explanation: NotRequired["Literal['']|str"]
"""
Explanation of why the cardholder is disputing this transaction.
"""

class CreateParamsEvidenceNotReceived(TypedDict):
additional_documentation: NotRequired["Literal['']|str"]
"""
Expand Down Expand Up @@ -599,6 +629,12 @@ class ModifyParamsEvidence(TypedDict):
"""
Evidence provided when `reason` is 'merchandise_not_as_described'.
"""
no_valid_authorization: NotRequired[
"Literal['']|Dispute.ModifyParamsEvidenceNoValidAuthorization"
]
"""
Evidence provided when `reason` is 'no_valid_authorization'.
"""
not_received: NotRequired[
"Literal['']|Dispute.ModifyParamsEvidenceNotReceived"
]
Expand All @@ -615,6 +651,7 @@ class ModifyParamsEvidence(TypedDict):
"duplicate",
"fraudulent",
"merchandise_not_as_described",
"no_valid_authorization",
"not_received",
"other",
"service_not_as_described",
Expand Down Expand Up @@ -740,6 +777,16 @@ class ModifyParamsEvidenceMerchandiseNotAsDescribed(TypedDict):
Date when the product was returned or attempted to be returned.
"""

class ModifyParamsEvidenceNoValidAuthorization(TypedDict):
additional_documentation: NotRequired["Literal['']|str"]
"""
(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
"""
explanation: NotRequired["Literal['']|str"]
"""
Explanation of why the cardholder is disputing this transaction.
"""

class ModifyParamsEvidenceNotReceived(TypedDict):
additional_documentation: NotRequired["Literal['']|str"]
"""
Expand Down
34 changes: 34 additions & 0 deletions stripe/issuing/_dispute_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ class CreateParamsEvidence(TypedDict):
"""
Evidence provided when `reason` is 'merchandise_not_as_described'.
"""
no_valid_authorization: NotRequired[
"Literal['']|DisputeService.CreateParamsEvidenceNoValidAuthorization"
]
"""
Evidence provided when `reason` is 'no_valid_authorization'.
"""
not_received: NotRequired[
"Literal['']|DisputeService.CreateParamsEvidenceNotReceived"
]
Expand All @@ -79,6 +85,7 @@ class CreateParamsEvidence(TypedDict):
"duplicate",
"fraudulent",
"merchandise_not_as_described",
"no_valid_authorization",
"not_received",
"other",
"service_not_as_described",
Expand Down Expand Up @@ -204,6 +211,16 @@ class CreateParamsEvidenceMerchandiseNotAsDescribed(TypedDict):
Date when the product was returned or attempted to be returned.
"""

class CreateParamsEvidenceNoValidAuthorization(TypedDict):
additional_documentation: NotRequired["Literal['']|str"]
"""
(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
"""
explanation: NotRequired["Literal['']|str"]
"""
Explanation of why the cardholder is disputing this transaction.
"""

class CreateParamsEvidenceNotReceived(TypedDict):
additional_documentation: NotRequired["Literal['']|str"]
"""
Expand Down Expand Up @@ -385,6 +402,12 @@ class UpdateParamsEvidence(TypedDict):
"""
Evidence provided when `reason` is 'merchandise_not_as_described'.
"""
no_valid_authorization: NotRequired[
"Literal['']|DisputeService.UpdateParamsEvidenceNoValidAuthorization"
]
"""
Evidence provided when `reason` is 'no_valid_authorization'.
"""
not_received: NotRequired[
"Literal['']|DisputeService.UpdateParamsEvidenceNotReceived"
]
Expand All @@ -403,6 +426,7 @@ class UpdateParamsEvidence(TypedDict):
"duplicate",
"fraudulent",
"merchandise_not_as_described",
"no_valid_authorization",
"not_received",
"other",
"service_not_as_described",
Expand Down Expand Up @@ -528,6 +552,16 @@ class UpdateParamsEvidenceMerchandiseNotAsDescribed(TypedDict):
Date when the product was returned or attempted to be returned.
"""

class UpdateParamsEvidenceNoValidAuthorization(TypedDict):
additional_documentation: NotRequired["Literal['']|str"]
"""
(ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute.
"""
explanation: NotRequired["Literal['']|str"]
"""
Explanation of why the cardholder is disputing this transaction.
"""

class UpdateParamsEvidenceNotReceived(TypedDict):
additional_documentation: NotRequired["Literal['']|str"]
"""
Expand Down

0 comments on commit c7b65c0

Please sign in to comment.