package cc.protea.spreedly.model.internal;

import javax.xml.bind.annotation.XmlElement;

import cc.protea.spreedly.model.SpreedlyCreditCard;

public class SpreedlyPaymentMethodCreateRequest {

	@XmlElement(name = "credit_card") public SpreedlyCreditCard creditCard;
	@XmlElement(name = "email") public String email;
	@XmlElement(name = "data") public Object data;
}

@@ -81,16 +81,65 @@
 Element;
+%0Aimport javax.xml.bind.annotation.XmlRootElement;
 %0A%0Aimport
@@ -185,16 +185,57 @@
 tCard;%0A%0A
+@XmlRootElement(name = %22payment_method%22)%0A
 public c

fix serialization for SpreedlyPaymentMethodCreateRequest