Class: Peddler::APIs::Promotions20251201::LatestRevision

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/promotions_2025_12_01.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#benefitPeddler::APIs::Promotions20251201::PromotionBenefit? (readonly)

Returns the value of attribute benefit.



329
330
331
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 329

def benefit
  @benefit
end

#budgetPeddler::APIs::Promotions20251201::Budget? (readonly)

Returns the value of attribute budget.



330
331
332
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 330

def budget
  @budget
end

#coupon_typeString? (readonly)

Returns the value of attribute coupon_type.

Returns:

  • (String, nil)


331
332
333
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 331

def coupon_type
  @coupon_type
end

#created_dateTime (readonly)

Returns the value of attribute created_date.

Returns:

  • (Time)


332
333
334
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 332

def created_date
  @created_date
end

#customer_segmentsArray[Peddler::APIs::Promotions20251201::CustomerSegment]? (readonly)

Returns the value of attribute customer_segments.



333
334
335
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 333

def customer_segments
  @customer_segments
end

#fee_snapshotPeddler::APIs::Promotions20251201::PromotionFeeSnapshot? (readonly)

Returns the value of attribute fee_snapshot.



334
335
336
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 334

def fee_snapshot
  @fee_snapshot
end

#issuesArray[Peddler::APIs::Promotions20251201::PromotionIssue]? (readonly)

Returns the value of attribute issues.



335
336
337
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 335

def issues
  @issues
end

#last_updated_dateTime (readonly)

Returns the value of attribute last_updated_date.

Returns:

  • (Time)


336
337
338
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 336

def last_updated_date
  @last_updated_date
end

#marketplace_idString (readonly)

Returns the value of attribute marketplace_id.

Returns:

  • (String)


337
338
339
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 337

def marketplace_id
  @marketplace_id
end

#merchandisingPeddler::APIs::Promotions20251201::Merchandising? (readonly)

Returns the value of attribute merchandising.



338
339
340
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 338

def merchandising
  @merchandising
end

#promotion_idString (readonly)

Returns the value of attribute promotion_id.

Returns:

  • (String)


339
340
341
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 339

def promotion_id
  @promotion_id
end

#promotion_titleString (readonly)

Returns the value of attribute promotion_title.

Returns:

  • (String)


340
341
342
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 340

def promotion_title
  @promotion_title
end

#promotion_typeString (readonly)

Returns the value of attribute promotion_type.

Returns:

  • (String)


341
342
343
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 341

def promotion_type
  @promotion_type
end

#purchase_requirementsPeddler::APIs::Promotions20251201::PurchaseRequirements? (readonly)

Returns the value of attribute purchase_requirements.



342
343
344
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 342

def purchase_requirements
  @purchase_requirements
end

#revision_statusString (readonly)

Returns the value of attribute revision_status.

Returns:

  • (String)


343
344
345
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 343

def revision_status
  @revision_status
end

#schedulePeddler::APIs::Promotions20251201::Schedule (readonly)

Returns the value of attribute schedule.



344
345
346
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 344

def schedule
  @schedule
end

#selectionPeddler::APIs::Promotions20251201::Selection (readonly)

Returns the value of attribute selection.



345
346
347
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 345

def selection
  @selection
end

#tracking_idString (readonly)

Returns the value of attribute tracking_id.

Returns:

  • (String)


346
347
348
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 346

def tracking_id
  @tracking_id
end

Class Method Details

.[](created_date:, last_updated_date:, marketplace_id:, promotion_id:, promotion_title:, promotion_type:, revision_status:, schedule:, selection:, tracking_id:, benefit:, budget:, coupon_type:, customer_segments:, fee_snapshot:, issues:, merchandising:, purchase_requirements:) ⇒ Peddler::APIs::Promotions20251201::LatestRevision .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) ⇒ Peddler::APIs::Promotions20251201::LatestRevision

Overloads:



322
323
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 322

