Class: Peddler::Reports::Promotion::DetailsByPromotion

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/reports/promotion.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amount_spentFloat? (readonly)

Returns the value of attribute amount_spent.

Returns:

  • (Float, nil)


37
38
39
# File 'sig/peddler/reports/promotion.rbs', line 37

def amount_spent
  @amount_spent
end

#amount_spent_currency_codeString? (readonly)

Returns the value of attribute amount_spent_currency_code.

Returns:

  • (String, nil)


38
39
40
# File 'sig/peddler/reports/promotion.rbs', line 38

def amount_spent_currency_code
  @amount_spent_currency_code
end

#created_date_timeTime (readonly)

Returns the value of attribute created_date_time.

Returns:

  • (Time)


39
40
41
# File 'sig/peddler/reports/promotion.rbs', line 39

def created_date_time
  @created_date_time
end

#creation_channelString (readonly)

Returns the value of attribute creation_channel.

Returns:

  • (String)


40
41
42
# File 'sig/peddler/reports/promotion.rbs', line 40

def creation_channel
  @creation_channel
end

#end_date_timeTime (readonly)

Returns the value of attribute end_date_time.

Returns:

  • (Time)


41
42
43
# File 'sig/peddler/reports/promotion.rbs', line 41

def end_date_time
  @end_date_time
end

#funding_agreement_idString? (readonly)

Returns the value of attribute funding_agreement_id.

Returns:

  • (String, nil)


42
43
44
# File 'sig/peddler/reports/promotion.rbs', line 42

def funding_agreement_id
  @funding_agreement_id
end

#glance_viewsInteger? (readonly)

Returns the value of attribute glance_views.

Returns:

  • (Integer, nil)


43
44
45
# File 'sig/peddler/reports/promotion.rbs', line 43

def glance_views
  @glance_views
end

#included_productsArray[Peddler::Reports::Promotion::DetailsByProduct] (readonly)

Returns the value of attribute included_products.



44
45
46
# File 'sig/peddler/reports/promotion.rbs', line 44

def included_products
  @included_products
end

#last_updated_date_timeTime (readonly)

Returns the value of attribute last_updated_date_time.

Returns:

  • (Time)


45
46
47
# File 'sig/peddler/reports/promotion.rbs', line 45

def last_updated_date_time
  @last_updated_date_time
end

#marketplace_idString (readonly)

Returns the value of attribute marketplace_id.

Returns:

  • (String)


46
47
48
# File 'sig/peddler/reports/promotion.rbs', line 46

def marketplace_id
  @marketplace_id
end

#merchant_idString? (readonly)

Returns the value of attribute merchant_id.

Returns:

  • (String, nil)


47
48
49
# File 'sig/peddler/reports/promotion.rbs', line 47

def merchant_id
  @merchant_id
end

#promotion_idString (readonly)

Returns the value of attribute promotion_id.

Returns:

  • (String)


48
49
50
# File 'sig/peddler/reports/promotion.rbs', line 48

def promotion_id
  @promotion_id
end

#promotion_nameString (readonly)

Returns the value of attribute promotion_name.

Returns:

  • (String)


49
50
51
# File 'sig/peddler/reports/promotion.rbs', line 49

def promotion_name
  @promotion_name
end

#revenueFloat (readonly)

Returns the value of attribute revenue.

Returns:

  • (Float)


50
51
52
# File 'sig/peddler/reports/promotion.rbs', line 50

def revenue
  @revenue
end

#revenue_currency_codeString (readonly)

Returns the value of attribute revenue_currency_code.

Returns:

  • (String)


51
52
53
# File 'sig/peddler/reports/promotion.rbs', line 51

def revenue_currency_code
  @revenue_currency_code
end

#start_date_timeTime (readonly)

Returns the value of attribute start_date_time.

Returns:

  • (Time)


52
53
54
# File 'sig/peddler/reports/promotion.rbs', line 52

def start_date_time
  @start_date_time
end

#statusString (readonly)

Returns the value of attribute status.

