@@ -13543,353 +13543,6 @@ def update!(**args)
1354313543 end
1354413544 end
1354513545
13546- # Settlement reports detail order-level and item-level credits and debits
13547- # between you and Google.
13548- class SettlementReport
13549- include Google::Apis::Core::Hashable
13550-
13551- # The end date on which all transactions are included in the report, in ISO 8601
13552- # format.
13553- # Corresponds to the JSON property `endDate`
13554- # @return [String]
13555- attr_accessor :end_date
13556-
13557- # Identifies what kind of resource this is. Value: the fixed string "`content#
13558- # settlementReport`"
13559- # Corresponds to the JSON property `kind`
13560- # @return [String]
13561- attr_accessor :kind
13562-
13563- # The residual amount from the previous invoice. This is set only if the
13564- # previous invoices are not paid because of negative balance.
13565- # Corresponds to the JSON property `previousBalance`
13566- # @return [Google::Apis::ContentV2_1::Price]
13567- attr_accessor :previous_balance
13568-
13569- # The ID of the settlement report.
13570- # Corresponds to the JSON property `settlementId`
13571- # @return [String]
13572- attr_accessor :settlement_id
13573-
13574- # The start date on which all transactions are included in the report, in ISO
13575- # 8601 format.
13576- # Corresponds to the JSON property `startDate`
13577- # @return [String]
13578- attr_accessor :start_date
13579-
13580- # The money due to the merchant.
13581- # Corresponds to the JSON property `transferAmount`
13582- # @return [Google::Apis::ContentV2_1::Price]
13583- attr_accessor :transfer_amount
13584-
13585- # Date on which transfer for this payment was initiated by Google, in ISO 8601
13586- # format.
13587- # Corresponds to the JSON property `transferDate`
13588- # @return [String]
13589- attr_accessor :transfer_date
13590-
13591- # The list of bank identifiers used for the transfer. For example, Trace ID for
13592- # Federal Automated Clearing House (ACH). This may also be known as the Wire ID.
13593- # Corresponds to the JSON property `transferIds`
13594- # @return [Array<String>]
13595- attr_accessor :transfer_ids
13596-
13597- def initialize(**args)
13598- update!(**args)
13599- end
13600-
13601- # Update properties of this object
13602- def update!(**args)
13603- @end_date = args[:end_date] if args.key?(:end_date)
13604- @kind = args[:kind] if args.key?(:kind)
13605- @previous_balance = args[:previous_balance] if args.key?(:previous_balance)
13606- @settlement_id = args[:settlement_id] if args.key?(:settlement_id)
13607- @start_date = args[:start_date] if args.key?(:start_date)
13608- @transfer_amount = args[:transfer_amount] if args.key?(:transfer_amount)
13609- @transfer_date = args[:transfer_date] if args.key?(:transfer_date)
13610- @transfer_ids = args[:transfer_ids] if args.key?(:transfer_ids)
13611- end
13612- end
13613-
13614- # Settlement transactions give a detailed breakdown of the settlement report.
13615- class SettlementTransaction
13616- include Google::Apis::Core::Hashable
13617-
13618- # The amount for the transaction.
13619- # Corresponds to the JSON property `amount`
13620- # @return [Google::Apis::ContentV2_1::SettlementTransactionAmount]
13621- attr_accessor :amount
13622-
13623- # Identifiers of the transaction.
13624- # Corresponds to the JSON property `identifiers`
13625- # @return [Google::Apis::ContentV2_1::SettlementTransactionIdentifiers]
13626- attr_accessor :identifiers
13627-
13628- # Identifies what kind of resource this is. Value: the fixed string "`content#
13629- # settlementTransaction`"
13630- # Corresponds to the JSON property `kind`
13631- # @return [String]
13632- attr_accessor :kind
13633-
13634- # Details of the transaction.
13635- # Corresponds to the JSON property `transaction`
13636- # @return [Google::Apis::ContentV2_1::SettlementTransactionTransaction]
13637- attr_accessor :transaction
13638-
13639- def initialize(**args)
13640- update!(**args)
13641- end
13642-
13643- # Update properties of this object
13644- def update!(**args)
13645- @amount = args[:amount] if args.key?(:amount)
13646- @identifiers = args[:identifiers] if args.key?(:identifiers)
13647- @kind = args[:kind] if args.key?(:kind)
13648- @transaction = args[:transaction] if args.key?(:transaction)
13649- end
13650- end
13651-
13652- #
13653- class SettlementTransactionAmount
13654- include Google::Apis::Core::Hashable
13655-
13656- #
13657- # Corresponds to the JSON property `commission`
13658- # @return [Google::Apis::ContentV2_1::SettlementTransactionAmountCommission]
13659- attr_accessor :commission
13660-
13661- # The description of the event. Acceptable values are: - "`taxWithhold`" - "`
13662- # principal`" - "`principalAdjustment`" - "`shippingFee`" - "`
13663- # merchantRemittedSalesTax`" - "`googleRemittedSalesTax`" - "`merchantCoupon`" -
13664- # "`merchantCouponTax`" - "`merchantRemittedDisposalTax`" - "`
13665- # googleRemittedDisposalTax`" - "`merchantRemittedRedemptionFee`" - "`
13666- # googleRemittedRedemptionFee`" - "`eeeEcoFee`" - "`furnitureEcoFee`" - "`
13667- # copyPrivateFee`" - "`eeeEcoFeeCommission`" - "`furnitureEcoFeeCommission`" - "`
13668- # copyPrivateFeeCommission`" - "`principalRefund`" - "`principalRefundTax`" - "`
13669- # itemCommission`" - "`adjustmentCommission`" - "`shippingFeeCommission`" - "`
13670- # commissionRefund`" - "`damaged`" - "`damagedOrDefectiveItem`" - "`expiredItem`"
13671- # - "`faultyItem`" - "`incorrectItemReceived`" - "`itemMissing`" - "`
13672- # qualityNotExpected`" - "`receivedTooLate`" - "`storePackageMissing`" - "`
13673- # transitPackageMissing`" - "`unsuccessfulDeliveryUndeliverable`" - "`
13674- # wrongChargeInStore`" - "`wrongItem`" - "`returns`" - "`undeliverable`" - "`
13675- # issueRelatedRefundAndReplacementAmountDescription`" - "`refundFromMerchant`" -
13676- # "`returnLabelShippingFee`" - "`lumpSumCorrection`" - "`pspFee`" - "`
13677- # principalRefundDoesNotFit`" - "`principalRefundOrderedWrongItem`" - "`
13678- # principalRefundQualityNotExpected`" - "`principalRefundBetterPriceFound`" - "`
13679- # principalRefundNoLongerNeeded`" - "`principalRefundChangedMind`" - "`
13680- # principalRefundReceivedTooLate`" - "`principalRefundIncorrectItemReceived`" - "
13681- # `principalRefundDamagedOrDefectiveItem`" - "`
13682- # principalRefundDidNotMatchDescription`" - "`principalRefundExpiredItem`"
13683- # Corresponds to the JSON property `description`
13684- # @return [String]
13685- attr_accessor :description
13686-
13687- # The amount that contributes to the line item price.
13688- # Corresponds to the JSON property `transactionAmount`
13689- # @return [Google::Apis::ContentV2_1::Price]
13690- attr_accessor :transaction_amount
13691-
13692- # The type of the amount. Acceptable values are: - "`itemPrice`" - "`orderPrice`"
13693- # - "`refund`" - "`earlyRefund`" - "`courtesyRefund`" - "`returnRefund`" - "`
13694- # returnLabelShippingFeeAmount`" - "`lumpSumCorrectionAmount`"
13695- # Corresponds to the JSON property `type`
13696- # @return [String]
13697- attr_accessor :type
13698-
13699- def initialize(**args)
13700- update!(**args)
13701- end
13702-
13703- # Update properties of this object
13704- def update!(**args)
13705- @commission = args[:commission] if args.key?(:commission)
13706- @description = args[:description] if args.key?(:description)
13707- @transaction_amount = args[:transaction_amount] if args.key?(:transaction_amount)
13708- @type = args[:type] if args.key?(:type)
13709- end
13710- end
13711-
13712- #
13713- class SettlementTransactionAmountCommission
13714- include Google::Apis::Core::Hashable
13715-
13716- # The category of the commission. Acceptable values are: - "`
13717- # animalsAndPetSupplies`" - "`dogCatFoodAndCatLitter`" - "`apparelAndAccessories`
13718- # " - "`shoesHandbagsAndSunglasses`" - "`costumesAndAccessories`" - "`jewelry`" -
13719- # "`watches`" - "`hobbiesArtsAndCrafts`" - "`homeAndGarden`" - "`
13720- # entertainmentCollectibles`" - "`collectibleCoins`" - "`sportsCollectibles`" - "
13721- # `sportingGoods`" - "`toysAndGames`" - "`musicalInstruments`" - "`giftCards`" -
13722- # "`babyAndToddler`" - "`babyFoodWipesAndDiapers`" - "`businessAndIndustrial`" -
13723- # "`camerasOpticsAndPhotography`" - "`consumerElectronics`" - "`
13724- # electronicsAccessories`" - "`personalComputers`" - "`videoGameConsoles`" - "`
13725- # foodAndGrocery`" - "`beverages`" - "`tobaccoProducts`" - "`furniture`" - "`
13726- # hardware`" - "`buildingMaterials`" - "`tools`" - "`healthAndPersonalCare`" - "`
13727- # beauty`" - "`householdSupplies`" - "`kitchenAndDining`" - "`majorAppliances`" -
13728- # "`luggageAndBags`" - "`media`" - "`officeSupplies`" - "`softwareAndVideoGames`
13729- # " - "`vehiclePartsAndAccessories`" - "`vehicleTiresAndWheels`" - "`vehicles`" -
13730- # "`everythingElse`"
13731- # Corresponds to the JSON property `category`
13732- # @return [String]
13733- attr_accessor :category
13734-
13735- # Rate of the commission in percentage.
13736- # Corresponds to the JSON property `rate`
13737- # @return [String]
13738- attr_accessor :rate
13739-
13740- def initialize(**args)
13741- update!(**args)
13742- end
13743-
13744- # Update properties of this object
13745- def update!(**args)
13746- @category = args[:category] if args.key?(:category)
13747- @rate = args[:rate] if args.key?(:rate)
13748- end
13749- end
13750-
13751- #
13752- class SettlementTransactionIdentifiers
13753- include Google::Apis::Core::Hashable
13754-
13755- # The identifier of the adjustments, if it's available.
13756- # Corresponds to the JSON property `adjustmentId`
13757- # @return [String]
13758- attr_accessor :adjustment_id
13759-
13760- # The merchant provided order ID.
13761- # Corresponds to the JSON property `merchantOrderId`
13762- # @return [String]
13763- attr_accessor :merchant_order_id
13764-
13765- # The identifier of the item.
13766- # Corresponds to the JSON property `orderItemId`
13767- # @return [String]
13768- attr_accessor :order_item_id
13769-
13770- # The unique ID of the settlement transaction entry.
13771- # Corresponds to the JSON property `settlementEntryId`
13772- # @return [String]
13773- attr_accessor :settlement_entry_id
13774-
13775- # The shipment ids for the item.
13776- # Corresponds to the JSON property `shipmentIds`
13777- # @return [Array<String>]
13778- attr_accessor :shipment_ids
13779-
13780- # The Google transaction ID.
13781- # Corresponds to the JSON property `transactionId`
13782- # @return [String]
13783- attr_accessor :transaction_id
13784-
13785- def initialize(**args)
13786- update!(**args)
13787- end
13788-
13789- # Update properties of this object
13790- def update!(**args)
13791- @adjustment_id = args[:adjustment_id] if args.key?(:adjustment_id)
13792- @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
13793- @order_item_id = args[:order_item_id] if args.key?(:order_item_id)
13794- @settlement_entry_id = args[:settlement_entry_id] if args.key?(:settlement_entry_id)
13795- @shipment_ids = args[:shipment_ids] if args.key?(:shipment_ids)
13796- @transaction_id = args[:transaction_id] if args.key?(:transaction_id)
13797- end
13798- end
13799-
13800- #
13801- class SettlementTransactionTransaction
13802- include Google::Apis::Core::Hashable
13803-
13804- # The time on which the event occurred in ISO 8601 format.
13805- # Corresponds to the JSON property `postDate`
13806- # @return [String]
13807- attr_accessor :post_date
13808-
13809- # The type of the transaction that occurred. Acceptable values are: - "`order`" -
13810- # "`reversal`" - "`orderRefund`" - "`reversalRefund`" - "`
13811- # issueRelatedRefundAndReplacement`" - "`returnLabelShippingFeeTransaction`" - "`
13812- # reversalIssueRelatedRefundAndReplacement`" - "`
13813- # reversalReturnLabelShippingFeeTransaction`" - "`lumpSumCorrectionTransaction`"
13814- # Corresponds to the JSON property `type`
13815- # @return [String]
13816- attr_accessor :type
13817-
13818- def initialize(**args)
13819- update!(**args)
13820- end
13821-
13822- # Update properties of this object
13823- def update!(**args)
13824- @post_date = args[:post_date] if args.key?(:post_date)
13825- @type = args[:type] if args.key?(:type)
13826- end
13827- end
13828-
13829- #
13830- class SettlementreportsListResponse
13831- include Google::Apis::Core::Hashable
13832-
13833- # Identifies what kind of resource this is. Value: the fixed string "`content#
13834- # settlementreportsListResponse`".
13835- # Corresponds to the JSON property `kind`
13836- # @return [String]
13837- attr_accessor :kind
13838-
13839- # The token for the retrieval of the next page of returns.
13840- # Corresponds to the JSON property `nextPageToken`
13841- # @return [String]
13842- attr_accessor :next_page_token
13843-
13844- #
13845- # Corresponds to the JSON property `resources`
13846- # @return [Array<Google::Apis::ContentV2_1::SettlementReport>]
13847- attr_accessor :resources
13848-
13849- def initialize(**args)
13850- update!(**args)
13851- end
13852-
13853- # Update properties of this object
13854- def update!(**args)
13855- @kind = args[:kind] if args.key?(:kind)
13856- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13857- @resources = args[:resources] if args.key?(:resources)
13858- end
13859- end
13860-
13861- #
13862- class SettlementtransactionsListResponse
13863- include Google::Apis::Core::Hashable
13864-
13865- # Identifies what kind of resource this is. Value: the fixed string "`content#
13866- # settlementtransactionsListResponse`".
13867- # Corresponds to the JSON property `kind`
13868- # @return [String]
13869- attr_accessor :kind
13870-
13871- # The token for the retrieval of the next page of returns.
13872- # Corresponds to the JSON property `nextPageToken`
13873- # @return [String]
13874- attr_accessor :next_page_token
13875-
13876- #
13877- # Corresponds to the JSON property `resources`
13878- # @return [Array<Google::Apis::ContentV2_1::SettlementTransaction>]
13879- attr_accessor :resources
13880-
13881- def initialize(**args)
13882- update!(**args)
13883- end
13884-
13885- # Update properties of this object
13886- def update!(**args)
13887- @kind = args[:kind] if args.key?(:kind)
13888- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13889- @resources = args[:resources] if args.key?(:resources)
13890- end
13891- end
13892-
1389313546 # The merchant account's shipping settings. All methods except
1389413547 # getsupportedcarriers and getsupportedholidays require the admin role.
1389513548 class ShippingSettings
0 commit comments