Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomFields ¶
CustomFields is a string to string map of custom field names to values. Ref: https://articles.braintreepayments.com/control-panel/custom-fields
func (CustomFields) MarshalXML ¶
func (c CustomFields) MarshalXML(e *xml.Encoder, start xml.StartElement) error
MarshalXML encodes the map of custom fields names to values with the name as an xml tag and the value as it's contents. Tag names have underscores replaced with hyphens, as required by the Braintree API.
func (*CustomFields) UnmarshalXML ¶
func (c *CustomFields) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
UnmarshalXML decodes the tags within into a map of custom fields names to values with the xml tag is the name and the contents is it's value. Tag names have hyphens replaced with underscores.
Click to show internal directories.
Click to hide internal directories.