Skip to content
Browse files

WHISTLE-1217: jumped the gun a tad

  • Loading branch information...
1 parent c130aa0 commit fc99951714deea3d46478401847749dc7dcceb8f @k-anderson k-anderson committed Aug 15, 2012
View
BIN lib/braintree-1.0.0/ebin/braintree_addon.beam
Binary file not shown.
View
BIN lib/braintree-1.0.0/ebin/braintree_address.beam
Binary file not shown.
View
BIN lib/braintree-1.0.0/ebin/braintree_card.beam
Binary file not shown.
View
BIN lib/braintree-1.0.0/ebin/braintree_customer.beam
Binary file not shown.
View
BIN lib/braintree-1.0.0/ebin/braintree_discount.beam
Binary file not shown.
View
BIN lib/braintree-1.0.0/ebin/braintree_request.beam
Binary file not shown.
View
BIN lib/braintree-1.0.0/ebin/braintree_subscription.beam
Binary file not shown.
View
BIN lib/braintree-1.0.0/ebin/braintree_transaction.beam
Binary file not shown.
View
BIN lib/braintree-1.0.0/ebin/braintree_util.beam
Binary file not shown.
View
9 lib/whistle_services-1.0.0/src/wh_service_plans.erl
@@ -44,11 +44,18 @@ from_service_json(ServicesJObj) ->
ResellerId = wh_json:get_value(<<"pvt_reseller_id">>, ServicesJObj),
get_plans(PlanIds, ResellerId, ServicesJObj).
+%%--------------------------------------------------------------------
+%% @public
+%% @doc
+%%
+%% @end
+%%--------------------------------------------------------------------
+-spec plan_summary/1 :: (wh_json:json_object()) -> wh_json:json_object().
plan_summary(ServicesJObj) ->
ResellerId = wh_json:get_value(<<"pvt_reseller_id">>, ServicesJObj),
lists:foldl(fun(PlanId, J) ->
Plan = wh_json:get_value([<<"plans">>, PlanId], ServicesJObj, wh_json:new()),
- case wh_json:get_value(<<"vendor_id">>, ServicesJObj) of
+ case wh_json:get_value(<<"vendor_id">>, Plan) of
ResellerId -> wh_json:set_value(PlanId, Plan, J);
_Else -> J
end

0 comments on commit fc99951

Please sign in to comment.
Something went wrong with that request. Please try again.