Returns:

  • (String)


53
54
55
# File 'sig/peddler/reports/promotion.rbs', line 53

def status
  @status
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


54
55
56
# File 'sig/peddler/reports/promotion.rbs', line 54

def type
  @type
end

#units_soldInteger (readonly)

Returns the value of attribute units_sold.

Returns:

  • (Integer)


55
56
57
# File 'sig/peddler/reports/promotion.rbs', line 55

def units_sold
  @units_sold
end

#vendor_codeString? (readonly)

Returns the value of attribute vendor_code.

Returns:

  • (String, nil)


56
57
58
# File 'sig/peddler/reports/promotion.rbs', line 56

def vendor_code
  @vendor_code
end

Class Method Details

.[](created_date_time:, creation_channel:, end_date_time:, included_products:, last_updated_date_time:, marketplace_id:, promotion_id:, promotion_name:, revenue:, revenue_currency_code:, start_date_time:, status:, type:, units_sold:, amount_spent:, amount_spent_currency_code:, funding_agreement_id:, glance_views:, merchant_id:, vendor_code:) ⇒ Peddler::Reports::Promotion::DetailsByPromotion .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) ⇒ Peddler::Reports::Promotion::DetailsByPromotion

Overloads:

  • .[](created_date_time:, creation_channel:, end_date_time:, included_products:, last_updated_date_time:, marketplace_id:, promotion_id:, promotion_name:, revenue:, revenue_currency_code:, start_date_time:, status:, type:, units_sold:, amount_spent:, amount_spent_currency_code:, funding_agreement_id:, glance_views:, merchant_id:, vendor_code:) ⇒ Peddler::Reports::Promotion::DetailsByPromotion

    Parameters:

    • created_date_time: (Time)
    • creation_channel: (String)
    • end_date_time: (Time)
    • included_products: (Array[Peddler::Reports::Promotion::DetailsByProduct])
    • last_updated_date_time: (Time)
    • marketplace_id: (String)
    • promotion_id: (String)
    • promotion_name: (String)
    • revenue: (Float)
    • revenue_currency_code: (String)
    • start_date_time: (Time)
    • status: (String)
    • type: (String)
    • units_sold: (Integer)
    • amount_spent: (Float, nil)
    • amount_spent_currency_code: (String, nil)
    • funding_agreement_id: (String, nil)
    • glance_views: (Integer, nil)
    • merchant_id: (String, nil)
    • vendor_code: (String, nil)

    Returns:

  • .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) ⇒ Peddler::Reports::Promotion::DetailsByPromotion

    Parameters:

    • arg0 (Time)
    • arg1 (String)
    • arg2 (Time)
    • arg3 (Array[Peddler::Reports::Promotion::DetailsByProduct])
    • arg4 (Time)
    • arg5 (String)
    • arg6 (String)
    • arg7 (String)
    • arg8 (Float)
    • arg9 (String)
    • arg10 (Time)
    • arg11 (String)
    • arg12 (String)
    • arg13 (Integer)
    • arg14 (Float, nil)
    • arg15 (String, nil)
    • arg16 (String, nil)
    • arg17 (Integer, nil)
    • arg18 (String, nil)
    • arg19 (String, nil)

    Returns:



30
31
# File 'sig/peddler/reports/promotion.rbs', line 30

def self.[]: (created_date_time: Time, creation_channel: String, end_date_time: Time, included_products: Array[Peddler::Reports::Promotion::DetailsByProduct], last_updated_date_time: Time, marketplace_id: String, promotion_id: String, promotion_name: String, revenue: Float, revenue_currency_code: String, start_date_time: Time, status: String, type: String, units_sold: Integer, ?amount_spent: Float?, ?amount_spent_currency_code: String?, ?funding_agreement_id: String?, ?glance_views: Integer?, ?merchant_id: String?, ?vendor_code: String?) -> Peddler::Reports::Promotion::DetailsByPromotion
| (Time, String, Time, Array[Peddler::Reports::Promotion::DetailsByProduct], Time, String, String, String, Float, String, Time, String, String, Integer, Float?, String?, String?, Integer?, String?, String?) -> Peddler::Reports::Promotion::DetailsByPromotion