def self.[]: (created_date: Time, last_updated_date: Time, marketplace_id: String, promotion_id: String, promotion_title: String, promotion_type: String, revision_status: String, schedule: Peddler::APIs::Promotions20251201::Schedule, selection: Peddler::APIs::Promotions20251201::Selection, tracking_id: String, ?benefit: Peddler::APIs::Promotions20251201::PromotionBenefit?, ?budget: Peddler::APIs::Promotions20251201::Budget?, ?coupon_type: String?, ?customer_segments: Array[Peddler::APIs::Promotions20251201::CustomerSegment]?, ?fee_snapshot: Peddler::APIs::Promotions20251201::PromotionFeeSnapshot?, ?issues: Array[Peddler::APIs::Promotions20251201::PromotionIssue]?, ?merchandising: Peddler::APIs::Promotions20251201::Merchandising?, ?purchase_requirements: Peddler::APIs::Promotions20251201::PurchaseRequirements?) -> Peddler::APIs::Promotions20251201::LatestRevision
| (Time, Time, String, String, String, String, String, Peddler::APIs::Promotions20251201::Schedule, Peddler::APIs::Promotions20251201::Selection, String, Peddler::APIs::Promotions20251201::PromotionBenefit?, Peddler::APIs::Promotions20251201::Budget?, String?, Array[Peddler::APIs::Promotions20251201::CustomerSegment]?, Peddler::APIs::Promotions20251201::PromotionFeeSnapshot?, Array[Peddler::APIs::Promotions20251201::PromotionIssue]?, Peddler::APIs::Promotions20251201::Merchandising?, Peddler::APIs::Promotions20251201::PurchaseRequirements?) -> Peddler::APIs::Promotions20251201::LatestRevision

.members[ :created_date, :last_updated_date, :marketplace_id, :promotion_id, :promotion_title, :promotion_type, :revision_status, :schedule, :selection, :tracking_id, :benefit, :budget, :coupon_type, :customer_segments, :fee_snapshot, :issues, :merchandising, :purchase_requirements ]

Returns:

  • ([ :created_date, :last_updated_date, :marketplace_id, :promotion_id, :promotion_title, :promotion_type, :revision_status, :schedule, :selection, :tracking_id, :benefit, :budget, :coupon_type, :customer_segments, :fee_snapshot, :issues, :merchandising, :purchase_requirements ])


325
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 325

def self.members: () -> [ :created_date, :last_updated_date, :marketplace_id, :promotion_id, :promotion_title, :promotion_type, :revision_status, :schedule, :selection, :tracking_id, :benefit, :budget, :coupon_type, :customer_segments, :fee_snapshot, :issues, :merchandising, :purchase_requirements ]

.new(created_date:, last_updated_date:, marketplace_id:, promotion_id:, promotion_title:, promotion_type:, revision_status:, schedule:, selection:, tracking_id:, benefit:, budget:, coupon_type:, customer_segments:, fee_snapshot:, issues:, merchandising:, purchase_requirements:) ⇒ Peddler::APIs::Promotions20251201::LatestRevision .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17) ⇒ Peddler::APIs::Promotions20251201::LatestRevision

Overloads:



320
321
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 320

