|
1 | 1 | package appstore
|
2 | 2 |
|
3 | 3 | import (
|
4 |
| - "github.com/golang-jwt/jwt/v4" |
| 4 | + "github.com/golang-jwt/jwt/v5" |
5 | 5 | )
|
6 | 6 |
|
7 | 7 | // OrderLookupResponse https://developer.apple.com/documentation/appstoreserverapi/orderlookupresponse
|
@@ -111,6 +111,30 @@ func (J JWSRenewalInfoDecodedPayload) Valid() error {
|
111 | 111 | return nil
|
112 | 112 | }
|
113 | 113 |
|
| 114 | +func (J JWSRenewalInfoDecodedPayload) GetAudience() (jwt.ClaimStrings, error) { |
| 115 | + return nil, nil |
| 116 | +} |
| 117 | + |
| 118 | +func (J JWSRenewalInfoDecodedPayload) GetExpirationTime() (*jwt.NumericDate, error) { |
| 119 | + return nil, nil |
| 120 | +} |
| 121 | + |
| 122 | +func (J JWSRenewalInfoDecodedPayload) GetIssuedAt() (*jwt.NumericDate, error) { |
| 123 | + return nil, nil |
| 124 | +} |
| 125 | + |
| 126 | +func (J JWSRenewalInfoDecodedPayload) GetIssuer() (string, error) { |
| 127 | + return "", nil |
| 128 | +} |
| 129 | + |
| 130 | +func (J JWSRenewalInfoDecodedPayload) GetNotBefore() (*jwt.NumericDate, error) { |
| 131 | + return nil, nil |
| 132 | +} |
| 133 | + |
| 134 | +func (J JWSRenewalInfoDecodedPayload) GetSubject() (string, error) { |
| 135 | + return "", nil |
| 136 | +} |
| 137 | + |
114 | 138 | // JWSDecodedHeader https://developer.apple.com/documentation/appstoreserverapi/jwsdecodedheader
|
115 | 139 | type JWSDecodedHeader struct {
|
116 | 140 | Alg string `json:"alg,omitempty"`
|
@@ -178,6 +202,29 @@ type JWSTransaction struct {
|
178 | 202 | func (J JWSTransaction) Valid() error {
|
179 | 203 | return nil
|
180 | 204 | }
|
| 205 | +func (J JWSTransaction) GetAudience() (jwt.ClaimStrings, error) { |
| 206 | + return nil, nil |
| 207 | +} |
| 208 | + |
| 209 | +func (J JWSTransaction) GetExpirationTime() (*jwt.NumericDate, error) { |
| 210 | + return nil, nil |
| 211 | +} |
| 212 | + |
| 213 | +func (J JWSTransaction) GetIssuedAt() (*jwt.NumericDate, error) { |
| 214 | + return nil, nil |
| 215 | +} |
| 216 | + |
| 217 | +func (J JWSTransaction) GetIssuer() (string, error) { |
| 218 | + return "", nil |
| 219 | +} |
| 220 | + |
| 221 | +func (J JWSTransaction) GetNotBefore() (*jwt.NumericDate, error) { |
| 222 | + return nil, nil |
| 223 | +} |
| 224 | + |
| 225 | +func (J JWSTransaction) GetSubject() (string, error) { |
| 226 | + return "", nil |
| 227 | +} |
181 | 228 |
|
182 | 229 | // https://developer.apple.com/documentation/appstoreserverapi/extendreasoncode
|
183 | 230 | type ExtendReasonCode int
|
|
0 commit comments