Class: Peddler::APIs::Promotions20251201::GetPromotionResponse

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.



187
188
189
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 187

def benefit
  @benefit
end

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

Returns the value of attribute budget.



188
189
190
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 188

def budget
  @budget
end

#coupon_typeString? (readonly)

Returns the value of attribute coupon_type.

Returns:

  • (String, nil)


189
190
191
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 189

def coupon_type
  @coupon_type
end

#created_dateTime (readonly)

Returns the value of attribute created_date.

Returns:

  • (Time)


190
191
192
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 190

def created_date
  @created_date
end

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

Returns the value of attribute customer_segments.



191
192
193
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 191

def customer_segments
  @customer_segments
end

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

Returns the value of attribute fee_snapshot.



192
193
194
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 192

def fee_snapshot
  @fee_snapshot
end

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

Returns the value of attribute issues.



193
194
195
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 193

def issues
  @issues
end

#last_updated_dateTime (readonly)

Returns the value of attribute last_updated_date.

Returns:

  • (Time)


194
195
196
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 194

def last_updated_date
  @last_updated_date
end

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

Returns the value of attribute latest_revision.



195
196
197
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 195

def latest_revision
  @latest_revision
end

#marketplace_idString (readonly)

Returns the value of attribute marketplace_id.

Returns:

  • (String)


196
197
198
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 196

def marketplace_id
  @marketplace_id
end

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

Returns the value of attribute merchandising.



197
198
199
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 197

def merchandising
  @merchandising
end

#promotion_idString (readonly)

Returns the value of attribute promotion_id.

Returns:

  • (String)


198
199
200
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 198

def promotion_id
  @promotion_id
end

#promotion_titleString (readonly)

Returns the value of attribute promotion_title.

Returns:

  • (String)


199
200
201
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 199

def promotion_title
  @promotion_title
end

#promotion_typeString (readonly)

Returns the value of attribute promotion_type.

Returns:

  • (String)


200
201
202
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 200

def promotion_type
  @promotion_type
end

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

Returns the value of attribute purchase_requirements.



201
202
203
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 201

def purchase_requirements
  @purchase_requirements
end

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

Returns the value of attribute schedule.



202
203
204
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 202

def schedule
  @schedule
end

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

Returns the value of attribute selection.



203
204
205
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 203

def selection
  @selection
end

#statusString (readonly)

Returns the value of attribute status.

Returns:

  • (String)


204
205
206
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 204

def status
  @status
end

#tracking_idString (readonly)

Returns the value of attribute tracking_id.

Returns:

  • (String)


205
206
207
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 205

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::GetPromotionResponse .[](arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18) ⇒ Peddler::APIs::Promotions20251201::GetPromotionResponse

Overloads:



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

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::GetPromotionResponse
| (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::GetPromotionResponse

.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 ])


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

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::GetPromotionResponse .new(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15, arg16, arg17, arg18) ⇒ Peddler::APIs::Promotions20251201::GetPromotionResponse

Overloads:



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

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::GetPromotionResponse
| (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::GetPromotionResponse

.parsePeddler::APIs::Promotions20251201::GetPromotionResponse

Parameters:

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

Returns:



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

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

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 ])


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

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:



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

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