Skip to content

Commit

Permalink
fixed issue where subscription_offer_details were null
Browse files Browse the repository at this point in the history
  • Loading branch information
PickleJesus123 committed Nov 1, 2023
1 parent 265e78c commit 09b7e9f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,14 @@ public static Dictionary convertProductDetailsToDictionary(ProductDetails detail
pricingPhasesDictionaryList.add(pricingPhasesDictionary);
}

subscriptionOfferDetailsDictionary.put("pricing_phases", pricingPhasesDictionaryList);
Object[] pricingPhasesArray = pricingPhasesDictionaryList.toArray();
subscriptionOfferDetailsDictionary.put("pricing_phases", pricingPhasesArray);

subscriptionOfferDetailsDictionaryList.add(subscriptionOfferDetailsDictionary);
}

dictionary.put("subscription_offer_details", subscriptionOfferDetailsDictionaryList);
Object[] subscriptionOfferDetailsArray = subscriptionOfferDetailsDictionaryList.toArray();
dictionary.put("subscription_offer_details", subscriptionOfferDetailsArray);
}

return dictionary;
Expand Down

0 comments on commit 09b7e9f

Please sign in to comment.