Class: Peddler::APIs::Promotions20251201::PromotionRevisionAttributes

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.



465
466
467
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 465

def benefit
  @benefit
end

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

Returns the value of attribute budget.



466
467
468
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 466

def budget
  @budget
end

#coupon_typeString? (readonly)

Returns the value of attribute coupon_type.

Returns:

  • (String, nil)


467
468
469
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 467

def coupon_type
  @coupon_type
end

#created_dateTime (readonly)

Returns the value of attribute created_date.

Returns:

  • (Time)


468
469
470
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 468

def created_date
  @created_date
end

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

Returns the value of attribute customer_segments.



469
470
471
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 469

def customer_segments
  @customer_segments
end

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

Returns the value of attribute fee_snapshot.



470
471
472
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 470

def fee_snapshot
  @fee_snapshot
end

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

Returns the value of attribute issues.



471
472
473
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 471

def issues
  @issues
end

#last_updated_dateTime (readonly)

Returns the value of attribute last_updated_date.

Returns:

  • (Time)


472
473
474
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 472

def last_updated_date
  @last_updated_date
end

#marketplace_idString (readonly)

Returns the value of attribute marketplace_id.

Returns:

  • (String)


473
474
475
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 473

def marketplace_id
  @marketplace_id
end

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

Returns the value of attribute merchandising.



474
475
476
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 474

def merchandising
  @merchandising
end

#promotion_idString (readonly)

Returns the value of attribute promotion_id.

Returns:

  • (String)


475
476
477
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 475

def promotion_id
  @promotion_id
end

#promotion_titleString (readonly)

Returns the value of attribute promotion_title.

Returns:

  • (String)


476
477
478
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 476

def promotion_title
  @promotion_title
end

#promotion_typeString (readonly)

Returns the value of attribute promotion_type.

Returns:

  • (String)


477
478
479
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 477

def promotion_type
  @promotion_type
end

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

Returns the value of attribute purchase_requirements.



478
479
480
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 478

def purchase_requirements
  @purchase_requirements
end

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

Returns the value of attribute schedule.



479
480
481
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 479

def schedule
  @schedule
end

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

Returns the value of attribute selection.



480
481
482
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 480

def selection
  @selection
end

#tracking_idString (readonly)

Returns the value of attribute tracking_id.

Returns:

  • (String)


481
482
483
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 481

def tracking_id
  @tracking_id
end

Class Method Details

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

Overloads:



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

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, 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::PromotionRevisionAttributes
| (Time, Time, 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::PromotionRevisionAttributes

.members[ :created_date, :last_updated_date, :marketplace_id, :promotion_id, :promotion_title, :promotion_type, :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, :schedule, :selection, :tracking_id, :benefit, :budget, :coupon_type, :customer_segments, :fee_snapshot, :issues, :merchandising, :purchase_requirements ])


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

def self.members: () -> [ :created_date, :last_updated_date, :marketplace_id, :promotion_id, :promotion_title, :promotion_type, :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:, schedule:, selection:, tracking_id:, benefit:, budget:, coupon_type:, customer_segments:, fee_snapshot:, issues:, merchandising:, purchase_requirements:) ⇒ Peddler::APIs::Promotions20251201::PromotionRevisionAttributes .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16) ⇒ Peddler::APIs::Promotions20251201::PromotionRevisionAttributes

Overloads:



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

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, 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::PromotionRevisionAttributes
| (Time, Time, 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::PromotionRevisionAttributes

.parsePeddler::APIs::Promotions20251201::PromotionRevisionAttributes

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :created_date, :last_updated_date, :marketplace_id, :promotion_id, :promotion_title, :promotion_type, :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, :schedule, :selection, :tracking_id, :benefit, :budget, :coupon_type, :customer_segments, :fee_snapshot, :issues, :merchandising, :purchase_requirements ])


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

def members: () -> [ :created_date, :last_updated_date, :marketplace_id, :promotion_id, :promotion_title, :promotion_type, :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, 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:



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

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, 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? }