Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions tests/contracts/sdk-contract.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "awsys-sdk-contract/1",
"version": "1.0.12",
"version": "1.0.13",
"platformBaseline": "2026-09",
"baseUrl": "https://awsys.co",
"auth": {
Expand Down Expand Up @@ -3278,8 +3278,10 @@
"path": "/api/affiliate/programs",
"query": {},
"body": {
"name": "P",
"commissionRate": 10
"name": "Launch Affiliate",
"commissionType": "cpc",
"cpcRate": 0.5,
"cookieDurationDays": 30
}
},
"response": {
Expand All @@ -3306,7 +3308,8 @@
"_nanoseconds": 0
}
}
}
},
"note": "create request: name(3-100 chars), commissionType in {cpc,cpa_return,both}; cpcRate(0.01-10) required if cpc/both; cpaRate(0.01-1000) required if cpa_return/both; cookieDurationDays optional (default, 1-365). Source: functions/affiliate/index.js:135. NOTE: request enum is cpc/cpa_return/both, but RESPONSES may carry legacy 'cpa' \u2014 read models should accept the wider set."
},
{
"id": "affiliate_programs_list",
Expand Down
Loading