Reference for RimuHosting's Data Structures (as used in our REST-ful APIs)

Name: BillingMethodData

Information about a billing method you have with us.

XML Example:
<BillingMethodData>
  <billing_method_type>TS_CC | TS_PAYPAL | TS_BANK | TS_WIRE | TS_OTHER | TS_INVOICE</billing_method_type>
  <billing_oid>xsd:long</billing_oid>
  <description>xsd:string</description>
  zero or N[<orders_on_this_billing_method>OrderBeingBilled</orders_on_this_billing_method>]
</BillingMethodData>
JSON Example:
{"BillingMethodData":
 {
   "billing_method_type": 'TS_CC' | 'TS_PAYPAL' | 'TS_BANK' | 'TS_WIRE' | 'TS_OTHER' | 'TS_INVOICE',
   "billing_oid": Number,
   "description": String,
   "orders_on_this_billing_method": [OrderBeingBilled],
 }
}

Elements
NameTypeRequiredNillableDefault ValueDescription
billing_method_typeTS_CC | TS_PAYPAL | TS_BANK | TS_WIRE | TS_OTHER | TS_INVOICEfalsefalseThe type of the billing method, like credit card, paypal or wire transfer.
billing_oidxsd:longfalsefalseThe unique billing id.  e.g.
descriptionxsd:stringfalsefalseA description of the billing method, it may include a CC number (with most of the digits as asterisks *) and expiry date if this is acredit card - so you can tell the card apart from other ones.
orders_on_this_billing_methodzero or N[OrderBeingBilled]falsefalseA list of orders currently being billed using this billing method.