Skip to content

Commit 0ba9512

Browse files
committed
added appLaunchURL mapping
1 parent 84ddb92 commit 0ba9512

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/constants.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,11 @@ export const TOP_LEVEL_FIELDS: {
160160
type: Array,
161161
templatable: true,
162162
},
163+
appLaunchURL: {
164+
required: false,
165+
type: 'string',
166+
templatable: true,
167+
},
163168
// Expiration Keys
164169
expirationDate: {
165170
type: 'string', // W3C date, as a string

src/lib/base-pass.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,21 @@ export class PassBase extends PassStructure {
191191
else delete this.fields.associatedStoreIdentifiers;
192192
}
193193

194+
/**
195+
* A URL the system passes to the associated app from
196+
* associatedStoreIdentifiers during launch.
197+
*/
198+
get appLaunchURL(): ApplePass['appLaunchURL'] {
199+
return this.fields.appLaunchURL;
200+
}
201+
set appLaunchURL(v: ApplePass['appLaunchURL']) {
202+
if (!v) {
203+
delete this.fields.appLaunchURL;
204+
} else {
205+
this.fields.appLaunchURL = v;
206+
}
207+
}
208+
194209
/**
195210
* Brief description of the pass, used by the iOS accessibility technologies.
196211
* Don’t try to include all of the data on the pass in its description,

0 commit comments

Comments
 (0)