Class: EPlat::Mapping::Bigcommerce::V3::Order::LineItem

Inherits:
EPlat::Mapping::Base show all
Defined in:
lib/e_plat/mapping/bigcommerce/v_3/order/line_item.rb

Constant Summary

Constants inherited from EPlat::Mapping::Base

EPlat::Mapping::Base::DEFAULT_VALUES

Instance Attribute Summary

Attributes inherited from EPlat::Mapping::Base

#resource, #virtual_collection

Instance Method Summary collapse

Methods inherited from EPlat::Mapping::Base

#aliases, #e_plat_key_to, #initialize, #inspect, #keys_aliased_to_native_keys, #mappable_keys, #mappings, #native_key_to, #native_setter, #to_e_plat_keys, #to_native_keys, #via_native_attributes_where_possible, virtual_collection

Methods included from RequestBodyRoot

#include_root_in_request_body?

Constructor Details

This class inherits a constructor from EPlat::Mapping::Base

Instance Method Details

#native_attribute_aliasesObject



75
76
77
78
79
# File 'lib/e_plat/mapping/bigcommerce/v_3/order/line_item.rb', line 75

def native_attribute_aliases
    super.concat([
        # see virtual_collection @ EPlat::Mapping::VirtualCollection::Bigcommerce::OrderLineItems
    ])
end

#native_attributesObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/e_plat/mapping/bigcommerce/v_3/order/line_item.rb', line 12

def native_attributes
    super.concat([
        "id",
        "order_id",
        "product_id",
        "variant_id",
        "order_pickup_method_id",
        "order_address_id",
        "name",
        "name_customer",
        "name_merchant",
        "sku",
        "upc",
        "type",
        "base_price",
        "price_ex_tax",
        "price_inc_tax",
        "price_tax",
        "base_total",
        "total_ex_tax",
        "total_inc_tax",
        "total_tax",
        "weight",
        "width",
        "height",
        "depth",
        "quantity",
        "base_cost_price",
        "cost_price_inc_tax",
        "cost_price_ex_tax",
        "cost_price_tax",
        "is_refunded",
        "quantity_refunded",
        "refund_amount",
        "return_id",
        "wrapping_id",
        "wrapping_name",
        "base_wrapping_cost",
        "wrapping_cost_ex_tax",
        "wrapping_cost_inc_tax",
        "wrapping_cost_tax",
        "wrapping_message",
        "quantity_shipped",
        "event_name",
        "event_date",
        "fixed_shipping_cost",
        "ebay_item_id",
        "ebay_transaction_id",
        "option_set_id",
        "parent_order_product_id",
        "is_bundled_product",
        "bin_picking_number",
        "external_id",
        "fulfillment_source",
        "brand",
        "gift_certificate_id",
        "applied_discounts",
        "product_options",
        "configurable_fields",
        "discounted_total_inc_tax"                        
    ])
end

#native_top_keyObject



8
9
10
# File 'lib/e_plat/mapping/bigcommerce/v_3/order/line_item.rb', line 8

def native_top_key
    "data"
end