Class: Google::Apis::ContentV2_1::SettlementTransactionAmount

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SettlementTransactionAmount

Returns a new instance of SettlementTransactionAmount.



13975
13976
13977
# File 'lib/google/apis/content_v2_1/classes.rb', line 13975

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#commissionGoogle::Apis::ContentV2_1::SettlementTransactionAmountCommission

Corresponds to the JSON property commission



13935
13936
13937
# File 'lib/google/apis/content_v2_1/classes.rb', line 13935

def commission
  @commission
end

#descriptionString

The description of the event. Acceptable values are: - "taxWithhold" - " principal" - "principalAdjustment" - "shippingFee" - " merchantRemittedSalesTax" - "googleRemittedSalesTax" - "merchantCoupon" - "merchantCouponTax" - "merchantRemittedDisposalTax" - " googleRemittedDisposalTax" - "merchantRemittedRedemptionFee" - " googleRemittedRedemptionFee" - "eeeEcoFee" - "furnitureEcoFee" - " copyPrivateFee" - "eeeEcoFeeCommission" - "furnitureEcoFeeCommission" - " copyPrivateFeeCommission" - "principalRefund" - "principalRefundTax" - " itemCommission" - "adjustmentCommission" - "shippingFeeCommission" - " commissionRefund" - "damaged" - "damagedOrDefectiveItem" - "expiredItem"

  • "faultyItem" - "incorrectItemReceived" - "itemMissing" - " qualityNotExpected" - "receivedTooLate" - "storePackageMissing" - " transitPackageMissing" - "unsuccessfulDeliveryUndeliverable" - " wrongChargeInStore" - "wrongItem" - "returns" - "undeliverable" - " issueRelatedRefundAndReplacementAmountDescription" - "refundFromMerchant" - "returnLabelShippingFee" - "lumpSumCorrection" - "pspFee" - " principalRefundDoesNotFit" - "principalRefundOrderedWrongItem" - " principalRefundQualityNotExpected" - "principalRefundBetterPriceFound" - " principalRefundNoLongerNeeded" - "principalRefundChangedMind" - " principalRefundReceivedTooLate" - "principalRefundIncorrectItemReceived" - " principalRefundDamagedOrDefectiveItem" - " principalRefundDidNotMatchDescription" - "principalRefundExpiredItem" Corresponds to the JSON property description

Returns:

  • (String)


13961
13962
13963
# File 'lib/google/apis/content_v2_1/classes.rb', line 13961

def description
  @description
end

#transaction_amountGoogle::Apis::ContentV2_1::Price

The amount that contributes to the line item price. Corresponds to the JSON property transactionAmount



13966
13967
13968
# File 'lib/google/apis/content_v2_1/classes.rb', line 13966

def transaction_amount
  @transaction_amount
end

#typeString

The type of the amount. Acceptable values are: - "itemPrice" - "orderPrice"

  • "refund" - "earlyRefund" - "courtesyRefund" - "returnRefund" - " returnLabelShippingFeeAmount" - "lumpSumCorrectionAmount" Corresponds to the JSON property type

Returns:

  • (String)


13973
13974
13975
# File 'lib/google/apis/content_v2_1/classes.rb', line 13973

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13980
13981
13982
13983
13984
13985
# File 'lib/google/apis/content_v2_1/classes.rb', line 13980

def update!(**args)
  @commission = args[:commission] if args.key?(:commission)
  @description = args[:description] if args.key?(:description)
  @transaction_amount = args[:transaction_amount] if args.key?(:transaction_amount)
  @type = args[:type] if args.key?(:type)
end