def self.new: (created_date: Time, last_updated_date: Time, marketplace_id: String, promotion_id: String, promotion_title: String, promotion_type: String, revision_status: String, schedule: Peddler::APIs::Promotions20251201::Schedule, selection: Peddler::APIs::Promotions20251201::Selection, tracking_id: String, ?benefit: Peddler::APIs::Promotions20251201::PromotionBenefit?, ?budget: Peddler::APIs::Promotions20251201::Budget?, ?coupon_type: String?, ?customer_segments: Array[Peddler::APIs::Promotions20251201::CustomerSegment]?, ?fee_snapshot: Peddler::APIs::Promotions20251201::PromotionFeeSnapshot?, ?issues: Array[Peddler::APIs::Promotions20251201::PromotionIssue]?, ?merchandising: Peddler::APIs::Promotions20251201::Merchandising?, ?purchase_requirements: Peddler::APIs::Promotions20251201::PurchaseRequirements?) -> Peddler::APIs::Promotions20251201::LatestRevision
| (Time, Time, String, String, String, String, String, Peddler::APIs::Promotions20251201::Schedule, Peddler::APIs::Promotions20251201::Selection, String, Peddler::APIs::Promotions20251201::PromotionBenefit?, Peddler::APIs::Promotions20251201::Budget?, String?, Array[Peddler::APIs::Promotions20251201::CustomerSegment]?, Peddler::APIs::Promotions20251201::PromotionFeeSnapshot?, Array[Peddler::APIs::Promotions20251201::PromotionIssue]?, Peddler::APIs::Promotions20251201::Merchandising?, Peddler::APIs::Promotions20251201::PurchaseRequirements?) -> Peddler::APIs::Promotions20251201::LatestRevision

.parsePeddler::APIs::Promotions20251201::LatestRevision

Parameters:

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

Returns:



327
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 327

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Promotions20251201::LatestRevision

Instance Method Details

#members[ :created_date, :last_updated_date, :marketplace_id, :promotion_id, :promotion_title, :promotion_type, :revision_status, :schedule, :selection, :tracking_id, :benefit, :budget, :coupon_type, :customer_segments, :fee_snapshot, :issues, :merchandising, :purchase_requirements ]

Returns:

  • ([ :created_date, :last_updated_date, :marketplace_id, :promotion_id, :promotion_title, :promotion_type, :revision_status, :schedule, :selection, :tracking_id, :benefit, :budget, :coupon_type, :customer_segments, :fee_snapshot, :issues, :merchandising, :purchase_requirements ])


348
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 348

def members: () -> [ :created_date, :last_updated_date, :marketplace_id, :promotion_id, :promotion_title, :promotion_type, :revision_status, :schedule, :selection, :tracking_id, :benefit, :budget, :coupon_type, :customer_segments, :fee_snapshot, :issues, :merchandising, :purchase_requirements ]

#to_h{ created_date: Time, last_updated_date: Time, marketplace_id: String, promotion_id: String, promotion_title: String, promotion_type: String, revision_status: String, schedule: Peddler::APIs::Promotions20251201::Schedule, selection: Peddler::APIs::Promotions20251201::Selection, tracking_id: String, benefit: Peddler::APIs::Promotions20251201::PromotionBenefit?, budget: Peddler::APIs::Promotions20251201::Budget?, coupon_type: String?, customer_segments: Array[Peddler::APIs::Promotions20251201::CustomerSegment]?, fee_snapshot: Peddler::APIs::Promotions20251201::PromotionFeeSnapshot?, issues: Array[Peddler::APIs::Promotions20251201::PromotionIssue]?, merchandising: Peddler::APIs::Promotions20251201::Merchandising?, purchase_requirements: Peddler::APIs::Promotions20251201::PurchaseRequirements? }

Returns:



349
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 349

def to_h: () -> { created_date: Time, last_updated_date: Time, marketplace_id: String, promotion_id: String, promotion_title: String, promotion_type: String, revision_status: String, schedule: Peddler::APIs::Promotions20251201::Schedule, selection: Peddler::APIs::Promotions20251201::Selection, tracking_id: String, benefit: Peddler::APIs::Promotions20251201::PromotionBenefit?, budget: Peddler::APIs::Promotions20251201::Budget?, coupon_type: String?, customer_segments: Array[Peddler::APIs::Promotions20251201::CustomerSegment]?, fee_snapshot: Peddler::APIs::Promotions20251201::PromotionFeeSnapshot?, issues: Array[Peddler::APIs::Promotions20251201::PromotionIssue]?, merchandising: Peddler::APIs::Promotions20251201::Merchandising?, purchase_requirements: Peddler::APIs::Promotions20251201::PurchaseRequirements? }