connections-sdk 1.0.0__tar.gz → 1.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: connections_sdk
3
- Version: 1.0.0
3
+ Version: 1.1.0
4
4
  Summary: A Python SDK for payment processing
5
5
  Author: Basis Theory
6
6
  Author-email: support@basistheory.com
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "connections_sdk"
7
- version = "1.0.0"
7
+ version = "1.1.0"
8
8
  description = "A Python SDK for payment processing"
9
9
  authors = ["Basis Theory <support@basistheory.com>"]
10
10
  readme = "README.md"
@@ -283,8 +283,6 @@ class CheckoutClient:
283
283
  if request.override_provider_properties:
284
284
  payload = always_merger.merge(payload, request.override_provider_properties)
285
285
 
286
- print(f"Payload: {json.dumps(payload, indent=2)}")
287
-
288
286
  return payload
289
287
 
290
288
  def _transform_checkout_response(self, response_data: Dict[str, Any], request: TransactionRequest) -> TransactionResponse:
@@ -23,7 +23,7 @@ def validate_required_fields(data: TransactionRequest) -> None:
23
23
  Raises:
24
24
  ValidationError: If required fields are missing
25
25
  """
26
- if not data.amount or not data.amount.value:
26
+ if data.amount is None or data.amount.value is None:
27
27
  raise ValidationError("amount.value is required")
28
28
  if not data.source or not data.source.type or not data.source.id:
29
29
  raise ValidationError("source.type and source.id are required")
File without changes