agentpay-python 0.1.0__tar.gz → 0.1.1__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.4
2
2
  Name: agentpay-python
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: AgentPay Python SDK — AI agent ödeme altyapısı
5
5
  Author-email: AIPP <aippcore@gmail.com>
6
6
  License: MIT
@@ -72,9 +72,9 @@ class AgentPayClient:
72
72
  resp.raise_for_status()
73
73
  data = resp.json()
74
74
  return BalanceInfo(
75
- balance=data["balance"],
76
- credits_used=data["credits_used"],
77
- credits_remaining=data["credits_remaining"],
75
+ balance=data.get("credits", data.get("balance", 0)),
76
+ credits_used=data.get("credits_used", 0),
77
+ credits_remaining=data.get("credits", data.get("credits_remaining", 0)),
78
78
  )
79
79
 
80
80
  def forecast(
@@ -121,9 +121,9 @@ class AgentPayClient:
121
121
  resp.raise_for_status()
122
122
  data = resp.json()
123
123
  return SpendResult(
124
- success=data.get("success", True),
125
- credits_used=data.get("credits_used", amount),
126
- credits_remaining=data.get("credits_remaining", 0),
124
+ success=data.get("ok", data.get("success", True)),
125
+ credits_used=data.get("spent", data.get("credits_used", amount)),
126
+ credits_remaining=data.get("new_balance", data.get("credits_remaining", 0)),
127
127
  message=data.get("message", ""),
128
128
  )
129
129
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentpay-python
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: AgentPay Python SDK — AI agent ödeme altyapısı
5
5
  Author-email: AIPP <aippcore@gmail.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "agentpay-python"
7
- version = "0.1.0"
7
+ version = "0.1.1"
8
8
  description = "AgentPay Python SDK — AI agent ödeme altyapısı"
9
9
  readme = "README.md"
10
10
  authors = [