generated/google/apis/content_v2/classes.rb in google-api-client-0.23.1 vs generated/google/apis/content_v2/classes.rb in google-api-client-0.23.2

- old
+ new

@@ -632,12 +632,11 @@ # Account data. # Corresponds to the JSON property `account` # @return [Google::Apis::ContentV2::Account] attr_accessor :account - # The ID of the targeted account. Only defined if the method is get, delete or - # claimwebsite. + # The ID of the targeted account. Only defined if the method is not insert. # Corresponds to the JSON property `accountId` # @return [Fixnum] attr_accessor :account_id # An entry ID, unique within the batch request. @@ -650,16 +649,21 @@ # Corresponds to the JSON property `force` # @return [Boolean] attr_accessor :force alias_method :force?, :force + # Details about the link request. + # Corresponds to the JSON property `linkRequest` + # @return [Google::Apis::ContentV2::AccountsCustomBatchRequestEntryLinkRequest] + attr_accessor :link_request + # The ID of the managing account. # Corresponds to the JSON property `merchantId` # @return [Fixnum] attr_accessor :merchant_id - # + # The method of the batch entry. # Corresponds to the JSON property `method` # @return [String] attr_accessor :request_method # Only applicable if the method is claimwebsite. Indicates whether or not to @@ -677,17 +681,49 @@ def update!(**args) @account = args[:account] if args.key?(:account) @account_id = args[:account_id] if args.key?(:account_id) @batch_id = args[:batch_id] if args.key?(:batch_id) @force = args[:force] if args.key?(:force) + @link_request = args[:link_request] if args.key?(:link_request) @merchant_id = args[:merchant_id] if args.key?(:merchant_id) @request_method = args[:request_method] if args.key?(:request_method) @overwrite = args[:overwrite] if args.key?(:overwrite) end end # + class AccountsCustomBatchRequestEntryLinkRequest + include Google::Apis::Core::Hashable + + # Action to perform for this link. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # Type of the link between the two accounts. + # Corresponds to the JSON property `linkType` + # @return [String] + attr_accessor :link_type + + # The ID of the linked account. + # Corresponds to the JSON property `linkedAccountId` + # @return [String] + attr_accessor :linked_account_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @link_type = args[:link_type] if args.key?(:link_type) + @linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id) + end + end + + # class BatchAccountsResponse include Google::Apis::Core::Hashable # The result of the execution of the batch requests. # Corresponds to the JSON property `entries` @@ -734,24 +770,81 @@ # accountsCustomBatchResponseEntry". # Corresponds to the JSON property `kind` # @return [String] attr_accessor :kind + # The status of the updated link. Only defined if the method is link. + # Corresponds to the JSON property `linkStatus` + # @return [String] + attr_accessor :link_status + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) @account = args[:account] if args.key?(:account) @batch_id = args[:batch_id] if args.key?(:batch_id) @errors = args[:errors] if args.key?(:errors) @kind = args[:kind] if args.key?(:kind) + @link_status = args[:link_status] if args.key?(:link_status) end end # + class AccountsLinkRequest + include Google::Apis::Core::Hashable + + # Action to perform for this link. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # Type of the link between the two accounts. + # Corresponds to the JSON property `linkType` + # @return [String] + attr_accessor :link_type + + # The ID of the linked account. + # Corresponds to the JSON property `linkedAccountId` + # @return [String] + attr_accessor :linked_account_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @link_type = args[:link_type] if args.key?(:link_type) + @linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id) + end + end + + # + class AccountsLinkResponse + include Google::Apis::Core::Hashable + + # Identifies what kind of resource this is. Value: the fixed string "content# + # accountsLinkResponse". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + end + end + + # class ListAccountsResponse include Google::Apis::Core::Hashable # Identifies what kind of resource this is. Value: the fixed string "content# # accountsListResponse". @@ -1094,16 +1187,16 @@ # class Amount include Google::Apis::Core::Hashable - # Value before taxes. + # [required] Value before taxes. # Corresponds to the JSON property `pretax` # @return [Google::Apis::ContentV2::Price] attr_accessor :pretax - # Tax value. + # [required] Tax value. # Corresponds to the JSON property `tax` # @return [Google::Apis::ContentV2::Price] attr_accessor :tax def initialize(**args) @@ -2663,34 +2756,34 @@ # Summary of the total amounts of the additional charges. # Corresponds to the JSON property `additionalChargeSummaries` # @return [Array<Google::Apis::ContentV2::InvoiceSummaryAdditionalChargeSummary>] attr_accessor :additional_charge_summaries - # Customer balance on this invoice. A positive amount means the customer is - # paying, a negative one means the customer is receiving money. Note that it - # must always be true that merchant_balance + customer_balance + google_balance = - # 0. + # [required] Customer balance on this invoice. A positive amount means the + # customer is paying, a negative one means the customer is receiving money. Note + # that it must always be true that merchant_balance + customer_balance + + # google_balance = 0. # Corresponds to the JSON property `customerBalance` # @return [Google::Apis::ContentV2::Amount] attr_accessor :customer_balance - # Google balance on this invoice. A positive amount means Google is paying, a - # negative one means Google is receiving money. Note that it must always be true - # that merchant_balance + customer_balance + google_balance = 0. + # [required] Google balance on this invoice. A positive amount means Google is + # paying, a negative one means Google is receiving money. Note that it must + # always be true that merchant_balance + customer_balance + google_balance = 0. # Corresponds to the JSON property `googleBalance` # @return [Google::Apis::ContentV2::Amount] attr_accessor :google_balance - # Merchant balance on this invoice. A positive amount means the merchant is - # paying, a negative one means the merchant is receiving money. Note that it - # must always be true that merchant_balance + customer_balance + google_balance = - # 0. + # [required] Merchant balance on this invoice. A positive amount means the + # merchant is paying, a negative one means the merchant is receiving money. Note + # that it must always be true that merchant_balance + customer_balance + + # google_balance = 0. # Corresponds to the JSON property `merchantBalance` # @return [Google::Apis::ContentV2::Amount] attr_accessor :merchant_balance - # Total price for the product. + # [required] Total price for the product. # Corresponds to the JSON property `productTotal` # @return [Google::Apis::ContentV2::Amount] attr_accessor :product_total # Summary for each promotion. @@ -2715,16 +2808,16 @@ # class InvoiceSummaryAdditionalChargeSummary include Google::Apis::Core::Hashable - # Total additional charge for this type. + # [required] Total additional charge for this type. # Corresponds to the JSON property `totalAmount` # @return [Google::Apis::ContentV2::Amount] attr_accessor :total_amount - # Type of the additional charge. + # [required] Type of the additional charge. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type def initialize(**args) @@ -4332,11 +4425,11 @@ # Corresponds to the JSON property `creationDate` # @return [String] attr_accessor :creation_date # Date on which the shipment has been delivered, in ISO 8601 format. Present - # only if status is delievered + # only if status is delivered # Corresponds to the JSON property `deliveryDate` # @return [String] attr_accessor :delivery_date # The id of the shipment. @@ -4410,31 +4503,32 @@ # class OrderinvoicesCreateChargeInvoiceRequest include Google::Apis::Core::Hashable - # The ID of the invoice. + # [required] The ID of the invoice. # Corresponds to the JSON property `invoiceId` # @return [String] attr_accessor :invoice_id - # Invoice summary. + # [required] Invoice summary. # Corresponds to the JSON property `invoiceSummary` # @return [Google::Apis::ContentV2::InvoiceSummary] attr_accessor :invoice_summary - # Invoice details per line item. + # [required] Invoice details per line item. # Corresponds to the JSON property `lineItemInvoices` # @return [Array<Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice>] attr_accessor :line_item_invoices - # The ID of the operation, unique across all operations for a given order. + # [required] The ID of the operation, unique across all operations for a given + # order. # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id - # ID of the shipment group. + # [required] ID of the shipment group. # Corresponds to the JSON property `shipmentGroupId` # @return [String] attr_accessor :shipment_group_id def initialize(**args) @@ -4479,28 +4573,29 @@ # class OrderinvoicesCreateRefundInvoiceRequest include Google::Apis::Core::Hashable - # The ID of the invoice. + # [required] The ID of the invoice. # Corresponds to the JSON property `invoiceId` # @return [String] attr_accessor :invoice_id - # The ID of the operation, unique across all operations for a given order. + # [required] The ID of the operation, unique across all operations for a given + # order. # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id - # Option to create a refund-only invoice. Exactly one of refund_option and - # return_option must be provided. + # Option to create a refund-only invoice. Exactly one of refundOnlyOption or + # returnOption must be provided. # Corresponds to the JSON property `refundOnlyOption` # @return [Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption] attr_accessor :refund_only_option # Option to create an invoice for a refund and mark all items within the invoice - # as returned. Exactly one of refund_option and return_option must be provided. + # as returned. Exactly one of refundOnlyOption or returnOption must be provided. # Corresponds to the JSON property `returnOption` # @return [Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption] attr_accessor :return_option # Invoice details for different shipment groups. @@ -4555,11 +4650,11 @@ # Optional description of the refund reason. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Reason for the refund. + # [required] Reason for the refund. # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason def initialize(**args) @@ -4580,11 +4675,11 @@ # Optional description of the return reason. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # Reason for the return. + # [required] Reason for the return. # Corresponds to the JSON property `reason` # @return [String] attr_accessor :reason def initialize(**args) @@ -5708,10 +5803,16 @@ # carrier in the Orders resource representation for a list of acceptable values. # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier + # Date on which the shipment has been delivered, in ISO 8601 format. Optional + # and can be provided only if + # Corresponds to the JSON property `deliveryDate` + # @return [String] + attr_accessor :delivery_date + # The ID of the shipment. # Corresponds to the JSON property `shipmentId` # @return [String] attr_accessor :shipment_id @@ -5730,10 +5831,11 @@ end # Update properties of this object def update!(**args) @carrier = args[:carrier] if args.key?(:carrier) + @delivery_date = args[:delivery_date] if args.key?(:delivery_date) @shipment_id = args[:shipment_id] if args.key?(:shipment_id) @status = args[:status] if args.key?(:status) @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end end @@ -6581,10 +6683,16 @@ # carrier in the Orders resource representation for a list of acceptable values. # Corresponds to the JSON property `carrier` # @return [String] attr_accessor :carrier + # Date on which the shipment has been delivered, in ISO 8601 format. Optional + # and can be provided only if + # Corresponds to the JSON property `deliveryDate` + # @return [String] + attr_accessor :delivery_date + # The ID of the operation. Unique across all operations for a given order. # Corresponds to the JSON property `operationId` # @return [String] attr_accessor :operation_id @@ -6608,10 +6716,11 @@ end # Update properties of this object def update!(**args) @carrier = args[:carrier] if args.key?(:carrier) + @delivery_date = args[:delivery_date] if args.key?(:delivery_date) @operation_id = args[:operation_id] if args.key?(:operation_id) @shipment_id = args[:shipment_id] if args.key?(:shipment_id) @status = args[:status] if args.key?(:status) @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end @@ -7502,10 +7611,15 @@ # The two-letter ISO 639-1 language code for the item. # Corresponds to the JSON property `contentLanguage` # @return [String] attr_accessor :content_language + # Cost of goods sold. Used for gross profit reporting. + # Corresponds to the JSON property `costOfGoodsSold` + # @return [Google::Apis::ContentV2::Price] + attr_accessor :cost_of_goods_sold + # A list of custom (merchant-provided) attributes. It can also be used for # submitting any attribute of the feed specification in its generic form (e.g., ` # "name": "size type", "type": "text", "value": "regular" `). This is useful # for submitting attributes not explicitly exposed by the API. # Corresponds to the JSON property `customAttributes` @@ -7662,15 +7776,25 @@ # The material of which the item is made. # Corresponds to the JSON property `material` # @return [String] attr_accessor :material + # The energy efficiency class as defined in EU directive 2010/30/EU. + # Corresponds to the JSON property `maxEnergyEfficiencyClass` + # @return [String] + attr_accessor :max_energy_efficiency_class + # Maximal product handling time (in business days). # Corresponds to the JSON property `maxHandlingTime` # @return [Fixnum] attr_accessor :max_handling_time + # The energy efficiency class as defined in EU directive 2010/30/EU. + # Corresponds to the JSON property `minEnergyEfficiencyClass` + # @return [String] + attr_accessor :min_energy_efficiency_class + # Minimal product handling time (in business days). # Corresponds to the JSON property `minHandlingTime` # @return [Fixnum] attr_accessor :min_handling_time @@ -7840,10 +7964,11 @@ @brand = args[:brand] if args.key?(:brand) @channel = args[:channel] if args.key?(:channel) @color = args[:color] if args.key?(:color) @condition = args[:condition] if args.key?(:condition) @content_language = args[:content_language] if args.key?(:content_language) + @cost_of_goods_sold = args[:cost_of_goods_sold] if args.key?(:cost_of_goods_sold) @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @custom_groups = args[:custom_groups] if args.key?(:custom_groups) @custom_label0 = args[:custom_label0] if args.key?(:custom_label0) @custom_label1 = args[:custom_label1] if args.key?(:custom_label1) @custom_label2 = args[:custom_label2] if args.key?(:custom_label2) @@ -7869,11 +7994,13 @@ @item_group_id = args[:item_group_id] if args.key?(:item_group_id) @kind = args[:kind] if args.key?(:kind) @link = args[:link] if args.key?(:link) @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points) @material = args[:material] if args.key?(:material) + @max_energy_efficiency_class = args[:max_energy_efficiency_class] if args.key?(:max_energy_efficiency_class) @max_handling_time = args[:max_handling_time] if args.key?(:max_handling_time) + @min_energy_efficiency_class = args[:min_energy_efficiency_class] if args.key?(:min_energy_efficiency_class) @min_handling_time = args[:min_handling_time] if args.key?(:min_handling_time) @mobile_link = args[:mobile_link] if args.key?(:mobile_link) @mpn = args[:mpn] if args.key?(:mpn) @multipack = args[:multipack] if args.key?(:multipack) @offer_id = args[:offer_id] if args.key?(:offer_id) @@ -8814,17 +8941,17 @@ # class Promotion include Google::Apis::Core::Hashable - # Amount of the promotion. The values here are the promotion applied to the unit - # price pretax and to the total of the tax amounts. + # [required] Amount of the promotion. The values here are the promotion applied + # to the unit price pretax and to the total of the tax amounts. # Corresponds to the JSON property `promotionAmount` # @return [Google::Apis::ContentV2::Amount] attr_accessor :promotion_amount - # ID of the promotion. + # [required] ID of the promotion. # Corresponds to the JSON property `promotionId` # @return [String] attr_accessor :promotion_id def initialize(**args) @@ -8986,21 +9113,21 @@ # class ShipmentInvoice include Google::Apis::Core::Hashable - # Invoice summary. + # [required] Invoice summary. # Corresponds to the JSON property `invoiceSummary` # @return [Google::Apis::ContentV2::InvoiceSummary] attr_accessor :invoice_summary - # Invoice details per line item. + # [required] Invoice details per line item. # Corresponds to the JSON property `lineItemInvoices` # @return [Array<Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice>] attr_accessor :line_item_invoices - # ID of the shipment group. + # [required] ID of the shipment group. # Corresponds to the JSON property `shipmentGroupId` # @return [String] attr_accessor :shipment_group_id def initialize(**args) @@ -9028,16 +9155,16 @@ # lineItemId or productId must be set. # Corresponds to the JSON property `productId` # @return [String] attr_accessor :product_id - # Unit IDs to define specific units within the line item. + # [required] Unit IDs to define specific units within the line item. # Corresponds to the JSON property `shipmentUnitIds` # @return [Array<String>] attr_accessor :shipment_unit_ids - # Invoice details for a single unit. + # [required] Invoice details for a single unit. # Corresponds to the JSON property `unitInvoice` # @return [Google::Apis::ContentV2::UnitInvoice] attr_accessor :unit_invoice def initialize(**args) @@ -9673,11 +9800,11 @@ # Promotions applied to a unit. # Corresponds to the JSON property `promotions` # @return [Array<Google::Apis::ContentV2::Promotion>] attr_accessor :promotions - # Price of the unit, before applying taxes. + # [required] Price of the unit, before applying taxes. # Corresponds to the JSON property `unitPricePretax` # @return [Google::Apis::ContentV2::Price] attr_accessor :unit_price_pretax # Tax amounts to apply to the unit price. @@ -9700,21 +9827,21 @@ # class UnitInvoiceAdditionalCharge include Google::Apis::Core::Hashable - # Amount of the additional charge. + # [required] Amount of the additional charge. # Corresponds to the JSON property `additionalChargeAmount` # @return [Google::Apis::ContentV2::Amount] attr_accessor :additional_charge_amount # Promotions applied to the additional charge. # Corresponds to the JSON property `additionalChargePromotions` # @return [Array<Google::Apis::ContentV2::Promotion>] attr_accessor :additional_charge_promotions - # Type of the additional charge. + # [required] Type of the additional charge. # Corresponds to the JSON property `type` # @return [String] attr_accessor :type def initialize(**args) @@ -9731,20 +9858,21 @@ # class UnitInvoiceTaxLine include Google::Apis::Core::Hashable - # Tax amount for the tax type. + # [required] Tax amount for the tax type. # Corresponds to the JSON property `taxAmount` # @return [Google::Apis::ContentV2::Price] attr_accessor :tax_amount - # Optional name of the tax type. + # Optional name of the tax type. This should only be provided if taxType is + # otherFeeTax. # Corresponds to the JSON property `taxName` # @return [String] attr_accessor :tax_name - # Type of the tax. + # [required] Type of the tax. # Corresponds to the JSON property `taxType` # @return [String] attr_accessor :tax_type def initialize(**args)