OrderChargeItem
struct OrderChargeItem
Order charge item
Fields
Charge category code
Charge category code
Charge category code
Charge details
Charge details
Charge details
Methods
new
pub fn new(inner: OrderChargeItem): OrderChargeItem
[src]
fn new(inner: _OrderChargeItem): OrderChargeItem {
let code = inner.code as ChargeCategoryCode;
let fees: [OrderChargeFee] = [];
for (let _item in inner.fees) {
fees.push(OrderChargeFee.new(_item));
}
return OrderChargeItem { code: code!, name: inner.name, fees };
}
new
pub fn new(inner: OrderChargeItem): OrderChargeItem
[src]
fn new(inner: _OrderChargeItem): OrderChargeItem {
let code = inner.code as ChargeCategoryCode;
let fees: [OrderChargeFee] = [];
for (let _item in inner.fees) {
fees.push(OrderChargeFee.new(_item));
}
return OrderChargeItem { code: code!, name: inner.name, fees };
}