Class: Peddler::APIs::Promotions20251201::PromotionSummary

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.



497
498
499
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 497

def benefit
  @benefit
end

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

Returns the value of attribute budget.



498
499
500
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 498

def budget
  @budget
end

#coupon_typeString? (readonly)

Returns the value of attribute coupon_type.

Returns:

  • (String, nil)


499
500
501
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 499

def coupon_type
  @coupon_type
end

#created_dateTime (readonly)

Returns the value of attribute created_date.

Returns:

  • (Time)


500
501
502
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 500

def created_date
  @created_date
end

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

Returns the value of attribute customer_segments.



501
502
503
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 501

def customer_segments
  @customer_segments
end

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

Returns the value of attribute fee_snapshot.



502
503
504
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 502

def fee_snapshot
  @fee_snapshot
end

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

Returns the value of attribute issues.



503
504
505
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 503

def issues
  @issues
end

#last_updated_dateTime (readonly)

Returns the value of attribute last_updated_date.

Returns:

  • (Time)


504
505
506
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 504

def last_updated_date
  @last_updated_date
end

#latest_revisionPeddler::APIs::Promotions20251201::LatestRevision? (readonly)

Returns the value of attribute latest_revision.



505
506
507
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 505

def latest_revision
  @latest_revision
end

#marketplace_idString (readonly)

Returns the value of attribute marketplace_id.

Returns:

  • (String)


506
507
508
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 506

def marketplace_id
  @marketplace_id
end

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

Returns the value of attribute merchandising.



507
508
509
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 507

def merchandising
  @merchandising
end

#promotion_idString (readonly)

Returns the value of attribute promotion_id.

Returns:

  • (String)


508
509
510
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 508

def promotion_id
  @promotion_id
end

#promotion_titleString (readonly)

Returns the value of attribute promotion_title.

Returns:

  • (String)


509
510
511
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 509

def promotion_title
  @promotion_title
end

#promotion_typeString (readonly)

Returns the value of attribute promotion_type.

Returns:

  • (String)


510
511
512
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 510

def promotion_type
  @promotion_type
end

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

Returns the value of attribute purchase_requirements.



511
512
513
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 511

def purchase_requirements
  @purchase_requirements
end

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

Returns the value of attribute schedule.



512
513
514
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 512

def schedule
  @schedule
end

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

Returns the value of attribute selection.



513
514
515
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 513

def selection
  @selection
end

#statusString (readonly)

Returns the value of attribute status.

Returns:

  • (String)


514
515
516
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 514

def status
  @status
end

#tracking_idString (readonly)

Returns the value of attribute tracking_id.

Returns:

  • (String)


515
516
517
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 515

def tracking_id
  @tracking_id
end

Class Method Details

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

Overloads:



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

def self.[]: (created_date: Time, last_updated_date: Time, marketplace_id: String, promotion_id: String, promotion_title: String, promotion_type: String, schedule: Peddler::APIs::Promotions20251201::Schedule, selection: Peddler::APIs::Promotions20251201::Selection, status: String, 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]?, ?latest_revision: Peddler::APIs::Promotions20251201::LatestRevision?, ?merchandising: Peddler::APIs::Promotions20251201::Merchandising?, ?purchase_requirements: Peddler::APIs::Promotions20251201::PurchaseRequirements?) -> Peddler::APIs::Promotions20251201::PromotionSummary
| (Time, Time, String, String, String, String, Peddler::APIs::Promotions20251201::Schedule, Peddler::APIs::Promotions20251201::Selection, String, 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::LatestRevision?, Peddler::APIs::Promotions20251201::Merchandising?, Peddler::APIs::Promotions20251201::PurchaseRequirements?) -> Peddler::APIs::Promotions20251201::PromotionSummary

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

Returns:

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


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

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

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

Overloads:



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

def self.new: (created_date: Time, last_updated_date: Time, marketplace_id: String, promotion_id: String, promotion_title: String, promotion_type: String, schedule: Peddler::APIs::Promotions20251201::Schedule, selection: Peddler::APIs::Promotions20251201::Selection, status: String, 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]?, ?latest_revision: Peddler::APIs::Promotions20251201::LatestRevision?, ?merchandising: Peddler::APIs::Promotions20251201::Merchandising?, ?purchase_requirements: Peddler::APIs::Promotions20251201::PurchaseRequirements?) -> Peddler::APIs::Promotions20251201::PromotionSummary
| (Time, Time, String, String, String, String, Peddler::APIs::Promotions20251201::Schedule, Peddler::APIs::Promotions20251201::Selection, String, 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::LatestRevision?, Peddler::APIs::Promotions20251201::Merchandising?, Peddler::APIs::Promotions20251201::PurchaseRequirements?) -> Peddler::APIs::Promotions20251201::PromotionSummary

.parsePeddler::APIs::Promotions20251201::PromotionSummary

Parameters:

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

Returns:



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

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

Instance Method Details

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

Returns:

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


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

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

#to_h{ created_date: Time, last_updated_date: Time, marketplace_id: String, promotion_id: String, promotion_title: String, promotion_type: String, schedule: Peddler::APIs::Promotions20251201::Schedule, selection: Peddler::APIs::Promotions20251201::Selection, status: String, 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]?, latest_revision: Peddler::APIs::Promotions20251201::LatestRevision?, merchandising: Peddler::APIs::Promotions20251201::Merchandising?, purchase_requirements: Peddler::APIs::Promotions20251201::PurchaseRequirements? }

Returns:



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

def to_h: () -> { created_date: Time, last_updated_date: Time, marketplace_id: String, promotion_id: String, promotion_title: String, promotion_type: String, schedule: Peddler::APIs::Promotions20251201::Schedule, selection: Peddler::APIs::Promotions20251201::Selection, status: String, 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]?, latest_revision: Peddler::APIs::Promotions20251201::LatestRevision?, merchandising: Peddler::APIs::Promotions20251201::Merchandising?, purchase_requirements: Peddler::APIs::Promotions20251201::PurchaseRequirements? }