File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
packages/models-library/src/models_library/api_schemas_payments
services/payments/src/simcore_service_payments/models Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- from pydantic . errors import PydanticErrorMixin
1+ from common_library . errors_classes import OsparcErrorMixin
22
33
4- class _BaseRpcApiError (PydanticErrorMixin , ValueError ):
4+ class _BaseRpcApiError (OsparcErrorMixin , ValueError ):
55 @classmethod
66 def get_full_class_name (cls ) -> str :
77 # Can be used as unique code identifier
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ class PaymentsTransactionsDB(BaseModel):
5050 from_attributes = True ,
5151 json_schema_extra = {
5252 "examples" : [
53- _EXAMPLE_AFTER_INIT ,
53+ _EXAMPLE_AFTER_INIT , # type: ignore[list-item]
5454 # successful completion
5555 {
56- ** _EXAMPLE_AFTER_INIT ,
56+ ** _EXAMPLE_AFTER_INIT , # type: ignore[dict-item]
5757 "invoice_url" : "https://my-fake-pdf-link.com" ,
5858 "stripe_invoice_id" : "12345" ,
5959 "invoice_pdf_url" : "https://my-fake-pdf-link.com" ,
@@ -89,10 +89,10 @@ class PaymentsMethodsDB(BaseModel):
8989 from_attributes = True ,
9090 json_schema_extra = {
9191 "examples" : [
92- _EXAMPLE_AFTER_INIT_PAYMENT_METHOD ,
92+ _EXAMPLE_AFTER_INIT_PAYMENT_METHOD , # type: ignore[list-item]
9393 # successful completion
9494 {
95- ** _EXAMPLE_AFTER_INIT_PAYMENT_METHOD ,
95+ ** _EXAMPLE_AFTER_INIT_PAYMENT_METHOD , # type: ignore[dict-item]
9696 "completed_at" : "2023-09-27T10:00:15" ,
9797 "state" : "SUCCESS" ,
9898 "state_message" : "Payment method completed successfully" ,
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ class AckPayment(_BaseAckPayment):
9090 model_config = ConfigDict (
9191 json_schema_extra = {
9292 "example" : _EXAMPLES [1 ].copy (), # shown in openapi.json
93- "examples" : _EXAMPLES ,
93+ "examples" : _EXAMPLES , # type: ignore[dict-item]
9494 }
9595 )
9696
You can’t perform that action at this time.
0 commit comments