.members[ :created_date_time, :creation_channel, :end_date_time, :included_products, :last_updated_date_time, :marketplace_id, :promotion_id, :promotion_name, :revenue, :revenue_currency_code, :start_date_time, :status, :type, :units_sold, :amount_spent, :amount_spent_currency_code, :funding_agreement_id, :glance_views, :merchant_id, :vendor_code ]

Returns:

  • ([ :created_date_time, :creation_channel, :end_date_time, :included_products, :last_updated_date_time, :marketplace_id, :promotion_id, :promotion_name, :revenue, :revenue_currency_code, :start_date_time, :status, :type, :units_sold, :amount_spent, :amount_spent_currency_code, :funding_agreement_id, :glance_views, :merchant_id, :vendor_code ])


33
# File 'sig/peddler/reports/promotion.rbs', line 33

def self.members: () -> [ :created_date_time, :creation_channel, :end_date_time, :included_products, :last_updated_date_time, :marketplace_id, :promotion_id, :promotion_name, :revenue, :revenue_currency_code, :start_date_time, :status, :type, :units_sold, :amount_spent, :amount_spent_currency_code, :funding_agreement_id, :glance_views, :merchant_id, :vendor_code ]

.new(created_date_time:, creation_channel:, end_date_time:, included_products:, last_updated_date_time:, marketplace_id:, promotion_id:, promotion_name:, revenue:, revenue_currency_code:, start_date_time:, status:, type:, units_sold:, amount_spent:, amount_spent_currency_code:, funding_agreement_id:, glance_views:, merchant_id:, vendor_code:) ⇒ Peddler::Reports::Promotion::DetailsByPromotion .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) ⇒ Peddler::Reports::Promotion::DetailsByPromotion

Overloads:

  • .new(created_date_time:, creation_channel:, end_date_time:, included_products:, last_updated_date_time:, marketplace_id:, promotion_id:, promotion_name:, revenue:, revenue_currency_code:, start_date_time:, status:, type:, units_sold:, amount_spent:, amount_spent_currency_code:, funding_agreement_id:, glance_views:, merchant_id:, vendor_code:) ⇒ Peddler::Reports::Promotion::DetailsByPromotion

    Parameters:

    • created_date_time: (Time)
    • creation_channel: (String)
    • end_date_time: (Time)
    • included_products: (Array[Peddler::Reports::Promotion::DetailsByProduct])
    • last_updated_date_time: (Time)
    • marketplace_id: (String)
    • promotion_id: (String)
    • promotion_name: (String)
    • revenue: (Float)
    • revenue_currency_code: (String)
    • start_date_time: (Time)
    • status: (String)
    • type: (String)
    • units_sold: (Integer)
    • amount_spent: (Float, nil)
    • amount_spent_currency_code: (String, nil)
    • funding_agreement_id: (String, nil)
    • glance_views: (Integer, nil)
    • merchant_id: (String, nil)
    • vendor_code: (String, nil)

    Returns:

  • .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18, arg19) ⇒ Peddler::Reports::Promotion::DetailsByPromotion

    Parameters:

    • arg0 (Time)
    • arg1 (String)
    • arg2 (Time)
    • arg3 (Array[Peddler::Reports::Promotion::DetailsByProduct])
    • arg4 (Time)
    • arg5 (String)
    • arg6 (String)
    • arg7 (String)
    • arg8 (Float)
    • arg9 (String)
    • arg10 (Time)
    • arg11 (String)
    • arg12 (String)
    • arg13 (Integer)
    • arg14 (Float, nil)
    • arg15 (String, nil)
    • arg16 (String, nil)
    • arg17 (Integer, nil)
    • arg18 (String, nil)
    • arg19 (String, nil)

    Returns:



28
29
# File 'sig/peddler/reports/promotion.rbs', line 28

