Skip to content

Commit a9d0c8a

Browse files
hyochanclaude
andcommitted
docs: update compiled knowledge base
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f3808f8 commit a9d0c8a

3 files changed

Lines changed: 15 additions & 14 deletions

File tree

knowledge/_claude-context/context.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# OpenIAP Project Context
22

33
> **Auto-generated for Claude Code**
4-
> Last updated: 2026-01-20T01:17:35.950Z
4+
> Last updated: 2026-01-20T21:43:18.692Z
55
>
66
> Usage: `claude --context knowledge/_claude-context/context.md`
77
@@ -114,20 +114,21 @@ input RequestPurchaseAndroidProps {
114114
| Cross-platform type reference | YES | `developerBillingOption: DeveloperBillingOptionParamsAndroid` |
115115
| Internal implementation | NO (not API) | `val offerToken` in Kotlin data class |
116116

117-
### Internal vs API Fields
117+
### Type vs Field Suffix
118118

119-
- **API fields** (GraphQL schema): ALWAYS use platform suffix
120-
- **Internal fields** (Kotlin/Swift data classes not exposed): No suffix needed
119+
- **Type names**: Cross-platform types ALWAYS use platform suffix (`DeveloperBillingOptionParamsAndroid`)
120+
- **Fields in platform-specific inputs**: NO suffix needed (parent type indicates platform)
121+
- **Fields in cross-platform types**: Use suffix for platform-specific fields
121122

122123
```kotlin
123-
// Internal helper data class - no suffix needed
124-
internal data class AndroidPurchaseArgs(
125-
val offerToken: String?, // Internal, no suffix OK
126-
val isOfferPersonalized: Boolean? // Internal, no suffix OK
127-
)
128-
129-
// But when reading from API props, use the suffixed names:
130-
val offerToken = params.offerTokenAndroid // ✓ API uses suffix
124+
// Cross-platform SDK usage
125+
requestPurchase {
126+
google {
127+
skus = listOf("product_id")
128+
offerToken = "discount_offer_token" // ✓ Clean - no redundant suffix
129+
isOfferPersonalized = false
130+
}
131+
}
131132
```
132133

133134
### Cross-Platform Functions

packages/docs/public/llms-full.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> OpenIAP: Unified in-app purchase specification for iOS & Android
44
> Documentation: https://openiap.dev
55
> Quick Reference: https://openiap.dev/llms.txt
6-
> Generated: 2026-01-20T01:17:35.964Z
6+
> Generated: 2026-01-20T21:43:18.697Z
77

88
## Table of Contents
99
1. Installation

packages/docs/public/llms.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
> OpenIAP: Unified in-app purchase specification for iOS & Android
44
> Documentation: https://openiap.dev
55
> Full Reference: https://openiap.dev/llms-full.txt
6-
> Generated: 2026-01-20T01:17:35.964Z
6+
> Generated: 2026-01-20T21:43:18.697Z
77

88
## Installation
99

0 commit comments

Comments
 (0)