diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKAddToCart.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKAddToCart.m index 01ce2e0e..aa5eaf6e 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKAddToCart.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKAddToCart.m @@ -1,4 +1,5 @@ #import "VSDKAddToCart.h" +#import "VSDKProduct.h" @implementation VSDKAddToCart @@ -9,4 +10,10 @@ - (instancetype)init { return self; } ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"products"]) + return [VSDKProduct class]; + return nil; +} + @end diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKOrder.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKOrder.m index 0b425638..ecb513bc 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKOrder.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKOrder.m @@ -2,4 +2,10 @@ @implementation VSDKOrder ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"promotions"]) + return [NSString class]; + return nil; +} + @end diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKOrderPlace.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKOrderPlace.m index 9665582e..33f99d89 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKOrderPlace.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKOrderPlace.m @@ -1,3 +1,4 @@ +#import "VSDKLineItem.h" #import "VSDKOrderPlace.h" @implementation VSDKOrderPlace @@ -9,4 +10,10 @@ - (instancetype) init { return self; } ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"lineItems"]) + return [VSDKLineItem class]; + return nil; +} + @end diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProduct.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProduct.m index 7d81d6d8..af2865c1 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProduct.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProduct.m @@ -9,4 +9,10 @@ - (instancetype)init { return self; } ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"parts"]) + return [VSDKProduct class]; + return nil; +} + @end diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductClick.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductClick.m index 668fdbe9..0bc13369 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductClick.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductClick.m @@ -1,3 +1,4 @@ +#import "VSDKProduct.h" #import "VSDKProductClick.h" @implementation VSDKProductClick @@ -9,4 +10,10 @@ - (instancetype)init { return self; } ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"products"]) + return [VSDKProduct class]; + return nil; +} + @end diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductCustomization.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductCustomization.m index 5cb383ce..c0f65b97 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductCustomization.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductCustomization.m @@ -1,3 +1,4 @@ +#import "VSDKProduct.h" #import "VSDKProductCustomization.h" @implementation VSDKProductCustomization @@ -9,4 +10,10 @@ - (instancetype)init { return self; } ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"products"]) + return [VSDKProduct class]; + return nil; +} + @end diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductFeedback.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductFeedback.m index 865a7ddc..db3c5f9f 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductFeedback.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductFeedback.m @@ -1,3 +1,4 @@ +#import "VSDKProduct.h" #import "VSDKProductFeedback.h" @implementation VSDKProductFeedback @@ -9,4 +10,10 @@ - (instancetype)init { return self; } ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"products"]) + return [VSDKProduct class]; + return nil; +} + @end diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductImpression.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductImpression.m index 7136d9c1..6eb7233e 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductImpression.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductImpression.m @@ -1,3 +1,4 @@ +#import "VSDKProduct.h" #import "VSDKProductImpression.h" @implementation VSDKProductImpression @@ -9,4 +10,10 @@ - (instancetype)init { return self; } ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"products"]) + return [VSDKProduct class]; + return nil; +} + @end diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductView.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductView.m index 74baa649..bc8635a9 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductView.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductView.m @@ -1,3 +1,4 @@ +#import "VSDKProduct.h" #import "VSDKProductView.h" @implementation VSDKProductView @@ -9,4 +10,10 @@ - (instancetype)init { return self; } ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"products"]) + return [VSDKProduct class]; + return nil; +} + @end diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductViewDetails.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductViewDetails.m index 212be92b..f9b6c6ed 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductViewDetails.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKProductViewDetails.m @@ -1,3 +1,4 @@ +#import "VSDKProduct.h" #import "VSDKProductViewDetails.h" @implementation VSDKProductViewDetails @@ -9,4 +10,10 @@ - (instancetype)init { return self; } ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"products"]) + return [VSDKProduct class]; + return nil; +} + @end diff --git a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKRemoveFromCart.m b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKRemoveFromCart.m index 8a3329d6..6d8cc7c5 100644 --- a/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKRemoveFromCart.m +++ b/VelocidiSDK/VelocidiSDK/Tracking/Model/VSDKRemoveFromCart.m @@ -1,3 +1,4 @@ +#import "VSDKProduct.h" #import "VSDKRemoveFromCart.h" @implementation VSDKRemoveFromCart @@ -9,4 +10,10 @@ - (instancetype)init { return self; } ++ (Class)classForCollectionProperty:(NSString *)propertyName { + if ([propertyName isEqualToString:@"products"]) + return [VSDKProduct class]; + return nil; +} + @end