customfields

package
v0.0.0-...-f111e9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomFields

type CustomFields map[string]string

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL