diff --git a/dotnet/DemoEventTicket.cs b/dotnet/DemoEventTicket.cs index 2d507f0..8dbad2a 100644 --- a/dotnet/DemoEventTicket.cs +++ b/dotnet/DemoEventTicket.cs @@ -1001,8 +1001,7 @@ public string CreateJWTExistingObjects(string issuerId) { new EventTicketObject { - Id = $"{issuerId}.EVENT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.EVENT_CLASS_SUFFIX" + Id = $"{issuerId}.EVENT_OBJECT_SUFFIX" } }); @@ -1011,8 +1010,7 @@ public string CreateJWTExistingObjects(string issuerId) { new FlightObject { - Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.FLIGHT_CLASS_SUFFIX" + Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX" } }); @@ -1021,8 +1019,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GenericObject { - Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GENERIC_CLASS_SUFFIX" + Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX" } }); @@ -1031,8 +1028,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GiftCardObject { - Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GIFT_CARD_CLASS_SUFFIX" + Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX" } }); @@ -1041,8 +1037,7 @@ public string CreateJWTExistingObjects(string issuerId) { new LoyaltyObject { - Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX", - ClassId = $"{issuerId}.LOYALTY_CLASS_SUFFIX" + Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX" } }); @@ -1051,8 +1046,7 @@ public string CreateJWTExistingObjects(string issuerId) { new OfferObject { - Id = $"{issuerId}.OFFER_OBJECT_SUFFIX", - ClassId = $"{issuerId}.OFFER_CLASS_SUFFIX" + Id = $"{issuerId}.OFFER_OBJECT_SUFFIX" } }); @@ -1061,8 +1055,7 @@ public string CreateJWTExistingObjects(string issuerId) { new TransitObject { - Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.TRANSIT_CLASS_SUFFIX" + Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX" } }); diff --git a/dotnet/DemoFlight.cs b/dotnet/DemoFlight.cs index 5658076..4acdec0 100644 --- a/dotnet/DemoFlight.cs +++ b/dotnet/DemoFlight.cs @@ -971,8 +971,7 @@ public string CreateJWTExistingObjects(string issuerId) { new EventTicketObject { - Id = $"{issuerId}.EVENT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.EVENT_CLASS_SUFFIX" + Id = $"{issuerId}.EVENT_OBJECT_SUFFIX" } }); @@ -981,8 +980,7 @@ public string CreateJWTExistingObjects(string issuerId) { new FlightObject { - Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.FLIGHT_CLASS_SUFFIX" + Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX" } }); @@ -991,8 +989,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GenericObject { - Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GENERIC_CLASS_SUFFIX" + Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX" } }); @@ -1001,8 +998,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GiftCardObject { - Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GIFT_CARD_CLASS_SUFFIX" + Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX" } }); @@ -1011,8 +1007,7 @@ public string CreateJWTExistingObjects(string issuerId) { new LoyaltyObject { - Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX", - ClassId = $"{issuerId}.LOYALTY_CLASS_SUFFIX" + Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX" } }); @@ -1021,8 +1016,7 @@ public string CreateJWTExistingObjects(string issuerId) { new OfferObject { - Id = $"{issuerId}.OFFER_OBJECT_SUFFIX", - ClassId = $"{issuerId}.OFFER_CLASS_SUFFIX" + Id = $"{issuerId}.OFFER_OBJECT_SUFFIX" } }); @@ -1031,8 +1025,7 @@ public string CreateJWTExistingObjects(string issuerId) { new TransitObject { - Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.TRANSIT_CLASS_SUFFIX" + Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX" } }); diff --git a/dotnet/DemoGeneric.cs b/dotnet/DemoGeneric.cs index 9dc0cb5..b6e7014 100644 --- a/dotnet/DemoGeneric.cs +++ b/dotnet/DemoGeneric.cs @@ -865,8 +865,7 @@ public string CreateJWTExistingObjects(string issuerId) { new EventTicketObject { - Id = $"{issuerId}.EVENT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.EVENT_CLASS_SUFFIX" + Id = $"{issuerId}.EVENT_OBJECT_SUFFIX" } }); @@ -875,8 +874,7 @@ public string CreateJWTExistingObjects(string issuerId) { new FlightObject { - Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.FLIGHT_CLASS_SUFFIX" + Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX" } }); @@ -885,8 +883,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GenericObject { - Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GENERIC_CLASS_SUFFIX" + Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX" } }); @@ -895,8 +892,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GiftCardObject { - Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GIFT_CARD_CLASS_SUFFIX" + Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX" } }); @@ -905,8 +901,7 @@ public string CreateJWTExistingObjects(string issuerId) { new LoyaltyObject { - Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX", - ClassId = $"{issuerId}.LOYALTY_CLASS_SUFFIX" + Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX" } }); @@ -915,8 +910,7 @@ public string CreateJWTExistingObjects(string issuerId) { new OfferObject { - Id = $"{issuerId}.OFFER_OBJECT_SUFFIX", - ClassId = $"{issuerId}.OFFER_CLASS_SUFFIX" + Id = $"{issuerId}.OFFER_OBJECT_SUFFIX" } }); @@ -925,8 +919,7 @@ public string CreateJWTExistingObjects(string issuerId) { new TransitObject { - Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.TRANSIT_CLASS_SUFFIX" + Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX" } }); diff --git a/dotnet/DemoGiftCard.cs b/dotnet/DemoGiftCard.cs index 3e83b05..74d9d9a 100644 --- a/dotnet/DemoGiftCard.cs +++ b/dotnet/DemoGiftCard.cs @@ -931,8 +931,7 @@ public string CreateJWTExistingObjects(string issuerId) { new EventTicketObject { - Id = $"{issuerId}.EVENT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.EVENT_CLASS_SUFFIX" + Id = $"{issuerId}.EVENT_OBJECT_SUFFIX" } }); @@ -941,8 +940,7 @@ public string CreateJWTExistingObjects(string issuerId) { new FlightObject { - Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.FLIGHT_CLASS_SUFFIX" + Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX" } }); @@ -951,8 +949,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GenericObject { - Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GENERIC_CLASS_SUFFIX" + Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX" } }); @@ -961,8 +958,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GiftCardObject { - Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GIFT_CARD_CLASS_SUFFIX" + Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX" } }); @@ -971,8 +967,7 @@ public string CreateJWTExistingObjects(string issuerId) { new LoyaltyObject { - Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX", - ClassId = $"{issuerId}.LOYALTY_CLASS_SUFFIX" + Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX" } }); @@ -981,8 +976,7 @@ public string CreateJWTExistingObjects(string issuerId) { new OfferObject { - Id = $"{issuerId}.OFFER_OBJECT_SUFFIX", - ClassId = $"{issuerId}.OFFER_CLASS_SUFFIX" + Id = $"{issuerId}.OFFER_OBJECT_SUFFIX" } }); @@ -991,8 +985,7 @@ public string CreateJWTExistingObjects(string issuerId) { new TransitObject { - Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.TRANSIT_CLASS_SUFFIX" + Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX" } }); diff --git a/dotnet/DemoLoyalty.cs b/dotnet/DemoLoyalty.cs index 002597c..8b47fcd 100644 --- a/dotnet/DemoLoyalty.cs +++ b/dotnet/DemoLoyalty.cs @@ -961,8 +961,7 @@ public string CreateJWTExistingObjects(string issuerId) { new EventTicketObject { - Id = $"{issuerId}.EVENT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.EVENT_CLASS_SUFFIX" + Id = $"{issuerId}.EVENT_OBJECT_SUFFIX" } }); @@ -971,8 +970,7 @@ public string CreateJWTExistingObjects(string issuerId) { new FlightObject { - Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.FLIGHT_CLASS_SUFFIX" + Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX" } }); @@ -981,8 +979,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GenericObject { - Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GENERIC_CLASS_SUFFIX" + Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX" } }); @@ -991,8 +988,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GiftCardObject { - Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GIFT_CARD_CLASS_SUFFIX" + Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX" } }); @@ -1001,8 +997,7 @@ public string CreateJWTExistingObjects(string issuerId) { new LoyaltyObject { - Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX", - ClassId = $"{issuerId}.LOYALTY_CLASS_SUFFIX" + Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX" } }); @@ -1011,8 +1006,7 @@ public string CreateJWTExistingObjects(string issuerId) { new OfferObject { - Id = $"{issuerId}.OFFER_OBJECT_SUFFIX", - ClassId = $"{issuerId}.OFFER_CLASS_SUFFIX" + Id = $"{issuerId}.OFFER_OBJECT_SUFFIX" } }); @@ -1021,8 +1015,7 @@ public string CreateJWTExistingObjects(string issuerId) { new TransitObject { - Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.TRANSIT_CLASS_SUFFIX" + Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX" } }); diff --git a/dotnet/DemoOffer.cs b/dotnet/DemoOffer.cs index 2e6ee31..ef3fd06 100644 --- a/dotnet/DemoOffer.cs +++ b/dotnet/DemoOffer.cs @@ -937,8 +937,7 @@ public string CreateJWTExistingObjects(string issuerId) { new EventTicketObject { - Id = $"{issuerId}.EVENT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.EVENT_CLASS_SUFFIX" + Id = $"{issuerId}.EVENT_OBJECT_SUFFIX" } }); @@ -947,8 +946,7 @@ public string CreateJWTExistingObjects(string issuerId) { new FlightObject { - Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.FLIGHT_CLASS_SUFFIX" + Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX" } }); @@ -957,8 +955,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GenericObject { - Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GENERIC_CLASS_SUFFIX" + Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX" } }); @@ -967,8 +964,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GiftCardObject { - Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GIFT_CARD_CLASS_SUFFIX" + Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX" } }); @@ -977,8 +973,7 @@ public string CreateJWTExistingObjects(string issuerId) { new LoyaltyObject { - Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX", - ClassId = $"{issuerId}.LOYALTY_CLASS_SUFFIX" + Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX" } }); @@ -987,8 +982,7 @@ public string CreateJWTExistingObjects(string issuerId) { new OfferObject { - Id = $"{issuerId}.OFFER_OBJECT_SUFFIX", - ClassId = $"{issuerId}.OFFER_CLASS_SUFFIX" + Id = $"{issuerId}.OFFER_OBJECT_SUFFIX" } }); @@ -997,8 +991,7 @@ public string CreateJWTExistingObjects(string issuerId) { new TransitObject { - Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.TRANSIT_CLASS_SUFFIX" + Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX" } }); diff --git a/dotnet/DemoTransit.cs b/dotnet/DemoTransit.cs index 04b04ff..9c5fa09 100644 --- a/dotnet/DemoTransit.cs +++ b/dotnet/DemoTransit.cs @@ -1009,8 +1009,7 @@ public string CreateJWTExistingObjects(string issuerId) { new EventTicketObject { - Id = $"{issuerId}.EVENT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.EVENT_CLASS_SUFFIX" + Id = $"{issuerId}.EVENT_OBJECT_SUFFIX" } }); @@ -1019,8 +1018,7 @@ public string CreateJWTExistingObjects(string issuerId) { new FlightObject { - Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.FLIGHT_CLASS_SUFFIX" + Id = $"{issuerId}.FLIGHT_OBJECT_SUFFIX" } }); @@ -1029,8 +1027,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GenericObject { - Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GENERIC_CLASS_SUFFIX" + Id = $"{issuerId}.GENERIC_OBJECT_SUFFIX" } }); @@ -1039,8 +1036,7 @@ public string CreateJWTExistingObjects(string issuerId) { new GiftCardObject { - Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX", - ClassId = $"{issuerId}.GIFT_CARD_CLASS_SUFFIX" + Id = $"{issuerId}.GIFT_CARD_OBJECT_SUFFIX" } }); @@ -1049,8 +1045,7 @@ public string CreateJWTExistingObjects(string issuerId) { new LoyaltyObject { - Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX", - ClassId = $"{issuerId}.LOYALTY_CLASS_SUFFIX" + Id = $"{issuerId}.LOYALTY_OBJECT_SUFFIX" } }); @@ -1059,8 +1054,7 @@ public string CreateJWTExistingObjects(string issuerId) { new OfferObject { - Id = $"{issuerId}.OFFER_OBJECT_SUFFIX", - ClassId = $"{issuerId}.OFFER_CLASS_SUFFIX" + Id = $"{issuerId}.OFFER_OBJECT_SUFFIX" } }); @@ -1069,8 +1063,7 @@ public string CreateJWTExistingObjects(string issuerId) { new TransitObject { - Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX", - ClassId = $"{issuerId}.TRANSIT_CLASS_SUFFIX" + Id = $"{issuerId}.TRANSIT_OBJECT_SUFFIX" } }); diff --git a/java/src/main/java/DemoEventTicket.java b/java/src/main/java/DemoEventTicket.java index c53d7c6..8ff9d15 100644 --- a/java/src/main/java/DemoEventTicket.java +++ b/java/src/main/java/DemoEventTicket.java @@ -755,56 +755,49 @@ public String CreateJWTExistingObjects(String issuerId) { "eventTicketObjects", Arrays.asList( new EventTicketObject() - .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "EVENT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")); // Boarding passes objectsToAdd.put( "flightObjects", Arrays.asList( new FlightObject() - .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "FLIGHT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")); // Generic passes objectsToAdd.put( "genericObjects", Arrays.asList( new GenericObject() - .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GENERIC_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")); // Gift cards objectsToAdd.put( "giftCardObjects", Arrays.asList( new GiftCardObject() - .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GIFT_CARD_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")); // Loyalty cards objectsToAdd.put( "loyaltyObjects", Arrays.asList( new LoyaltyObject() - .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "LOYALTY_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")); // Offers objectsToAdd.put( "offerObjects", Arrays.asList( new OfferObject() - .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "OFFER_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")); // Transit passes objectsToAdd.put( "transitObjects", Arrays.asList( new TransitObject() - .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "TRANSIT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")); // Create the JWT as a HashMap object HashMap claims = new HashMap(); diff --git a/java/src/main/java/DemoFlight.java b/java/src/main/java/DemoFlight.java index 60e391a..adbf1b0 100644 --- a/java/src/main/java/DemoFlight.java +++ b/java/src/main/java/DemoFlight.java @@ -730,56 +730,49 @@ public String CreateJWTExistingObjects(String issuerId) { "eventTicketObjects", Arrays.asList( new EventTicketObject() - .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "EVENT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")); // Boarding passes objectsToAdd.put( "flightObjects", Arrays.asList( new FlightObject() - .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "FLIGHT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")); // Generic passes objectsToAdd.put( "genericObjects", Arrays.asList( new GenericObject() - .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GENERIC_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")); // Gift cards objectsToAdd.put( "giftCardObjects", Arrays.asList( new GiftCardObject() - .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GIFT_CARD_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")); // Loyalty cards objectsToAdd.put( "loyaltyObjects", Arrays.asList( new LoyaltyObject() - .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "LOYALTY_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")); // Offers objectsToAdd.put( "offerObjects", Arrays.asList( new OfferObject() - .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "OFFER_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")); // Transit passes objectsToAdd.put( "transitObjects", Arrays.asList( new TransitObject() - .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "TRANSIT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")); // Create the JWT as a HashMap object HashMap claims = new HashMap(); diff --git a/java/src/main/java/DemoGeneric.java b/java/src/main/java/DemoGeneric.java index 14f5b13..1a99735 100644 --- a/java/src/main/java/DemoGeneric.java +++ b/java/src/main/java/DemoGeneric.java @@ -655,56 +655,49 @@ public String CreateJWTExistingObjects(String issuerId) { "eventTicketObjects", Arrays.asList( new EventTicketObject() - .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "EVENT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")); // Boarding passes objectsToAdd.put( "flightObjects", Arrays.asList( new FlightObject() - .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "FLIGHT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")); // Generic passes objectsToAdd.put( "genericObjects", Arrays.asList( new GenericObject() - .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GENERIC_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")); // Gift cards objectsToAdd.put( "giftCardObjects", Arrays.asList( new GiftCardObject() - .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GIFT_CARD_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")); // Loyalty cards objectsToAdd.put( "loyaltyObjects", Arrays.asList( new LoyaltyObject() - .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "LOYALTY_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")); // Offers objectsToAdd.put( "offerObjects", Arrays.asList( new OfferObject() - .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "OFFER_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")); // Transit passes objectsToAdd.put( "transitObjects", Arrays.asList( new TransitObject() - .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "TRANSIT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")); // Create the JWT as a HashMap object HashMap claims = new HashMap(); diff --git a/java/src/main/java/DemoGiftCard.java b/java/src/main/java/DemoGiftCard.java index 38d61ba..8a01f6c 100644 --- a/java/src/main/java/DemoGiftCard.java +++ b/java/src/main/java/DemoGiftCard.java @@ -714,56 +714,49 @@ public String CreateJWTExistingObjects(String issuerId) { "eventTicketObjects", Arrays.asList( new EventTicketObject() - .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "EVENT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")); // Boarding passes objectsToAdd.put( "flightObjects", Arrays.asList( new FlightObject() - .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "FLIGHT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")); // Generic passes objectsToAdd.put( "genericObjects", Arrays.asList( new GenericObject() - .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GENERIC_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")); // Gift cards objectsToAdd.put( "giftCardObjects", Arrays.asList( new GiftCardObject() - .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GIFT_CARD_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")); // Loyalty cards objectsToAdd.put( "loyaltyObjects", Arrays.asList( new LoyaltyObject() - .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "LOYALTY_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")); // Offers objectsToAdd.put( "offerObjects", Arrays.asList( new OfferObject() - .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "OFFER_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")); // Transit passes objectsToAdd.put( "transitObjects", Arrays.asList( new TransitObject() - .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "TRANSIT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")); // Create the JWT as a HashMap object HashMap claims = new HashMap(); diff --git a/java/src/main/java/DemoLoyalty.java b/java/src/main/java/DemoLoyalty.java index 2ef3b34..7d350db 100644 --- a/java/src/main/java/DemoLoyalty.java +++ b/java/src/main/java/DemoLoyalty.java @@ -744,56 +744,49 @@ public String CreateJWTExistingObjects(String issuerId) { "eventTicketObjects", Arrays.asList( new EventTicketObject() - .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "EVENT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")); // Boarding passes objectsToAdd.put( "flightObjects", Arrays.asList( new FlightObject() - .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "FLIGHT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")); // Generic passes objectsToAdd.put( "genericObjects", Arrays.asList( new GenericObject() - .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GENERIC_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")); // Gift cards objectsToAdd.put( "giftCardObjects", Arrays.asList( new GiftCardObject() - .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GIFT_CARD_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")); // Loyalty cards objectsToAdd.put( "loyaltyObjects", Arrays.asList( new LoyaltyObject() - .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "LOYALTY_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")); // Offers objectsToAdd.put( "offerObjects", Arrays.asList( new OfferObject() - .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "OFFER_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")); // Transit passes objectsToAdd.put( "transitObjects", Arrays.asList( new TransitObject() - .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "TRANSIT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")); // Create the JWT as a HashMap object HashMap claims = new HashMap(); diff --git a/java/src/main/java/DemoOffer.java b/java/src/main/java/DemoOffer.java index 8da00f7..1e95fd0 100644 --- a/java/src/main/java/DemoOffer.java +++ b/java/src/main/java/DemoOffer.java @@ -723,56 +723,49 @@ public String CreateJWTExistingObjects(String issuerId) { "eventTicketObjects", Arrays.asList( new EventTicketObject() - .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "EVENT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")); // Boarding passes objectsToAdd.put( "flightObjects", Arrays.asList( new FlightObject() - .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "FLIGHT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")); // Generic passes objectsToAdd.put( "genericObjects", Arrays.asList( new GenericObject() - .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GENERIC_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")); // Gift cards objectsToAdd.put( "giftCardObjects", Arrays.asList( new GiftCardObject() - .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GIFT_CARD_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")); // Loyalty cards objectsToAdd.put( "loyaltyObjects", Arrays.asList( new LoyaltyObject() - .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "LOYALTY_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")); // Offers objectsToAdd.put( "offerObjects", Arrays.asList( new OfferObject() - .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "OFFER_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")); // Transit passes objectsToAdd.put( "transitObjects", Arrays.asList( new TransitObject() - .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "TRANSIT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")); // Create the JWT as a HashMap object HashMap claims = new HashMap(); diff --git a/java/src/main/java/DemoTransit.java b/java/src/main/java/DemoTransit.java index 381b65f..131e984 100644 --- a/java/src/main/java/DemoTransit.java +++ b/java/src/main/java/DemoTransit.java @@ -788,56 +788,49 @@ public String CreateJWTExistingObjects(String issuerId) { "eventTicketObjects", Arrays.asList( new EventTicketObject() - .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "EVENT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "EVENT_OBJECT_SUFFIX")); // Boarding passes objectsToAdd.put( "flightObjects", Arrays.asList( new FlightObject() - .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "FLIGHT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "FLIGHT_OBJECT_SUFFIX")); // Generic passes objectsToAdd.put( "genericObjects", Arrays.asList( new GenericObject() - .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GENERIC_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GENERIC_OBJECT_SUFFIX")); // Gift cards objectsToAdd.put( "giftCardObjects", Arrays.asList( new GiftCardObject() - .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "GIFT_CARD_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "GIFT_CARD_OBJECT_SUFFIX")); // Loyalty cards objectsToAdd.put( "loyaltyObjects", Arrays.asList( new LoyaltyObject() - .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "LOYALTY_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "LOYALTY_OBJECT_SUFFIX")); // Offers objectsToAdd.put( "offerObjects", Arrays.asList( new OfferObject() - .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "OFFER_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "OFFER_OBJECT_SUFFIX")); // Transit passes objectsToAdd.put( "transitObjects", Arrays.asList( new TransitObject() - .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")) - .setClassId(String.format("%s.%s", issuerId, "TRANSIT_CLASS_SUFFIX")))); + .setId(String.format("%s.%s", issuerId, "TRANSIT_OBJECT_SUFFIX")); // Create the JWT as a HashMap object HashMap claims = new HashMap(); diff --git a/nodejs/demo-eventticket.js b/nodejs/demo-eventticket.js index 7e631b6..b70bb8d 100644 --- a/nodejs/demo-eventticket.js +++ b/nodejs/demo-eventticket.js @@ -807,44 +807,37 @@ class DemoEventTicket { let objectsToAdd = { // Event tickets 'eventTicketObjects': [{ - 'id': `${issuerId}.EVENT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.EVENT_CLASS_SUFFIX` + 'id': `${issuerId}.EVENT_OBJECT_SUFFIX` }], // Boarding passes 'flightObjects': [{ - 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.FLIGHT_CLASS_SUFFIX` + 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX` }], // Generic passes 'genericObjects': [{ - 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GENERIC_CLASS_SUFFIX` + 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX` }], // Gift cards 'giftCardObjects': [{ - 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GIFT_CARD_CLASS_SUFFIX` + 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX` }], // Loyalty cards 'loyaltyObjects': [{ - 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX`, - 'classId': `${issuerId}.LOYALTY_CLASS_SUFFIX` + 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX` }], // Offers 'offerObjects': [{ - 'id': `${issuerId}.OFFER_OBJECT_SUFFIX`, - 'classId': `${issuerId}.OFFER_CLASS_SUFFIX` + 'id': `${issuerId}.OFFER_OBJECT_SUFFIX` }], // Transit passes 'transitObjects': [{ - 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.TRANSIT_CLASS_SUFFIX` + 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX` }] } diff --git a/nodejs/demo-flight.js b/nodejs/demo-flight.js index b4bf025..2d403cb 100644 --- a/nodejs/demo-flight.js +++ b/nodejs/demo-flight.js @@ -788,44 +788,37 @@ class DemoFlight { let objectsToAdd = { // Event tickets 'eventTicketObjects': [{ - 'id': `${issuerId}.EVENT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.EVENT_CLASS_SUFFIX` + 'id': `${issuerId}.EVENT_OBJECT_SUFFIX` }], // Boarding passes 'flightObjects': [{ - 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.FLIGHT_CLASS_SUFFIX` + 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX` }], // Generic passes 'genericObjects': [{ - 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GENERIC_CLASS_SUFFIX` + 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX` }], // Gift cards 'giftCardObjects': [{ - 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GIFT_CARD_CLASS_SUFFIX` + 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX` }], // Loyalty cards 'loyaltyObjects': [{ - 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX`, - 'classId': `${issuerId}.LOYALTY_CLASS_SUFFIX` + 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX` }], // Offers 'offerObjects': [{ - 'id': `${issuerId}.OFFER_OBJECT_SUFFIX`, - 'classId': `${issuerId}.OFFER_CLASS_SUFFIX` + 'id': `${issuerId}.OFFER_OBJECT_SUFFIX` }], // Transit passes 'transitObjects': [{ - 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.TRANSIT_CLASS_SUFFIX` + 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX` }] } diff --git a/nodejs/demo-generic.js b/nodejs/demo-generic.js index aaef37c..9a3a855 100644 --- a/nodejs/demo-generic.js +++ b/nodejs/demo-generic.js @@ -686,44 +686,37 @@ class DemoGeneric { let objectsToAdd = { // Event tickets 'eventTicketObjects': [{ - 'id': `${issuerId}.EVENT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.EVENT_CLASS_SUFFIX` + 'id': `${issuerId}.EVENT_OBJECT_SUFFIX` }], // Boarding passes 'flightObjects': [{ - 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.FLIGHT_CLASS_SUFFIX` + 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX` }], // Generic passes 'genericObjects': [{ - 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GENERIC_CLASS_SUFFIX` + 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX` }], // Gift cards 'giftCardObjects': [{ - 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GIFT_CARD_CLASS_SUFFIX` + 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX` }], // Loyalty cards 'loyaltyObjects': [{ - 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX`, - 'classId': `${issuerId}.LOYALTY_CLASS_SUFFIX` + 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX` }], // Offers 'offerObjects': [{ - 'id': `${issuerId}.OFFER_OBJECT_SUFFIX`, - 'classId': `${issuerId}.OFFER_CLASS_SUFFIX` + 'id': `${issuerId}.OFFER_OBJECT_SUFFIX` }], // Transit passes 'transitObjects': [{ - 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.TRANSIT_CLASS_SUFFIX` + 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX` }] } diff --git a/nodejs/demo-giftcard.js b/nodejs/demo-giftcard.js index efe7473..216ba50 100644 --- a/nodejs/demo-giftcard.js +++ b/nodejs/demo-giftcard.js @@ -756,44 +756,37 @@ class DemoGiftCard { let objectsToAdd = { // Event tickets 'eventTicketObjects': [{ - 'id': `${issuerId}.EVENT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.EVENT_CLASS_SUFFIX` + 'id': `${issuerId}.EVENT_OBJECT_SUFFIX` }], // Boarding passes 'flightObjects': [{ - 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.FLIGHT_CLASS_SUFFIX` + 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX` }], // Generic passes 'genericObjects': [{ - 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GENERIC_CLASS_SUFFIX` + 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX` }], // Gift cards 'giftCardObjects': [{ - 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GIFT_CARD_CLASS_SUFFIX` + 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX` }], // Loyalty cards 'loyaltyObjects': [{ - 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX`, - 'classId': `${issuerId}.LOYALTY_CLASS_SUFFIX` + 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX` }], // Offers 'offerObjects': [{ - 'id': `${issuerId}.OFFER_OBJECT_SUFFIX`, - 'classId': `${issuerId}.OFFER_CLASS_SUFFIX` + 'id': `${issuerId}.OFFER_OBJECT_SUFFIX` }], // Transit passes 'transitObjects': [{ - 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.TRANSIT_CLASS_SUFFIX` + 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX` }] } diff --git a/nodejs/demo-loyalty.js b/nodejs/demo-loyalty.js index 1bc88ed..2f7f115 100644 --- a/nodejs/demo-loyalty.js +++ b/nodejs/demo-loyalty.js @@ -778,44 +778,37 @@ class DemoLoyalty { let objectsToAdd = { // Event tickets 'eventTicketObjects': [{ - 'id': `${issuerId}.EVENT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.EVENT_CLASS_SUFFIX` + 'id': `${issuerId}.EVENT_OBJECT_SUFFIX` }], // Boarding passes 'flightObjects': [{ - 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.FLIGHT_CLASS_SUFFIX` + 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX` }], // Generic passes 'genericObjects': [{ - 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GENERIC_CLASS_SUFFIX` + 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX` }], // Gift cards 'giftCardObjects': [{ - 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GIFT_CARD_CLASS_SUFFIX` + 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX` }], // Loyalty cards 'loyaltyObjects': [{ - 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX`, - 'classId': `${issuerId}.LOYALTY_CLASS_SUFFIX` + 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX` }], // Offers 'offerObjects': [{ - 'id': `${issuerId}.OFFER_OBJECT_SUFFIX`, - 'classId': `${issuerId}.OFFER_CLASS_SUFFIX` + 'id': `${issuerId}.OFFER_OBJECT_SUFFIX` }], // Transit passes 'transitObjects': [{ - 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.TRANSIT_CLASS_SUFFIX` + 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX` }] } diff --git a/nodejs/demo-offer.js b/nodejs/demo-offer.js index 1cd46ff..909138a 100644 --- a/nodejs/demo-offer.js +++ b/nodejs/demo-offer.js @@ -760,44 +760,37 @@ class DemoOffer { let objectsToAdd = { // Event tickets 'eventTicketObjects': [{ - 'id': `${issuerId}.EVENT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.EVENT_CLASS_SUFFIX` + 'id': `${issuerId}.EVENT_OBJECT_SUFFIX` }], // Boarding passes 'flightObjects': [{ - 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.FLIGHT_CLASS_SUFFIX` + 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX` }], // Generic passes 'genericObjects': [{ - 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GENERIC_CLASS_SUFFIX` + 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX` }], // Gift cards 'giftCardObjects': [{ - 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GIFT_CARD_CLASS_SUFFIX` + 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX` }], // Loyalty cards 'loyaltyObjects': [{ - 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX`, - 'classId': `${issuerId}.LOYALTY_CLASS_SUFFIX` + 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX` }], // Offers 'offerObjects': [{ - 'id': `${issuerId}.OFFER_OBJECT_SUFFIX`, - 'classId': `${issuerId}.OFFER_CLASS_SUFFIX` + 'id': `${issuerId}.OFFER_OBJECT_SUFFIX` }], // Transit passes 'transitObjects': [{ - 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.TRANSIT_CLASS_SUFFIX` + 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX` }] } diff --git a/nodejs/demo-transit.js b/nodejs/demo-transit.js index 1408b50..eeb3f90 100644 --- a/nodejs/demo-transit.js +++ b/nodejs/demo-transit.js @@ -816,44 +816,37 @@ class DemoTransit { let objectsToAdd = { // Event tickets 'eventTicketObjects': [{ - 'id': `${issuerId}.EVENT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.EVENT_CLASS_SUFFIX` + 'id': `${issuerId}.EVENT_OBJECT_SUFFIX` }], // Boarding passes 'flightObjects': [{ - 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.FLIGHT_CLASS_SUFFIX` + 'id': `${issuerId}.FLIGHT_OBJECT_SUFFIX` }], // Generic passes 'genericObjects': [{ - 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GENERIC_CLASS_SUFFIX` + 'id': `${issuerId}.GENERIC_OBJECT_SUFFIX` }], // Gift cards 'giftCardObjects': [{ - 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX`, - 'classId': `${issuerId}.GIFT_CARD_CLASS_SUFFIX` + 'id': `${issuerId}.GIFT_CARD_OBJECT_SUFFIX` }], // Loyalty cards 'loyaltyObjects': [{ - 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX`, - 'classId': `${issuerId}.LOYALTY_CLASS_SUFFIX` + 'id': `${issuerId}.LOYALTY_OBJECT_SUFFIX` }], // Offers 'offerObjects': [{ - 'id': `${issuerId}.OFFER_OBJECT_SUFFIX`, - 'classId': `${issuerId}.OFFER_CLASS_SUFFIX` + 'id': `${issuerId}.OFFER_OBJECT_SUFFIX` }], // Transit passes 'transitObjects': [{ - 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX`, - 'classId': `${issuerId}.TRANSIT_CLASS_SUFFIX` + 'id': `${issuerId}.TRANSIT_OBJECT_SUFFIX` }] } diff --git a/php/demo_eventticket.php b/php/demo_eventticket.php index c73246f..bb88a0f 100644 --- a/php/demo_eventticket.php +++ b/php/demo_eventticket.php @@ -781,56 +781,49 @@ public function createJwtExistingObjects(string $issuerId) // Event tickets 'eventTicketObjects' => [ [ - 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.EVENT_CLASS_SUFFIX" + 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX" ] ], // Boarding passes 'flightObjects' => [ [ - 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.FLIGHT_CLASS_SUFFIX" + 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX" ] ], // Generic passes 'genericObjects' => [ [ - 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GENERIC_CLASS_SUFFIX" + 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX" ] ], // Gift cards 'giftCardObjects' => [ [ - 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GIFT_CARD_CLASS_SUFFIX" + 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX" ] ], // Loyalty cards 'loyaltyObjects' => [ [ - 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.LOYALTY_CLASS_SUFFIX" + 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX" ] ], // Offers 'offerObjects' => [ [ - 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.OFFER_CLASS_SUFFIX" + 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX" ] ], // Tranist passes 'transitObjects' => [ [ - 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.TRANSIT_CLASS_SUFFIX" + 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX" ] ] ]; diff --git a/php/demo_flight.php b/php/demo_flight.php index edabf8d..d18d8a3 100644 --- a/php/demo_flight.php +++ b/php/demo_flight.php @@ -762,56 +762,49 @@ public function createJwtExistingObjects(string $issuerId) // Event tickets 'eventTicketObjects' => [ [ - 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.EVENT_CLASS_SUFFIX" + 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX" ] ], // Boarding passes 'flightObjects' => [ [ - 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.FLIGHT_CLASS_SUFFIX" + 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX" ] ], // Generic passes 'genericObjects' => [ [ - 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GENERIC_CLASS_SUFFIX" + 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX" ] ], // Gift cards 'giftCardObjects' => [ [ - 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GIFT_CARD_CLASS_SUFFIX" + 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX" ] ], // Loyalty cards 'loyaltyObjects' => [ [ - 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.LOYALTY_CLASS_SUFFIX" + 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX" ] ], // Offers 'offerObjects' => [ [ - 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.OFFER_CLASS_SUFFIX" + 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX" ] ], // Tranist passes 'transitObjects' => [ [ - 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.TRANSIT_CLASS_SUFFIX" + 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX" ] ] ]; diff --git a/php/demo_generic.php b/php/demo_generic.php index 02b9a8b..cb06102 100644 --- a/php/demo_generic.php +++ b/php/demo_generic.php @@ -683,56 +683,49 @@ public function createJwtExistingObjects(string $issuerId) // Event tickets 'eventTicketObjects' => [ [ - 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.EVENT_CLASS_SUFFIX" + 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX" ] ], // Boarding passes 'flightObjects' => [ [ - 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.FLIGHT_CLASS_SUFFIX" + 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX" ] ], // Generic passes 'genericObjects' => [ [ - 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GENERIC_CLASS_SUFFIX" + 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX" ] ], // Gift cards 'giftCardObjects' => [ [ - 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GIFT_CARD_CLASS_SUFFIX" + 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX" ] ], // Loyalty cards 'loyaltyObjects' => [ [ - 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.LOYALTY_CLASS_SUFFIX" + 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX" ] ], // Offers 'offerObjects' => [ [ - 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.OFFER_CLASS_SUFFIX" + 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX" ] ], // Tranist passes 'transitObjects' => [ [ - 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.TRANSIT_CLASS_SUFFIX" + 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX" ] ] ]; diff --git a/php/demo_giftcard.php b/php/demo_giftcard.php index d5cb3b1..8b3813a 100644 --- a/php/demo_giftcard.php +++ b/php/demo_giftcard.php @@ -730,56 +730,49 @@ public function createJwtExistingObjects(string $issuerId) // Event tickets 'eventTicketObjects' => [ [ - 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.EVENT_CLASS_SUFFIX" + 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX" ] ], // Boarding passes 'flightObjects' => [ [ - 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.FLIGHT_CLASS_SUFFIX" + 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX" ] ], // Generic passes 'genericObjects' => [ [ - 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GENERIC_CLASS_SUFFIX" + 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX" ] ], // Gift cards 'giftCardObjects' => [ [ - 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GIFT_CARD_CLASS_SUFFIX" + 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX" ] ], // Loyalty cards 'loyaltyObjects' => [ [ - 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.LOYALTY_CLASS_SUFFIX" + 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX" ] ], // Offers 'offerObjects' => [ [ - 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.OFFER_CLASS_SUFFIX" + 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX" ] ], // Tranist passes 'transitObjects' => [ [ - 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.TRANSIT_CLASS_SUFFIX" + 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX" ] ] ]; diff --git a/php/demo_loyalty.php b/php/demo_loyalty.php index 7441297..9caef71 100644 --- a/php/demo_loyalty.php +++ b/php/demo_loyalty.php @@ -751,56 +751,49 @@ public function createJwtExistingObjects(string $issuerId) // Event tickets 'eventTicketObjects' => [ [ - 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.EVENT_CLASS_SUFFIX" + 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX" ] ], // Boarding passes 'flightObjects' => [ [ - 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.FLIGHT_CLASS_SUFFIX" + 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX" ] ], // Generic passes 'genericObjects' => [ [ - 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GENERIC_CLASS_SUFFIX" + 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX" ] ], // Gift cards 'giftCardObjects' => [ [ - 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GIFT_CARD_CLASS_SUFFIX" + 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX" ] ], // Loyalty cards 'loyaltyObjects' => [ [ - 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.LOYALTY_CLASS_SUFFIX" + 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX" ] ], // Offers 'offerObjects' => [ [ - 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.OFFER_CLASS_SUFFIX" + 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX" ] ], // Tranist passes 'transitObjects' => [ [ - 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.TRANSIT_CLASS_SUFFIX" + 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX" ] ] ]; diff --git a/php/demo_offer.php b/php/demo_offer.php index 7bd8108..ff2ee7b 100644 --- a/php/demo_offer.php +++ b/php/demo_offer.php @@ -734,56 +734,49 @@ public function createJwtExistingObjects(string $issuerId) // Event tickets 'eventTicketObjects' => [ [ - 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.EVENT_CLASS_SUFFIX" + 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX" ] ], // Boarding passes 'flightObjects' => [ [ - 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.FLIGHT_CLASS_SUFFIX" + 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX" ] ], // Generic passes 'genericObjects' => [ [ - 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GENERIC_CLASS_SUFFIX" + 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX" ] ], // Gift cards 'giftCardObjects' => [ [ - 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GIFT_CARD_CLASS_SUFFIX" + 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX" ] ], // Loyalty cards 'loyaltyObjects' => [ [ - 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.LOYALTY_CLASS_SUFFIX" + 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX" ] ], // Offers 'offerObjects' => [ [ - 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.OFFER_CLASS_SUFFIX" + 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX" ] ], // Tranist passes 'transitObjects' => [ [ - 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.TRANSIT_CLASS_SUFFIX" + 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX" ] ] ]; diff --git a/php/demo_transit.php b/php/demo_transit.php index 9c31260..a88b9ab 100644 --- a/php/demo_transit.php +++ b/php/demo_transit.php @@ -790,56 +790,49 @@ public function createJwtExistingObjects(string $issuerId) // Event tickets 'eventTicketObjects' => [ [ - 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.EVENT_CLASS_SUFFIX" + 'id' => "{$issuerId}.EVENT_OBJECT_SUFFIX" ] ], // Boarding passes 'flightObjects' => [ [ - 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.FLIGHT_CLASS_SUFFIX" + 'id' => "{$issuerId}.FLIGHT_OBJECT_SUFFIX" ] ], // Generic passes 'genericObjects' => [ [ - 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GENERIC_CLASS_SUFFIX" + 'id' => "{$issuerId}.GENERIC_OBJECT_SUFFIX" ] ], // Gift cards 'giftCardObjects' => [ [ - 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.GIFT_CARD_CLASS_SUFFIX" + 'id' => "{$issuerId}.GIFT_CARD_OBJECT_SUFFIX" ] ], // Loyalty cards 'loyaltyObjects' => [ [ - 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.LOYALTY_CLASS_SUFFIX" + 'id' => "{$issuerId}.LOYALTY_OBJECT_SUFFIX" ] ], // Offers 'offerObjects' => [ [ - 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.OFFER_CLASS_SUFFIX" + 'id' => "{$issuerId}.OFFER_OBJECT_SUFFIX" ] ], // Tranist passes 'transitObjects' => [ [ - 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX", - 'classId' => "{$issuerId}.TRANSIT_CLASS_SUFFIX" + 'id' => "{$issuerId}.TRANSIT_OBJECT_SUFFIX" ] ] ]; diff --git a/python/demo_eventticket.py b/python/demo_eventticket.py index 4f1cfc7..c119d5e 100644 --- a/python/demo_eventticket.py +++ b/python/demo_eventticket.py @@ -724,44 +724,37 @@ def create_jwt_existing_objects(self, issuer_id: str) -> str: objects_to_add = { # Event tickets 'eventTicketObjects': [{ - 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.EVENT_CLASS_SUFFIX' + 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX' }], # Boarding passes 'flightObjects': [{ - 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.FLIGHT_CLASS_SUFFIX' + 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX' }], # Generic passes 'genericObjects': [{ - 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GENERIC_CLASS_SUFFIX' + 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX' }], # Gift cards 'giftCardObjects': [{ - 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GIFT_CARD_CLASS_SUFFIX' + 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX' }], # Loyalty cards 'loyaltyObjects': [{ - 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.LOYALTY_CLASS_SUFFIX' + 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX' }], # Offers 'offerObjects': [{ - 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.OFFER_CLASS_SUFFIX' + 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX' }], # Transit passes 'transitObjects': [{ - 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.TRANSIT_CLASS_SUFFIX' + 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX' }] } diff --git a/python/demo_flight.py b/python/demo_flight.py index fa2a518..cf41db7 100644 --- a/python/demo_flight.py +++ b/python/demo_flight.py @@ -705,44 +705,37 @@ def create_jwt_existing_objects(self, issuer_id: str) -> str: objects_to_add = { # Event tickets 'eventTicketObjects': [{ - 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.EVENT_CLASS_SUFFIX' + 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX' }], # Boarding passes 'flightObjects': [{ - 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.FLIGHT_CLASS_SUFFIX' + 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX' }], # Generic passes 'genericObjects': [{ - 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GENERIC_CLASS_SUFFIX' + 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX' }], # Gift cards 'giftCardObjects': [{ - 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GIFT_CARD_CLASS_SUFFIX' + 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX' }], # Loyalty cards 'loyaltyObjects': [{ - 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.LOYALTY_CLASS_SUFFIX' + 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX' }], # Offers 'offerObjects': [{ - 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.OFFER_CLASS_SUFFIX' + 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX' }], # Transit passes 'transitObjects': [{ - 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.TRANSIT_CLASS_SUFFIX' + 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX' }] } diff --git a/python/demo_generic.py b/python/demo_generic.py index bc85011..8ff3144 100644 --- a/python/demo_generic.py +++ b/python/demo_generic.py @@ -701,44 +701,37 @@ def create_jwt_existing_objects(self, issuer_id: str) -> str: objects_to_add = { # Event tickets 'eventTicketObjects': [{ - 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.EVENT_CLASS_SUFFIX' + 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX' }], # Boarding passes 'flightObjects': [{ - 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.FLIGHT_CLASS_SUFFIX' + 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX' }], # Generic passes 'genericObjects': [{ - 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GENERIC_CLASS_SUFFIX' + 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX' }], # Gift cards 'giftCardObjects': [{ - 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GIFT_CARD_CLASS_SUFFIX' + 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX' }], # Loyalty cards 'loyaltyObjects': [{ - 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.LOYALTY_CLASS_SUFFIX' + 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX' }], # Offers 'offerObjects': [{ - 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.OFFER_CLASS_SUFFIX' + 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX' }], # Transit passes 'transitObjects': [{ - 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.TRANSIT_CLASS_SUFFIX' + 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX' }] } diff --git a/python/demo_giftcard.py b/python/demo_giftcard.py index 290d4dd..c7dd5ce 100644 --- a/python/demo_giftcard.py +++ b/python/demo_giftcard.py @@ -673,44 +673,37 @@ def create_jwt_existing_objects(self, issuer_id: str) -> str: objects_to_add = { # Event tickets 'eventTicketObjects': [{ - 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.EVENT_CLASS_SUFFIX' + 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX' }], # Boarding passes 'flightObjects': [{ - 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.FLIGHT_CLASS_SUFFIX' + 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX' }], # Generic passes 'genericObjects': [{ - 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GENERIC_CLASS_SUFFIX' + 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX' }], # Gift cards 'giftCardObjects': [{ - 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GIFT_CARD_CLASS_SUFFIX' + 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX' }], # Loyalty cards 'loyaltyObjects': [{ - 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.LOYALTY_CLASS_SUFFIX' + 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX' }], # Offers 'offerObjects': [{ - 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.OFFER_CLASS_SUFFIX' + 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX' }], # Transit passes 'transitObjects': [{ - 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.TRANSIT_CLASS_SUFFIX' + 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX' }] } diff --git a/python/demo_loyalty.py b/python/demo_loyalty.py index 3b04217..2aeba3c 100644 --- a/python/demo_loyalty.py +++ b/python/demo_loyalty.py @@ -697,44 +697,37 @@ def create_jwt_existing_objects(self, issuer_id: str) -> str: objects_to_add = { # Event tickets 'eventTicketObjects': [{ - 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.EVENT_CLASS_SUFFIX' + 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX' }], # Boarding passes 'flightObjects': [{ - 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.FLIGHT_CLASS_SUFFIX' + 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX' }], # Generic passes 'genericObjects': [{ - 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GENERIC_CLASS_SUFFIX' + 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX' }], # Gift cards 'giftCardObjects': [{ - 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GIFT_CARD_CLASS_SUFFIX' + 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX' }], # Loyalty cards 'loyaltyObjects': [{ - 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.LOYALTY_CLASS_SUFFIX' + 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX' }], # Offers 'offerObjects': [{ - 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.OFFER_CLASS_SUFFIX' + 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX' }], # Transit passes 'transitObjects': [{ - 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.TRANSIT_CLASS_SUFFIX' + 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX' }] } diff --git a/python/demo_offer.py b/python/demo_offer.py index 27253cd..a0506bf 100644 --- a/python/demo_offer.py +++ b/python/demo_offer.py @@ -677,44 +677,37 @@ def create_jwt_existing_objects(self, issuer_id: str) -> str: objects_to_add = { # Event tickets 'eventTicketObjects': [{ - 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.EVENT_CLASS_SUFFIX' + 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX' }], # Boarding passes 'flightObjects': [{ - 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.FLIGHT_CLASS_SUFFIX' + 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX' }], # Generic passes 'genericObjects': [{ - 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GENERIC_CLASS_SUFFIX' + 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX' }], # Gift cards 'giftCardObjects': [{ - 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GIFT_CARD_CLASS_SUFFIX' + 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX' }], # Loyalty cards 'loyaltyObjects': [{ - 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.LOYALTY_CLASS_SUFFIX' + 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX' }], # Offers 'offerObjects': [{ - 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.OFFER_CLASS_SUFFIX' + 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX' }], # Transit passes 'transitObjects': [{ - 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.TRANSIT_CLASS_SUFFIX' + 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX' }] } diff --git a/python/demo_transit.py b/python/demo_transit.py index 8ed9c3b..fa8793a 100644 --- a/python/demo_transit.py +++ b/python/demo_transit.py @@ -735,44 +735,37 @@ def create_jwt_existing_objects(self, issuer_id: str) -> str: objects_to_add = { # Event tickets 'eventTicketObjects': [{ - 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.EVENT_CLASS_SUFFIX' + 'id': f'{issuer_id}.EVENT_OBJECT_SUFFIX' }], # Boarding passes 'flightObjects': [{ - 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.FLIGHT_CLASS_SUFFIX' + 'id': f'{issuer_id}.FLIGHT_OBJECT_SUFFIX' }], # Generic passes 'genericObjects': [{ - 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GENERIC_CLASS_SUFFIX' + 'id': f'{issuer_id}.GENERIC_OBJECT_SUFFIX' }], # Gift cards 'giftCardObjects': [{ - 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.GIFT_CARD_CLASS_SUFFIX' + 'id': f'{issuer_id}.GIFT_CARD_OBJECT_SUFFIX' }], # Loyalty cards 'loyaltyObjects': [{ - 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.LOYALTY_CLASS_SUFFIX' + 'id': f'{issuer_id}.LOYALTY_OBJECT_SUFFIX' }], # Offers 'offerObjects': [{ - 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.OFFER_CLASS_SUFFIX' + 'id': f'{issuer_id}.OFFER_OBJECT_SUFFIX' }], # Transit passes 'transitObjects': [{ - 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX', - 'classId': f'{issuer_id}.TRANSIT_CLASS_SUFFIX' + 'id': f'{issuer_id}.TRANSIT_OBJECT_SUFFIX' }] }