def self.new: (created_date_time: Time, creation_channel: String, end_date_time: Time, included_products: Array[Peddler::Reports::Promotion::DetailsByProduct], last_updated_date_time: Time, marketplace_id: String, promotion_id: String, promotion_name: String, revenue: Float, revenue_currency_code: String, start_date_time: Time, status: String, type: String, units_sold: Integer, ?amount_spent: Float?, ?amount_spent_currency_code: String?, ?funding_agreement_id: String?, ?glance_views: Integer?, ?merchant_id: String?, ?vendor_code: String?) -> Peddler::Reports::Promotion::DetailsByPromotion
| (Time, String, Time, Array[Peddler::Reports::Promotion::DetailsByProduct], Time, String, String, String, Float, String, Time, String, String, Integer, Float?, String?, String?, Integer?, String?, String?) -> Peddler::Reports::Promotion::DetailsByPromotion

.parsePeddler::Reports::Promotion::DetailsByPromotion

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



35
# File 'sig/peddler/reports/promotion.rbs', line 35

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::Reports::Promotion::DetailsByPromotion

Instance Method Details

#members[ :created_date_time, :creation_channel, :end_date_time, :included_products, :last_updated_date_time, :marketplace_id, :promotion_id, :promotion_name, :revenue, :revenue_currency_code, :start_date_time, :status, :type, :units_sold, :amount_spent, :amount_spent_currency_code, :funding_agreement_id, :glance_views, :merchant_id, :vendor_code ]

Returns:

  • ([ :created_date_time, :creation_channel, :end_date_time, :included_products, :last_updated_date_time, :marketplace_id, :promotion_id, :promotion_name, :revenue, :revenue_currency_code, :start_date_time, :status, :type, :units_sold, :amount_spent, :amount_spent_currency_code, :funding_agreement_id, :glance_views, :merchant_id, :vendor_code ])


58
# File 'sig/peddler/reports/promotion.rbs', line 58

def members: () -> [ :created_date_time, :creation_channel, :end_date_time, :included_products, :last_updated_date_time, :marketplace_id, :promotion_id, :promotion_name, :revenue, :revenue_currency_code, :start_date_time, :status, :type, :units_sold, :amount_spent, :amount_spent_currency_code, :funding_agreement_id, :glance_views, :merchant_id, :vendor_code ]

#to_h{ created_date_time: Time, creation_channel: String, end_date_time: Time, included_products: Array[Peddler::Reports::Promotion::DetailsByProduct], last_updated_date_time: Time, marketplace_id: String, promotion_id: String, promotion_name: String, revenue: Float, revenue_currency_code: String, start_date_time: Time, status: String, type: String, units_sold: Integer, amount_spent: Float?, amount_spent_currency_code: String?, funding_agreement_id: String?, glance_views: Integer?, merchant_id: String?, vendor_code: String? }

Returns:

  • ({ created_date_time: Time, creation_channel: String, end_date_time: Time, included_products: Array[Peddler::Reports::Promotion::DetailsByProduct], last_updated_date_time: Time, marketplace_id: String, promotion_id: String, promotion_name: String, revenue: Float, revenue_currency_code: String, start_date_time: Time, status: String, type: String, units_sold: Integer, amount_spent: Float?, amount_spent_currency_code: String?, funding_agreement_id: String?, glance_views: Integer?, merchant_id: String?, vendor_code: String? })


59
# File 'sig/peddler/reports/promotion.rbs', line 59

def to_h: () -> { created_date_time: Time, creation_channel: String, end_date_time: Time, included_products: Array[Peddler::Reports::Promotion::DetailsByProduct], last_updated_date_time: Time, marketplace_id: String, promotion_id: String, promotion_name: String, revenue: Float, revenue_currency_code: String, start_date_time: Time, status: String, type: String, units_sold: Integer, amount_spent: Float?, amount_spent_currency_code: String?, funding_agreement_id: String?, glance_views: Integer?, merchant_id: String?, vendor_code: String? }