File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
android/src/main/java/com/mparticle/react Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -595,6 +595,9 @@ else if (isPromotion) {
595595 if (map .hasKey ("shouldUploadEvent" )) {
596596 builder .shouldUploadEvent (map .getBoolean ("shouldUploadEvent" ));
597597 }
598+ if (map .hasKey ("customAttributes" )) {
599+ builder .customAttributes (ConvertStringMap (map .getMap ("customAttributes" )));
600+ }
598601
599602 return builder .build ();
600603 }
Original file line number Diff line number Diff line change @@ -419,6 +419,9 @@ + (MPCommerceEvent *)MPCommerceEvent:(id)json {
419419 if (json[@" shouldUploadEvent" ] != nil ) {
420420 commerceEvent.shouldUploadEvent = [json[@" shouldUploadEvent" ] boolValue ];
421421 }
422+ if (json[@" customAttributes" ] != nil ) {
423+ commerceEvent.customAttributes = json[@" customAttributes" ];
424+ }
422425
423426 NSMutableArray *products = [NSMutableArray array ];
424427 NSArray *jsonProducts = json[@" products" ];
You can’t perform that action at this time.
0 commit comments