From ece490b84b90c75c28924761cd606bf1ff29c433 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 8 Oct 2020 05:21:58 -0700 Subject: [PATCH] feat(content)!: update the API BREAKING CHANGE: This release has breaking changes. #### content:v2.1 The following keys were deleted: - etag - parameters.userIp.description - parameters.userIp.location - parameters.userIp.type - resources.liasettings.methods.requestgmbaccess.parameters.gmbEmail.required - resources.liasettings.methods.setinventoryverificationcontact.parameters.contactEmail.required - resources.liasettings.methods.setinventoryverificationcontact.parameters.contactName.required - resources.liasettings.methods.setinventoryverificationcontact.parameters.country.required - resources.liasettings.methods.setinventoryverificationcontact.parameters.language.required - resources.liasettings.methods.setposdataprovider.parameters.country.required - resources.orderreports.methods.listdisbursements.parameters.disbursementStartDate.required - resources.orderreports.methods.listtransactions.parameters.transactionStartDate.required - schemas.Account.properties.id.annotations.required - schemas.Account.properties.kind.default - schemas.Account.properties.name.annotations.required - schemas.AccountStatus.properties.kind.default - schemas.AccountTax.properties.accountId.annotations.required - schemas.AccountTax.properties.kind.default - schemas.AccountTaxTaxRule.properties.locationId.annotations.required - schemas.AccountsAuthInfoResponse.properties.kind.default - schemas.AccountsClaimWebsiteResponse.properties.kind.default - schemas.AccountsCustomBatchResponse.properties.kind.default - schemas.AccountsCustomBatchResponseEntry.properties.kind.default - schemas.AccountsLinkResponse.properties.kind.default - schemas.AccountsListLinksResponse.properties.kind.default - schemas.AccountsListResponse.properties.kind.default - schemas.AccountsUpdateLabelsResponse.properties.kind.default - schemas.AccountstatusesCustomBatchResponse.properties.kind.default - schemas.AccountstatusesListResponse.properties.kind.default - schemas.AccounttaxCustomBatchResponse.properties.kind.default - schemas.AccounttaxCustomBatchResponseEntry.properties.kind.default - schemas.AccounttaxListResponse.properties.kind.default - schemas.Datafeed.properties.contentType.annotations.required - schemas.Datafeed.properties.fileName.annotations.required - schemas.Datafeed.properties.id.annotations.required - schemas.Datafeed.properties.kind.default - schemas.Datafeed.properties.name.annotations.required - schemas.DatafeedStatus.properties.kind.default - schemas.DatafeedsCustomBatchResponse.properties.kind.default - schemas.DatafeedsFetchNowResponse.properties.kind.default - schemas.DatafeedsListResponse.properties.kind.default - schemas.DatafeedstatusesCustomBatchResponse.properties.kind.default - schemas.DatafeedstatusesListResponse.properties.kind.default - schemas.LiaCountrySettings.properties.country.annotations.required - schemas.LiaSettings.properties.kind.default - schemas.LiasettingsCustomBatchResponse.properties.kind.default - schemas.LiasettingsCustomBatchResponseEntry.properties.kind.default - schemas.LiasettingsGetAccessibleGmbAccountsResponse.properties.kind.default - schemas.LiasettingsListPosDataProvidersResponse.properties.kind.default - schemas.LiasettingsListResponse.properties.kind.default - schemas.LiasettingsRequestGmbAccessResponse.properties.kind.default - schemas.LiasettingsRequestInventoryVerificationResponse.properties.kind.default - schemas.LiasettingsSetInventoryVerificationContactResponse.properties.kind.default - schemas.LiasettingsSetPosDataProviderResponse.properties.kind.default - schemas.LocalInventory.properties.kind.default - schemas.LocalinventoryCustomBatchResponse.properties.kind.default - schemas.LocalinventoryCustomBatchResponseEntry.properties.kind.default - schemas.Order.properties.kind.default - schemas.OrderLineItemReturnInfo.properties.daysToReturn.annotations.required - schemas.OrderLineItemReturnInfo.properties.isReturnable.annotations.required - schemas.OrderLineItemReturnInfo.properties.policyUrl.annotations.required - schemas.OrderLineItemShippingDetails.properties.deliverByDate.annotations.required - schemas.OrderLineItemShippingDetails.properties.method.annotations.required - schemas.OrderLineItemShippingDetails.properties.shipByDate.annotations.required - schemas.OrderLineItemShippingDetailsMethod.properties.maxDaysInTransit.annotations.required - schemas.OrderLineItemShippingDetailsMethod.properties.methodName.annotations.required - schemas.OrderLineItemShippingDetailsMethod.properties.minDaysInTransit.annotations.required - schemas.OrderPromotion.properties.funder.annotations.required - schemas.OrderPromotion.properties.merchantPromotionId.annotations.required - schemas.OrderPromotion.properties.subtype.annotations.required - schemas.OrderPromotion.properties.title.annotations.required - schemas.OrderPromotion.properties.type.annotations.required - schemas.OrderPromotionItem.properties.offerId.annotations.required - schemas.OrderinvoicesCreateChargeInvoiceResponse.properties.kind.default - schemas.OrderinvoicesCreateRefundInvoiceResponse.properties.kind.default - schemas.OrderreportsListDisbursementsResponse.properties.kind.default - schemas.OrderreportsListTransactionsResponse.properties.kind.default - schemas.OrderreturnsAcknowledgeResponse.properties.kind.default - schemas.OrderreturnsListResponse.properties.kind.default - schemas.OrderreturnsProcessResponse.properties.kind.default - schemas.OrdersAcknowledgeResponse.properties.kind.default - schemas.OrdersAdvanceTestOrderResponse.properties.kind.default - schemas.OrdersCancelLineItemResponse.properties.kind.default - schemas.OrdersCancelResponse.properties.kind.default - schemas.OrdersCancelTestOrderByCustomerResponse.properties.kind.default - schemas.OrdersCreateTestOrderResponse.properties.kind.default - schemas.OrdersCreateTestReturnResponse.properties.kind.default - schemas.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo.properties.shipmentId.annotations.required - schemas.OrdersGetByMerchantOrderIdResponse.properties.kind.default - schemas.OrdersGetTestOrderTemplateResponse.properties.kind.default - schemas.OrdersInStoreRefundLineItemResponse.properties.kind.default - schemas.OrdersListResponse.properties.kind.default - schemas.OrdersRefundItemResponse.properties.kind.default - schemas.OrdersRefundOrderResponse.properties.kind.default - schemas.OrdersRejectReturnLineItemResponse.properties.kind.default - schemas.OrdersReturnRefundLineItemResponse.properties.kind.default - schemas.OrdersSetLineItemMetadataResponse.properties.kind.default - schemas.OrdersShipLineItemsResponse.properties.kind.default - schemas.OrdersUpdateLineItemShippingDetailsResponse.properties.kind.default - schemas.OrdersUpdateMerchantOrderIdResponse.properties.kind.default - schemas.OrdersUpdateShipmentResponse.properties.kind.default - schemas.PosCustomBatchResponse.properties.kind.default - schemas.PosCustomBatchResponseEntry.properties.kind.default - schemas.PosInventory.properties.contentLanguage.annotations.required - schemas.PosInventory.properties.itemId.annotations.required - schemas.PosInventory.properties.kind.default - schemas.PosInventory.properties.price.annotations.required - schemas.PosInventory.properties.quantity.annotations.required - schemas.PosInventory.properties.storeCode.annotations.required - schemas.PosInventory.properties.targetCountry.annotations.required - schemas.PosInventory.properties.timestamp.annotations.required - schemas.PosInventoryRequest.properties.contentLanguage.annotations.required - schemas.PosInventoryRequest.properties.itemId.annotations.required - schemas.PosInventoryRequest.properties.price.annotations.required - schemas.PosInventoryRequest.properties.quantity.annotations.required - schemas.PosInventoryRequest.properties.storeCode.annotations.required - schemas.PosInventoryRequest.properties.targetCountry.annotations.required - schemas.PosInventoryRequest.properties.timestamp.annotations.required - schemas.PosInventoryResponse.properties.contentLanguage.annotations.required - schemas.PosInventoryResponse.properties.itemId.annotations.required - schemas.PosInventoryResponse.properties.kind.default - schemas.PosInventoryResponse.properties.price.annotations.required - schemas.PosInventoryResponse.properties.quantity.annotations.required - schemas.PosInventoryResponse.properties.storeCode.annotations.required - schemas.PosInventoryResponse.properties.targetCountry.annotations.required - schemas.PosInventoryResponse.properties.timestamp.annotations.required - schemas.PosListResponse.properties.kind.default - schemas.PosSale.properties.contentLanguage.annotations.required - schemas.PosSale.properties.itemId.annotations.required - schemas.PosSale.properties.kind.default - schemas.PosSale.properties.price.annotations.required - schemas.PosSale.properties.quantity.annotations.required - schemas.PosSale.properties.storeCode.annotations.required - schemas.PosSale.properties.targetCountry.annotations.required - schemas.PosSale.properties.timestamp.annotations.required - schemas.PosSaleRequest.properties.contentLanguage.annotations.required - schemas.PosSaleRequest.properties.itemId.annotations.required - schemas.PosSaleRequest.properties.price.annotations.required - schemas.PosSaleRequest.properties.quantity.annotations.required - schemas.PosSaleRequest.properties.storeCode.annotations.required - schemas.PosSaleRequest.properties.targetCountry.annotations.required - schemas.PosSaleRequest.properties.timestamp.annotations.required - schemas.PosSaleResponse.properties.contentLanguage.annotations.required - schemas.PosSaleResponse.properties.itemId.annotations.required - schemas.PosSaleResponse.properties.kind.default - schemas.PosSaleResponse.properties.price.annotations.required - schemas.PosSaleResponse.properties.quantity.annotations.required - schemas.PosSaleResponse.properties.storeCode.annotations.required - schemas.PosSaleResponse.properties.targetCountry.annotations.required - schemas.PosSaleResponse.properties.timestamp.annotations.required - schemas.PosStore.properties.kind.default - schemas.PosStore.properties.storeAddress.annotations.required - schemas.PosStore.properties.storeCode.annotations.required - schemas.Product.properties.channel.annotations.required - schemas.Product.properties.contentLanguage.annotations.required - schemas.Product.properties.kind.default - schemas.Product.properties.offerId.annotations.required - schemas.Product.properties.targetCountry.annotations.required - schemas.ProductStatus.properties.kind.default - schemas.ProductsCustomBatchResponse.properties.kind.default - schemas.ProductsCustomBatchResponseEntry.properties.kind.default - schemas.ProductsListResponse.properties.kind.default - schemas.ProductstatusesCustomBatchResponse.properties.kind.default - schemas.ProductstatusesCustomBatchResponseEntry.properties.kind.default - schemas.ProductstatusesListResponse.properties.kind.default - schemas.PubsubNotificationSettings.properties.kind.default - schemas.RegionalInventory.properties.kind.default - schemas.RegionalinventoryCustomBatchResponse.properties.kind.default - schemas.RegionalinventoryCustomBatchResponseEntry.properties.kind.default - schemas.ReturnAddress.properties.address.annotations.required - schemas.ReturnAddress.properties.country.annotations.required - schemas.ReturnAddress.properties.kind.default - schemas.ReturnAddress.properties.label.annotations.required - schemas.ReturnAddress.properties.phoneNumber.annotations.required - schemas.ReturnPolicy.properties.country.annotations.required - schemas.ReturnPolicy.properties.kind.default - schemas.ReturnPolicy.properties.label.annotations.required - schemas.ReturnPolicy.properties.name.annotations.required - schemas.ReturnPolicy.properties.policy.annotations.required - schemas.ReturnPolicyPolicy.properties.lastReturnDate.annotations.required - schemas.ReturnPolicySeasonalOverride.properties.endDate.annotations.required - schemas.ReturnPolicySeasonalOverride.properties.name.annotations.required - schemas.ReturnPolicySeasonalOverride.properties.policy.annotations.required - schemas.ReturnPolicySeasonalOverride.properties.startDate.annotations.required - schemas.ReturnaddressCustomBatchResponse.properties.kind.default - schemas.ReturnaddressCustomBatchResponseEntry.properties.kind.default - schemas.ReturnaddressListResponse.properties.kind.default - schemas.ReturnpolicyCustomBatchResponse.properties.kind.default - schemas.ReturnpolicyCustomBatchResponseEntry.properties.kind.default - schemas.ReturnpolicyListResponse.properties.kind.default - schemas.SettlementReport.properties.kind.default - schemas.SettlementTransaction.properties.kind.default - schemas.SettlementreportsListResponse.properties.kind.default - schemas.SettlementtransactionsListResponse.properties.kind.default - schemas.ShippingsettingsCustomBatchResponse.properties.kind.default - schemas.ShippingsettingsCustomBatchResponseEntry.properties.kind.default - schemas.ShippingsettingsGetSupportedCarriersResponse.properties.kind.default - schemas.ShippingsettingsGetSupportedHolidaysResponse.properties.kind.default - schemas.ShippingsettingsGetSupportedPickupServicesResponse.properties.kind.default - schemas.ShippingsettingsListResponse.properties.kind.default - schemas.TestOrder.properties.kind.default - schemas.TestOrder.properties.lineItems.annotations.required - schemas.TestOrder.properties.predefinedBillingAddress.annotations.required - schemas.TestOrder.properties.predefinedDeliveryAddress.annotations.required - schemas.TestOrder.properties.predefinedEmail.annotations.required - schemas.TestOrder.properties.shippingCost.annotations.required - schemas.TestOrder.properties.shippingOption.annotations.required - schemas.TestOrderLineItem.properties.quantityOrdered.annotations.required - schemas.TestOrderLineItem.properties.returnInfo.annotations.required - schemas.TestOrderLineItem.properties.shippingDetails.annotations.required - schemas.TestOrderLineItemProduct.properties.brand.annotations.required - schemas.TestOrderLineItemProduct.properties.condition.annotations.required - schemas.TestOrderLineItemProduct.properties.contentLanguage.annotations.required - schemas.TestOrderLineItemProduct.properties.imageLink.annotations.required - schemas.TestOrderLineItemProduct.properties.offerId.annotations.required - schemas.TestOrderLineItemProduct.properties.price.annotations.required - schemas.TestOrderLineItemProduct.properties.targetCountry.annotations.required - schemas.TestOrderLineItemProduct.properties.title.annotations.required The following keys were added: - fullyEncodeReservedExpansion - mtlsRootUrl - parameters.$.xgafv.description - parameters.$.xgafv.enum - parameters.$.xgafv.enumDescriptions - parameters.$.xgafv.location - parameters.$.xgafv.type - parameters.access_token.description - parameters.access_token.location - parameters.access_token.type - parameters.callback.description - parameters.callback.location - parameters.callback.type - parameters.uploadType.description - parameters.uploadType.location - parameters.uploadType.type - parameters.upload_protocol.description - parameters.upload_protocol.location - parameters.upload_protocol.type - resources.accounts.methods.authinfo.flatPath - resources.accounts.methods.authinfo.parameterOrder - resources.accounts.methods.claimwebsite.flatPath - resources.accounts.methods.custombatch.flatPath - resources.accounts.methods.custombatch.parameterOrder - resources.accounts.methods.delete.flatPath - resources.accounts.methods.get.flatPath - resources.accounts.methods.insert.flatPath - resources.accounts.methods.link.flatPath - resources.accounts.methods.list.flatPath - resources.accounts.methods.listlinks.flatPath - resources.accounts.methods.update.flatPath - resources.accounts.methods.updatelabels.flatPath - resources.accounts.resources.labels.methods.create.description - resources.accounts.resources.labels.methods.create.flatPath - resources.accounts.resources.labels.methods.create.httpMethod - resources.accounts.resources.labels.methods.create.id - resources.accounts.resources.labels.methods.create.parameterOrder - resources.accounts.resources.labels.methods.create.parameters.accountId.description - resources.accounts.resources.labels.methods.create.parameters.accountId.format - resources.accounts.resources.labels.methods.create.parameters.accountId.location - resources.accounts.resources.labels.methods.create.parameters.accountId.required - resources.accounts.resources.labels.methods.create.parameters.accountId.type - resources.accounts.resources.labels.methods.create.path - resources.accounts.resources.labels.methods.create.request.$ref - resources.accounts.resources.labels.methods.create.response.$ref - resources.accounts.resources.labels.methods.create.scopes - resources.accounts.resources.labels.methods.delete.description - resources.accounts.resources.labels.methods.delete.flatPath - resources.accounts.resources.labels.methods.delete.httpMethod - resources.accounts.resources.labels.methods.delete.id - resources.accounts.resources.labels.methods.delete.parameterOrder - resources.accounts.resources.labels.methods.delete.parameters.accountId.description - resources.accounts.resources.labels.methods.delete.parameters.accountId.format - resources.accounts.resources.labels.methods.delete.parameters.accountId.location - resources.accounts.resources.labels.methods.delete.parameters.accountId.required - resources.accounts.resources.labels.methods.delete.parameters.accountId.type - resources.accounts.resources.labels.methods.delete.parameters.labelId.description - resources.accounts.resources.labels.methods.delete.parameters.labelId.format - resources.accounts.resources.labels.methods.delete.parameters.labelId.location - resources.accounts.resources.labels.methods.delete.parameters.labelId.required - resources.accounts.resources.labels.methods.delete.parameters.labelId.type - resources.accounts.resources.labels.methods.delete.path - resources.accounts.resources.labels.methods.delete.scopes - resources.accounts.resources.labels.methods.list.description - resources.accounts.resources.labels.methods.list.flatPath - resources.accounts.resources.labels.methods.list.httpMethod - resources.accounts.resources.labels.methods.list.id - resources.accounts.resources.labels.methods.list.parameterOrder - resources.accounts.resources.labels.methods.list.parameters.accountId.description - resources.accounts.resources.labels.methods.list.parameters.accountId.format - resources.accounts.resources.labels.methods.list.parameters.accountId.location - resources.accounts.resources.labels.methods.list.parameters.accountId.required - resources.accounts.resources.labels.methods.list.parameters.accountId.type - resources.accounts.resources.labels.methods.list.parameters.pageSize.description - resources.accounts.resources.labels.methods.list.parameters.pageSize.format - resources.accounts.resources.labels.methods.list.parameters.pageSize.location - resources.accounts.resources.labels.methods.list.parameters.pageSize.type - resources.accounts.resources.labels.methods.list.parameters.pageToken.description - resources.accounts.resources.labels.methods.list.parameters.pageToken.location - resources.accounts.resources.labels.methods.list.parameters.pageToken.type - resources.accounts.resources.labels.methods.list.path - resources.accounts.resources.labels.methods.list.response.$ref - resources.accounts.resources.labels.methods.list.scopes - resources.accounts.resources.labels.methods.patch.description - resources.accounts.resources.labels.methods.patch.flatPath - resources.accounts.resources.labels.methods.patch.httpMethod - resources.accounts.resources.labels.methods.patch.id - resources.accounts.resources.labels.methods.patch.parameterOrder - resources.accounts.resources.labels.methods.patch.parameters.accountId.description - resources.accounts.resources.labels.methods.patch.parameters.accountId.format - resources.accounts.resources.labels.methods.patch.parameters.accountId.location - resources.accounts.resources.labels.methods.patch.parameters.accountId.required - resources.accounts.resources.labels.methods.patch.parameters.accountId.type - resources.accounts.resources.labels.methods.patch.parameters.labelId.description - resources.accounts.resources.labels.methods.patch.parameters.labelId.format - resources.accounts.resources.labels.methods.patch.parameters.labelId.location - resources.accounts.resources.labels.methods.patch.parameters.labelId.required - resources.accounts.resources.labels.methods.patch.parameters.labelId.type - resources.accounts.resources.labels.methods.patch.path - resources.accounts.resources.labels.methods.patch.request.$ref - resources.accounts.resources.labels.methods.patch.response.$ref - resources.accounts.resources.labels.methods.patch.scopes - resources.accountstatuses.methods.custombatch.flatPath - resources.accountstatuses.methods.custombatch.parameterOrder - resources.accountstatuses.methods.get.flatPath - resources.accountstatuses.methods.list.flatPath - resources.accounttax.methods.custombatch.flatPath - resources.accounttax.methods.custombatch.parameterOrder - resources.accounttax.methods.get.flatPath - resources.accounttax.methods.list.flatPath - resources.accounttax.methods.update.flatPath - resources.csses.methods.get.description - resources.csses.methods.get.flatPath - resources.csses.methods.get.httpMethod - resources.csses.methods.get.id - resources.csses.methods.get.parameterOrder - resources.csses.methods.get.parameters.cssDomainId.description - resources.csses.methods.get.parameters.cssDomainId.format - resources.csses.methods.get.parameters.cssDomainId.location - resources.csses.methods.get.parameters.cssDomainId.required - resources.csses.methods.get.parameters.cssDomainId.type - resources.csses.methods.get.parameters.cssGroupId.description - resources.csses.methods.get.parameters.cssGroupId.format - resources.csses.methods.get.parameters.cssGroupId.location - resources.csses.methods.get.parameters.cssGroupId.required - resources.csses.methods.get.parameters.cssGroupId.type - resources.csses.methods.get.path - resources.csses.methods.get.response.$ref - resources.csses.methods.get.scopes - resources.csses.methods.list.description - resources.csses.methods.list.flatPath - resources.csses.methods.list.httpMethod - resources.csses.methods.list.id - resources.csses.methods.list.parameterOrder - resources.csses.methods.list.parameters.cssGroupId.description - resources.csses.methods.list.parameters.cssGroupId.format - resources.csses.methods.list.parameters.cssGroupId.location - resources.csses.methods.list.parameters.cssGroupId.required - resources.csses.methods.list.parameters.cssGroupId.type - resources.csses.methods.list.parameters.pageSize.description - resources.csses.methods.list.parameters.pageSize.format - resources.csses.methods.list.parameters.pageSize.location - resources.csses.methods.list.parameters.pageSize.type - resources.csses.methods.list.parameters.pageToken.description - resources.csses.methods.list.parameters.pageToken.location - resources.csses.methods.list.parameters.pageToken.type - resources.csses.methods.list.path - resources.csses.methods.list.response.$ref - resources.csses.methods.list.scopes - resources.csses.methods.updatelabels.description - resources.csses.methods.updatelabels.flatPath - resources.csses.methods.updatelabels.httpMethod - resources.csses.methods.updatelabels.id - resources.csses.methods.updatelabels.parameterOrder - resources.csses.methods.updatelabels.parameters.cssDomainId.description - resources.csses.methods.updatelabels.parameters.cssDomainId.format - resources.csses.methods.updatelabels.parameters.cssDomainId.location - resources.csses.methods.updatelabels.parameters.cssDomainId.required - resources.csses.methods.updatelabels.parameters.cssDomainId.type - resources.csses.methods.updatelabels.parameters.cssGroupId.description - resources.csses.methods.updatelabels.parameters.cssGroupId.format - resources.csses.methods.updatelabels.parameters.cssGroupId.location - resources.csses.methods.updatelabels.parameters.cssGroupId.required - resources.csses.methods.updatelabels.parameters.cssGroupId.type - resources.csses.methods.updatelabels.path - resources.csses.methods.updatelabels.request.$ref - resources.csses.methods.updatelabels.response.$ref - resources.csses.methods.updatelabels.scopes - resources.datafeeds.methods.custombatch.flatPath - resources.datafeeds.methods.custombatch.parameterOrder - resources.datafeeds.methods.delete.flatPath - resources.datafeeds.methods.fetchnow.flatPath - resources.datafeeds.methods.get.flatPath - resources.datafeeds.methods.insert.flatPath - resources.datafeeds.methods.list.flatPath - resources.datafeeds.methods.update.flatPath - resources.datafeedstatuses.methods.custombatch.flatPath - resources.datafeedstatuses.methods.custombatch.parameterOrder - resources.datafeedstatuses.methods.get.flatPath - resources.datafeedstatuses.methods.list.flatPath - resources.liasettings.methods.custombatch.flatPath - resources.liasettings.methods.custombatch.parameterOrder - resources.liasettings.methods.get.flatPath - resources.liasettings.methods.getaccessiblegmbaccounts.flatPath - resources.liasettings.methods.list.flatPath - resources.liasettings.methods.listposdataproviders.flatPath - resources.liasettings.methods.listposdataproviders.parameterOrder - resources.liasettings.methods.requestgmbaccess.flatPath - resources.liasettings.methods.requestinventoryverification.flatPath - resources.liasettings.methods.setinventoryverificationcontact.flatPath - resources.liasettings.methods.setposdataprovider.flatPath - resources.liasettings.methods.update.flatPath - resources.localinventory.methods.custombatch.flatPath - resources.localinventory.methods.custombatch.parameterOrder - resources.localinventory.methods.insert.flatPath - resources.orderinvoices.methods.createchargeinvoice.flatPath - resources.orderinvoices.methods.createrefundinvoice.flatPath - resources.orderreports.methods.listdisbursements.flatPath - resources.orderreports.methods.listtransactions.flatPath - resources.orderreturns.methods.acknowledge.flatPath - resources.orderreturns.methods.get.flatPath - resources.orderreturns.methods.list.flatPath - resources.orderreturns.methods.process.flatPath - resources.orders.methods.acknowledge.flatPath - resources.orders.methods.advancetestorder.flatPath - resources.orders.methods.cancel.flatPath - resources.orders.methods.cancellineitem.flatPath - resources.orders.methods.canceltestorderbycustomer.flatPath - resources.orders.methods.createtestorder.flatPath - resources.orders.methods.createtestreturn.flatPath - resources.orders.methods.get.flatPath - resources.orders.methods.getbymerchantorderid.flatPath - resources.orders.methods.gettestordertemplate.flatPath - resources.orders.methods.instorerefundlineitem.flatPath - resources.orders.methods.list.flatPath - resources.orders.methods.refunditem.flatPath - resources.orders.methods.refundorder.flatPath - resources.orders.methods.rejectreturnlineitem.flatPath - resources.orders.methods.returnrefundlineitem.flatPath - resources.orders.methods.setlineitemmetadata.flatPath - resources.orders.methods.shiplineitems.flatPath - resources.orders.methods.updatelineitemshippingdetails.flatPath - resources.orders.methods.updatemerchantorderid.flatPath - resources.orders.methods.updateshipment.flatPath - resources.pos.methods.custombatch.flatPath - resources.pos.methods.custombatch.parameterOrder - resources.pos.methods.delete.flatPath - resources.pos.methods.get.flatPath - resources.pos.methods.insert.flatPath - resources.pos.methods.inventory.flatPath - resources.pos.methods.list.flatPath - resources.pos.methods.sale.flatPath - resources.products.methods.custombatch.flatPath - resources.products.methods.custombatch.parameterOrder - resources.products.methods.delete.flatPath - resources.products.methods.get.flatPath - resources.products.methods.insert.flatPath - resources.products.methods.list.flatPath - resources.productstatuses.methods.custombatch.flatPath - resources.productstatuses.methods.custombatch.parameterOrder - resources.productstatuses.methods.get.flatPath - resources.productstatuses.methods.list.flatPath - resources.pubsubnotificationsettings.methods.get.flatPath - resources.pubsubnotificationsettings.methods.update.flatPath - resources.regionalinventory.methods.custombatch.flatPath - resources.regionalinventory.methods.custombatch.parameterOrder - resources.regionalinventory.methods.insert.flatPath - resources.repricingrules.methods.create.description - resources.repricingrules.methods.create.flatPath - resources.repricingrules.methods.create.httpMethod - resources.repricingrules.methods.create.id - resources.repricingrules.methods.create.parameterOrder - resources.repricingrules.methods.create.parameters.merchantId.description - resources.repricingrules.methods.create.parameters.merchantId.format - resources.repricingrules.methods.create.parameters.merchantId.location - resources.repricingrules.methods.create.parameters.merchantId.required - resources.repricingrules.methods.create.parameters.merchantId.type - resources.repricingrules.methods.create.parameters.ruleId.description - resources.repricingrules.methods.create.parameters.ruleId.location - resources.repricingrules.methods.create.parameters.ruleId.type - resources.repricingrules.methods.create.path - resources.repricingrules.methods.create.request.$ref - resources.repricingrules.methods.create.response.$ref - resources.repricingrules.methods.create.scopes - resources.repricingrules.methods.delete.description - resources.repricingrules.methods.delete.flatPath - resources.repricingrules.methods.delete.httpMethod - resources.repricingrules.methods.delete.id - resources.repricingrules.methods.delete.parameterOrder - resources.repricingrules.methods.delete.parameters.merchantId.description - resources.repricingrules.methods.delete.parameters.merchantId.format - resources.repricingrules.methods.delete.parameters.merchantId.location - resources.repricingrules.methods.delete.parameters.merchantId.required - resources.repricingrules.methods.delete.parameters.merchantId.type - resources.repricingrules.methods.delete.parameters.ruleId.description - resources.repricingrules.methods.delete.parameters.ruleId.location - resources.repricingrules.methods.delete.parameters.ruleId.required - resources.repricingrules.methods.delete.parameters.ruleId.type - resources.repricingrules.methods.delete.path - resources.repricingrules.methods.delete.scopes - resources.repricingrules.methods.get.description - resources.repricingrules.methods.get.flatPath - resources.repricingrules.methods.get.httpMethod - resources.repricingrules.methods.get.id - resources.repricingrules.methods.get.parameterOrder - resources.repricingrules.methods.get.parameters.merchantId.description - resources.repricingrules.methods.get.parameters.merchantId.format - resources.repricingrules.methods.get.parameters.merchantId.location - resources.repricingrules.methods.get.parameters.merchantId.required - resources.repricingrules.methods.get.parameters.merchantId.type - resources.repricingrules.methods.get.parameters.ruleId.description - resources.repricingrules.methods.get.parameters.ruleId.location - resources.repricingrules.methods.get.parameters.ruleId.required - resources.repricingrules.methods.get.parameters.ruleId.type - resources.repricingrules.methods.get.path - resources.repricingrules.methods.get.response.$ref - resources.repricingrules.methods.get.scopes - resources.repricingrules.methods.list.description - resources.repricingrules.methods.list.flatPath - resources.repricingrules.methods.list.httpMethod - resources.repricingrules.methods.list.id - resources.repricingrules.methods.list.parameterOrder - resources.repricingrules.methods.list.parameters.countryCode.description - resources.repricingrules.methods.list.parameters.countryCode.location - resources.repricingrules.methods.list.parameters.countryCode.type - resources.repricingrules.methods.list.parameters.languageCode.description - resources.repricingrules.methods.list.parameters.languageCode.location - resources.repricingrules.methods.list.parameters.languageCode.type - resources.repricingrules.methods.list.parameters.merchantId.description - resources.repricingrules.methods.list.parameters.merchantId.format - resources.repricingrules.methods.list.parameters.merchantId.location - resources.repricingrules.methods.list.parameters.merchantId.required - resources.repricingrules.methods.list.parameters.merchantId.type - resources.repricingrules.methods.list.parameters.pageSize.description - resources.repricingrules.methods.list.parameters.pageSize.format - resources.repricingrules.methods.list.parameters.pageSize.location - resources.repricingrules.methods.list.parameters.pageSize.type - resources.repricingrules.methods.list.parameters.pageToken.description - resources.repricingrules.methods.list.parameters.pageToken.location - resources.repricingrules.methods.list.parameters.pageToken.type - resources.repricingrules.methods.list.path - resources.repricingrules.methods.list.response.$ref - resources.repricingrules.methods.list.scopes - resources.repricingrules.methods.patch.description - resources.repricingrules.methods.patch.flatPath - resources.repricingrules.methods.patch.httpMethod - resources.repricingrules.methods.patch.id - resources.repricingrules.methods.patch.parameterOrder - resources.repricingrules.methods.patch.parameters.merchantId.description - resources.repricingrules.methods.patch.parameters.merchantId.format - resources.repricingrules.methods.patch.parameters.merchantId.location - resources.repricingrules.methods.patch.parameters.merchantId.required - resources.repricingrules.methods.patch.parameters.merchantId.type - resources.repricingrules.methods.patch.parameters.ruleId.description - resources.repricingrules.methods.patch.parameters.ruleId.location - resources.repricingrules.methods.patch.parameters.ruleId.required - resources.repricingrules.methods.patch.parameters.ruleId.type - resources.repricingrules.methods.patch.path - resources.repricingrules.methods.patch.request.$ref - resources.repricingrules.methods.patch.response.$ref - resources.repricingrules.methods.patch.scopes - resources.returnaddress.methods.custombatch.flatPath - resources.returnaddress.methods.custombatch.parameterOrder - resources.returnaddress.methods.delete.flatPath - resources.returnaddress.methods.get.flatPath - resources.returnaddress.methods.insert.flatPath - resources.returnaddress.methods.list.flatPath - resources.returnpolicy.methods.custombatch.flatPath - resources.returnpolicy.methods.custombatch.parameterOrder - resources.returnpolicy.methods.delete.flatPath - resources.returnpolicy.methods.get.flatPath - resources.returnpolicy.methods.insert.flatPath - resources.returnpolicy.methods.list.flatPath - resources.settlementreports.methods.get.flatPath - resources.settlementreports.methods.list.flatPath - resources.settlementtransactions.methods.list.flatPath - resources.shippingsettings.methods.custombatch.flatPath - resources.shippingsettings.methods.custombatch.parameterOrder - resources.shippingsettings.methods.get.flatPath - resources.shippingsettings.methods.getsupportedcarriers.flatPath - resources.shippingsettings.methods.getsupportedholidays.flatPath - resources.shippingsettings.methods.getsupportedpickupservices.flatPath - resources.shippingsettings.methods.list.flatPath - resources.shippingsettings.methods.update.flatPath - schemas.AccountLabel.description - schemas.AccountLabel.id - schemas.AccountLabel.properties.accountId.description - schemas.AccountLabel.properties.accountId.format - schemas.AccountLabel.properties.accountId.readOnly - schemas.AccountLabel.properties.accountId.type - schemas.AccountLabel.properties.description.description - schemas.AccountLabel.properties.description.type - schemas.AccountLabel.properties.labelId.description - schemas.AccountLabel.properties.labelId.format - schemas.AccountLabel.properties.labelId.readOnly - schemas.AccountLabel.properties.labelId.type - schemas.AccountLabel.properties.name.description - schemas.AccountLabel.properties.name.type - schemas.AccountLabel.type - schemas.Css.description - schemas.Css.id - schemas.Css.properties.cssDomainId.description - schemas.Css.properties.cssDomainId.format - schemas.Css.properties.cssDomainId.readOnly - schemas.Css.properties.cssDomainId.type - schemas.Css.properties.cssGroupId.description - schemas.Css.properties.cssGroupId.format - schemas.Css.properties.cssGroupId.readOnly - schemas.Css.properties.cssGroupId.type - schemas.Css.properties.displayName.description - schemas.Css.properties.displayName.readOnly - schemas.Css.properties.displayName.type - schemas.Css.properties.fullName.description - schemas.Css.properties.fullName.readOnly - schemas.Css.properties.fullName.type - schemas.Css.properties.homepageUri.description - schemas.Css.properties.homepageUri.readOnly - schemas.Css.properties.homepageUri.type - schemas.Css.properties.labelIds.description - schemas.Css.properties.labelIds.items.format - schemas.Css.properties.labelIds.items.type - schemas.Css.properties.labelIds.type - schemas.Css.type - schemas.LabelIds.description - schemas.LabelIds.id - schemas.LabelIds.properties.labelIds.description - schemas.LabelIds.properties.labelIds.items.format - schemas.LabelIds.properties.labelIds.items.type - schemas.LabelIds.properties.labelIds.type - schemas.LabelIds.type - schemas.ListAccountLabelsResponse.description - schemas.ListAccountLabelsResponse.id - schemas.ListAccountLabelsResponse.properties.accountLabels.description - schemas.ListAccountLabelsResponse.properties.accountLabels.items.$ref - schemas.ListAccountLabelsResponse.properties.accountLabels.type - schemas.ListAccountLabelsResponse.properties.nextPageToken.description - schemas.ListAccountLabelsResponse.properties.nextPageToken.type - schemas.ListAccountLabelsResponse.type - schemas.ListCssesResponse.description - schemas.ListCssesResponse.id - schemas.ListCssesResponse.properties.csses.description - schemas.ListCssesResponse.properties.csses.items.$ref - schemas.ListCssesResponse.properties.csses.type - schemas.ListCssesResponse.properties.nextPageToken.description - schemas.ListCssesResponse.properties.nextPageToken.type - schemas.ListCssesResponse.type - schemas.ListRepricingRulesResponse.description - schemas.ListRepricingRulesResponse.id - schemas.ListRepricingRulesResponse.properties.nextPageToken.description - schemas.ListRepricingRulesResponse.properties.nextPageToken.type - schemas.ListRepricingRulesResponse.properties.repricingRules.description - schemas.ListRepricingRulesResponse.properties.repricingRules.items.$ref - schemas.ListRepricingRulesResponse.properties.repricingRules.type - schemas.ListRepricingRulesResponse.type - schemas.RepricingRule.description - schemas.RepricingRule.id - schemas.RepricingRule.properties.countryCode.description - schemas.RepricingRule.properties.countryCode.type - schemas.RepricingRule.properties.effectiveTimePeriod.$ref - schemas.RepricingRule.properties.effectiveTimePeriod.description - schemas.RepricingRule.properties.eligibleOfferMatcher.$ref - schemas.RepricingRule.properties.eligibleOfferMatcher.description - schemas.RepricingRule.properties.languageCode.description - schemas.RepricingRule.properties.languageCode.type - schemas.RepricingRule.properties.merchantId.description - schemas.RepricingRule.properties.merchantId.format - schemas.RepricingRule.properties.merchantId.readOnly - schemas.RepricingRule.properties.merchantId.type - schemas.RepricingRule.properties.paused.description - schemas.RepricingRule.properties.paused.type - schemas.RepricingRule.properties.restriction.$ref - schemas.RepricingRule.properties.restriction.description - schemas.RepricingRule.properties.ruleId.description - schemas.RepricingRule.properties.ruleId.readOnly - schemas.RepricingRule.properties.ruleId.type - schemas.RepricingRule.properties.title.description - schemas.RepricingRule.properties.title.type - schemas.RepricingRule.properties.type.description - schemas.RepricingRule.properties.type.enum - schemas.RepricingRule.properties.type.enumDescriptions - schemas.RepricingRule.properties.type.type - schemas.RepricingRule.type - schemas.RepricingRuleEffectiveTime.id - schemas.RepricingRuleEffectiveTime.properties.fixedTimePeriods.description - schemas.RepricingRuleEffectiveTime.properties.fixedTimePeriods.items.$ref - schemas.RepricingRuleEffectiveTime.properties.fixedTimePeriods.type - schemas.RepricingRuleEffectiveTime.type - schemas.RepricingRuleEffectiveTimeFixedTimePeriod.description - schemas.RepricingRuleEffectiveTimeFixedTimePeriod.id - schemas.RepricingRuleEffectiveTimeFixedTimePeriod.properties.endTime.description - schemas.RepricingRuleEffectiveTimeFixedTimePeriod.properties.endTime.format - schemas.RepricingRuleEffectiveTimeFixedTimePeriod.properties.endTime.type - schemas.RepricingRuleEffectiveTimeFixedTimePeriod.properties.startTime.description - schemas.RepricingRuleEffectiveTimeFixedTimePeriod.properties.startTime.format - schemas.RepricingRuleEffectiveTimeFixedTimePeriod.properties.startTime.type - schemas.RepricingRuleEffectiveTimeFixedTimePeriod.type - schemas.RepricingRuleEligibleOfferMatcher.description - schemas.RepricingRuleEligibleOfferMatcher.id - schemas.RepricingRuleEligibleOfferMatcher.properties.brandMatcher.$ref - schemas.RepricingRuleEligibleOfferMatcher.properties.brandMatcher.description - schemas.RepricingRuleEligibleOfferMatcher.properties.itemGroupIdMatcher.$ref - schemas.RepricingRuleEligibleOfferMatcher.properties.itemGroupIdMatcher.description - schemas.RepricingRuleEligibleOfferMatcher.properties.matcherOption.description - schemas.RepricingRuleEligibleOfferMatcher.properties.matcherOption.enum - schemas.RepricingRuleEligibleOfferMatcher.properties.matcherOption.enumDescriptions - schemas.RepricingRuleEligibleOfferMatcher.properties.matcherOption.type - schemas.RepricingRuleEligibleOfferMatcher.properties.offerIdMatcher.$ref - schemas.RepricingRuleEligibleOfferMatcher.properties.offerIdMatcher.description - schemas.RepricingRuleEligibleOfferMatcher.type - schemas.RepricingRuleEligibleOfferMatcherStringMatcher.description - schemas.RepricingRuleEligibleOfferMatcherStringMatcher.id - schemas.RepricingRuleEligibleOfferMatcherStringMatcher.properties.strAttributes.description - schemas.RepricingRuleEligibleOfferMatcherStringMatcher.properties.strAttributes.items.type - schemas.RepricingRuleEligibleOfferMatcherStringMatcher.properties.strAttributes.type - schemas.RepricingRuleEligibleOfferMatcherStringMatcher.type - schemas.RepricingRuleRestriction.description - schemas.RepricingRuleRestriction.id - schemas.RepricingRuleRestriction.properties.floor.$ref - schemas.RepricingRuleRestriction.properties.floor.description - schemas.RepricingRuleRestriction.properties.useAutoPricingMinPrice.description - schemas.RepricingRuleRestriction.properties.useAutoPricingMinPrice.type - schemas.RepricingRuleRestriction.type - schemas.RepricingRuleRestrictionBoundary.description - schemas.RepricingRuleRestrictionBoundary.id - schemas.RepricingRuleRestrictionBoundary.properties.percentageDelta.description - schemas.RepricingRuleRestrictionBoundary.properties.percentageDelta.format - schemas.RepricingRuleRestrictionBoundary.properties.percentageDelta.type - schemas.RepricingRuleRestrictionBoundary.properties.priceDelta.description - schemas.RepricingRuleRestrictionBoundary.properties.priceDelta.type - schemas.RepricingRuleRestrictionBoundary.type The following keys were changed: - baseUrl - batchPath - description - documentationLink - icons.x16 - icons.x32 - parameters.alt.description - parameters.alt.enum - parameters.alt.enumDescriptions - parameters.quotaUser.description - resources.accounts.methods.authinfo.path - resources.accounts.methods.claimwebsite.path - resources.accounts.methods.custombatch.path - resources.accounts.methods.delete.path - resources.accounts.methods.get.parameters.view.enum - resources.accounts.methods.get.path - resources.accounts.methods.insert.path - resources.accounts.methods.link.path - resources.accounts.methods.list.parameters.view.enum - resources.accounts.methods.list.path - resources.accounts.methods.listlinks.path - resources.accounts.methods.update.path - resources.accounts.methods.updatelabels.path - resources.accountstatuses.methods.custombatch.path - resources.accountstatuses.methods.get.path - resources.accountstatuses.methods.list.path - resources.accounttax.methods.custombatch.path - resources.accounttax.methods.get.path - resources.accounttax.methods.list.path - resources.accounttax.methods.update.path - resources.datafeeds.methods.custombatch.path - resources.datafeeds.methods.delete.path - resources.datafeeds.methods.fetchnow.path - resources.datafeeds.methods.get.path - resources.datafeeds.methods.insert.path - resources.datafeeds.methods.list.path - resources.datafeeds.methods.update.path - resources.datafeedstatuses.methods.custombatch.path - resources.datafeedstatuses.methods.get.path - resources.datafeedstatuses.methods.list.path - resources.liasettings.methods.custombatch.path - resources.liasettings.methods.get.path - resources.liasettings.methods.getaccessiblegmbaccounts.path - resources.liasettings.methods.list.path - resources.liasettings.methods.listposdataproviders.path - resources.liasettings.methods.requestgmbaccess.parameterOrder - resources.liasettings.methods.requestgmbaccess.path - resources.liasettings.methods.requestinventoryverification.path - resources.liasettings.methods.setinventoryverificationcontact.parameterOrder - resources.liasettings.methods.setinventoryverificationcontact.path - resources.liasettings.methods.setposdataprovider.parameterOrder - resources.liasettings.methods.setposdataprovider.path - resources.liasettings.methods.update.path - resources.localinventory.methods.custombatch.path - resources.localinventory.methods.insert.path - resources.orderinvoices.methods.createchargeinvoice.path - resources.orderinvoices.methods.createrefundinvoice.path - resources.orderreports.methods.listdisbursements.parameterOrder - resources.orderreports.methods.listdisbursements.path - resources.orderreports.methods.listtransactions.parameterOrder - resources.orderreports.methods.listtransactions.path - resources.orderreturns.methods.acknowledge.path - resources.orderreturns.methods.get.path - resources.orderreturns.methods.list.parameters.acknowledged.description - resources.orderreturns.methods.list.parameters.googleOrderIds.description - resources.orderreturns.methods.list.parameters.orderBy.enum - resources.orderreturns.methods.list.parameters.shipmentStates.enum - resources.orderreturns.methods.list.parameters.shipmentStatus.enum - resources.orderreturns.methods.list.parameters.shipmentTrackingNumbers.description - resources.orderreturns.methods.list.parameters.shipmentTypes.enum - resources.orderreturns.methods.list.path - resources.orderreturns.methods.process.path - resources.orders.methods.acknowledge.path - resources.orders.methods.advancetestorder.path - resources.orders.methods.cancel.path - resources.orders.methods.cancellineitem.path - resources.orders.methods.canceltestorderbycustomer.path - resources.orders.methods.createtestorder.path - resources.orders.methods.createtestreturn.path - resources.orders.methods.get.path - resources.orders.methods.getbymerchantorderid.path - resources.orders.methods.gettestordertemplate.parameters.templateName.enum - resources.orders.methods.gettestordertemplate.path - resources.orders.methods.instorerefundlineitem.description - resources.orders.methods.instorerefundlineitem.path - resources.orders.methods.list.parameters.acknowledged.description - resources.orders.methods.list.parameters.orderBy.description - resources.orders.methods.list.parameters.statuses.enum - resources.orders.methods.list.path - resources.orders.methods.refunditem.path - resources.orders.methods.refundorder.path - resources.orders.methods.rejectreturnlineitem.path - resources.orders.methods.returnrefundlineitem.path - resources.orders.methods.setlineitemmetadata.path - resources.orders.methods.shiplineitems.path - resources.orders.methods.updatelineitemshippingdetails.path - resources.orders.methods.updatemerchantorderid.path - resources.orders.methods.updateshipment.path - resources.pos.methods.custombatch.path - resources.pos.methods.delete.path - resources.pos.methods.get.path - resources.pos.methods.insert.path - resources.pos.methods.inventory.path - resources.pos.methods.list.path - resources.pos.methods.sale.path - resources.products.methods.custombatch.path - resources.products.methods.delete.path - resources.products.methods.get.path - resources.products.methods.insert.path - resources.products.methods.list.path - resources.productstatuses.methods.custombatch.path - resources.productstatuses.methods.get.path - resources.productstatuses.methods.list.path - resources.pubsubnotificationsettings.methods.get.path - resources.pubsubnotificationsettings.methods.update.path - resources.regionalinventory.methods.custombatch.path - resources.regionalinventory.methods.insert.path - resources.returnaddress.methods.custombatch.path - resources.returnaddress.methods.delete.path - resources.returnaddress.methods.get.path - resources.returnaddress.methods.insert.path - resources.returnaddress.methods.list.path - resources.returnpolicy.methods.custombatch.path - resources.returnpolicy.methods.delete.path - resources.returnpolicy.methods.get.path - resources.returnpolicy.methods.insert.path - resources.returnpolicy.methods.list.path - resources.settlementreports.methods.get.path - resources.settlementreports.methods.list.path - resources.settlementtransactions.methods.list.path - resources.shippingsettings.methods.custombatch.path - resources.shippingsettings.methods.get.path - resources.shippingsettings.methods.getsupportedcarriers.path - resources.shippingsettings.methods.getsupportedholidays.path - resources.shippingsettings.methods.getsupportedpickupservices.path - resources.shippingsettings.methods.list.path - resources.shippingsettings.methods.update.path - rootUrl - schemas.AccountAdsLink.properties.status.description - schemas.AccountGoogleMyBusinessLink.properties.status.description - schemas.AccountStatusAccountLevelIssue.properties.severity.description - schemas.AccountStatusProducts.properties.channel.description - schemas.AccountYouTubeChannelLink.properties.status.description - schemas.AccountsAuthInfoResponse.properties.accountIdentifiers.description - schemas.AccountsCustomBatchRequestEntry.properties.method.description - schemas.AccountsCustomBatchRequestEntryLinkRequest.properties.action.description - schemas.AccountsCustomBatchRequestEntryLinkRequest.properties.linkType.description - schemas.AccountsLinkRequest.properties.action.description - schemas.AccountsLinkRequest.properties.linkType.description - schemas.AccountstatusesCustomBatchRequestEntry.properties.method.description - schemas.AccounttaxCustomBatchRequestEntry.properties.method.description - schemas.CustomerReturnReason.properties.reasonCode.description - schemas.CutoffTime.properties.timezone.description - schemas.Datafeed.properties.contentType.description - schemas.DatafeedFetchSchedule.properties.weekday.description - schemas.DatafeedFormat.properties.columnDelimiter.description - schemas.DatafeedFormat.properties.fileEncoding.description - schemas.DatafeedFormat.properties.quotingMode.description - schemas.DatafeedStatus.properties.country.description - schemas.DatafeedStatus.properties.processingStatus.description - schemas.DatafeedTarget.properties.country.description - schemas.DatafeedTarget.properties.includedDestinations.description - schemas.DatafeedsCustomBatchRequestEntry.properties.method.description - schemas.DatafeedstatusesCustomBatchRequestEntry.properties.method.description - schemas.Headers.properties.numberOfItems.description - schemas.Headers.properties.prices.description - schemas.Headers.properties.weights.description - schemas.HolidayCutoff.properties.deadlineTimezone.description - schemas.HolidaysHoliday.properties.type.description - schemas.InvoiceSummaryAdditionalChargeSummary.properties.type.description - schemas.LiaAboutPageSettings.properties.status.description - schemas.LiaInventorySettings.properties.inventoryVerificationContactStatus.description - schemas.LiaInventorySettings.properties.status.description - schemas.LiaOnDisplayToOrderSettings.properties.status.description - schemas.LiasettingsCustomBatchRequestEntry.properties.method.description - schemas.LinkService.properties.service.description - schemas.LinkService.properties.status.description - schemas.LocalinventoryCustomBatchRequestEntry.properties.method.description - schemas.MerchantOrderReturnItem.properties.state.description - schemas.Order.description - schemas.Order.properties.paymentStatus.description - schemas.Order.properties.promotions.description - schemas.Order.properties.status.description - schemas.Order.properties.taxCollector.description - schemas.OrderAddress.properties.fullAddress.description - schemas.OrderCancellation.properties.actor.description - schemas.OrderCancellation.properties.reason.description - schemas.OrderCustomer.properties.invoiceReceivingEmail.description - schemas.OrderCustomerMarketingRightsInfo.properties.explicitMarketingPreference.description - schemas.OrderLineItemAdjustment.properties.type.description - schemas.OrderLineItemProduct.properties.condition.description - schemas.OrderLineItemProduct.properties.targetCountry.description - schemas.OrderLineItemShippingDetails.properties.type.description - schemas.OrderPickupDetails.properties.pickupType.description - schemas.OrderPromotion.properties.funder.description - schemas.OrderPromotion.properties.subtype.description - schemas.OrderPromotion.properties.type.description - schemas.OrderRefund.properties.actor.description - schemas.OrderRefund.properties.reason.description - schemas.OrderReportDisbursement.description - schemas.OrderReturn.properties.actor.description - schemas.OrderReturn.properties.reason.description - schemas.OrderShipment.properties.carrier.description - schemas.OrderShipment.properties.status.description - schemas.OrderinvoicesCreateChargeInvoiceResponse.properties.executionStatus.description - schemas.OrderinvoicesCreateRefundInvoiceResponse.properties.executionStatus.description - schemas.OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption.properties.reason.description - schemas.OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption.properties.reason.description - schemas.OrderreturnsAcknowledgeResponse.properties.executionStatus.description - schemas.OrderreturnsProcessResponse.properties.executionStatus.description - schemas.OrdersAcknowledgeResponse.properties.executionStatus.description - schemas.OrdersCancelLineItemRequest.properties.reason.description - schemas.OrdersCancelLineItemResponse.properties.executionStatus.description - schemas.OrdersCancelRequest.properties.reason.description - schemas.OrdersCancelResponse.properties.executionStatus.description - schemas.OrdersCancelTestOrderByCustomerRequest.properties.reason.description - schemas.OrdersCreateTestOrderRequest.properties.country.description - schemas.OrdersCreateTestOrderRequest.properties.templateName.description - schemas.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo.properties.carrier.description - schemas.OrdersInStoreRefundLineItemRequest.properties.reason.description - schemas.OrdersInStoreRefundLineItemResponse.properties.executionStatus.description - schemas.OrdersRefundItemRequest.properties.reason.description - schemas.OrdersRefundItemResponse.properties.executionStatus.description - schemas.OrdersRefundOrderRequest.properties.reason.description - schemas.OrdersRefundOrderResponse.properties.executionStatus.description - schemas.OrdersRejectReturnLineItemRequest.properties.reason.description - schemas.OrdersRejectReturnLineItemResponse.properties.executionStatus.description - schemas.OrdersReturnRefundLineItemRequest.properties.reason.description - schemas.OrdersReturnRefundLineItemResponse.properties.executionStatus.description - schemas.OrdersSetLineItemMetadataResponse.properties.executionStatus.description - schemas.OrdersShipLineItemsResponse.properties.executionStatus.description - schemas.OrdersUpdateLineItemShippingDetailsRequest.properties.deliverByDate.description - schemas.OrdersUpdateLineItemShippingDetailsRequest.properties.shipByDate.description - schemas.OrdersUpdateLineItemShippingDetailsResponse.properties.executionStatus.description - schemas.OrdersUpdateMerchantOrderIdResponse.properties.executionStatus.description - schemas.OrdersUpdateShipmentRequest.properties.carrier.description - schemas.OrdersUpdateShipmentRequest.properties.status.description - schemas.OrdersUpdateShipmentResponse.properties.executionStatus.description - schemas.PosCustomBatchRequestEntry.properties.method.description - schemas.Product.description - schemas.Product.properties.channel.description - schemas.Product.properties.id.description - schemas.Product.properties.offerId.description - schemas.Product.properties.salePriceEffectiveDate.description - schemas.Product.properties.source.description - schemas.ProductsCustomBatchRequestEntry.properties.method.description - schemas.ProductstatusesCustomBatchRequestEntry.properties.method.description - schemas.PubsubNotificationSettings.description - schemas.PubsubNotificationSettings.properties.registeredEvents.description - schemas.RefundReason.properties.reasonCode.description - schemas.RegionalinventoryCustomBatchRequestEntry.properties.method.description - schemas.ReturnPolicyPolicy.properties.type.description - schemas.ReturnShipment.properties.returnMethodType.description - schemas.ReturnShipment.properties.state.description - schemas.ReturnaddressCustomBatchRequestEntry.properties.method.description - schemas.ReturnpolicyCustomBatchRequestEntry.properties.method.description - schemas.Service.properties.eligibility.description - schemas.Service.properties.shipmentType.description - schemas.SettlementReport.description - schemas.SettlementTransaction.description - schemas.SettlementTransactionAmount.properties.description.description - schemas.SettlementTransactionAmount.properties.type.description - schemas.SettlementTransactionAmountCommission.properties.category.description - schemas.SettlementTransactionTransaction.properties.type.description - schemas.ShipmentTrackingInfo.properties.carrier.description - schemas.ShippingsettingsCustomBatchRequestEntry.properties.method.description - schemas.TestOrder.properties.predefinedBillingAddress.description - schemas.TestOrder.properties.predefinedDeliveryAddress.description - schemas.TestOrder.properties.predefinedEmail.description - schemas.TestOrder.properties.predefinedPickupDetails.description - schemas.TestOrder.properties.shippingOption.description - schemas.TestOrderAddress.properties.fullAddress.description - schemas.TestOrderLineItemProduct.properties.condition.description - schemas.TestOrderLineItemProduct.properties.contentLanguage.description - schemas.TestOrderLineItemProduct.properties.targetCountry.description - schemas.TestOrderPickupDetails.properties.pickupLocationType.description - schemas.UnitInvoiceAdditionalCharge.properties.type.description - schemas.UnitInvoiceTaxLine.properties.taxType.description - schemas.Weight.properties.unit.description --- discovery/content-v2.1.json | 2162 +++--- src/apis/content/v2.1.ts | 12778 ++++++++++++++++++++-------------- 2 files changed, 8734 insertions(+), 6206 deletions(-) diff --git a/discovery/content-v2.1.json b/discovery/content-v2.1.json index 7dae2f467a9..004b3ff3a30 100644 --- a/discovery/content-v2.1.json +++ b/discovery/content-v2.1.json @@ -8,36 +8,64 @@ } } }, - "basePath": "/content/v2.1/", - "baseUrl": "https://www.googleapis.com/content/v2.1/", - "batchPath": "batch/content/v2.1", + "basePath": "", + "baseUrl": "https://shoppingcontent.googleapis.com/", + "batchPath": "batch", "canonicalName": "Shopping Content", - "description": "Manages product items, inventory, and Merchant Center accounts for Google Shopping.", + "description": "Manage your product listings and accounts for Google Shopping", "discoveryVersion": "v1", - "documentationLink": "https://developers.google.com/shopping-content", - "etag": "\"-2NioU2H8y8siEzrBOV_qzRI6kQ/hzL4Pf5JdJer2F_gaxG6dg1Snv0\"", + "documentationLink": "https://developers.google.com/shopping-content/v2/", + "fullyEncodeReservedExpansion": true, "icons": { - "x16": "https://www.gstatic.com/images/branding/product/1x/googleg_16dp.png", - "x32": "https://www.gstatic.com/images/branding/product/1x/googleg_32dp.png" + "x16": "http://www.google.com/images/icons/product/search-16.gif", + "x32": "http://www.google.com/images/icons/product/search-32.gif" }, "id": "content:v2.1", "kind": "discovery#restDescription", + "mtlsRootUrl": "https://shoppingcontent.mtls.googleapis.com/", "name": "content", "ownerDomain": "google.com", "ownerName": "Google", "parameters": { + "$.xgafv": { + "description": "V1 error format.", + "enum": [ + "1", + "2" + ], + "enumDescriptions": [ + "v1 error format", + "v2 error format" + ], + "location": "query", + "type": "string" + }, + "access_token": { + "description": "OAuth access token.", + "location": "query", + "type": "string" + }, "alt": { "default": "json", - "description": "Data format for the response.", + "description": "Data format for response.", "enum": [ - "json" + "json", + "media", + "proto" ], "enumDescriptions": [ - "Responses with Content-Type of application/json" + "Responses with Content-Type of application/json", + "Media download with context-dependent Content-Type", + "Responses with Content-Type of application/x-protobuf" ], "location": "query", "type": "string" }, + "callback": { + "description": "JSONP", + "location": "query", + "type": "string" + }, "fields": { "description": "Selector specifying which fields to include in a partial response.", "location": "query", @@ -60,12 +88,17 @@ "type": "boolean" }, "quotaUser": { - "description": "An opaque string that represents a user for quota purposes. Must not exceed 40 characters.", + "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", + "location": "query", + "type": "string" + }, + "uploadType": { + "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", "location": "query", "type": "string" }, - "userIp": { - "description": "Deprecated. Please use quotaUser instead.", + "upload_protocol": { + "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", "location": "query", "type": "string" } @@ -76,9 +109,12 @@ "methods": { "authinfo": { "description": "Returns information about the authenticated user.", + "flatPath": "content/v2.1/accounts/authinfo", "httpMethod": "GET", "id": "content.accounts.authinfo", - "path": "accounts/authinfo", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/accounts/authinfo", "response": { "$ref": "AccountsAuthInfoResponse" }, @@ -88,6 +124,7 @@ }, "claimwebsite": { "description": "Claims the website of a Merchant Center sub-account.", + "flatPath": "content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite", "httpMethod": "POST", "id": "content.accounts.claimwebsite", "parameterOrder": [ @@ -115,7 +152,7 @@ "type": "boolean" } }, - "path": "{merchantId}/accounts/{accountId}/claimwebsite", + "path": "content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite", "response": { "$ref": "AccountsClaimWebsiteResponse" }, @@ -125,9 +162,12 @@ }, "custombatch": { "description": "Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.", + "flatPath": "content/v2.1/accounts/batch", "httpMethod": "POST", "id": "content.accounts.custombatch", - "path": "accounts/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/accounts/batch", "request": { "$ref": "AccountsCustomBatchRequest" }, @@ -140,6 +180,7 @@ }, "delete": { "description": "Deletes a Merchant Center sub-account.", + "flatPath": "content/v2.1/{merchantId}/accounts/{accountId}", "httpMethod": "DELETE", "id": "content.accounts.delete", "parameterOrder": [ @@ -168,13 +209,14 @@ "type": "string" } }, - "path": "{merchantId}/accounts/{accountId}", + "path": "content/v2.1/{merchantId}/accounts/{accountId}", "scopes": [ "https://www.googleapis.com/auth/content" ] }, "get": { "description": "Retrieves a Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/accounts/{accountId}", "httpMethod": "GET", "id": "content.accounts.get", "parameterOrder": [ @@ -199,8 +241,8 @@ "view": { "description": "Controls which fields will be populated. Acceptable values are: \"merchant\" and \"css\". The default value is \"merchant\".", "enum": [ - "css", - "merchant" + "MERCHANT", + "CSS" ], "enumDescriptions": [ "", @@ -210,7 +252,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts/{accountId}", + "path": "content/v2.1/{merchantId}/accounts/{accountId}", "response": { "$ref": "Account" }, @@ -220,6 +262,7 @@ }, "insert": { "description": "Creates a Merchant Center sub-account.", + "flatPath": "content/v2.1/{merchantId}/accounts", "httpMethod": "POST", "id": "content.accounts.insert", "parameterOrder": [ @@ -234,7 +277,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts", + "path": "content/v2.1/{merchantId}/accounts", "request": { "$ref": "Account" }, @@ -247,6 +290,7 @@ }, "link": { "description": "Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.", + "flatPath": "content/v2.1/{merchantId}/accounts/{accountId}/link", "httpMethod": "POST", "id": "content.accounts.link", "parameterOrder": [ @@ -269,7 +313,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts/{accountId}/link", + "path": "content/v2.1/{merchantId}/accounts/{accountId}/link", "request": { "$ref": "AccountsLinkRequest" }, @@ -282,6 +326,7 @@ }, "list": { "description": "Lists the sub-accounts in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/accounts", "httpMethod": "GET", "id": "content.accounts.list", "parameterOrder": [ @@ -315,8 +360,8 @@ "view": { "description": "Controls which fields will be populated. Acceptable values are: \"merchant\" and \"css\". The default value is \"merchant\".", "enum": [ - "css", - "merchant" + "MERCHANT", + "CSS" ], "enumDescriptions": [ "", @@ -326,7 +371,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts", + "path": "content/v2.1/{merchantId}/accounts", "response": { "$ref": "AccountsListResponse" }, @@ -336,6 +381,7 @@ }, "listlinks": { "description": "Returns the list of accounts linked to your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/accounts/{accountId}/listlinks", "httpMethod": "GET", "id": "content.accounts.listlinks", "parameterOrder": [ @@ -369,7 +415,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts/{accountId}/listlinks", + "path": "content/v2.1/{merchantId}/accounts/{accountId}/listlinks", "response": { "$ref": "AccountsListLinksResponse" }, @@ -379,6 +425,7 @@ }, "update": { "description": "Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.", + "flatPath": "content/v2.1/{merchantId}/accounts/{accountId}", "httpMethod": "PUT", "id": "content.accounts.update", "parameterOrder": [ @@ -401,7 +448,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts/{accountId}", + "path": "content/v2.1/{merchantId}/accounts/{accountId}", "request": { "$ref": "Account" }, @@ -414,6 +461,7 @@ }, "updatelabels": { "description": "Updates labels that are assigned to the Merchant Center account by CSS user.", + "flatPath": "content/v2.1/{merchantId}/accounts/{accountId}/updatelabels", "httpMethod": "POST", "id": "content.accounts.updatelabels", "parameterOrder": [ @@ -436,7 +484,7 @@ "type": "string" } }, - "path": "{merchantId}/accounts/{accountId}/updatelabels", + "path": "content/v2.1/{merchantId}/accounts/{accountId}/updatelabels", "request": { "$ref": "AccountsUpdateLabelsRequest" }, @@ -447,15 +495,154 @@ "https://www.googleapis.com/auth/content" ] } + }, + "resources": { + "labels": { + "methods": { + "create": { + "description": "Creates a new label, not assigned to any account.", + "flatPath": "content/v2.1/accounts/{accountId}/labels", + "httpMethod": "POST", + "id": "content.accounts.labels.create", + "parameterOrder": [ + "accountId" + ], + "parameters": { + "accountId": { + "description": "Required. The id of the account this label belongs to.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/accounts/{accountId}/labels", + "request": { + "$ref": "AccountLabel" + }, + "response": { + "$ref": "AccountLabel" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "delete": { + "description": "Deletes a label and removes it from all accounts to which it was assigned.", + "flatPath": "content/v2.1/accounts/{accountId}/labels/{labelId}", + "httpMethod": "DELETE", + "id": "content.accounts.labels.delete", + "parameterOrder": [ + "accountId", + "labelId" + ], + "parameters": { + "accountId": { + "description": "Required. The id of the account that owns the label.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "labelId": { + "description": "Required. The id of the label to delete.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/accounts/{accountId}/labels/{labelId}", + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "list": { + "description": "Lists the labels assigned to an account.", + "flatPath": "content/v2.1/accounts/{accountId}/labels", + "httpMethod": "GET", + "id": "content.accounts.labels.list", + "parameterOrder": [ + "accountId" + ], + "parameters": { + "accountId": { + "description": "Required. The account id for whose labels are to be listed.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of labels to return. The service may return fewer than this value. If unspecified, at most 50 labels will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListAccountLabels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLabels` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "content/v2.1/accounts/{accountId}/labels", + "response": { + "$ref": "ListAccountLabelsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "patch": { + "description": "Updates a label.", + "flatPath": "content/v2.1/accounts/{accountId}/labels/{labelId}", + "httpMethod": "PATCH", + "id": "content.accounts.labels.patch", + "parameterOrder": [ + "accountId", + "labelId" + ], + "parameters": { + "accountId": { + "description": "Required. The id of the account this label belongs to.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "labelId": { + "description": "Required. The id of the label to update.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/accounts/{accountId}/labels/{labelId}", + "request": { + "$ref": "AccountLabel" + }, + "response": { + "$ref": "AccountLabel" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + } + } } }, "accountstatuses": { "methods": { "custombatch": { "description": "Retrieves multiple Merchant Center account statuses in a single request.", + "flatPath": "content/v2.1/accountstatuses/batch", "httpMethod": "POST", "id": "content.accountstatuses.custombatch", - "path": "accountstatuses/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/accountstatuses/batch", "request": { "$ref": "AccountstatusesCustomBatchRequest" }, @@ -468,6 +655,7 @@ }, "get": { "description": "Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.", + "flatPath": "content/v2.1/{merchantId}/accountstatuses/{accountId}", "httpMethod": "GET", "id": "content.accountstatuses.get", "parameterOrder": [ @@ -496,7 +684,7 @@ "type": "string" } }, - "path": "{merchantId}/accountstatuses/{accountId}", + "path": "content/v2.1/{merchantId}/accountstatuses/{accountId}", "response": { "$ref": "AccountStatus" }, @@ -506,6 +694,7 @@ }, "list": { "description": "Lists the statuses of the sub-accounts in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/accountstatuses", "httpMethod": "GET", "id": "content.accountstatuses.list", "parameterOrder": [ @@ -537,7 +726,7 @@ "type": "string" } }, - "path": "{merchantId}/accountstatuses", + "path": "content/v2.1/{merchantId}/accountstatuses", "response": { "$ref": "AccountstatusesListResponse" }, @@ -551,9 +740,12 @@ "methods": { "custombatch": { "description": "Retrieves and updates tax settings of multiple accounts in a single request.", + "flatPath": "content/v2.1/accounttax/batch", "httpMethod": "POST", "id": "content.accounttax.custombatch", - "path": "accounttax/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/accounttax/batch", "request": { "$ref": "AccounttaxCustomBatchRequest" }, @@ -566,6 +758,7 @@ }, "get": { "description": "Retrieves the tax settings of the account.", + "flatPath": "content/v2.1/{merchantId}/accounttax/{accountId}", "httpMethod": "GET", "id": "content.accounttax.get", "parameterOrder": [ @@ -588,7 +781,7 @@ "type": "string" } }, - "path": "{merchantId}/accounttax/{accountId}", + "path": "content/v2.1/{merchantId}/accounttax/{accountId}", "response": { "$ref": "AccountTax" }, @@ -598,6 +791,7 @@ }, "list": { "description": "Lists the tax settings of the sub-accounts in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/accounttax", "httpMethod": "GET", "id": "content.accounttax.list", "parameterOrder": [ @@ -623,7 +817,7 @@ "type": "string" } }, - "path": "{merchantId}/accounttax", + "path": "content/v2.1/{merchantId}/accounttax", "response": { "$ref": "AccounttaxListResponse" }, @@ -633,6 +827,7 @@ }, "update": { "description": "Updates the tax settings of the account. Any fields that are not provided are deleted from the resource.", + "flatPath": "content/v2.1/{merchantId}/accounttax/{accountId}", "httpMethod": "PUT", "id": "content.accounttax.update", "parameterOrder": [ @@ -655,7 +850,7 @@ "type": "string" } }, - "path": "{merchantId}/accounttax/{accountId}", + "path": "content/v2.1/{merchantId}/accounttax/{accountId}", "request": { "$ref": "AccountTax" }, @@ -668,13 +863,125 @@ } } }, + "csses": { + "methods": { + "get": { + "description": "Retrieves a single CSS domain by ID.", + "flatPath": "content/v2.1/{cssGroupId}/csses/{cssDomainId}", + "httpMethod": "GET", + "id": "content.csses.get", + "parameterOrder": [ + "cssGroupId", + "cssDomainId" + ], + "parameters": { + "cssDomainId": { + "description": "Required. The ID of the CSS domain to return.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "cssGroupId": { + "description": "Required. The ID of the managing account. If this parameter is not the same as [cssDomainId](#cssDomainId), then this ID must be a CSS group ID and `cssDomainId` must be the ID of a CSS domain affiliated with this group.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/{cssGroupId}/csses/{cssDomainId}", + "response": { + "$ref": "Css" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "list": { + "description": "Lists CSS domains affiliated with a CSS group.", + "flatPath": "content/v2.1/{cssGroupId}/csses", + "httpMethod": "GET", + "id": "content.csses.list", + "parameterOrder": [ + "cssGroupId" + ], + "parameters": { + "cssGroupId": { + "description": "Required. The CSS group ID of CSS domains to be listed.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of CSS domains to return. The service may return fewer than this value. If unspecified, at most 50 CSS domains will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListCsses` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCsses` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "content/v2.1/{cssGroupId}/csses", + "response": { + "$ref": "ListCssesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "updatelabels": { + "description": "Updates labels that are assigned to a CSS domain by its CSS group.", + "flatPath": "content/v2.1/{cssGroupId}/csses/{cssDomainId}/updatelabels", + "httpMethod": "POST", + "id": "content.csses.updatelabels", + "parameterOrder": [ + "cssGroupId", + "cssDomainId" + ], + "parameters": { + "cssDomainId": { + "description": "Required. The ID of the updated CSS domain.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "cssGroupId": { + "description": "Required. The CSS group ID of the updated CSS domain.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/{cssGroupId}/csses/{cssDomainId}/updatelabels", + "request": { + "$ref": "LabelIds" + }, + "response": { + "$ref": "Css" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + } + }, "datafeeds": { "methods": { "custombatch": { "description": "Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.", + "flatPath": "content/v2.1/datafeeds/batch", "httpMethod": "POST", "id": "content.datafeeds.custombatch", - "path": "datafeeds/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/datafeeds/batch", "request": { "$ref": "DatafeedsCustomBatchRequest" }, @@ -687,6 +994,7 @@ }, "delete": { "description": "Deletes a datafeed configuration from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/datafeeds/{datafeedId}", "httpMethod": "DELETE", "id": "content.datafeeds.delete", "parameterOrder": [ @@ -709,13 +1017,14 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds/{datafeedId}", + "path": "content/v2.1/{merchantId}/datafeeds/{datafeedId}", "scopes": [ "https://www.googleapis.com/auth/content" ] }, "fetchnow": { "description": "Invokes a fetch for the datafeed in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow", "httpMethod": "POST", "id": "content.datafeeds.fetchnow", "parameterOrder": [ @@ -738,7 +1047,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds/{datafeedId}/fetchNow", + "path": "content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow", "response": { "$ref": "DatafeedsFetchNowResponse" }, @@ -748,6 +1057,7 @@ }, "get": { "description": "Retrieves a datafeed configuration from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/datafeeds/{datafeedId}", "httpMethod": "GET", "id": "content.datafeeds.get", "parameterOrder": [ @@ -770,7 +1080,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds/{datafeedId}", + "path": "content/v2.1/{merchantId}/datafeeds/{datafeedId}", "response": { "$ref": "Datafeed" }, @@ -780,6 +1090,7 @@ }, "insert": { "description": "Registers a datafeed configuration with your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/datafeeds", "httpMethod": "POST", "id": "content.datafeeds.insert", "parameterOrder": [ @@ -794,7 +1105,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds", + "path": "content/v2.1/{merchantId}/datafeeds", "request": { "$ref": "Datafeed" }, @@ -807,6 +1118,7 @@ }, "list": { "description": "Lists the configurations for datafeeds in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/datafeeds", "httpMethod": "GET", "id": "content.datafeeds.list", "parameterOrder": [ @@ -832,7 +1144,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds", + "path": "content/v2.1/{merchantId}/datafeeds", "response": { "$ref": "DatafeedsListResponse" }, @@ -842,6 +1154,7 @@ }, "update": { "description": "Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.", + "flatPath": "content/v2.1/{merchantId}/datafeeds/{datafeedId}", "httpMethod": "PUT", "id": "content.datafeeds.update", "parameterOrder": [ @@ -864,7 +1177,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeeds/{datafeedId}", + "path": "content/v2.1/{merchantId}/datafeeds/{datafeedId}", "request": { "$ref": "Datafeed" }, @@ -881,9 +1194,12 @@ "methods": { "custombatch": { "description": "Gets multiple Merchant Center datafeed statuses in a single request.", + "flatPath": "content/v2.1/datafeedstatuses/batch", "httpMethod": "POST", "id": "content.datafeedstatuses.custombatch", - "path": "datafeedstatuses/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/datafeedstatuses/batch", "request": { "$ref": "DatafeedstatusesCustomBatchRequest" }, @@ -896,6 +1212,7 @@ }, "get": { "description": "Retrieves the status of a datafeed from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}", "httpMethod": "GET", "id": "content.datafeedstatuses.get", "parameterOrder": [ @@ -928,7 +1245,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeedstatuses/{datafeedId}", + "path": "content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}", "response": { "$ref": "DatafeedStatus" }, @@ -938,6 +1255,7 @@ }, "list": { "description": "Lists the statuses of the datafeeds in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/datafeedstatuses", "httpMethod": "GET", "id": "content.datafeedstatuses.list", "parameterOrder": [ @@ -963,7 +1281,7 @@ "type": "string" } }, - "path": "{merchantId}/datafeedstatuses", + "path": "content/v2.1/{merchantId}/datafeedstatuses", "response": { "$ref": "DatafeedstatusesListResponse" }, @@ -977,9 +1295,12 @@ "methods": { "custombatch": { "description": "Retrieves and/or updates the LIA settings of multiple accounts in a single request.", + "flatPath": "content/v2.1/liasettings/batch", "httpMethod": "POST", "id": "content.liasettings.custombatch", - "path": "liasettings/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/liasettings/batch", "request": { "$ref": "LiasettingsCustomBatchRequest" }, @@ -992,6 +1313,7 @@ }, "get": { "description": "Retrieves the LIA settings of the account.", + "flatPath": "content/v2.1/{merchantId}/liasettings/{accountId}", "httpMethod": "GET", "id": "content.liasettings.get", "parameterOrder": [ @@ -1014,7 +1336,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}", + "path": "content/v2.1/{merchantId}/liasettings/{accountId}", "response": { "$ref": "LiaSettings" }, @@ -1024,6 +1346,7 @@ }, "getaccessiblegmbaccounts": { "description": "Retrieves the list of accessible Google My Business accounts.", + "flatPath": "content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", "httpMethod": "GET", "id": "content.liasettings.getaccessiblegmbaccounts", "parameterOrder": [ @@ -1046,7 +1369,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", + "path": "content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts", "response": { "$ref": "LiasettingsGetAccessibleGmbAccountsResponse" }, @@ -1056,6 +1379,7 @@ }, "list": { "description": "Lists the LIA settings of the sub-accounts in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/liasettings", "httpMethod": "GET", "id": "content.liasettings.list", "parameterOrder": [ @@ -1081,7 +1405,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings", + "path": "content/v2.1/{merchantId}/liasettings", "response": { "$ref": "LiasettingsListResponse" }, @@ -1091,9 +1415,12 @@ }, "listposdataproviders": { "description": "Retrieves the list of POS data providers that have active settings for the all eiligible countries.", + "flatPath": "content/v2.1/liasettings/posdataproviders", "httpMethod": "GET", "id": "content.liasettings.listposdataproviders", - "path": "liasettings/posdataproviders", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/liasettings/posdataproviders", "response": { "$ref": "LiasettingsListPosDataProvidersResponse" }, @@ -1103,12 +1430,12 @@ }, "requestgmbaccess": { "description": "Requests access to a specified Google My Business account.", + "flatPath": "content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess", "httpMethod": "POST", "id": "content.liasettings.requestgmbaccess", "parameterOrder": [ "merchantId", - "accountId", - "gmbEmail" + "accountId" ], "parameters": { "accountId": { @@ -1121,7 +1448,6 @@ "gmbEmail": { "description": "The email of the Google My Business account.", "location": "query", - "required": true, "type": "string" }, "merchantId": { @@ -1132,7 +1458,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}/requestgmbaccess", + "path": "content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess", "response": { "$ref": "LiasettingsRequestGmbAccessResponse" }, @@ -1142,6 +1468,7 @@ }, "requestinventoryverification": { "description": "Requests inventory validation for the specified country.", + "flatPath": "content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", "httpMethod": "POST", "id": "content.liasettings.requestinventoryverification", "parameterOrder": [ @@ -1171,7 +1498,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", + "path": "content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}", "response": { "$ref": "LiasettingsRequestInventoryVerificationResponse" }, @@ -1181,15 +1508,12 @@ }, "setinventoryverificationcontact": { "description": "Sets the inventory verification contract for the specified country.", + "flatPath": "content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", "httpMethod": "POST", "id": "content.liasettings.setinventoryverificationcontact", "parameterOrder": [ "merchantId", - "accountId", - "contactEmail", - "contactName", - "country", - "language" + "accountId" ], "parameters": { "accountId": { @@ -1202,25 +1526,21 @@ "contactEmail": { "description": "The email of the inventory verification contact.", "location": "query", - "required": true, "type": "string" }, "contactName": { "description": "The name of the inventory verification contact.", "location": "query", - "required": true, "type": "string" }, "country": { "description": "The country for which inventory verification is requested.", "location": "query", - "required": true, "type": "string" }, "language": { "description": "The language for which inventory verification is requested.", "location": "query", - "required": true, "type": "string" }, "merchantId": { @@ -1231,7 +1551,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", + "path": "content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact", "response": { "$ref": "LiasettingsSetInventoryVerificationContactResponse" }, @@ -1241,12 +1561,12 @@ }, "setposdataprovider": { "description": "Sets the POS data provider for the specified country.", + "flatPath": "content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider", "httpMethod": "POST", "id": "content.liasettings.setposdataprovider", "parameterOrder": [ "merchantId", - "accountId", - "country" + "accountId" ], "parameters": { "accountId": { @@ -1259,7 +1579,6 @@ "country": { "description": "The country for which the POS data provider is selected.", "location": "query", - "required": true, "type": "string" }, "merchantId": { @@ -1281,7 +1600,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}/setposdataprovider", + "path": "content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider", "response": { "$ref": "LiasettingsSetPosDataProviderResponse" }, @@ -1291,6 +1610,7 @@ }, "update": { "description": "Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource.", + "flatPath": "content/v2.1/{merchantId}/liasettings/{accountId}", "httpMethod": "PUT", "id": "content.liasettings.update", "parameterOrder": [ @@ -1313,7 +1633,7 @@ "type": "string" } }, - "path": "{merchantId}/liasettings/{accountId}", + "path": "content/v2.1/{merchantId}/liasettings/{accountId}", "request": { "$ref": "LiaSettings" }, @@ -1330,9 +1650,12 @@ "methods": { "custombatch": { "description": "Updates local inventory for multiple products or stores in a single request.", + "flatPath": "content/v2.1/localinventory/batch", "httpMethod": "POST", "id": "content.localinventory.custombatch", - "path": "localinventory/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/localinventory/batch", "request": { "$ref": "LocalinventoryCustomBatchRequest" }, @@ -1345,6 +1668,7 @@ }, "insert": { "description": "Updates the local inventory of a product in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/products/{productId}/localinventory", "httpMethod": "POST", "id": "content.localinventory.insert", "parameterOrder": [ @@ -1366,7 +1690,7 @@ "type": "string" } }, - "path": "{merchantId}/products/{productId}/localinventory", + "path": "content/v2.1/{merchantId}/products/{productId}/localinventory", "request": { "$ref": "LocalInventory" }, @@ -1383,6 +1707,7 @@ "methods": { "createchargeinvoice": { "description": "Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.", + "flatPath": "content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice", "httpMethod": "POST", "id": "content.orderinvoices.createchargeinvoice", "parameterOrder": [ @@ -1404,7 +1729,7 @@ "type": "string" } }, - "path": "{merchantId}/orderinvoices/{orderId}/createChargeInvoice", + "path": "content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice", "request": { "$ref": "OrderinvoicesCreateChargeInvoiceRequest" }, @@ -1417,6 +1742,7 @@ }, "createrefundinvoice": { "description": "Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using `createChargeInvoice`. All amounts (except for the summary) are incremental with respect to the previous invoice.", + "flatPath": "content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice", "httpMethod": "POST", "id": "content.orderinvoices.createrefundinvoice", "parameterOrder": [ @@ -1438,7 +1764,7 @@ "type": "string" } }, - "path": "{merchantId}/orderinvoices/{orderId}/createRefundInvoice", + "path": "content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice", "request": { "$ref": "OrderinvoicesCreateRefundInvoiceRequest" }, @@ -1455,11 +1781,11 @@ "methods": { "listdisbursements": { "description": "Retrieves a report for disbursements from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/orderreports/disbursements", "httpMethod": "GET", "id": "content.orderreports.listdisbursements", "parameterOrder": [ - "merchantId", - "disbursementStartDate" + "merchantId" ], "parameters": { "disbursementEndDate": { @@ -1470,7 +1796,6 @@ "disbursementStartDate": { "description": "The first date which disbursements occurred. In ISO 8601 format.", "location": "query", - "required": true, "type": "string" }, "maxResults": { @@ -1492,7 +1817,7 @@ "type": "string" } }, - "path": "{merchantId}/orderreports/disbursements", + "path": "content/v2.1/{merchantId}/orderreports/disbursements", "response": { "$ref": "OrderreportsListDisbursementsResponse" }, @@ -1502,12 +1827,12 @@ }, "listtransactions": { "description": "Retrieves a list of transactions for a disbursement from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions", "httpMethod": "GET", "id": "content.orderreports.listtransactions", "parameterOrder": [ "merchantId", - "disbursementId", - "transactionStartDate" + "disbursementId" ], "parameters": { "disbursementId": { @@ -1542,11 +1867,10 @@ "transactionStartDate": { "description": "The first date in which transaction occurred. In ISO 8601 format.", "location": "query", - "required": true, "type": "string" } }, - "path": "{merchantId}/orderreports/disbursements/{disbursementId}/transactions", + "path": "content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions", "response": { "$ref": "OrderreportsListTransactionsResponse" }, @@ -1560,6 +1884,7 @@ "methods": { "acknowledge": { "description": "Acks an order return in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge", "httpMethod": "POST", "id": "content.orderreturns.acknowledge", "parameterOrder": [ @@ -1581,7 +1906,7 @@ "type": "string" } }, - "path": "{merchantId}/orderreturns/{returnId}/acknowledge", + "path": "content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge", "request": { "$ref": "OrderreturnsAcknowledgeRequest" }, @@ -1594,6 +1919,7 @@ }, "get": { "description": "Retrieves an order return from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/orderreturns/{returnId}", "httpMethod": "GET", "id": "content.orderreturns.get", "parameterOrder": [ @@ -1615,7 +1941,7 @@ "type": "string" } }, - "path": "{merchantId}/orderreturns/{returnId}", + "path": "content/v2.1/{merchantId}/orderreturns/{returnId}", "response": { "$ref": "MerchantOrderReturn" }, @@ -1625,6 +1951,7 @@ }, "list": { "description": "Lists order returns in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/orderreturns", "httpMethod": "GET", "id": "content.orderreturns.list", "parameterOrder": [ @@ -1632,7 +1959,7 @@ ], "parameters": { "acknowledged": { - "description": "Obtains order returns that match the acknowledgement status. When set to true, obtains order returns that have been acknowledged. When false, obtains order returns that have not been acknowledged. When not provided, obtains order returns regardless of their acknowledgement status.\nWe recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged order returns are returned.", + "description": "Obtains order returns that match the acknowledgement status. When set to true, obtains order returns that have been acknowledged. When false, obtains order returns that have not been acknowledged. When not provided, obtains order returns regardless of their acknowledgement status. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged order returns are returned. ", "location": "query", "type": "boolean" }, @@ -1647,7 +1974,7 @@ "type": "string" }, "googleOrderIds": { - "description": "Obtains order returns with the specified order ids. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set.\nNote: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number.", + "description": "Obtains order returns with the specified order ids. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number.", "location": "query", "repeated": true, "type": "string" @@ -1668,8 +1995,8 @@ "orderBy": { "description": "Return the results in the specified order.", "enum": [ - "returnCreationTimeAsc", - "returnCreationTimeDesc" + "RETURN_CREATION_TIME_DESC", + "RETURN_CREATION_TIME_ASC" ], "enumDescriptions": [ "", @@ -1686,11 +2013,11 @@ "shipmentStates": { "description": "Obtains order returns that match any shipment state provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment states.", "enum": [ - "completed", - "new", - "pending", - "shipped", - "undeliverable" + "NEW", + "SHIPPED", + "COMPLETED", + "UNDELIVERABLE", + "PENDING" ], "enumDescriptions": [ "", @@ -1706,9 +2033,9 @@ "shipmentStatus": { "description": "Obtains order returns that match any shipment status provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment statuses.", "enum": [ - "inProgress", - "new", - "processed" + "NEW", + "IN_PROGRESS", + "PROCESSED" ], "enumDescriptions": [ "", @@ -1720,7 +2047,7 @@ "type": "string" }, "shipmentTrackingNumbers": { - "description": "Obtains order returns with the specified tracking numbers. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set.\nNote: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number.", + "description": "Obtains order returns with the specified tracking numbers. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number.", "location": "query", "repeated": true, "type": "string" @@ -1728,9 +2055,9 @@ "shipmentTypes": { "description": "Obtains order returns that match any shipment type provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment types.", "enum": [ - "byMail", - "contactCustomerSupport", - "returnless" + "BY_MAIL", + "RETURNLESS", + "CONTACT_CUSTOMER_SUPPORT" ], "enumDescriptions": [ "", @@ -1742,7 +2069,7 @@ "type": "string" } }, - "path": "{merchantId}/orderreturns", + "path": "content/v2.1/{merchantId}/orderreturns", "response": { "$ref": "OrderreturnsListResponse" }, @@ -1752,6 +2079,7 @@ }, "process": { "description": "Processes return in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/orderreturns/{returnId}/process", "httpMethod": "POST", "id": "content.orderreturns.process", "parameterOrder": [ @@ -1773,7 +2101,7 @@ "type": "string" } }, - "path": "{merchantId}/orderreturns/{returnId}/process", + "path": "content/v2.1/{merchantId}/orderreturns/{returnId}/process", "request": { "$ref": "OrderreturnsProcessRequest" }, @@ -1790,6 +2118,7 @@ "methods": { "acknowledge": { "description": "Marks an order as acknowledged.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/acknowledge", "httpMethod": "POST", "id": "content.orders.acknowledge", "parameterOrder": [ @@ -1811,7 +2140,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/acknowledge", + "path": "content/v2.1/{merchantId}/orders/{orderId}/acknowledge", "request": { "$ref": "OrdersAcknowledgeRequest" }, @@ -1824,6 +2153,7 @@ }, "advancetestorder": { "description": "Sandbox only. Moves a test order from state \"`inProgress`\" to state \"`pendingShipment`\".", + "flatPath": "content/v2.1/{merchantId}/testorders/{orderId}/advance", "httpMethod": "POST", "id": "content.orders.advancetestorder", "parameterOrder": [ @@ -1845,7 +2175,7 @@ "type": "string" } }, - "path": "{merchantId}/testorders/{orderId}/advance", + "path": "content/v2.1/{merchantId}/testorders/{orderId}/advance", "response": { "$ref": "OrdersAdvanceTestOrderResponse" }, @@ -1855,6 +2185,7 @@ }, "cancel": { "description": "Cancels all line items in an order, making a full refund.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/cancel", "httpMethod": "POST", "id": "content.orders.cancel", "parameterOrder": [ @@ -1876,7 +2207,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/cancel", + "path": "content/v2.1/{merchantId}/orders/{orderId}/cancel", "request": { "$ref": "OrdersCancelRequest" }, @@ -1889,6 +2220,7 @@ }, "cancellineitem": { "description": "Cancels a line item, making a full refund.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem", "httpMethod": "POST", "id": "content.orders.cancellineitem", "parameterOrder": [ @@ -1910,7 +2242,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/cancelLineItem", + "path": "content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem", "request": { "$ref": "OrdersCancelLineItemRequest" }, @@ -1923,6 +2255,7 @@ }, "canceltestorderbycustomer": { "description": "Sandbox only. Cancels a test order for customer-initiated cancellation.", + "flatPath": "content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer", "httpMethod": "POST", "id": "content.orders.canceltestorderbycustomer", "parameterOrder": [ @@ -1944,7 +2277,7 @@ "type": "string" } }, - "path": "{merchantId}/testorders/{orderId}/cancelByCustomer", + "path": "content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer", "request": { "$ref": "OrdersCancelTestOrderByCustomerRequest" }, @@ -1957,6 +2290,7 @@ }, "createtestorder": { "description": "Sandbox only. Creates a test order.", + "flatPath": "content/v2.1/{merchantId}/testorders", "httpMethod": "POST", "id": "content.orders.createtestorder", "parameterOrder": [ @@ -1971,7 +2305,7 @@ "type": "string" } }, - "path": "{merchantId}/testorders", + "path": "content/v2.1/{merchantId}/testorders", "request": { "$ref": "OrdersCreateTestOrderRequest" }, @@ -1984,6 +2318,7 @@ }, "createtestreturn": { "description": "Sandbox only. Creates a test return.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/testreturn", "httpMethod": "POST", "id": "content.orders.createtestreturn", "parameterOrder": [ @@ -2005,7 +2340,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/testreturn", + "path": "content/v2.1/{merchantId}/orders/{orderId}/testreturn", "request": { "$ref": "OrdersCreateTestReturnRequest" }, @@ -2018,6 +2353,7 @@ }, "get": { "description": "Retrieves an order from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}", "httpMethod": "GET", "id": "content.orders.get", "parameterOrder": [ @@ -2039,7 +2375,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}", + "path": "content/v2.1/{merchantId}/orders/{orderId}", "response": { "$ref": "Order" }, @@ -2049,6 +2385,7 @@ }, "getbymerchantorderid": { "description": "Retrieves an order using merchant order ID.", + "flatPath": "content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}", "httpMethod": "GET", "id": "content.orders.getbymerchantorderid", "parameterOrder": [ @@ -2070,7 +2407,7 @@ "type": "string" } }, - "path": "{merchantId}/ordersbymerchantid/{merchantOrderId}", + "path": "content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}", "response": { "$ref": "OrdersGetByMerchantOrderIdResponse" }, @@ -2080,6 +2417,7 @@ }, "gettestordertemplate": { "description": "Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.", + "flatPath": "content/v2.1/{merchantId}/testordertemplates/{templateName}", "httpMethod": "GET", "id": "content.orders.gettestordertemplate", "parameterOrder": [ @@ -2102,12 +2440,12 @@ "templateName": { "description": "The name of the template to retrieve.", "enum": [ - "template1", - "template1a", - "template1b", - "template2", - "template3", - "template4" + "TEMPLATE1", + "TEMPLATE2", + "TEMPLATE1A", + "TEMPLATE1B", + "TEMPLATE3", + "TEMPLATE4" ], "enumDescriptions": [ "", @@ -2122,7 +2460,7 @@ "type": "string" } }, - "path": "{merchantId}/testordertemplates/{templateName}", + "path": "content/v2.1/{merchantId}/testordertemplates/{templateName}", "response": { "$ref": "OrdersGetTestOrderTemplateResponse" }, @@ -2131,7 +2469,8 @@ ] }, "instorerefundlineitem": { - "description": "Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store).\nNote: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.", + "description": "Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem", "httpMethod": "POST", "id": "content.orders.instorerefundlineitem", "parameterOrder": [ @@ -2153,7 +2492,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/inStoreRefundLineItem", + "path": "content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem", "request": { "$ref": "OrdersInStoreRefundLineItemRequest" }, @@ -2166,6 +2505,7 @@ }, "list": { "description": "Lists the orders in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/orders", "httpMethod": "GET", "id": "content.orders.list", "parameterOrder": [ @@ -2173,7 +2513,7 @@ ], "parameters": { "acknowledged": { - "description": "Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged.\nWe recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned.", + "description": "Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned. ", "location": "query", "type": "boolean" }, @@ -2191,7 +2531,7 @@ "type": "string" }, "orderBy": { - "description": "Order results by placement date in descending or ascending order.\n\nAcceptable values are:\n- placedDateAsc\n- placedDateDesc", + "description": "Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc ", "location": "query", "type": "string" }, @@ -2213,17 +2553,17 @@ "statuses": { "description": "Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`.", "enum": [ - "active", - "canceled", - "completed", - "delivered", - "inProgress", - "partiallyDelivered", - "partiallyReturned", - "partiallyShipped", - "pendingShipment", - "returned", - "shipped" + "ACTIVE", + "COMPLETED", + "CANCELED", + "IN_PROGRESS", + "PENDING_SHIPMENT", + "PARTIALLY_SHIPPED", + "SHIPPED", + "PARTIALLY_DELIVERED", + "DELIVERED", + "PARTIALLY_RETURNED", + "RETURNED" ], "enumDescriptions": [ "", @@ -2243,7 +2583,7 @@ "type": "string" } }, - "path": "{merchantId}/orders", + "path": "content/v2.1/{merchantId}/orders", "response": { "$ref": "OrdersListResponse" }, @@ -2253,6 +2593,7 @@ }, "refunditem": { "description": "Issues a partial or total refund for items and shipment.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/refunditem", "httpMethod": "POST", "id": "content.orders.refunditem", "parameterOrder": [ @@ -2274,7 +2615,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/refunditem", + "path": "content/v2.1/{merchantId}/orders/{orderId}/refunditem", "request": { "$ref": "OrdersRefundItemRequest" }, @@ -2287,6 +2628,7 @@ }, "refundorder": { "description": "Issues a partial or total refund for an order.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/refundorder", "httpMethod": "POST", "id": "content.orders.refundorder", "parameterOrder": [ @@ -2308,7 +2650,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/refundorder", + "path": "content/v2.1/{merchantId}/orders/{orderId}/refundorder", "request": { "$ref": "OrdersRefundOrderRequest" }, @@ -2321,6 +2663,7 @@ }, "rejectreturnlineitem": { "description": "Rejects return on an line item.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem", "httpMethod": "POST", "id": "content.orders.rejectreturnlineitem", "parameterOrder": [ @@ -2342,7 +2685,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/rejectReturnLineItem", + "path": "content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem", "request": { "$ref": "OrdersRejectReturnLineItemRequest" }, @@ -2355,6 +2698,7 @@ }, "returnrefundlineitem": { "description": "Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem", "httpMethod": "POST", "id": "content.orders.returnrefundlineitem", "parameterOrder": [ @@ -2376,7 +2720,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/returnRefundLineItem", + "path": "content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem", "request": { "$ref": "OrdersReturnRefundLineItemRequest" }, @@ -2389,6 +2733,7 @@ }, "setlineitemmetadata": { "description": "Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata", "httpMethod": "POST", "id": "content.orders.setlineitemmetadata", "parameterOrder": [ @@ -2410,7 +2755,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/setLineItemMetadata", + "path": "content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata", "request": { "$ref": "OrdersSetLineItemMetadataRequest" }, @@ -2423,6 +2768,7 @@ }, "shiplineitems": { "description": "Marks line item(s) as shipped.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/shipLineItems", "httpMethod": "POST", "id": "content.orders.shiplineitems", "parameterOrder": [ @@ -2444,7 +2790,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/shipLineItems", + "path": "content/v2.1/{merchantId}/orders/{orderId}/shipLineItems", "request": { "$ref": "OrdersShipLineItemsRequest" }, @@ -2457,6 +2803,7 @@ }, "updatelineitemshippingdetails": { "description": "Updates ship by and delivery by dates for a line item.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails", "httpMethod": "POST", "id": "content.orders.updatelineitemshippingdetails", "parameterOrder": [ @@ -2478,7 +2825,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/updateLineItemShippingDetails", + "path": "content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails", "request": { "$ref": "OrdersUpdateLineItemShippingDetailsRequest" }, @@ -2491,6 +2838,7 @@ }, "updatemerchantorderid": { "description": "Updates the merchant order ID for a given order.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId", "httpMethod": "POST", "id": "content.orders.updatemerchantorderid", "parameterOrder": [ @@ -2512,7 +2860,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/updateMerchantOrderId", + "path": "content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId", "request": { "$ref": "OrdersUpdateMerchantOrderIdRequest" }, @@ -2525,6 +2873,7 @@ }, "updateshipment": { "description": "Updates a shipment's status, carrier, and/or tracking ID.", + "flatPath": "content/v2.1/{merchantId}/orders/{orderId}/updateShipment", "httpMethod": "POST", "id": "content.orders.updateshipment", "parameterOrder": [ @@ -2546,7 +2895,7 @@ "type": "string" } }, - "path": "{merchantId}/orders/{orderId}/updateShipment", + "path": "content/v2.1/{merchantId}/orders/{orderId}/updateShipment", "request": { "$ref": "OrdersUpdateShipmentRequest" }, @@ -2563,9 +2912,12 @@ "methods": { "custombatch": { "description": "Batches multiple POS-related calls in a single request.", + "flatPath": "content/v2.1/pos/batch", "httpMethod": "POST", "id": "content.pos.custombatch", - "path": "pos/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/pos/batch", "request": { "$ref": "PosCustomBatchRequest" }, @@ -2578,6 +2930,7 @@ }, "delete": { "description": "Deletes a store for the given merchant.", + "flatPath": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", "httpMethod": "DELETE", "id": "content.pos.delete", "parameterOrder": [ @@ -2607,13 +2960,14 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/store/{storeCode}", + "path": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", "scopes": [ "https://www.googleapis.com/auth/content" ] }, "get": { "description": "Retrieves information about the given store.", + "flatPath": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", "httpMethod": "GET", "id": "content.pos.get", "parameterOrder": [ @@ -2643,7 +2997,7 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/store/{storeCode}", + "path": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}", "response": { "$ref": "PosStore" }, @@ -2653,6 +3007,7 @@ }, "insert": { "description": "Creates a store for the given merchant.", + "flatPath": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store", "httpMethod": "POST", "id": "content.pos.insert", "parameterOrder": [ @@ -2675,7 +3030,7 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/store", + "path": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store", "request": { "$ref": "PosStore" }, @@ -2688,6 +3043,7 @@ }, "inventory": { "description": "Submit inventory for the given merchant.", + "flatPath": "content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory", "httpMethod": "POST", "id": "content.pos.inventory", "parameterOrder": [ @@ -2710,7 +3066,7 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/inventory", + "path": "content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory", "request": { "$ref": "PosInventoryRequest" }, @@ -2723,6 +3079,7 @@ }, "list": { "description": "Lists the stores of the target merchant.", + "flatPath": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store", "httpMethod": "GET", "id": "content.pos.list", "parameterOrder": [ @@ -2745,7 +3102,7 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/store", + "path": "content/v2.1/{merchantId}/pos/{targetMerchantId}/store", "response": { "$ref": "PosListResponse" }, @@ -2755,6 +3112,7 @@ }, "sale": { "description": "Submit a sale event for the given merchant.", + "flatPath": "content/v2.1/{merchantId}/pos/{targetMerchantId}/sale", "httpMethod": "POST", "id": "content.pos.sale", "parameterOrder": [ @@ -2777,7 +3135,7 @@ "type": "string" } }, - "path": "{merchantId}/pos/{targetMerchantId}/sale", + "path": "content/v2.1/{merchantId}/pos/{targetMerchantId}/sale", "request": { "$ref": "PosSaleRequest" }, @@ -2794,9 +3152,12 @@ "methods": { "custombatch": { "description": "Retrieves, inserts, and deletes multiple products in a single request.", + "flatPath": "content/v2.1/products/batch", "httpMethod": "POST", "id": "content.products.custombatch", - "path": "products/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/products/batch", "request": { "$ref": "ProductsCustomBatchRequest" }, @@ -2809,6 +3170,7 @@ }, "delete": { "description": "Deletes a product from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/products/{productId}", "httpMethod": "DELETE", "id": "content.products.delete", "parameterOrder": [ @@ -2836,13 +3198,14 @@ "type": "string" } }, - "path": "{merchantId}/products/{productId}", + "path": "content/v2.1/{merchantId}/products/{productId}", "scopes": [ "https://www.googleapis.com/auth/content" ] }, "get": { "description": "Retrieves a product from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/products/{productId}", "httpMethod": "GET", "id": "content.products.get", "parameterOrder": [ @@ -2864,7 +3227,7 @@ "type": "string" } }, - "path": "{merchantId}/products/{productId}", + "path": "content/v2.1/{merchantId}/products/{productId}", "response": { "$ref": "Product" }, @@ -2874,6 +3237,7 @@ }, "insert": { "description": "Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry.", + "flatPath": "content/v2.1/{merchantId}/products", "httpMethod": "POST", "id": "content.products.insert", "parameterOrder": [ @@ -2894,7 +3258,7 @@ "type": "string" } }, - "path": "{merchantId}/products", + "path": "content/v2.1/{merchantId}/products", "request": { "$ref": "Product" }, @@ -2907,6 +3271,7 @@ }, "list": { "description": "Lists the products in your Merchant Center account. The response might contain fewer items than specified by maxResults. Rely on nextPageToken to determine if there are more items to be requested.", + "flatPath": "content/v2.1/{merchantId}/products", "httpMethod": "GET", "id": "content.products.list", "parameterOrder": [ @@ -2932,7 +3297,7 @@ "type": "string" } }, - "path": "{merchantId}/products", + "path": "content/v2.1/{merchantId}/products", "response": { "$ref": "ProductsListResponse" }, @@ -2946,9 +3311,12 @@ "methods": { "custombatch": { "description": "Gets the statuses of multiple products in a single request.", + "flatPath": "content/v2.1/productstatuses/batch", "httpMethod": "POST", "id": "content.productstatuses.custombatch", - "path": "productstatuses/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/productstatuses/batch", "request": { "$ref": "ProductstatusesCustomBatchRequest" }, @@ -2961,6 +3329,7 @@ }, "get": { "description": "Gets the status of a product from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/productstatuses/{productId}", "httpMethod": "GET", "id": "content.productstatuses.get", "parameterOrder": [ @@ -2988,7 +3357,7 @@ "type": "string" } }, - "path": "{merchantId}/productstatuses/{productId}", + "path": "content/v2.1/{merchantId}/productstatuses/{productId}", "response": { "$ref": "ProductStatus" }, @@ -2998,6 +3367,7 @@ }, "list": { "description": "Lists the statuses of the products in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/productstatuses", "httpMethod": "GET", "id": "content.productstatuses.list", "parameterOrder": [ @@ -3029,7 +3399,7 @@ "type": "string" } }, - "path": "{merchantId}/productstatuses", + "path": "content/v2.1/{merchantId}/productstatuses", "response": { "$ref": "ProductstatusesListResponse" }, @@ -3043,6 +3413,7 @@ "methods": { "get": { "description": "Retrieves a Merchant Center account's pubsub notification settings.", + "flatPath": "content/v2.1/{merchantId}/pubsubnotificationsettings", "httpMethod": "GET", "id": "content.pubsubnotificationsettings.get", "parameterOrder": [ @@ -3057,7 +3428,7 @@ "type": "string" } }, - "path": "{merchantId}/pubsubnotificationsettings", + "path": "content/v2.1/{merchantId}/pubsubnotificationsettings", "response": { "$ref": "PubsubNotificationSettings" }, @@ -3067,6 +3438,7 @@ }, "update": { "description": "Register a Merchant Center account for pubsub notifications. Note that cloud topic name should not be provided as part of the request.", + "flatPath": "content/v2.1/{merchantId}/pubsubnotificationsettings", "httpMethod": "PUT", "id": "content.pubsubnotificationsettings.update", "parameterOrder": [ @@ -3081,7 +3453,7 @@ "type": "string" } }, - "path": "{merchantId}/pubsubnotificationsettings", + "path": "content/v2.1/{merchantId}/pubsubnotificationsettings", "request": { "$ref": "PubsubNotificationSettings" }, @@ -3098,9 +3470,12 @@ "methods": { "custombatch": { "description": "Updates regional inventory for multiple products or regions in a single request.", + "flatPath": "content/v2.1/regionalinventory/batch", "httpMethod": "POST", "id": "content.regionalinventory.custombatch", - "path": "regionalinventory/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/regionalinventory/batch", "request": { "$ref": "RegionalinventoryCustomBatchRequest" }, @@ -3113,6 +3488,7 @@ }, "insert": { "description": "Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.", + "flatPath": "content/v2.1/{merchantId}/products/{productId}/regionalinventory", "httpMethod": "POST", "id": "content.regionalinventory.insert", "parameterOrder": [ @@ -3134,7 +3510,7 @@ "type": "string" } }, - "path": "{merchantId}/products/{productId}/regionalinventory", + "path": "content/v2.1/{merchantId}/products/{productId}/regionalinventory", "request": { "$ref": "RegionalInventory" }, @@ -3147,13 +3523,195 @@ } } }, + "repricingrules": { + "methods": { + "create": { + "description": "Creates a repricing rule for your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/repricingrules", + "httpMethod": "POST", + "id": "content.repricingrules.create", + "parameterOrder": [ + "merchantId" + ], + "parameters": { + "merchantId": { + "description": "Required. The id of the merchant who owns the repricing rule.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "ruleId": { + "description": "Required. The id of the rule to create.", + "location": "query", + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/repricingrules", + "request": { + "$ref": "RepricingRule" + }, + "response": { + "$ref": "RepricingRule" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "delete": { + "description": "Deletes a repricing rule in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/repricingrules/{ruleId}", + "httpMethod": "DELETE", + "id": "content.repricingrules.delete", + "parameterOrder": [ + "merchantId", + "ruleId" + ], + "parameters": { + "merchantId": { + "description": "Required. The id of the merchant who owns the repricing rule.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "ruleId": { + "description": "Required. The id of the rule to Delete.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/repricingrules/{ruleId}", + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "get": { + "description": "Retrieves a repricing rule from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/repricingrules/{ruleId}", + "httpMethod": "GET", + "id": "content.repricingrules.get", + "parameterOrder": [ + "merchantId", + "ruleId" + ], + "parameters": { + "merchantId": { + "description": "Required. The id of the merchant who owns the repricing rule.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "ruleId": { + "description": "Required. The id of the rule to retrieve.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/repricingrules/{ruleId}", + "response": { + "$ref": "RepricingRule" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "list": { + "description": "Lists the repricing rules in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/repricingrules", + "httpMethod": "GET", + "id": "content.repricingrules.list", + "parameterOrder": [ + "merchantId" + ], + "parameters": { + "countryCode": { + "description": "CLDR country code (e.g. \"US\"), used as a filter on repricing rules.", + "location": "query", + "type": "string" + }, + "languageCode": { + "description": "The two-letter ISO 639-1 language code associated with the repricing rule, used as a filter.", + "location": "query", + "type": "string" + }, + "merchantId": { + "description": "Required. The id of the merchant who owns the repricing rule.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "pageSize": { + "description": "The maximum number of repricing rules to return. The service may return fewer than this value. If unspecified, at most 50 rules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListRepricingRules` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepricingRules` must match the call that provided the page token.", + "location": "query", + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/repricingrules", + "response": { + "$ref": "ListRepricingRulesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + }, + "patch": { + "description": "Updates a repricing rule in your Merchant Center account. All mutable fields will be overwritten in each update request. In each update, you must provide all required mutable fields, or an error will be thrown. If you do not provide an optional field in the update request, if that field currently exists, it will be deleted from the rule.", + "flatPath": "content/v2.1/{merchantId}/repricingrules/{ruleId}", + "httpMethod": "PATCH", + "id": "content.repricingrules.patch", + "parameterOrder": [ + "merchantId", + "ruleId" + ], + "parameters": { + "merchantId": { + "description": "Required. The id of the merchant who owns the repricing rule.", + "format": "int64", + "location": "path", + "required": true, + "type": "string" + }, + "ruleId": { + "description": "Required. The id of the rule to update.", + "location": "path", + "required": true, + "type": "string" + } + }, + "path": "content/v2.1/{merchantId}/repricingrules/{ruleId}", + "request": { + "$ref": "RepricingRule" + }, + "response": { + "$ref": "RepricingRule" + }, + "scopes": [ + "https://www.googleapis.com/auth/content" + ] + } + } + }, "returnaddress": { "methods": { "custombatch": { "description": "Batches multiple return address related calls in a single request.", + "flatPath": "content/v2.1/returnaddress/batch", "httpMethod": "POST", "id": "content.returnaddress.custombatch", - "path": "returnaddress/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/returnaddress/batch", "request": { "$ref": "ReturnaddressCustomBatchRequest" }, @@ -3166,6 +3724,7 @@ }, "delete": { "description": "Deletes a return address for the given Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/returnaddress/{returnAddressId}", "httpMethod": "DELETE", "id": "content.returnaddress.delete", "parameterOrder": [ @@ -3187,13 +3746,14 @@ "type": "string" } }, - "path": "{merchantId}/returnaddress/{returnAddressId}", + "path": "content/v2.1/{merchantId}/returnaddress/{returnAddressId}", "scopes": [ "https://www.googleapis.com/auth/content" ] }, "get": { "description": "Gets a return address of the Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/returnaddress/{returnAddressId}", "httpMethod": "GET", "id": "content.returnaddress.get", "parameterOrder": [ @@ -3215,7 +3775,7 @@ "type": "string" } }, - "path": "{merchantId}/returnaddress/{returnAddressId}", + "path": "content/v2.1/{merchantId}/returnaddress/{returnAddressId}", "response": { "$ref": "ReturnAddress" }, @@ -3225,6 +3785,7 @@ }, "insert": { "description": "Inserts a return address for the Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/returnaddress", "httpMethod": "POST", "id": "content.returnaddress.insert", "parameterOrder": [ @@ -3239,7 +3800,7 @@ "type": "string" } }, - "path": "{merchantId}/returnaddress", + "path": "content/v2.1/{merchantId}/returnaddress", "request": { "$ref": "ReturnAddress" }, @@ -3252,6 +3813,7 @@ }, "list": { "description": "Lists the return addresses of the Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/returnaddress", "httpMethod": "GET", "id": "content.returnaddress.list", "parameterOrder": [ @@ -3282,7 +3844,7 @@ "type": "string" } }, - "path": "{merchantId}/returnaddress", + "path": "content/v2.1/{merchantId}/returnaddress", "response": { "$ref": "ReturnaddressListResponse" }, @@ -3296,9 +3858,12 @@ "methods": { "custombatch": { "description": "Batches multiple return policy related calls in a single request.", + "flatPath": "content/v2.1/returnpolicy/batch", "httpMethod": "POST", "id": "content.returnpolicy.custombatch", - "path": "returnpolicy/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/returnpolicy/batch", "request": { "$ref": "ReturnpolicyCustomBatchRequest" }, @@ -3311,6 +3876,7 @@ }, "delete": { "description": "Deletes a return policy for the given Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}", "httpMethod": "DELETE", "id": "content.returnpolicy.delete", "parameterOrder": [ @@ -3332,13 +3898,14 @@ "type": "string" } }, - "path": "{merchantId}/returnpolicy/{returnPolicyId}", + "path": "content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}", "scopes": [ "https://www.googleapis.com/auth/content" ] }, "get": { "description": "Gets a return policy of the Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}", "httpMethod": "GET", "id": "content.returnpolicy.get", "parameterOrder": [ @@ -3360,7 +3927,7 @@ "type": "string" } }, - "path": "{merchantId}/returnpolicy/{returnPolicyId}", + "path": "content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}", "response": { "$ref": "ReturnPolicy" }, @@ -3370,6 +3937,7 @@ }, "insert": { "description": "Inserts a return policy for the Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/returnpolicy", "httpMethod": "POST", "id": "content.returnpolicy.insert", "parameterOrder": [ @@ -3384,7 +3952,7 @@ "type": "string" } }, - "path": "{merchantId}/returnpolicy", + "path": "content/v2.1/{merchantId}/returnpolicy", "request": { "$ref": "ReturnPolicy" }, @@ -3397,6 +3965,7 @@ }, "list": { "description": "Lists the return policies of the Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/returnpolicy", "httpMethod": "GET", "id": "content.returnpolicy.list", "parameterOrder": [ @@ -3411,7 +3980,7 @@ "type": "string" } }, - "path": "{merchantId}/returnpolicy", + "path": "content/v2.1/{merchantId}/returnpolicy", "response": { "$ref": "ReturnpolicyListResponse" }, @@ -3425,6 +3994,7 @@ "methods": { "get": { "description": "Retrieves a settlement report from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/settlementreports/{settlementId}", "httpMethod": "GET", "id": "content.settlementreports.get", "parameterOrder": [ @@ -3446,7 +4016,7 @@ "type": "string" } }, - "path": "{merchantId}/settlementreports/{settlementId}", + "path": "content/v2.1/{merchantId}/settlementreports/{settlementId}", "response": { "$ref": "SettlementReport" }, @@ -3456,6 +4026,7 @@ }, "list": { "description": "Retrieves a list of settlement reports from your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/settlementreports", "httpMethod": "GET", "id": "content.settlementreports.list", "parameterOrder": [ @@ -3491,7 +4062,7 @@ "type": "string" } }, - "path": "{merchantId}/settlementreports", + "path": "content/v2.1/{merchantId}/settlementreports", "response": { "$ref": "SettlementreportsListResponse" }, @@ -3505,6 +4076,7 @@ "methods": { "list": { "description": "Retrieves a list of transactions for the settlement.", + "flatPath": "content/v2.1/{merchantId}/settlementreports/{settlementId}/transactions", "httpMethod": "GET", "id": "content.settlementtransactions.list", "parameterOrder": [ @@ -3543,7 +4115,7 @@ "type": "string" } }, - "path": "{merchantId}/settlementreports/{settlementId}/transactions", + "path": "content/v2.1/{merchantId}/settlementreports/{settlementId}/transactions", "response": { "$ref": "SettlementtransactionsListResponse" }, @@ -3557,9 +4129,12 @@ "methods": { "custombatch": { "description": "Retrieves and updates the shipping settings of multiple accounts in a single request.", + "flatPath": "content/v2.1/shippingsettings/batch", "httpMethod": "POST", "id": "content.shippingsettings.custombatch", - "path": "shippingsettings/batch", + "parameterOrder": [], + "parameters": {}, + "path": "content/v2.1/shippingsettings/batch", "request": { "$ref": "ShippingsettingsCustomBatchRequest" }, @@ -3572,6 +4147,7 @@ }, "get": { "description": "Retrieves the shipping settings of the account.", + "flatPath": "content/v2.1/{merchantId}/shippingsettings/{accountId}", "httpMethod": "GET", "id": "content.shippingsettings.get", "parameterOrder": [ @@ -3594,7 +4170,7 @@ "type": "string" } }, - "path": "{merchantId}/shippingsettings/{accountId}", + "path": "content/v2.1/{merchantId}/shippingsettings/{accountId}", "response": { "$ref": "ShippingSettings" }, @@ -3604,6 +4180,7 @@ }, "getsupportedcarriers": { "description": "Retrieves supported carriers and carrier services for an account.", + "flatPath": "content/v2.1/{merchantId}/supportedCarriers", "httpMethod": "GET", "id": "content.shippingsettings.getsupportedcarriers", "parameterOrder": [ @@ -3618,7 +4195,7 @@ "type": "string" } }, - "path": "{merchantId}/supportedCarriers", + "path": "content/v2.1/{merchantId}/supportedCarriers", "response": { "$ref": "ShippingsettingsGetSupportedCarriersResponse" }, @@ -3628,6 +4205,7 @@ }, "getsupportedholidays": { "description": "Retrieves supported holidays for an account.", + "flatPath": "content/v2.1/{merchantId}/supportedHolidays", "httpMethod": "GET", "id": "content.shippingsettings.getsupportedholidays", "parameterOrder": [ @@ -3642,7 +4220,7 @@ "type": "string" } }, - "path": "{merchantId}/supportedHolidays", + "path": "content/v2.1/{merchantId}/supportedHolidays", "response": { "$ref": "ShippingsettingsGetSupportedHolidaysResponse" }, @@ -3652,6 +4230,7 @@ }, "getsupportedpickupservices": { "description": "Retrieves supported pickup services for an account.", + "flatPath": "content/v2.1/{merchantId}/supportedPickupServices", "httpMethod": "GET", "id": "content.shippingsettings.getsupportedpickupservices", "parameterOrder": [ @@ -3666,7 +4245,7 @@ "type": "string" } }, - "path": "{merchantId}/supportedPickupServices", + "path": "content/v2.1/{merchantId}/supportedPickupServices", "response": { "$ref": "ShippingsettingsGetSupportedPickupServicesResponse" }, @@ -3676,6 +4255,7 @@ }, "list": { "description": "Lists the shipping settings of the sub-accounts in your Merchant Center account.", + "flatPath": "content/v2.1/{merchantId}/shippingsettings", "httpMethod": "GET", "id": "content.shippingsettings.list", "parameterOrder": [ @@ -3701,7 +4281,7 @@ "type": "string" } }, - "path": "{merchantId}/shippingsettings", + "path": "content/v2.1/{merchantId}/shippingsettings", "response": { "$ref": "ShippingsettingsListResponse" }, @@ -3711,6 +4291,7 @@ }, "update": { "description": "Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource.", + "flatPath": "content/v2.1/{merchantId}/shippingsettings/{accountId}", "httpMethod": "PUT", "id": "content.shippingsettings.update", "parameterOrder": [ @@ -3733,7 +4314,7 @@ "type": "string" } }, - "path": "{merchantId}/shippingsettings/{accountId}", + "path": "content/v2.1/{merchantId}/shippingsettings/{accountId}", "request": { "$ref": "ShippingSettings" }, @@ -3747,8 +4328,8 @@ } } }, - "revision": "20200922", - "rootUrl": "https://www.googleapis.com/", + "revision": "20200930", + "rootUrl": "https://shoppingcontent.googleapis.com/", "schemas": { "Account": { "description": "Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.", @@ -3779,17 +4360,11 @@ "description": "The GMB account which is linked or in the process of being linked with the Merchant Center account." }, "id": { - "annotations": { - "required": [ - "content.accounts.update" - ] - }, "description": "Required for update. Merchant Center account ID.", "format": "uint64", "type": "string" }, "kind": { - "default": "content#account", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#account`\"", "type": "string" }, @@ -3802,12 +4377,6 @@ "type": "array" }, "name": { - "annotations": { - "required": [ - "content.accounts.insert", - "content.accounts.update" - ] - }, "description": "Required. Display name for the account.", "type": "string" }, @@ -3871,7 +4440,7 @@ "type": "string" }, "status": { - "description": "Status of the link between this Merchant Center account and the Ads account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google Ads or `pending` if it's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.\n\nAcceptable values are: \n- \"`active`\" \n- \"`pending`\"", + "description": "Status of the link between this Merchant Center account and the Ads account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google Ads or `pending` if it's pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - \"`active`\" - \"`pending`\" ", "type": "string" } }, @@ -3925,7 +4494,7 @@ "type": "string" }, "status": { - "description": "Status of the link between this Merchant Center account and the GMB account.\n\nAcceptable values are: \n- \"`active`\" \n- \"`pending`\"", + "description": "Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - \"`active`\" - \"`pending`\" ", "type": "string" } }, @@ -3947,6 +4516,33 @@ }, "type": "object" }, + "AccountLabel": { + "description": "Label assigned by CSS domain or CSS group to one of its sub-accounts.", + "id": "AccountLabel", + "properties": { + "accountId": { + "description": "Output only. Immutable. The ID of account this label belongs to.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Description for this label.", + "type": "string" + }, + "labelId": { + "description": "Output only. Immutable. The ID of the label.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "The display name of this label.", + "type": "string" + } + }, + "type": "object" + }, "AccountStatus": { "description": "The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time.", "id": "AccountStatus", @@ -3963,7 +4559,6 @@ "type": "array" }, "kind": { - "default": "content#accountStatus", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#accountStatus`\"", "type": "string" }, @@ -4005,7 +4600,7 @@ "type": "string" }, "severity": { - "description": "Severity of the issue.\n\nAcceptable values are: \n- \"`critical`\" \n- \"`error`\" \n- \"`suggestion`\"", + "description": "Severity of the issue. Acceptable values are: - \"`critical`\" - \"`error`\" - \"`suggestion`\" ", "type": "string" }, "title": { @@ -4058,7 +4653,7 @@ "id": "AccountStatusProducts", "properties": { "channel": { - "description": "The channel the data applies to.\n\nAcceptable values are: \n- \"`local`\" \n- \"`online`\"", + "description": "The channel the data applies to. Acceptable values are: - \"`local`\" - \"`online`\" ", "type": "string" }, "country": { @@ -4114,17 +4709,11 @@ "id": "AccountTax", "properties": { "accountId": { - "annotations": { - "required": [ - "content.accounttax.update" - ] - }, "description": "Required. The ID of the account to which these account tax settings belong.", "format": "uint64", "type": "string" }, "kind": { - "default": "content#accountTax", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountTax\".", "type": "string" }, @@ -4147,11 +4736,6 @@ "type": "string" }, "locationId": { - "annotations": { - "required": [ - "content.accounttax.update" - ] - }, "description": "Required. State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).", "format": "uint64", "type": "string" @@ -4205,7 +4789,7 @@ "type": "string" }, "status": { - "description": "Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.", + "description": "Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it's pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending.", "type": "string" } }, @@ -4215,14 +4799,13 @@ "id": "AccountsAuthInfoResponse", "properties": { "accountIdentifiers": { - "description": "The account identifiers corresponding to the authenticated user.\n- For an individual account: only the merchant ID is defined\n- For an aggregator: only the aggregator ID is defined\n- For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined.", + "description": "The account identifiers corresponding to the authenticated user. - For an individual account: only the merchant ID is defined - For an aggregator: only the aggregator ID is defined - For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined. ", "items": { "$ref": "AccountIdentifier" }, "type": "array" }, "kind": { - "default": "content#accountsAuthInfoResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsAuthInfoResponse\".", "type": "string" } @@ -4233,7 +4816,6 @@ "id": "AccountsClaimWebsiteResponse", "properties": { "kind": { - "default": "content#accountsClaimWebsiteResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsClaimWebsiteResponse\".", "type": "string" } @@ -4293,7 +4875,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`claimWebsite`\" \n- \"`delete`\" \n- \"`get`\" \n- \"`insert`\" \n- \"`link`\" \n- \"`update`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`claimWebsite`\" - \"`delete`\" - \"`get`\" - \"`insert`\" - \"`link`\" - \"`update`\" ", "type": "string" }, "overwrite": { @@ -4311,11 +4893,11 @@ "id": "AccountsCustomBatchRequestEntryLinkRequest", "properties": { "action": { - "description": "Action to perform for this link. The `\"request\"` action is only available to select merchants.\n\nAcceptable values are: \n- \"`approve`\" \n- \"`remove`\" \n- \"`request`\"", + "description": "Action to perform for this link. The `\"request\"` action is only available to select merchants. Acceptable values are: - \"`approve`\" - \"`remove`\" - \"`request`\" ", "type": "string" }, "linkType": { - "description": "Type of the link between the two accounts.\n\nAcceptable values are: \n- \"`channelPartner`\" \n- \"`eCommercePlatform`\"", + "description": "Type of the link between the two accounts. Acceptable values are: - \"`channelPartner`\" - \"`eCommercePlatform`\" ", "type": "string" }, "linkedAccountId": { @@ -4343,7 +4925,6 @@ "type": "array" }, "kind": { - "default": "content#accountsCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsCustomBatchResponse\".", "type": "string" } @@ -4368,7 +4949,6 @@ "description": "A list of errors defined if and only if the request failed." }, "kind": { - "default": "content#accountsCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#accountsCustomBatchResponseEntry`\"", "type": "string" } @@ -4379,11 +4959,11 @@ "id": "AccountsLinkRequest", "properties": { "action": { - "description": "Action to perform for this link. The `\"request\"` action is only available to select merchants.\n\nAcceptable values are: \n- \"`approve`\" \n- \"`remove`\" \n- \"`request`\"", + "description": "Action to perform for this link. The `\"request\"` action is only available to select merchants. Acceptable values are: - \"`approve`\" - \"`remove`\" - \"`request`\" ", "type": "string" }, "linkType": { - "description": "Type of the link between the two accounts.\n\nAcceptable values are: \n- \"`channelPartner`\" \n- \"`eCommercePlatform`\"", + "description": "Type of the link between the two accounts. Acceptable values are: - \"`channelPartner`\" - \"`eCommercePlatform`\" ", "type": "string" }, "linkedAccountId": { @@ -4404,7 +4984,6 @@ "id": "AccountsLinkResponse", "properties": { "kind": { - "default": "content#accountsLinkResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsLinkResponse\".", "type": "string" } @@ -4415,7 +4994,6 @@ "id": "AccountsListLinksResponse", "properties": { "kind": { - "default": "content#accountsListLinksResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsListLinksResponse\".", "type": "string" }, @@ -4437,7 +5015,6 @@ "id": "AccountsListResponse", "properties": { "kind": { - "default": "content#accountsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsListResponse\".", "type": "string" }, @@ -4472,7 +5049,6 @@ "id": "AccountsUpdateLabelsResponse", "properties": { "kind": { - "default": "content#accountsUpdateLabelsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountsUpdateLabelsResponse\".", "type": "string" } @@ -4519,7 +5095,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" ", "type": "string" } }, @@ -4536,7 +5112,6 @@ "type": "array" }, "kind": { - "default": "content#accountstatusesCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountstatusesCustomBatchResponse\".", "type": "string" } @@ -4567,7 +5142,6 @@ "id": "AccountstatusesListResponse", "properties": { "kind": { - "default": "content#accountstatusesListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accountstatusesListResponse\".", "type": "string" }, @@ -4621,7 +5195,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\" \n- \"`update`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" - \"`update`\" ", "type": "string" } }, @@ -4638,7 +5212,6 @@ "type": "array" }, "kind": { - "default": "content#accounttaxCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accounttaxCustomBatchResponse\".", "type": "string" } @@ -4663,7 +5236,6 @@ "description": "A list of errors defined if and only if the request failed." }, "kind": { - "default": "content#accounttaxCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#accounttaxCustomBatchResponseEntry`\"", "type": "string" } @@ -4674,7 +5246,6 @@ "id": "AccounttaxListResponse", "properties": { "kind": { - "default": "content#accounttaxListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#accounttaxListResponse\".", "type": "string" }, @@ -4769,6 +5340,48 @@ }, "type": "object" }, + "Css": { + "description": "Information about CSS domain.", + "id": "Css", + "properties": { + "cssDomainId": { + "description": "Output only. Immutable. The CSS domain ID.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "cssGroupId": { + "description": "Output only. Immutable. The ID of the CSS group this CSS domain is affiliated with. Only populated for CSS group users.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "displayName": { + "description": "Output only. Immutable. The CSS domain's display name, used when space is constrained.", + "readOnly": true, + "type": "string" + }, + "fullName": { + "description": "Output only. Immutable. The CSS domain's full name.", + "readOnly": true, + "type": "string" + }, + "homepageUri": { + "description": "Output only. Immutable. The CSS domain's homepage.", + "readOnly": true, + "type": "string" + }, + "labelIds": { + "description": "A list of label IDs that are assigned to this CSS domain by its CSS group. Only populated for CSS group users.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "CustomAttribute": { "id": "CustomAttribute", "properties": { @@ -4798,7 +5411,7 @@ "type": "string" }, "reasonCode": { - "description": "Code of the return reason.\n\nAcceptable values are: \n- \"`betterPriceFound`\" \n- \"`changedMind`\" \n- \"`damagedOrDefectiveItem`\" \n- \"`didNotMatchDescription`\" \n- \"`doesNotFit`\" \n- \"`expiredItem`\" \n- \"`incorrectItemReceived`\" \n- \"`noLongerNeeded`\" \n- \"`notSpecified`\" \n- \"`orderedWrongItem`\" \n- \"`other`\" \n- \"`qualityNotExpected`\" \n- \"`receivedTooLate`\" \n- \"`undeliverable`\"", + "description": "Code of the return reason. Acceptable values are: - \"`betterPriceFound`\" - \"`changedMind`\" - \"`damagedOrDefectiveItem`\" - \"`didNotMatchDescription`\" - \"`doesNotFit`\" - \"`expiredItem`\" - \"`incorrectItemReceived`\" - \"`noLongerNeeded`\" - \"`notSpecified`\" - \"`orderedWrongItem`\" - \"`other`\" - \"`qualityNotExpected`\" - \"`receivedTooLate`\" - \"`undeliverable`\" ", "type": "string" } }, @@ -4818,7 +5431,7 @@ "type": "integer" }, "timezone": { - "description": "Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. \"Europe/Zurich\". Required.", + "description": "Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. \"Europe/Zurich\". Required.", "type": "string" } }, @@ -4833,13 +5446,7 @@ "type": "string" }, "contentType": { - "annotations": { - "required": [ - "content.datafeeds.insert", - "content.datafeeds.update" - ] - }, - "description": "Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported.\n\nAcceptable values are: \n- \"`local products`\" \n- \"`product inventory`\" \n- \"`products`\"", + "description": "Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - \"`local products`\" - \"`product inventory`\" - \"`products`\" ", "type": "string" }, "fetchSchedule": { @@ -4847,12 +5454,6 @@ "description": "Fetch schedule for the feed file." }, "fileName": { - "annotations": { - "required": [ - "content.datafeeds.insert", - "content.datafeeds.update" - ] - }, "description": "Required. The filename of the feed. All feeds must have a unique file name.", "type": "string" }, @@ -4861,26 +5462,15 @@ "description": "Format of the feed file." }, "id": { - "annotations": { - "required": [ - "content.datafeeds.update" - ] - }, "description": "Required for update. The ID of the data feed.", "format": "int64", "type": "string" }, "kind": { - "default": "content#datafeed", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#datafeed`\"", "type": "string" }, "name": { - "annotations": { - "required": [ - "content.datafeeds.insert" - ] - }, "description": "Required for insert. A descriptive name of the data feed.", "type": "string" }, @@ -4934,7 +5524,7 @@ "type": "string" }, "weekday": { - "description": "The day of the week the feed file should be fetched.\n\nAcceptable values are: \n- \"`monday`\" \n- \"`tuesday`\" \n- \"`wednesday`\" \n- \"`thursday`\" \n- \"`friday`\" \n- \"`saturday`\" \n- \"`sunday`\"", + "description": "The day of the week the feed file should be fetched. Acceptable values are: - \"`monday`\" - \"`tuesday`\" - \"`wednesday`\" - \"`thursday`\" - \"`friday`\" - \"`saturday`\" - \"`sunday`\" ", "type": "string" } }, @@ -4944,15 +5534,15 @@ "id": "DatafeedFormat", "properties": { "columnDelimiter": { - "description": "Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds.\n\nAcceptable values are: \n- \"`pipe`\" \n- \"`tab`\" \n- \"`tilde`\"", + "description": "Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - \"`pipe`\" - \"`tab`\" - \"`tilde`\" ", "type": "string" }, "fileEncoding": { - "description": "Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected.\n\nAcceptable values are: \n- \"`latin-1`\" \n- \"`utf-16be`\" \n- \"`utf-16le`\" \n- \"`utf-8`\" \n- \"`windows-1252`\"", + "description": "Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - \"`latin-1`\" - \"`utf-16be`\" - \"`utf-16le`\" - \"`utf-8`\" - \"`windows-1252`\" ", "type": "string" }, "quotingMode": { - "description": "Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds.\n\nAcceptable values are: \n- \"`normal character`\" \n- \"`value quoting`\"", + "description": "Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - \"`normal character`\" - \"`value quoting`\" ", "type": "string" } }, @@ -4963,7 +5553,7 @@ "id": "DatafeedStatus", "properties": { "country": { - "description": "The country for which the status is reported, represented as a CLDR territory code.", + "description": "The country for which the status is reported, represented as a CLDR territory code.", "type": "string" }, "datafeedId": { @@ -4989,7 +5579,6 @@ "type": "string" }, "kind": { - "default": "content#datafeedStatus", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#datafeedStatus`\"", "type": "string" }, @@ -5002,7 +5591,7 @@ "type": "string" }, "processingStatus": { - "description": "The processing status of the feed.\n\nAcceptable values are: \n- \"`\"`failure`\": The feed could not be processed or all items had errors.`\" \n- \"`in progress`\": The feed is being processed. \n- \"`none`\": The feed has not yet been processed. For example, a feed that has never been uploaded will have this processing status. \n- \"`success`\": The feed was processed successfully, though some items might have had errors.", + "description": "The processing status of the feed. Acceptable values are: - \"`\"`failure`\": The feed could not be processed or all items had errors.`\" - \"`in progress`\": The feed is being processed. - \"`none`\": The feed has not yet been processed. For example, a feed that has never been uploaded will have this processing status. - \"`success`\": The feed was processed successfully, though some items might have had errors. ", "type": "string" }, "warnings": { @@ -5066,7 +5655,7 @@ "id": "DatafeedTarget", "properties": { "country": { - "description": "The country where the items in the feed will be included in the search index, represented as a CLDR territory code.", + "description": "The country where the items in the feed will be included in the search index, represented as a CLDR territory code.", "type": "string" }, "excludedDestinations": { @@ -5077,7 +5666,7 @@ "type": "array" }, "includedDestinations": { - "description": "The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`.\n\nList of supported destinations (if available to the account): \n- DisplayAds \n- Shopping \n- ShoppingActions \n- SurfacesAcrossGoogle", + "description": "The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle ", "items": { "type": "string" }, @@ -5127,7 +5716,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`delete`\" \n- \"`fetchNow`\" \n- \"`get`\" \n- \"`insert`\" \n- \"`update`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`delete`\" - \"`fetchNow`\" - \"`get`\" - \"`insert`\" - \"`update`\" ", "type": "string" } }, @@ -5144,7 +5733,6 @@ "type": "array" }, "kind": { - "default": "content#datafeedsCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedsCustomBatchResponse\".", "type": "string" } @@ -5175,7 +5763,6 @@ "id": "DatafeedsFetchNowResponse", "properties": { "kind": { - "default": "content#datafeedsFetchNowResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedsFetchNowResponse\".", "type": "string" } @@ -5186,7 +5773,6 @@ "id": "DatafeedsListResponse", "properties": { "kind": { - "default": "content#datafeedsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedsListResponse\".", "type": "string" }, @@ -5244,7 +5830,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" ", "type": "string" } }, @@ -5261,7 +5847,6 @@ "type": "array" }, "kind": { - "default": "content#datafeedstatusesCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedstatusesCustomBatchResponse\".", "type": "string" } @@ -5292,7 +5877,6 @@ "id": "DatafeedstatusesListResponse", "properties": { "kind": { - "default": "content#datafeedstatusesListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#datafeedstatusesListResponse\".", "type": "string" }, @@ -5453,7 +6037,7 @@ "type": "array" }, "numberOfItems": { - "description": "A list of inclusive number of items upper bounds. The last value can be `\"infinity\"`. For example `[\"10\", \"50\", \"infinity\"]` represents the headers \"<= 10 items\", \" 50 items\". Must be non-empty. Can only be set if all other fields are not set.", + "description": "A list of inclusive number of items upper bounds. The last value can be `\"infinity\"`. For example `[\"10\", \"50\", \"infinity\"]` represents the headers \"<= 10 items\", \"<= 50 items\", and \"> 50 items\". Must be non-empty. Can only be set if all other fields are not set.", "items": { "type": "string" }, @@ -5467,14 +6051,14 @@ "type": "array" }, "prices": { - "description": "A list of inclusive order price upper bounds. The last price's value can be `\"infinity\"`. For example `[{\"value\": \"10\", \"currency\": \"USD\"}, {\"value\": \"500\", \"currency\": \"USD\"}, {\"value\": \"infinity\", \"currency\": \"USD\"}]` represents the headers \"<= $10\", \" $500\". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.", + "description": "A list of inclusive order price upper bounds. The last price's value can be `\"infinity\"`. For example `[{\"value\": \"10\", \"currency\": \"USD\"}, {\"value\": \"500\", \"currency\": \"USD\"}, {\"value\": \"infinity\", \"currency\": \"USD\"}]` represents the headers \"<= $10\", \"<= $500\", and \"> $500\". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set.", "items": { "$ref": "Price" }, "type": "array" }, "weights": { - "description": "A list of inclusive order weight upper bounds. The last weight's value can be `\"infinity\"`. For example `[{\"value\": \"10\", \"unit\": \"kg\"}, {\"value\": \"50\", \"unit\": \"kg\"}, {\"value\": \"infinity\", \"unit\": \"kg\"}]` represents the headers \"<= 10kg\", \" 50kg\". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.", + "description": "A list of inclusive order weight upper bounds. The last weight's value can be `\"infinity\"`. For example `[{\"value\": \"10\", \"unit\": \"kg\"}, {\"value\": \"50\", \"unit\": \"kg\"}, {\"value\": \"infinity\", \"unit\": \"kg\"}]` represents the headers \"<= 10kg\", \"<= 50kg\", and \"> 50kg\". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set.", "items": { "$ref": "Weight" }, @@ -5496,7 +6080,7 @@ "type": "integer" }, "deadlineTimezone": { - "description": "Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. \"Europe/Zurich\". Required.", + "description": "Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. \"Europe/Zurich\". Required.", "type": "string" }, "holidayId": { @@ -5535,7 +6119,7 @@ "type": "string" }, "type": { - "description": "The holiday type. Always present.\n\nAcceptable values are: \n- \"`Christmas`\" \n- \"`Easter`\" \n- \"`Father's Day`\" \n- \"`Halloween`\" \n- \"`Independence Day (USA)`\" \n- \"`Mother's Day`\" \n- \"`Thanksgiving`\" \n- \"`Valentine's Day`\"", + "description": "The holiday type. Always present. Acceptable values are: - \"`Christmas`\" - \"`Easter`\" - \"`Father's Day`\" - \"`Halloween`\" - \"`Independence Day (USA)`\" - \"`Mother's Day`\" - \"`Thanksgiving`\" - \"`Valentine's Day`\" ", "type": "string" } }, @@ -5581,17 +6165,32 @@ "description": "[required] Total additional charge for this type." }, "type": { - "description": "[required] Type of the additional charge.\n\nAcceptable values are: \n- \"`shipping`\"", + "description": "[required] Type of the additional charge. Acceptable values are: - \"`shipping`\" ", "type": "string" } }, "type": "object" }, + "LabelIds": { + "description": "The IDs of labels that should be assigned to the CSS domain.", + "id": "LabelIds", + "properties": { + "labelIds": { + "description": "The list of label IDs.", + "items": { + "format": "int64", + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "LiaAboutPageSettings": { "id": "LiaAboutPageSettings", "properties": { "status": { - "description": "The status of the verification process for the About page.\n\nAcceptable values are: \n- \"`active`\" \n- \"`inactive`\" \n- \"`pending`\"", + "description": "The status of the verification process for the About page. Acceptable values are: - \"`active`\" - \"`inactive`\" - \"`pending`\" ", "type": "string" }, "url": { @@ -5609,11 +6208,6 @@ "description": "The settings for the About page." }, "country": { - "annotations": { - "required": [ - "content.liasettings.update" - ] - }, "description": "Required. CLDR country code (e.g. \"US\").", "type": "string" }, @@ -5652,11 +6246,11 @@ "type": "string" }, "inventoryVerificationContactStatus": { - "description": "The status of the verification contact.\n\nAcceptable values are: \n- \"`active`\" \n- \"`inactive`\" \n- \"`pending`\"", + "description": "The status of the verification contact. Acceptable values are: - \"`active`\" - \"`inactive`\" - \"`pending`\" ", "type": "string" }, "status": { - "description": "The status of the inventory verification process.\n\nAcceptable values are: \n- \"`active`\" \n- \"`inactive`\" \n- \"`pending`\"", + "description": "The status of the inventory verification process. Acceptable values are: - \"`active`\" - \"`inactive`\" - \"`pending`\" ", "type": "string" } }, @@ -5670,7 +6264,7 @@ "type": "string" }, "status": { - "description": "The status of the ?On display to order? feature.\n\nAcceptable values are: \n- \"`active`\" \n- \"`inactive`\" \n- \"`pending`\"", + "description": "The status of the ?On display to order? feature. Acceptable values are: - \"`active`\" - \"`inactive`\" - \"`pending`\" ", "type": "string" } }, @@ -5708,7 +6302,6 @@ "type": "array" }, "kind": { - "default": "content#liaSettings", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#liaSettings`\"", "type": "string" } @@ -5767,7 +6360,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\" \n- \"`getAccessibleGmbAccounts`\" \n- \"`requestGmbAccess`\" \n- \"`requestInventoryVerification`\" \n- \"`setInventoryVerificationContact`\" \n- \"`update`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" - \"`getAccessibleGmbAccounts`\" - \"`requestGmbAccess`\" - \"`requestInventoryVerification`\" - \"`setInventoryVerificationContact`\" - \"`update`\" ", "type": "string" }, "posDataProviderId": { @@ -5793,7 +6386,6 @@ "type": "array" }, "kind": { - "default": "content#liasettingsCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsCustomBatchResponse\".", "type": "string" } @@ -5817,7 +6409,6 @@ "description": "The the list of accessible GMB accounts." }, "kind": { - "default": "content#liasettingsCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#liasettingsCustomBatchResponseEntry`\"", "type": "string" }, @@ -5851,7 +6442,6 @@ "type": "array" }, "kind": { - "default": "content#liasettingsGetAccessibleGmbAccountsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsGetAccessibleGmbAccountsResponse\".", "type": "string" } @@ -5862,7 +6452,6 @@ "id": "LiasettingsListPosDataProvidersResponse", "properties": { "kind": { - "default": "content#liasettingsListPosDataProvidersResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsListPosDataProvidersResponse\".", "type": "string" }, @@ -5880,7 +6469,6 @@ "id": "LiasettingsListResponse", "properties": { "kind": { - "default": "content#liasettingsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsListResponse\".", "type": "string" }, @@ -5901,7 +6489,6 @@ "id": "LiasettingsRequestGmbAccessResponse", "properties": { "kind": { - "default": "content#liasettingsRequestGmbAccessResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsRequestGmbAccessResponse\".", "type": "string" } @@ -5912,7 +6499,6 @@ "id": "LiasettingsRequestInventoryVerificationResponse", "properties": { "kind": { - "default": "content#liasettingsRequestInventoryVerificationResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsRequestInventoryVerificationResponse\".", "type": "string" } @@ -5923,7 +6509,6 @@ "id": "LiasettingsSetInventoryVerificationContactResponse", "properties": { "kind": { - "default": "content#liasettingsSetInventoryVerificationContactResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsSetInventoryVerificationContactResponse\".", "type": "string" } @@ -5934,7 +6519,6 @@ "id": "LiasettingsSetPosDataProviderResponse", "properties": { "kind": { - "default": "content#liasettingsSetPosDataProviderResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#liasettingsSetPosDataProviderResponse\".", "type": "string" } @@ -5945,11 +6529,11 @@ "id": "LinkService", "properties": { "service": { - "description": "Service provided to or by the linked account.\n\nAcceptable values are: \n- \"`shoppingActionsOrderManagement`\" \n- \"`shoppingActionsProductManagement`\" \n- \"`shoppingAdsProductManagement`\"", + "description": "Service provided to or by the linked account. Acceptable values are: - \"`shoppingActionsOrderManagement`\" - \"`shoppingActionsProductManagement`\" - \"`shoppingAdsProductManagement`\" ", "type": "string" }, "status": { - "description": "Status of the link\n\nAcceptable values are: \n- \"`active`\" \n- \"`inactive`\" \n- \"`pending`\"", + "description": "Status of the link Acceptable values are: - \"`active`\" - \"`inactive`\" - \"`pending`\" ", "type": "string" } }, @@ -5972,6 +6556,60 @@ }, "type": "object" }, + "ListAccountLabelsResponse": { + "description": "Response message for the `ListAccountLabels` method.", + "id": "ListAccountLabelsResponse", + "properties": { + "accountLabels": { + "description": "The labels from the specified account.", + "items": { + "$ref": "AccountLabel" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "ListCssesResponse": { + "description": "The response message for the `ListCsses` method", + "id": "ListCssesResponse", + "properties": { + "csses": { + "description": "The CSS domains affiliated with the specified CSS group.", + "items": { + "$ref": "Css" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + } + }, + "type": "object" + }, + "ListRepricingRulesResponse": { + "description": "Response message for the `ListRepricingRules` method.", + "id": "ListRepricingRulesResponse", + "properties": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "repricingRules": { + "description": "The rules from the specified merchant.", + "items": { + "$ref": "RepricingRule" + }, + "type": "array" + } + }, + "type": "object" + }, "LocalInventory": { "description": "Local inventory resource. For accepted attribute values, see the local product inventory feed specification.", "id": "LocalInventory", @@ -5985,7 +6623,6 @@ "type": "string" }, "kind": { - "default": "content#localInventory", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#localInventory`\"", "type": "string" }, @@ -6053,7 +6690,7 @@ "type": "string" }, "method": { - "description": "Method of the batch request entry.\n\nAcceptable values are: \n- \"`insert`\"", + "description": "Method of the batch request entry. Acceptable values are: - \"`insert`\" ", "type": "string" }, "productId": { @@ -6074,7 +6711,6 @@ "type": "array" }, "kind": { - "default": "content#localinventoryCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#localinventoryCustomBatchResponse\".", "type": "string" } @@ -6095,7 +6731,6 @@ "description": "A list of errors defined if and only if the request failed." }, "kind": { - "default": "content#localinventoryCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#localinventoryCustomBatchResponseEntry`\"", "type": "string" } @@ -6223,7 +6858,7 @@ "type": "string" }, "state": { - "description": "State of the item.\n\nAcceptable values are: \n- \"`canceled`\" \n- \"`new`\" \n- \"`received`\" \n- \"`refunded`\" \n- \"`rejected`\"", + "description": "State of the item. Acceptable values are: - \"`canceled`\" - \"`new`\" - \"`received`\" - \"`refunded`\" - \"`rejected`\" ", "type": "string" } }, @@ -6288,7 +6923,7 @@ "type": "object" }, "Order": { - "description": "Order. Production access (all methods) requires the order manager role. Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1.orders ==)", + "description": "Order. Production access (all methods) requires the order manager role. Sandbox access does not.", "id": "Order", "properties": { "acknowledged": { @@ -6319,7 +6954,6 @@ "type": "string" }, "kind": { - "default": "content#order", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#order`\"", "type": "string" }, @@ -6347,7 +6981,7 @@ "description": "The net amount for the order (tax part). Note that in certain cases due to taxable base adjustment `netTaxAmount` might not match to a sum of tax field across all lineItems and refunds." }, "paymentStatus": { - "description": "The status of the payment.\n\nAcceptable values are: \n- \"`paymentCaptured`\" \n- \"`paymentRejected`\" \n- \"`paymentSecured`\" \n- \"`pendingAuthorization`\"", + "description": "The status of the payment. Acceptable values are: - \"`paymentCaptured`\" - \"`paymentRejected`\" - \"`paymentSecured`\" - \"`pendingAuthorization`\" ", "type": "string" }, "pickupDetails": { @@ -6359,7 +6993,7 @@ "type": "string" }, "promotions": { - "description": "Promotions associated with the order.\n\nTo determine which promotions apply to which products, check the `Promotions[].appliedItems[].lineItemId` field against the `LineItems[].id` field for each promotion. If a promotion is applied to more than 1 offerId, divide the discount value by the number of affected offers to determine how much discount to apply to each offerId.\n\nExamples: \n- To calculate price paid by the customer for a single line item including the discount: For each promotion, subtract the `LineItems[].adjustments[].priceAdjustment.value` amount from the `LineItems[].Price.value`. \n- To calculate price paid by the customer for a single line item including the discount in case of multiple quantity: For each promotion, divide the `LineItems[].adjustments[].priceAdjustment.value` by the quantity of products then subtract the resulting value from the `LineItems[].Product.Price.value` for each quantity item. \n\nOnly 1 promotion can be applied to an offerId in a given order. To refund an item which had a promotion applied to it, make sure to refund the amount after first subtracting the promotion discount from the item price.\n\nMore details about the program are here.", + "description": "Promotions associated with the order. To determine which promotions apply to which products, check the `Promotions[].appliedItems[].lineItemId` field against the `LineItems[].id` field for each promotion. If a promotion is applied to more than 1 offerId, divide the discount value by the number of affected offers to determine how much discount to apply to each offerId. Examples: 1. To calculate price paid by the customer for a single line item including the discount: For each promotion, subtract the `LineItems[].adjustments[].priceAdjustment.value` amount from the `LineItems[].Price.value`. 2. To calculate price paid by the customer for a single line item including the discount in case of multiple quantity: For each promotion, divide the `LineItems[].adjustments[].priceAdjustment.value` by the quantity of products then subtract the resulting value from the `LineItems[].Product.Price.value` for each quantity item. Only 1 promotion can be applied to an offerId in a given order. To refund an item which had a promotion applied to it, make sure to refund the amount after first subtracting the promotion discount from the item price. More details about the program are here.", "items": { "$ref": "OrderPromotion" }, @@ -6388,11 +7022,11 @@ "description": "The tax for the total shipping cost." }, "status": { - "description": "The status of the order.\n\nAcceptable values are: \n- \"`canceled`\" \n- \"`delivered`\" \n- \"`inProgress`\" \n- \"`partiallyDelivered`\" \n- \"`partiallyReturned`\" \n- \"`partiallyShipped`\" \n- \"`pendingShipment`\" \n- \"`returned`\" \n- \"`shipped`\"", + "description": "The status of the order. Acceptable values are: - \"`canceled`\" - \"`delivered`\" - \"`inProgress`\" - \"`partiallyDelivered`\" - \"`partiallyReturned`\" - \"`partiallyShipped`\" - \"`pendingShipment`\" - \"`returned`\" - \"`shipped`\" ", "type": "string" }, "taxCollector": { - "description": "The party responsible for collecting and remitting taxes.\n\nAcceptable values are: \n- \"`marketplaceFacilitator`\" \n- \"`merchant`\"", + "description": "The party responsible for collecting and remitting taxes. Acceptable values are: - \"`marketplaceFacilitator`\" - \"`merchant`\" ", "type": "string" } }, @@ -6406,7 +7040,7 @@ "type": "string" }, "fullAddress": { - "description": "Strings representing the lines of the printed label for mailing the order, for example:\nJohn Smith\n1600 Amphitheatre Parkway\nMountain View, CA, 94043\nUnited States", + "description": "Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States ", "items": { "type": "string" }, @@ -6446,7 +7080,7 @@ "id": "OrderCancellation", "properties": { "actor": { - "description": "The actor that created the cancellation.\n\nAcceptable values are: \n- \"`customer`\" \n- \"`googleBot`\" \n- \"`googleCustomerService`\" \n- \"`googlePayments`\" \n- \"`googleSabre`\" \n- \"`merchant`\"", + "description": "The actor that created the cancellation. Acceptable values are: - \"`customer`\" - \"`googleBot`\" - \"`googleCustomerService`\" - \"`googlePayments`\" - \"`googleSabre`\" - \"`merchant`\" ", "type": "string" }, "creationDate": { @@ -6459,7 +7093,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads.\n\nAcceptable values are: \n- \"`autoPostInternal`\" \n- \"`autoPostInvalidBillingAddress`\" \n- \"`autoPostNoInventory`\" \n- \"`autoPostPriceError`\" \n- \"`autoPostUndeliverableShippingAddress`\" \n- \"`couponAbuse`\" \n- \"`customerCanceled`\" \n- \"`customerInitiatedCancel`\" \n- \"`customerSupportRequested`\" \n- \"`failToPushOrderGoogleError`\" \n- \"`failToPushOrderMerchantError`\" \n- \"`failToPushOrderMerchantFulfillmentError`\" \n- \"`failToPushOrderToMerchant`\" \n- \"`failToPushOrderToMerchantOutOfStock`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`merchantDidNotShipOnTime`\" \n- \"`noInventory`\" \n- \"`orderTimeout`\" \n- \"`other`\" \n- \"`paymentAbuse`\" \n- \"`paymentDeclined`\" \n- \"`priceError`\" \n- \"`returnRefundAbuse`\" \n- \"`shippingPriceError`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\"", + "description": "The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads. Acceptable values are: - \"`autoPostInternal`\" - \"`autoPostInvalidBillingAddress`\" - \"`autoPostNoInventory`\" - \"`autoPostPriceError`\" - \"`autoPostUndeliverableShippingAddress`\" - \"`couponAbuse`\" - \"`customerCanceled`\" - \"`customerInitiatedCancel`\" - \"`customerSupportRequested`\" - \"`failToPushOrderGoogleError`\" - \"`failToPushOrderMerchantError`\" - \"`failToPushOrderMerchantFulfillmentError`\" - \"`failToPushOrderToMerchant`\" - \"`failToPushOrderToMerchantOutOfStock`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`merchantDidNotShipOnTime`\" - \"`noInventory`\" - \"`orderTimeout`\" - \"`other`\" - \"`paymentAbuse`\" - \"`paymentDeclined`\" - \"`priceError`\" - \"`returnRefundAbuse`\" - \"`shippingPriceError`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" ", "type": "string" }, "reasonText": { @@ -6477,7 +7111,7 @@ "type": "string" }, "invoiceReceivingEmail": { - "description": "Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Shopping Actions.", + "description": "Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Shopping Actions.", "type": "string" }, "loyaltyInfo": { @@ -6509,7 +7143,7 @@ "id": "OrderCustomerMarketingRightsInfo", "properties": { "explicitMarketingPreference": { - "description": "Last known customer selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty. If a customer selected `granted` in their most recent order, they can be subscribed to marketing emails. Customers who have chosen `denied` must not be subscribed, or must be unsubscribed if already opted-in.\n\nAcceptable values are: \n- \"`denied`\" \n- \"`granted`\"", + "description": "Last known customer selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty. If a customer selected `granted` in their most recent order, they can be subscribed to marketing emails. Customers who have chosen `denied` must not be subscribed, or must be unsubscribed if already opted-in. Acceptable values are: - \"`denied`\" - \"`granted`\" ", "type": "string" }, "lastUpdatedTimestamp": { @@ -6647,7 +7281,7 @@ "description": "Adjustment for total tax of the line item." }, "type": { - "description": "Type of this adjustment.\n\nAcceptable values are: \n- \"`promotion`\"", + "description": "Type of this adjustment. Acceptable values are: - \"`promotion`\" ", "type": "string" } }, @@ -6661,7 +7295,7 @@ "type": "string" }, "condition": { - "description": "Condition or state of the item.\n\nAcceptable values are: \n- \"`new`\" \n- \"`refurbished`\" \n- \"`used`\"", + "description": "Condition or state of the item. Acceptable values are: - \"`new`\" - \"`refurbished`\" - \"`used`\" ", "type": "string" }, "contentLanguage": { @@ -6708,7 +7342,7 @@ "type": "string" }, "targetCountry": { - "description": "The CLDR territory code of the target country of the product.", + "description": "The CLDR territory // code of the target country of the product.", "type": "string" }, "title": { @@ -6757,30 +7391,15 @@ "id": "OrderLineItemReturnInfo", "properties": { "daysToReturn": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. How many days later the item can be returned.", "format": "int32", "type": "integer" }, "isReturnable": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Whether the item is returnable.", "type": "boolean" }, "policyUrl": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. URL of the item return policy.", "type": "string" } @@ -6791,21 +7410,11 @@ "id": "OrderLineItemShippingDetails", "properties": { "deliverByDate": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The delivery by date, in ISO 8601 format.", "type": "string" }, "method": { "$ref": "OrderLineItemShippingDetailsMethod", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Details of the shipping method." }, "pickupPromiseInMinutes": { @@ -6814,16 +7423,11 @@ "type": "integer" }, "shipByDate": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The ship by date, in ISO 8601 format.", "type": "string" }, "type": { - "description": "Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment.\n\nAcceptable values are: \n- \"`delivery`\" \n- \"`pickup`\"", + "description": "Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - \"`delivery`\" - \"`pickup`\" ", "type": "string" } }, @@ -6837,30 +7441,15 @@ "type": "string" }, "maxDaysInTransit": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Maximum transit time.", "format": "uint32", "type": "integer" }, "methodName": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The name of the shipping method.", "type": "string" }, "minDaysInTransit": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Minimum transit time.", "format": "uint32", "type": "integer" @@ -6915,7 +7504,7 @@ "type": "string" }, "pickupType": { - "description": "The pickup type of this order.\n\nAcceptable values are: \n- \"`merchantStore`\" \n- \"`merchantStoreCurbside`\" \n- \"`merchantStoreLocker`\" \n- \"`thirdPartyPickupPoint`\" \n- \"`thirdPartyLocker`\"", + "description": "The pickup type of this order. Acceptable values are: - \"`merchantStore`\" - \"`merchantStoreCurbside`\" - \"`merchantStoreLocker`\" - \"`thirdPartyPickupPoint`\" - \"`thirdPartyLocker`\" ", "type": "string" } }, @@ -6957,20 +7546,10 @@ "type": "string" }, "funder": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`.\n\nAcceptable values are: \n- \"`google`\" \n- \"`merchant`\"", + "description": "Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - \"`google`\" - \"`merchant`\" ", "type": "string" }, "merchantPromotionId": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. This field is used to identify promotions within merchants' own systems.", "type": "string" }, @@ -6987,12 +7566,7 @@ "type": "string" }, "subtype": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`.\n\nAcceptable values are: \n- \"`buyMGetMoneyOff`\" \n- \"`buyMGetNMoneyOff`\" \n- \"`buyMGetNPercentOff`\" \n- \"`buyMGetPercentOff`\" \n- \"`freeGift`\" \n- \"`freeGiftWithItemId`\" \n- \"`freeGiftWithValue`\" \n- \"`freeShippingOvernight`\" \n- \"`freeShippingStandard`\" \n- \"`freeShippingTwoDay`\" \n- \"`moneyOff`\" \n- \"`percentOff`\" \n- \"`rewardPoints`\" \n- \"`salePrice`\"", + "description": "Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`. Acceptable values are: - \"`buyMGetMoneyOff`\" - \"`buyMGetNMoneyOff`\" - \"`buyMGetNPercentOff`\" - \"`buyMGetPercentOff`\" - \"`freeGift`\" - \"`freeGiftWithItemId`\" - \"`freeGiftWithValue`\" - \"`freeShippingOvernight`\" - \"`freeShippingStandard`\" - \"`freeShippingTwoDay`\" - \"`moneyOff`\" - \"`percentOff`\" - \"`rewardPoints`\" - \"`salePrice`\" ", "type": "string" }, "taxValue": { @@ -7000,21 +7574,11 @@ "description": "Estimated discount applied to tax (if allowed by law). Do not provide for `orders.createtestorder`." }, "title": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The title of the promotion.", "type": "string" }, "type": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`.\n\nAcceptable values are: \n- \"`product`\" \n- \"`shipping`\"", + "description": "Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - \"`product`\" - \"`shipping`\" ", "type": "string" } }, @@ -7028,11 +7592,6 @@ "type": "string" }, "offerId": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Offer ID of a product. Only for `orders.createtestorder`.", "type": "string" }, @@ -7052,7 +7611,7 @@ "id": "OrderRefund", "properties": { "actor": { - "description": "The actor that created the refund.\n\nAcceptable values are: \n- \"`customer`\" \n- \"`googleBot`\" \n- \"`googleCustomerService`\" \n- \"`googlePayments`\" \n- \"`googleSabre`\" \n- \"`merchant`\"", + "description": "The actor that created the refund. Acceptable values are: - \"`customer`\" - \"`googleBot`\" - \"`googleCustomerService`\" - \"`googlePayments`\" - \"`googleSabre`\" - \"`merchant`\" ", "type": "string" }, "amount": { @@ -7064,7 +7623,7 @@ "type": "string" }, "reason": { - "description": "The reason for the refund.\n\nAcceptable values are: \n- \"`adjustment`\" \n- \"`autoPostInternal`\" \n- \"`autoPostInvalidBillingAddress`\" \n- \"`autoPostNoInventory`\" \n- \"`autoPostPriceError`\" \n- \"`autoPostUndeliverableShippingAddress`\" \n- \"`couponAbuse`\" \n- \"`courtesyAdjustment`\" \n- \"`customerCanceled`\" \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`customerSupportRequested`\" \n- \"`deliveredLateByCarrier`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`failToPushOrderGoogleError`\" \n- \"`failToPushOrderMerchantError`\" \n- \"`failToPushOrderMerchantFulfillmentError`\" \n- \"`failToPushOrderToMerchant`\" \n- \"`failToPushOrderToMerchantOutOfStock`\" \n- \"`feeAdjustment`\" \n- \"`invalidCoupon`\" \n- \"`lateShipmentCredit`\" \n- \"`malformedShippingAddress`\" \n- \"`merchantDidNotShipOnTime`\" \n- \"`noInventory`\" \n- \"`orderTimeout`\" \n- \"`other`\" \n- \"`paymentAbuse`\" \n- \"`paymentDeclined`\" \n- \"`priceAdjustment`\" \n- \"`priceError`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`promoReallocation`\" \n- \"`qualityNotAsExpected`\" \n- \"`returnRefundAbuse`\" \n- \"`shippingCostAdjustment`\" \n- \"`shippingPriceError`\" \n- \"`taxAdjustment`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the refund. Acceptable values are: - \"`adjustment`\" - \"`autoPostInternal`\" - \"`autoPostInvalidBillingAddress`\" - \"`autoPostNoInventory`\" - \"`autoPostPriceError`\" - \"`autoPostUndeliverableShippingAddress`\" - \"`couponAbuse`\" - \"`courtesyAdjustment`\" - \"`customerCanceled`\" - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`customerSupportRequested`\" - \"`deliveredLateByCarrier`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`failToPushOrderGoogleError`\" - \"`failToPushOrderMerchantError`\" - \"`failToPushOrderMerchantFulfillmentError`\" - \"`failToPushOrderToMerchant`\" - \"`failToPushOrderToMerchantOutOfStock`\" - \"`feeAdjustment`\" - \"`invalidCoupon`\" - \"`lateShipmentCredit`\" - \"`malformedShippingAddress`\" - \"`merchantDidNotShipOnTime`\" - \"`noInventory`\" - \"`orderTimeout`\" - \"`other`\" - \"`paymentAbuse`\" - \"`paymentDeclined`\" - \"`priceAdjustment`\" - \"`priceError`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`promoReallocation`\" - \"`qualityNotAsExpected`\" - \"`returnRefundAbuse`\" - \"`shippingCostAdjustment`\" - \"`shippingPriceError`\" - \"`taxAdjustment`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7075,7 +7634,7 @@ "type": "object" }, "OrderReportDisbursement": { - "description": "Order disbursement. All methods require the payment analyst role. (== resource_for v2.orderreports ==) (== resource_for v2.1.orderreports ==)", + "description": "Order disbursement. All methods require the payment analyst role.", "id": "OrderReportDisbursement", "properties": { "disbursementAmount": { @@ -7149,7 +7708,7 @@ "id": "OrderReturn", "properties": { "actor": { - "description": "The actor that created the refund.\n\nAcceptable values are: \n- \"`customer`\" \n- \"`googleBot`\" \n- \"`googleCustomerService`\" \n- \"`googlePayments`\" \n- \"`googleSabre`\" \n- \"`merchant`\"", + "description": "The actor that created the refund. Acceptable values are: - \"`customer`\" - \"`googleBot`\" - \"`googleCustomerService`\" - \"`googlePayments`\" - \"`googleSabre`\" - \"`merchant`\" ", "type": "string" }, "creationDate": { @@ -7162,7 +7721,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7176,7 +7735,7 @@ "id": "OrderShipment", "properties": { "carrier": { - "description": "The carrier handling the shipment.\n\nFor supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. Note: You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates. \nSupported carriers for US are: \n- \"`ups`\" (United Parcel Service) automatic status updates \n- \"`usps`\" (United States Postal Service) automatic status updates \n- \"`fedex`\" (FedEx) automatic status updates \n- \"`dhl`\" (DHL eCommerce) automatic status updates (US only) \n- \"`ontrac`\" (OnTrac) automatic status updates \n- \"`dhl express`\" (DHL Express)\n- \"`deliv`\" (Deliv) \n- \"`dynamex`\" (TForce) \n- \"`lasership`\" (LaserShip) \n- \"`mpx`\" (Military Parcel Xpress) \n- \"`uds`\" (United Delivery Service) \n- \"`efw`\" (Estes Forwarding Worldwide) \n- \"`jd logistics`\" (JD Logistics) \n- \"`yunexpress`\" (YunExpress) \n- \"`china post`\" (China Post) \n- \"`china ems`\" (China Post Express Mail Service) \n- \"`singapore post`\" (Singapore Post) \n- \"`pos malaysia`\" (Pos Malaysia) \n- \"`postnl`\" (PostNL) \n- \"`ptt`\" (PTT Turkish Post) \n- \"`eub`\" (ePacket) \n- \"`chukou1`\" (Chukou1 Logistics) \n- \"`bestex`\" (Best Express) \n- \"`canada post`\" (Canada Post) \n- \"`purolator`\" (Purolator) \n- \"`canpar`\" (Canpar) \n- \"`india post`\" (India Post) \n- \"`blue dart`\" (Blue Dart) \n- \"`delhivery`\" (Delhivery) \n- \"`dtdc`\" (DTDC) \n- \"`tpc india`\" (TPC India) \nSupported carriers for FR are: \n- \"`la poste`\" (La Poste) automatic status updates \n- \"`colissimo`\" (Colissimo by La Poste) automatic status updates \n- \"`ups`\" (United Parcel Service) automatic status updates \n- \"`chronopost`\" (Chronopost by La Poste) \n- \"`gls`\" (General Logistics Systems France) \n- \"`dpd`\" (DPD Group by GeoPost) \n- \"`bpost`\" (Belgian Post Group) \n- \"`colis prive`\" (Colis Privé) \n- \"`boxtal`\" (Boxtal) \n- \"`geodis`\" (GEODIS) \n- \"`tnt`\" (TNT) \n- \"`db schenker`\" (DB Schenker) \n- \"`aramex`\" (Aramex)", + "description": "The carrier handling the shipment. For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. *Note:* You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates. Supported carriers for US are: - \"`ups`\" (United Parcel Service) *automatic status updates* - \"`usps`\" (United States Postal Service) *automatic status updates* - \"`fedex`\" (FedEx) *automatic status updates * - \"`dhl`\" (DHL eCommerce) *automatic status updates* (US only) - \"`ontrac`\" (OnTrac) *automatic status updates * - \"`dhl express`\" (DHL Express) - \"`deliv`\" (Deliv) - \"`dynamex`\" (TForce) - \"`lasership`\" (LaserShip) - \"`mpx`\" (Military Parcel Xpress) - \"`uds`\" (United Delivery Service) - \"`efw`\" (Estes Forwarding Worldwide) - \"`jd logistics`\" (JD Logistics) - \"`yunexpress`\" (YunExpress) - \"`china post`\" (China Post) - \"`china ems`\" (China Post Express Mail Service) - \"`singapore post`\" (Singapore Post) - \"`pos malaysia`\" (Pos Malaysia) - \"`postnl`\" (PostNL) - \"`ptt`\" (PTT Turkish Post) - \"`eub`\" (ePacket) - \"`chukou1`\" (Chukou1 Logistics) - \"`bestex`\" (Best Express) - \"`canada post`\" (Canada Post) - \"`purolator`\" (Purolator) - \"`canpar`\" (Canpar) - \"`india post`\" (India Post) - \"`blue dart`\" (Blue Dart) - \"`delhivery`\" (Delhivery) - \"`dtdc`\" (DTDC) - \"`tpc india`\" (TPC India) Supported carriers for FR are: - \"`la poste`\" (La Poste) *automatic status updates * - \"`colissimo`\" (Colissimo by La Poste) *automatic status updates* - \"`ups`\" (United Parcel Service) *automatic status updates * - \"`chronopost`\" (Chronopost by La Poste) - \"`gls`\" (General Logistics Systems France) - \"`dpd`\" (DPD Group by GeoPost) - \"`bpost`\" (Belgian Post Group) - \"`colis prive`\" (Colis Privé) - \"`boxtal`\" (Boxtal) - \"`geodis`\" (GEODIS) - \"`tnt`\" (TNT) - \"`db schenker`\" (DB Schenker) - \"`aramex`\" (Aramex) ", "type": "string" }, "creationDate": { @@ -7207,7 +7766,7 @@ "type": "string" }, "status": { - "description": "The status of the shipment.\n\nAcceptable values are: \n- \"`delivered`\" \n- \"`readyForPickup`\" \n- \"`shipped`\" \n- \"`undeliverable`\"", + "description": "The status of the shipment. Acceptable values are: - \"`delivered`\" - \"`readyForPickup`\" - \"`shipped`\" - \"`undeliverable`\" ", "type": "string" }, "trackingId": { @@ -7283,11 +7842,10 @@ "id": "OrderinvoicesCreateChargeInvoiceResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#orderinvoicesCreateChargeInvoiceResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderinvoicesCreateChargeInvoiceResponse\".", "type": "string" } @@ -7327,11 +7885,10 @@ "id": "OrderinvoicesCreateRefundInvoiceResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#orderinvoicesCreateRefundInvoiceResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderinvoicesCreateRefundInvoiceResponse\".", "type": "string" } @@ -7346,7 +7903,7 @@ "type": "string" }, "reason": { - "description": "[required] Reason for the refund.\n\nAcceptable values are: \n- \"`adjustment`\" \n- \"`autoPostInternal`\" \n- \"`autoPostInvalidBillingAddress`\" \n- \"`autoPostNoInventory`\" \n- \"`autoPostPriceError`\" \n- \"`autoPostUndeliverableShippingAddress`\" \n- \"`couponAbuse`\" \n- \"`courtesyAdjustment`\" \n- \"`customerCanceled`\" \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`customerSupportRequested`\" \n- \"`deliveredLateByCarrier`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`failToPushOrderGoogleError`\" \n- \"`failToPushOrderMerchantError`\" \n- \"`failToPushOrderMerchantFulfillmentError`\" \n- \"`failToPushOrderToMerchant`\" \n- \"`failToPushOrderToMerchantOutOfStock`\" \n- \"`feeAdjustment`\" \n- \"`invalidCoupon`\" \n- \"`lateShipmentCredit`\" \n- \"`malformedShippingAddress`\" \n- \"`merchantDidNotShipOnTime`\" \n- \"`noInventory`\" \n- \"`orderTimeout`\" \n- \"`other`\" \n- \"`paymentAbuse`\" \n- \"`paymentDeclined`\" \n- \"`priceAdjustment`\" \n- \"`priceError`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`promoReallocation`\" \n- \"`qualityNotAsExpected`\" \n- \"`returnRefundAbuse`\" \n- \"`shippingCostAdjustment`\" \n- \"`shippingPriceError`\" \n- \"`taxAdjustment`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "[required] Reason for the refund. Acceptable values are: - \"`adjustment`\" - \"`autoPostInternal`\" - \"`autoPostInvalidBillingAddress`\" - \"`autoPostNoInventory`\" - \"`autoPostPriceError`\" - \"`autoPostUndeliverableShippingAddress`\" - \"`couponAbuse`\" - \"`courtesyAdjustment`\" - \"`customerCanceled`\" - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`customerSupportRequested`\" - \"`deliveredLateByCarrier`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`failToPushOrderGoogleError`\" - \"`failToPushOrderMerchantError`\" - \"`failToPushOrderMerchantFulfillmentError`\" - \"`failToPushOrderToMerchant`\" - \"`failToPushOrderToMerchantOutOfStock`\" - \"`feeAdjustment`\" - \"`invalidCoupon`\" - \"`lateShipmentCredit`\" - \"`malformedShippingAddress`\" - \"`merchantDidNotShipOnTime`\" - \"`noInventory`\" - \"`orderTimeout`\" - \"`other`\" - \"`paymentAbuse`\" - \"`paymentDeclined`\" - \"`priceAdjustment`\" - \"`priceError`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`promoReallocation`\" - \"`qualityNotAsExpected`\" - \"`returnRefundAbuse`\" - \"`shippingCostAdjustment`\" - \"`shippingPriceError`\" - \"`taxAdjustment`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" } }, @@ -7360,7 +7917,7 @@ "type": "string" }, "reason": { - "description": "[required] Reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "[required] Reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" } }, @@ -7377,7 +7934,6 @@ "type": "array" }, "kind": { - "default": "content#orderreportsListDisbursementsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderreportsListDisbursementsResponse\".", "type": "string" }, @@ -7392,7 +7948,6 @@ "id": "OrderreportsListTransactionsResponse", "properties": { "kind": { - "default": "content#orderreportsListTransactionsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderreportsListTransactionsResponse\".", "type": "string" }, @@ -7424,11 +7979,10 @@ "id": "OrderreturnsAcknowledgeResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#orderreturnsAcknowledgeResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderreturnsAcknowledgeResponse\".", "type": "string" } @@ -7439,7 +7993,6 @@ "id": "OrderreturnsListResponse", "properties": { "kind": { - "default": "content#orderreturnsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderreturnsListResponse\".", "type": "string" }, @@ -7499,11 +8052,10 @@ "id": "OrderreturnsProcessResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#orderreturnsProcessResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#orderreturnsProcessResponse\".", "type": "string" } @@ -7582,11 +8134,10 @@ "id": "OrdersAcknowledgeResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersAcknowledgeResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersAcknowledgeResponse\".", "type": "string" } @@ -7597,7 +8148,6 @@ "id": "OrdersAdvanceTestOrderResponse", "properties": { "kind": { - "default": "content#ordersAdvanceTestOrderResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersAdvanceTestOrderResponse\".", "type": "string" } @@ -7625,7 +8175,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the cancellation.\n\nAcceptable values are: \n- \"`customerInitiatedCancel`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`noInventory`\" \n- \"`other`\" \n- \"`priceError`\" \n- \"`shippingPriceError`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\"", + "description": "The reason for the cancellation. Acceptable values are: - \"`customerInitiatedCancel`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`noInventory`\" - \"`other`\" - \"`priceError`\" - \"`shippingPriceError`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" ", "type": "string" }, "reasonText": { @@ -7639,11 +8189,10 @@ "id": "OrdersCancelLineItemResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersCancelLineItemResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCancelLineItemResponse\".", "type": "string" } @@ -7658,7 +8207,7 @@ "type": "string" }, "reason": { - "description": "The reason for the cancellation.\n\nAcceptable values are: \n- \"`customerInitiatedCancel`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`noInventory`\" \n- \"`other`\" \n- \"`priceError`\" \n- \"`shippingPriceError`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\"", + "description": "The reason for the cancellation. Acceptable values are: - \"`customerInitiatedCancel`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`noInventory`\" - \"`other`\" - \"`priceError`\" - \"`shippingPriceError`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" ", "type": "string" }, "reasonText": { @@ -7672,11 +8221,10 @@ "id": "OrdersCancelResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersCancelResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCancelResponse\".", "type": "string" } @@ -7687,7 +8235,7 @@ "id": "OrdersCancelTestOrderByCustomerRequest", "properties": { "reason": { - "description": "The reason for the cancellation.\n\nAcceptable values are: \n- \"`changedMind`\" \n- \"`orderedWrongItem`\" \n- \"`other`\"", + "description": "The reason for the cancellation. Acceptable values are: - \"`changedMind`\" - \"`orderedWrongItem`\" - \"`other`\" ", "type": "string" } }, @@ -7697,7 +8245,6 @@ "id": "OrdersCancelTestOrderByCustomerResponse", "properties": { "kind": { - "default": "content#ordersCancelTestOrderByCustomerResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCancelTestOrderByCustomerResponse\".", "type": "string" } @@ -7708,11 +8255,11 @@ "id": "OrdersCreateTestOrderRequest", "properties": { "country": { - "description": "The CLDR territory code of the country of the test order to create. Affects the currency and addresses of orders created via `template_name`, or the addresses of orders created via `test_order`.\n\nAcceptable values are: \n- \"`US`\" \n- \"`FR`\" Defaults to `US`.", + "description": "The CLDR territory code of the country of the test order to create. Affects the currency and addresses of orders created via `template_name`, or the addresses of orders created via `test_order`. Acceptable values are: - \"`US`\" - \"`FR`\" Defaults to `US`.", "type": "string" }, "templateName": { - "description": "The test order template to use. Specify as an alternative to `testOrder` as a shortcut for retrieving a template and then creating an order using that template.\n\nAcceptable values are: \n- \"`template1`\" \n- \"`template1a`\" \n- \"`template1b`\" \n- \"`template2`\" \n- \"`template3`\"", + "description": "The test order template to use. Specify as an alternative to `testOrder` as a shortcut for retrieving a template and then creating an order using that template. Acceptable values are: - \"`template1`\" - \"`template1a`\" - \"`template1b`\" - \"`template2`\" - \"`template3`\" ", "type": "string" }, "testOrder": { @@ -7726,7 +8273,6 @@ "id": "OrdersCreateTestOrderResponse", "properties": { "kind": { - "default": "content#ordersCreateTestOrderResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCreateTestOrderResponse\".", "type": "string" }, @@ -7754,7 +8300,6 @@ "id": "OrdersCreateTestReturnResponse", "properties": { "kind": { - "default": "content#ordersCreateTestReturnResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersCreateTestReturnResponse\".", "type": "string" }, @@ -7825,15 +8370,10 @@ "id": "OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo", "properties": { "carrier": { - "description": "The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", + "description": "The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", "type": "string" }, "shipmentId": { - "annotations": { - "required": [ - "content.orders.shiplineitems" - ] - }, "description": "Required. The ID of the shipment. This is assigned by the merchant and is unique to each shipment.", "type": "string" }, @@ -7848,7 +8388,6 @@ "id": "OrdersGetByMerchantOrderIdResponse", "properties": { "kind": { - "default": "content#ordersGetByMerchantOrderIdResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersGetByMerchantOrderIdResponse\".", "type": "string" }, @@ -7863,7 +8402,6 @@ "id": "OrdersGetTestOrderTemplateResponse", "properties": { "kind": { - "default": "content#ordersGetTestOrderTemplateResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersGetTestOrderTemplateResponse\".", "type": "string" }, @@ -7899,7 +8437,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -7917,11 +8455,10 @@ "id": "OrdersInStoreRefundLineItemResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersInStoreRefundLineItemResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersInStoreRefundLineItemResponse\".", "type": "string" } @@ -7932,7 +8469,6 @@ "id": "OrdersListResponse", "properties": { "kind": { - "default": "content#ordersListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersListResponse\".", "type": "string" }, @@ -7964,7 +8500,7 @@ "type": "string" }, "reason": { - "description": "The reason for the refund.\n\nAcceptable values are: \n- \"`shippingCostAdjustment`\" \n- \"`priceAdjustment`\" \n- \"`taxAdjustment`\" \n- \"`feeAdjustment`\" \n- \"`courtesyAdjustment`\" \n- \"`adjustment`\" \n- \"`customerCancelled`\" \n- \"`noInventory`\" \n- \"`productNotAsDescribed`\" \n- \"`undeliverableShippingAddress`\" \n- \"`wrongProductShipped`\" \n- \"`lateShipmentCredit`\" \n- \"`deliveredLateByCarrier`\" \n- \"`productArrivedDamaged`\"", + "description": "The reason for the refund. Acceptable values are: - \"`shippingCostAdjustment`\" - \"`priceAdjustment`\" - \"`taxAdjustment`\" - \"`feeAdjustment`\" - \"`courtesyAdjustment`\" - \"`adjustment`\" - \"`customerCancelled`\" - \"`noInventory`\" - \"`productNotAsDescribed`\" - \"`undeliverableShippingAddress`\" - \"`wrongProductShipped`\" - \"`lateShipmentCredit`\" - \"`deliveredLateByCarrier`\" - \"`productArrivedDamaged`\" ", "type": "string" }, "reasonText": { @@ -7982,11 +8518,10 @@ "id": "OrdersRefundItemResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersRefundItemResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersRefundItemResponse\".", "type": "string" } @@ -8009,7 +8544,7 @@ "type": "string" }, "reason": { - "description": "The reason for the refund.\n\nAcceptable values are: \n- \"`courtesyAdjustment`\" \n- \"`other`\"", + "description": "The reason for the refund. Acceptable values are: - \"`courtesyAdjustment`\" - \"`other`\" ", "type": "string" }, "reasonText": { @@ -8023,11 +8558,10 @@ "id": "OrdersRefundOrderResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersRefundOrderResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersRefundOrderResponse\".", "type": "string" } @@ -8055,7 +8589,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`damagedOrUsed`\" \n- \"`missingComponent`\" \n- \"`notEligible`\" \n- \"`other`\" \n- \"`outOfReturnWindow`\"", + "description": "The reason for the return. Acceptable values are: - \"`damagedOrUsed`\" - \"`missingComponent`\" - \"`notEligible`\" - \"`other`\" - \"`outOfReturnWindow`\" ", "type": "string" }, "reasonText": { @@ -8069,11 +8603,10 @@ "id": "OrdersRejectReturnLineItemResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersRejectReturnLineItemResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersRejectReturnLineItemResponse\".", "type": "string" } @@ -8105,7 +8638,7 @@ "type": "integer" }, "reason": { - "description": "The reason for the return.\n\nAcceptable values are: \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`invalidCoupon`\" \n- \"`malformedShippingAddress`\" \n- \"`other`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`qualityNotAsExpected`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "The reason for the return. Acceptable values are: - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`invalidCoupon`\" - \"`malformedShippingAddress`\" - \"`other`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`qualityNotAsExpected`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" }, "reasonText": { @@ -8123,11 +8656,10 @@ "id": "OrdersReturnRefundLineItemResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersReturnRefundLineItemResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersReturnRefundLineItemResponse\".", "type": "string" } @@ -8162,11 +8694,10 @@ "id": "OrdersSetLineItemMetadataResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersSetLineItemMetadataResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersSetLineItemMetadataResponse\".", "type": "string" } @@ -8205,11 +8736,10 @@ "id": "OrdersShipLineItemsResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersShipLineItemsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersShipLineItemsResponse\".", "type": "string" } @@ -8220,7 +8750,7 @@ "id": "OrdersUpdateLineItemShippingDetailsRequest", "properties": { "deliverByDate": { - "description": "Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated.\n\nProvided date should be within 1 year timeframe and can not be a date in the past.", + "description": "Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past.", "type": "string" }, "lineItemId": { @@ -8236,7 +8766,7 @@ "type": "string" }, "shipByDate": { - "description": "Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated.\n\nProvided date should be within 1 year timeframe and can not be a date in the past.", + "description": "Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past.", "type": "string" } }, @@ -8246,11 +8776,10 @@ "id": "OrdersUpdateLineItemShippingDetailsResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersUpdateLineItemShippingDetailsResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersUpdateLineItemShippingDetailsResponse\".", "type": "string" } @@ -8275,11 +8804,10 @@ "id": "OrdersUpdateMerchantOrderIdResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersUpdateMerchantOrderIdResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersUpdateMerchantOrderIdResponse\".", "type": "string" } @@ -8290,7 +8818,7 @@ "id": "OrdersUpdateShipmentRequest", "properties": { "carrier": { - "description": "The carrier handling the shipment. Not updated if missing. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", + "description": "The carrier handling the shipment. Not updated if missing. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values.", "type": "string" }, "deliveryDate": { @@ -8314,7 +8842,7 @@ "type": "string" }, "status": { - "description": "New status for the shipment. Not updated if missing.\n\nAcceptable values are: \n- \"`delivered`\" \n- \"`undeliverable`\" \n- \"`readyForPickup`\"", + "description": "New status for the shipment. Not updated if missing. Acceptable values are: - \"`delivered`\" - \"`undeliverable`\" - \"`readyForPickup`\" ", "type": "string" }, "trackingId": { @@ -8332,11 +8860,10 @@ "id": "OrdersUpdateShipmentResponse", "properties": { "executionStatus": { - "description": "The status of the execution.\n\nAcceptable values are: \n- \"`duplicate`\" \n- \"`executed`\"", + "description": "The status of the execution. Acceptable values are: - \"`duplicate`\" - \"`executed`\" ", "type": "string" }, "kind": { - "default": "content#ordersUpdateShipmentResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#ordersUpdateShipmentResponse\".", "type": "string" } @@ -8406,7 +8933,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`delete`\" \n- \"`get`\" \n- \"`insert`\" \n- \"`inventory`\" \n- \"`sale`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`delete`\" - \"`get`\" - \"`insert`\" - \"`inventory`\" - \"`sale`\" ", "type": "string" }, "sale": { @@ -8440,7 +8967,6 @@ "type": "array" }, "kind": { - "default": "content#posCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#posCustomBatchResponse\".", "type": "string" } @@ -8464,7 +8990,6 @@ "description": "The updated inventory information." }, "kind": { - "default": "content#posCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#posCustomBatchResponseEntry`\"", "type": "string" }, @@ -8520,11 +9045,6 @@ "id": "PosInventory", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8533,62 +9053,31 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "kind": { - "default": "content#posInventory", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#posInventory`\"", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The current price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The available quantity of the item.", "format": "int64", "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8599,11 +9088,6 @@ "id": "PosInventoryRequest", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8612,57 +9096,27 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The current price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The available quantity of the item.", "format": "int64", "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8673,11 +9127,6 @@ "id": "PosInventoryResponse", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8686,62 +9135,31 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "kind": { - "default": "content#posInventoryResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#posInventoryResponse\".", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The current price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The available quantity of the item.", "format": "int64", "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.inventory" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8752,7 +9170,6 @@ "id": "PosListResponse", "properties": { "kind": { - "default": "content#posListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#posListResponse\".", "type": "string" }, @@ -8770,11 +9187,6 @@ "id": "PosSale", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8783,34 +9195,18 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "kind": { - "default": "content#posSale", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#posSale`\"", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The relative change of the available quantity. Negative for items returned.", "format": "int64", "type": "string" @@ -8820,29 +9216,14 @@ "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8853,11 +9234,6 @@ "id": "PosSaleRequest", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8866,29 +9242,14 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The relative change of the available quantity. Negative for items returned.", "format": "int64", "type": "string" @@ -8898,29 +9259,14 @@ "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -8931,11 +9277,6 @@ "id": "PosSaleResponse", "properties": { "contentLanguage": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -8944,34 +9285,18 @@ "type": "string" }, "itemId": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. A unique identifier for the item.", "type": "string" }, "kind": { - "default": "content#posSaleResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#posSaleResponse\".", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The price of the item." }, "quantity": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The relative change of the available quantity. Negative for items returned.", "format": "int64", "type": "string" @@ -8981,29 +9306,14 @@ "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The identifier of the merchant's store. Either a `storeCode` inserted via the API or the code of the store in Google My Business.", "type": "string" }, "targetCountry": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, "timestamp": { - "annotations": { - "required": [ - "content.pos.sale" - ] - }, "description": "Required. The inventory timestamp, in ISO 8601 format.", "type": "string" } @@ -9015,25 +9325,14 @@ "id": "PosStore", "properties": { "kind": { - "default": "content#posStore", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#posStore`\"", "type": "string" }, "storeAddress": { - "annotations": { - "required": [ - "content.pos.insert" - ] - }, "description": "Required. The street address of the store.", "type": "string" }, "storeCode": { - "annotations": { - "required": [ - "content.pos.insert" - ] - }, "description": "Required. A store identifier that is unique for the given merchant.", "type": "string" } @@ -9090,7 +9389,7 @@ "type": "object" }, "Product": { - "description": "Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information.\n\nSome attributes are country-specific, so make sure you select the appropriate country in the drop-down selector at the top of the page. \n\nProduct data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect.", + "description": " Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information. Some attributes are country-specific, so make sure you select the appropriate country in the drop-down selector at the top of the page. Product data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect.", "id": "Product", "properties": { "additionalImageLinks": { @@ -9140,12 +9439,7 @@ "type": "string" }, "channel": { - "annotations": { - "required": [ - "content.products.insert" - ] - }, - "description": "Required. The item's channel (online or local).\n\nAcceptable values are: \n- \"`local`\" \n- \"`online`\"", + "description": "Required. The item's channel (online or local). Acceptable values are: - \"`local`\" - \"`online`\" ", "type": "string" }, "color": { @@ -9157,11 +9451,6 @@ "type": "string" }, "contentLanguage": { - "annotations": { - "required": [ - "content.products.insert" - ] - }, "description": "Required. The two-letter ISO 639-1 language code for the item.", "type": "string" }, @@ -9252,7 +9541,7 @@ "type": "string" }, "id": { - "description": "The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter.\nThe REST ID for a product is of the form channel:contentLanguage:targetCountry: offerId.", + "description": "The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter. The REST ID for a product is of the form channel:contentLanguage: targetCountry: offerId.", "type": "string" }, "identifierExists": { @@ -9283,7 +9572,6 @@ "type": "string" }, "kind": { - "default": "content#product", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#product`\"", "type": "string" }, @@ -9331,12 +9619,7 @@ "type": "string" }, "offerId": { - "annotations": { - "required": [ - "content.products.insert" - ] - }, - "description": "Required. A unique identifier for the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details.\nNote: Content API methods that operate on products take the REST ID of the product, not this identifier.", + "description": "Required. A unique identifier for the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details. *Note:* Content API methods that operate on products take the REST ID of the product, *not* this identifier.", "type": "string" }, "pattern": { @@ -9380,7 +9663,7 @@ "description": "Advertised sale price of the item." }, "salePriceEffectiveDate": { - "description": "Date range during which the item is on sale (see products data specification).", + "description": "Date range during which the item is on sale (see products data specification ).", "type": "string" }, "sellOnGoogleQuantity": { @@ -9438,7 +9721,7 @@ "type": "array" }, "source": { - "description": "The source of the offer, i.e., how the offer was created.\n\nAcceptable values are: \n- \"`api`\" \n- \"`crawl`\" \n- \"`feed`\"", + "description": "The source of the offer, i.e., how the offer was created. Acceptable values are: - \"`api`\" - \"`crawl`\" - \"`feed`\" ", "type": "string" }, "subscriptionCost": { @@ -9446,11 +9729,6 @@ "description": "Number of periods (months or years) and amount of payment per period for an item with an associated subscription contract." }, "targetCountry": { - "annotations": { - "required": [ - "content.products.insert" - ] - }, "description": "Required. The CLDR territory code for the item.", "type": "string" }, @@ -9612,7 +9890,6 @@ "type": "array" }, "kind": { - "default": "content#productStatus", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#productStatus`\"", "type": "string" }, @@ -9829,7 +10106,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`delete`\" \n- \"`get`\" \n- \"`insert`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`delete`\" - \"`get`\" - \"`insert`\" ", "type": "string" }, "product": { @@ -9854,7 +10131,6 @@ "type": "array" }, "kind": { - "default": "content#productsCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#productsCustomBatchResponse\".", "type": "string" } @@ -9875,7 +10151,6 @@ "description": "A list of errors defined if and only if the request failed." }, "kind": { - "default": "content#productsCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#productsCustomBatchResponseEntry`\"", "type": "string" }, @@ -9890,7 +10165,6 @@ "id": "ProductsListResponse", "properties": { "kind": { - "default": "content#productsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#productsListResponse\".", "type": "string" }, @@ -9945,7 +10219,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" ", "type": "string" }, "productId": { @@ -9966,7 +10240,6 @@ "type": "array" }, "kind": { - "default": "content#productstatusesCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#productstatusesCustomBatchResponse\".", "type": "string" } @@ -9987,7 +10260,6 @@ "description": "A list of errors, if the request failed." }, "kind": { - "default": "content#productstatusesCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#productstatusesCustomBatchResponseEntry`\"", "type": "string" }, @@ -10002,7 +10274,6 @@ "id": "ProductstatusesListResponse", "properties": { "kind": { - "default": "content#productstatusesListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#productstatusesListResponse\".", "type": "string" }, @@ -10020,7 +10291,7 @@ "type": "object" }, "PubsubNotificationSettings": { - "description": "Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account. (== resource_for v2.1.pubsubnotificationsettings ==)", + "description": "Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account.", "id": "PubsubNotificationSettings", "properties": { "cloudTopicName": { @@ -10028,12 +10299,11 @@ "type": "string" }, "kind": { - "default": "content#pubsubNotificationSettings", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#pubsubNotificationSettings`\"", "type": "string" }, "registeredEvents": { - "description": "List of event types.\n\nAcceptable values are: \n- \"`orderPendingShipment`\"", + "description": "List of event types. Acceptable values are: - \"`orderPendingShipment`\" ", "items": { "type": "string" }, @@ -10089,7 +10359,7 @@ "type": "string" }, "reasonCode": { - "description": "Code of the refund reason.\n\nAcceptable values are: \n- \"`adjustment`\" \n- \"`autoPostInternal`\" \n- \"`autoPostInvalidBillingAddress`\" \n- \"`autoPostNoInventory`\" \n- \"`autoPostPriceError`\" \n- \"`autoPostUndeliverableShippingAddress`\" \n- \"`couponAbuse`\" \n- \"`courtesyAdjustment`\" \n- \"`customerCanceled`\" \n- \"`customerDiscretionaryReturn`\" \n- \"`customerInitiatedMerchantCancel`\" \n- \"`customerSupportRequested`\" \n- \"`deliveredLateByCarrier`\" \n- \"`deliveredTooLate`\" \n- \"`expiredItem`\" \n- \"`failToPushOrderGoogleError`\" \n- \"`failToPushOrderMerchantError`\" \n- \"`failToPushOrderMerchantFulfillmentError`\" \n- \"`failToPushOrderToMerchant`\" \n- \"`failToPushOrderToMerchantOutOfStock`\" \n- \"`feeAdjustment`\" \n- \"`invalidCoupon`\" \n- \"`lateShipmentCredit`\" \n- \"`malformedShippingAddress`\" \n- \"`merchantDidNotShipOnTime`\" \n- \"`noInventory`\" \n- \"`orderTimeout`\" \n- \"`other`\" \n- \"`paymentAbuse`\" \n- \"`paymentDeclined`\" \n- \"`priceAdjustment`\" \n- \"`priceError`\" \n- \"`productArrivedDamaged`\" \n- \"`productNotAsDescribed`\" \n- \"`promoReallocation`\" \n- \"`qualityNotAsExpected`\" \n- \"`returnRefundAbuse`\" \n- \"`shippingCostAdjustment`\" \n- \"`shippingPriceError`\" \n- \"`taxAdjustment`\" \n- \"`taxError`\" \n- \"`undeliverableShippingAddress`\" \n- \"`unsupportedPoBoxAddress`\" \n- \"`wrongProductShipped`\"", + "description": "Code of the refund reason. Acceptable values are: - \"`adjustment`\" - \"`autoPostInternal`\" - \"`autoPostInvalidBillingAddress`\" - \"`autoPostNoInventory`\" - \"`autoPostPriceError`\" - \"`autoPostUndeliverableShippingAddress`\" - \"`couponAbuse`\" - \"`courtesyAdjustment`\" - \"`customerCanceled`\" - \"`customerDiscretionaryReturn`\" - \"`customerInitiatedMerchantCancel`\" - \"`customerSupportRequested`\" - \"`deliveredLateByCarrier`\" - \"`deliveredTooLate`\" - \"`expiredItem`\" - \"`failToPushOrderGoogleError`\" - \"`failToPushOrderMerchantError`\" - \"`failToPushOrderMerchantFulfillmentError`\" - \"`failToPushOrderToMerchant`\" - \"`failToPushOrderToMerchantOutOfStock`\" - \"`feeAdjustment`\" - \"`invalidCoupon`\" - \"`lateShipmentCredit`\" - \"`malformedShippingAddress`\" - \"`merchantDidNotShipOnTime`\" - \"`noInventory`\" - \"`orderTimeout`\" - \"`other`\" - \"`paymentAbuse`\" - \"`paymentDeclined`\" - \"`priceAdjustment`\" - \"`priceError`\" - \"`productArrivedDamaged`\" - \"`productNotAsDescribed`\" - \"`promoReallocation`\" - \"`qualityNotAsExpected`\" - \"`returnRefundAbuse`\" - \"`shippingCostAdjustment`\" - \"`shippingPriceError`\" - \"`taxAdjustment`\" - \"`taxError`\" - \"`undeliverableShippingAddress`\" - \"`unsupportedPoBoxAddress`\" - \"`wrongProductShipped`\" ", "type": "string" } }, @@ -10111,7 +10381,6 @@ "type": "array" }, "kind": { - "default": "content#regionalInventory", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#regionalInventory\".", "type": "string" }, @@ -10162,7 +10431,7 @@ "type": "string" }, "method": { - "description": "Method of the batch request entry.\n\nAcceptable values are: \n- \"`insert`\"", + "description": "Method of the batch request entry. Acceptable values are: - \"`insert`\" ", "type": "string" }, "productId": { @@ -10187,7 +10456,6 @@ "type": "array" }, "kind": { - "default": "content#regionalinventoryCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#regionalinventoryCustomBatchResponse\".", "type": "string" } @@ -10208,7 +10476,6 @@ "description": "A list of errors defined if and only if the request failed." }, "kind": { - "default": "content#regionalinventoryCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#regionalinventoryCustomBatchResponseEntry\".", "type": "string" }, @@ -10219,48 +10486,195 @@ }, "type": "object" }, + "RepricingRule": { + "description": "Represents a repricing rule. A repricing rule is used by shopping serving to adjust transactable offer prices if conditions are met. Next ID: 24", + "id": "RepricingRule", + "properties": { + "countryCode": { + "description": "Required. Immutable. CLDR country code (e.g. \"US\").", + "type": "string" + }, + "effectiveTimePeriod": { + "$ref": "RepricingRuleEffectiveTime", + "description": "Required. Time period when the rule should take effect." + }, + "eligibleOfferMatcher": { + "$ref": "RepricingRuleEligibleOfferMatcher", + "description": "Required. Match criteria for the eligible offers." + }, + "languageCode": { + "description": "Required. Immutable. The two-letter ISO 639-1 language code associated with the repricing rule.", + "type": "string" + }, + "merchantId": { + "description": "Output only. Immutable. Merchant that owns the repricing rule.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "paused": { + "description": "Represents whether a rule is paused. A paused rule will behave like a non-paused rule within CRUD operations, with the major difference that a paused rule will not be evaluated and will have no effect on offers.", + "type": "boolean" + }, + "restriction": { + "$ref": "RepricingRuleRestriction", + "description": "Required. Restriction of the rule appliance." + }, + "ruleId": { + "description": "Output only. Immutable. The ID to uniquely identify each repricing rule.", + "readOnly": true, + "type": "string" + }, + "title": { + "description": "The title for the rule.", + "type": "string" + }, + "type": { + "description": "Required. Immutable. The type of the rule.", + "enum": [ + "REPRICING_RULE_TYPE_UNSPECIFIED", + "TYPE_WIN_BUY_BOX" + ], + "enumDescriptions": [ + "Unused.", + "Buy Box winning price-based rules. In Buy on Google, the Buy Box refers to the offer for a product shown at the top of the Product Detail Page (PDP) with an \"Add to Cart\" button. If this rule is chosen, your offer price will be lowered within the range you set to help increase the likelihood that you will win the Buy Box. There is no RuleDefinition needed for this type." + ], + "type": "string" + } + }, + "type": "object" + }, + "RepricingRuleEffectiveTime": { + "id": "RepricingRuleEffectiveTime", + "properties": { + "fixedTimePeriods": { + "description": "A list of fixed time periods combined with OR. The maximum number of entries is limited to 5.", + "items": { + "$ref": "RepricingRuleEffectiveTimeFixedTimePeriod" + }, + "type": "array" + } + }, + "type": "object" + }, + "RepricingRuleEffectiveTimeFixedTimePeriod": { + "description": "Definition of a fixed time period.", + "id": "RepricingRuleEffectiveTimeFixedTimePeriod", + "properties": { + "endTime": { + "description": "The end time (exclusive) of the period. It can only be hour granularity.", + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "description": "The start time (inclusive) of the period. It can only be hour granularity.", + "format": "google-datetime", + "type": "string" + } + }, + "type": "object" + }, + "RepricingRuleEligibleOfferMatcher": { + "description": "Matcher that specifies eligible offers. When the USE_FEED_ATTRIBUTE option is selected, only the repricing_rule_id attribute on the product feed is used to specify offer-rule mapping. When the CUSTOM_FILTER option is selected, only the *_matcher fields are used to filter the offers for offer-rule mapping. If the CUSTOM_FILTER option is selected, an offer needs to satisfy each custom filter matcher to be eligible for a rule. Size limit: the sum of the number of entries in all the matchers should not exceed 20. For example, there can be 15 product ids and 5 brands, but not 10 product ids and 11 brands.", + "id": "RepricingRuleEligibleOfferMatcher", + "properties": { + "brandMatcher": { + "$ref": "RepricingRuleEligibleOfferMatcherStringMatcher", + "description": "Filter by the brand." + }, + "itemGroupIdMatcher": { + "$ref": "RepricingRuleEligibleOfferMatcherStringMatcher", + "description": "Filter by the item group id." + }, + "matcherOption": { + "description": "Determines whether to use the custom matchers or the product feed attribute \"repricing_rule_id\" to specify offer-rule mapping.", + "enum": [ + "MATCHER_OPTION_UNSPECIFIED", + "MATCHER_OPTION_CUSTOM_FILTER", + "MATCHER_OPTION_USE_FEED_ATTRIBUTE", + "MATCHER_OPTION_ALL_PRODUCTS" + ], + "enumDescriptions": [ + "Unused.", + "Use custom filters.", + "Use repricing_rule_id feed attribute on the product resource to specify offer-rule mapping.", + "Matching all products." + ], + "type": "string" + }, + "offerIdMatcher": { + "$ref": "RepricingRuleEligibleOfferMatcherStringMatcher", + "description": "Filter by the offer id." + } + }, + "type": "object" + }, + "RepricingRuleEligibleOfferMatcherStringMatcher": { + "description": "Matcher by string attributes.", + "id": "RepricingRuleEligibleOfferMatcherStringMatcher", + "properties": { + "strAttributes": { + "description": "String attributes, as long as such attribute of an offer is one of the string attribute values, the offer is considered as passing the matcher. The string matcher checks an offer for inclusivity in the string attributes, not equality. Only literal string matching is supported, no regex.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "RepricingRuleRestriction": { + "description": "Definition of a rule restriction. At least one of the following needs to be true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3) floor.percentage_delta exists If floor.price_delta and floor.percentage_delta are both set on a rule, the highest value will be chosen by the Repricer. In other words, for a product with a price of $50, if the `floor.percentage_delta` is \"-10\" and the floor.price_delta is \"-12\", the offer price will only be lowered $5 (10% lower than the original offer price).", + "id": "RepricingRuleRestriction", + "properties": { + "floor": { + "$ref": "RepricingRuleRestrictionBoundary", + "description": "The inclusive floor lower bound. The repricing rule only applies when new price >= floor." + }, + "useAutoPricingMinPrice": { + "description": "If true, use the AUTO_PRICING_MIN_PRICE offer attribute as the lower bound of the rule. If use_auto_pricing_min_price is true, then only offers with `AUTO_PRICING_MIN_PRICE` existing on the offer will get Repricer treatment, even if a floor value is set on the rule. Also, if use_auto_pricing_min_price is true, the floor restriction will be ignored.", + "type": "boolean" + } + }, + "type": "object" + }, + "RepricingRuleRestrictionBoundary": { + "description": "Definition of a boundary.", + "id": "RepricingRuleRestrictionBoundary", + "properties": { + "percentageDelta": { + "description": "The percentage delta relative to the offer selling price. This field is signed. It must be negative in floor. When it is used in floor, it should be > -100. If an offer is selling at $10 and this field is -30 in floor, the repricing rule only applies if the calculated new price is >= $7.", + "format": "int32", + "type": "integer" + }, + "priceDelta": { + "description": "The price micros relative to the offer selling price. This field is signed. It must be negative in floor. If an offer is selling at $10 and this field is -$2 in floor, the repricing rule only applies if the calculated new price is >= $8.", + "type": "string" + } + }, + "type": "object" + }, "ReturnAddress": { "description": "Return address resource.", "id": "ReturnAddress", "properties": { "address": { "$ref": "ReturnAddressAddress", - "annotations": { - "required": [ - "content.returnaddress.insert" - ] - }, "description": "Required. The address." }, "country": { - "annotations": { - "required": [ - "content.returnaddress.insert" - ] - }, "description": "Required. The country of sale where the return address is applicable.", "type": "string" }, "kind": { - "default": "content#returnAddress", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#returnAddress`\"", "type": "string" }, "label": { - "annotations": { - "required": [ - "content.returnaddress.insert" - ] - }, "description": "Required. The user-defined label of the return address. For the default address, use the label \"default\".", "type": "string" }, "phoneNumber": { - "annotations": { - "required": [ - "content.returnaddress.insert" - ] - }, "description": "Required. The merchant's contact phone number regarding the return.", "type": "string" }, @@ -10309,34 +10723,18 @@ "id": "ReturnPolicy", "properties": { "country": { - "annotations": { - "required": [ - "content.returnpolicy.insert" - ] - }, "description": "Required. The country of sale where the return policy is applicable.", "type": "string" }, "kind": { - "default": "content#returnPolicy", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#returnPolicy`\"", "type": "string" }, "label": { - "annotations": { - "required": [ - "content.returnpolicy.insert" - ] - }, "description": "Required. The user-defined label of the return policy. For the default policy, use the label \"default\".", "type": "string" }, "name": { - "annotations": { - "required": [ - "content.returnpolicy.insert" - ] - }, "description": "Required. The name of the policy as shown in Merchant Center.", "type": "string" }, @@ -10349,11 +10747,6 @@ }, "policy": { "$ref": "ReturnPolicyPolicy", - "annotations": { - "required": [ - "content.returnpolicy.insert" - ] - }, "description": "Required. The policy." }, "returnPolicyId": { @@ -10374,11 +10767,6 @@ "id": "ReturnPolicyPolicy", "properties": { "lastReturnDate": { - "annotations": { - "required": [ - "content.returnpolicy.insert" - ] - }, "description": "Required. Last day for returning the items. In ISO 8601 format. When specifying the return window like this, set the policy type to \"lastReturnDate\". Use this for seasonal overrides only.", "type": "string" }, @@ -10388,7 +10776,7 @@ "type": "string" }, "type": { - "description": "Policy type. Use \"lastReturnDate\" for seasonal overrides only. Note that for most items a minimum of 30 days is required for returns. Exceptions may be made for electronics or non-returnable items such as food, perishables, and living things. A policy of less than 30 days can only be applied to those items.\n\nAcceptable values are: \n- \"`lastReturnDate`\" \n- \"`lifetimeReturns`\" \n- \"`noReturns`\" \n- \"`numberOfDaysAfterDelivery`\"", + "description": "Policy type. Use \"lastReturnDate\" for seasonal overrides only. Note that for most items a minimum of 30 days is required for returns. Exceptions may be made for electronics or non-returnable items such as food, perishables, and living things. A policy of less than 30 days can only be applied to those items. Acceptable values are: - \"`lastReturnDate`\" - \"`lifetimeReturns`\" - \"`noReturns`\" - \"`numberOfDaysAfterDelivery`\" ", "type": "string" } }, @@ -10398,38 +10786,18 @@ "id": "ReturnPolicySeasonalOverride", "properties": { "endDate": { - "annotations": { - "required": [ - "content.returnpolicy.insert" - ] - }, "description": "Required. Last day on which the override applies. In ISO 8601 format.", "type": "string" }, "name": { - "annotations": { - "required": [ - "content.returnpolicy.insert" - ] - }, "description": "Required. The name of the seasonal override as shown in Merchant Center.", "type": "string" }, "policy": { "$ref": "ReturnPolicyPolicy", - "annotations": { - "required": [ - "content.returnpolicy.insert" - ] - }, "description": "Required. The policy which is in effect during that time." }, "startDate": { - "annotations": { - "required": [ - "content.returnpolicy.insert" - ] - }, "description": "Required. First day on which the override applies. In ISO 8601 format.", "type": "string" } @@ -10474,7 +10842,7 @@ "type": "string" }, "returnMethodType": { - "description": "Type of the return method.\n\nAcceptable values are: \n- \"`byMail`\" \n- \"`contactCustomerSupport`\" \n- \"`returnless`\"", + "description": "Type of the return method. Acceptable values are: - \"`byMail`\" - \"`contactCustomerSupport`\" - \"`returnless`\" ", "type": "string" }, "shipmentId": { @@ -10493,7 +10861,7 @@ "type": "string" }, "state": { - "description": "State of the shipment.\n\nAcceptable values are: \n- \"`completed`\" \n- \"`new`\" \n- \"`shipped`\" \n- \"`undeliverable`\" \n- \"`pending`\"", + "description": "State of the shipment. Acceptable values are: - \"`completed`\" - \"`new`\" - \"`shipped`\" - \"`undeliverable`\" - \"`pending`\" ", "type": "string" } }, @@ -10526,7 +10894,7 @@ "type": "string" }, "method": { - "description": "Method of the batch request entry.\n\nAcceptable values are: \n- \"`delete`\" \n- \"`get`\" \n- \"`insert`\"", + "description": "Method of the batch request entry. Acceptable values are: - \"`delete`\" - \"`get`\" - \"`insert`\" ", "type": "string" }, "returnAddress": { @@ -10551,7 +10919,6 @@ "type": "array" }, "kind": { - "default": "content#returnaddressCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#returnaddressCustomBatchResponse\".", "type": "string" } @@ -10571,7 +10938,6 @@ "description": "A list of errors defined if, and only if, the request failed." }, "kind": { - "default": "content#returnaddressCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#returnaddressCustomBatchResponseEntry`\"", "type": "string" }, @@ -10586,7 +10952,6 @@ "id": "ReturnaddressListResponse", "properties": { "kind": { - "default": "content#returnaddressListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#returnaddressListResponse\".", "type": "string" }, @@ -10630,7 +10995,7 @@ "type": "string" }, "method": { - "description": "Method of the batch request entry.\n\nAcceptable values are: \n- \"`delete`\" \n- \"`get`\" \n- \"`insert`\"", + "description": "Method of the batch request entry. Acceptable values are: - \"`delete`\" - \"`get`\" - \"`insert`\" ", "type": "string" }, "returnPolicy": { @@ -10655,7 +11020,6 @@ "type": "array" }, "kind": { - "default": "content#returnpolicyCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#returnpolicyCustomBatchResponse\".", "type": "string" } @@ -10675,7 +11039,6 @@ "description": "A list of errors defined if, and only if, the request failed." }, "kind": { - "default": "content#returnpolicyCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#returnpolicyCustomBatchResponseEntry`\"", "type": "string" }, @@ -10690,7 +11053,6 @@ "id": "ReturnpolicyListResponse", "properties": { "kind": { - "default": "content#returnpolicyListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#returnpolicyListResponse\".", "type": "string" }, @@ -10736,7 +11098,7 @@ "description": "Time spent in various aspects from order to the delivery of the product. Required." }, "eligibility": { - "description": "Eligibility for this service.\n\nAcceptable values are: \n- \"`All scenarios`\" \n- \"`All scenarios except Shopping Actions`\" \n- \"`Shopping Actions`\"", + "description": "Eligibility for this service. Acceptable values are: - \"`All scenarios`\" - \"`All scenarios except Shopping Actions`\" - \"`Shopping Actions`\" ", "type": "string" }, "minimumOrderValue": { @@ -10763,14 +11125,14 @@ "type": "array" }, "shipmentType": { - "description": "Type of locations this service ships orders to.\n\nAcceptable values are: \n- \"`delivery`\" \n- \"`pickup`\"", + "description": "Type of locations this service ships orders to. Acceptable values are: - \"`delivery`\" - \"`pickup`\" ", "type": "string" } }, "type": "object" }, "SettlementReport": { - "description": "Settlement reports detail order-level and item-level credits and debits between you and Google.", + "description": " Settlement reports detail order-level and item-level credits and debits between you and Google.", "id": "SettlementReport", "properties": { "endDate": { @@ -10778,7 +11140,6 @@ "type": "string" }, "kind": { - "default": "content#settlementReport", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#settlementReport`\"", "type": "string" }, @@ -10813,7 +11174,7 @@ "type": "object" }, "SettlementTransaction": { - "description": "Settlement transactions give a detailed breakdown of the settlement report. (== resource_for v2.1.settlementtransactions ==)", + "description": "Settlement transactions give a detailed breakdown of the settlement report.", "id": "SettlementTransaction", "properties": { "amount": { @@ -10825,7 +11186,6 @@ "description": "Identifiers of the transaction." }, "kind": { - "default": "content#settlementTransaction", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#settlementTransaction`\"", "type": "string" }, @@ -10843,7 +11203,7 @@ "$ref": "SettlementTransactionAmountCommission" }, "description": { - "description": "The description of the event.\n\nAcceptable values are: \n- \"`taxWithhold`\" \n- \"`principal`\" \n- \"`principalAdjustment`\" \n- \"`shippingFee`\" \n- \"`merchantRemittedSalesTax`\" \n- \"`googleRemittedSalesTax`\" \n- \"`merchantCoupon`\" \n- \"`merchantCouponTax`\" \n- \"`merchantRemittedDisposalTax`\" \n- \"`googleRemittedDisposalTax`\" \n- \"`merchantRemittedRedemptionFee`\" \n- \"`googleRemittedRedemptionFee`\" \n- \"`eeeEcoFee`\" \n- \"`furnitureEcoFee`\" \n- \"`copyPrivateFee`\" \n- \"`eeeEcoFeeCommission`\" \n- \"`furnitureEcoFeeCommission`\" \n- \"`copyPrivateFeeCommission`\" \n- \"`principalRefund`\" \n- \"`principalRefundTax`\" \n- \"`itemCommission`\" \n- \"`adjustmentCommission`\" \n- \"`shippingFeeCommission`\" \n- \"`commissionRefund`\" \n- \"`damaged`\" \n- \"`damagedOrDefectiveItem`\" \n- \"`expiredItem`\" \n- \"`faultyItem`\" \n- \"`incorrectItemReceived`\" \n- \"`itemMissing`\" \n- \"`qualityNotExpected`\" \n- \"`receivedTooLate`\" \n- \"`storePackageMissing`\" \n- \"`transitPackageMissing`\" \n- \"`unsuccessfulDeliveryUndeliverable`\" \n- \"`wrongChargeInStore`\" \n- \"`wrongItem`\" \n- \"`returns`\" \n- \"`undeliverable`\" \n- \"`refundFromMerchant`\" \n- \"`returnLabelShippingFee`\"", + "description": "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`\" - \"`refundFromMerchant`\" - \"`returnLabelShippingFee`\" ", "type": "string" }, "transactionAmount": { @@ -10851,7 +11211,7 @@ "description": "The amount that contributes to the line item price." }, "type": { - "description": "The type of the amount.\n\nAcceptable values are: \n- \"`itemPrice`\" \n- \"`orderPrice`\" \n- \"`refund`\" \n- \"`earlyRefund`\" \n- \"`courtesyRefund`\" \n- \"`returnRefund`\" \n- \"`returnLabelShippingFeeAmount`\"", + "description": "The type of the amount. Acceptable values are: - \"`itemPrice`\" - \"`orderPrice`\" - \"`refund`\" - \"`earlyRefund`\" - \"`courtesyRefund`\" - \"`returnRefund`\" - \"`returnLabelShippingFeeAmount`\" ", "type": "string" } }, @@ -10861,7 +11221,7 @@ "id": "SettlementTransactionAmountCommission", "properties": { "category": { - "description": "The category of the commission.\n\nAcceptable values are: \n- \"`animalsAndPetSupplies`\" \n- \"`dogCatFoodAndCatLitter`\" \n- \"`apparelAndAccessories`\" \n- \"`shoesHandbagsAndSunglasses`\" \n- \"`costumesAndAccessories`\" \n- \"`jewelry`\" \n- \"`watches`\" \n- \"`hobbiesArtsAndCrafts`\" \n- \"`homeAndGarden`\" \n- \"`entertainmentCollectibles`\" \n- \"`collectibleCoins`\" \n- \"`sportsCollectibles`\" \n- \"`sportingGoods`\" \n- \"`toysAndGames`\" \n- \"`musicalInstruments`\" \n- \"`giftCards`\" \n- \"`babyAndToddler`\" \n- \"`babyFoodWipesAndDiapers`\" \n- \"`businessAndIndustrial`\" \n- \"`camerasOpticsAndPhotography`\" \n- \"`consumerElectronics`\" \n- \"`electronicsAccessories`\" \n- \"`personalComputers`\" \n- \"`videoGameConsoles`\" \n- \"`foodAndGrocery`\" \n- \"`beverages`\" \n- \"`tobaccoProducts`\" \n- \"`furniture`\" \n- \"`hardware`\" \n- \"`buildingMaterials`\" \n- \"`tools`\" \n- \"`healthAndPersonalCare`\" \n- \"`beauty`\" \n- \"`householdSupplies`\" \n- \"`kitchenAndDining`\" \n- \"`majorAppliances`\" \n- \"`luggageAndBags`\" \n- \"`media`\" \n- \"`officeSupplies`\" \n- \"`softwareAndVideoGames`\" \n- \"`vehiclePartsAndAccessories`\" \n- \"`vehicleTiresAndWheels`\" \n- \"`vehicles`\" \n- \"`everythingElse`\"", + "description": "The category of the commission. Acceptable values are: - \"`animalsAndPetSupplies`\" - \"`dogCatFoodAndCatLitter`\" - \"`apparelAndAccessories`\" - \"`shoesHandbagsAndSunglasses`\" - \"`costumesAndAccessories`\" - \"`jewelry`\" - \"`watches`\" - \"`hobbiesArtsAndCrafts`\" - \"`homeAndGarden`\" - \"`entertainmentCollectibles`\" - \"`collectibleCoins`\" - \"`sportsCollectibles`\" - \"`sportingGoods`\" - \"`toysAndGames`\" - \"`musicalInstruments`\" - \"`giftCards`\" - \"`babyAndToddler`\" - \"`babyFoodWipesAndDiapers`\" - \"`businessAndIndustrial`\" - \"`camerasOpticsAndPhotography`\" - \"`consumerElectronics`\" - \"`electronicsAccessories`\" - \"`personalComputers`\" - \"`videoGameConsoles`\" - \"`foodAndGrocery`\" - \"`beverages`\" - \"`tobaccoProducts`\" - \"`furniture`\" - \"`hardware`\" - \"`buildingMaterials`\" - \"`tools`\" - \"`healthAndPersonalCare`\" - \"`beauty`\" - \"`householdSupplies`\" - \"`kitchenAndDining`\" - \"`majorAppliances`\" - \"`luggageAndBags`\" - \"`media`\" - \"`officeSupplies`\" - \"`softwareAndVideoGames`\" - \"`vehiclePartsAndAccessories`\" - \"`vehicleTiresAndWheels`\" - \"`vehicles`\" - \"`everythingElse`\" ", "type": "string" }, "rate": { @@ -10912,7 +11272,7 @@ "type": "string" }, "type": { - "description": "The type of the transaction that occurred.\n\nAcceptable values are: \n- \"`order`\" \n- \"`reversal`\" \n- \"`orderRefund`\" \n- \"`reversalRefund`\" \n- \"`issueRelatedRefundAndReplacement`\" \n- \"`returnLabelShippingFeeTransaction`\" \n- \"`reversalIssueRelatedRefundAndReplacement`\" \n- \"`reversalReturnLabelShippingFeeTransaction`\"", + "description": "The type of the transaction that occurred. Acceptable values are: - \"`order`\" - \"`reversal`\" - \"`orderRefund`\" - \"`reversalRefund`\" - \"`issueRelatedRefundAndReplacement`\" - \"`returnLabelShippingFeeTransaction`\" - \"`reversalIssueRelatedRefundAndReplacement`\" - \"`reversalReturnLabelShippingFeeTransaction`\" ", "type": "string" } }, @@ -10922,7 +11282,6 @@ "id": "SettlementreportsListResponse", "properties": { "kind": { - "default": "content#settlementreportsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#settlementreportsListResponse\".", "type": "string" }, @@ -10943,7 +11302,6 @@ "id": "SettlementtransactionsListResponse", "properties": { "kind": { - "default": "content#settlementtransactionsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#settlementtransactionsListResponse\".", "type": "string" }, @@ -11010,7 +11368,7 @@ "id": "ShipmentTrackingInfo", "properties": { "carrier": { - "description": "The shipping carrier that handles the package.\n\nAcceptable values are: \n- \"`boxtal`\" \n- \"`bpost`\" \n- \"`chronopost`\" \n- \"`colisPrive`\" \n- \"`colissimo`\" \n- \"`cxt`\" \n- \"`deliv`\" \n- \"`dhl`\" \n- \"`dpd`\" \n- \"`dynamex`\" \n- \"`eCourier`\" \n- \"`easypost`\" \n- \"`efw`\" \n- \"`fedex`\" \n- \"`fedexSmartpost`\" \n- \"`geodis`\" \n- \"`gls`\" \n- \"`googleCourier`\" \n- \"`gsx`\" \n- \"`jdLogistics`\" \n- \"`laPoste`\" \n- \"`lasership`\" \n- \"`manual`\" \n- \"`mpx`\" \n- \"`onTrac`\" \n- \"`other`\" \n- \"`tnt`\" \n- \"`uds`\" \n- \"`ups`\" \n- \"`usps`\"", + "description": "The shipping carrier that handles the package. Acceptable values are: - \"`boxtal`\" - \"`bpost`\" - \"`chronopost`\" - \"`colisPrive`\" - \"`colissimo`\" - \"`cxt`\" - \"`deliv`\" - \"`dhl`\" - \"`dpd`\" - \"`dynamex`\" - \"`eCourier`\" - \"`easypost`\" - \"`efw`\" - \"`fedex`\" - \"`fedexSmartpost`\" - \"`geodis`\" - \"`gls`\" - \"`googleCourier`\" - \"`gsx`\" - \"`jdLogistics`\" - \"`laPoste`\" - \"`lasership`\" - \"`manual`\" - \"`mpx`\" - \"`onTrac`\" - \"`other`\" - \"`tnt`\" - \"`uds`\" - \"`ups`\" - \"`usps`\" ", "type": "string" }, "trackingNumber": { @@ -11079,7 +11437,7 @@ "type": "string" }, "method": { - "description": "The method of the batch entry.\n\nAcceptable values are: \n- \"`get`\" \n- \"`update`\"", + "description": "The method of the batch entry. Acceptable values are: - \"`get`\" - \"`update`\" ", "type": "string" }, "shippingSettings": { @@ -11100,7 +11458,6 @@ "type": "array" }, "kind": { - "default": "content#shippingsettingsCustomBatchResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsCustomBatchResponse\".", "type": "string" } @@ -11121,7 +11478,6 @@ "description": "A list of errors defined if, and only if, the request failed." }, "kind": { - "default": "content#shippingsettingsCustomBatchResponseEntry", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#shippingsettingsCustomBatchResponseEntry`\"", "type": "string" }, @@ -11143,7 +11499,6 @@ "type": "array" }, "kind": { - "default": "content#shippingsettingsGetSupportedCarriersResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsGetSupportedCarriersResponse\".", "type": "string" } @@ -11161,7 +11516,6 @@ "type": "array" }, "kind": { - "default": "content#shippingsettingsGetSupportedHolidaysResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsGetSupportedHolidaysResponse\".", "type": "string" } @@ -11172,7 +11526,6 @@ "id": "ShippingsettingsGetSupportedPickupServicesResponse", "properties": { "kind": { - "default": "content#shippingsettingsGetSupportedPickupServicesResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsGetSupportedPickupServicesResponse\".", "type": "string" }, @@ -11190,7 +11543,6 @@ "id": "ShippingsettingsListResponse", "properties": { "kind": { - "default": "content#shippingsettingsListResponse", "description": "Identifies what kind of resource this is. Value: the fixed string \"content#shippingsettingsListResponse\".", "type": "string" }, @@ -11244,16 +11596,10 @@ "type": "boolean" }, "kind": { - "default": "content#testOrder", "description": "Identifies what kind of resource this is. Value: the fixed string \"`content#testOrder`\"", "type": "string" }, "lineItems": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Line items that are ordered. At least one line item must be provided.", "items": { "$ref": "TestOrderLineItem" @@ -11269,34 +11615,19 @@ "description": "Overrides the predefined pickup details if provided." }, "predefinedBillingAddress": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. The billing address.\n\nAcceptable values are: \n- \"`dwight`\" \n- \"`jim`\" \n- \"`pam`\"", + "description": "Required. The billing address. Acceptable values are: - \"`dwight`\" - \"`jim`\" - \"`pam`\" ", "type": "string" }, "predefinedDeliveryAddress": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. Identifier of one of the predefined delivery addresses for the delivery.\n\nAcceptable values are: \n- \"`dwight`\" \n- \"`jim`\" \n- \"`pam`\"", + "description": "Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - \"`dwight`\" - \"`jim`\" - \"`pam`\" ", "type": "string" }, "predefinedEmail": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. Email address of the customer.\n\nAcceptable values are: \n- \"`pog.dwight.schrute@gmail.com`\" \n- \"`pog.jim.halpert@gmail.com`\" \n- \"`penpog.pam.beesly@gmail.comding`\"", + "description": "Required. Email address of the customer. Acceptable values are: - \"`pog.dwight.schrute@gmail.com`\" - \"`pog.jim.halpert@gmail.com`\" - \"`penpog.pam.beesly@gmail.comding`\" ", "type": "string" }, "predefinedPickupDetails": { - "description": "Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type `pickup`.\n\nAcceptable values are: \n- \"`dwight`\" \n- \"`jim`\" \n- \"`pam`\"", + "description": "Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type `pickup`. Acceptable values are: - \"`dwight`\" - \"`jim`\" - \"`pam`\" ", "type": "string" }, "promotions": { @@ -11308,20 +11639,10 @@ }, "shippingCost": { "$ref": "Price", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The price of shipping for all items. Shipping tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied. Note that shipping is not taxed in certain states." }, "shippingOption": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. The requested shipping option.\n\nAcceptable values are: \n- \"`economy`\" \n- \"`expedited`\" \n- \"`oneDay`\" \n- \"`sameDay`\" \n- \"`standard`\" \n- \"`twoDay`\"", + "description": "Required. The requested shipping option. Acceptable values are: - \"`economy`\" - \"`expedited`\" - \"`oneDay`\" - \"`sameDay`\" - \"`standard`\" - \"`twoDay`\" ", "type": "string" } }, @@ -11335,7 +11656,7 @@ "type": "string" }, "fullAddress": { - "description": "Strings representing the lines of the printed label for mailing the order, for example:\nJohn Smith\n1600 Amphitheatre Parkway\nMountain View, CA, 94043\nUnited States", + "description": "Strings representing the lines of the printed label for mailing the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View, CA, 94043 United States ", "items": { "type": "string" }, @@ -11393,31 +11714,16 @@ "description": "Required. Product data from the time of the order placement." }, "quantityOrdered": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Number of items ordered.", "format": "uint32", "type": "integer" }, "returnInfo": { "$ref": "OrderLineItemReturnInfo", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Details of the return policy for the line item." }, "shippingDetails": { "$ref": "OrderLineItemShippingDetails", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Details of the requested shipping for the line item." } }, @@ -11427,30 +11733,15 @@ "id": "TestOrderLineItemProduct", "properties": { "brand": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. Brand of the item.", "type": "string" }, "condition": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. Condition or state of the item.\n\nAcceptable values are: \n- \"`new`\"", + "description": "Required. Condition or state of the item. Acceptable values are: - \"`new`\" ", "type": "string" }, "contentLanguage": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. The two-letter ISO 639-1 language code for the item.\n\nAcceptable values are: \n- \"`en`\" \n- \"`fr`\"", + "description": "Required. The two-letter ISO 639-1 language code for the item. Acceptable values are: - \"`en`\" - \"`fr`\" ", "type": "string" }, "fees": { @@ -11465,11 +11756,6 @@ "type": "string" }, "imageLink": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. URL of an image of the item.", "type": "string" }, @@ -11482,38 +11768,18 @@ "type": "string" }, "offerId": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. An identifier of the item.", "type": "string" }, "price": { "$ref": "Price", - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The price for the product. Tax is automatically calculated for orders where marketplace facilitator tax laws are applicable. Otherwise, tax settings from Merchant Center are applied." }, "targetCountry": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, - "description": "Required. The CLDR territory code of the target country of the product.", + "description": "Required. The CLDR territory // code of the target country of the product.", "type": "string" }, "title": { - "annotations": { - "required": [ - "content.orders.createtestorder" - ] - }, "description": "Required. The title of the product.", "type": "string" }, @@ -11539,7 +11805,7 @@ "description": "Required. Pickup location address." }, "pickupLocationType": { - "description": "Pickup location type.\n\nAcceptable values are: \n- \"`locker`\" \n- \"`store`\" \n- \"`curbside`\"", + "description": "Pickup location type. Acceptable values are: - \"`locker`\" - \"`store`\" - \"`curbside`\" ", "type": "string" }, "pickupPersons": { @@ -11652,7 +11918,7 @@ "description": "[required] Amount of the additional charge." }, "type": { - "description": "[required] Type of the additional charge.\n\nAcceptable values are: \n- \"`shipping`\"", + "description": "[required] Type of the additional charge. Acceptable values are: - \"`shipping`\" ", "type": "string" } }, @@ -11670,7 +11936,7 @@ "type": "string" }, "taxType": { - "description": "[required] Type of the tax.\n\nAcceptable values are: \n- \"`otherFee`\" \n- \"`otherFeeTax`\" \n- \"`sales`\"", + "description": "[required] Type of the tax. Acceptable values are: - \"`otherFee`\" - \"`otherFeeTax`\" - \"`sales`\" ", "type": "string" } }, @@ -11707,7 +11973,7 @@ "id": "Weight", "properties": { "unit": { - "description": "Required. The weight unit.\n\nAcceptable values are: \n- \"`kg`\" \n- \"`lb`\"", + "description": "Required. The weight unit. Acceptable values are: - \"`kg`\" - \"`lb`\" ", "type": "string" }, "value": { @@ -11718,7 +11984,7 @@ "type": "object" } }, - "servicePath": "content/v2.1/", + "servicePath": "", "title": "Content API for Shopping", "version": "v2.1" } \ No newline at end of file diff --git a/src/apis/content/v2.1.ts b/src/apis/content/v2.1.ts index 4977043ffe0..3a36e577df2 100644 --- a/src/apis/content/v2.1.ts +++ b/src/apis/content/v2.1.ts @@ -53,9 +53,21 @@ export namespace content_v2_1 { | GoogleAuth; /** - * Data format for the response. + * V1 error format. + */ + '$.xgafv'?: string; + /** + * OAuth access token. + */ + access_token?: string; + /** + * Data format for response. */ alt?: string; + /** + * JSONP + */ + callback?: string; /** * Selector specifying which fields to include in a partial response. */ @@ -73,19 +85,23 @@ export namespace content_v2_1 { */ prettyPrint?: boolean; /** - * An opaque string that represents a user for quota purposes. Must not exceed 40 characters. + * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** - * Deprecated. Please use quotaUser instead. + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + uploadType?: string; + /** + * Upload protocol for media (e.g. "raw", "multipart"). */ - userIp?: string; + upload_protocol?: string; } /** * Content API for Shopping * - * Manages product items, inventory, and Merchant Center accounts for Google Shopping. + * Manage your product listings and accounts for Google Shopping * * @example * const {google} = require('googleapis'); @@ -102,6 +118,7 @@ export namespace content_v2_1 { accounts: Resource$Accounts; accountstatuses: Resource$Accountstatuses; accounttax: Resource$Accounttax; + csses: Resource$Csses; datafeeds: Resource$Datafeeds; datafeedstatuses: Resource$Datafeedstatuses; liasettings: Resource$Liasettings; @@ -115,6 +132,7 @@ export namespace content_v2_1 { productstatuses: Resource$Productstatuses; pubsubnotificationsettings: Resource$Pubsubnotificationsettings; regionalinventory: Resource$Regionalinventory; + repricingrules: Resource$Repricingrules; returnaddress: Resource$Returnaddress; returnpolicy: Resource$Returnpolicy; settlementreports: Resource$Settlementreports; @@ -130,6 +148,7 @@ export namespace content_v2_1 { this.accounts = new Resource$Accounts(this.context); this.accountstatuses = new Resource$Accountstatuses(this.context); this.accounttax = new Resource$Accounttax(this.context); + this.csses = new Resource$Csses(this.context); this.datafeeds = new Resource$Datafeeds(this.context); this.datafeedstatuses = new Resource$Datafeedstatuses(this.context); this.liasettings = new Resource$Liasettings(this.context); @@ -145,6 +164,7 @@ export namespace content_v2_1 { this.context ); this.regionalinventory = new Resource$Regionalinventory(this.context); + this.repricingrules = new Resource$Repricingrules(this.context); this.returnaddress = new Resource$Returnaddress(this.context); this.returnpolicy = new Resource$Returnpolicy(this.context); this.settlementreports = new Resource$Settlementreports(this.context); @@ -240,7 +260,7 @@ export namespace content_v2_1 { */ adsId?: string | null; /** - * Status of the link between this Merchant Center account and the Ads account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google Ads or `pending` if it's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - "`active`" - "`pending`" + * Status of the link between this Merchant Center account and the Ads account. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in Google Ads or `pending` if it's pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. Acceptable values are: - "`active`" - "`pending`" */ status?: string | null; } @@ -282,7 +302,7 @@ export namespace content_v2_1 { */ gmbEmail?: string | null; /** - * Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - "`active`" - "`pending`" + * Status of the link between this Merchant Center account and the GMB account. Acceptable values are: - "`active`" - "`pending`" */ status?: string | null; } @@ -296,6 +316,27 @@ export namespace content_v2_1 { */ merchantId?: string | null; } + /** + * Label assigned by CSS domain or CSS group to one of its sub-accounts. + */ + export interface Schema$AccountLabel { + /** + * Output only. Immutable. The ID of account this label belongs to. + */ + accountId?: string | null; + /** + * Description for this label. + */ + description?: string | null; + /** + * Output only. Immutable. The ID of the label. + */ + labelId?: string | null; + /** + * The display name of this label. + */ + name?: string | null; + } export interface Schema$AccountsAuthInfoResponse { /** * The account identifiers corresponding to the authenticated user. - For an individual account: only the merchant ID is defined - For an aggregator: only the aggregator ID is defined - For a subaccount of an MCA: both the merchant ID and the aggregator ID are defined. @@ -351,7 +392,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * The method of the batch entry. Acceptable values are: - "`claimWebsite`" - "`delete`" - "`get`" - "`insert`" - "`link`" - "`update`" + * The method of the batch entry. Acceptable values are: - "`claimWebsite`" - "`delete`" - "`get`" - "`insert`" - "`link`" - "`update`" */ method?: string | null; /** @@ -365,7 +406,7 @@ export namespace content_v2_1 { } export interface Schema$AccountsCustomBatchRequestEntryLinkRequest { /** - * Action to perform for this link. The `"request"` action is only available to select merchants. Acceptable values are: - "`approve`" - "`remove`" - "`request`" + * Action to perform for this link. The `"request"` action is only available to select merchants. Acceptable values are: - "`approve`" - "`remove`" - "`request`" */ action?: string | null; /** @@ -373,7 +414,7 @@ export namespace content_v2_1 { */ linkedAccountId?: string | null; /** - * Type of the link between the two accounts. Acceptable values are: - "`channelPartner`" - "`eCommercePlatform`" + * Type of the link between the two accounts. Acceptable values are: - "`channelPartner`" - "`eCommercePlatform`" */ linkType?: string | null; /** @@ -414,7 +455,7 @@ export namespace content_v2_1 { } export interface Schema$AccountsLinkRequest { /** - * Action to perform for this link. The `"request"` action is only available to select merchants. Acceptable values are: - "`approve`" - "`remove`" - "`request`" + * Action to perform for this link. The `"request"` action is only available to select merchants. Acceptable values are: - "`approve`" - "`remove`" - "`request`" */ action?: string | null; /** @@ -422,7 +463,7 @@ export namespace content_v2_1 { */ linkedAccountId?: string | null; /** - * Type of the link between the two accounts. Acceptable values are: - "`channelPartner`" - "`eCommercePlatform`" + * Type of the link between the two accounts. Acceptable values are: - "`channelPartner`" - "`eCommercePlatform`" */ linkType?: string | null; /** @@ -508,7 +549,7 @@ export namespace content_v2_1 { */ id?: string | null; /** - * Severity of the issue. Acceptable values are: - "`critical`" - "`error`" - "`suggestion`" + * Severity of the issue. Acceptable values are: - "`critical`" - "`error`" - "`suggestion`" */ severity?: string | null; /** @@ -543,7 +584,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * The method of the batch entry. Acceptable values are: - "`get`" + * The method of the batch entry. Acceptable values are: - "`get`" */ method?: string | null; } @@ -621,7 +662,7 @@ export namespace content_v2_1 { } export interface Schema$AccountStatusProducts { /** - * The channel the data applies to. Acceptable values are: - "`local`" - "`online`" + * The channel the data applies to. Acceptable values are: - "`local`" - "`online`" */ channel?: string | null; /** @@ -715,7 +756,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * The method of the batch entry. Acceptable values are: - "`get`" - "`update`" + * The method of the batch entry. Acceptable values are: - "`get`" - "`update`" */ method?: string | null; } @@ -814,7 +855,7 @@ export namespace content_v2_1 { */ channelId?: string | null; /** - * Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it's pending approval. Upon insertion, it represents the intended status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. + * Status of the link between this Merchant Center account and the YouTube channel. Upon retrieval, it represents the actual status of the link and can be either `active` if it was approved in YT Creator Studio or `pending` if it's pending approval. Upon insertion, it represents the *intended* status of the link. Re-uploading a link with status `active` when it's still pending or with status `pending` when it's already active will have no effect: the status will remain unchanged. Re-uploading a link with deprecated status `inactive` is equivalent to not submitting the link at all and will delete the link if it was active or cancel the link request if it was pending. */ status?: string | null; } @@ -874,6 +915,35 @@ export namespace content_v2_1 { */ services?: string[] | null; } + /** + * Information about CSS domain. + */ + export interface Schema$Css { + /** + * Output only. Immutable. The CSS domain ID. + */ + cssDomainId?: string | null; + /** + * Output only. Immutable. The ID of the CSS group this CSS domain is affiliated with. Only populated for CSS group users. + */ + cssGroupId?: string | null; + /** + * Output only. Immutable. The CSS domain's display name, used when space is constrained. + */ + displayName?: string | null; + /** + * Output only. Immutable. The CSS domain's full name. + */ + fullName?: string | null; + /** + * Output only. Immutable. The CSS domain's homepage. + */ + homepageUri?: string | null; + /** + * A list of label IDs that are assigned to this CSS domain by its CSS group. Only populated for CSS group users. + */ + labelIds?: string[] | null; + } export interface Schema$CustomAttribute { /** * Subattributes within this attribute group. Exactly one of value or groupValues must be provided. @@ -894,7 +964,7 @@ export namespace content_v2_1 { */ description?: string | null; /** - * Code of the return reason. Acceptable values are: - "`betterPriceFound`" - "`changedMind`" - "`damagedOrDefectiveItem`" - "`didNotMatchDescription`" - "`doesNotFit`" - "`expiredItem`" - "`incorrectItemReceived`" - "`noLongerNeeded`" - "`notSpecified`" - "`orderedWrongItem`" - "`other`" - "`qualityNotExpected`" - "`receivedTooLate`" - "`undeliverable`" + * Code of the return reason. Acceptable values are: - "`betterPriceFound`" - "`changedMind`" - "`damagedOrDefectiveItem`" - "`didNotMatchDescription`" - "`doesNotFit`" - "`expiredItem`" - "`incorrectItemReceived`" - "`noLongerNeeded`" - "`notSpecified`" - "`orderedWrongItem`" - "`other`" - "`qualityNotExpected`" - "`receivedTooLate`" - "`undeliverable`" */ reasonCode?: string | null; } @@ -908,7 +978,7 @@ export namespace content_v2_1 { */ minute?: number | null; /** - * Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required. + * Timezone identifier for the cutoff time. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required. */ timezone?: string | null; } @@ -921,7 +991,7 @@ export namespace content_v2_1 { */ attributeLanguage?: string | null; /** - * Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`" + * Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are: - "`local products`" - "`product inventory`" - "`products`" */ contentType?: string | null; /** @@ -990,21 +1060,21 @@ export namespace content_v2_1 { */ username?: string | null; /** - * The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" + * The day of the week the feed file should be fetched. Acceptable values are: - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" - "`saturday`" - "`sunday`" */ weekday?: string | null; } export interface Schema$DatafeedFormat { /** - * Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" + * Delimiter for the separation of values in a delimiter-separated values feed. If not specified, the delimiter will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`" */ columnDelimiter?: string | null; /** - * Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`" + * Character encoding scheme of the data feed. If not specified, the encoding will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`" - "`utf-16le`" - "`utf-8`" - "`windows-1252`" */ fileEncoding?: string | null; /** - * Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`" + * Specifies how double quotes are interpreted. If not specified, the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable values are: - "`normal character`" - "`value quoting`" */ quotingMode?: string | null; } @@ -1035,7 +1105,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * The method of the batch entry. Acceptable values are: - "`delete`" - "`fetchNow`" - "`get`" - "`insert`" - "`update`" + * The method of the batch entry. Acceptable values are: - "`delete`" - "`fetchNow`" - "`get`" - "`insert`" - "`update`" */ method?: string | null; } @@ -1088,7 +1158,7 @@ export namespace content_v2_1 { */ export interface Schema$DatafeedStatus { /** - * The country for which the status is reported, represented as a CLDR territory code. + * The country for which the status is reported, represented as a CLDR territory code. */ country?: string | null; /** @@ -1120,7 +1190,7 @@ export namespace content_v2_1 { */ lastUploadDate?: string | null; /** - * The processing status of the feed. Acceptable values are: - "`"`failure`": The feed could not be processed or all items had errors.`" - "`in progress`": The feed is being processed. - "`none`": The feed has not yet been processed. For example, a feed that has never been uploaded will have this processing status. - "`success`": The feed was processed successfully, though some items might have had errors. + * The processing status of the feed. Acceptable values are: - "`"`failure`": The feed could not be processed or all items had errors.`" - "`in progress`": The feed is being processed. - "`none`": The feed has not yet been processed. For example, a feed that has never been uploaded will have this processing status. - "`success`": The feed was processed successfully, though some items might have had errors. */ processingStatus?: string | null; /** @@ -1180,7 +1250,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * The method of the batch entry. Acceptable values are: - "`get`" + * The method of the batch entry. Acceptable values are: - "`get`" */ method?: string | null; } @@ -1241,7 +1311,7 @@ export namespace content_v2_1 { } export interface Schema$DatafeedTarget { /** - * The country where the items in the feed will be included in the search index, represented as a CLDR territory code. + * The country where the items in the feed will be included in the search index, represented as a CLDR territory code. */ country?: string | null; /** @@ -1249,7 +1319,7 @@ export namespace content_v2_1 { */ excludedDestinations?: string[] | null; /** - * The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle + * The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. List of supported destinations (if available to the account): - DisplayAds - Shopping - ShoppingActions - SurfacesAcrossGoogle */ includedDestinations?: string[] | null; /** @@ -1366,7 +1436,7 @@ export namespace content_v2_1 { */ locations?: Schema$LocationIdSet[]; /** - * A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", " 50 items". Must be non-empty. Can only be set if all other fields are not set. + * A list of inclusive number of items upper bounds. The last value can be `"infinity"`. For example `["10", "50", "infinity"]` represents the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be non-empty. Can only be set if all other fields are not set. */ numberOfItems?: string[] | null; /** @@ -1374,11 +1444,11 @@ export namespace content_v2_1 { */ postalCodeGroupNames?: string[] | null; /** - * A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", " $500". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set. + * A list of inclusive order price upper bounds. The last price's value can be `"infinity"`. For example `[{"value": "10", "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= $500", and "> $500". All prices within a service must have the same currency. Must be non-empty. Can only be set if all other fields are not set. */ prices?: Schema$Price[]; /** - * A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", " 50kg". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set. + * A list of inclusive order weight upper bounds. The last weight's value can be `"infinity"`. For example `[{"value": "10", "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> 50kg". All weights within a service must have the same unit. Must be non-empty. Can only be set if all other fields are not set. */ weights?: Schema$Weight[]; } @@ -1392,7 +1462,7 @@ export namespace content_v2_1 { */ deadlineHour?: number | null; /** - * Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required. + * Timezone identifier for the deadline hour. A list of identifiers can be found in the AdWords API documentation. E.g. "Europe/Zurich". Required. */ deadlineTimezone?: string | null; /** @@ -1426,7 +1496,7 @@ export namespace content_v2_1 { */ id?: string | null; /** - * The holiday type. Always present. Acceptable values are: - "`Christmas`" - "`Easter`" - "`Father's Day`" - "`Halloween`" - "`Independence Day (USA)`" - "`Mother's Day`" - "`Thanksgiving`" - "`Valentine's Day`" + * The holiday type. Always present. Acceptable values are: - "`Christmas`" - "`Easter`" - "`Father's Day`" - "`Halloween`" - "`Independence Day (USA)`" - "`Mother's Day`" - "`Thanksgiving`" - "`Valentine's Day`" */ type?: string | null; } @@ -1456,13 +1526,22 @@ export namespace content_v2_1 { */ totalAmount?: Schema$Amount; /** - * [required] Type of the additional charge. Acceptable values are: - "`shipping`" + * [required] Type of the additional charge. Acceptable values are: - "`shipping`" */ type?: string | null; } + /** + * The IDs of labels that should be assigned to the CSS domain. + */ + export interface Schema$LabelIds { + /** + * The list of label IDs. + */ + labelIds?: string[] | null; + } export interface Schema$LiaAboutPageSettings { /** - * The status of the verification process for the About page. Acceptable values are: - "`active`" - "`inactive`" - "`pending`" + * The status of the verification process for the About page. Acceptable values are: - "`active`" - "`inactive`" - "`pending`" */ status?: string | null; /** @@ -1510,11 +1589,11 @@ export namespace content_v2_1 { */ inventoryVerificationContactName?: string | null; /** - * The status of the verification contact. Acceptable values are: - "`active`" - "`inactive`" - "`pending`" + * The status of the verification contact. Acceptable values are: - "`active`" - "`inactive`" - "`pending`" */ inventoryVerificationContactStatus?: string | null; /** - * The status of the inventory verification process. Acceptable values are: - "`active`" - "`inactive`" - "`pending`" + * The status of the inventory verification process. Acceptable values are: - "`active`" - "`inactive`" - "`pending`" */ status?: string | null; } @@ -1524,7 +1603,7 @@ export namespace content_v2_1 { */ shippingCostPolicyUrl?: string | null; /** - * The status of the ?On display to order? feature. Acceptable values are: - "`active`" - "`inactive`" - "`pending`" + * The status of the ?On display to order? feature. Acceptable values are: - "`active`" - "`inactive`" - "`pending`" */ status?: string | null; } @@ -1595,7 +1674,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * The method of the batch entry. Acceptable values are: - "`get`" - "`getAccessibleGmbAccounts`" - "`requestGmbAccess`" - "`requestInventoryVerification`" - "`setInventoryVerificationContact`" - "`update`" + * The method of the batch entry. Acceptable values are: - "`get`" - "`getAccessibleGmbAccounts`" - "`requestGmbAccess`" - "`requestInventoryVerification`" - "`setInventoryVerificationContact`" - "`update`" */ method?: string | null; /** @@ -1714,14 +1793,53 @@ export namespace content_v2_1 { } export interface Schema$LinkService { /** - * Service provided to or by the linked account. Acceptable values are: - "`shoppingActionsOrderManagement`" - "`shoppingActionsProductManagement`" - "`shoppingAdsProductManagement`" + * Service provided to or by the linked account. Acceptable values are: - "`shoppingActionsOrderManagement`" - "`shoppingActionsProductManagement`" - "`shoppingAdsProductManagement`" */ service?: string | null; /** - * Status of the link Acceptable values are: - "`active`" - "`inactive`" - "`pending`" + * Status of the link Acceptable values are: - "`active`" - "`inactive`" - "`pending`" */ status?: string | null; } + /** + * Response message for the `ListAccountLabels` method. + */ + export interface Schema$ListAccountLabelsResponse { + /** + * The labels from the specified account. + */ + accountLabels?: Schema$AccountLabel[]; + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + */ + nextPageToken?: string | null; + } + /** + * The response message for the `ListCsses` method + */ + export interface Schema$ListCssesResponse { + /** + * The CSS domains affiliated with the specified CSS group. + */ + csses?: Schema$Css[]; + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + */ + nextPageToken?: string | null; + } + /** + * Response message for the `ListRepricingRules` method. + */ + export interface Schema$ListRepricingRulesResponse { + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + */ + nextPageToken?: string | null; + /** + * The rules from the specified merchant. + */ + repricingRules?: Schema$RepricingRule[]; + } /** * Local inventory resource. For accepted attribute values, see the local product inventory feed specification. */ @@ -1790,7 +1908,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * Method of the batch request entry. Acceptable values are: - "`insert`" + * Method of the batch request entry. Acceptable values are: - "`insert`" */ method?: string | null; /** @@ -1920,7 +2038,7 @@ export namespace content_v2_1 { */ shipmentUnitId?: string | null; /** - * State of the item. Acceptable values are: - "`canceled`" - "`new`" - "`received`" - "`refunded`" - "`rejected`" + * State of the item. Acceptable values are: - "`canceled`" - "`new`" - "`received`" - "`refunded`" - "`rejected`" */ state?: string | null; } @@ -1961,7 +2079,7 @@ export namespace content_v2_1 { taxAmount?: Schema$Price; } /** - * Order. Production access (all methods) requires the order manager role. Sandbox access does not. (== resource_for v2.orders ==) (== resource_for v2.1.orders ==) + * Order. Production access (all methods) requires the order manager role. Sandbox access does not. */ export interface Schema$Order { /** @@ -2010,7 +2128,7 @@ export namespace content_v2_1 { */ netTaxAmount?: Schema$Price; /** - * The status of the payment. Acceptable values are: - "`paymentCaptured`" - "`paymentRejected`" - "`paymentSecured`" - "`pendingAuthorization`" + * The status of the payment. Acceptable values are: - "`paymentCaptured`" - "`paymentRejected`" - "`paymentSecured`" - "`pendingAuthorization`" */ paymentStatus?: string | null; /** @@ -2022,7 +2140,7 @@ export namespace content_v2_1 { */ placedDate?: string | null; /** - * Promotions associated with the order. To determine which promotions apply to which products, check the `Promotions[].appliedItems[].lineItemId` field against the `LineItems[].id` field for each promotion. If a promotion is applied to more than 1 offerId, divide the discount value by the number of affected offers to determine how much discount to apply to each offerId. Examples: - To calculate price paid by the customer for a single line item including the discount: For each promotion, subtract the `LineItems[].adjustments[].priceAdjustment.value` amount from the `LineItems[].Price.value`. - To calculate price paid by the customer for a single line item including the discount in case of multiple quantity: For each promotion, divide the `LineItems[].adjustments[].priceAdjustment.value` by the quantity of products then subtract the resulting value from the `LineItems[].Product.Price.value` for each quantity item. Only 1 promotion can be applied to an offerId in a given order. To refund an item which had a promotion applied to it, make sure to refund the amount after first subtracting the promotion discount from the item price. More details about the program are here. + * Promotions associated with the order. To determine which promotions apply to which products, check the `Promotions[].appliedItems[].lineItemId` field against the `LineItems[].id` field for each promotion. If a promotion is applied to more than 1 offerId, divide the discount value by the number of affected offers to determine how much discount to apply to each offerId. Examples: 1. To calculate price paid by the customer for a single line item including the discount: For each promotion, subtract the `LineItems[].adjustments[].priceAdjustment.value` amount from the `LineItems[].Price.value`. 2. To calculate price paid by the customer for a single line item including the discount in case of multiple quantity: For each promotion, divide the `LineItems[].adjustments[].priceAdjustment.value` by the quantity of products then subtract the resulting value from the `LineItems[].Product.Price.value` for each quantity item. Only 1 promotion can be applied to an offerId in a given order. To refund an item which had a promotion applied to it, make sure to refund the amount after first subtracting the promotion discount from the item price. More details about the program are here. */ promotions?: Schema$OrderPromotion[]; /** @@ -2042,11 +2160,11 @@ export namespace content_v2_1 { */ shippingCostTax?: Schema$Price; /** - * The status of the order. Acceptable values are: - "`canceled`" - "`delivered`" - "`inProgress`" - "`partiallyDelivered`" - "`partiallyReturned`" - "`partiallyShipped`" - "`pendingShipment`" - "`returned`" - "`shipped`" + * The status of the order. Acceptable values are: - "`canceled`" - "`delivered`" - "`inProgress`" - "`partiallyDelivered`" - "`partiallyReturned`" - "`partiallyShipped`" - "`pendingShipment`" - "`returned`" - "`shipped`" */ status?: string | null; /** - * The party responsible for collecting and remitting taxes. Acceptable values are: - "`marketplaceFacilitator`" - "`merchant`" + * The party responsible for collecting and remitting taxes. Acceptable values are: - "`marketplaceFacilitator`" - "`merchant`" */ taxCollector?: string | null; } @@ -2086,7 +2204,7 @@ export namespace content_v2_1 { } export interface Schema$OrderCancellation { /** - * The actor that created the cancellation. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" + * The actor that created the cancellation. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" */ actor?: string | null; /** @@ -2098,7 +2216,7 @@ export namespace content_v2_1 { */ quantity?: number | null; /** - * The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads. Acceptable values are: - "`autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`customerCanceled`" - "`customerInitiatedCancel`" - "`customerSupportRequested`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "`priceError`" - "`returnRefundAbuse`" - "`shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" + * The reason for the cancellation. Orders that are canceled with a noInventory reason will lead to the removal of the product from Shopping Actions until you make an update to that product. This will not affect your Shopping ads. Acceptable values are: - "`autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`customerCanceled`" - "`customerInitiatedCancel`" - "`customerSupportRequested`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "`priceError`" - "`returnRefundAbuse`" - "`shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" */ reason?: string | null; /** @@ -2112,7 +2230,7 @@ export namespace content_v2_1 { */ fullName?: string | null; /** - * Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Shopping Actions. + * Email address for the merchant to send value-added tax or invoice documentation of the order. Only the last document sent is made available to the customer. For more information, see About automated VAT invoicing for Shopping Actions. */ invoiceReceivingEmail?: string | null; /** @@ -2136,7 +2254,7 @@ export namespace content_v2_1 { } export interface Schema$OrderCustomerMarketingRightsInfo { /** - * Last known customer selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty. If a customer selected `granted` in their most recent order, they can be subscribed to marketing emails. Customers who have chosen `denied` must not be subscribed, or must be unsubscribed if already opted-in. Acceptable values are: - "`denied`" - "`granted`" + * Last known customer selection regarding marketing preferences. In certain cases this selection might not be known, so this field would be empty. If a customer selected `granted` in their most recent order, they can be subscribed to marketing emails. Customers who have chosen `denied` must not be subscribed, or must be unsubscribed if already opted-in. Acceptable values are: - "`denied`" - "`granted`" */ explicitMarketingPreference?: string | null; /** @@ -2182,7 +2300,7 @@ export namespace content_v2_1 { } export interface Schema$OrderinvoicesCreateChargeInvoiceResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -2214,7 +2332,7 @@ export namespace content_v2_1 { } export interface Schema$OrderinvoicesCreateRefundInvoiceResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -2228,7 +2346,7 @@ export namespace content_v2_1 { */ description?: string | null; /** - * [required] Reason for the refund. Acceptable values are: - "`adjustment`" - "`autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" - "`expiredItem`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "`feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "`priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "`returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "`taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" + * [required] Reason for the refund. Acceptable values are: - "`adjustment`" - "`autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" - "`expiredItem`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "`feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "`priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "`returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "`taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" */ reason?: string | null; } @@ -2238,7 +2356,7 @@ export namespace content_v2_1 { */ description?: string | null; /** - * [required] Reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" + * [required] Reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" */ reason?: string | null; } @@ -2326,7 +2444,7 @@ export namespace content_v2_1 { */ taxAdjustment?: Schema$Price; /** - * Type of this adjustment. Acceptable values are: - "`promotion`" + * Type of this adjustment. Acceptable values are: - "`promotion`" */ type?: string | null; } @@ -2336,7 +2454,7 @@ export namespace content_v2_1 { */ brand?: string | null; /** - * Condition or state of the item. Acceptable values are: - "`new`" - "`refurbished`" - "`used`" + * Condition or state of the item. Acceptable values are: - "`new`" - "`refurbished`" - "`used`" */ condition?: string | null; /** @@ -2380,7 +2498,7 @@ export namespace content_v2_1 { */ shownImage?: string | null; /** - * The CLDR territory code of the target country of the product. + * The CLDR territory // code of the target country of the product. */ targetCountry?: string | null; /** @@ -2444,7 +2562,7 @@ export namespace content_v2_1 { */ shipByDate?: string | null; /** - * Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - "`delivery`" - "`pickup`" + * Type of shipment. Indicates whether `deliveryDetails` or `pickupDetails` is applicable for this shipment. Acceptable values are: - "`delivery`" - "`pickup`" */ type?: string | null; } @@ -2500,7 +2618,7 @@ export namespace content_v2_1 { */ locationId?: string | null; /** - * The pickup type of this order. Acceptable values are: - "`merchantStore`" - "`merchantStoreCurbside`" - "`merchantStoreLocker`" - "`thirdPartyPickupPoint`" - "`thirdPartyLocker`" + * The pickup type of this order. Acceptable values are: - "`merchantStore`" - "`merchantStoreCurbside`" - "`merchantStoreLocker`" - "`thirdPartyPickupPoint`" - "`thirdPartyLocker`" */ pickupType?: string | null; } @@ -2528,7 +2646,7 @@ export namespace content_v2_1 { */ endTime?: string | null; /** - * Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - "`google`" - "`merchant`" + * Required. The party funding the promotion. Only `merchant` is supported for `orders.createtestorder`. Acceptable values are: - "`google`" - "`merchant`" */ funder?: string | null; /** @@ -2548,7 +2666,7 @@ export namespace content_v2_1 { */ startTime?: string | null; /** - * Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`. Acceptable values are: - "`buyMGetMoneyOff`" - "`buyMGetNMoneyOff`" - "`buyMGetNPercentOff`" - "`buyMGetPercentOff`" - "`freeGift`" - "`freeGiftWithItemId`" - "`freeGiftWithValue`" - "`freeShippingOvernight`" - "`freeShippingStandard`" - "`freeShippingTwoDay`" - "`moneyOff`" - "`percentOff`" - "`rewardPoints`" - "`salePrice`" + * Required. The category of the promotion. Only `moneyOff` is supported for `orders.createtestorder`. Acceptable values are: - "`buyMGetMoneyOff`" - "`buyMGetNMoneyOff`" - "`buyMGetNPercentOff`" - "`buyMGetPercentOff`" - "`freeGift`" - "`freeGiftWithItemId`" - "`freeGiftWithValue`" - "`freeShippingOvernight`" - "`freeShippingStandard`" - "`freeShippingTwoDay`" - "`moneyOff`" - "`percentOff`" - "`rewardPoints`" - "`salePrice`" */ subtype?: string | null; /** @@ -2560,7 +2678,7 @@ export namespace content_v2_1 { */ title?: string | null; /** - * Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - "`product`" - "`shipping`" + * Required. The scope of the promotion. Only `product` is supported for `orders.createtestorder`. Acceptable values are: - "`product`" - "`shipping`" */ type?: string | null; } @@ -2584,7 +2702,7 @@ export namespace content_v2_1 { } export interface Schema$OrderRefund { /** - * The actor that created the refund. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" + * The actor that created the refund. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" */ actor?: string | null; /** @@ -2596,7 +2714,7 @@ export namespace content_v2_1 { */ creationDate?: string | null; /** - * The reason for the refund. Acceptable values are: - "`adjustment`" - "`autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" - "`expiredItem`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "`feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "`priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "`returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "`taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" + * The reason for the refund. Acceptable values are: - "`adjustment`" - "`autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" - "`expiredItem`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "`feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "`priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "`returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "`taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" */ reason?: string | null; /** @@ -2605,7 +2723,7 @@ export namespace content_v2_1 { reasonText?: string | null; } /** - * Order disbursement. All methods require the payment analyst role. (== resource_for v2.orderreports ==) (== resource_for v2.1.orderreports ==) + * Order disbursement. All methods require the payment analyst role. */ export interface Schema$OrderReportDisbursement { /** @@ -2697,7 +2815,7 @@ export namespace content_v2_1 { } export interface Schema$OrderReturn { /** - * The actor that created the refund. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" + * The actor that created the refund. Acceptable values are: - "`customer`" - "`googleBot`" - "`googleCustomerService`" - "`googlePayments`" - "`googleSabre`" - "`merchant`" */ actor?: string | null; /** @@ -2709,7 +2827,7 @@ export namespace content_v2_1 { */ quantity?: number | null; /** - * The reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" + * The reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" */ reason?: string | null; /** @@ -2725,7 +2843,7 @@ export namespace content_v2_1 { } export interface Schema$OrderreturnsAcknowledgeResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -2774,7 +2892,7 @@ export namespace content_v2_1 { } export interface Schema$OrderreturnsProcessResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -2836,7 +2954,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersAcknowledgeResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -2868,7 +2986,7 @@ export namespace content_v2_1 { */ quantity?: number | null; /** - * The reason for the cancellation. Acceptable values are: - "`customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" + * The reason for the cancellation. Acceptable values are: - "`customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" */ reason?: string | null; /** @@ -2878,7 +2996,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersCancelLineItemResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -2892,7 +3010,7 @@ export namespace content_v2_1 { */ operationId?: string | null; /** - * The reason for the cancellation. Acceptable values are: - "`customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" + * The reason for the cancellation. Acceptable values are: - "`customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" */ reason?: string | null; /** @@ -2902,7 +3020,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersCancelResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -2912,7 +3030,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersCancelTestOrderByCustomerRequest { /** - * The reason for the cancellation. Acceptable values are: - "`changedMind`" - "`orderedWrongItem`" - "`other`" + * The reason for the cancellation. Acceptable values are: - "`changedMind`" - "`orderedWrongItem`" - "`other`" */ reason?: string | null; } @@ -2924,11 +3042,11 @@ export namespace content_v2_1 { } export interface Schema$OrdersCreateTestOrderRequest { /** - * The CLDR territory code of the country of the test order to create. Affects the currency and addresses of orders created via `template_name`, or the addresses of orders created via `test_order`. Acceptable values are: - "`US`" - "`FR`" Defaults to `US`. + * The CLDR territory code of the country of the test order to create. Affects the currency and addresses of orders created via `template_name`, or the addresses of orders created via `test_order`. Acceptable values are: - "`US`" - "`FR`" Defaults to `US`. */ country?: string | null; /** - * The test order template to use. Specify as an alternative to `testOrder` as a shortcut for retrieving a template and then creating an order using that template. Acceptable values are: - "`template1`" - "`template1a`" - "`template1b`" - "`template2`" - "`template3`" + * The test order template to use. Specify as an alternative to `testOrder` as a shortcut for retrieving a template and then creating an order using that template. Acceptable values are: - "`template1`" - "`template1a`" - "`template1b`" - "`template2`" - "`template3`" */ templateName?: string | null; /** @@ -3006,7 +3124,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo { /** - * The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values. + * The carrier handling the shipment. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values. */ carrier?: string | null; /** @@ -3040,7 +3158,7 @@ export namespace content_v2_1 { } export interface Schema$OrderShipment { /** - * The carrier handling the shipment. For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. Note: You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates. Supported carriers for US are: - "`ups`" (United Parcel Service) automatic status updates - "`usps`" (United States Postal Service) automatic status updates - "`fedex`" (FedEx) automatic status updates - "`dhl`" (DHL eCommerce) automatic status updates (US only) - "`ontrac`" (OnTrac) automatic status updates - "`dhl express`" (DHL Express) - "`deliv`" (Deliv) - "`dynamex`" (TForce) - "`lasership`" (LaserShip) - "`mpx`" (Military Parcel Xpress) - "`uds`" (United Delivery Service) - "`efw`" (Estes Forwarding Worldwide) - "`jd logistics`" (JD Logistics) - "`yunexpress`" (YunExpress) - "`china post`" (China Post) - "`china ems`" (China Post Express Mail Service) - "`singapore post`" (Singapore Post) - "`pos malaysia`" (Pos Malaysia) - "`postnl`" (PostNL) - "`ptt`" (PTT Turkish Post) - "`eub`" (ePacket) - "`chukou1`" (Chukou1 Logistics) - "`bestex`" (Best Express) - "`canada post`" (Canada Post) - "`purolator`" (Purolator) - "`canpar`" (Canpar) - "`india post`" (India Post) - "`blue dart`" (Blue Dart) - "`delhivery`" (Delhivery) - "`dtdc`" (DTDC) - "`tpc india`" (TPC India) Supported carriers for FR are: - "`la poste`" (La Poste) automatic status updates - "`colissimo`" (Colissimo by La Poste) automatic status updates - "`ups`" (United Parcel Service) automatic status updates - "`chronopost`" (Chronopost by La Poste) - "`gls`" (General Logistics Systems France) - "`dpd`" (DPD Group by GeoPost) - "`bpost`" (Belgian Post Group) - "`colis prive`" (Colis Privé) - "`boxtal`" (Boxtal) - "`geodis`" (GEODIS) - "`tnt`" (TNT) - "`db schenker`" (DB Schenker) - "`aramex`" (Aramex) + * The carrier handling the shipment. For supported carriers, Google includes the carrier name and tracking URL in emails to customers. For select supported carriers, Google also automatically updates the shipment status based on the provided shipment ID. *Note:* You can also use unsupported carriers, but emails to customers will not include the carrier name or tracking URL, and there will be no automatic order status updates. Supported carriers for US are: - "`ups`" (United Parcel Service) *automatic status updates* - "`usps`" (United States Postal Service) *automatic status updates* - "`fedex`" (FedEx) *automatic status updates * - "`dhl`" (DHL eCommerce) *automatic status updates* (US only) - "`ontrac`" (OnTrac) *automatic status updates * - "`dhl express`" (DHL Express) - "`deliv`" (Deliv) - "`dynamex`" (TForce) - "`lasership`" (LaserShip) - "`mpx`" (Military Parcel Xpress) - "`uds`" (United Delivery Service) - "`efw`" (Estes Forwarding Worldwide) - "`jd logistics`" (JD Logistics) - "`yunexpress`" (YunExpress) - "`china post`" (China Post) - "`china ems`" (China Post Express Mail Service) - "`singapore post`" (Singapore Post) - "`pos malaysia`" (Pos Malaysia) - "`postnl`" (PostNL) - "`ptt`" (PTT Turkish Post) - "`eub`" (ePacket) - "`chukou1`" (Chukou1 Logistics) - "`bestex`" (Best Express) - "`canada post`" (Canada Post) - "`purolator`" (Purolator) - "`canpar`" (Canpar) - "`india post`" (India Post) - "`blue dart`" (Blue Dart) - "`delhivery`" (Delhivery) - "`dtdc`" (DTDC) - "`tpc india`" (TPC India) Supported carriers for FR are: - "`la poste`" (La Poste) *automatic status updates * - "`colissimo`" (Colissimo by La Poste) *automatic status updates* - "`ups`" (United Parcel Service) *automatic status updates * - "`chronopost`" (Chronopost by La Poste) - "`gls`" (General Logistics Systems France) - "`dpd`" (DPD Group by GeoPost) - "`bpost`" (Belgian Post Group) - "`colis prive`" (Colis Privé) - "`boxtal`" (Boxtal) - "`geodis`" (GEODIS) - "`tnt`" (TNT) - "`db schenker`" (DB Schenker) - "`aramex`" (Aramex) */ carrier?: string | null; /** @@ -3068,7 +3186,7 @@ export namespace content_v2_1 { */ shipmentGroupId?: string | null; /** - * The status of the shipment. Acceptable values are: - "`delivered`" - "`readyForPickup`" - "`shipped`" - "`undeliverable`" + * The status of the shipment. Acceptable values are: - "`delivered`" - "`readyForPickup`" - "`shipped`" - "`undeliverable`" */ status?: string | null; /** @@ -3122,7 +3240,7 @@ export namespace content_v2_1 { */ quantity?: number | null; /** - * The reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" + * The reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" */ reason?: string | null; /** @@ -3136,7 +3254,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersInStoreRefundLineItemResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -3165,7 +3283,7 @@ export namespace content_v2_1 { */ operationId?: string | null; /** - * The reason for the refund. Acceptable values are: - "`shippingCostAdjustment`" - "`priceAdjustment`" - "`taxAdjustment`" - "`feeAdjustment`" - "`courtesyAdjustment`" - "`adjustment`" - "`customerCancelled`" - "`noInventory`" - "`productNotAsDescribed`" - "`undeliverableShippingAddress`" - "`wrongProductShipped`" - "`lateShipmentCredit`" - "`deliveredLateByCarrier`" - "`productArrivedDamaged`" + * The reason for the refund. Acceptable values are: - "`shippingCostAdjustment`" - "`priceAdjustment`" - "`taxAdjustment`" - "`feeAdjustment`" - "`courtesyAdjustment`" - "`adjustment`" - "`customerCancelled`" - "`noInventory`" - "`productNotAsDescribed`" - "`undeliverableShippingAddress`" - "`wrongProductShipped`" - "`lateShipmentCredit`" - "`deliveredLateByCarrier`" - "`productArrivedDamaged`" */ reason?: string | null; /** @@ -3179,7 +3297,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersRefundItemResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -3201,7 +3319,7 @@ export namespace content_v2_1 { */ operationId?: string | null; /** - * The reason for the refund. Acceptable values are: - "`courtesyAdjustment`" - "`other`" + * The reason for the refund. Acceptable values are: - "`courtesyAdjustment`" - "`other`" */ reason?: string | null; /** @@ -3211,7 +3329,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersRefundOrderResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -3237,7 +3355,7 @@ export namespace content_v2_1 { */ quantity?: number | null; /** - * The reason for the return. Acceptable values are: - "`damagedOrUsed`" - "`missingComponent`" - "`notEligible`" - "`other`" - "`outOfReturnWindow`" + * The reason for the return. Acceptable values are: - "`damagedOrUsed`" - "`missingComponent`" - "`notEligible`" - "`other`" - "`outOfReturnWindow`" */ reason?: string | null; /** @@ -3247,7 +3365,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersRejectReturnLineItemResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -3277,7 +3395,7 @@ export namespace content_v2_1 { */ quantity?: number | null; /** - * The reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" + * The reason for the return. Acceptable values are: - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`deliveredTooLate`" - "`expiredItem`" - "`invalidCoupon`" - "`malformedShippingAddress`" - "`other`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`qualityNotAsExpected`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" */ reason?: string | null; /** @@ -3291,7 +3409,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersReturnRefundLineItemResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -3316,7 +3434,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersSetLineItemMetadataResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -3344,7 +3462,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersShipLineItemsResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -3354,7 +3472,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersUpdateLineItemShippingDetailsRequest { /** - * Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past. + * Updated delivery by date, in ISO 8601 format. If not specified only ship by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past. */ deliverByDate?: string | null; /** @@ -3370,13 +3488,13 @@ export namespace content_v2_1 { */ productId?: string | null; /** - * Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past. + * Updated ship by date, in ISO 8601 format. If not specified only deliver by date is updated. Provided date should be within 1 year timeframe and can not be a date in the past. */ shipByDate?: string | null; } export interface Schema$OrdersUpdateLineItemShippingDetailsResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -3396,7 +3514,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersUpdateMerchantOrderIdResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -3406,7 +3524,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersUpdateShipmentRequest { /** - * The carrier handling the shipment. Not updated if missing. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values. + * The carrier handling the shipment. Not updated if missing. See `shipments[].carrier` in the Orders resource representation for a list of acceptable values. */ carrier?: string | null; /** @@ -3430,7 +3548,7 @@ export namespace content_v2_1 { */ shipmentId?: string | null; /** - * New status for the shipment. Not updated if missing. Acceptable values are: - "`delivered`" - "`undeliverable`" - "`readyForPickup`" + * New status for the shipment. Not updated if missing. Acceptable values are: - "`delivered`" - "`undeliverable`" - "`readyForPickup`" */ status?: string | null; /** @@ -3444,7 +3562,7 @@ export namespace content_v2_1 { } export interface Schema$OrdersUpdateShipmentResponse { /** - * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" + * The status of the execution. Acceptable values are: - "`duplicate`" - "`executed`" */ executionStatus?: string | null; /** @@ -3496,7 +3614,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" - "`inventory`" - "`sale`" + * The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" - "`inventory`" - "`sale`" */ method?: string | null; /** @@ -3873,7 +3991,7 @@ export namespace content_v2_1 { value?: string | null; } /** - * Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information. Some attributes are country-specific, so make sure you select the appropriate country in the drop-down selector at the top of the page. Product data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect. + * Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information. Some attributes are country-specific, so make sure you select the appropriate country in the drop-down selector at the top of the page. Product data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect. */ export interface Schema$Product { /** @@ -3917,7 +4035,7 @@ export namespace content_v2_1 { */ canonicalLink?: string | null; /** - * Required. The item's channel (online or local). Acceptable values are: - "`local`" - "`online`" + * Required. The item's channel (online or local). Acceptable values are: - "`local`" - "`online`" */ channel?: string | null; /** @@ -4009,7 +4127,7 @@ export namespace content_v2_1 { */ gtin?: string | null; /** - * The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter. The REST ID for a product is of the form channel:contentLanguage:targetCountry: offerId. + * The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter. The REST ID for a product is of the form channel:contentLanguage: targetCountry: offerId. */ id?: string | null; /** @@ -4081,7 +4199,7 @@ export namespace content_v2_1 { */ multipack?: string | null; /** - * Required. A unique identifier for the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details. Note: Content API methods that operate on products take the REST ID of the product, not this identifier. + * Required. A unique identifier for the item. Leading and trailing whitespaces are stripped and multiple whitespaces are replaced by a single whitespace upon submission. Only valid unicode characters are accepted. See the products feed specification for details. *Note:* Content API methods that operate on products take the REST ID of the product, *not* this identifier. */ offerId?: string | null; /** @@ -4113,7 +4231,7 @@ export namespace content_v2_1 { */ salePrice?: Schema$Price; /** - * Date range during which the item is on sale (see products data specification). + * Date range during which the item is on sale (see products data specification ). */ salePriceEffectiveDate?: string | null; /** @@ -4161,7 +4279,7 @@ export namespace content_v2_1 { */ sizeType?: string | null; /** - * The source of the offer, i.e., how the offer was created. Acceptable values are: - "`api`" - "`crawl`" - "`feed`" + * The source of the offer, i.e., how the offer was created. Acceptable values are: - "`api`" - "`crawl`" - "`feed`" */ source?: string | null; /** @@ -4248,7 +4366,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" + * The method of the batch entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" */ method?: string | null; /** @@ -4439,7 +4557,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * The method of the batch entry. Acceptable values are: - "`get`" + * The method of the batch entry. Acceptable values are: - "`get`" */ method?: string | null; /** @@ -4588,7 +4706,7 @@ export namespace content_v2_1 { value?: number | null; } /** - * Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account. (== resource_for v2.1.pubsubnotificationsettings ==) + * Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account. */ export interface Schema$PubsubNotificationSettings { /** @@ -4600,7 +4718,7 @@ export namespace content_v2_1 { */ kind?: string | null; /** - * List of event types. Acceptable values are: - "`orderPendingShipment`" + * List of event types. Acceptable values are: - "`orderPendingShipment`" */ registeredEvents?: string[] | null; } @@ -4636,7 +4754,7 @@ export namespace content_v2_1 { */ description?: string | null; /** - * Code of the refund reason. Acceptable values are: - "`adjustment`" - "`autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" - "`expiredItem`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "`feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "`priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "`returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "`taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" + * Code of the refund reason. Acceptable values are: - "`adjustment`" - "`autoPostInternal`" - "`autoPostInvalidBillingAddress`" - "`autoPostNoInventory`" - "`autoPostPriceError`" - "`autoPostUndeliverableShippingAddress`" - "`couponAbuse`" - "`courtesyAdjustment`" - "`customerCanceled`" - "`customerDiscretionaryReturn`" - "`customerInitiatedMerchantCancel`" - "`customerSupportRequested`" - "`deliveredLateByCarrier`" - "`deliveredTooLate`" - "`expiredItem`" - "`failToPushOrderGoogleError`" - "`failToPushOrderMerchantError`" - "`failToPushOrderMerchantFulfillmentError`" - "`failToPushOrderToMerchant`" - "`failToPushOrderToMerchantOutOfStock`" - "`feeAdjustment`" - "`invalidCoupon`" - "`lateShipmentCredit`" - "`malformedShippingAddress`" - "`merchantDidNotShipOnTime`" - "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`paymentDeclined`" - "`priceAdjustment`" - "`priceError`" - "`productArrivedDamaged`" - "`productNotAsDescribed`" - "`promoReallocation`" - "`qualityNotAsExpected`" - "`returnRefundAbuse`" - "`shippingCostAdjustment`" - "`shippingPriceError`" - "`taxAdjustment`" - "`taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "`wrongProductShipped`" */ reasonCode?: string | null; } @@ -4692,7 +4810,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * Method of the batch request entry. Acceptable values are: - "`insert`" + * Method of the batch request entry. Acceptable values are: - "`insert`" */ method?: string | null; /** @@ -4735,6 +4853,126 @@ export namespace content_v2_1 { */ regionalInventory?: Schema$RegionalInventory; } + /** + * Represents a repricing rule. A repricing rule is used by shopping serving to adjust transactable offer prices if conditions are met. Next ID: 24 + */ + export interface Schema$RepricingRule { + /** + * Required. Immutable. CLDR country code (e.g. "US"). + */ + countryCode?: string | null; + /** + * Required. Time period when the rule should take effect. + */ + effectiveTimePeriod?: Schema$RepricingRuleEffectiveTime; + /** + * Required. Match criteria for the eligible offers. + */ + eligibleOfferMatcher?: Schema$RepricingRuleEligibleOfferMatcher; + /** + * Required. Immutable. The two-letter ISO 639-1 language code associated with the repricing rule. + */ + languageCode?: string | null; + /** + * Output only. Immutable. Merchant that owns the repricing rule. + */ + merchantId?: string | null; + /** + * Represents whether a rule is paused. A paused rule will behave like a non-paused rule within CRUD operations, with the major difference that a paused rule will not be evaluated and will have no effect on offers. + */ + paused?: boolean | null; + /** + * Required. Restriction of the rule appliance. + */ + restriction?: Schema$RepricingRuleRestriction; + /** + * Output only. Immutable. The ID to uniquely identify each repricing rule. + */ + ruleId?: string | null; + /** + * The title for the rule. + */ + title?: string | null; + /** + * Required. Immutable. The type of the rule. + */ + type?: string | null; + } + export interface Schema$RepricingRuleEffectiveTime { + /** + * A list of fixed time periods combined with OR. The maximum number of entries is limited to 5. + */ + fixedTimePeriods?: Schema$RepricingRuleEffectiveTimeFixedTimePeriod[]; + } + /** + * Definition of a fixed time period. + */ + export interface Schema$RepricingRuleEffectiveTimeFixedTimePeriod { + /** + * The end time (exclusive) of the period. It can only be hour granularity. + */ + endTime?: string | null; + /** + * The start time (inclusive) of the period. It can only be hour granularity. + */ + startTime?: string | null; + } + /** + * Matcher that specifies eligible offers. When the USE_FEED_ATTRIBUTE option is selected, only the repricing_rule_id attribute on the product feed is used to specify offer-rule mapping. When the CUSTOM_FILTER option is selected, only the *_matcher fields are used to filter the offers for offer-rule mapping. If the CUSTOM_FILTER option is selected, an offer needs to satisfy each custom filter matcher to be eligible for a rule. Size limit: the sum of the number of entries in all the matchers should not exceed 20. For example, there can be 15 product ids and 5 brands, but not 10 product ids and 11 brands. + */ + export interface Schema$RepricingRuleEligibleOfferMatcher { + /** + * Filter by the brand. + */ + brandMatcher?: Schema$RepricingRuleEligibleOfferMatcherStringMatcher; + /** + * Filter by the item group id. + */ + itemGroupIdMatcher?: Schema$RepricingRuleEligibleOfferMatcherStringMatcher; + /** + * Determines whether to use the custom matchers or the product feed attribute "repricing_rule_id" to specify offer-rule mapping. + */ + matcherOption?: string | null; + /** + * Filter by the offer id. + */ + offerIdMatcher?: Schema$RepricingRuleEligibleOfferMatcherStringMatcher; + } + /** + * Matcher by string attributes. + */ + export interface Schema$RepricingRuleEligibleOfferMatcherStringMatcher { + /** + * String attributes, as long as such attribute of an offer is one of the string attribute values, the offer is considered as passing the matcher. The string matcher checks an offer for inclusivity in the string attributes, not equality. Only literal string matching is supported, no regex. + */ + strAttributes?: string[] | null; + } + /** + * Definition of a rule restriction. At least one of the following needs to be true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3) floor.percentage_delta exists If floor.price_delta and floor.percentage_delta are both set on a rule, the highest value will be chosen by the Repricer. In other words, for a product with a price of $50, if the `floor.percentage_delta` is "-10" and the floor.price_delta is "-12", the offer price will only be lowered $5 (10% lower than the original offer price). + */ + export interface Schema$RepricingRuleRestriction { + /** + * The inclusive floor lower bound. The repricing rule only applies when new price >= floor. + */ + floor?: Schema$RepricingRuleRestrictionBoundary; + /** + * If true, use the AUTO_PRICING_MIN_PRICE offer attribute as the lower bound of the rule. If use_auto_pricing_min_price is true, then only offers with `AUTO_PRICING_MIN_PRICE` existing on the offer will get Repricer treatment, even if a floor value is set on the rule. Also, if use_auto_pricing_min_price is true, the floor restriction will be ignored. + */ + useAutoPricingMinPrice?: boolean | null; + } + /** + * Definition of a boundary. + */ + export interface Schema$RepricingRuleRestrictionBoundary { + /** + * The percentage delta relative to the offer selling price. This field is signed. It must be negative in floor. When it is used in floor, it should be > -100. If an offer is selling at $10 and this field is -30 in floor, the repricing rule only applies if the calculated new price is >= $7. + */ + percentageDelta?: number | null; + /** + * The price micros relative to the offer selling price. This field is signed. It must be negative in floor. If an offer is selling at $10 and this field is -$2 in floor, the repricing rule only applies if the calculated new price is >= $8. + */ + priceDelta?: string | null; + } /** * Return address resource. */ @@ -4806,7 +5044,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * Method of the batch request entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" + * Method of the batch request entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" */ method?: string | null; /** @@ -4910,7 +5148,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * Method of the batch request entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" + * Method of the batch request entry. Acceptable values are: - "`delete`" - "`get`" - "`insert`" */ method?: string | null; /** @@ -4967,7 +5205,7 @@ export namespace content_v2_1 { */ numberOfDays?: string | null; /** - * Policy type. Use "lastReturnDate" for seasonal overrides only. Note that for most items a minimum of 30 days is required for returns. Exceptions may be made for electronics or non-returnable items such as food, perishables, and living things. A policy of less than 30 days can only be applied to those items. Acceptable values are: - "`lastReturnDate`" - "`lifetimeReturns`" - "`noReturns`" - "`numberOfDaysAfterDelivery`" + * Policy type. Use "lastReturnDate" for seasonal overrides only. Note that for most items a minimum of 30 days is required for returns. Exceptions may be made for electronics or non-returnable items such as food, perishables, and living things. A policy of less than 30 days can only be applied to those items. Acceptable values are: - "`lastReturnDate`" - "`lifetimeReturns`" - "`noReturns`" - "`numberOfDaysAfterDelivery`" */ type?: string | null; } @@ -5021,7 +5259,7 @@ export namespace content_v2_1 { */ deliveryDate?: string | null; /** - * Type of the return method. Acceptable values are: - "`byMail`" - "`contactCustomerSupport`" - "`returnless`" + * Type of the return method. Acceptable values are: - "`byMail`" - "`contactCustomerSupport`" - "`returnless`" */ returnMethodType?: string | null; /** @@ -5037,7 +5275,7 @@ export namespace content_v2_1 { */ shippingDate?: string | null; /** - * State of the shipment. Acceptable values are: - "`completed`" - "`new`" - "`shipped`" - "`undeliverable`" - "`pending`" + * State of the shipment. Acceptable values are: - "`completed`" - "`new`" - "`shipped`" - "`undeliverable`" - "`pending`" */ state?: string | null; } @@ -5065,7 +5303,7 @@ export namespace content_v2_1 { */ deliveryTime?: Schema$DeliveryTime; /** - * Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`" + * Eligibility for this service. Acceptable values are: - "`All scenarios`" - "`All scenarios except Shopping Actions`" - "`Shopping Actions`" */ eligibility?: string | null; /** @@ -5089,12 +5327,12 @@ export namespace content_v2_1 { */ rateGroups?: Schema$RateGroup[]; /** - * Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`" + * Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`" */ shipmentType?: string | null; } /** - * Settlement reports detail order-level and item-level credits and debits between you and Google. + * Settlement reports detail order-level and item-level credits and debits between you and Google. */ export interface Schema$SettlementReport { /** @@ -5142,7 +5380,7 @@ export namespace content_v2_1 { resources?: Schema$SettlementReport[]; } /** - * Settlement transactions give a detailed breakdown of the settlement report. (== resource_for v2.1.settlementtransactions ==) + * Settlement transactions give a detailed breakdown of the settlement report. */ export interface Schema$SettlementTransaction { /** @@ -5165,7 +5403,7 @@ export namespace content_v2_1 { export interface Schema$SettlementTransactionAmount { commission?: Schema$SettlementTransactionAmountCommission; /** - * 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`" - "`refundFromMerchant`" - "`returnLabelShippingFee`" + * 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`" - "`refundFromMerchant`" - "`returnLabelShippingFee`" */ description?: string | null; /** @@ -5173,13 +5411,13 @@ export namespace content_v2_1 { */ transactionAmount?: Schema$Price; /** - * The type of the amount. Acceptable values are: - "`itemPrice`" - "`orderPrice`" - "`refund`" - "`earlyRefund`" - "`courtesyRefund`" - "`returnRefund`" - "`returnLabelShippingFeeAmount`" + * The type of the amount. Acceptable values are: - "`itemPrice`" - "`orderPrice`" - "`refund`" - "`earlyRefund`" - "`courtesyRefund`" - "`returnRefund`" - "`returnLabelShippingFeeAmount`" */ type?: string | null; } export interface Schema$SettlementTransactionAmountCommission { /** - * The category of the commission. Acceptable values are: - "`animalsAndPetSupplies`" - "`dogCatFoodAndCatLitter`" - "`apparelAndAccessories`" - "`shoesHandbagsAndSunglasses`" - "`costumesAndAccessories`" - "`jewelry`" - "`watches`" - "`hobbiesArtsAndCrafts`" - "`homeAndGarden`" - "`entertainmentCollectibles`" - "`collectibleCoins`" - "`sportsCollectibles`" - "`sportingGoods`" - "`toysAndGames`" - "`musicalInstruments`" - "`giftCards`" - "`babyAndToddler`" - "`babyFoodWipesAndDiapers`" - "`businessAndIndustrial`" - "`camerasOpticsAndPhotography`" - "`consumerElectronics`" - "`electronicsAccessories`" - "`personalComputers`" - "`videoGameConsoles`" - "`foodAndGrocery`" - "`beverages`" - "`tobaccoProducts`" - "`furniture`" - "`hardware`" - "`buildingMaterials`" - "`tools`" - "`healthAndPersonalCare`" - "`beauty`" - "`householdSupplies`" - "`kitchenAndDining`" - "`majorAppliances`" - "`luggageAndBags`" - "`media`" - "`officeSupplies`" - "`softwareAndVideoGames`" - "`vehiclePartsAndAccessories`" - "`vehicleTiresAndWheels`" - "`vehicles`" - "`everythingElse`" + * The category of the commission. Acceptable values are: - "`animalsAndPetSupplies`" - "`dogCatFoodAndCatLitter`" - "`apparelAndAccessories`" - "`shoesHandbagsAndSunglasses`" - "`costumesAndAccessories`" - "`jewelry`" - "`watches`" - "`hobbiesArtsAndCrafts`" - "`homeAndGarden`" - "`entertainmentCollectibles`" - "`collectibleCoins`" - "`sportsCollectibles`" - "`sportingGoods`" - "`toysAndGames`" - "`musicalInstruments`" - "`giftCards`" - "`babyAndToddler`" - "`babyFoodWipesAndDiapers`" - "`businessAndIndustrial`" - "`camerasOpticsAndPhotography`" - "`consumerElectronics`" - "`electronicsAccessories`" - "`personalComputers`" - "`videoGameConsoles`" - "`foodAndGrocery`" - "`beverages`" - "`tobaccoProducts`" - "`furniture`" - "`hardware`" - "`buildingMaterials`" - "`tools`" - "`healthAndPersonalCare`" - "`beauty`" - "`householdSupplies`" - "`kitchenAndDining`" - "`majorAppliances`" - "`luggageAndBags`" - "`media`" - "`officeSupplies`" - "`softwareAndVideoGames`" - "`vehiclePartsAndAccessories`" - "`vehicleTiresAndWheels`" - "`vehicles`" - "`everythingElse`" */ category?: string | null; /** @@ -5230,7 +5468,7 @@ export namespace content_v2_1 { */ postDate?: string | null; /** - * The type of the transaction that occurred. Acceptable values are: - "`order`" - "`reversal`" - "`orderRefund`" - "`reversalRefund`" - "`issueRelatedRefundAndReplacement`" - "`returnLabelShippingFeeTransaction`" - "`reversalIssueRelatedRefundAndReplacement`" - "`reversalReturnLabelShippingFeeTransaction`" + * The type of the transaction that occurred. Acceptable values are: - "`order`" - "`reversal`" - "`orderRefund`" - "`reversalRefund`" - "`issueRelatedRefundAndReplacement`" - "`returnLabelShippingFeeTransaction`" - "`reversalIssueRelatedRefundAndReplacement`" - "`reversalReturnLabelShippingFeeTransaction`" */ type?: string | null; } @@ -5268,7 +5506,7 @@ export namespace content_v2_1 { } export interface Schema$ShipmentTrackingInfo { /** - * The shipping carrier that handles the package. Acceptable values are: - "`boxtal`" - "`bpost`" - "`chronopost`" - "`colisPrive`" - "`colissimo`" - "`cxt`" - "`deliv`" - "`dhl`" - "`dpd`" - "`dynamex`" - "`eCourier`" - "`easypost`" - "`efw`" - "`fedex`" - "`fedexSmartpost`" - "`geodis`" - "`gls`" - "`googleCourier`" - "`gsx`" - "`jdLogistics`" - "`laPoste`" - "`lasership`" - "`manual`" - "`mpx`" - "`onTrac`" - "`other`" - "`tnt`" - "`uds`" - "`ups`" - "`usps`" + * The shipping carrier that handles the package. Acceptable values are: - "`boxtal`" - "`bpost`" - "`chronopost`" - "`colisPrive`" - "`colissimo`" - "`cxt`" - "`deliv`" - "`dhl`" - "`dpd`" - "`dynamex`" - "`eCourier`" - "`easypost`" - "`efw`" - "`fedex`" - "`fedexSmartpost`" - "`geodis`" - "`gls`" - "`googleCourier`" - "`gsx`" - "`jdLogistics`" - "`laPoste`" - "`lasership`" - "`manual`" - "`mpx`" - "`onTrac`" - "`other`" - "`tnt`" - "`uds`" - "`ups`" - "`usps`" */ carrier?: string | null; /** @@ -5316,7 +5554,7 @@ export namespace content_v2_1 { */ merchantId?: string | null; /** - * The method of the batch entry. Acceptable values are: - "`get`" - "`update`" + * The method of the batch entry. Acceptable values are: - "`get`" - "`update`" */ method?: string | null; /** @@ -5440,19 +5678,19 @@ export namespace content_v2_1 { */ pickupDetails?: Schema$TestOrderPickupDetails; /** - * Required. The billing address. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" + * Required. The billing address. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" */ predefinedBillingAddress?: string | null; /** - * Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" + * Required. Identifier of one of the predefined delivery addresses for the delivery. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" */ predefinedDeliveryAddress?: string | null; /** - * Required. Email address of the customer. Acceptable values are: - "`pog.dwight.schrute@gmail.com`" - "`pog.jim.halpert@gmail.com`" - "`penpog.pam.beesly@gmail.comding`" + * Required. Email address of the customer. Acceptable values are: - "`pog.dwight.schrute@gmail.com`" - "`pog.jim.halpert@gmail.com`" - "`penpog.pam.beesly@gmail.comding`" */ predefinedEmail?: string | null; /** - * Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type `pickup`. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" + * Identifier of one of the predefined pickup details. Required for orders containing line items with shipping type `pickup`. Acceptable values are: - "`dwight`" - "`jim`" - "`pam`" */ predefinedPickupDetails?: string | null; /** @@ -5464,7 +5702,7 @@ export namespace content_v2_1 { */ shippingCost?: Schema$Price; /** - * Required. The requested shipping option. Acceptable values are: - "`economy`" - "`expedited`" - "`oneDay`" - "`sameDay`" - "`standard`" - "`twoDay`" + * Required. The requested shipping option. Acceptable values are: - "`economy`" - "`expedited`" - "`oneDay`" - "`sameDay`" - "`standard`" - "`twoDay`" */ shippingOption?: string | null; } @@ -5536,11 +5774,11 @@ export namespace content_v2_1 { */ brand?: string | null; /** - * Required. Condition or state of the item. Acceptable values are: - "`new`" + * Required. Condition or state of the item. Acceptable values are: - "`new`" */ condition?: string | null; /** - * Required. The two-letter ISO 639-1 language code for the item. Acceptable values are: - "`en`" - "`fr`" + * Required. The two-letter ISO 639-1 language code for the item. Acceptable values are: - "`en`" - "`fr`" */ contentLanguage?: string | null; /** @@ -5572,7 +5810,7 @@ export namespace content_v2_1 { */ price?: Schema$Price; /** - * Required. The CLDR territory code of the target country of the product. + * Required. The CLDR territory // code of the target country of the product. */ targetCountry?: string | null; /** @@ -5594,7 +5832,7 @@ export namespace content_v2_1 { */ pickupLocationAddress?: Schema$TestOrderAddress; /** - * Pickup location type. Acceptable values are: - "`locker`" - "`store`" - "`curbside`" + * Pickup location type. Acceptable values are: - "`locker`" - "`store`" - "`curbside`" */ pickupLocationType?: string | null; /** @@ -5656,7 +5894,7 @@ export namespace content_v2_1 { */ additionalChargeAmount?: Schema$Amount; /** - * [required] Type of the additional charge. Acceptable values are: - "`shipping`" + * [required] Type of the additional charge. Acceptable values are: - "`shipping`" */ type?: string | null; } @@ -5670,7 +5908,7 @@ export namespace content_v2_1 { */ taxName?: string | null; /** - * [required] Type of the tax. Acceptable values are: - "`otherFee`" - "`otherFeeTax`" - "`sales`" + * [required] Type of the tax. Acceptable values are: - "`otherFee`" - "`otherFeeTax`" - "`sales`" */ taxType?: string | null; } @@ -5701,7 +5939,7 @@ export namespace content_v2_1 { } export interface Schema$Weight { /** - * Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" + * Required. The weight unit. Acceptable values are: - "`kg`" - "`lb`" */ unit?: string | null; /** @@ -5712,8 +5950,10 @@ export namespace content_v2_1 { export class Resource$Accounts { context: APIRequestContext; + labels: Resource$Accounts$Labels; constructor(context: APIRequestContext) { this.context = context; + this.labels = new Resource$Accounts$Labels(this.context); } /** @@ -5760,7 +6000,7 @@ export namespace content_v2_1 { * @alias content.accounts.authinfo * @memberOf! () * - * @param {object=} params Parameters for request + * @param {object} params Parameters for request * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object @@ -5824,7 +6064,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -5968,7 +6209,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -6114,7 +6356,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -6243,7 +6486,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -6390,7 +6634,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -6552,7 +6797,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -6702,7 +6948,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -6850,7 +7097,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -6999,7 +7247,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -7165,7 +7414,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -7314,7 +7564,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -7495,15 +7746,15 @@ export namespace content_v2_1 { requestBody?: Schema$AccountsUpdateLabelsRequest; } - export class Resource$Accountstatuses { + export class Resource$Accounts$Labels { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * content.accountstatuses.custombatch - * @desc Retrieves multiple Merchant Center account statuses in a single request. + * content.accounts.labels.create + * @desc Creates a new label, not assigned to any account. * @example * // Before running the sample: * // - Enable the API at: @@ -7527,12 +7778,18 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.accountstatuses.custombatch({ + * const res = await content.accounts.labels.create({ + * // Required. The id of the account this label belongs to. + * accountId: 'placeholder-value', + * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "entries": [] + * // "accountId": "my_accountId", + * // "description": "my_description", + * // "labelId": "my_labelId", + * // "name": "my_name" * // } * }, * }); @@ -7540,8 +7797,10 @@ export namespace content_v2_1 { * * // Example response * // { - * // "entries": [], - * // "kind": "my_kind" + * // "accountId": "my_accountId", + * // "description": "my_description", + * // "labelId": "my_labelId", + * // "name": "my_name" * // } * } * @@ -7550,66 +7809,60 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.accountstatuses.custombatch + * @alias content.accounts.labels.create * @memberOf! () * * @param {object} params Parameters for request - * @param {().AccountstatusesCustomBatchRequest} params.requestBody Request body data + * @param {string} params.accountId Required. The id of the account this label belongs to. + * @param {().AccountLabel} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch( - params: Params$Resource$Accountstatuses$Custombatch, + create( + params: Params$Resource$Accounts$Labels$Create, options: StreamMethodOptions ): GaxiosPromise; - custombatch( - params?: Params$Resource$Accountstatuses$Custombatch, + create( + params?: Params$Resource$Accounts$Labels$Create, options?: MethodOptions - ): GaxiosPromise; - custombatch( - params: Params$Resource$Accountstatuses$Custombatch, + ): GaxiosPromise; + create( + params: Params$Resource$Accounts$Labels$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - custombatch( - params: Params$Resource$Accountstatuses$Custombatch, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - custombatch( - params: Params$Resource$Accountstatuses$Custombatch, - callback: BodyResponseCallback + create( + params: Params$Resource$Accounts$Labels$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - custombatch( - callback: BodyResponseCallback + create( + params: Params$Resource$Accounts$Labels$Create, + callback: BodyResponseCallback ): void; - custombatch( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Accountstatuses$Custombatch - | BodyResponseCallback + | Params$Resource$Accounts$Labels$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Accountstatuses$Custombatch; + {}) as Params$Resource$Accounts$Labels$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Accountstatuses$Custombatch; + params = {} as Params$Resource$Accounts$Labels$Create; options = {}; } @@ -7618,38 +7871,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/accountstatuses/batch').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/content/v2.1/accounts/{accountId}/labels' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.accountstatuses.get - * @desc Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts. + * content.accounts.labels.delete + * @desc Deletes a label and removes it from all accounts to which it was assigned. * @example * // Before running the sample: * // - Enable the API at: @@ -7673,24 +7924,13 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.accountstatuses.get({ - * // The ID of the account. + * const res = await content.accounts.labels.delete({ + * // Required. The id of the account that owns the label. * accountId: 'placeholder-value', - * // If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - * destinations: 'placeholder-value', - * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - * merchantId: 'placeholder-value', + * // Required. The id of the label to delete. + * labelId: 'placeholder-value', * }); * console.log(res.data); - * - * // Example response - * // { - * // "accountId": "my_accountId", - * // "accountLevelIssues": [], - * // "kind": "my_kind", - * // "products": [], - * // "websiteClaimed": false - * // } * } * * main().catch(e => { @@ -7698,61 +7938,58 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.accountstatuses.get + * @alias content.accounts.labels.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.accountId The ID of the account. - * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * @param {string} params.accountId Required. The id of the account that owns the label. + * @param {string} params.labelId Required. The id of the label to delete. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Accountstatuses$Get, + delete( + params: Params$Resource$Accounts$Labels$Delete, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Accountstatuses$Get, + delete( + params?: Params$Resource$Accounts$Labels$Delete, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Accountstatuses$Get, + ): GaxiosPromise; + delete( + params: Params$Resource$Accounts$Labels$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Accountstatuses$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + delete( + params: Params$Resource$Accounts$Labels$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Accountstatuses$Get, - callback: BodyResponseCallback + delete( + params: Params$Resource$Accounts$Labels$Delete, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Accountstatuses$Get - | BodyResponseCallback + | Params$Resource$Accounts$Labels$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Accountstatuses$Get; + callback?: BodyResponseCallback | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Accounts$Labels$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Accountstatuses$Get; + params = {} as Params$Resource$Accounts$Labels$Delete; options = {}; } @@ -7761,35 +7998,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/accountstatuses/{accountId}' + rootUrl + '/content/v2.1/accounts/{accountId}/labels/{labelId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options ), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['accountId', 'labelId'], + pathParams: ['accountId', 'labelId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.accountstatuses.list - * @desc Lists the statuses of the sub-accounts in your Merchant Center account. + * content.accounts.labels.list + * @desc Lists the labels assigned to an account. * @example * // Before running the sample: * // - Enable the API at: @@ -7813,23 +8051,20 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.accountstatuses.list({ - * // If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - * destinations: 'placeholder-value', - * // The maximum number of account statuses to return in the response, used for paging. - * maxResults: 'placeholder-value', - * // The ID of the managing account. This must be a multi-client account. - * merchantId: 'placeholder-value', - * // The token returned by the previous request. + * const res = await content.accounts.labels.list({ + * // Required. The account id for whose labels are to be listed. + * accountId: 'placeholder-value', + * // The maximum number of labels to return. The service may return fewer than this value. If unspecified, at most 50 labels will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * pageSize: 'placeholder-value', + * // A page token, received from a previous `ListAccountLabels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLabels` must match the call that provided the page token. * pageToken: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken", - * // "resources": [] + * // "accountLabels": [], + * // "nextPageToken": "my_nextPageToken" * // } * } * @@ -7838,69 +8073,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.accountstatuses.list + * @alias content.accounts.labels.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - * @param {integer=} params.maxResults The maximum number of account statuses to return in the response, used for paging. - * @param {string} params.merchantId The ID of the managing account. This must be a multi-client account. - * @param {string=} params.pageToken The token returned by the previous request. + * @param {string} params.accountId Required. The account id for whose labels are to be listed. + * @param {integer=} params.pageSize The maximum number of labels to return. The service may return fewer than this value. If unspecified, at most 50 labels will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string=} params.pageToken A page token, received from a previous `ListAccountLabels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLabels` must match the call that provided the page token. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ list( - params: Params$Resource$Accountstatuses$List, + params: Params$Resource$Accounts$Labels$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Accountstatuses$List, + params?: Params$Resource$Accounts$Labels$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Accountstatuses$List, + params: Params$Resource$Accounts$Labels$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Accountstatuses$List, + params: Params$Resource$Accounts$Labels$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Accountstatuses$List, - callback: BodyResponseCallback + params: Params$Resource$Accounts$Labels$List, + callback: BodyResponseCallback ): void; list( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; list( paramsOrCallback?: - | Params$Resource$Accountstatuses$List - | BodyResponseCallback + | Params$Resource$Accounts$Labels$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Accountstatuses$List; + {}) as Params$Resource$Accounts$Labels$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Accountstatuses$List; + params = {} as Params$Resource$Accounts$Labels$List; options = {}; } @@ -7909,84 +8143,247 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/accountstatuses' + rootUrl + '/content/v2.1/accounts/{accountId}/labels' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['accountId'], + pathParams: ['accountId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); + } + } + + /** + * content.accounts.labels.patch + * @desc Updates a label. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.accounts.labels.patch({ + * // Required. The id of the account this label belongs to. + * accountId: 'placeholder-value', + * // Required. The id of the label to update. + * labelId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "accountId": "my_accountId", + * // "description": "my_description", + * // "labelId": "my_labelId", + * // "name": "my_name" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "accountId": "my_accountId", + * // "description": "my_description", + * // "labelId": "my_labelId", + * // "name": "my_name" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.accounts.labels.patch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.accountId Required. The id of the account this label belongs to. + * @param {string} params.labelId Required. The id of the label to update. + * @param {().AccountLabel} params.requestBody Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + patch( + params: Params$Resource$Accounts$Labels$Patch, + options: StreamMethodOptions + ): GaxiosPromise; + patch( + params?: Params$Resource$Accounts$Labels$Patch, + options?: MethodOptions + ): GaxiosPromise; + patch( + params: Params$Resource$Accounts$Labels$Patch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Accounts$Labels$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + patch( + params: Params$Resource$Accounts$Labels$Patch, + callback: BodyResponseCallback + ): void; + patch(callback: BodyResponseCallback): void; + patch( + paramsOrCallback?: + | Params$Resource$Accounts$Labels$Patch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Accounts$Labels$Patch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Accounts$Labels$Patch; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/content/v2.1/accounts/{accountId}/labels/{labelId}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, + options + ), + params, + requiredParams: ['accountId', 'labelId'], + pathParams: ['accountId', 'labelId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest(parameters); } } } - export interface Params$Resource$Accountstatuses$Custombatch + export interface Params$Resource$Accounts$Labels$Create extends StandardParameters { + /** + * Required. The id of the account this label belongs to. + */ + accountId?: string; + /** * Request body metadata */ - requestBody?: Schema$AccountstatusesCustomBatchRequest; + requestBody?: Schema$AccountLabel; } - export interface Params$Resource$Accountstatuses$Get + export interface Params$Resource$Accounts$Labels$Delete extends StandardParameters { /** - * The ID of the account. + * Required. The id of the account that owns the label. */ accountId?: string; /** - * If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - */ - destinations?: string[]; - /** - * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * Required. The id of the label to delete. */ - merchantId?: string; + labelId?: string; } - export interface Params$Resource$Accountstatuses$List + export interface Params$Resource$Accounts$Labels$List extends StandardParameters { /** - * If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + * Required. The account id for whose labels are to be listed. */ - destinations?: string[]; + accountId?: string; /** - * The maximum number of account statuses to return in the response, used for paging. + * The maximum number of labels to return. The service may return fewer than this value. If unspecified, at most 50 labels will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. */ - maxResults?: number; + pageSize?: number; /** - * The ID of the managing account. This must be a multi-client account. + * A page token, received from a previous `ListAccountLabels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLabels` must match the call that provided the page token. */ - merchantId?: string; + pageToken?: string; + } + export interface Params$Resource$Accounts$Labels$Patch + extends StandardParameters { /** - * The token returned by the previous request. + * Required. The id of the account this label belongs to. */ - pageToken?: string; + accountId?: string; + /** + * Required. The id of the label to update. + */ + labelId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$AccountLabel; } - export class Resource$Accounttax { + export class Resource$Accountstatuses { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * content.accounttax.custombatch - * @desc Retrieves and updates tax settings of multiple accounts in a single request. + * content.accountstatuses.custombatch + * @desc Retrieves multiple Merchant Center account statuses in a single request. * @example * // Before running the sample: * // - Enable the API at: @@ -8010,7 +8407,7 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.accounttax.custombatch({ + * const res = await content.accountstatuses.custombatch({ * // Request body metadata * requestBody: { * // request body parameters @@ -8033,66 +8430,66 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.accounttax.custombatch + * @alias content.accountstatuses.custombatch * @memberOf! () * * @param {object} params Parameters for request - * @param {().AccounttaxCustomBatchRequest} params.requestBody Request body data + * @param {().AccountstatusesCustomBatchRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ custombatch( - params: Params$Resource$Accounttax$Custombatch, + params: Params$Resource$Accountstatuses$Custombatch, options: StreamMethodOptions ): GaxiosPromise; custombatch( - params?: Params$Resource$Accounttax$Custombatch, + params?: Params$Resource$Accountstatuses$Custombatch, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; custombatch( - params: Params$Resource$Accounttax$Custombatch, + params: Params$Resource$Accountstatuses$Custombatch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; custombatch( - params: Params$Resource$Accounttax$Custombatch, + params: Params$Resource$Accountstatuses$Custombatch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; custombatch( - params: Params$Resource$Accounttax$Custombatch, - callback: BodyResponseCallback + params: Params$Resource$Accountstatuses$Custombatch, + callback: BodyResponseCallback ): void; custombatch( - callback: BodyResponseCallback + callback: BodyResponseCallback ): void; custombatch( paramsOrCallback?: - | Params$Resource$Accounttax$Custombatch - | BodyResponseCallback + | Params$Resource$Accountstatuses$Custombatch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Accounttax$Custombatch; + {}) as Params$Resource$Accountstatuses$Custombatch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Accounttax$Custombatch; + params = {} as Params$Resource$Accountstatuses$Custombatch; options = {}; } @@ -8101,11 +8498,12 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/accounttax/batch').replace( + url: (rootUrl + '/content/v2.1/accountstatuses/batch').replace( /([^:]\/)\/+/g, '$1' ), @@ -8119,20 +8517,20 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * content.accounttax.get - * @desc Retrieves the tax settings of the account. + * content.accountstatuses.get + * @desc Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts. * @example * // Before running the sample: * // - Enable the API at: @@ -8156,9 +8554,11 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.accounttax.get({ - * // The ID of the account for which to get/update account tax settings. + * const res = await content.accountstatuses.get({ + * // The ID of the account. * accountId: 'placeholder-value', + * // If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + * destinations: 'placeholder-value', * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * merchantId: 'placeholder-value', * }); @@ -8167,8 +8567,10 @@ export namespace content_v2_1 { * // Example response * // { * // "accountId": "my_accountId", + * // "accountLevelIssues": [], * // "kind": "my_kind", - * // "rules": [] + * // "products": [], + * // "websiteClaimed": false * // } * } * @@ -8177,59 +8579,61 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.accounttax.get + * @alias content.accountstatuses.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.accountId The ID of the account for which to get/update account tax settings. + * @param {string} params.accountId The ID of the account. + * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ get( - params: Params$Resource$Accounttax$Get, + params: Params$Resource$Accountstatuses$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Accounttax$Get, + params?: Params$Resource$Accountstatuses$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Accounttax$Get, + params: Params$Resource$Accountstatuses$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Accounttax$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Accountstatuses$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Accounttax$Get, - callback: BodyResponseCallback + params: Params$Resource$Accountstatuses$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Accounttax$Get - | BodyResponseCallback + | Params$Resource$Accountstatuses$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Accounttax$Get; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Accountstatuses$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Accounttax$Get; + params = {} as Params$Resource$Accountstatuses$Get; options = {}; } @@ -8238,12 +8642,13 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}' + rootUrl + '/content/v2.1/{merchantId}/accountstatuses/{accountId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -8255,18 +8660,18 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.accounttax.list - * @desc Lists the tax settings of the sub-accounts in your Merchant Center account. + * content.accountstatuses.list + * @desc Lists the statuses of the sub-accounts in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -8290,8 +8695,10 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.accounttax.list({ - * // The maximum number of tax settings to return in the response, used for paging. + * const res = await content.accountstatuses.list({ + * // If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + * destinations: 'placeholder-value', + * // The maximum number of account statuses to return in the response, used for paging. * maxResults: 'placeholder-value', * // The ID of the managing account. This must be a multi-client account. * merchantId: 'placeholder-value', @@ -8313,11 +8720,12 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.accounttax.list + * @alias content.accountstatuses.list * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.maxResults The maximum number of tax settings to return in the response, used for paging. + * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + * @param {integer=} params.maxResults The maximum number of account statuses to return in the response, used for paging. * @param {string} params.merchantId The ID of the managing account. This must be a multi-client account. * @param {string=} params.pageToken The token returned by the previous request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -8325,53 +8733,56 @@ export namespace content_v2_1 { * @return {object} Request object */ list( - params: Params$Resource$Accounttax$List, + params: Params$Resource$Accountstatuses$List, options: StreamMethodOptions ): GaxiosPromise; list( - params?: Params$Resource$Accounttax$List, + params?: Params$Resource$Accountstatuses$List, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; list( - params: Params$Resource$Accounttax$List, + params: Params$Resource$Accountstatuses$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; list( - params: Params$Resource$Accounttax$List, + params: Params$Resource$Accountstatuses$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; list( - params: Params$Resource$Accounttax$List, - callback: BodyResponseCallback + params: Params$Resource$Accountstatuses$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; list( paramsOrCallback?: - | Params$Resource$Accounttax$List - | BodyResponseCallback + | Params$Resource$Accountstatuses$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Accounttax$List; + let params = (paramsOrCallback || + {}) as Params$Resource$Accountstatuses$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Accounttax$List; + params = {} as Params$Resource$Accountstatuses$List; options = {}; } @@ -8380,14 +8791,14 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/{merchantId}/accounttax').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + '/content/v2.1/{merchantId}/accountstatuses' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options @@ -8398,18 +8809,67 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Accountstatuses$Custombatch + extends StandardParameters { /** - * content.accounttax.update - * @desc Updates the tax settings of the account. Any fields that are not provided are deleted from the resource. + * Request body metadata + */ + requestBody?: Schema$AccountstatusesCustomBatchRequest; + } + export interface Params$Resource$Accountstatuses$Get + extends StandardParameters { + /** + * The ID of the account. + */ + accountId?: string; + /** + * If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + */ + destinations?: string[]; + /** + * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Accountstatuses$List + extends StandardParameters { + /** + * If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + */ + destinations?: string[]; + /** + * The maximum number of account statuses to return in the response, used for paging. + */ + maxResults?: number; + /** + * The ID of the managing account. This must be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + export class Resource$Accounttax { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.accounttax.custombatch + * @desc Retrieves and updates tax settings of multiple accounts in a single request. * @example * // Before running the sample: * // - Enable the API at: @@ -8433,19 +8893,12 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.accounttax.update({ - * // The ID of the account for which to get/update account tax settings. - * accountId: 'placeholder-value', - * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - * merchantId: 'placeholder-value', - * + * const res = await content.accounttax.custombatch({ * // Request body metadata * requestBody: { * // request body parameters * // { - * // "accountId": "my_accountId", - * // "kind": "my_kind", - * // "rules": [] + * // "entries": [] * // } * }, * }); @@ -8453,9 +8906,8 @@ export namespace content_v2_1 { * * // Example response * // { - * // "accountId": "my_accountId", - * // "kind": "my_kind", - * // "rules": [] + * // "entries": [], + * // "kind": "my_kind" * // } * } * @@ -8464,61 +8916,66 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.accounttax.update + * @alias content.accounttax.custombatch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.accountId The ID of the account for which to get/update account tax settings. - * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - * @param {().AccountTax} params.requestBody Request body data + * @param {().AccounttaxCustomBatchRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update( - params: Params$Resource$Accounttax$Update, + custombatch( + params: Params$Resource$Accounttax$Custombatch, options: StreamMethodOptions ): GaxiosPromise; - update( - params?: Params$Resource$Accounttax$Update, + custombatch( + params?: Params$Resource$Accounttax$Custombatch, options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Accounttax$Update, + ): GaxiosPromise; + custombatch( + params: Params$Resource$Accounttax$Custombatch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - update( - params: Params$Resource$Accounttax$Update, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + custombatch( + params: Params$Resource$Accounttax$Custombatch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - update( - params: Params$Resource$Accounttax$Update, - callback: BodyResponseCallback + custombatch( + params: Params$Resource$Accounttax$Custombatch, + callback: BodyResponseCallback ): void; - update(callback: BodyResponseCallback): void; - update( + custombatch( + callback: BodyResponseCallback + ): void; + custombatch( paramsOrCallback?: - | Params$Resource$Accounttax$Update - | BodyResponseCallback + | Params$Resource$Accounttax$Custombatch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Accounttax$Update; + {}) as Params$Resource$Accounttax$Custombatch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Accounttax$Update; + params = {} as Params$Resource$Accounttax$Custombatch; options = {}; } @@ -8527,90 +8984,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/accounttax/batch').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } - } - - export interface Params$Resource$Accounttax$Custombatch - extends StandardParameters { - /** - * Request body metadata - */ - requestBody?: Schema$AccounttaxCustomBatchRequest; - } - export interface Params$Resource$Accounttax$Get extends StandardParameters { - /** - * The ID of the account for which to get/update account tax settings. - */ - accountId?: string; - /** - * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - */ - merchantId?: string; - } - export interface Params$Resource$Accounttax$List extends StandardParameters { - /** - * The maximum number of tax settings to return in the response, used for paging. - */ - maxResults?: number; - /** - * The ID of the managing account. This must be a multi-client account. - */ - merchantId?: string; - /** - * The token returned by the previous request. - */ - pageToken?: string; - } - export interface Params$Resource$Accounttax$Update - extends StandardParameters { - /** - * The ID of the account for which to get/update account tax settings. - */ - accountId?: string; - /** - * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - */ - merchantId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$AccountTax; - } - - export class Resource$Datafeeds { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * content.datafeeds.custombatch - * @desc Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request. + * content.accounttax.get + * @desc Retrieves the tax settings of the account. * @example * // Before running the sample: * // - Enable the API at: @@ -8634,21 +9040,19 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.datafeeds.custombatch({ - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "entries": [] - * // } - * }, + * const res = await content.accounttax.get({ + * // The ID of the account for which to get/update account tax settings. + * accountId: 'placeholder-value', + * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * merchantId: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "entries": [], - * // "kind": "my_kind" + * // "accountId": "my_accountId", + * // "kind": "my_kind", + * // "rules": [] * // } * } * @@ -8657,66 +9061,59 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.datafeeds.custombatch + * @alias content.accounttax.get * @memberOf! () * * @param {object} params Parameters for request - * @param {().DatafeedsCustomBatchRequest} params.requestBody Request body data + * @param {string} params.accountId The ID of the account for which to get/update account tax settings. + * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch( - params: Params$Resource$Datafeeds$Custombatch, + get( + params: Params$Resource$Accounttax$Get, options: StreamMethodOptions ): GaxiosPromise; - custombatch( - params?: Params$Resource$Datafeeds$Custombatch, + get( + params?: Params$Resource$Accounttax$Get, options?: MethodOptions - ): GaxiosPromise; - custombatch( - params: Params$Resource$Datafeeds$Custombatch, + ): GaxiosPromise; + get( + params: Params$Resource$Accounttax$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - custombatch( - params: Params$Resource$Datafeeds$Custombatch, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - custombatch( - params: Params$Resource$Datafeeds$Custombatch, - callback: BodyResponseCallback + get( + params: Params$Resource$Accounttax$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - custombatch( - callback: BodyResponseCallback + get( + params: Params$Resource$Accounttax$Get, + callback: BodyResponseCallback ): void; - custombatch( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Datafeeds$Custombatch - | BodyResponseCallback + | Params$Resource$Accounttax$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Datafeeds$Custombatch; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Accounttax$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Datafeeds$Custombatch; + params = {} as Params$Resource$Accounttax$Get; options = {}; } @@ -8725,38 +9122,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/datafeeds/batch').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: ( + rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.datafeeds.delete - * @desc Deletes a datafeed configuration from your Merchant Center account. + * content.accounttax.list + * @desc Lists the tax settings of the sub-accounts in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -8780,13 +9175,22 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.datafeeds.delete({ - * // The ID of the datafeed. - * datafeedId: 'placeholder-value', - * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * const res = await content.accounttax.list({ + * // The maximum number of tax settings to return in the response, used for paging. + * maxResults: 'placeholder-value', + * // The ID of the managing account. This must be a multi-client account. * merchantId: 'placeholder-value', + * // The token returned by the previous request. + * pageToken: 'placeholder-value', * }); * console.log(res.data); + * + * // Example response + * // { + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "resources": [] + * // } * } * * main().catch(e => { @@ -8794,57 +9198,65 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.datafeeds.delete + * @alias content.accounttax.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.datafeedId The ID of the datafeed. - * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * @param {integer=} params.maxResults The maximum number of tax settings to return in the response, used for paging. + * @param {string} params.merchantId The ID of the managing account. This must be a multi-client account. + * @param {string=} params.pageToken The token returned by the previous request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete( - params: Params$Resource$Datafeeds$Delete, + list( + params: Params$Resource$Accounttax$List, options: StreamMethodOptions ): GaxiosPromise; - delete( - params?: Params$Resource$Datafeeds$Delete, + list( + params?: Params$Resource$Accounttax$List, options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Datafeeds$Delete, + ): GaxiosPromise; + list( + params: Params$Resource$Accounttax$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Datafeeds$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Accounttax$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Datafeeds$Delete, - callback: BodyResponseCallback + list( + params: Params$Resource$Accounttax$List, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Datafeeds$Delete - | BodyResponseCallback + | Params$Resource$Accounttax$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, - callback?: BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Delete; + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Accounttax$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Datafeeds$Delete; + params = {} as Params$Resource$Accounttax$List; options = {}; } @@ -8853,35 +9265,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2.1/{merchantId}/accounttax').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.datafeeds.fetchnow - * @desc Invokes a fetch for the datafeed in your Merchant Center account. + * content.accounttax.update + * @desc Updates the tax settings of the account. Any fields that are not provided are deleted from the resource. * @example * // Before running the sample: * // - Enable the API at: @@ -8905,17 +9319,29 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.datafeeds.fetchnow({ - * // The ID of the datafeed to be fetched. - * datafeedId: 'placeholder-value', - * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * const res = await content.accounttax.update({ + * // The ID of the account for which to get/update account tax settings. + * accountId: 'placeholder-value', + * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * merchantId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "accountId": "my_accountId", + * // "kind": "my_kind", + * // "rules": [] + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind" + * // "accountId": "my_accountId", + * // "kind": "my_kind", + * // "rules": [] * // } * } * @@ -8924,67 +9350,61 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.datafeeds.fetchnow + * @alias content.accounttax.update * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.datafeedId The ID of the datafeed to be fetched. - * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * @param {string} params.accountId The ID of the account for which to get/update account tax settings. + * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * @param {().AccountTax} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - fetchnow( - params: Params$Resource$Datafeeds$Fetchnow, + update( + params: Params$Resource$Accounttax$Update, options: StreamMethodOptions ): GaxiosPromise; - fetchnow( - params?: Params$Resource$Datafeeds$Fetchnow, + update( + params?: Params$Resource$Accounttax$Update, options?: MethodOptions - ): GaxiosPromise; - fetchnow( - params: Params$Resource$Datafeeds$Fetchnow, + ): GaxiosPromise; + update( + params: Params$Resource$Accounttax$Update, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - fetchnow( - params: Params$Resource$Datafeeds$Fetchnow, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - fetchnow( - params: Params$Resource$Datafeeds$Fetchnow, - callback: BodyResponseCallback + update( + params: Params$Resource$Accounttax$Update, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - fetchnow( - callback: BodyResponseCallback + update( + params: Params$Resource$Accounttax$Update, + callback: BodyResponseCallback ): void; - fetchnow( + update(callback: BodyResponseCallback): void; + update( paramsOrCallback?: - | Params$Resource$Datafeeds$Fetchnow - | BodyResponseCallback + | Params$Resource$Accounttax$Update + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Datafeeds$Fetchnow; + {}) as Params$Resource$Accounttax$Update; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Datafeeds$Fetchnow; + params = {} as Params$Resource$Accounttax$Update; options = {}; } @@ -8993,36 +9413,91 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow' + rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'PUT', }, options ), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Accounttax$Custombatch + extends StandardParameters { /** - * content.datafeeds.get - * @desc Retrieves a datafeed configuration from your Merchant Center account. + * Request body metadata + */ + requestBody?: Schema$AccounttaxCustomBatchRequest; + } + export interface Params$Resource$Accounttax$Get extends StandardParameters { + /** + * The ID of the account for which to get/update account tax settings. + */ + accountId?: string; + /** + * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Accounttax$List extends StandardParameters { + /** + * The maximum number of tax settings to return in the response, used for paging. + */ + maxResults?: number; + /** + * The ID of the managing account. This must be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Accounttax$Update + extends StandardParameters { + /** + * The ID of the account for which to get/update account tax settings. + */ + accountId?: string; + /** + * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + */ + merchantId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$AccountTax; + } + + export class Resource$Csses { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.csses.get + * @desc Retrieves a single CSS domain by ID. * @example * // Before running the sample: * // - Enable the API at: @@ -9046,25 +9521,22 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.datafeeds.get({ - * // The ID of the datafeed. - * datafeedId: 'placeholder-value', - * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. - * merchantId: 'placeholder-value', + * const res = await content.csses.get({ + * // Required. The ID of the CSS domain to return. + * cssDomainId: 'placeholder-value', + * // Required. The ID of the managing account. If this parameter is not the same as [cssDomainId](#cssDomainId), then this ID must be a CSS group ID and `cssDomainId` must be the ID of a CSS domain affiliated with this group. + * cssGroupId: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "attributeLanguage": "my_attributeLanguage", - * // "contentType": "my_contentType", - * // "fetchSchedule": {}, - * // "fileName": "my_fileName", - * // "format": {}, - * // "id": "my_id", - * // "kind": "my_kind", - * // "name": "my_name", - * // "targets": [] + * // "cssDomainId": "my_cssDomainId", + * // "cssGroupId": "my_cssGroupId", + * // "displayName": "my_displayName", + * // "fullName": "my_fullName", + * // "homepageUri": "my_homepageUri", + * // "labelIds": [] * // } * } * @@ -9073,59 +9545,59 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.datafeeds.get + * @alias content.csses.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.datafeedId The ID of the datafeed. - * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * @param {string} params.cssDomainId Required. The ID of the CSS domain to return. + * @param {string} params.cssGroupId Required. The ID of the managing account. If this parameter is not the same as [cssDomainId](#cssDomainId), then this ID must be a CSS group ID and `cssDomainId` must be the ID of a CSS domain affiliated with this group. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ get( - params: Params$Resource$Datafeeds$Get, + params: Params$Resource$Csses$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Datafeeds$Get, + params?: Params$Resource$Csses$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Datafeeds$Get, + params: Params$Resource$Csses$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Datafeeds$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Csses$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Datafeeds$Get, - callback: BodyResponseCallback + params: Params$Resource$Csses$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Datafeeds$Get - | BodyResponseCallback + | Params$Resource$Csses$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Get; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Csses$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Datafeeds$Get; + params = {} as Params$Resource$Csses$Get; options = {}; } @@ -9134,35 +9606,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}' + rootUrl + '/content/v2.1/{cssGroupId}/csses/{cssDomainId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: ['cssGroupId', 'cssDomainId'], + pathParams: ['cssDomainId', 'cssGroupId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.datafeeds.insert - * @desc Registers a datafeed configuration with your Merchant Center account. + * content.csses.list + * @desc Lists CSS domains affiliated with a CSS group. * @example * // Before running the sample: * // - Enable the API at: @@ -9186,39 +9659,20 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.datafeeds.insert({ - * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. - * merchantId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "attributeLanguage": "my_attributeLanguage", - * // "contentType": "my_contentType", - * // "fetchSchedule": {}, - * // "fileName": "my_fileName", - * // "format": {}, - * // "id": "my_id", - * // "kind": "my_kind", - * // "name": "my_name", - * // "targets": [] - * // } - * }, + * const res = await content.csses.list({ + * // Required. The CSS group ID of CSS domains to be listed. + * cssGroupId: 'placeholder-value', + * // The maximum number of CSS domains to return. The service may return fewer than this value. If unspecified, at most 50 CSS domains will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * pageSize: 'placeholder-value', + * // A page token, received from a previous `ListCsses` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCsses` must match the call that provided the page token. + * pageToken: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "attributeLanguage": "my_attributeLanguage", - * // "contentType": "my_contentType", - * // "fetchSchedule": {}, - * // "fileName": "my_fileName", - * // "format": {}, - * // "id": "my_id", - * // "kind": "my_kind", - * // "name": "my_name", - * // "targets": [] + * // "csses": [], + * // "nextPageToken": "my_nextPageToken" * // } * } * @@ -9227,59 +9681,63 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.datafeeds.insert + * @alias content.csses.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. - * @param {().Datafeed} params.requestBody Request body data + * @param {string} params.cssGroupId Required. The CSS group ID of CSS domains to be listed. + * @param {integer=} params.pageSize The maximum number of CSS domains to return. The service may return fewer than this value. If unspecified, at most 50 CSS domains will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string=} params.pageToken A page token, received from a previous `ListCsses` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCsses` must match the call that provided the page token. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert( - params: Params$Resource$Datafeeds$Insert, + list( + params: Params$Resource$Csses$List, options: StreamMethodOptions ): GaxiosPromise; - insert( - params?: Params$Resource$Datafeeds$Insert, + list( + params?: Params$Resource$Csses$List, options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Datafeeds$Insert, + ): GaxiosPromise; + list( + params: Params$Resource$Csses$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - insert( - params: Params$Resource$Datafeeds$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Csses$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - insert( - params: Params$Resource$Datafeeds$Insert, - callback: BodyResponseCallback + list( + params: Params$Resource$Csses$List, + callback: BodyResponseCallback ): void; - insert(callback: BodyResponseCallback): void; - insert( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Datafeeds$Insert - | BodyResponseCallback + | Params$Resource$Csses$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Insert; + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Csses$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Datafeeds$Insert; + params = {} as Params$Resource$Csses$List; options = {}; } @@ -9288,36 +9746,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace( + url: (rootUrl + '/content/v2.1/{cssGroupId}/csses').replace( /([^:]\/)\/+/g, '$1' ), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['cssGroupId'], + pathParams: ['cssGroupId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.datafeeds.list - * @desc Lists the configurations for datafeeds in your Merchant Center account. + * content.csses.updatelabels + * @desc Updates labels that are assigned to a CSS domain by its CSS group. * @example * // Before running the sample: * // - Enable the API at: @@ -9341,21 +9800,30 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.datafeeds.list({ - * // The maximum number of products to return in the response, used for paging. - * maxResults: 'placeholder-value', - * // The ID of the account that manages the datafeeds. This account cannot be a multi-client account. - * merchantId: 'placeholder-value', - * // The token returned by the previous request. - * pageToken: 'placeholder-value', + * const res = await content.csses.updatelabels({ + * // Required. The ID of the updated CSS domain. + * cssDomainId: 'placeholder-value', + * // Required. The CSS group ID of the updated CSS domain. + * cssGroupId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "labelIds": [] + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken", - * // "resources": [] + * // "cssDomainId": "my_cssDomainId", + * // "cssGroupId": "my_cssGroupId", + * // "displayName": "my_displayName", + * // "fullName": "my_fullName", + * // "homepageUri": "my_homepageUri", + * // "labelIds": [] * // } * } * @@ -9364,65 +9832,61 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.datafeeds.list + * @alias content.csses.updatelabels * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.maxResults The maximum number of products to return in the response, used for paging. - * @param {string} params.merchantId The ID of the account that manages the datafeeds. This account cannot be a multi-client account. - * @param {string=} params.pageToken The token returned by the previous request. + * @param {string} params.cssDomainId Required. The ID of the updated CSS domain. + * @param {string} params.cssGroupId Required. The CSS group ID of the updated CSS domain. + * @param {().LabelIds} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Datafeeds$List, + updatelabels( + params: Params$Resource$Csses$Updatelabels, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Datafeeds$List, + updatelabels( + params?: Params$Resource$Csses$Updatelabels, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Datafeeds$List, + ): GaxiosPromise; + updatelabels( + params: Params$Resource$Csses$Updatelabels, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Datafeeds$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + updatelabels( + params: Params$Resource$Csses$Updatelabels, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Datafeeds$List, - callback: BodyResponseCallback + updatelabels( + params: Params$Resource$Csses$Updatelabels, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + updatelabels(callback: BodyResponseCallback): void; + updatelabels( paramsOrCallback?: - | Params$Resource$Datafeeds$List - | BodyResponseCallback + | Params$Resource$Csses$Updatelabels + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$List; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Csses$Updatelabels; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Datafeeds$List; + params = {} as Params$Resource$Csses$Updatelabels; options = {}; } @@ -9431,36 +9895,85 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', + url: ( + rootUrl + + '/content/v2.1/{cssGroupId}/csses/{cssDomainId}/updatelabels' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options ), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['cssGroupId', 'cssDomainId'], + pathParams: ['cssDomainId', 'cssGroupId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Csses$Get extends StandardParameters { /** - * content.datafeeds.update - * @desc Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource. + * Required. The ID of the CSS domain to return. + */ + cssDomainId?: string; + /** + * Required. The ID of the managing account. If this parameter is not the same as [cssDomainId](#cssDomainId), then this ID must be a CSS group ID and `cssDomainId` must be the ID of a CSS domain affiliated with this group. + */ + cssGroupId?: string; + } + export interface Params$Resource$Csses$List extends StandardParameters { + /** + * Required. The CSS group ID of CSS domains to be listed. + */ + cssGroupId?: string; + /** + * The maximum number of CSS domains to return. The service may return fewer than this value. If unspecified, at most 50 CSS domains will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + pageSize?: number; + /** + * A page token, received from a previous `ListCsses` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCsses` must match the call that provided the page token. + */ + pageToken?: string; + } + export interface Params$Resource$Csses$Updatelabels + extends StandardParameters { + /** + * Required. The ID of the updated CSS domain. + */ + cssDomainId?: string; + /** + * Required. The CSS group ID of the updated CSS domain. + */ + cssGroupId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$LabelIds; + } + + export class Resource$Datafeeds { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.datafeeds.custombatch + * @desc Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request. * @example * // Before running the sample: * // - Enable the API at: @@ -9484,25 +9997,12 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.datafeeds.update({ - * // The ID of the datafeed. - * datafeedId: 'placeholder-value', - * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. - * merchantId: 'placeholder-value', - * + * const res = await content.datafeeds.custombatch({ * // Request body metadata * requestBody: { * // request body parameters * // { - * // "attributeLanguage": "my_attributeLanguage", - * // "contentType": "my_contentType", - * // "fetchSchedule": {}, - * // "fileName": "my_fileName", - * // "format": {}, - * // "id": "my_id", - * // "kind": "my_kind", - * // "name": "my_name", - * // "targets": [] + * // "entries": [] * // } * }, * }); @@ -9510,15 +10010,8 @@ export namespace content_v2_1 { * * // Example response * // { - * // "attributeLanguage": "my_attributeLanguage", - * // "contentType": "my_contentType", - * // "fetchSchedule": {}, - * // "fileName": "my_fileName", - * // "format": {}, - * // "id": "my_id", - * // "kind": "my_kind", - * // "name": "my_name", - * // "targets": [] + * // "entries": [], + * // "kind": "my_kind" * // } * } * @@ -9527,60 +10020,66 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.datafeeds.update + * @alias content.datafeeds.custombatch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.datafeedId The ID of the datafeed. - * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. - * @param {().Datafeed} params.requestBody Request body data + * @param {().DatafeedsCustomBatchRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update( - params: Params$Resource$Datafeeds$Update, + custombatch( + params: Params$Resource$Datafeeds$Custombatch, options: StreamMethodOptions ): GaxiosPromise; - update( - params?: Params$Resource$Datafeeds$Update, + custombatch( + params?: Params$Resource$Datafeeds$Custombatch, options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Datafeeds$Update, + ): GaxiosPromise; + custombatch( + params: Params$Resource$Datafeeds$Custombatch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - update( - params: Params$Resource$Datafeeds$Update, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + custombatch( + params: Params$Resource$Datafeeds$Custombatch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - update( - params: Params$Resource$Datafeeds$Update, - callback: BodyResponseCallback + custombatch( + params: Params$Resource$Datafeeds$Custombatch, + callback: BodyResponseCallback ): void; - update(callback: BodyResponseCallback): void; - update( + custombatch( + callback: BodyResponseCallback + ): void; + custombatch( paramsOrCallback?: - | Params$Resource$Datafeeds$Update - | BodyResponseCallback + | Params$Resource$Datafeeds$Custombatch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Update; + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Datafeeds$Custombatch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Datafeeds$Update; + params = {} as Params$Resource$Datafeeds$Custombatch; options = {}; } @@ -9589,121 +10088,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/datafeeds/batch').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'datafeedId'], - pathParams: ['datafeedId', 'merchantId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } - } - export interface Params$Resource$Datafeeds$Custombatch - extends StandardParameters { - /** - * Request body metadata - */ - requestBody?: Schema$DatafeedsCustomBatchRequest; - } - export interface Params$Resource$Datafeeds$Delete extends StandardParameters { - /** - * The ID of the datafeed. - */ - datafeedId?: string; /** - * The ID of the account that manages the datafeed. This account cannot be a multi-client account. - */ - merchantId?: string; - } - export interface Params$Resource$Datafeeds$Fetchnow - extends StandardParameters { - /** - * The ID of the datafeed to be fetched. - */ - datafeedId?: string; - /** - * The ID of the account that manages the datafeed. This account cannot be a multi-client account. - */ - merchantId?: string; - } - export interface Params$Resource$Datafeeds$Get extends StandardParameters { - /** - * The ID of the datafeed. - */ - datafeedId?: string; - /** - * The ID of the account that manages the datafeed. This account cannot be a multi-client account. - */ - merchantId?: string; - } - export interface Params$Resource$Datafeeds$Insert extends StandardParameters { - /** - * The ID of the account that manages the datafeed. This account cannot be a multi-client account. - */ - merchantId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Datafeed; - } - export interface Params$Resource$Datafeeds$List extends StandardParameters { - /** - * The maximum number of products to return in the response, used for paging. - */ - maxResults?: number; - /** - * The ID of the account that manages the datafeeds. This account cannot be a multi-client account. - */ - merchantId?: string; - /** - * The token returned by the previous request. - */ - pageToken?: string; - } - export interface Params$Resource$Datafeeds$Update extends StandardParameters { - /** - * The ID of the datafeed. - */ - datafeedId?: string; - /** - * The ID of the account that manages the datafeed. This account cannot be a multi-client account. - */ - merchantId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$Datafeed; - } - - export class Resource$Datafeedstatuses { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - - /** - * content.datafeedstatuses.custombatch - * @desc Gets multiple Merchant Center datafeed statuses in a single request. + * content.datafeeds.delete + * @desc Deletes a datafeed configuration from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -9727,22 +10144,13 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.datafeedstatuses.custombatch({ - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "entries": [] - * // } - * }, + * const res = await content.datafeeds.delete({ + * // The ID of the datafeed. + * datafeedId: 'placeholder-value', + * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * merchantId: 'placeholder-value', * }); * console.log(res.data); - * - * // Example response - * // { - * // "entries": [], - * // "kind": "my_kind" - * // } * } * * main().catch(e => { @@ -9750,66 +10158,57 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.datafeedstatuses.custombatch + * @alias content.datafeeds.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {().DatafeedstatusesCustomBatchRequest} params.requestBody Request body data + * @param {string} params.datafeedId The ID of the datafeed. + * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch( - params: Params$Resource$Datafeedstatuses$Custombatch, + delete( + params: Params$Resource$Datafeeds$Delete, options: StreamMethodOptions ): GaxiosPromise; - custombatch( - params?: Params$Resource$Datafeedstatuses$Custombatch, + delete( + params?: Params$Resource$Datafeeds$Delete, options?: MethodOptions - ): GaxiosPromise; - custombatch( - params: Params$Resource$Datafeedstatuses$Custombatch, + ): GaxiosPromise; + delete( + params: Params$Resource$Datafeeds$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - custombatch( - params: Params$Resource$Datafeedstatuses$Custombatch, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - custombatch( - params: Params$Resource$Datafeedstatuses$Custombatch, - callback: BodyResponseCallback + delete( + params: Params$Resource$Datafeeds$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - custombatch( - callback: BodyResponseCallback + delete( + params: Params$Resource$Datafeeds$Delete, + callback: BodyResponseCallback ): void; - custombatch( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Datafeedstatuses$Custombatch - | BodyResponseCallback + | Params$Resource$Datafeeds$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Datafeedstatuses$Custombatch; + callback?: BodyResponseCallback | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Datafeedstatuses$Custombatch; + params = {} as Params$Resource$Datafeeds$Delete; options = {}; } @@ -9818,38 +10217,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/datafeedstatuses/batch').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: ( + rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.datafeedstatuses.get - * @desc Retrieves the status of a datafeed from your Merchant Center account. + * content.datafeeds.fetchnow + * @desc Invokes a fetch for the datafeed in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -9873,13 +10270,9 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.datafeedstatuses.get({ - * // The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. - * country: 'placeholder-value', - * // The ID of the datafeed. + * const res = await content.datafeeds.fetchnow({ + * // The ID of the datafeed to be fetched. * datafeedId: 'placeholder-value', - * // The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. - * language: 'placeholder-value', * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. * merchantId: 'placeholder-value', * }); @@ -9887,16 +10280,7 @@ export namespace content_v2_1 { * * // Example response * // { - * // "country": "my_country", - * // "datafeedId": "my_datafeedId", - * // "errors": [], - * // "itemsTotal": "my_itemsTotal", - * // "itemsValid": "my_itemsValid", - * // "kind": "my_kind", - * // "language": "my_language", - * // "lastUploadDate": "my_lastUploadDate", - * // "processingStatus": "my_processingStatus", - * // "warnings": [] + * // "kind": "my_kind" * // } * } * @@ -9905,62 +10289,67 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.datafeedstatuses.get + * @alias content.datafeeds.fetchnow * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.country The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. - * @param {string} params.datafeedId The ID of the datafeed. - * @param {string=} params.language The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. + * @param {string} params.datafeedId The ID of the datafeed to be fetched. * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Datafeedstatuses$Get, + fetchnow( + params: Params$Resource$Datafeeds$Fetchnow, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Datafeedstatuses$Get, + fetchnow( + params?: Params$Resource$Datafeeds$Fetchnow, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Datafeedstatuses$Get, + ): GaxiosPromise; + fetchnow( + params: Params$Resource$Datafeeds$Fetchnow, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Datafeedstatuses$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + fetchnow( + params: Params$Resource$Datafeeds$Fetchnow, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Datafeedstatuses$Get, - callback: BodyResponseCallback + fetchnow( + params: Params$Resource$Datafeeds$Fetchnow, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + fetchnow( + callback: BodyResponseCallback + ): void; + fetchnow( paramsOrCallback?: - | Params$Resource$Datafeedstatuses$Get - | BodyResponseCallback + | Params$Resource$Datafeeds$Fetchnow + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Datafeedstatuses$Get; + {}) as Params$Resource$Datafeeds$Fetchnow; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Datafeedstatuses$Get; + params = {} as Params$Resource$Datafeeds$Fetchnow; options = {}; } @@ -9969,15 +10358,16 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}' + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options ), @@ -9987,18 +10377,18 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.datafeedstatuses.list - * @desc Lists the statuses of the datafeeds in your Merchant Center account. + * content.datafeeds.get + * @desc Retrieves a datafeed configuration from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -10022,21 +10412,25 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.datafeedstatuses.list({ - * // The maximum number of products to return in the response, used for paging. - * maxResults: 'placeholder-value', - * // The ID of the account that manages the datafeeds. This account cannot be a multi-client account. + * const res = await content.datafeeds.get({ + * // The ID of the datafeed. + * datafeedId: 'placeholder-value', + * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The token returned by the previous request. - * pageToken: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { + * // "attributeLanguage": "my_attributeLanguage", + * // "contentType": "my_contentType", + * // "fetchSchedule": {}, + * // "fileName": "my_fileName", + * // "format": {}, + * // "id": "my_id", * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken", - * // "resources": [] + * // "name": "my_name", + * // "targets": [] * // } * } * @@ -10045,68 +10439,59 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.datafeedstatuses.list + * @alias content.datafeeds.get * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.maxResults The maximum number of products to return in the response, used for paging. - * @param {string} params.merchantId The ID of the account that manages the datafeeds. This account cannot be a multi-client account. - * @param {string=} params.pageToken The token returned by the previous request. + * @param {string} params.datafeedId The ID of the datafeed. + * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Datafeedstatuses$List, + get( + params: Params$Resource$Datafeeds$Get, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Datafeedstatuses$List, + get( + params?: Params$Resource$Datafeeds$Get, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Datafeedstatuses$List, + ): GaxiosPromise; + get( + params: Params$Resource$Datafeeds$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Datafeedstatuses$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Datafeedstatuses$List, - callback: BodyResponseCallback + get( + params: Params$Resource$Datafeeds$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + get( + params: Params$Resource$Datafeeds$Get, + callback: BodyResponseCallback ): void; - list( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Datafeedstatuses$List - | BodyResponseCallback + | Params$Resource$Datafeeds$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Datafeedstatuses$List; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Datafeedstatuses$List; + params = {} as Params$Resource$Datafeeds$Get; options = {}; } @@ -10115,86 +10500,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/datafeedstatuses' + rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Datafeedstatuses$Custombatch - extends StandardParameters { - /** - * Request body metadata - */ - requestBody?: Schema$DatafeedstatusesCustomBatchRequest; - } - export interface Params$Resource$Datafeedstatuses$Get - extends StandardParameters { - /** - * The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. - */ - country?: string; - /** - * The ID of the datafeed. - */ - datafeedId?: string; - /** - * The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. - */ - language?: string; - /** - * The ID of the account that manages the datafeed. This account cannot be a multi-client account. - */ - merchantId?: string; - } - export interface Params$Resource$Datafeedstatuses$List - extends StandardParameters { - /** - * The maximum number of products to return in the response, used for paging. - */ - maxResults?: number; - /** - * The ID of the account that manages the datafeeds. This account cannot be a multi-client account. - */ - merchantId?: string; - /** - * The token returned by the previous request. - */ - pageToken?: string; - } - - export class Resource$Liasettings { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * content.liasettings.custombatch - * @desc Retrieves and/or updates the LIA settings of multiple accounts in a single request. + * content.datafeeds.insert + * @desc Registers a datafeed configuration with your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -10218,12 +10553,23 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.liasettings.custombatch({ + * const res = await content.datafeeds.insert({ + * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * merchantId: 'placeholder-value', + * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "entries": [] + * // "attributeLanguage": "my_attributeLanguage", + * // "contentType": "my_contentType", + * // "fetchSchedule": {}, + * // "fileName": "my_fileName", + * // "format": {}, + * // "id": "my_id", + * // "kind": "my_kind", + * // "name": "my_name", + * // "targets": [] * // } * }, * }); @@ -10231,8 +10577,15 @@ export namespace content_v2_1 { * * // Example response * // { - * // "entries": [], - * // "kind": "my_kind" + * // "attributeLanguage": "my_attributeLanguage", + * // "contentType": "my_contentType", + * // "fetchSchedule": {}, + * // "fileName": "my_fileName", + * // "format": {}, + * // "id": "my_id", + * // "kind": "my_kind", + * // "name": "my_name", + * // "targets": [] * // } * } * @@ -10241,66 +10594,59 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.liasettings.custombatch + * @alias content.datafeeds.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {().LiasettingsCustomBatchRequest} params.requestBody Request body data + * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * @param {().Datafeed} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch( - params: Params$Resource$Liasettings$Custombatch, + insert( + params: Params$Resource$Datafeeds$Insert, options: StreamMethodOptions ): GaxiosPromise; - custombatch( - params?: Params$Resource$Liasettings$Custombatch, + insert( + params?: Params$Resource$Datafeeds$Insert, options?: MethodOptions - ): GaxiosPromise; - custombatch( - params: Params$Resource$Liasettings$Custombatch, + ): GaxiosPromise; + insert( + params: Params$Resource$Datafeeds$Insert, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - custombatch( - params: Params$Resource$Liasettings$Custombatch, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - custombatch( - params: Params$Resource$Liasettings$Custombatch, - callback: BodyResponseCallback + insert( + params: Params$Resource$Datafeeds$Insert, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - custombatch( - callback: BodyResponseCallback + insert( + params: Params$Resource$Datafeeds$Insert, + callback: BodyResponseCallback ): void; - custombatch( + insert(callback: BodyResponseCallback): void; + insert( paramsOrCallback?: - | Params$Resource$Liasettings$Custombatch - | BodyResponseCallback + | Params$Resource$Datafeeds$Insert + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Liasettings$Custombatch; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Insert; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liasettings$Custombatch; + params = {} as Params$Resource$Datafeeds$Insert; options = {}; } @@ -10309,11 +10655,12 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/liasettings/batch').replace( + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace( /([^:]\/)\/+/g, '$1' ), @@ -10322,25 +10669,23 @@ export namespace content_v2_1 { options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.liasettings.get - * @desc Retrieves the LIA settings of the account. + * content.datafeeds.list + * @desc Lists the configurations for datafeeds in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -10364,19 +10709,21 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.liasettings.get({ - * // The ID of the account for which to get or update LIA settings. - * accountId: 'placeholder-value', - * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * const res = await content.datafeeds.list({ + * // The maximum number of products to return in the response, used for paging. + * maxResults: 'placeholder-value', + * // The ID of the account that manages the datafeeds. This account cannot be a multi-client account. * merchantId: 'placeholder-value', + * // The token returned by the previous request. + * pageToken: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "accountId": "my_accountId", - * // "countrySettings": [], - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "resources": [] * // } * } * @@ -10385,59 +10732,65 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.liasettings.get + * @alias content.datafeeds.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.accountId The ID of the account for which to get or update LIA settings. - * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * @param {integer=} params.maxResults The maximum number of products to return in the response, used for paging. + * @param {string} params.merchantId The ID of the account that manages the datafeeds. This account cannot be a multi-client account. + * @param {string=} params.pageToken The token returned by the previous request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Liasettings$Get, + list( + params: Params$Resource$Datafeeds$List, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Liasettings$Get, + list( + params?: Params$Resource$Datafeeds$List, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Liasettings$Get, + ): GaxiosPromise; + list( + params: Params$Resource$Datafeeds$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Liasettings$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Datafeeds$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Liasettings$Get, - callback: BodyResponseCallback + list( + params: Params$Resource$Datafeeds$List, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Liasettings$Get - | BodyResponseCallback + | Params$Resource$Datafeeds$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Liasettings$Get; + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liasettings$Get; + params = {} as Params$Resource$Datafeeds$List; options = {}; } @@ -10446,35 +10799,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}' - ).replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.liasettings.getaccessiblegmbaccounts - * @desc Retrieves the list of accessible Google My Business accounts. + * content.datafeeds.update + * @desc Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource. * @example * // Before running the sample: * // - Enable the API at: @@ -10498,19 +10853,41 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.liasettings.getaccessiblegmbaccounts({ - * // The ID of the account for which to retrieve accessible Google My Business accounts. - * accountId: 'placeholder-value', - * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * const res = await content.datafeeds.update({ + * // The ID of the datafeed. + * datafeedId: 'placeholder-value', + * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. * merchantId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "attributeLanguage": "my_attributeLanguage", + * // "contentType": "my_contentType", + * // "fetchSchedule": {}, + * // "fileName": "my_fileName", + * // "format": {}, + * // "id": "my_id", + * // "kind": "my_kind", + * // "name": "my_name", + * // "targets": [] + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "accountId": "my_accountId", - * // "gmbAccounts": [], - * // "kind": "my_kind" + * // "attributeLanguage": "my_attributeLanguage", + * // "contentType": "my_contentType", + * // "fetchSchedule": {}, + * // "fileName": "my_fileName", + * // "format": {}, + * // "id": "my_id", + * // "kind": "my_kind", + * // "name": "my_name", + * // "targets": [] * // } * } * @@ -10519,81 +10896,60 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.liasettings.getaccessiblegmbaccounts + * @alias content.datafeeds.update * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.accountId The ID of the account for which to retrieve accessible Google My Business accounts. - * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * @param {string} params.datafeedId The ID of the datafeed. + * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * @param {().Datafeed} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getaccessiblegmbaccounts( - params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, + update( + params: Params$Resource$Datafeeds$Update, options: StreamMethodOptions ): GaxiosPromise; - getaccessiblegmbaccounts( - params?: Params$Resource$Liasettings$Getaccessiblegmbaccounts, + update( + params?: Params$Resource$Datafeeds$Update, options?: MethodOptions - ): GaxiosPromise; - getaccessiblegmbaccounts( - params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, + ): GaxiosPromise; + update( + params: Params$Resource$Datafeeds$Update, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - getaccessiblegmbaccounts( - params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, - options: - | MethodOptions - | BodyResponseCallback< - Schema$LiasettingsGetAccessibleGmbAccountsResponse - >, - callback: BodyResponseCallback< - Schema$LiasettingsGetAccessibleGmbAccountsResponse - > - ): void; - getaccessiblegmbaccounts( - params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, - callback: BodyResponseCallback< - Schema$LiasettingsGetAccessibleGmbAccountsResponse - > + update( + params: Params$Resource$Datafeeds$Update, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - getaccessiblegmbaccounts( - callback: BodyResponseCallback< - Schema$LiasettingsGetAccessibleGmbAccountsResponse - > + update( + params: Params$Resource$Datafeeds$Update, + callback: BodyResponseCallback ): void; - getaccessiblegmbaccounts( + update(callback: BodyResponseCallback): void; + update( paramsOrCallback?: - | Params$Resource$Liasettings$Getaccessiblegmbaccounts - | BodyResponseCallback< - Schema$LiasettingsGetAccessibleGmbAccountsResponse - > + | Params$Resource$Datafeeds$Update + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback< - Schema$LiasettingsGetAccessibleGmbAccountsResponse - > + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback< - Schema$LiasettingsGetAccessibleGmbAccountsResponse - > + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Liasettings$Getaccessiblegmbaccounts; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Datafeeds$Update; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liasettings$Getaccessiblegmbaccounts; + params = {} as Params$Resource$Datafeeds$Update; options = {}; } @@ -10602,143 +10958,228 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts' + rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PUT', }, options ), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest< - Schema$LiasettingsGetAccessibleGmbAccountsResponse - >(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Datafeeds$Custombatch + extends StandardParameters { /** - * content.liasettings.list - * @desc Lists the LIA settings of the sub-accounts in your Merchant Center account. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/content.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const content = google.content('v2.1'); - * - * async function main() { - * const auth = new google.auth.GoogleAuth({ - * // Scopes can be specified either as an array or as a single, space-delimited string. - * scopes: ['https://www.googleapis.com/auth/content'], - * }); - * - * // Acquire an auth client, and bind it to all future calls - * const authClient = await auth.getClient(); - * google.options({auth: authClient}); - * - * // Do the magic - * const res = await content.liasettings.list({ - * // The maximum number of LIA settings to return in the response, used for paging. - * maxResults: 'placeholder-value', - * // The ID of the managing account. This must be a multi-client account. - * merchantId: 'placeholder-value', - * // The token returned by the previous request. - * pageToken: 'placeholder-value', - * }); - * console.log(res.data); - * - * // Example response - * // { - * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken", - * // "resources": [] - * // } - * } - * - * main().catch(e => { - * console.error(e); + * Request body metadata + */ + requestBody?: Schema$DatafeedsCustomBatchRequest; + } + export interface Params$Resource$Datafeeds$Delete extends StandardParameters { + /** + * The ID of the datafeed. + */ + datafeedId?: string; + /** + * The ID of the account that manages the datafeed. This account cannot be a multi-client account. + */ + merchantId?: string; + } + export interface Params$Resource$Datafeeds$Fetchnow + extends StandardParameters { + /** + * The ID of the datafeed to be fetched. + */ + datafeedId?: string; + /** + * The ID of the account that manages the datafeed. This account cannot be a multi-client account. + */ + merchantId?: string; + } + export interface Params$Resource$Datafeeds$Get extends StandardParameters { + /** + * The ID of the datafeed. + */ + datafeedId?: string; + /** + * The ID of the account that manages the datafeed. This account cannot be a multi-client account. + */ + merchantId?: string; + } + export interface Params$Resource$Datafeeds$Insert extends StandardParameters { + /** + * The ID of the account that manages the datafeed. This account cannot be a multi-client account. + */ + merchantId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Datafeed; + } + export interface Params$Resource$Datafeeds$List extends StandardParameters { + /** + * The maximum number of products to return in the response, used for paging. + */ + maxResults?: number; + /** + * The ID of the account that manages the datafeeds. This account cannot be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Datafeeds$Update extends StandardParameters { + /** + * The ID of the datafeed. + */ + datafeedId?: string; + /** + * The ID of the account that manages the datafeed. This account cannot be a multi-client account. + */ + merchantId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Datafeed; + } + + export class Resource$Datafeedstatuses { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.datafeedstatuses.custombatch + * @desc Gets multiple Merchant Center datafeed statuses in a single request. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.datafeedstatuses.custombatch({ + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "entries": [] + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "entries": [], + * // "kind": "my_kind" + * // } + * } + * + * main().catch(e => { + * console.error(e); * throw e; * }); * - * @alias content.liasettings.list + * @alias content.datafeedstatuses.custombatch * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.maxResults The maximum number of LIA settings to return in the response, used for paging. - * @param {string} params.merchantId The ID of the managing account. This must be a multi-client account. - * @param {string=} params.pageToken The token returned by the previous request. + * @param {().DatafeedstatusesCustomBatchRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Liasettings$List, + custombatch( + params: Params$Resource$Datafeedstatuses$Custombatch, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Liasettings$List, + custombatch( + params?: Params$Resource$Datafeedstatuses$Custombatch, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Liasettings$List, + ): GaxiosPromise; + custombatch( + params: Params$Resource$Datafeedstatuses$Custombatch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Liasettings$List, + custombatch( + params: Params$Resource$Datafeedstatuses$Custombatch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Liasettings$List, - callback: BodyResponseCallback + custombatch( + params: Params$Resource$Datafeedstatuses$Custombatch, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + custombatch( + callback: BodyResponseCallback + ): void; + custombatch( paramsOrCallback?: - | Params$Resource$Liasettings$List - | BodyResponseCallback + | Params$Resource$Datafeedstatuses$Custombatch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Liasettings$List; + let params = (paramsOrCallback || + {}) as Params$Resource$Datafeedstatuses$Custombatch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liasettings$List; + params = {} as Params$Resource$Datafeedstatuses$Custombatch; options = {}; } @@ -10747,36 +11188,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/{merchantId}/liasettings').replace( + url: (rootUrl + '/content/v2.1/datafeedstatuses/batch').replace( /([^:]\/)\/+/g, '$1' ), - method: 'GET', + method: 'POST', }, options ), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * content.liasettings.listposdataproviders - * @desc Retrieves the list of POS data providers that have active settings for the all eiligible countries. + * content.datafeedstatuses.get + * @desc Retrieves the status of a datafeed from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -10800,13 +11244,30 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.liasettings.listposdataproviders({}); + * const res = await content.datafeedstatuses.get({ + * // The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. + * country: 'placeholder-value', + * // The ID of the datafeed. + * datafeedId: 'placeholder-value', + * // The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. + * language: 'placeholder-value', + * // The ID of the account that manages the datafeed. This account cannot be a multi-client account. + * merchantId: 'placeholder-value', + * }); * console.log(res.data); * * // Example response * // { + * // "country": "my_country", + * // "datafeedId": "my_datafeedId", + * // "errors": [], + * // "itemsTotal": "my_itemsTotal", + * // "itemsValid": "my_itemsValid", * // "kind": "my_kind", - * // "posDataProviders": [] + * // "language": "my_language", + * // "lastUploadDate": "my_lastUploadDate", + * // "processingStatus": "my_processingStatus", + * // "warnings": [] * // } * } * @@ -10815,71 +11276,62 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.liasettings.listposdataproviders + * @alias content.datafeedstatuses.get * @memberOf! () * - * @param {object=} params Parameters for request + * @param {object} params Parameters for request + * @param {string=} params.country The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. + * @param {string} params.datafeedId The ID of the datafeed. + * @param {string=} params.language The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. + * @param {string} params.merchantId The ID of the account that manages the datafeed. This account cannot be a multi-client account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listposdataproviders( - params: Params$Resource$Liasettings$Listposdataproviders, + get( + params: Params$Resource$Datafeedstatuses$Get, options: StreamMethodOptions ): GaxiosPromise; - listposdataproviders( - params?: Params$Resource$Liasettings$Listposdataproviders, + get( + params?: Params$Resource$Datafeedstatuses$Get, options?: MethodOptions - ): GaxiosPromise; - listposdataproviders( - params: Params$Resource$Liasettings$Listposdataproviders, + ): GaxiosPromise; + get( + params: Params$Resource$Datafeedstatuses$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - listposdataproviders( - params: Params$Resource$Liasettings$Listposdataproviders, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback< - Schema$LiasettingsListPosDataProvidersResponse - > + get( + params: Params$Resource$Datafeedstatuses$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - listposdataproviders( - params: Params$Resource$Liasettings$Listposdataproviders, - callback: BodyResponseCallback< - Schema$LiasettingsListPosDataProvidersResponse - > - ): void; - listposdataproviders( - callback: BodyResponseCallback< - Schema$LiasettingsListPosDataProvidersResponse - > + get( + params: Params$Resource$Datafeedstatuses$Get, + callback: BodyResponseCallback ): void; - listposdataproviders( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Liasettings$Listposdataproviders - | BodyResponseCallback + | Params$Resource$Datafeedstatuses$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Liasettings$Listposdataproviders; + {}) as Params$Resource$Datafeedstatuses$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liasettings$Listposdataproviders; + params = {} as Params$Resource$Datafeedstatuses$Get; options = {}; } @@ -10888,37 +11340,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/liasettings/posdataproviders' + rootUrl + + '/content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.liasettings.requestgmbaccess - * @desc Requests access to a specified Google My Business account. + * content.datafeedstatuses.list + * @desc Lists the statuses of the datafeeds in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -10942,19 +11394,21 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.liasettings.requestgmbaccess({ - * // The ID of the account for which GMB access is requested. - * accountId: 'placeholder-value', - * // The email of the Google My Business account. - * gmbEmail: 'placeholder-value', - * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * const res = await content.datafeedstatuses.list({ + * // The maximum number of products to return in the response, used for paging. + * maxResults: 'placeholder-value', + * // The ID of the account that manages the datafeeds. This account cannot be a multi-client account. * merchantId: 'placeholder-value', + * // The token returned by the previous request. + * pageToken: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "resources": [] * // } * } * @@ -10963,68 +11417,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.liasettings.requestgmbaccess + * @alias content.datafeedstatuses.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.accountId The ID of the account for which GMB access is requested. - * @param {string} params.gmbEmail The email of the Google My Business account. - * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * @param {integer=} params.maxResults The maximum number of products to return in the response, used for paging. + * @param {string} params.merchantId The ID of the account that manages the datafeeds. This account cannot be a multi-client account. + * @param {string=} params.pageToken The token returned by the previous request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - requestgmbaccess( - params: Params$Resource$Liasettings$Requestgmbaccess, + list( + params: Params$Resource$Datafeedstatuses$List, options: StreamMethodOptions ): GaxiosPromise; - requestgmbaccess( - params?: Params$Resource$Liasettings$Requestgmbaccess, + list( + params?: Params$Resource$Datafeedstatuses$List, options?: MethodOptions - ): GaxiosPromise; - requestgmbaccess( - params: Params$Resource$Liasettings$Requestgmbaccess, + ): GaxiosPromise; + list( + params: Params$Resource$Datafeedstatuses$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - requestgmbaccess( - params: Params$Resource$Liasettings$Requestgmbaccess, + list( + params: Params$Resource$Datafeedstatuses$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - requestgmbaccess( - params: Params$Resource$Liasettings$Requestgmbaccess, - callback: BodyResponseCallback + list( + params: Params$Resource$Datafeedstatuses$List, + callback: BodyResponseCallback ): void; - requestgmbaccess( - callback: BodyResponseCallback + list( + callback: BodyResponseCallback ): void; - requestgmbaccess( + list( paramsOrCallback?: - | Params$Resource$Liasettings$Requestgmbaccess - | BodyResponseCallback + | Params$Resource$Datafeedstatuses$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Liasettings$Requestgmbaccess; + {}) as Params$Resource$Datafeedstatuses$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liasettings$Requestgmbaccess; + params = {} as Params$Resource$Datafeedstatuses$List; options = {}; } @@ -11033,38 +11487,87 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess' + rootUrl + '/content/v2.1/{merchantId}/datafeedstatuses' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'accountId', 'gmbEmail'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } + } + export interface Params$Resource$Datafeedstatuses$Custombatch + extends StandardParameters { /** - * content.liasettings.requestinventoryverification - * @desc Requests inventory validation for the specified country. + * Request body metadata + */ + requestBody?: Schema$DatafeedstatusesCustomBatchRequest; + } + export interface Params$Resource$Datafeedstatuses$Get + extends StandardParameters { + /** + * The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. + */ + country?: string; + /** + * The ID of the datafeed. + */ + datafeedId?: string; + /** + * The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target. + */ + language?: string; + /** + * The ID of the account that manages the datafeed. This account cannot be a multi-client account. + */ + merchantId?: string; + } + export interface Params$Resource$Datafeedstatuses$List + extends StandardParameters { + /** + * The maximum number of products to return in the response, used for paging. + */ + maxResults?: number; + /** + * The ID of the account that manages the datafeeds. This account cannot be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + export class Resource$Liasettings { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.liasettings.custombatch + * @desc Retrieves and/or updates the LIA settings of multiple accounts in a single request. * @example * // Before running the sample: * // - Enable the API at: @@ -11088,18 +11591,20 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.liasettings.requestinventoryverification({ - * // The ID of the account that manages the order. This cannot be a multi-client account. - * accountId: 'placeholder-value', - * // The country for which inventory validation is requested. - * country: 'placeholder-value', - * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - * merchantId: 'placeholder-value', + * const res = await content.liasettings.custombatch({ + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "entries": [] + * // } + * }, * }); * console.log(res.data); * * // Example response * // { + * // "entries": [], * // "kind": "my_kind" * // } * } @@ -11109,82 +11614,66 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.liasettings.requestinventoryverification + * @alias content.liasettings.custombatch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.accountId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.country The country for which inventory validation is requested. - * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * @param {().LiasettingsCustomBatchRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - requestinventoryverification( - params: Params$Resource$Liasettings$Requestinventoryverification, + custombatch( + params: Params$Resource$Liasettings$Custombatch, options: StreamMethodOptions ): GaxiosPromise; - requestinventoryverification( - params?: Params$Resource$Liasettings$Requestinventoryverification, + custombatch( + params?: Params$Resource$Liasettings$Custombatch, options?: MethodOptions - ): GaxiosPromise; - requestinventoryverification( - params: Params$Resource$Liasettings$Requestinventoryverification, + ): GaxiosPromise; + custombatch( + params: Params$Resource$Liasettings$Custombatch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - requestinventoryverification( - params: Params$Resource$Liasettings$Requestinventoryverification, + custombatch( + params: Params$Resource$Liasettings$Custombatch, options: | MethodOptions - | BodyResponseCallback< - Schema$LiasettingsRequestInventoryVerificationResponse - >, - callback: BodyResponseCallback< - Schema$LiasettingsRequestInventoryVerificationResponse - > + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - requestinventoryverification( - params: Params$Resource$Liasettings$Requestinventoryverification, - callback: BodyResponseCallback< - Schema$LiasettingsRequestInventoryVerificationResponse - > + custombatch( + params: Params$Resource$Liasettings$Custombatch, + callback: BodyResponseCallback ): void; - requestinventoryverification( - callback: BodyResponseCallback< - Schema$LiasettingsRequestInventoryVerificationResponse - > + custombatch( + callback: BodyResponseCallback ): void; - requestinventoryverification( + custombatch( paramsOrCallback?: - | Params$Resource$Liasettings$Requestinventoryverification - | BodyResponseCallback< - Schema$LiasettingsRequestInventoryVerificationResponse - > + | Params$Resource$Liasettings$Custombatch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback< - Schema$LiasettingsRequestInventoryVerificationResponse - > + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback< - Schema$LiasettingsRequestInventoryVerificationResponse - > + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Liasettings$Requestinventoryverification; + {}) as Params$Resource$Liasettings$Custombatch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liasettings$Requestinventoryverification; + params = {} as Params$Resource$Liasettings$Custombatch; options = {}; } @@ -11193,37 +11682,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}' - ).replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/liasettings/batch').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'accountId', 'country'], - pathParams: ['accountId', 'country', 'merchantId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest< - Schema$LiasettingsRequestInventoryVerificationResponse - >(parameters, callback as BodyResponseCallback<{} | void>); + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); } else { - return createAPIRequest< - Schema$LiasettingsRequestInventoryVerificationResponse - >(parameters); + return createAPIRequest( + parameters + ); } } /** - * content.liasettings.setinventoryverificationcontact - * @desc Sets the inventory verification contract for the specified country. + * content.liasettings.get + * @desc Retrieves the LIA settings of the account. * @example * // Before running the sample: * // - Enable the API at: @@ -11247,17 +11738,9 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.liasettings.setinventoryverificationcontact({ - * // The ID of the account that manages the order. This cannot be a multi-client account. + * const res = await content.liasettings.get({ + * // The ID of the account for which to get or update LIA settings. * accountId: 'placeholder-value', - * // The email of the inventory verification contact. - * contactEmail: 'placeholder-value', - * // The name of the inventory verification contact. - * contactName: 'placeholder-value', - * // The country for which inventory verification is requested. - * country: 'placeholder-value', - * // The language for which inventory verification is requested. - * language: 'placeholder-value', * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * merchantId: 'placeholder-value', * }); @@ -11265,6 +11748,8 @@ export namespace content_v2_1 { * * // Example response * // { + * // "accountId": "my_accountId", + * // "countrySettings": [], * // "kind": "my_kind" * // } * } @@ -11274,85 +11759,59 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.liasettings.setinventoryverificationcontact + * @alias content.liasettings.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.accountId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.contactEmail The email of the inventory verification contact. - * @param {string} params.contactName The name of the inventory verification contact. - * @param {string} params.country The country for which inventory verification is requested. - * @param {string} params.language The language for which inventory verification is requested. + * @param {string} params.accountId The ID of the account for which to get or update LIA settings. * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setinventoryverificationcontact( - params: Params$Resource$Liasettings$Setinventoryverificationcontact, + get( + params: Params$Resource$Liasettings$Get, options: StreamMethodOptions ): GaxiosPromise; - setinventoryverificationcontact( - params?: Params$Resource$Liasettings$Setinventoryverificationcontact, + get( + params?: Params$Resource$Liasettings$Get, options?: MethodOptions - ): GaxiosPromise; - setinventoryverificationcontact( - params: Params$Resource$Liasettings$Setinventoryverificationcontact, + ): GaxiosPromise; + get( + params: Params$Resource$Liasettings$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - setinventoryverificationcontact( - params: Params$Resource$Liasettings$Setinventoryverificationcontact, - options: - | MethodOptions - | BodyResponseCallback< - Schema$LiasettingsSetInventoryVerificationContactResponse - >, - callback: BodyResponseCallback< - Schema$LiasettingsSetInventoryVerificationContactResponse - > - ): void; - setinventoryverificationcontact( - params: Params$Resource$Liasettings$Setinventoryverificationcontact, - callback: BodyResponseCallback< - Schema$LiasettingsSetInventoryVerificationContactResponse - > + get( + params: Params$Resource$Liasettings$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - setinventoryverificationcontact( - callback: BodyResponseCallback< - Schema$LiasettingsSetInventoryVerificationContactResponse - > + get( + params: Params$Resource$Liasettings$Get, + callback: BodyResponseCallback ): void; - setinventoryverificationcontact( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Liasettings$Setinventoryverificationcontact - | BodyResponseCallback< - Schema$LiasettingsSetInventoryVerificationContactResponse - > + | Params$Resource$Liasettings$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback< - Schema$LiasettingsSetInventoryVerificationContactResponse - > + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback< - Schema$LiasettingsSetInventoryVerificationContactResponse - > + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Liasettings$Setinventoryverificationcontact; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Liasettings$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liasettings$Setinventoryverificationcontact; + params = {} as Params$Resource$Liasettings$Get; options = {}; } @@ -11361,44 +11820,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact' + rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: [ - 'merchantId', - 'accountId', - 'contactEmail', - 'contactName', - 'country', - 'language', - ], + requiredParams: ['merchantId', 'accountId'], pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest< - Schema$LiasettingsSetInventoryVerificationContactResponse - >(parameters, callback as BodyResponseCallback<{} | void>); + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); } else { - return createAPIRequest< - Schema$LiasettingsSetInventoryVerificationContactResponse - >(parameters); + return createAPIRequest(parameters); } } /** - * content.liasettings.setposdataprovider - * @desc Sets the POS data provider for the specified country. + * content.liasettings.getaccessiblegmbaccounts + * @desc Retrieves the list of accessible Google My Business accounts. * @example * // Before running the sample: * // - Enable the API at: @@ -11422,22 +11873,18 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.liasettings.setposdataprovider({ + * const res = await content.liasettings.getaccessiblegmbaccounts({ * // The ID of the account for which to retrieve accessible Google My Business accounts. * accountId: 'placeholder-value', - * // The country for which the POS data provider is selected. - * country: 'placeholder-value', * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * merchantId: 'placeholder-value', - * // The ID of POS data provider. - * posDataProviderId: 'placeholder-value', - * // The account ID by which this merchant is known to the POS data provider. - * posExternalAccountId: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { + * // "accountId": "my_accountId", + * // "gmbAccounts": [], * // "kind": "my_kind" * // } * } @@ -11447,76 +11894,81 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.liasettings.setposdataprovider + * @alias content.liasettings.getaccessiblegmbaccounts * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.accountId The ID of the account for which to retrieve accessible Google My Business accounts. - * @param {string} params.country The country for which the POS data provider is selected. * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - * @param {string=} params.posDataProviderId The ID of POS data provider. - * @param {string=} params.posExternalAccountId The account ID by which this merchant is known to the POS data provider. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setposdataprovider( - params: Params$Resource$Liasettings$Setposdataprovider, + getaccessiblegmbaccounts( + params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, options: StreamMethodOptions ): GaxiosPromise; - setposdataprovider( - params?: Params$Resource$Liasettings$Setposdataprovider, + getaccessiblegmbaccounts( + params?: Params$Resource$Liasettings$Getaccessiblegmbaccounts, options?: MethodOptions - ): GaxiosPromise; - setposdataprovider( - params: Params$Resource$Liasettings$Setposdataprovider, + ): GaxiosPromise; + getaccessiblegmbaccounts( + params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - setposdataprovider( - params: Params$Resource$Liasettings$Setposdataprovider, + getaccessiblegmbaccounts( + params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, options: | MethodOptions - | BodyResponseCallback, + | BodyResponseCallback< + Schema$LiasettingsGetAccessibleGmbAccountsResponse + >, callback: BodyResponseCallback< - Schema$LiasettingsSetPosDataProviderResponse + Schema$LiasettingsGetAccessibleGmbAccountsResponse > ): void; - setposdataprovider( - params: Params$Resource$Liasettings$Setposdataprovider, + getaccessiblegmbaccounts( + params: Params$Resource$Liasettings$Getaccessiblegmbaccounts, callback: BodyResponseCallback< - Schema$LiasettingsSetPosDataProviderResponse + Schema$LiasettingsGetAccessibleGmbAccountsResponse > ): void; - setposdataprovider( + getaccessiblegmbaccounts( callback: BodyResponseCallback< - Schema$LiasettingsSetPosDataProviderResponse + Schema$LiasettingsGetAccessibleGmbAccountsResponse > ): void; - setposdataprovider( + getaccessiblegmbaccounts( paramsOrCallback?: - | Params$Resource$Liasettings$Setposdataprovider - | BodyResponseCallback + | Params$Resource$Liasettings$Getaccessiblegmbaccounts + | BodyResponseCallback< + Schema$LiasettingsGetAccessibleGmbAccountsResponse + > | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback< + Schema$LiasettingsGetAccessibleGmbAccountsResponse + > | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback< + Schema$LiasettingsGetAccessibleGmbAccountsResponse + > | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Liasettings$Setposdataprovider; + {}) as Params$Resource$Liasettings$Getaccessiblegmbaccounts; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liasettings$Setposdataprovider; + params = {} as Params$Resource$Liasettings$Getaccessiblegmbaccounts; options = {}; } @@ -11525,38 +11977,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider' + '/content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'accountId', 'country'], + requiredParams: ['merchantId', 'accountId'], pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest< + Schema$LiasettingsGetAccessibleGmbAccountsResponse + >(parameters); } } /** - * content.liasettings.update - * @desc Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource. + * content.liasettings.list + * @desc Lists the LIA settings of the sub-accounts in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -11580,29 +12033,21 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.liasettings.update({ - * // The ID of the account for which to get or update LIA settings. - * accountId: 'placeholder-value', - * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * const res = await content.liasettings.list({ + * // The maximum number of LIA settings to return in the response, used for paging. + * maxResults: 'placeholder-value', + * // The ID of the managing account. This must be a multi-client account. * merchantId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "accountId": "my_accountId", - * // "countrySettings": [], - * // "kind": "my_kind" - * // } - * }, - * }); - * console.log(res.data); + * // The token returned by the previous request. + * pageToken: 'placeholder-value', + * }); + * console.log(res.data); * * // Example response * // { - * // "accountId": "my_accountId", - * // "countrySettings": [], - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "resources": [] * // } * } * @@ -11611,61 +12056,65 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.liasettings.update + * @alias content.liasettings.list * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.accountId The ID of the account for which to get or update LIA settings. - * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - * @param {().LiaSettings} params.requestBody Request body data + * @param {integer=} params.maxResults The maximum number of LIA settings to return in the response, used for paging. + * @param {string} params.merchantId The ID of the managing account. This must be a multi-client account. + * @param {string=} params.pageToken The token returned by the previous request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update( - params: Params$Resource$Liasettings$Update, + list( + params: Params$Resource$Liasettings$List, options: StreamMethodOptions ): GaxiosPromise; - update( - params?: Params$Resource$Liasettings$Update, + list( + params?: Params$Resource$Liasettings$List, options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Liasettings$Update, + ): GaxiosPromise; + list( + params: Params$Resource$Liasettings$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - update( - params: Params$Resource$Liasettings$Update, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Liasettings$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - update( - params: Params$Resource$Liasettings$Update, - callback: BodyResponseCallback + list( + params: Params$Resource$Liasettings$List, + callback: BodyResponseCallback ): void; - update(callback: BodyResponseCallback): void; - update( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Liasettings$Update - | BodyResponseCallback + | Params$Resource$Liasettings$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Liasettings$Update; + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Liasettings$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Liasettings$Update; + params = {} as Params$Resource$Liasettings$List; options = {}; } @@ -11674,183 +12123,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + url: (rootUrl + '/content/v2.1/{merchantId}/liasettings').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'accountId'], - pathParams: ['accountId', 'merchantId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Liasettings$Custombatch - extends StandardParameters { - /** - * Request body metadata - */ - requestBody?: Schema$LiasettingsCustomBatchRequest; - } - export interface Params$Resource$Liasettings$Get extends StandardParameters { - /** - * The ID of the account for which to get or update LIA settings. - */ - accountId?: string; - /** - * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - */ - merchantId?: string; - } - export interface Params$Resource$Liasettings$Getaccessiblegmbaccounts - extends StandardParameters { - /** - * The ID of the account for which to retrieve accessible Google My Business accounts. - */ - accountId?: string; - /** - * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - */ - merchantId?: string; - } - export interface Params$Resource$Liasettings$List extends StandardParameters { - /** - * The maximum number of LIA settings to return in the response, used for paging. - */ - maxResults?: number; - /** - * The ID of the managing account. This must be a multi-client account. - */ - merchantId?: string; - /** - * The token returned by the previous request. - */ - pageToken?: string; - } - export interface Params$Resource$Liasettings$Listposdataproviders - extends StandardParameters {} - export interface Params$Resource$Liasettings$Requestgmbaccess - extends StandardParameters { - /** - * The ID of the account for which GMB access is requested. - */ - accountId?: string; - /** - * The email of the Google My Business account. - */ - gmbEmail?: string; - /** - * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - */ - merchantId?: string; - } - export interface Params$Resource$Liasettings$Requestinventoryverification - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - accountId?: string; - /** - * The country for which inventory validation is requested. - */ - country?: string; - /** - * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - */ - merchantId?: string; - } - export interface Params$Resource$Liasettings$Setinventoryverificationcontact - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - accountId?: string; - /** - * The email of the inventory verification contact. - */ - contactEmail?: string; - /** - * The name of the inventory verification contact. - */ - contactName?: string; - /** - * The country for which inventory verification is requested. - */ - country?: string; - /** - * The language for which inventory verification is requested. - */ - language?: string; - /** - * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - */ - merchantId?: string; - } - export interface Params$Resource$Liasettings$Setposdataprovider - extends StandardParameters { - /** - * The ID of the account for which to retrieve accessible Google My Business accounts. - */ - accountId?: string; - /** - * The country for which the POS data provider is selected. - */ - country?: string; - /** - * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - */ - merchantId?: string; - /** - * The ID of POS data provider. - */ - posDataProviderId?: string; - /** - * The account ID by which this merchant is known to the POS data provider. - */ - posExternalAccountId?: string; - } - export interface Params$Resource$Liasettings$Update - extends StandardParameters { - /** - * The ID of the account for which to get or update LIA settings. - */ - accountId?: string; - /** - * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. - */ - merchantId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$LiaSettings; - } - - export class Resource$Localinventory { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * content.localinventory.custombatch - * @desc Updates local inventory for multiple products or stores in a single request. + * content.liasettings.listposdataproviders + * @desc Retrieves the list of POS data providers that have active settings for the all eiligible countries. * @example * // Before running the sample: * // - Enable the API at: @@ -11874,21 +12177,13 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.localinventory.custombatch({ - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "entries": [] - * // } - * }, - * }); + * const res = await content.liasettings.listposdataproviders({}); * console.log(res.data); * * // Example response * // { - * // "entries": [], - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "posDataProviders": [] * // } * } * @@ -11897,66 +12192,71 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.localinventory.custombatch + * @alias content.liasettings.listposdataproviders * @memberOf! () * * @param {object} params Parameters for request - * @param {().LocalinventoryCustomBatchRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch( - params: Params$Resource$Localinventory$Custombatch, + listposdataproviders( + params: Params$Resource$Liasettings$Listposdataproviders, options: StreamMethodOptions ): GaxiosPromise; - custombatch( - params?: Params$Resource$Localinventory$Custombatch, + listposdataproviders( + params?: Params$Resource$Liasettings$Listposdataproviders, options?: MethodOptions - ): GaxiosPromise; - custombatch( - params: Params$Resource$Localinventory$Custombatch, + ): GaxiosPromise; + listposdataproviders( + params: Params$Resource$Liasettings$Listposdataproviders, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - custombatch( - params: Params$Resource$Localinventory$Custombatch, + listposdataproviders( + params: Params$Resource$Liasettings$Listposdataproviders, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$LiasettingsListPosDataProvidersResponse + > ): void; - custombatch( - params: Params$Resource$Localinventory$Custombatch, - callback: BodyResponseCallback + listposdataproviders( + params: Params$Resource$Liasettings$Listposdataproviders, + callback: BodyResponseCallback< + Schema$LiasettingsListPosDataProvidersResponse + > ): void; - custombatch( - callback: BodyResponseCallback + listposdataproviders( + callback: BodyResponseCallback< + Schema$LiasettingsListPosDataProvidersResponse + > ): void; - custombatch( + listposdataproviders( paramsOrCallback?: - | Params$Resource$Localinventory$Custombatch - | BodyResponseCallback + | Params$Resource$Liasettings$Listposdataproviders + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Localinventory$Custombatch; + {}) as Params$Resource$Liasettings$Listposdataproviders; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Localinventory$Custombatch; + params = {} as Params$Resource$Liasettings$Listposdataproviders; options = {}; } @@ -11965,15 +12265,15 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/localinventory/batch').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: ( + rootUrl + '/content/v2.1/liasettings/posdataproviders' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options ), @@ -11983,20 +12283,20 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * content.localinventory.insert - * @desc Updates the local inventory of a product in your Merchant Center account. + * content.liasettings.requestgmbaccess + * @desc Requests access to a specified Google My Business account. * @example * // Before running the sample: * // - Enable the API at: @@ -12020,43 +12320,19 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.localinventory.insert({ - * // The ID of the account that contains the product. This account cannot be a multi-client account. + * const res = await content.liasettings.requestgmbaccess({ + * // The ID of the account for which GMB access is requested. + * accountId: 'placeholder-value', + * // The email of the Google My Business account. + * gmbEmail: 'placeholder-value', + * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * merchantId: 'placeholder-value', - * // The REST ID of the product for which to update local inventory. - * productId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "availability": "my_availability", - * // "instoreProductLocation": "my_instoreProductLocation", - * // "kind": "my_kind", - * // "pickupMethod": "my_pickupMethod", - * // "pickupSla": "my_pickupSla", - * // "price": {}, - * // "quantity": 0, - * // "salePrice": {}, - * // "salePriceEffectiveDate": "my_salePriceEffectiveDate", - * // "storeCode": "my_storeCode" - * // } - * }, * }); * console.log(res.data); * * // Example response * // { - * // "availability": "my_availability", - * // "instoreProductLocation": "my_instoreProductLocation", - * // "kind": "my_kind", - * // "pickupMethod": "my_pickupMethod", - * // "pickupSla": "my_pickupSla", - * // "price": {}, - * // "quantity": 0, - * // "salePrice": {}, - * // "salePriceEffectiveDate": "my_salePriceEffectiveDate", - * // "storeCode": "my_storeCode" + * // "kind": "my_kind" * // } * } * @@ -12065,61 +12341,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.localinventory.insert + * @alias content.liasettings.requestgmbaccess * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. - * @param {string} params.productId The REST ID of the product for which to update local inventory. - * @param {().LocalInventory} params.requestBody Request body data + * @param {string} params.accountId The ID of the account for which GMB access is requested. + * @param {string=} params.gmbEmail The email of the Google My Business account. + * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert( - params: Params$Resource$Localinventory$Insert, + requestgmbaccess( + params: Params$Resource$Liasettings$Requestgmbaccess, options: StreamMethodOptions ): GaxiosPromise; - insert( - params?: Params$Resource$Localinventory$Insert, + requestgmbaccess( + params?: Params$Resource$Liasettings$Requestgmbaccess, options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Localinventory$Insert, + ): GaxiosPromise; + requestgmbaccess( + params: Params$Resource$Liasettings$Requestgmbaccess, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - insert( - params: Params$Resource$Localinventory$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + requestgmbaccess( + params: Params$Resource$Liasettings$Requestgmbaccess, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - insert( - params: Params$Resource$Localinventory$Insert, - callback: BodyResponseCallback + requestgmbaccess( + params: Params$Resource$Liasettings$Requestgmbaccess, + callback: BodyResponseCallback ): void; - insert(callback: BodyResponseCallback): void; - insert( + requestgmbaccess( + callback: BodyResponseCallback + ): void; + requestgmbaccess( paramsOrCallback?: - | Params$Resource$Localinventory$Insert - | BodyResponseCallback + | Params$Resource$Liasettings$Requestgmbaccess + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Localinventory$Insert; + {}) as Params$Resource$Liasettings$Requestgmbaccess; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Localinventory$Insert; + params = {} as Params$Resource$Liasettings$Requestgmbaccess; options = {}; } @@ -12128,67 +12411,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/products/{productId}/localinventory' + '/content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } - } - - export interface Params$Resource$Localinventory$Custombatch - extends StandardParameters { - /** - * Request body metadata - */ - requestBody?: Schema$LocalinventoryCustomBatchRequest; - } - export interface Params$Resource$Localinventory$Insert - extends StandardParameters { - /** - * The ID of the account that contains the product. This account cannot be a multi-client account. - */ - merchantId?: string; - /** - * The REST ID of the product for which to update local inventory. - */ - productId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$LocalInventory; - } - - export class Resource$Orderinvoices { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * content.orderinvoices.createchargeinvoice - * @desc Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders. + * content.liasettings.requestinventoryverification + * @desc Requests inventory validation for the specified country. * @example * // Before running the sample: * // - Enable the API at: @@ -12212,29 +12467,18 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orderinvoices.createchargeinvoice({ + * const res = await content.liasettings.requestinventoryverification({ * // The ID of the account that manages the order. This cannot be a multi-client account. + * accountId: 'placeholder-value', + * // The country for which inventory validation is requested. + * country: 'placeholder-value', + * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * merchantId: 'placeholder-value', - * // The ID of the order. - * orderId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "invoiceId": "my_invoiceId", - * // "invoiceSummary": {}, - * // "lineItemInvoices": [], - * // "operationId": "my_operationId", - * // "shipmentGroupId": "my_shipmentGroupId" - * // } - * }, * }); * console.log(res.data); * * // Example response * // { - * // "executionStatus": "my_executionStatus", * // "kind": "my_kind" * // } * } @@ -12244,74 +12488,82 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orderinvoices.createchargeinvoice + * @alias content.liasettings.requestinventoryverification * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. - * @param {().OrderinvoicesCreateChargeInvoiceRequest} params.requestBody Request body data + * @param {string} params.accountId The ID of the account that manages the order. This cannot be a multi-client account. + * @param {string} params.country The country for which inventory validation is requested. + * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createchargeinvoice( - params: Params$Resource$Orderinvoices$Createchargeinvoice, + requestinventoryverification( + params: Params$Resource$Liasettings$Requestinventoryverification, options: StreamMethodOptions ): GaxiosPromise; - createchargeinvoice( - params?: Params$Resource$Orderinvoices$Createchargeinvoice, + requestinventoryverification( + params?: Params$Resource$Liasettings$Requestinventoryverification, options?: MethodOptions - ): GaxiosPromise; - createchargeinvoice( - params: Params$Resource$Orderinvoices$Createchargeinvoice, + ): GaxiosPromise; + requestinventoryverification( + params: Params$Resource$Liasettings$Requestinventoryverification, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - createchargeinvoice( - params: Params$Resource$Orderinvoices$Createchargeinvoice, + requestinventoryverification( + params: Params$Resource$Liasettings$Requestinventoryverification, options: | MethodOptions - | BodyResponseCallback, + | BodyResponseCallback< + Schema$LiasettingsRequestInventoryVerificationResponse + >, callback: BodyResponseCallback< - Schema$OrderinvoicesCreateChargeInvoiceResponse + Schema$LiasettingsRequestInventoryVerificationResponse > ): void; - createchargeinvoice( - params: Params$Resource$Orderinvoices$Createchargeinvoice, + requestinventoryverification( + params: Params$Resource$Liasettings$Requestinventoryverification, callback: BodyResponseCallback< - Schema$OrderinvoicesCreateChargeInvoiceResponse + Schema$LiasettingsRequestInventoryVerificationResponse > ): void; - createchargeinvoice( + requestinventoryverification( callback: BodyResponseCallback< - Schema$OrderinvoicesCreateChargeInvoiceResponse + Schema$LiasettingsRequestInventoryVerificationResponse > ): void; - createchargeinvoice( + requestinventoryverification( paramsOrCallback?: - | Params$Resource$Orderinvoices$Createchargeinvoice - | BodyResponseCallback + | Params$Resource$Liasettings$Requestinventoryverification + | BodyResponseCallback< + Schema$LiasettingsRequestInventoryVerificationResponse + > | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback< + Schema$LiasettingsRequestInventoryVerificationResponse + > | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback< + Schema$LiasettingsRequestInventoryVerificationResponse + > | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orderinvoices$Createchargeinvoice; + {}) as Params$Resource$Liasettings$Requestinventoryverification; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orderinvoices$Createchargeinvoice; + params = {} as Params$Resource$Liasettings$Requestinventoryverification; options = {}; } @@ -12320,38 +12572,38 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice' + '/content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'country', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); + createAPIRequest< + Schema$LiasettingsRequestInventoryVerificationResponse + >(parameters, callback as BodyResponseCallback<{} | void>); } else { return createAPIRequest< - Schema$OrderinvoicesCreateChargeInvoiceResponse + Schema$LiasettingsRequestInventoryVerificationResponse >(parameters); } } /** - * content.orderinvoices.createrefundinvoice - * @desc Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using `createChargeInvoice`. All amounts (except for the summary) are incremental with respect to the previous invoice. + * content.liasettings.setinventoryverificationcontact + * @desc Sets the inventory verification contract for the specified country. * @example * // Before running the sample: * // - Enable the API at: @@ -12375,29 +12627,24 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orderinvoices.createrefundinvoice({ + * const res = await content.liasettings.setinventoryverificationcontact({ * // The ID of the account that manages the order. This cannot be a multi-client account. + * accountId: 'placeholder-value', + * // The email of the inventory verification contact. + * contactEmail: 'placeholder-value', + * // The name of the inventory verification contact. + * contactName: 'placeholder-value', + * // The country for which inventory verification is requested. + * country: 'placeholder-value', + * // The language for which inventory verification is requested. + * language: 'placeholder-value', + * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * merchantId: 'placeholder-value', - * // The ID of the order. - * orderId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "invoiceId": "my_invoiceId", - * // "operationId": "my_operationId", - * // "refundOnlyOption": {}, - * // "returnOption": {}, - * // "shipmentInvoices": [] - * // } - * }, * }); * console.log(res.data); * * // Example response * // { - * // "executionStatus": "my_executionStatus", * // "kind": "my_kind" * // } * } @@ -12407,74 +12654,85 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orderinvoices.createrefundinvoice + * @alias content.liasettings.setinventoryverificationcontact * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. - * @param {().OrderinvoicesCreateRefundInvoiceRequest} params.requestBody Request body data + * @param {string} params.accountId The ID of the account that manages the order. This cannot be a multi-client account. + * @param {string=} params.contactEmail The email of the inventory verification contact. + * @param {string=} params.contactName The name of the inventory verification contact. + * @param {string=} params.country The country for which inventory verification is requested. + * @param {string=} params.language The language for which inventory verification is requested. + * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createrefundinvoice( - params: Params$Resource$Orderinvoices$Createrefundinvoice, + setinventoryverificationcontact( + params: Params$Resource$Liasettings$Setinventoryverificationcontact, options: StreamMethodOptions ): GaxiosPromise; - createrefundinvoice( - params?: Params$Resource$Orderinvoices$Createrefundinvoice, + setinventoryverificationcontact( + params?: Params$Resource$Liasettings$Setinventoryverificationcontact, options?: MethodOptions - ): GaxiosPromise; - createrefundinvoice( - params: Params$Resource$Orderinvoices$Createrefundinvoice, + ): GaxiosPromise; + setinventoryverificationcontact( + params: Params$Resource$Liasettings$Setinventoryverificationcontact, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - createrefundinvoice( - params: Params$Resource$Orderinvoices$Createrefundinvoice, + setinventoryverificationcontact( + params: Params$Resource$Liasettings$Setinventoryverificationcontact, options: | MethodOptions - | BodyResponseCallback, + | BodyResponseCallback< + Schema$LiasettingsSetInventoryVerificationContactResponse + >, callback: BodyResponseCallback< - Schema$OrderinvoicesCreateRefundInvoiceResponse + Schema$LiasettingsSetInventoryVerificationContactResponse > ): void; - createrefundinvoice( - params: Params$Resource$Orderinvoices$Createrefundinvoice, + setinventoryverificationcontact( + params: Params$Resource$Liasettings$Setinventoryverificationcontact, callback: BodyResponseCallback< - Schema$OrderinvoicesCreateRefundInvoiceResponse + Schema$LiasettingsSetInventoryVerificationContactResponse > ): void; - createrefundinvoice( + setinventoryverificationcontact( callback: BodyResponseCallback< - Schema$OrderinvoicesCreateRefundInvoiceResponse + Schema$LiasettingsSetInventoryVerificationContactResponse > ): void; - createrefundinvoice( + setinventoryverificationcontact( paramsOrCallback?: - | Params$Resource$Orderinvoices$Createrefundinvoice - | BodyResponseCallback + | Params$Resource$Liasettings$Setinventoryverificationcontact + | BodyResponseCallback< + Schema$LiasettingsSetInventoryVerificationContactResponse + > | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback< + Schema$LiasettingsSetInventoryVerificationContactResponse + > | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback< + Schema$LiasettingsSetInventoryVerificationContactResponse + > | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orderinvoices$Createrefundinvoice; + {}) as Params$Resource$Liasettings$Setinventoryverificationcontact; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orderinvoices$Createrefundinvoice; + params = {} as Params$Resource$Liasettings$Setinventoryverificationcontact; options = {}; } @@ -12483,78 +12741,38 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice' + '/content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); + createAPIRequest< + Schema$LiasettingsSetInventoryVerificationContactResponse + >(parameters, callback as BodyResponseCallback<{} | void>); } else { return createAPIRequest< - Schema$OrderinvoicesCreateRefundInvoiceResponse + Schema$LiasettingsSetInventoryVerificationContactResponse >(parameters); } } - } - - export interface Params$Resource$Orderinvoices$Createchargeinvoice - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order. - */ - orderId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$OrderinvoicesCreateChargeInvoiceRequest; - } - export interface Params$Resource$Orderinvoices$Createrefundinvoice - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order. - */ - orderId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$OrderinvoicesCreateRefundInvoiceRequest; - } - - export class Resource$Orderreports { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * content.orderreports.listdisbursements - * @desc Retrieves a report for disbursements from your Merchant Center account. + * content.liasettings.setposdataprovider + * @desc Sets the POS data provider for the specified country. * @example * // Before running the sample: * // - Enable the API at: @@ -12578,25 +12796,23 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orderreports.listdisbursements({ - * // The last date which disbursements occurred. In ISO 8601 format. Default: current date. - * disbursementEndDate: 'placeholder-value', - * // The first date which disbursements occurred. In ISO 8601 format. - * disbursementStartDate: 'placeholder-value', - * // The maximum number of disbursements to return in the response, used for paging. - * maxResults: 'placeholder-value', - * // The ID of the account that manages the order. This cannot be a multi-client account. + * const res = await content.liasettings.setposdataprovider({ + * // The ID of the account for which to retrieve accessible Google My Business accounts. + * accountId: 'placeholder-value', + * // The country for which the POS data provider is selected. + * country: 'placeholder-value', + * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * merchantId: 'placeholder-value', - * // The token returned by the previous request. - * pageToken: 'placeholder-value', + * // The ID of POS data provider. + * posDataProviderId: 'placeholder-value', + * // The account ID by which this merchant is known to the POS data provider. + * posExternalAccountId: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "disbursements": [], - * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken" + * // "kind": "my_kind" * // } * } * @@ -12605,76 +12821,76 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orderreports.listdisbursements + * @alias content.liasettings.setposdataprovider * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.disbursementEndDate The last date which disbursements occurred. In ISO 8601 format. Default: current date. - * @param {string} params.disbursementStartDate The first date which disbursements occurred. In ISO 8601 format. - * @param {integer=} params.maxResults The maximum number of disbursements to return in the response, used for paging. - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string=} params.pageToken The token returned by the previous request. + * @param {string} params.accountId The ID of the account for which to retrieve accessible Google My Business accounts. + * @param {string=} params.country The country for which the POS data provider is selected. + * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * @param {string=} params.posDataProviderId The ID of POS data provider. + * @param {string=} params.posExternalAccountId The account ID by which this merchant is known to the POS data provider. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listdisbursements( - params: Params$Resource$Orderreports$Listdisbursements, + setposdataprovider( + params: Params$Resource$Liasettings$Setposdataprovider, options: StreamMethodOptions ): GaxiosPromise; - listdisbursements( - params?: Params$Resource$Orderreports$Listdisbursements, + setposdataprovider( + params?: Params$Resource$Liasettings$Setposdataprovider, options?: MethodOptions - ): GaxiosPromise; - listdisbursements( - params: Params$Resource$Orderreports$Listdisbursements, + ): GaxiosPromise; + setposdataprovider( + params: Params$Resource$Liasettings$Setposdataprovider, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - listdisbursements( - params: Params$Resource$Orderreports$Listdisbursements, + setposdataprovider( + params: Params$Resource$Liasettings$Setposdataprovider, options: | MethodOptions - | BodyResponseCallback, + | BodyResponseCallback, callback: BodyResponseCallback< - Schema$OrderreportsListDisbursementsResponse + Schema$LiasettingsSetPosDataProviderResponse > ): void; - listdisbursements( - params: Params$Resource$Orderreports$Listdisbursements, + setposdataprovider( + params: Params$Resource$Liasettings$Setposdataprovider, callback: BodyResponseCallback< - Schema$OrderreportsListDisbursementsResponse + Schema$LiasettingsSetPosDataProviderResponse > ): void; - listdisbursements( + setposdataprovider( callback: BodyResponseCallback< - Schema$OrderreportsListDisbursementsResponse + Schema$LiasettingsSetPosDataProviderResponse > ): void; - listdisbursements( + setposdataprovider( paramsOrCallback?: - | Params$Resource$Orderreports$Listdisbursements - | BodyResponseCallback + | Params$Resource$Liasettings$Setposdataprovider + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orderreports$Listdisbursements; + {}) as Params$Resource$Liasettings$Setposdataprovider; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orderreports$Listdisbursements; + params = {} as Params$Resource$Liasettings$Setposdataprovider; options = {}; } @@ -12683,37 +12899,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/orderreports/disbursements' + rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'disbursementStartDate'], - pathParams: ['merchantId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * content.orderreports.listtransactions - * @desc Retrieves a list of transactions for a disbursement from your Merchant Center account. + * content.liasettings.update + * @desc Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource. * @example * // Before running the sample: * // - Enable the API at: @@ -12737,27 +12955,29 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orderreports.listtransactions({ - * // The Google-provided ID of the disbursement (found in Wallet). - * disbursementId: 'placeholder-value', - * // The maximum number of disbursements to return in the response, used for paging. - * maxResults: 'placeholder-value', - * // The ID of the account that manages the order. This cannot be a multi-client account. + * const res = await content.liasettings.update({ + * // The ID of the account for which to get or update LIA settings. + * accountId: 'placeholder-value', + * // The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. * merchantId: 'placeholder-value', - * // The token returned by the previous request. - * pageToken: 'placeholder-value', - * // The last date in which transaction occurred. In ISO 8601 format. Default: current date. - * transactionEndDate: 'placeholder-value', - * // The first date in which transaction occurred. In ISO 8601 format. - * transactionStartDate: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "accountId": "my_accountId", + * // "countrySettings": [], + * // "kind": "my_kind" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken", - * // "transactions": [] + * // "accountId": "my_accountId", + * // "countrySettings": [], + * // "kind": "my_kind" * // } * } * @@ -12766,77 +12986,61 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orderreports.listtransactions + * @alias content.liasettings.update * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.disbursementId The Google-provided ID of the disbursement (found in Wallet). - * @param {integer=} params.maxResults The maximum number of disbursements to return in the response, used for paging. - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string=} params.pageToken The token returned by the previous request. - * @param {string=} params.transactionEndDate The last date in which transaction occurred. In ISO 8601 format. Default: current date. - * @param {string} params.transactionStartDate The first date in which transaction occurred. In ISO 8601 format. + * @param {string} params.accountId The ID of the account for which to get or update LIA settings. + * @param {string} params.merchantId The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * @param {().LiaSettings} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - listtransactions( - params: Params$Resource$Orderreports$Listtransactions, + update( + params: Params$Resource$Liasettings$Update, options: StreamMethodOptions ): GaxiosPromise; - listtransactions( - params?: Params$Resource$Orderreports$Listtransactions, + update( + params?: Params$Resource$Liasettings$Update, options?: MethodOptions - ): GaxiosPromise; - listtransactions( - params: Params$Resource$Orderreports$Listtransactions, + ): GaxiosPromise; + update( + params: Params$Resource$Liasettings$Update, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - listtransactions( - params: Params$Resource$Orderreports$Listtransactions, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback< - Schema$OrderreportsListTransactionsResponse - > - ): void; - listtransactions( - params: Params$Resource$Orderreports$Listtransactions, - callback: BodyResponseCallback< - Schema$OrderreportsListTransactionsResponse - > + update( + params: Params$Resource$Liasettings$Update, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - listtransactions( - callback: BodyResponseCallback< - Schema$OrderreportsListTransactionsResponse - > + update( + params: Params$Resource$Liasettings$Update, + callback: BodyResponseCallback ): void; - listtransactions( + update(callback: BodyResponseCallback): void; + update( paramsOrCallback?: - | Params$Resource$Orderreports$Listtransactions - | BodyResponseCallback + | Params$Resource$Liasettings$Update + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orderreports$Listtransactions; + {}) as Params$Resource$Liasettings$Update; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orderreports$Listtransactions; + params = {} as Params$Resource$Liasettings$Update; options = {}; } @@ -12845,56 +13049,69 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions' + rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'PUT', }, options ), params, - requiredParams: [ - 'merchantId', - 'disbursementId', - 'transactionStartDate', - ], - pathParams: ['disbursementId', 'merchantId'], + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Orderreports$Listdisbursements + export interface Params$Resource$Liasettings$Custombatch extends StandardParameters { /** - * The last date which disbursements occurred. In ISO 8601 format. Default: current date. + * Request body metadata */ - disbursementEndDate?: string; + requestBody?: Schema$LiasettingsCustomBatchRequest; + } + export interface Params$Resource$Liasettings$Get extends StandardParameters { /** - * The first date which disbursements occurred. In ISO 8601 format. + * The ID of the account for which to get or update LIA settings. */ - disbursementStartDate?: string; + accountId?: string; /** - * The maximum number of disbursements to return in the response, used for paging. + * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Liasettings$Getaccessiblegmbaccounts + extends StandardParameters { + /** + * The ID of the account for which to retrieve accessible Google My Business accounts. + */ + accountId?: string; + /** + * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Liasettings$List extends StandardParameters { + /** + * The maximum number of LIA settings to return in the response, used for paging. */ maxResults?: number; /** - * The ID of the account that manages the order. This cannot be a multi-client account. + * The ID of the managing account. This must be a multi-client account. */ merchantId?: string; /** @@ -12902,55 +13119,126 @@ export namespace content_v2_1 { */ pageToken?: string; } - export interface Params$Resource$Orderreports$Listtransactions + export interface Params$Resource$Liasettings$Listposdataproviders + extends StandardParameters {} + export interface Params$Resource$Liasettings$Requestgmbaccess extends StandardParameters { /** - * The Google-provided ID of the disbursement (found in Wallet). + * The ID of the account for which GMB access is requested. */ - disbursementId?: string; + accountId?: string; /** - * The maximum number of disbursements to return in the response, used for paging. + * The email of the Google My Business account. */ - maxResults?: number; + gmbEmail?: string; /** - * The ID of the account that manages the order. This cannot be a multi-client account. + * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ merchantId?: string; + } + export interface Params$Resource$Liasettings$Requestinventoryverification + extends StandardParameters { /** - * The token returned by the previous request. + * The ID of the account that manages the order. This cannot be a multi-client account. */ - pageToken?: string; + accountId?: string; /** - * The last date in which transaction occurred. In ISO 8601 format. Default: current date. + * The country for which inventory validation is requested. */ - transactionEndDate?: string; + country?: string; /** - * The first date in which transaction occurred. In ISO 8601 format. + * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. */ - transactionStartDate?: string; + merchantId?: string; } - - export class Resource$Orderreturns { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } - + export interface Params$Resource$Liasettings$Setinventoryverificationcontact + extends StandardParameters { /** - * content.orderreturns.acknowledge - * @desc Acks an order return in your Merchant Center account. - * @example - * // Before running the sample: - * // - Enable the API at: - * // https://console.developers.google.com/apis/api/content.googleapis.com - * // - Login into gcloud by running: - * // `$ gcloud auth application-default login` - * // - Install the npm module by running: - * // `$ npm install googleapis` - * - * const {google} = require('googleapis'); - * const content = google.content('v2.1'); - * + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + accountId?: string; + /** + * The email of the inventory verification contact. + */ + contactEmail?: string; + /** + * The name of the inventory verification contact. + */ + contactName?: string; + /** + * The country for which inventory verification is requested. + */ + country?: string; + /** + * The language for which inventory verification is requested. + */ + language?: string; + /** + * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + */ + merchantId?: string; + } + export interface Params$Resource$Liasettings$Setposdataprovider + extends StandardParameters { + /** + * The ID of the account for which to retrieve accessible Google My Business accounts. + */ + accountId?: string; + /** + * The country for which the POS data provider is selected. + */ + country?: string; + /** + * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + */ + merchantId?: string; + /** + * The ID of POS data provider. + */ + posDataProviderId?: string; + /** + * The account ID by which this merchant is known to the POS data provider. + */ + posExternalAccountId?: string; + } + export interface Params$Resource$Liasettings$Update + extends StandardParameters { + /** + * The ID of the account for which to get or update LIA settings. + */ + accountId?: string; + /** + * The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + */ + merchantId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$LiaSettings; + } + + export class Resource$Localinventory { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.localinventory.custombatch + * @desc Updates local inventory for multiple products or stores in a single request. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * * async function main() { * const auth = new google.auth.GoogleAuth({ * // Scopes can be specified either as an array or as a single, space-delimited string. @@ -12962,17 +13250,12 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orderreturns.acknowledge({ - * // The ID of the account that manages the order. This cannot be a multi-client account. - * merchantId: 'placeholder-value', - * // The ID of the return. - * returnId: 'placeholder-value', - * + * const res = await content.localinventory.custombatch({ * // Request body metadata * requestBody: { * // request body parameters * // { - * // "operationId": "my_operationId" + * // "entries": [] * // } * }, * }); @@ -12980,7 +13263,7 @@ export namespace content_v2_1 { * * // Example response * // { - * // "executionStatus": "my_executionStatus", + * // "entries": [], * // "kind": "my_kind" * // } * } @@ -12990,68 +13273,66 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orderreturns.acknowledge + * @alias content.localinventory.custombatch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.returnId The ID of the return. - * @param {().OrderreturnsAcknowledgeRequest} params.requestBody Request body data + * @param {().LocalinventoryCustomBatchRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - acknowledge( - params: Params$Resource$Orderreturns$Acknowledge, + custombatch( + params: Params$Resource$Localinventory$Custombatch, options: StreamMethodOptions ): GaxiosPromise; - acknowledge( - params?: Params$Resource$Orderreturns$Acknowledge, + custombatch( + params?: Params$Resource$Localinventory$Custombatch, options?: MethodOptions - ): GaxiosPromise; - acknowledge( - params: Params$Resource$Orderreturns$Acknowledge, + ): GaxiosPromise; + custombatch( + params: Params$Resource$Localinventory$Custombatch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - acknowledge( - params: Params$Resource$Orderreturns$Acknowledge, + custombatch( + params: Params$Resource$Localinventory$Custombatch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - acknowledge( - params: Params$Resource$Orderreturns$Acknowledge, - callback: BodyResponseCallback + custombatch( + params: Params$Resource$Localinventory$Custombatch, + callback: BodyResponseCallback ): void; - acknowledge( - callback: BodyResponseCallback + custombatch( + callback: BodyResponseCallback ): void; - acknowledge( + custombatch( paramsOrCallback?: - | Params$Resource$Orderreturns$Acknowledge - | BodyResponseCallback + | Params$Resource$Localinventory$Custombatch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orderreturns$Acknowledge; + {}) as Params$Resource$Localinventory$Custombatch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orderreturns$Acknowledge; + params = {} as Params$Resource$Localinventory$Custombatch; options = {}; } @@ -13060,38 +13341,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + - '/content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge' - ).replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/localinventory/batch').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * content.orderreturns.get - * @desc Retrieves an order return from your Merchant Center account. + * content.localinventory.insert + * @desc Updates the local inventory of a product in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -13115,23 +13397,43 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orderreturns.get({ - * // The ID of the account that manages the order. This cannot be a multi-client account. + * const res = await content.localinventory.insert({ + * // The ID of the account that contains the product. This account cannot be a multi-client account. * merchantId: 'placeholder-value', - * // Merchant order return ID generated by Google. - * returnId: 'placeholder-value', + * // The REST ID of the product for which to update local inventory. + * productId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "availability": "my_availability", + * // "instoreProductLocation": "my_instoreProductLocation", + * // "kind": "my_kind", + * // "pickupMethod": "my_pickupMethod", + * // "pickupSla": "my_pickupSla", + * // "price": {}, + * // "quantity": 0, + * // "salePrice": {}, + * // "salePriceEffectiveDate": "my_salePriceEffectiveDate", + * // "storeCode": "my_storeCode" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "creationDate": "my_creationDate", - * // "merchantOrderId": "my_merchantOrderId", - * // "orderId": "my_orderId", - * // "orderReturnId": "my_orderReturnId", - * // "returnItems": [], - * // "returnPricingInfo": {}, - * // "returnShipments": [] + * // "availability": "my_availability", + * // "instoreProductLocation": "my_instoreProductLocation", + * // "kind": "my_kind", + * // "pickupMethod": "my_pickupMethod", + * // "pickupSla": "my_pickupSla", + * // "price": {}, + * // "quantity": 0, + * // "salePrice": {}, + * // "salePriceEffectiveDate": "my_salePriceEffectiveDate", + * // "storeCode": "my_storeCode" * // } * } * @@ -13140,62 +13442,61 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orderreturns.get + * @alias content.localinventory.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.returnId Merchant order return ID generated by Google. + * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. + * @param {string} params.productId The REST ID of the product for which to update local inventory. + * @param {().LocalInventory} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Orderreturns$Get, + insert( + params: Params$Resource$Localinventory$Insert, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Orderreturns$Get, + insert( + params?: Params$Resource$Localinventory$Insert, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Orderreturns$Get, + ): GaxiosPromise; + insert( + params: Params$Resource$Localinventory$Insert, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Orderreturns$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + insert( + params: Params$Resource$Localinventory$Insert, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Orderreturns$Get, - callback: BodyResponseCallback + insert( + params: Params$Resource$Localinventory$Insert, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + insert(callback: BodyResponseCallback): void; + insert( paramsOrCallback?: - | Params$Resource$Orderreturns$Get - | BodyResponseCallback + | Params$Resource$Localinventory$Insert + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Orderreturns$Get; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Localinventory$Insert; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orderreturns$Get; + params = {} as Params$Resource$Localinventory$Insert; options = {}; } @@ -13204,35 +13505,68 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/orderreturns/{returnId}' + rootUrl + + '/content/v2.1/{merchantId}/products/{productId}/localinventory' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Localinventory$Custombatch + extends StandardParameters { /** - * content.orderreturns.list - * @desc Lists order returns in your Merchant Center account. + * Request body metadata + */ + requestBody?: Schema$LocalinventoryCustomBatchRequest; + } + export interface Params$Resource$Localinventory$Insert + extends StandardParameters { + /** + * The ID of the account that contains the product. This account cannot be a multi-client account. + */ + merchantId?: string; + /** + * The REST ID of the product for which to update local inventory. + */ + productId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$LocalInventory; + } + + export class Resource$Orderinvoices { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.orderinvoices.createchargeinvoice + * @desc Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders. * @example * // Before running the sample: * // - Enable the API at: @@ -13256,42 +13590,30 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orderreturns.list({ - * // Obtains order returns that match the acknowledgement status. When set to true, obtains order returns that have been acknowledged. When false, obtains order returns that have not been acknowledged. When not provided, obtains order returns regardless of their acknowledgement status. - * // We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged order returns are returned. - * acknowledged: 'placeholder-value', - * // Obtains order returns created before this date (inclusively), in ISO 8601 format. - * createdEndDate: 'placeholder-value', - * // Obtains order returns created after this date (inclusively), in ISO 8601 format. - * createdStartDate: 'placeholder-value', - * // Obtains order returns with the specified order ids. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. - * // Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. - * googleOrderIds: 'placeholder-value', - * // The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page. - * maxResults: 'placeholder-value', + * const res = await content.orderinvoices.createchargeinvoice({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // Return the results in the specified order. - * orderBy: 'placeholder-value', - * // The token returned by the previous request. - * pageToken: 'placeholder-value', - * // Obtains order returns that match any shipment state provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment states. - * shipmentStates: 'placeholder-value', - * // Obtains order returns that match any shipment status provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment statuses. - * shipmentStatus: 'placeholder-value', - * // Obtains order returns with the specified tracking numbers. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. - * // Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. - * shipmentTrackingNumbers: 'placeholder-value', - * // Obtains order returns that match any shipment type provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment types. - * shipmentTypes: 'placeholder-value', + * // The ID of the order. + * orderId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "invoiceId": "my_invoiceId", + * // "invoiceSummary": {}, + * // "lineItemInvoices": [], + * // "operationId": "my_operationId", + * // "shipmentGroupId": "my_shipmentGroupId" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken", - * // "resources": [] + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" * // } * } * @@ -13300,75 +13622,74 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orderreturns.list + * @alias content.orderinvoices.createchargeinvoice * @memberOf! () * * @param {object} params Parameters for request - * @param {boolean=} params.acknowledged Obtains order returns that match the acknowledgement status. When set to true, obtains order returns that have been acknowledged. When false, obtains order returns that have not been acknowledged. When not provided, obtains order returns regardless of their acknowledgement status. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged order returns are returned. - * @param {string=} params.createdEndDate Obtains order returns created before this date (inclusively), in ISO 8601 format. - * @param {string=} params.createdStartDate Obtains order returns created after this date (inclusively), in ISO 8601 format. - * @param {string=} params.googleOrderIds Obtains order returns with the specified order ids. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. - * @param {integer=} params.maxResults The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page. * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string=} params.orderBy Return the results in the specified order. - * @param {string=} params.pageToken The token returned by the previous request. - * @param {string=} params.shipmentStates Obtains order returns that match any shipment state provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment states. - * @param {string=} params.shipmentStatus Obtains order returns that match any shipment status provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment statuses. - * @param {string=} params.shipmentTrackingNumbers Obtains order returns with the specified tracking numbers. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. - * @param {string=} params.shipmentTypes Obtains order returns that match any shipment type provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment types. + * @param {string} params.orderId The ID of the order. + * @param {().OrderinvoicesCreateChargeInvoiceRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Orderreturns$List, + createchargeinvoice( + params: Params$Resource$Orderinvoices$Createchargeinvoice, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Orderreturns$List, + createchargeinvoice( + params?: Params$Resource$Orderinvoices$Createchargeinvoice, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Orderreturns$List, + ): GaxiosPromise; + createchargeinvoice( + params: Params$Resource$Orderinvoices$Createchargeinvoice, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Orderreturns$List, + createchargeinvoice( + params: Params$Resource$Orderinvoices$Createchargeinvoice, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$OrderinvoicesCreateChargeInvoiceResponse + > ): void; - list( - params: Params$Resource$Orderreturns$List, - callback: BodyResponseCallback + createchargeinvoice( + params: Params$Resource$Orderinvoices$Createchargeinvoice, + callback: BodyResponseCallback< + Schema$OrderinvoicesCreateChargeInvoiceResponse + > ): void; - list(callback: BodyResponseCallback): void; - list( + createchargeinvoice( + callback: BodyResponseCallback< + Schema$OrderinvoicesCreateChargeInvoiceResponse + > + ): void; + createchargeinvoice( paramsOrCallback?: - | Params$Resource$Orderreturns$List - | BodyResponseCallback + | Params$Resource$Orderinvoices$Createchargeinvoice + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orderreturns$List; + {}) as Params$Resource$Orderinvoices$Createchargeinvoice; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orderreturns$List; + params = {} as Params$Resource$Orderinvoices$Createchargeinvoice; options = {}; } @@ -13377,36 +13698,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', + url: ( + rootUrl + + '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', }, options ), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest< + Schema$OrderinvoicesCreateChargeInvoiceResponse + >(parameters); } } /** - * content.orderreturns.process - * @desc Processes return in your Merchant Center account. + * content.orderinvoices.createrefundinvoice + * @desc Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using `createChargeInvoice`. All amounts (except for the summary) are incremental with respect to the previous invoice. * @example * // Before running the sample: * // - Enable the API at: @@ -13430,20 +13754,21 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orderreturns.process({ + * const res = await content.orderinvoices.createrefundinvoice({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the return. - * returnId: 'placeholder-value', + * // The ID of the order. + * orderId: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "fullChargeReturnShippingCost": false, + * // "invoiceId": "my_invoiceId", * // "operationId": "my_operationId", - * // "refundShippingFee": {}, - * // "returnItems": [] + * // "refundOnlyOption": {}, + * // "returnOption": {}, + * // "shipmentInvoices": [] * // } * }, * }); @@ -13461,68 +13786,74 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orderreturns.process + * @alias content.orderinvoices.createrefundinvoice * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.returnId The ID of the return. - * @param {().OrderreturnsProcessRequest} params.requestBody Request body data + * @param {string} params.orderId The ID of the order. + * @param {().OrderinvoicesCreateRefundInvoiceRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - process( - params: Params$Resource$Orderreturns$Process, + createrefundinvoice( + params: Params$Resource$Orderinvoices$Createrefundinvoice, options: StreamMethodOptions ): GaxiosPromise; - process( - params?: Params$Resource$Orderreturns$Process, + createrefundinvoice( + params?: Params$Resource$Orderinvoices$Createrefundinvoice, options?: MethodOptions - ): GaxiosPromise; - process( - params: Params$Resource$Orderreturns$Process, + ): GaxiosPromise; + createrefundinvoice( + params: Params$Resource$Orderinvoices$Createrefundinvoice, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - process( - params: Params$Resource$Orderreturns$Process, + createrefundinvoice( + params: Params$Resource$Orderinvoices$Createrefundinvoice, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$OrderinvoicesCreateRefundInvoiceResponse + > ): void; - process( - params: Params$Resource$Orderreturns$Process, - callback: BodyResponseCallback + createrefundinvoice( + params: Params$Resource$Orderinvoices$Createrefundinvoice, + callback: BodyResponseCallback< + Schema$OrderinvoicesCreateRefundInvoiceResponse + > ): void; - process( - callback: BodyResponseCallback + createrefundinvoice( + callback: BodyResponseCallback< + Schema$OrderinvoicesCreateRefundInvoiceResponse + > ): void; - process( + createrefundinvoice( paramsOrCallback?: - | Params$Resource$Orderreturns$Process - | BodyResponseCallback - | BodyResponseCallback, + | Params$Resource$Orderinvoices$Createrefundinvoice + | BodyResponseCallback + | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orderreturns$Process; + {}) as Params$Resource$Orderinvoices$Createrefundinvoice; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orderreturns$Process; + params = {} as Params$Resource$Orderinvoices$Createrefundinvoice; options = {}; } @@ -13531,137 +13862,79 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/orderreturns/{returnId}/process' + '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'returnId'], - pathParams: ['merchantId', 'returnId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest< + Schema$OrderinvoicesCreateRefundInvoiceResponse + >(parameters); } } } - export interface Params$Resource$Orderreturns$Acknowledge + export interface Params$Resource$Orderinvoices$Createchargeinvoice extends StandardParameters { /** * The ID of the account that manages the order. This cannot be a multi-client account. */ merchantId?: string; /** - * The ID of the return. + * The ID of the order. */ - returnId?: string; + orderId?: string; /** * Request body metadata */ - requestBody?: Schema$OrderreturnsAcknowledgeRequest; - } - export interface Params$Resource$Orderreturns$Get extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * Merchant order return ID generated by Google. - */ - returnId?: string; - } - export interface Params$Resource$Orderreturns$List - extends StandardParameters { - /** - * Obtains order returns that match the acknowledgement status. When set to true, obtains order returns that have been acknowledged. When false, obtains order returns that have not been acknowledged. When not provided, obtains order returns regardless of their acknowledgement status. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged order returns are returned. - */ - acknowledged?: boolean; - /** - * Obtains order returns created before this date (inclusively), in ISO 8601 format. - */ - createdEndDate?: string; - /** - * Obtains order returns created after this date (inclusively), in ISO 8601 format. - */ - createdStartDate?: string; - /** - * Obtains order returns with the specified order ids. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. - */ - googleOrderIds?: string[]; - /** - * The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page. - */ - maxResults?: number; - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * Return the results in the specified order. - */ - orderBy?: string; - /** - * The token returned by the previous request. - */ - pageToken?: string; - /** - * Obtains order returns that match any shipment state provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment states. - */ - shipmentStates?: string[]; - /** - * Obtains order returns that match any shipment status provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment statuses. - */ - shipmentStatus?: string[]; - /** - * Obtains order returns with the specified tracking numbers. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. - */ - shipmentTrackingNumbers?: string[]; - /** - * Obtains order returns that match any shipment type provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment types. - */ - shipmentTypes?: string[]; + requestBody?: Schema$OrderinvoicesCreateChargeInvoiceRequest; } - export interface Params$Resource$Orderreturns$Process + export interface Params$Resource$Orderinvoices$Createrefundinvoice extends StandardParameters { /** * The ID of the account that manages the order. This cannot be a multi-client account. */ merchantId?: string; /** - * The ID of the return. + * The ID of the order. */ - returnId?: string; + orderId?: string; /** * Request body metadata */ - requestBody?: Schema$OrderreturnsProcessRequest; + requestBody?: Schema$OrderinvoicesCreateRefundInvoiceRequest; } - export class Resource$Orders { + export class Resource$Orderreports { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * content.orders.acknowledge - * @desc Marks an order as acknowledged. + * content.orderreports.listdisbursements + * @desc Retrieves a report for disbursements from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -13685,26 +13958,25 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.acknowledge({ + * const res = await content.orderreports.listdisbursements({ + * // The last date which disbursements occurred. In ISO 8601 format. Default: current date. + * disbursementEndDate: 'placeholder-value', + * // The first date which disbursements occurred. In ISO 8601 format. + * disbursementStartDate: 'placeholder-value', + * // The maximum number of disbursements to return in the response, used for paging. + * maxResults: 'placeholder-value', * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order. - * orderId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "operationId": "my_operationId" - * // } - * }, + * // The token returned by the previous request. + * pageToken: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "executionStatus": "my_executionStatus", - * // "kind": "my_kind" + * // "disbursements": [], + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken" * // } * } * @@ -13713,68 +13985,76 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.acknowledge + * @alias content.orderreports.listdisbursements * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.disbursementEndDate The last date which disbursements occurred. In ISO 8601 format. Default: current date. + * @param {string=} params.disbursementStartDate The first date which disbursements occurred. In ISO 8601 format. + * @param {integer=} params.maxResults The maximum number of disbursements to return in the response, used for paging. * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. - * @param {().OrdersAcknowledgeRequest} params.requestBody Request body data + * @param {string=} params.pageToken The token returned by the previous request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - acknowledge( - params: Params$Resource$Orders$Acknowledge, + listdisbursements( + params: Params$Resource$Orderreports$Listdisbursements, options: StreamMethodOptions ): GaxiosPromise; - acknowledge( - params?: Params$Resource$Orders$Acknowledge, + listdisbursements( + params?: Params$Resource$Orderreports$Listdisbursements, options?: MethodOptions - ): GaxiosPromise; - acknowledge( - params: Params$Resource$Orders$Acknowledge, + ): GaxiosPromise; + listdisbursements( + params: Params$Resource$Orderreports$Listdisbursements, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - acknowledge( - params: Params$Resource$Orders$Acknowledge, + listdisbursements( + params: Params$Resource$Orderreports$Listdisbursements, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$OrderreportsListDisbursementsResponse + > ): void; - acknowledge( - params: Params$Resource$Orders$Acknowledge, - callback: BodyResponseCallback + listdisbursements( + params: Params$Resource$Orderreports$Listdisbursements, + callback: BodyResponseCallback< + Schema$OrderreportsListDisbursementsResponse + > ): void; - acknowledge( - callback: BodyResponseCallback + listdisbursements( + callback: BodyResponseCallback< + Schema$OrderreportsListDisbursementsResponse + > ): void; - acknowledge( + listdisbursements( paramsOrCallback?: - | Params$Resource$Orders$Acknowledge - | BodyResponseCallback + | Params$Resource$Orderreports$Listdisbursements + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Acknowledge; + {}) as Params$Resource$Orderreports$Listdisbursements; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Acknowledge; + params = {} as Params$Resource$Orderreports$Listdisbursements; options = {}; } @@ -13783,36 +14063,38 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/acknowledge' + rootUrl + '/content/v2.1/{merchantId}/orderreports/disbursements' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * content.orders.advancetestorder - * @desc Sandbox only. Moves a test order from state "`inProgress`" to state "`pendingShipment`". + * content.orderreports.listtransactions + * @desc Retrieves a list of transactions for a disbursement from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -13836,17 +14118,27 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.advancetestorder({ + * const res = await content.orderreports.listtransactions({ + * // The Google-provided ID of the disbursement (found in Wallet). + * disbursementId: 'placeholder-value', + * // The maximum number of disbursements to return in the response, used for paging. + * maxResults: 'placeholder-value', * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the test order to modify. - * orderId: 'placeholder-value', + * // The token returned by the previous request. + * pageToken: 'placeholder-value', + * // The last date in which transaction occurred. In ISO 8601 format. Default: current date. + * transactionEndDate: 'placeholder-value', + * // The first date in which transaction occurred. In ISO 8601 format. + * transactionStartDate: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "transactions": [] * // } * } * @@ -13855,67 +14147,77 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.advancetestorder + * @alias content.orderreports.listtransactions * @memberOf! () * * @param {object} params Parameters for request + * @param {string} params.disbursementId The Google-provided ID of the disbursement (found in Wallet). + * @param {integer=} params.maxResults The maximum number of disbursements to return in the response, used for paging. * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the test order to modify. + * @param {string=} params.pageToken The token returned by the previous request. + * @param {string=} params.transactionEndDate The last date in which transaction occurred. In ISO 8601 format. Default: current date. + * @param {string=} params.transactionStartDate The first date in which transaction occurred. In ISO 8601 format. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - advancetestorder( - params: Params$Resource$Orders$Advancetestorder, + listtransactions( + params: Params$Resource$Orderreports$Listtransactions, options: StreamMethodOptions ): GaxiosPromise; - advancetestorder( - params?: Params$Resource$Orders$Advancetestorder, + listtransactions( + params?: Params$Resource$Orderreports$Listtransactions, options?: MethodOptions - ): GaxiosPromise; - advancetestorder( - params: Params$Resource$Orders$Advancetestorder, + ): GaxiosPromise; + listtransactions( + params: Params$Resource$Orderreports$Listtransactions, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - advancetestorder( - params: Params$Resource$Orders$Advancetestorder, + listtransactions( + params: Params$Resource$Orderreports$Listtransactions, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$OrderreportsListTransactionsResponse + > ): void; - advancetestorder( - params: Params$Resource$Orders$Advancetestorder, - callback: BodyResponseCallback + listtransactions( + params: Params$Resource$Orderreports$Listtransactions, + callback: BodyResponseCallback< + Schema$OrderreportsListTransactionsResponse + > ): void; - advancetestorder( - callback: BodyResponseCallback + listtransactions( + callback: BodyResponseCallback< + Schema$OrderreportsListTransactionsResponse + > ): void; - advancetestorder( + listtransactions( paramsOrCallback?: - | Params$Resource$Orders$Advancetestorder - | BodyResponseCallback + | Params$Resource$Orderreports$Listtransactions + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Advancetestorder; + {}) as Params$Resource$Orderreports$Listtransactions; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Advancetestorder; + params = {} as Params$Resource$Orderreports$Listtransactions; options = {}; } @@ -13924,38 +14226,97 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/testorders/{orderId}/advance' + '/content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['merchantId', 'disbursementId'], + pathParams: ['disbursementId', 'merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } + } + export interface Params$Resource$Orderreports$Listdisbursements + extends StandardParameters { /** - * content.orders.cancel - * @desc Cancels all line items in an order, making a full refund. + * The last date which disbursements occurred. In ISO 8601 format. Default: current date. + */ + disbursementEndDate?: string; + /** + * The first date which disbursements occurred. In ISO 8601 format. + */ + disbursementStartDate?: string; + /** + * The maximum number of disbursements to return in the response, used for paging. + */ + maxResults?: number; + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + export interface Params$Resource$Orderreports$Listtransactions + extends StandardParameters { + /** + * The Google-provided ID of the disbursement (found in Wallet). + */ + disbursementId?: string; + /** + * The maximum number of disbursements to return in the response, used for paging. + */ + maxResults?: number; + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * The last date in which transaction occurred. In ISO 8601 format. Default: current date. + */ + transactionEndDate?: string; + /** + * The first date in which transaction occurred. In ISO 8601 format. + */ + transactionStartDate?: string; + } + + export class Resource$Orderreturns { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.orderreturns.acknowledge + * @desc Acks an order return in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -13979,19 +14340,17 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.cancel({ + * const res = await content.orderreturns.acknowledge({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order to cancel. - * orderId: 'placeholder-value', + * // The ID of the return. + * returnId: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "operationId": "my_operationId", - * // "reason": "my_reason", - * // "reasonText": "my_reasonText" + * // "operationId": "my_operationId" * // } * }, * }); @@ -14009,65 +14368,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.cancel + * @alias content.orderreturns.acknowledge * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order to cancel. - * @param {().OrdersCancelRequest} params.requestBody Request body data + * @param {string} params.returnId The ID of the return. + * @param {().OrderreturnsAcknowledgeRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancel( - params: Params$Resource$Orders$Cancel, + acknowledge( + params: Params$Resource$Orderreturns$Acknowledge, options: StreamMethodOptions ): GaxiosPromise; - cancel( - params?: Params$Resource$Orders$Cancel, + acknowledge( + params?: Params$Resource$Orderreturns$Acknowledge, options?: MethodOptions - ): GaxiosPromise; - cancel( - params: Params$Resource$Orders$Cancel, + ): GaxiosPromise; + acknowledge( + params: Params$Resource$Orderreturns$Acknowledge, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - cancel( - params: Params$Resource$Orders$Cancel, + acknowledge( + params: Params$Resource$Orderreturns$Acknowledge, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - cancel( - params: Params$Resource$Orders$Cancel, - callback: BodyResponseCallback + acknowledge( + params: Params$Resource$Orderreturns$Acknowledge, + callback: BodyResponseCallback ): void; - cancel(callback: BodyResponseCallback): void; - cancel( + acknowledge( + callback: BodyResponseCallback + ): void; + acknowledge( paramsOrCallback?: - | Params$Resource$Orders$Cancel - | BodyResponseCallback + | Params$Resource$Orderreturns$Acknowledge + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Orders$Cancel; + let params = (paramsOrCallback || + {}) as Params$Resource$Orderreturns$Acknowledge; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Cancel; + params = {} as Params$Resource$Orderreturns$Acknowledge; options = {}; } @@ -14076,35 +14438,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/cancel' + rootUrl + + '/content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * content.orders.cancellineitem - * @desc Cancels a line item, making a full refund. + * content.orderreturns.get + * @desc Retrieves an order return from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -14128,31 +14494,23 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.cancellineitem({ + * const res = await content.orderreturns.get({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order. - * orderId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "lineItemId": "my_lineItemId", - * // "operationId": "my_operationId", - * // "productId": "my_productId", - * // "quantity": 0, - * // "reason": "my_reason", - * // "reasonText": "my_reasonText" - * // } - * }, + * // Merchant order return ID generated by Google. + * returnId: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "executionStatus": "my_executionStatus", - * // "kind": "my_kind" + * // "creationDate": "my_creationDate", + * // "merchantOrderId": "my_merchantOrderId", + * // "orderId": "my_orderId", + * // "orderReturnId": "my_orderReturnId", + * // "returnItems": [], + * // "returnPricingInfo": {}, + * // "returnShipments": [] * // } * } * @@ -14161,68 +14519,62 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.cancellineitem + * @alias content.orderreturns.get * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. - * @param {().OrdersCancelLineItemRequest} params.requestBody Request body data + * @param {string} params.returnId Merchant order return ID generated by Google. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - cancellineitem( - params: Params$Resource$Orders$Cancellineitem, + get( + params: Params$Resource$Orderreturns$Get, options: StreamMethodOptions ): GaxiosPromise; - cancellineitem( - params?: Params$Resource$Orders$Cancellineitem, + get( + params?: Params$Resource$Orderreturns$Get, options?: MethodOptions - ): GaxiosPromise; - cancellineitem( - params: Params$Resource$Orders$Cancellineitem, + ): GaxiosPromise; + get( + params: Params$Resource$Orderreturns$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - cancellineitem( - params: Params$Resource$Orders$Cancellineitem, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Orderreturns$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - cancellineitem( - params: Params$Resource$Orders$Cancellineitem, - callback: BodyResponseCallback + get( + params: Params$Resource$Orderreturns$Get, + callback: BodyResponseCallback ): void; - cancellineitem( - callback: BodyResponseCallback - ): void; - cancellineitem( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Orders$Cancellineitem - | BodyResponseCallback + | Params$Resource$Orderreturns$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Cancellineitem; + let params = (paramsOrCallback || {}) as Params$Resource$Orderreturns$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Cancellineitem; + params = {} as Params$Resource$Orderreturns$Get; options = {}; } @@ -14231,38 +14583,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem' + rootUrl + '/content/v2.1/{merchantId}/orderreturns/{returnId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.orders.canceltestorderbycustomer - * @desc Sandbox only. Cancels a test order for customer-initiated cancellation. + * content.orderreturns.list + * @desc Lists order returns in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -14286,25 +14636,39 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.canceltestorderbycustomer({ + * const res = await content.orderreturns.list({ + * // Obtains order returns that match the acknowledgement status. When set to true, obtains order returns that have been acknowledged. When false, obtains order returns that have not been acknowledged. When not provided, obtains order returns regardless of their acknowledgement status. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged order returns are returned. + * acknowledged: 'placeholder-value', + * // Obtains order returns created before this date (inclusively), in ISO 8601 format. + * createdEndDate: 'placeholder-value', + * // Obtains order returns created after this date (inclusively), in ISO 8601 format. + * createdStartDate: 'placeholder-value', + * // Obtains order returns with the specified order ids. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. + * googleOrderIds: 'placeholder-value', + * // The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page. + * maxResults: 'placeholder-value', * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the test order to cancel. - * orderId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "reason": "my_reason" - * // } - * }, + * // Return the results in the specified order. + * orderBy: 'placeholder-value', + * // The token returned by the previous request. + * pageToken: 'placeholder-value', + * // Obtains order returns that match any shipment state provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment states. + * shipmentStates: 'placeholder-value', + * // Obtains order returns that match any shipment status provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment statuses. + * shipmentStatus: 'placeholder-value', + * // Obtains order returns with the specified tracking numbers. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. + * shipmentTrackingNumbers: 'placeholder-value', + * // Obtains order returns that match any shipment type provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment types. + * shipmentTypes: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "resources": [] * // } * } * @@ -14313,74 +14677,75 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.canceltestorderbycustomer + * @alias content.orderreturns.list * @memberOf! () * * @param {object} params Parameters for request + * @param {boolean=} params.acknowledged Obtains order returns that match the acknowledgement status. When set to true, obtains order returns that have been acknowledged. When false, obtains order returns that have not been acknowledged. When not provided, obtains order returns regardless of their acknowledgement status. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged order returns are returned. + * @param {string=} params.createdEndDate Obtains order returns created before this date (inclusively), in ISO 8601 format. + * @param {string=} params.createdStartDate Obtains order returns created after this date (inclusively), in ISO 8601 format. + * @param {string=} params.googleOrderIds Obtains order returns with the specified order ids. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. + * @param {integer=} params.maxResults The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page. * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the test order to cancel. - * @param {().OrdersCancelTestOrderByCustomerRequest} params.requestBody Request body data + * @param {string=} params.orderBy Return the results in the specified order. + * @param {string=} params.pageToken The token returned by the previous request. + * @param {string=} params.shipmentStates Obtains order returns that match any shipment state provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment states. + * @param {string=} params.shipmentStatus Obtains order returns that match any shipment status provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment statuses. + * @param {string=} params.shipmentTrackingNumbers Obtains order returns with the specified tracking numbers. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. + * @param {string=} params.shipmentTypes Obtains order returns that match any shipment type provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment types. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - canceltestorderbycustomer( - params: Params$Resource$Orders$Canceltestorderbycustomer, + list( + params: Params$Resource$Orderreturns$List, options: StreamMethodOptions ): GaxiosPromise; - canceltestorderbycustomer( - params?: Params$Resource$Orders$Canceltestorderbycustomer, + list( + params?: Params$Resource$Orderreturns$List, options?: MethodOptions - ): GaxiosPromise; - canceltestorderbycustomer( - params: Params$Resource$Orders$Canceltestorderbycustomer, + ): GaxiosPromise; + list( + params: Params$Resource$Orderreturns$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - canceltestorderbycustomer( - params: Params$Resource$Orders$Canceltestorderbycustomer, + list( + params: Params$Resource$Orderreturns$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback< - Schema$OrdersCancelTestOrderByCustomerResponse - > - ): void; - canceltestorderbycustomer( - params: Params$Resource$Orders$Canceltestorderbycustomer, - callback: BodyResponseCallback< - Schema$OrdersCancelTestOrderByCustomerResponse - > + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - canceltestorderbycustomer( - callback: BodyResponseCallback< - Schema$OrdersCancelTestOrderByCustomerResponse - > + list( + params: Params$Resource$Orderreturns$List, + callback: BodyResponseCallback ): void; - canceltestorderbycustomer( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Orders$Canceltestorderbycustomer - | BodyResponseCallback + | Params$Resource$Orderreturns$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Canceltestorderbycustomer; + {}) as Params$Resource$Orderreturns$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Canceltestorderbycustomer; + params = {} as Params$Resource$Orderreturns$List; options = {}; } @@ -14389,38 +14754,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + - '/content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.orders.createtestorder - * @desc Sandbox only. Creates a test order. + * content.orderreturns.process + * @desc Processes return in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -14444,17 +14808,20 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.createtestorder({ - * // The ID of the account that should manage the order. This cannot be a multi-client account. + * const res = await content.orderreturns.process({ + * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', + * // The ID of the return. + * returnId: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "country": "my_country", - * // "templateName": "my_templateName", - * // "testOrder": {} + * // "fullChargeReturnShippingCost": false, + * // "operationId": "my_operationId", + * // "refundShippingFee": {}, + * // "returnItems": [] * // } * }, * }); @@ -14462,8 +14829,8 @@ export namespace content_v2_1 { * * // Example response * // { - * // "kind": "my_kind", - * // "orderId": "my_orderId" + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" * // } * } * @@ -14472,67 +14839,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.createtestorder + * @alias content.orderreturns.process * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that should manage the order. This cannot be a multi-client account. - * @param {().OrdersCreateTestOrderRequest} params.requestBody Request body data + * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. + * @param {string} params.returnId The ID of the return. + * @param {().OrderreturnsProcessRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createtestorder( - params: Params$Resource$Orders$Createtestorder, + process( + params: Params$Resource$Orderreturns$Process, options: StreamMethodOptions ): GaxiosPromise; - createtestorder( - params?: Params$Resource$Orders$Createtestorder, + process( + params?: Params$Resource$Orderreturns$Process, options?: MethodOptions - ): GaxiosPromise; - createtestorder( - params: Params$Resource$Orders$Createtestorder, + ): GaxiosPromise; + process( + params: Params$Resource$Orderreturns$Process, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - createtestorder( - params: Params$Resource$Orders$Createtestorder, + process( + params: Params$Resource$Orderreturns$Process, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - createtestorder( - params: Params$Resource$Orders$Createtestorder, - callback: BodyResponseCallback + process( + params: Params$Resource$Orderreturns$Process, + callback: BodyResponseCallback ): void; - createtestorder( - callback: BodyResponseCallback + process( + callback: BodyResponseCallback ): void; - createtestorder( + process( paramsOrCallback?: - | Params$Resource$Orders$Createtestorder - | BodyResponseCallback + | Params$Resource$Orderreturns$Process + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Createtestorder; + {}) as Params$Resource$Orderreturns$Process; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Createtestorder; + params = {} as Params$Resource$Orderreturns$Process; options = {}; } @@ -14541,38 +14909,138 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/{merchantId}/testorders').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + + '/content/v2.1/{merchantId}/orderreturns/{returnId}/process' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Orderreturns$Acknowledge + extends StandardParameters { /** - * content.orders.createtestreturn - * @desc Sandbox only. Creates a test return. + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the return. + */ + returnId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrderreturnsAcknowledgeRequest; + } + export interface Params$Resource$Orderreturns$Get extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * Merchant order return ID generated by Google. + */ + returnId?: string; + } + export interface Params$Resource$Orderreturns$List + extends StandardParameters { + /** + * Obtains order returns that match the acknowledgement status. When set to true, obtains order returns that have been acknowledged. When false, obtains order returns that have not been acknowledged. When not provided, obtains order returns regardless of their acknowledgement status. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged order returns are returned. + */ + acknowledged?: boolean; + /** + * Obtains order returns created before this date (inclusively), in ISO 8601 format. + */ + createdEndDate?: string; + /** + * Obtains order returns created after this date (inclusively), in ISO 8601 format. + */ + createdStartDate?: string; + /** + * Obtains order returns with the specified order ids. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. + */ + googleOrderIds?: string[]; + /** + * The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page. + */ + maxResults?: number; + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * Return the results in the specified order. + */ + orderBy?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + /** + * Obtains order returns that match any shipment state provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment states. + */ + shipmentStates?: string[]; + /** + * Obtains order returns that match any shipment status provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment statuses. + */ + shipmentStatus?: string[]; + /** + * Obtains order returns with the specified tracking numbers. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number. + */ + shipmentTrackingNumbers?: string[]; + /** + * Obtains order returns that match any shipment type provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment types. + */ + shipmentTypes?: string[]; + } + export interface Params$Resource$Orderreturns$Process + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the return. + */ + returnId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrderreturnsProcessRequest; + } + + export class Resource$Orders { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.orders.acknowledge + * @desc Marks an order as acknowledged. * @example * // Before running the sample: * // - Enable the API at: @@ -14596,7 +15064,7 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.createtestreturn({ + * const res = await content.orders.acknowledge({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', * // The ID of the order. @@ -14606,7 +15074,7 @@ export namespace content_v2_1 { * requestBody: { * // request body parameters * // { - * // "items": [] + * // "operationId": "my_operationId" * // } * }, * }); @@ -14614,8 +15082,8 @@ export namespace content_v2_1 { * * // Example response * // { - * // "kind": "my_kind", - * // "returnId": "my_returnId" + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" * // } * } * @@ -14624,68 +15092,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.createtestreturn + * @alias content.orders.acknowledge * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersCreateTestReturnRequest} params.requestBody Request body data + * @param {().OrdersAcknowledgeRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - createtestreturn( - params: Params$Resource$Orders$Createtestreturn, + acknowledge( + params: Params$Resource$Orders$Acknowledge, options: StreamMethodOptions ): GaxiosPromise; - createtestreturn( - params?: Params$Resource$Orders$Createtestreturn, + acknowledge( + params?: Params$Resource$Orders$Acknowledge, options?: MethodOptions - ): GaxiosPromise; - createtestreturn( - params: Params$Resource$Orders$Createtestreturn, + ): GaxiosPromise; + acknowledge( + params: Params$Resource$Orders$Acknowledge, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - createtestreturn( - params: Params$Resource$Orders$Createtestreturn, + acknowledge( + params: Params$Resource$Orders$Acknowledge, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - createtestreturn( - params: Params$Resource$Orders$Createtestreturn, - callback: BodyResponseCallback + acknowledge( + params: Params$Resource$Orders$Acknowledge, + callback: BodyResponseCallback ): void; - createtestreturn( - callback: BodyResponseCallback + acknowledge( + callback: BodyResponseCallback ): void; - createtestreturn( + acknowledge( paramsOrCallback?: - | Params$Resource$Orders$Createtestreturn - | BodyResponseCallback + | Params$Resource$Orders$Acknowledge + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Createtestreturn; + {}) as Params$Resource$Orders$Acknowledge; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Createtestreturn; + params = {} as Params$Resource$Orders$Acknowledge; options = {}; } @@ -14694,12 +15162,14 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/testreturn' + rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/acknowledge' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -14711,20 +15181,18 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.orders.get - * @desc Retrieves an order from your Merchant Center account. + * content.orders.advancetestorder + * @desc Sandbox only. Moves a test order from state "`inProgress`" to state "`pendingShipment`". * @example * // Before running the sample: * // - Enable the API at: @@ -14748,38 +15216,17 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.get({ + * const res = await content.orders.advancetestorder({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order. + * // The ID of the test order to modify. * orderId: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "acknowledged": false, - * // "annotations": [], - * // "billingAddress": {}, - * // "customer": {}, - * // "deliveryDetails": {}, - * // "id": "my_id", - * // "kind": "my_kind", - * // "lineItems": [], - * // "merchantId": "my_merchantId", - * // "merchantOrderId": "my_merchantOrderId", - * // "netPriceAmount": {}, - * // "netTaxAmount": {}, - * // "paymentStatus": "my_paymentStatus", - * // "pickupDetails": {}, - * // "placedDate": "my_placedDate", - * // "promotions": [], - * // "refunds": [], - * // "shipments": [], - * // "shippingCost": {}, - * // "shippingCostTax": {}, - * // "status": "my_status", - * // "taxCollector": "my_taxCollector" + * // "kind": "my_kind" * // } * } * @@ -14788,59 +15235,67 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.get + * @alias content.orders.advancetestorder * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. + * @param {string} params.orderId The ID of the test order to modify. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Orders$Get, + advancetestorder( + params: Params$Resource$Orders$Advancetestorder, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Orders$Get, + advancetestorder( + params?: Params$Resource$Orders$Advancetestorder, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Orders$Get, + ): GaxiosPromise; + advancetestorder( + params: Params$Resource$Orders$Advancetestorder, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Orders$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + advancetestorder( + params: Params$Resource$Orders$Advancetestorder, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Orders$Get, - callback: BodyResponseCallback + advancetestorder( + params: Params$Resource$Orders$Advancetestorder, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + advancetestorder( + callback: BodyResponseCallback + ): void; + advancetestorder( paramsOrCallback?: - | Params$Resource$Orders$Get - | BodyResponseCallback + | Params$Resource$Orders$Advancetestorder + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Orders$Get; - let options = (optionsOrCallback || {}) as MethodOptions; + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Orders$Advancetestorder; + let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Get; + params = {} as Params$Resource$Orders$Advancetestorder; options = {}; } @@ -14849,14 +15304,16 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}' + rootUrl + + '/content/v2.1/{merchantId}/testorders/{orderId}/advance' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options ), @@ -14866,18 +15323,20 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * content.orders.getbymerchantorderid - * @desc Retrieves an order using merchant order ID. + * content.orders.cancel + * @desc Cancels all line items in an order, making a full refund. * @example * // Before running the sample: * // - Enable the API at: @@ -14901,18 +15360,28 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.getbymerchantorderid({ + * const res = await content.orders.cancel({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The merchant order ID to be looked for. - * merchantOrderId: 'placeholder-value', + * // The ID of the order to cancel. + * orderId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "operationId": "my_operationId", + * // "reason": "my_reason", + * // "reasonText": "my_reasonText" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind", - * // "order": {} + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" * // } * } * @@ -14921,67 +15390,65 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.getbymerchantorderid + * @alias content.orders.cancel * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.merchantOrderId The merchant order ID to be looked for. + * @param {string} params.orderId The ID of the order to cancel. + * @param {().OrdersCancelRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - getbymerchantorderid( - params: Params$Resource$Orders$Getbymerchantorderid, + cancel( + params: Params$Resource$Orders$Cancel, options: StreamMethodOptions ): GaxiosPromise; - getbymerchantorderid( - params?: Params$Resource$Orders$Getbymerchantorderid, + cancel( + params?: Params$Resource$Orders$Cancel, options?: MethodOptions - ): GaxiosPromise; - getbymerchantorderid( - params: Params$Resource$Orders$Getbymerchantorderid, + ): GaxiosPromise; + cancel( + params: Params$Resource$Orders$Cancel, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - getbymerchantorderid( - params: Params$Resource$Orders$Getbymerchantorderid, + cancel( + params: Params$Resource$Orders$Cancel, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - getbymerchantorderid( - params: Params$Resource$Orders$Getbymerchantorderid, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - getbymerchantorderid( - callback: BodyResponseCallback + cancel( + params: Params$Resource$Orders$Cancel, + callback: BodyResponseCallback ): void; - getbymerchantorderid( + cancel(callback: BodyResponseCallback): void; + cancel( paramsOrCallback?: - | Params$Resource$Orders$Getbymerchantorderid - | BodyResponseCallback + | Params$Resource$Orders$Cancel + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Getbymerchantorderid; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$Cancel; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Getbymerchantorderid; + params = {} as Params$Resource$Orders$Cancel; options = {}; } @@ -14990,38 +15457,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}' + rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/cancel' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'merchantOrderId'], - pathParams: ['merchantId', 'merchantOrderId'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.orders.gettestordertemplate - * @desc Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox. + * content.orders.cancellineitem + * @desc Cancels a line item, making a full refund. * @example * // Before running the sample: * // - Enable the API at: @@ -15045,20 +15510,31 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.gettestordertemplate({ - * // The country of the template to retrieve. Defaults to `US`. - * country: 'placeholder-value', - * // The ID of the account that should manage the order. This cannot be a multi-client account. + * const res = await content.orders.cancellineitem({ + * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The name of the template to retrieve. - * templateName: 'placeholder-value', + * // The ID of the order. + * orderId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "lineItemId": "my_lineItemId", + * // "operationId": "my_operationId", + * // "productId": "my_productId", + * // "quantity": 0, + * // "reason": "my_reason", + * // "reasonText": "my_reasonText" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind", - * // "template": {} + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" * // } * } * @@ -15067,68 +15543,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.gettestordertemplate + * @alias content.orders.cancellineitem * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.country The country of the template to retrieve. Defaults to `US`. - * @param {string} params.merchantId The ID of the account that should manage the order. This cannot be a multi-client account. - * @param {string} params.templateName The name of the template to retrieve. + * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. + * @param {string} params.orderId The ID of the order. + * @param {().OrdersCancelLineItemRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - gettestordertemplate( - params: Params$Resource$Orders$Gettestordertemplate, + cancellineitem( + params: Params$Resource$Orders$Cancellineitem, options: StreamMethodOptions ): GaxiosPromise; - gettestordertemplate( - params?: Params$Resource$Orders$Gettestordertemplate, + cancellineitem( + params?: Params$Resource$Orders$Cancellineitem, options?: MethodOptions - ): GaxiosPromise; - gettestordertemplate( - params: Params$Resource$Orders$Gettestordertemplate, + ): GaxiosPromise; + cancellineitem( + params: Params$Resource$Orders$Cancellineitem, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - gettestordertemplate( - params: Params$Resource$Orders$Gettestordertemplate, + cancellineitem( + params: Params$Resource$Orders$Cancellineitem, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - gettestordertemplate( - params: Params$Resource$Orders$Gettestordertemplate, - callback: BodyResponseCallback + cancellineitem( + params: Params$Resource$Orders$Cancellineitem, + callback: BodyResponseCallback ): void; - gettestordertemplate( - callback: BodyResponseCallback + cancellineitem( + callback: BodyResponseCallback ): void; - gettestordertemplate( + cancellineitem( paramsOrCallback?: - | Params$Resource$Orders$Gettestordertemplate - | BodyResponseCallback + | Params$Resource$Orders$Cancellineitem + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Gettestordertemplate; + {}) as Params$Resource$Orders$Cancellineitem; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Gettestordertemplate; + params = {} as Params$Resource$Orders$Cancellineitem; options = {}; } @@ -15137,38 +15613,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/testordertemplates/{templateName}' + '/content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'templateName'], - pathParams: ['merchantId', 'templateName'], + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * content.orders.instorerefundlineitem - * @desc Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return. + * content.orders.canceltestorderbycustomer + * @desc Sandbox only. Cancels a test order for customer-initiated cancellation. * @example * // Before running the sample: * // - Enable the API at: @@ -15192,24 +15669,17 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.instorerefundlineitem({ + * const res = await content.orders.canceltestorderbycustomer({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order. + * // The ID of the test order to cancel. * orderId: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "lineItemId": "my_lineItemId", - * // "operationId": "my_operationId", - * // "priceAmount": {}, - * // "productId": "my_productId", - * // "quantity": 0, - * // "reason": "my_reason", - * // "reasonText": "my_reasonText", - * // "taxAmount": {} + * // "reason": "my_reason" * // } * }, * }); @@ -15217,7 +15687,6 @@ export namespace content_v2_1 { * * // Example response * // { - * // "executionStatus": "my_executionStatus", * // "kind": "my_kind" * // } * } @@ -15227,68 +15696,74 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.instorerefundlineitem + * @alias content.orders.canceltestorderbycustomer * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. - * @param {().OrdersInStoreRefundLineItemRequest} params.requestBody Request body data + * @param {string} params.orderId The ID of the test order to cancel. + * @param {().OrdersCancelTestOrderByCustomerRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - instorerefundlineitem( - params: Params$Resource$Orders$Instorerefundlineitem, + canceltestorderbycustomer( + params: Params$Resource$Orders$Canceltestorderbycustomer, options: StreamMethodOptions ): GaxiosPromise; - instorerefundlineitem( - params?: Params$Resource$Orders$Instorerefundlineitem, + canceltestorderbycustomer( + params?: Params$Resource$Orders$Canceltestorderbycustomer, options?: MethodOptions - ): GaxiosPromise; - instorerefundlineitem( - params: Params$Resource$Orders$Instorerefundlineitem, + ): GaxiosPromise; + canceltestorderbycustomer( + params: Params$Resource$Orders$Canceltestorderbycustomer, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - instorerefundlineitem( - params: Params$Resource$Orders$Instorerefundlineitem, + canceltestorderbycustomer( + params: Params$Resource$Orders$Canceltestorderbycustomer, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$OrdersCancelTestOrderByCustomerResponse + > ): void; - instorerefundlineitem( - params: Params$Resource$Orders$Instorerefundlineitem, - callback: BodyResponseCallback + canceltestorderbycustomer( + params: Params$Resource$Orders$Canceltestorderbycustomer, + callback: BodyResponseCallback< + Schema$OrdersCancelTestOrderByCustomerResponse + > ): void; - instorerefundlineitem( - callback: BodyResponseCallback + canceltestorderbycustomer( + callback: BodyResponseCallback< + Schema$OrdersCancelTestOrderByCustomerResponse + > ): void; - instorerefundlineitem( + canceltestorderbycustomer( paramsOrCallback?: - | Params$Resource$Orders$Instorerefundlineitem - | BodyResponseCallback + | Params$Resource$Orders$Canceltestorderbycustomer + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Instorerefundlineitem; + {}) as Params$Resource$Orders$Canceltestorderbycustomer; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Instorerefundlineitem; + params = {} as Params$Resource$Orders$Canceltestorderbycustomer; options = {}; } @@ -15297,13 +15772,14 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem' + '/content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -15315,20 +15791,20 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * content.orders.list - * @desc Lists the orders in your Merchant Center account. + * content.orders.createtestorder + * @desc Sandbox only. Creates a test order. * @example * // Before running the sample: * // - Enable the API at: @@ -15352,36 +15828,26 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.list({ - * // Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. - * // We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned. - * acknowledged: 'placeholder-value', - * // The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page. - * maxResults: 'placeholder-value', - * // The ID of the account that manages the order. This cannot be a multi-client account. + * const res = await content.orders.createtestorder({ + * // The ID of the account that should manage the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // Order results by placement date in descending or ascending order. - * // - * // Acceptable values are: - * // - placedDateAsc - * // - placedDateDesc - * orderBy: 'placeholder-value', - * // The token returned by the previous request. - * pageToken: 'placeholder-value', - * // Obtains orders placed before this date (exclusively), in ISO 8601 format. - * placedDateEnd: 'placeholder-value', - * // Obtains orders placed after this date (inclusively), in ISO 8601 format. - * placedDateStart: 'placeholder-value', - * // Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`. - * statuses: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "country": "my_country", + * // "templateName": "my_templateName", + * // "testOrder": {} + * // } + * }, * }); * console.log(res.data); * * // Example response * // { * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken", - * // "resources": [] + * // "orderId": "my_orderId" * // } * } * @@ -15390,68 +15856,67 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.list + * @alias content.orders.createtestorder * @memberOf! () * * @param {object} params Parameters for request - * @param {boolean=} params.acknowledged Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned. - * @param {integer=} params.maxResults The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page. - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string=} params.orderBy Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc - * @param {string=} params.pageToken The token returned by the previous request. - * @param {string=} params.placedDateEnd Obtains orders placed before this date (exclusively), in ISO 8601 format. - * @param {string=} params.placedDateStart Obtains orders placed after this date (inclusively), in ISO 8601 format. - * @param {string=} params.statuses Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`. + * @param {string} params.merchantId The ID of the account that should manage the order. This cannot be a multi-client account. + * @param {().OrdersCreateTestOrderRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Orders$List, + createtestorder( + params: Params$Resource$Orders$Createtestorder, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Orders$List, + createtestorder( + params?: Params$Resource$Orders$Createtestorder, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Orders$List, + ): GaxiosPromise; + createtestorder( + params: Params$Resource$Orders$Createtestorder, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Orders$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + createtestorder( + params: Params$Resource$Orders$Createtestorder, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Orders$List, - callback: BodyResponseCallback + createtestorder( + params: Params$Resource$Orders$Createtestorder, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + createtestorder( + callback: BodyResponseCallback + ): void; + createtestorder( paramsOrCallback?: - | Params$Resource$Orders$List - | BodyResponseCallback + | Params$Resource$Orders$Createtestorder + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Orders$List; + let params = (paramsOrCallback || + {}) as Params$Resource$Orders$Createtestorder; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$List; + params = {} as Params$Resource$Orders$Createtestorder; options = {}; } @@ -15460,15 +15925,16 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/{merchantId}/orders').replace( + url: (rootUrl + '/content/v2.1/{merchantId}/testorders').replace( /([^:]\/)\/+/g, '$1' ), - method: 'GET', + method: 'POST', }, options ), @@ -15478,18 +15944,20 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * content.orders.refunditem - * @desc Issues a partial or total refund for items and shipment. + * content.orders.createtestreturn + * @desc Sandbox only. Creates a test return. * @example * // Before running the sample: * // - Enable the API at: @@ -15513,21 +15981,17 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.refunditem({ + * const res = await content.orders.createtestreturn({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order to refund. + * // The ID of the order. * orderId: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "items": [], - * // "operationId": "my_operationId", - * // "reason": "my_reason", - * // "reasonText": "my_reasonText", - * // "shipping": {} + * // "items": [] * // } * }, * }); @@ -15535,8 +15999,8 @@ export namespace content_v2_1 { * * // Example response * // { - * // "executionStatus": "my_executionStatus", - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "returnId": "my_returnId" * // } * } * @@ -15545,68 +16009,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.refunditem + * @alias content.orders.createtestreturn * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order to refund. - * @param {().OrdersRefundItemRequest} params.requestBody Request body data + * @param {string} params.orderId The ID of the order. + * @param {().OrdersCreateTestReturnRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - refunditem( - params: Params$Resource$Orders$Refunditem, + createtestreturn( + params: Params$Resource$Orders$Createtestreturn, options: StreamMethodOptions ): GaxiosPromise; - refunditem( - params?: Params$Resource$Orders$Refunditem, + createtestreturn( + params?: Params$Resource$Orders$Createtestreturn, options?: MethodOptions - ): GaxiosPromise; - refunditem( - params: Params$Resource$Orders$Refunditem, + ): GaxiosPromise; + createtestreturn( + params: Params$Resource$Orders$Createtestreturn, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - refunditem( - params: Params$Resource$Orders$Refunditem, + createtestreturn( + params: Params$Resource$Orders$Createtestreturn, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - refunditem( - params: Params$Resource$Orders$Refunditem, - callback: BodyResponseCallback + createtestreturn( + params: Params$Resource$Orders$Createtestreturn, + callback: BodyResponseCallback ): void; - refunditem( - callback: BodyResponseCallback + createtestreturn( + callback: BodyResponseCallback ): void; - refunditem( + createtestreturn( paramsOrCallback?: - | Params$Resource$Orders$Refunditem - | BodyResponseCallback + | Params$Resource$Orders$Createtestreturn + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Refunditem; + {}) as Params$Resource$Orders$Createtestreturn; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Refunditem; + params = {} as Params$Resource$Orders$Createtestreturn; options = {}; } @@ -15615,12 +16079,13 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/refunditem' + rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/testreturn' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -15632,18 +16097,20 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * content.orders.refundorder - * @desc Issues a partial or total refund for an order. + * content.orders.get + * @desc Retrieves an order from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -15667,100 +16134,99 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.refundorder({ + * const res = await content.orders.get({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order to refund. + * // The ID of the order. * orderId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "amount": {}, - * // "fullRefund": false, - * // "operationId": "my_operationId", - * // "reason": "my_reason", - * // "reasonText": "my_reasonText" - * // } - * }, * }); * console.log(res.data); * * // Example response * // { - * // "executionStatus": "my_executionStatus", - * // "kind": "my_kind" - * // } - * } - * - * main().catch(e => { - * console.error(e); - * throw e; - * }); - * - * @alias content.orders.refundorder + * // "acknowledged": false, + * // "annotations": [], + * // "billingAddress": {}, + * // "customer": {}, + * // "deliveryDetails": {}, + * // "id": "my_id", + * // "kind": "my_kind", + * // "lineItems": [], + * // "merchantId": "my_merchantId", + * // "merchantOrderId": "my_merchantOrderId", + * // "netPriceAmount": {}, + * // "netTaxAmount": {}, + * // "paymentStatus": "my_paymentStatus", + * // "pickupDetails": {}, + * // "placedDate": "my_placedDate", + * // "promotions": [], + * // "refunds": [], + * // "shipments": [], + * // "shippingCost": {}, + * // "shippingCostTax": {}, + * // "status": "my_status", + * // "taxCollector": "my_taxCollector" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.orders.get * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order to refund. - * @param {().OrdersRefundOrderRequest} params.requestBody Request body data + * @param {string} params.orderId The ID of the order. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - refundorder( - params: Params$Resource$Orders$Refundorder, + get( + params: Params$Resource$Orders$Get, options: StreamMethodOptions ): GaxiosPromise; - refundorder( - params?: Params$Resource$Orders$Refundorder, + get( + params?: Params$Resource$Orders$Get, options?: MethodOptions - ): GaxiosPromise; - refundorder( - params: Params$Resource$Orders$Refundorder, + ): GaxiosPromise; + get( + params: Params$Resource$Orders$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - refundorder( - params: Params$Resource$Orders$Refundorder, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - refundorder( - params: Params$Resource$Orders$Refundorder, - callback: BodyResponseCallback + get( + params: Params$Resource$Orders$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - refundorder( - callback: BodyResponseCallback + get( + params: Params$Resource$Orders$Get, + callback: BodyResponseCallback ): void; - refundorder( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Orders$Refundorder - | BodyResponseCallback + | Params$Resource$Orders$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Refundorder; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Orders$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Refundorder; + params = {} as Params$Resource$Orders$Get; options = {}; } @@ -15769,15 +16235,15 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/refundorder' + rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options ), @@ -15787,18 +16253,18 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.orders.rejectreturnlineitem - * @desc Rejects return on an line item. + * content.orders.getbymerchantorderid + * @desc Retrieves an order using merchant order ID. * @example * // Before running the sample: * // - Enable the API at: @@ -15822,31 +16288,18 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.rejectreturnlineitem({ + * const res = await content.orders.getbymerchantorderid({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order. - * orderId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "lineItemId": "my_lineItemId", - * // "operationId": "my_operationId", - * // "productId": "my_productId", - * // "quantity": 0, - * // "reason": "my_reason", - * // "reasonText": "my_reasonText" - * // } - * }, + * // The merchant order ID to be looked for. + * merchantOrderId: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "executionStatus": "my_executionStatus", - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "order": {} * // } * } * @@ -15855,68 +16308,67 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.rejectreturnlineitem + * @alias content.orders.getbymerchantorderid * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. - * @param {().OrdersRejectReturnLineItemRequest} params.requestBody Request body data + * @param {string} params.merchantOrderId The merchant order ID to be looked for. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - rejectreturnlineitem( - params: Params$Resource$Orders$Rejectreturnlineitem, + getbymerchantorderid( + params: Params$Resource$Orders$Getbymerchantorderid, options: StreamMethodOptions ): GaxiosPromise; - rejectreturnlineitem( - params?: Params$Resource$Orders$Rejectreturnlineitem, + getbymerchantorderid( + params?: Params$Resource$Orders$Getbymerchantorderid, options?: MethodOptions - ): GaxiosPromise; - rejectreturnlineitem( - params: Params$Resource$Orders$Rejectreturnlineitem, + ): GaxiosPromise; + getbymerchantorderid( + params: Params$Resource$Orders$Getbymerchantorderid, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - rejectreturnlineitem( - params: Params$Resource$Orders$Rejectreturnlineitem, + getbymerchantorderid( + params: Params$Resource$Orders$Getbymerchantorderid, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - rejectreturnlineitem( - params: Params$Resource$Orders$Rejectreturnlineitem, - callback: BodyResponseCallback + getbymerchantorderid( + params: Params$Resource$Orders$Getbymerchantorderid, + callback: BodyResponseCallback ): void; - rejectreturnlineitem( - callback: BodyResponseCallback + getbymerchantorderid( + callback: BodyResponseCallback ): void; - rejectreturnlineitem( + getbymerchantorderid( paramsOrCallback?: - | Params$Resource$Orders$Rejectreturnlineitem - | BodyResponseCallback + | Params$Resource$Orders$Getbymerchantorderid + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Rejectreturnlineitem; + {}) as Params$Resource$Orders$Getbymerchantorderid; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Rejectreturnlineitem; + params = {} as Params$Resource$Orders$Getbymerchantorderid; options = {}; } @@ -15925,38 +16377,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem' + '/content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['merchantId', 'merchantOrderId'], + pathParams: ['merchantId', 'merchantOrderId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * content.orders.returnrefundlineitem - * @desc Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund. + * content.orders.gettestordertemplate + * @desc Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox. * @example * // Before running the sample: * // - Enable the API at: @@ -15980,33 +16433,20 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.returnrefundlineitem({ - * // The ID of the account that manages the order. This cannot be a multi-client account. + * const res = await content.orders.gettestordertemplate({ + * // The country of the template to retrieve. Defaults to `US`. + * country: 'placeholder-value', + * // The ID of the account that should manage the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order. - * orderId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "lineItemId": "my_lineItemId", - * // "operationId": "my_operationId", - * // "priceAmount": {}, - * // "productId": "my_productId", - * // "quantity": 0, - * // "reason": "my_reason", - * // "reasonText": "my_reasonText", - * // "taxAmount": {} - * // } - * }, + * // The name of the template to retrieve. + * templateName: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "executionStatus": "my_executionStatus", - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "template": {} * // } * } * @@ -16015,68 +16455,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.returnrefundlineitem + * @alias content.orders.gettestordertemplate * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. - * @param {().OrdersReturnRefundLineItemRequest} params.requestBody Request body data + * @param {string=} params.country The country of the template to retrieve. Defaults to `US`. + * @param {string} params.merchantId The ID of the account that should manage the order. This cannot be a multi-client account. + * @param {string} params.templateName The name of the template to retrieve. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - returnrefundlineitem( - params: Params$Resource$Orders$Returnrefundlineitem, + gettestordertemplate( + params: Params$Resource$Orders$Gettestordertemplate, options: StreamMethodOptions ): GaxiosPromise; - returnrefundlineitem( - params?: Params$Resource$Orders$Returnrefundlineitem, + gettestordertemplate( + params?: Params$Resource$Orders$Gettestordertemplate, options?: MethodOptions - ): GaxiosPromise; - returnrefundlineitem( - params: Params$Resource$Orders$Returnrefundlineitem, + ): GaxiosPromise; + gettestordertemplate( + params: Params$Resource$Orders$Gettestordertemplate, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - returnrefundlineitem( - params: Params$Resource$Orders$Returnrefundlineitem, + gettestordertemplate( + params: Params$Resource$Orders$Gettestordertemplate, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - returnrefundlineitem( - params: Params$Resource$Orders$Returnrefundlineitem, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - returnrefundlineitem( - callback: BodyResponseCallback + gettestordertemplate( + params: Params$Resource$Orders$Gettestordertemplate, + callback: BodyResponseCallback ): void; - returnrefundlineitem( + gettestordertemplate( + callback: BodyResponseCallback + ): void; + gettestordertemplate( paramsOrCallback?: - | Params$Resource$Orders$Returnrefundlineitem - | BodyResponseCallback + | Params$Resource$Orders$Gettestordertemplate + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Returnrefundlineitem; + {}) as Params$Resource$Orders$Gettestordertemplate; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Returnrefundlineitem; + params = {} as Params$Resource$Orders$Gettestordertemplate; options = {}; } @@ -16085,38 +16525,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem' + '/content/v2.1/{merchantId}/testordertemplates/{templateName}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['merchantId', 'templateName'], + pathParams: ['merchantId', 'templateName'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * content.orders.setlineitemmetadata - * @desc Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource. + * content.orders.instorerefundlineitem + * @desc Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return. * @example * // Before running the sample: * // - Enable the API at: @@ -16140,7 +16581,7 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.setlineitemmetadata({ + * const res = await content.orders.instorerefundlineitem({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', * // The ID of the order. @@ -16150,10 +16591,14 @@ export namespace content_v2_1 { * requestBody: { * // request body parameters * // { - * // "annotations": [], * // "lineItemId": "my_lineItemId", * // "operationId": "my_operationId", - * // "productId": "my_productId" + * // "priceAmount": {}, + * // "productId": "my_productId", + * // "quantity": 0, + * // "reason": "my_reason", + * // "reasonText": "my_reasonText", + * // "taxAmount": {} * // } * }, * }); @@ -16171,68 +16616,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.setlineitemmetadata + * @alias content.orders.instorerefundlineitem * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersSetLineItemMetadataRequest} params.requestBody Request body data + * @param {().OrdersInStoreRefundLineItemRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - setlineitemmetadata( - params: Params$Resource$Orders$Setlineitemmetadata, + instorerefundlineitem( + params: Params$Resource$Orders$Instorerefundlineitem, options: StreamMethodOptions ): GaxiosPromise; - setlineitemmetadata( - params?: Params$Resource$Orders$Setlineitemmetadata, + instorerefundlineitem( + params?: Params$Resource$Orders$Instorerefundlineitem, options?: MethodOptions - ): GaxiosPromise; - setlineitemmetadata( - params: Params$Resource$Orders$Setlineitemmetadata, + ): GaxiosPromise; + instorerefundlineitem( + params: Params$Resource$Orders$Instorerefundlineitem, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - setlineitemmetadata( - params: Params$Resource$Orders$Setlineitemmetadata, + instorerefundlineitem( + params: Params$Resource$Orders$Instorerefundlineitem, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - setlineitemmetadata( - params: Params$Resource$Orders$Setlineitemmetadata, - callback: BodyResponseCallback + instorerefundlineitem( + params: Params$Resource$Orders$Instorerefundlineitem, + callback: BodyResponseCallback ): void; - setlineitemmetadata( - callback: BodyResponseCallback + instorerefundlineitem( + callback: BodyResponseCallback ): void; - setlineitemmetadata( + instorerefundlineitem( paramsOrCallback?: - | Params$Resource$Orders$Setlineitemmetadata - | BodyResponseCallback + | Params$Resource$Orders$Instorerefundlineitem + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Setlineitemmetadata; + {}) as Params$Resource$Orders$Instorerefundlineitem; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Setlineitemmetadata; + params = {} as Params$Resource$Orders$Instorerefundlineitem; options = {}; } @@ -16241,13 +16686,14 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata' + '/content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -16259,20 +16705,20 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * content.orders.shiplineitems - * @desc Marks line item(s) as shipped. + * content.orders.list + * @desc Lists the orders in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -16296,29 +16742,31 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.shiplineitems({ + * const res = await content.orders.list({ + * // Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned. + * acknowledged: 'placeholder-value', + * // The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page. + * maxResults: 'placeholder-value', * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order. - * orderId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "lineItems": [], - * // "operationId": "my_operationId", - * // "shipmentGroupId": "my_shipmentGroupId", - * // "shipmentInfos": [] - * // } - * }, + * // Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc + * orderBy: 'placeholder-value', + * // The token returned by the previous request. + * pageToken: 'placeholder-value', + * // Obtains orders placed before this date (exclusively), in ISO 8601 format. + * placedDateEnd: 'placeholder-value', + * // Obtains orders placed after this date (inclusively), in ISO 8601 format. + * placedDateStart: 'placeholder-value', + * // Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`. + * statuses: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "executionStatus": "my_executionStatus", - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "resources": [] * // } * } * @@ -16327,68 +16775,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.shiplineitems + * @alias content.orders.list * @memberOf! () * * @param {object} params Parameters for request + * @param {boolean=} params.acknowledged Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged orders are returned. + * @param {integer=} params.maxResults The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page. * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. - * @param {().OrdersShipLineItemsRequest} params.requestBody Request body data + * @param {string=} params.orderBy Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc + * @param {string=} params.pageToken The token returned by the previous request. + * @param {string=} params.placedDateEnd Obtains orders placed before this date (exclusively), in ISO 8601 format. + * @param {string=} params.placedDateStart Obtains orders placed after this date (inclusively), in ISO 8601 format. + * @param {string=} params.statuses Obtains orders that match any of the specified statuses. Please note that `active` is a shortcut for `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`, `returned`, and `canceled`. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - shiplineitems( - params: Params$Resource$Orders$Shiplineitems, + list( + params: Params$Resource$Orders$List, options: StreamMethodOptions ): GaxiosPromise; - shiplineitems( - params?: Params$Resource$Orders$Shiplineitems, + list( + params?: Params$Resource$Orders$List, options?: MethodOptions - ): GaxiosPromise; - shiplineitems( - params: Params$Resource$Orders$Shiplineitems, + ): GaxiosPromise; + list( + params: Params$Resource$Orders$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - shiplineitems( - params: Params$Resource$Orders$Shiplineitems, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - shiplineitems( - params: Params$Resource$Orders$Shiplineitems, - callback: BodyResponseCallback + list( + params: Params$Resource$Orders$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - shiplineitems( - callback: BodyResponseCallback + list( + params: Params$Resource$Orders$List, + callback: BodyResponseCallback ): void; - shiplineitems( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Orders$Shiplineitems - | BodyResponseCallback + | Params$Resource$Orders$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Shiplineitems; + let params = (paramsOrCallback || {}) as Params$Resource$Orders$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Shiplineitems; + params = {} as Params$Resource$Orders$List; options = {}; } @@ -16397,36 +16845,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/shipLineItems' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + url: (rootUrl + '/content/v2.1/{merchantId}/orders').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'orderId'], - pathParams: ['merchantId', 'orderId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.orders.updatelineitemshippingdetails - * @desc Updates ship by and delivery by dates for a line item. + * content.orders.refunditem + * @desc Issues a partial or total refund for items and shipment. * @example * // Before running the sample: * // - Enable the API at: @@ -16450,21 +16899,21 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.updatelineitemshippingdetails({ + * const res = await content.orders.refunditem({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order. + * // The ID of the order to refund. * orderId: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "deliverByDate": "my_deliverByDate", - * // "lineItemId": "my_lineItemId", + * // "items": [], * // "operationId": "my_operationId", - * // "productId": "my_productId", - * // "shipByDate": "my_shipByDate" + * // "reason": "my_reason", + * // "reasonText": "my_reasonText", + * // "shipping": {} * // } * }, * }); @@ -16482,82 +16931,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.updatelineitemshippingdetails + * @alias content.orders.refunditem * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. - * @param {().OrdersUpdateLineItemShippingDetailsRequest} params.requestBody Request body data + * @param {string} params.orderId The ID of the order to refund. + * @param {().OrdersRefundItemRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updatelineitemshippingdetails( - params: Params$Resource$Orders$Updatelineitemshippingdetails, + refunditem( + params: Params$Resource$Orders$Refunditem, options: StreamMethodOptions ): GaxiosPromise; - updatelineitemshippingdetails( - params?: Params$Resource$Orders$Updatelineitemshippingdetails, + refunditem( + params?: Params$Resource$Orders$Refunditem, options?: MethodOptions - ): GaxiosPromise; - updatelineitemshippingdetails( - params: Params$Resource$Orders$Updatelineitemshippingdetails, + ): GaxiosPromise; + refunditem( + params: Params$Resource$Orders$Refunditem, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - updatelineitemshippingdetails( - params: Params$Resource$Orders$Updatelineitemshippingdetails, + refunditem( + params: Params$Resource$Orders$Refunditem, options: | MethodOptions - | BodyResponseCallback< - Schema$OrdersUpdateLineItemShippingDetailsResponse - >, - callback: BodyResponseCallback< - Schema$OrdersUpdateLineItemShippingDetailsResponse - > + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - updatelineitemshippingdetails( - params: Params$Resource$Orders$Updatelineitemshippingdetails, - callback: BodyResponseCallback< - Schema$OrdersUpdateLineItemShippingDetailsResponse - > + refunditem( + params: Params$Resource$Orders$Refunditem, + callback: BodyResponseCallback ): void; - updatelineitemshippingdetails( - callback: BodyResponseCallback< - Schema$OrdersUpdateLineItemShippingDetailsResponse - > + refunditem( + callback: BodyResponseCallback ): void; - updatelineitemshippingdetails( + refunditem( paramsOrCallback?: - | Params$Resource$Orders$Updatelineitemshippingdetails - | BodyResponseCallback< - Schema$OrdersUpdateLineItemShippingDetailsResponse - > + | Params$Resource$Orders$Refunditem + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback< - Schema$OrdersUpdateLineItemShippingDetailsResponse - > + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback< - Schema$OrdersUpdateLineItemShippingDetailsResponse - > + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Updatelineitemshippingdetails; + {}) as Params$Resource$Orders$Refunditem; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Updatelineitemshippingdetails; + params = {} as Params$Resource$Orders$Refunditem; options = {}; } @@ -16566,13 +17001,13 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails' + rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/refunditem' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -16584,20 +17019,18 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest< - Schema$OrdersUpdateLineItemShippingDetailsResponse - >(parameters); + return createAPIRequest(parameters); } } /** - * content.orders.updatemerchantorderid - * @desc Updates the merchant order ID for a given order. + * content.orders.refundorder + * @desc Issues a partial or total refund for an order. * @example * // Before running the sample: * // - Enable the API at: @@ -16621,18 +17054,21 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.updatemerchantorderid({ + * const res = await content.orders.refundorder({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the order. + * // The ID of the order to refund. * orderId: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "merchantOrderId": "my_merchantOrderId", - * // "operationId": "my_operationId" + * // "amount": {}, + * // "fullRefund": false, + * // "operationId": "my_operationId", + * // "reason": "my_reason", + * // "reasonText": "my_reasonText" * // } * }, * }); @@ -16650,68 +17086,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.updatemerchantorderid + * @alias content.orders.refundorder * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. - * @param {string} params.orderId The ID of the order. - * @param {().OrdersUpdateMerchantOrderIdRequest} params.requestBody Request body data + * @param {string} params.orderId The ID of the order to refund. + * @param {().OrdersRefundOrderRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updatemerchantorderid( - params: Params$Resource$Orders$Updatemerchantorderid, + refundorder( + params: Params$Resource$Orders$Refundorder, options: StreamMethodOptions ): GaxiosPromise; - updatemerchantorderid( - params?: Params$Resource$Orders$Updatemerchantorderid, + refundorder( + params?: Params$Resource$Orders$Refundorder, options?: MethodOptions - ): GaxiosPromise; - updatemerchantorderid( - params: Params$Resource$Orders$Updatemerchantorderid, + ): GaxiosPromise; + refundorder( + params: Params$Resource$Orders$Refundorder, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - updatemerchantorderid( - params: Params$Resource$Orders$Updatemerchantorderid, + refundorder( + params: Params$Resource$Orders$Refundorder, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - updatemerchantorderid( - params: Params$Resource$Orders$Updatemerchantorderid, - callback: BodyResponseCallback + refundorder( + params: Params$Resource$Orders$Refundorder, + callback: BodyResponseCallback ): void; - updatemerchantorderid( - callback: BodyResponseCallback + refundorder( + callback: BodyResponseCallback ): void; - updatemerchantorderid( + refundorder( paramsOrCallback?: - | Params$Resource$Orders$Updatemerchantorderid - | BodyResponseCallback + | Params$Resource$Orders$Refundorder + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Updatemerchantorderid; + {}) as Params$Resource$Orders$Refundorder; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Updatemerchantorderid; + params = {} as Params$Resource$Orders$Refundorder; options = {}; } @@ -16720,13 +17156,14 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId' + '/content/v2.1/{merchantId}/orders/{orderId}/refundorder' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -16738,20 +17175,18 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.orders.updateshipment - * @desc Updates a shipment's status, carrier, and/or tracking ID. + * content.orders.rejectreturnlineitem + * @desc Rejects return on an line item. * @example * // Before running the sample: * // - Enable the API at: @@ -16775,7 +17210,7 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.orders.updateshipment({ + * const res = await content.orders.rejectreturnlineitem({ * // The ID of the account that manages the order. This cannot be a multi-client account. * merchantId: 'placeholder-value', * // The ID of the order. @@ -16785,15 +17220,12 @@ export namespace content_v2_1 { * requestBody: { * // request body parameters * // { - * // "carrier": "my_carrier", - * // "deliveryDate": "my_deliveryDate", - * // "lastPickupDate": "my_lastPickupDate", + * // "lineItemId": "my_lineItemId", * // "operationId": "my_operationId", - * // "readyPickupDate": "my_readyPickupDate", - * // "shipmentId": "my_shipmentId", - * // "status": "my_status", - * // "trackingId": "my_trackingId", - * // "undeliveredDate": "my_undeliveredDate" + * // "productId": "my_productId", + * // "quantity": 0, + * // "reason": "my_reason", + * // "reasonText": "my_reasonText" * // } * }, * }); @@ -16811,68 +17243,68 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.orders.updateshipment + * @alias content.orders.rejectreturnlineitem * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. * @param {string} params.orderId The ID of the order. - * @param {().OrdersUpdateShipmentRequest} params.requestBody Request body data + * @param {().OrdersRejectReturnLineItemRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - updateshipment( - params: Params$Resource$Orders$Updateshipment, + rejectreturnlineitem( + params: Params$Resource$Orders$Rejectreturnlineitem, options: StreamMethodOptions ): GaxiosPromise; - updateshipment( - params?: Params$Resource$Orders$Updateshipment, + rejectreturnlineitem( + params?: Params$Resource$Orders$Rejectreturnlineitem, options?: MethodOptions - ): GaxiosPromise; - updateshipment( - params: Params$Resource$Orders$Updateshipment, + ): GaxiosPromise; + rejectreturnlineitem( + params: Params$Resource$Orders$Rejectreturnlineitem, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - updateshipment( - params: Params$Resource$Orders$Updateshipment, + rejectreturnlineitem( + params: Params$Resource$Orders$Rejectreturnlineitem, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - updateshipment( - params: Params$Resource$Orders$Updateshipment, - callback: BodyResponseCallback + rejectreturnlineitem( + params: Params$Resource$Orders$Rejectreturnlineitem, + callback: BodyResponseCallback ): void; - updateshipment( - callback: BodyResponseCallback + rejectreturnlineitem( + callback: BodyResponseCallback ): void; - updateshipment( + rejectreturnlineitem( paramsOrCallback?: - | Params$Resource$Orders$Updateshipment - | BodyResponseCallback + | Params$Resource$Orders$Rejectreturnlineitem + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Orders$Updateshipment; + {}) as Params$Resource$Orders$Rejectreturnlineitem; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Orders$Updateshipment; + params = {} as Params$Resource$Orders$Rejectreturnlineitem; options = {}; } @@ -16881,13 +17313,14 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/orders/{orderId}/updateShipment' + '/content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem' ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, @@ -16899,60 +17332,1022 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } - } - - export interface Params$Resource$Orders$Acknowledge - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order. - */ - orderId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$OrdersAcknowledgeRequest; - } - export interface Params$Resource$Orders$Advancetestorder - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the test order to modify. - */ - orderId?: string; - } - export interface Params$Resource$Orders$Cancel extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order to cancel. - */ - orderId?: string; /** - * Request body metadata - */ - requestBody?: Schema$OrdersCancelRequest; - } + * content.orders.returnrefundlineitem + * @desc Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.orders.returnrefundlineitem({ + * // The ID of the account that manages the order. This cannot be a multi-client account. + * merchantId: 'placeholder-value', + * // The ID of the order. + * orderId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "lineItemId": "my_lineItemId", + * // "operationId": "my_operationId", + * // "priceAmount": {}, + * // "productId": "my_productId", + * // "quantity": 0, + * // "reason": "my_reason", + * // "reasonText": "my_reasonText", + * // "taxAmount": {} + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.orders.returnrefundlineitem + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. + * @param {string} params.orderId The ID of the order. + * @param {().OrdersReturnRefundLineItemRequest} params.requestBody Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + returnrefundlineitem( + params: Params$Resource$Orders$Returnrefundlineitem, + options: StreamMethodOptions + ): GaxiosPromise; + returnrefundlineitem( + params?: Params$Resource$Orders$Returnrefundlineitem, + options?: MethodOptions + ): GaxiosPromise; + returnrefundlineitem( + params: Params$Resource$Orders$Returnrefundlineitem, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + returnrefundlineitem( + params: Params$Resource$Orders$Returnrefundlineitem, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + returnrefundlineitem( + params: Params$Resource$Orders$Returnrefundlineitem, + callback: BodyResponseCallback + ): void; + returnrefundlineitem( + callback: BodyResponseCallback + ): void; + returnrefundlineitem( + paramsOrCallback?: + | Params$Resource$Orders$Returnrefundlineitem + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Orders$Returnrefundlineitem; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Returnrefundlineitem; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * content.orders.setlineitemmetadata + * @desc Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.orders.setlineitemmetadata({ + * // The ID of the account that manages the order. This cannot be a multi-client account. + * merchantId: 'placeholder-value', + * // The ID of the order. + * orderId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "annotations": [], + * // "lineItemId": "my_lineItemId", + * // "operationId": "my_operationId", + * // "productId": "my_productId" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.orders.setlineitemmetadata + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. + * @param {string} params.orderId The ID of the order. + * @param {().OrdersSetLineItemMetadataRequest} params.requestBody Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + setlineitemmetadata( + params: Params$Resource$Orders$Setlineitemmetadata, + options: StreamMethodOptions + ): GaxiosPromise; + setlineitemmetadata( + params?: Params$Resource$Orders$Setlineitemmetadata, + options?: MethodOptions + ): GaxiosPromise; + setlineitemmetadata( + params: Params$Resource$Orders$Setlineitemmetadata, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setlineitemmetadata( + params: Params$Resource$Orders$Setlineitemmetadata, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + setlineitemmetadata( + params: Params$Resource$Orders$Setlineitemmetadata, + callback: BodyResponseCallback + ): void; + setlineitemmetadata( + callback: BodyResponseCallback + ): void; + setlineitemmetadata( + paramsOrCallback?: + | Params$Resource$Orders$Setlineitemmetadata + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Orders$Setlineitemmetadata; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Setlineitemmetadata; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * content.orders.shiplineitems + * @desc Marks line item(s) as shipped. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.orders.shiplineitems({ + * // The ID of the account that manages the order. This cannot be a multi-client account. + * merchantId: 'placeholder-value', + * // The ID of the order. + * orderId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "lineItems": [], + * // "operationId": "my_operationId", + * // "shipmentGroupId": "my_shipmentGroupId", + * // "shipmentInfos": [] + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.orders.shiplineitems + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. + * @param {string} params.orderId The ID of the order. + * @param {().OrdersShipLineItemsRequest} params.requestBody Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + shiplineitems( + params: Params$Resource$Orders$Shiplineitems, + options: StreamMethodOptions + ): GaxiosPromise; + shiplineitems( + params?: Params$Resource$Orders$Shiplineitems, + options?: MethodOptions + ): GaxiosPromise; + shiplineitems( + params: Params$Resource$Orders$Shiplineitems, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + shiplineitems( + params: Params$Resource$Orders$Shiplineitems, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + shiplineitems( + params: Params$Resource$Orders$Shiplineitems, + callback: BodyResponseCallback + ): void; + shiplineitems( + callback: BodyResponseCallback + ): void; + shiplineitems( + paramsOrCallback?: + | Params$Resource$Orders$Shiplineitems + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Orders$Shiplineitems; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Shiplineitems; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/shipLineItems' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest(parameters); + } + } + + /** + * content.orders.updatelineitemshippingdetails + * @desc Updates ship by and delivery by dates for a line item. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.orders.updatelineitemshippingdetails({ + * // The ID of the account that manages the order. This cannot be a multi-client account. + * merchantId: 'placeholder-value', + * // The ID of the order. + * orderId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "deliverByDate": "my_deliverByDate", + * // "lineItemId": "my_lineItemId", + * // "operationId": "my_operationId", + * // "productId": "my_productId", + * // "shipByDate": "my_shipByDate" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.orders.updatelineitemshippingdetails + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. + * @param {string} params.orderId The ID of the order. + * @param {().OrdersUpdateLineItemShippingDetailsRequest} params.requestBody Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + updatelineitemshippingdetails( + params: Params$Resource$Orders$Updatelineitemshippingdetails, + options: StreamMethodOptions + ): GaxiosPromise; + updatelineitemshippingdetails( + params?: Params$Resource$Orders$Updatelineitemshippingdetails, + options?: MethodOptions + ): GaxiosPromise; + updatelineitemshippingdetails( + params: Params$Resource$Orders$Updatelineitemshippingdetails, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + updatelineitemshippingdetails( + params: Params$Resource$Orders$Updatelineitemshippingdetails, + options: + | MethodOptions + | BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse + >, + callback: BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse + > + ): void; + updatelineitemshippingdetails( + params: Params$Resource$Orders$Updatelineitemshippingdetails, + callback: BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse + > + ): void; + updatelineitemshippingdetails( + callback: BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse + > + ): void; + updatelineitemshippingdetails( + paramsOrCallback?: + | Params$Resource$Orders$Updatelineitemshippingdetails + | BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse + > + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse + > + | BodyResponseCallback, + callback?: + | BodyResponseCallback< + Schema$OrdersUpdateLineItemShippingDetailsResponse + > + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Orders$Updatelineitemshippingdetails; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Updatelineitemshippingdetails; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest< + Schema$OrdersUpdateLineItemShippingDetailsResponse + >(parameters); + } + } + + /** + * content.orders.updatemerchantorderid + * @desc Updates the merchant order ID for a given order. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.orders.updatemerchantorderid({ + * // The ID of the account that manages the order. This cannot be a multi-client account. + * merchantId: 'placeholder-value', + * // The ID of the order. + * orderId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "merchantOrderId": "my_merchantOrderId", + * // "operationId": "my_operationId" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.orders.updatemerchantorderid + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. + * @param {string} params.orderId The ID of the order. + * @param {().OrdersUpdateMerchantOrderIdRequest} params.requestBody Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + updatemerchantorderid( + params: Params$Resource$Orders$Updatemerchantorderid, + options: StreamMethodOptions + ): GaxiosPromise; + updatemerchantorderid( + params?: Params$Resource$Orders$Updatemerchantorderid, + options?: MethodOptions + ): GaxiosPromise; + updatemerchantorderid( + params: Params$Resource$Orders$Updatemerchantorderid, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + updatemerchantorderid( + params: Params$Resource$Orders$Updatemerchantorderid, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + updatemerchantorderid( + params: Params$Resource$Orders$Updatemerchantorderid, + callback: BodyResponseCallback + ): void; + updatemerchantorderid( + callback: BodyResponseCallback + ): void; + updatemerchantorderid( + paramsOrCallback?: + | Params$Resource$Orders$Updatemerchantorderid + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Orders$Updatemerchantorderid; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Updatemerchantorderid; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest( + parameters + ); + } + } + + /** + * content.orders.updateshipment + * @desc Updates a shipment's status, carrier, and/or tracking ID. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.orders.updateshipment({ + * // The ID of the account that manages the order. This cannot be a multi-client account. + * merchantId: 'placeholder-value', + * // The ID of the order. + * orderId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "carrier": "my_carrier", + * // "deliveryDate": "my_deliveryDate", + * // "lastPickupDate": "my_lastPickupDate", + * // "operationId": "my_operationId", + * // "readyPickupDate": "my_readyPickupDate", + * // "shipmentId": "my_shipmentId", + * // "status": "my_status", + * // "trackingId": "my_trackingId", + * // "undeliveredDate": "my_undeliveredDate" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "executionStatus": "my_executionStatus", + * // "kind": "my_kind" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.orders.updateshipment + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.merchantId The ID of the account that manages the order. This cannot be a multi-client account. + * @param {string} params.orderId The ID of the order. + * @param {().OrdersUpdateShipmentRequest} params.requestBody Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + updateshipment( + params: Params$Resource$Orders$Updateshipment, + options: StreamMethodOptions + ): GaxiosPromise; + updateshipment( + params?: Params$Resource$Orders$Updateshipment, + options?: MethodOptions + ): GaxiosPromise; + updateshipment( + params: Params$Resource$Orders$Updateshipment, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + updateshipment( + params: Params$Resource$Orders$Updateshipment, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + updateshipment( + params: Params$Resource$Orders$Updateshipment, + callback: BodyResponseCallback + ): void; + updateshipment( + callback: BodyResponseCallback + ): void; + updateshipment( + paramsOrCallback?: + | Params$Resource$Orders$Updateshipment + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Orders$Updateshipment; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Orders$Updateshipment; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/updateShipment' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest( + parameters + ); + } + } + } + + export interface Params$Resource$Orders$Acknowledge + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrdersAcknowledgeRequest; + } + export interface Params$Resource$Orders$Advancetestorder + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the test order to modify. + */ + orderId?: string; + } + export interface Params$Resource$Orders$Cancel extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the order to cancel. + */ + orderId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrdersCancelRequest; + } export interface Params$Resource$Orders$Cancellineitem extends StandardParameters { /** @@ -17079,7 +18474,7 @@ export namespace content_v2_1 { */ merchantId?: string; /** - * Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc + * Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc */ orderBy?: string; /** @@ -17110,149 +18505,709 @@ export namespace content_v2_1 { */ orderId?: string; - /** - * Request body metadata - */ - requestBody?: Schema$OrdersRefundItemRequest; - } - export interface Params$Resource$Orders$Refundorder - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order to refund. - */ - orderId?: string; + /** + * Request body metadata + */ + requestBody?: Schema$OrdersRefundItemRequest; + } + export interface Params$Resource$Orders$Refundorder + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the order to refund. + */ + orderId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrdersRefundOrderRequest; + } + export interface Params$Resource$Orders$Rejectreturnlineitem + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrdersRejectReturnLineItemRequest; + } + export interface Params$Resource$Orders$Returnrefundlineitem + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrdersReturnRefundLineItemRequest; + } + export interface Params$Resource$Orders$Setlineitemmetadata + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrdersSetLineItemMetadataRequest; + } + export interface Params$Resource$Orders$Shiplineitems + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrdersShipLineItemsRequest; + } + export interface Params$Resource$Orders$Updatelineitemshippingdetails + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrdersUpdateLineItemShippingDetailsRequest; + } + export interface Params$Resource$Orders$Updatemerchantorderid + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrdersUpdateMerchantOrderIdRequest; + } + export interface Params$Resource$Orders$Updateshipment + extends StandardParameters { + /** + * The ID of the account that manages the order. This cannot be a multi-client account. + */ + merchantId?: string; + /** + * The ID of the order. + */ + orderId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$OrdersUpdateShipmentRequest; + } + + export class Resource$Pos { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.pos.custombatch + * @desc Batches multiple POS-related calls in a single request. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.pos.custombatch({ + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "entries": [] + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "entries": [], + * // "kind": "my_kind" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.pos.custombatch + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {().PosCustomBatchRequest} params.requestBody Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + custombatch( + params: Params$Resource$Pos$Custombatch, + options: StreamMethodOptions + ): GaxiosPromise; + custombatch( + params?: Params$Resource$Pos$Custombatch, + options?: MethodOptions + ): GaxiosPromise; + custombatch( + params: Params$Resource$Pos$Custombatch, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + custombatch( + params: Params$Resource$Pos$Custombatch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + custombatch( + params: Params$Resource$Pos$Custombatch, + callback: BodyResponseCallback + ): void; + custombatch( + callback: BodyResponseCallback + ): void; + custombatch( + paramsOrCallback?: + | Params$Resource$Pos$Custombatch + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Custombatch; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$Custombatch; + options = {}; + } - /** - * Request body metadata - */ - requestBody?: Schema$OrdersRefundOrderRequest; - } - export interface Params$Resource$Orders$Rejectreturnlineitem - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order. - */ - orderId?: string; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } - /** - * Request body metadata - */ - requestBody?: Schema$OrdersRejectReturnLineItemRequest; - } - export interface Params$Resource$Orders$Returnrefundlineitem - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order. - */ - orderId?: string; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/content/v2.1/pos/batch').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', + }, + options + ), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest(parameters); + } + } /** - * Request body metadata - */ - requestBody?: Schema$OrdersReturnRefundLineItemRequest; - } - export interface Params$Resource$Orders$Setlineitemmetadata - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. + * content.pos.delete + * @desc Deletes a store for the given merchant. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.pos.delete({ + * // The ID of the POS or inventory data provider. + * merchantId: 'placeholder-value', + * // A store code that is unique per merchant. + * storeCode: 'placeholder-value', + * // The ID of the target merchant. + * targetMerchantId: 'placeholder-value', + * }); + * console.log(res.data); + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.pos.delete + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.merchantId The ID of the POS or inventory data provider. + * @param {string} params.storeCode A store code that is unique per merchant. + * @param {string} params.targetMerchantId The ID of the target merchant. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object */ - merchantId?: string; + delete( + params: Params$Resource$Pos$Delete, + options: StreamMethodOptions + ): GaxiosPromise; + delete( + params?: Params$Resource$Pos$Delete, + options?: MethodOptions + ): GaxiosPromise; + delete( + params: Params$Resource$Pos$Delete, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Pos$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + delete( + params: Params$Resource$Pos$Delete, + callback: BodyResponseCallback + ): void; + delete(callback: BodyResponseCallback): void; + delete( + paramsOrCallback?: + | Params$Resource$Pos$Delete + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: BodyResponseCallback | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Delete; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$Delete; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, + options + ), + params, + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest(parameters); + } + } + /** - * The ID of the order. + * content.pos.get + * @desc Retrieves information about the given store. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.pos.get({ + * // The ID of the POS or inventory data provider. + * merchantId: 'placeholder-value', + * // A store code that is unique per merchant. + * storeCode: 'placeholder-value', + * // The ID of the target merchant. + * targetMerchantId: 'placeholder-value', + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "kind": "my_kind", + * // "storeAddress": "my_storeAddress", + * // "storeCode": "my_storeCode" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.pos.get + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.merchantId The ID of the POS or inventory data provider. + * @param {string} params.storeCode A store code that is unique per merchant. + * @param {string} params.targetMerchantId The ID of the target merchant. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object */ - orderId?: string; + get( + params: Params$Resource$Pos$Get, + options: StreamMethodOptions + ): GaxiosPromise; + get( + params?: Params$Resource$Pos$Get, + options?: MethodOptions + ): GaxiosPromise; + get( + params: Params$Resource$Pos$Get, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Pos$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + get( + params: Params$Resource$Pos$Get, + callback: BodyResponseCallback + ): void; + get(callback: BodyResponseCallback): void; + get( + paramsOrCallback?: + | Params$Resource$Pos$Get + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Get; + let options = (optionsOrCallback || {}) as MethodOptions; - /** - * Request body metadata - */ - requestBody?: Schema$OrdersSetLineItemMetadataRequest; - } - export interface Params$Resource$Orders$Shiplineitems - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order. - */ - orderId?: string; + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$Get; + options = {}; + } - /** - * Request body metadata - */ - requestBody?: Schema$OrdersShipLineItemsRequest; - } - export interface Params$Resource$Orders$Updatelineitemshippingdetails - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order. - */ - orderId?: string; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } - /** - * Request body metadata - */ - requestBody?: Schema$OrdersUpdateLineItemShippingDetailsRequest; - } - export interface Params$Resource$Orders$Updatemerchantorderid - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order. - */ - orderId?: string; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest(parameters); + } + } /** - * Request body metadata - */ - requestBody?: Schema$OrdersUpdateMerchantOrderIdRequest; - } - export interface Params$Resource$Orders$Updateshipment - extends StandardParameters { - /** - * The ID of the account that manages the order. This cannot be a multi-client account. - */ - merchantId?: string; - /** - * The ID of the order. + * content.pos.insert + * @desc Creates a store for the given merchant. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.pos.insert({ + * // The ID of the POS or inventory data provider. + * merchantId: 'placeholder-value', + * // The ID of the target merchant. + * targetMerchantId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "kind": "my_kind", + * // "storeAddress": "my_storeAddress", + * // "storeCode": "my_storeCode" + * // } + * }, + * }); + * console.log(res.data); + * + * // Example response + * // { + * // "kind": "my_kind", + * // "storeAddress": "my_storeAddress", + * // "storeCode": "my_storeCode" + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.pos.insert + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string} params.merchantId The ID of the POS or inventory data provider. + * @param {string} params.targetMerchantId The ID of the target merchant. + * @param {().PosStore} params.requestBody Request body data + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object */ - orderId?: string; + insert( + params: Params$Resource$Pos$Insert, + options: StreamMethodOptions + ): GaxiosPromise; + insert( + params?: Params$Resource$Pos$Insert, + options?: MethodOptions + ): GaxiosPromise; + insert( + params: Params$Resource$Pos$Insert, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + insert( + params: Params$Resource$Pos$Insert, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + insert( + params: Params$Resource$Pos$Insert, + callback: BodyResponseCallback + ): void; + insert(callback: BodyResponseCallback): void; + insert( + paramsOrCallback?: + | Params$Resource$Pos$Insert + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Insert; + let options = (optionsOrCallback || {}) as MethodOptions; - /** - * Request body metadata - */ - requestBody?: Schema$OrdersUpdateShipmentRequest; - } + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Pos$Insert; + options = {}; + } - export class Resource$Pos { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, + options + ), + params, + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest(parameters); + } } /** - * content.pos.custombatch - * @desc Batches multiple POS-related calls in a single request. + * content.pos.inventory + * @desc Submit inventory for the given merchant. * @example * // Before running the sample: * // - Enable the API at: @@ -17276,12 +19231,24 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.pos.custombatch({ + * const res = await content.pos.inventory({ + * // The ID of the POS or inventory data provider. + * merchantId: 'placeholder-value', + * // The ID of the target merchant. + * targetMerchantId: 'placeholder-value', + * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "entries": [] + * // "contentLanguage": "my_contentLanguage", + * // "gtin": "my_gtin", + * // "itemId": "my_itemId", + * // "price": {}, + * // "quantity": "my_quantity", + * // "storeCode": "my_storeCode", + * // "targetCountry": "my_targetCountry", + * // "timestamp": "my_timestamp" * // } * }, * }); @@ -17289,8 +19256,15 @@ export namespace content_v2_1 { * * // Example response * // { - * // "entries": [], - * // "kind": "my_kind" + * // "contentLanguage": "my_contentLanguage", + * // "gtin": "my_gtin", + * // "itemId": "my_itemId", + * // "kind": "my_kind", + * // "price": {}, + * // "quantity": "my_quantity", + * // "storeCode": "my_storeCode", + * // "targetCountry": "my_targetCountry", + * // "timestamp": "my_timestamp" * // } * } * @@ -17299,65 +19273,67 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.pos.custombatch + * @alias content.pos.inventory * @memberOf! () * * @param {object} params Parameters for request - * @param {().PosCustomBatchRequest} params.requestBody Request body data + * @param {string} params.merchantId The ID of the POS or inventory data provider. + * @param {string} params.targetMerchantId The ID of the target merchant. + * @param {().PosInventoryRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch( - params: Params$Resource$Pos$Custombatch, + inventory( + params: Params$Resource$Pos$Inventory, options: StreamMethodOptions ): GaxiosPromise; - custombatch( - params?: Params$Resource$Pos$Custombatch, + inventory( + params?: Params$Resource$Pos$Inventory, options?: MethodOptions - ): GaxiosPromise; - custombatch( - params: Params$Resource$Pos$Custombatch, + ): GaxiosPromise; + inventory( + params: Params$Resource$Pos$Inventory, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - custombatch( - params: Params$Resource$Pos$Custombatch, + inventory( + params: Params$Resource$Pos$Inventory, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - custombatch( - params: Params$Resource$Pos$Custombatch, - callback: BodyResponseCallback + inventory( + params: Params$Resource$Pos$Inventory, + callback: BodyResponseCallback ): void; - custombatch( - callback: BodyResponseCallback + inventory( + callback: BodyResponseCallback ): void; - custombatch( + inventory( paramsOrCallback?: - | Params$Resource$Pos$Custombatch - | BodyResponseCallback + | Params$Resource$Pos$Inventory + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Pos$Custombatch; + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Inventory; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Pos$Custombatch; + params = {} as Params$Resource$Pos$Inventory; options = {}; } @@ -17366,36 +19342,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/pos/batch').replace( - /([^:]\/)\/+/g, - '$1' - ), + url: ( + rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory' + ).replace(/([^:]\/)\/+/g, '$1'), method: 'POST', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.pos.delete - * @desc Deletes a store for the given merchant. + * content.pos.list + * @desc Lists the stores of the target merchant. * @example * // Before running the sample: * // - Enable the API at: @@ -17419,15 +19396,19 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.pos.delete({ + * const res = await content.pos.list({ * // The ID of the POS or inventory data provider. * merchantId: 'placeholder-value', - * // A store code that is unique per merchant. - * storeCode: 'placeholder-value', * // The ID of the target merchant. * targetMerchantId: 'placeholder-value', * }); * console.log(res.data); + * + * // Example response + * // { + * // "kind": "my_kind", + * // "resources": [] + * // } * } * * main().catch(e => { @@ -17435,58 +19416,59 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.pos.delete + * @alias content.pos.list * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the POS or inventory data provider. - * @param {string} params.storeCode A store code that is unique per merchant. * @param {string} params.targetMerchantId The ID of the target merchant. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete( - params: Params$Resource$Pos$Delete, + list( + params: Params$Resource$Pos$List, options: StreamMethodOptions ): GaxiosPromise; - delete( - params?: Params$Resource$Pos$Delete, + list( + params?: Params$Resource$Pos$List, options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Pos$Delete, + ): GaxiosPromise; + list( + params: Params$Resource$Pos$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Pos$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + list( + params: Params$Resource$Pos$List, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Pos$Delete, - callback: BodyResponseCallback + list( + params: Params$Resource$Pos$List, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Pos$Delete - | BodyResponseCallback + | Params$Resource$Pos$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, - callback?: BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Pos$Delete; + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Pos$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Pos$Delete; + params = {} as Params$Resource$Pos$List; options = {}; } @@ -17495,36 +19477,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}' + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], - pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.pos.get - * @desc Retrieves information about the given store. + * content.pos.sale + * @desc Submit a sale event for the given merchant. * @example * // Before running the sample: * // - Enable the API at: @@ -17548,21 +19531,42 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.pos.get({ + * const res = await content.pos.sale({ * // The ID of the POS or inventory data provider. * merchantId: 'placeholder-value', - * // A store code that is unique per merchant. - * storeCode: 'placeholder-value', * // The ID of the target merchant. * targetMerchantId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "contentLanguage": "my_contentLanguage", + * // "gtin": "my_gtin", + * // "itemId": "my_itemId", + * // "price": {}, + * // "quantity": "my_quantity", + * // "saleId": "my_saleId", + * // "storeCode": "my_storeCode", + * // "targetCountry": "my_targetCountry", + * // "timestamp": "my_timestamp" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { + * // "contentLanguage": "my_contentLanguage", + * // "gtin": "my_gtin", + * // "itemId": "my_itemId", * // "kind": "my_kind", - * // "storeAddress": "my_storeAddress", - * // "storeCode": "my_storeCode" + * // "price": {}, + * // "quantity": "my_quantity", + * // "saleId": "my_saleId", + * // "storeCode": "my_storeCode", + * // "targetCountry": "my_targetCountry", + * // "timestamp": "my_timestamp" * // } * } * @@ -17571,60 +19575,60 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.pos.get + * @alias content.pos.sale * @memberOf! () * * @param {object} params Parameters for request * @param {string} params.merchantId The ID of the POS or inventory data provider. - * @param {string} params.storeCode A store code that is unique per merchant. * @param {string} params.targetMerchantId The ID of the target merchant. + * @param {().PosSaleRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Pos$Get, + sale( + params: Params$Resource$Pos$Sale, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Pos$Get, + sale( + params?: Params$Resource$Pos$Sale, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Pos$Get, + ): GaxiosPromise; + sale( + params: Params$Resource$Pos$Sale, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Pos$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + sale( + params: Params$Resource$Pos$Sale, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Pos$Get, - callback: BodyResponseCallback + sale( + params: Params$Resource$Pos$Sale, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + sale(callback: BodyResponseCallback): void; + sale( paramsOrCallback?: - | Params$Resource$Pos$Get - | BodyResponseCallback + | Params$Resource$Pos$Sale + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Pos$Get; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Pos$Sale; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Pos$Get; + params = {} as Params$Resource$Pos$Sale; options = {}; } @@ -17633,36 +19637,133 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}' + rootUrl + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/sale' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], - pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Pos$Custombatch extends StandardParameters { /** - * content.pos.insert - * @desc Creates a store for the given merchant. + * Request body metadata + */ + requestBody?: Schema$PosCustomBatchRequest; + } + export interface Params$Resource$Pos$Delete extends StandardParameters { + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * A store code that is unique per merchant. + */ + storeCode?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + } + export interface Params$Resource$Pos$Get extends StandardParameters { + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * A store code that is unique per merchant. + */ + storeCode?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + } + export interface Params$Resource$Pos$Insert extends StandardParameters { + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$PosStore; + } + export interface Params$Resource$Pos$Inventory extends StandardParameters { + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$PosInventoryRequest; + } + export interface Params$Resource$Pos$List extends StandardParameters { + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + } + export interface Params$Resource$Pos$Sale extends StandardParameters { + /** + * The ID of the POS or inventory data provider. + */ + merchantId?: string; + /** + * The ID of the target merchant. + */ + targetMerchantId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$PosSaleRequest; + } + + export class Resource$Products { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.products.custombatch + * @desc Retrieves, inserts, and deletes multiple products in a single request. * @example * // Before running the sample: * // - Enable the API at: @@ -17686,19 +19787,12 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.pos.insert({ - * // The ID of the POS or inventory data provider. - * merchantId: 'placeholder-value', - * // The ID of the target merchant. - * targetMerchantId: 'placeholder-value', - * + * const res = await content.products.custombatch({ * // Request body metadata * requestBody: { * // request body parameters * // { - * // "kind": "my_kind", - * // "storeAddress": "my_storeAddress", - * // "storeCode": "my_storeCode" + * // "entries": [] * // } * }, * }); @@ -17706,9 +19800,8 @@ export namespace content_v2_1 { * * // Example response * // { - * // "kind": "my_kind", - * // "storeAddress": "my_storeAddress", - * // "storeCode": "my_storeCode" + * // "entries": [], + * // "kind": "my_kind" * // } * } * @@ -17717,60 +19810,66 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.pos.insert + * @alias content.products.custombatch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the POS or inventory data provider. - * @param {string} params.targetMerchantId The ID of the target merchant. - * @param {().PosStore} params.requestBody Request body data + * @param {().ProductsCustomBatchRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert( - params: Params$Resource$Pos$Insert, + custombatch( + params: Params$Resource$Products$Custombatch, options: StreamMethodOptions ): GaxiosPromise; - insert( - params?: Params$Resource$Pos$Insert, + custombatch( + params?: Params$Resource$Products$Custombatch, options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Pos$Insert, + ): GaxiosPromise; + custombatch( + params: Params$Resource$Products$Custombatch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - insert( - params: Params$Resource$Pos$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + custombatch( + params: Params$Resource$Products$Custombatch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - insert( - params: Params$Resource$Pos$Insert, - callback: BodyResponseCallback + custombatch( + params: Params$Resource$Products$Custombatch, + callback: BodyResponseCallback ): void; - insert(callback: BodyResponseCallback): void; - insert( + custombatch( + callback: BodyResponseCallback + ): void; + custombatch( paramsOrCallback?: - | Params$Resource$Pos$Insert - | BodyResponseCallback + | Params$Resource$Products$Custombatch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Pos$Insert; + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Products$Custombatch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Pos$Insert; + params = {} as Params$Resource$Products$Custombatch; options = {}; } @@ -17779,36 +19878,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store' - ).replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/products/batch').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.pos.inventory - * @desc Submit inventory for the given merchant. + * content.products.delete + * @desc Deletes a product from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -17832,41 +19932,15 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.pos.inventory({ - * // The ID of the POS or inventory data provider. + * const res = await content.products.delete({ + * // The Content API Supplemental Feed ID. + * feedId: 'placeholder-value', + * // The ID of the account that contains the product. This account cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the target merchant. - * targetMerchantId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "contentLanguage": "my_contentLanguage", - * // "gtin": "my_gtin", - * // "itemId": "my_itemId", - * // "price": {}, - * // "quantity": "my_quantity", - * // "storeCode": "my_storeCode", - * // "targetCountry": "my_targetCountry", - * // "timestamp": "my_timestamp" - * // } - * }, + * // The REST ID of the product. + * productId: 'placeholder-value', * }); * console.log(res.data); - * - * // Example response - * // { - * // "contentLanguage": "my_contentLanguage", - * // "gtin": "my_gtin", - * // "itemId": "my_itemId", - * // "kind": "my_kind", - * // "price": {}, - * // "quantity": "my_quantity", - * // "storeCode": "my_storeCode", - * // "targetCountry": "my_targetCountry", - * // "timestamp": "my_timestamp" - * // } * } * * main().catch(e => { @@ -17874,67 +19948,58 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.pos.inventory + * @alias content.products.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the POS or inventory data provider. - * @param {string} params.targetMerchantId The ID of the target merchant. - * @param {().PosInventoryRequest} params.requestBody Request body data + * @param {string=} params.feedId The Content API Supplemental Feed ID. + * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. + * @param {string} params.productId The REST ID of the product. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - inventory( - params: Params$Resource$Pos$Inventory, + delete( + params: Params$Resource$Products$Delete, options: StreamMethodOptions ): GaxiosPromise; - inventory( - params?: Params$Resource$Pos$Inventory, + delete( + params?: Params$Resource$Products$Delete, options?: MethodOptions - ): GaxiosPromise; - inventory( - params: Params$Resource$Pos$Inventory, + ): GaxiosPromise; + delete( + params: Params$Resource$Products$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - inventory( - params: Params$Resource$Pos$Inventory, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - inventory( - params: Params$Resource$Pos$Inventory, - callback: BodyResponseCallback + delete( + params: Params$Resource$Products$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - inventory( - callback: BodyResponseCallback + delete( + params: Params$Resource$Products$Delete, + callback: BodyResponseCallback ): void; - inventory( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Pos$Inventory - | BodyResponseCallback + | Params$Resource$Products$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Pos$Inventory; + callback?: BodyResponseCallback | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Products$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Pos$Inventory; + params = {} as Params$Resource$Products$Delete; options = {}; } @@ -17943,36 +20008,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory' + rootUrl + '/content/v2.1/{merchantId}/products/{productId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'DELETE', }, options ), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.pos.list - * @desc Lists the stores of the target merchant. + * content.products.get + * @desc Retrieves a product from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -17996,18 +20061,96 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.pos.list({ - * // The ID of the POS or inventory data provider. + * const res = await content.products.get({ + * // The ID of the account that contains the product. This account cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the target merchant. - * targetMerchantId: 'placeholder-value', + * // The REST ID of the product. + * productId: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { + * // "additionalImageLinks": [], + * // "adsGrouping": "my_adsGrouping", + * // "adsLabels": [], + * // "adsRedirect": "my_adsRedirect", + * // "adult": false, + * // "ageGroup": "my_ageGroup", + * // "availability": "my_availability", + * // "availabilityDate": "my_availabilityDate", + * // "brand": "my_brand", + * // "canonicalLink": "my_canonicalLink", + * // "channel": "my_channel", + * // "color": "my_color", + * // "condition": "my_condition", + * // "contentLanguage": "my_contentLanguage", + * // "costOfGoodsSold": {}, + * // "customAttributes": [], + * // "customLabel0": "my_customLabel0", + * // "customLabel1": "my_customLabel1", + * // "customLabel2": "my_customLabel2", + * // "customLabel3": "my_customLabel3", + * // "customLabel4": "my_customLabel4", + * // "description": "my_description", + * // "displayAdsId": "my_displayAdsId", + * // "displayAdsLink": "my_displayAdsLink", + * // "displayAdsSimilarIds": [], + * // "displayAdsTitle": "my_displayAdsTitle", + * // "displayAdsValue": {}, + * // "energyEfficiencyClass": "my_energyEfficiencyClass", + * // "excludedDestinations": [], + * // "expirationDate": "my_expirationDate", + * // "gender": "my_gender", + * // "googleProductCategory": "my_googleProductCategory", + * // "gtin": "my_gtin", + * // "id": "my_id", + * // "identifierExists": false, + * // "imageLink": "my_imageLink", + * // "includedDestinations": [], + * // "installment": {}, + * // "isBundle": false, + * // "itemGroupId": "my_itemGroupId", * // "kind": "my_kind", - * // "resources": [] + * // "link": "my_link", + * // "loyaltyPoints": {}, + * // "material": "my_material", + * // "maxEnergyEfficiencyClass": "my_maxEnergyEfficiencyClass", + * // "maxHandlingTime": "my_maxHandlingTime", + * // "minEnergyEfficiencyClass": "my_minEnergyEfficiencyClass", + * // "minHandlingTime": "my_minHandlingTime", + * // "mobileLink": "my_mobileLink", + * // "mpn": "my_mpn", + * // "multipack": "my_multipack", + * // "offerId": "my_offerId", + * // "pattern": "my_pattern", + * // "price": {}, + * // "productDetails": [], + * // "productHighlights": [], + * // "productTypes": [], + * // "promotionIds": [], + * // "salePrice": {}, + * // "salePriceEffectiveDate": "my_salePriceEffectiveDate", + * // "sellOnGoogleQuantity": "my_sellOnGoogleQuantity", + * // "shipping": [], + * // "shippingHeight": {}, + * // "shippingLabel": "my_shippingLabel", + * // "shippingLength": {}, + * // "shippingWeight": {}, + * // "shippingWidth": {}, + * // "shoppingAdsExcludedCountries": [], + * // "sizeSystem": "my_sizeSystem", + * // "sizeType": "my_sizeType", + * // "sizes": [], + * // "source": "my_source", + * // "subscriptionCost": {}, + * // "targetCountry": "my_targetCountry", + * // "taxCategory": "my_taxCategory", + * // "taxes": [], + * // "title": "my_title", + * // "transitTimeLabel": "my_transitTimeLabel", + * // "unitPricingBaseMeasure": {}, + * // "unitPricingMeasure": {} * // } * } * @@ -18016,59 +20159,59 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.pos.list + * @alias content.products.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the POS or inventory data provider. - * @param {string} params.targetMerchantId The ID of the target merchant. + * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. + * @param {string} params.productId The REST ID of the product. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Pos$List, + get( + params: Params$Resource$Products$Get, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Pos$List, + get( + params?: Params$Resource$Products$Get, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Pos$List, + ): GaxiosPromise; + get( + params: Params$Resource$Products$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Pos$List, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Products$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Pos$List, - callback: BodyResponseCallback + get( + params: Params$Resource$Products$Get, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Pos$List - | BodyResponseCallback + | Params$Resource$Products$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Pos$List; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Products$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Pos$List; + params = {} as Params$Resource$Products$Get; options = {}; } @@ -18077,36 +20220,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store' + rootUrl + '/content/v2.1/{merchantId}/products/{productId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, options ), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.pos.sale - * @desc Submit a sale event for the given merchant. + * content.products.insert + * @desc Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry. * @example * // Before running the sample: * // - Enable the API at: @@ -18130,25 +20273,96 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.pos.sale({ - * // The ID of the POS or inventory data provider. + * const res = await content.products.insert({ + * // The Content API Supplemental Feed ID. + * feedId: 'placeholder-value', + * // The ID of the account that contains the product. This account cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The ID of the target merchant. - * targetMerchantId: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { + * // "additionalImageLinks": [], + * // "adsGrouping": "my_adsGrouping", + * // "adsLabels": [], + * // "adsRedirect": "my_adsRedirect", + * // "adult": false, + * // "ageGroup": "my_ageGroup", + * // "availability": "my_availability", + * // "availabilityDate": "my_availabilityDate", + * // "brand": "my_brand", + * // "canonicalLink": "my_canonicalLink", + * // "channel": "my_channel", + * // "color": "my_color", + * // "condition": "my_condition", * // "contentLanguage": "my_contentLanguage", + * // "costOfGoodsSold": {}, + * // "customAttributes": [], + * // "customLabel0": "my_customLabel0", + * // "customLabel1": "my_customLabel1", + * // "customLabel2": "my_customLabel2", + * // "customLabel3": "my_customLabel3", + * // "customLabel4": "my_customLabel4", + * // "description": "my_description", + * // "displayAdsId": "my_displayAdsId", + * // "displayAdsLink": "my_displayAdsLink", + * // "displayAdsSimilarIds": [], + * // "displayAdsTitle": "my_displayAdsTitle", + * // "displayAdsValue": {}, + * // "energyEfficiencyClass": "my_energyEfficiencyClass", + * // "excludedDestinations": [], + * // "expirationDate": "my_expirationDate", + * // "gender": "my_gender", + * // "googleProductCategory": "my_googleProductCategory", * // "gtin": "my_gtin", - * // "itemId": "my_itemId", + * // "id": "my_id", + * // "identifierExists": false, + * // "imageLink": "my_imageLink", + * // "includedDestinations": [], + * // "installment": {}, + * // "isBundle": false, + * // "itemGroupId": "my_itemGroupId", + * // "kind": "my_kind", + * // "link": "my_link", + * // "loyaltyPoints": {}, + * // "material": "my_material", + * // "maxEnergyEfficiencyClass": "my_maxEnergyEfficiencyClass", + * // "maxHandlingTime": "my_maxHandlingTime", + * // "minEnergyEfficiencyClass": "my_minEnergyEfficiencyClass", + * // "minHandlingTime": "my_minHandlingTime", + * // "mobileLink": "my_mobileLink", + * // "mpn": "my_mpn", + * // "multipack": "my_multipack", + * // "offerId": "my_offerId", + * // "pattern": "my_pattern", * // "price": {}, - * // "quantity": "my_quantity", - * // "saleId": "my_saleId", - * // "storeCode": "my_storeCode", + * // "productDetails": [], + * // "productHighlights": [], + * // "productTypes": [], + * // "promotionIds": [], + * // "salePrice": {}, + * // "salePriceEffectiveDate": "my_salePriceEffectiveDate", + * // "sellOnGoogleQuantity": "my_sellOnGoogleQuantity", + * // "shipping": [], + * // "shippingHeight": {}, + * // "shippingLabel": "my_shippingLabel", + * // "shippingLength": {}, + * // "shippingWeight": {}, + * // "shippingWidth": {}, + * // "shoppingAdsExcludedCountries": [], + * // "sizeSystem": "my_sizeSystem", + * // "sizeType": "my_sizeType", + * // "sizes": [], + * // "source": "my_source", + * // "subscriptionCost": {}, * // "targetCountry": "my_targetCountry", - * // "timestamp": "my_timestamp" + * // "taxCategory": "my_taxCategory", + * // "taxes": [], + * // "title": "my_title", + * // "transitTimeLabel": "my_transitTimeLabel", + * // "unitPricingBaseMeasure": {}, + * // "unitPricingMeasure": {} * // } * }, * }); @@ -18156,16 +20370,86 @@ export namespace content_v2_1 { * * // Example response * // { + * // "additionalImageLinks": [], + * // "adsGrouping": "my_adsGrouping", + * // "adsLabels": [], + * // "adsRedirect": "my_adsRedirect", + * // "adult": false, + * // "ageGroup": "my_ageGroup", + * // "availability": "my_availability", + * // "availabilityDate": "my_availabilityDate", + * // "brand": "my_brand", + * // "canonicalLink": "my_canonicalLink", + * // "channel": "my_channel", + * // "color": "my_color", + * // "condition": "my_condition", * // "contentLanguage": "my_contentLanguage", + * // "costOfGoodsSold": {}, + * // "customAttributes": [], + * // "customLabel0": "my_customLabel0", + * // "customLabel1": "my_customLabel1", + * // "customLabel2": "my_customLabel2", + * // "customLabel3": "my_customLabel3", + * // "customLabel4": "my_customLabel4", + * // "description": "my_description", + * // "displayAdsId": "my_displayAdsId", + * // "displayAdsLink": "my_displayAdsLink", + * // "displayAdsSimilarIds": [], + * // "displayAdsTitle": "my_displayAdsTitle", + * // "displayAdsValue": {}, + * // "energyEfficiencyClass": "my_energyEfficiencyClass", + * // "excludedDestinations": [], + * // "expirationDate": "my_expirationDate", + * // "gender": "my_gender", + * // "googleProductCategory": "my_googleProductCategory", * // "gtin": "my_gtin", - * // "itemId": "my_itemId", + * // "id": "my_id", + * // "identifierExists": false, + * // "imageLink": "my_imageLink", + * // "includedDestinations": [], + * // "installment": {}, + * // "isBundle": false, + * // "itemGroupId": "my_itemGroupId", * // "kind": "my_kind", + * // "link": "my_link", + * // "loyaltyPoints": {}, + * // "material": "my_material", + * // "maxEnergyEfficiencyClass": "my_maxEnergyEfficiencyClass", + * // "maxHandlingTime": "my_maxHandlingTime", + * // "minEnergyEfficiencyClass": "my_minEnergyEfficiencyClass", + * // "minHandlingTime": "my_minHandlingTime", + * // "mobileLink": "my_mobileLink", + * // "mpn": "my_mpn", + * // "multipack": "my_multipack", + * // "offerId": "my_offerId", + * // "pattern": "my_pattern", * // "price": {}, - * // "quantity": "my_quantity", - * // "saleId": "my_saleId", - * // "storeCode": "my_storeCode", + * // "productDetails": [], + * // "productHighlights": [], + * // "productTypes": [], + * // "promotionIds": [], + * // "salePrice": {}, + * // "salePriceEffectiveDate": "my_salePriceEffectiveDate", + * // "sellOnGoogleQuantity": "my_sellOnGoogleQuantity", + * // "shipping": [], + * // "shippingHeight": {}, + * // "shippingLabel": "my_shippingLabel", + * // "shippingLength": {}, + * // "shippingWeight": {}, + * // "shippingWidth": {}, + * // "shoppingAdsExcludedCountries": [], + * // "sizeSystem": "my_sizeSystem", + * // "sizeType": "my_sizeType", + * // "sizes": [], + * // "source": "my_source", + * // "subscriptionCost": {}, * // "targetCountry": "my_targetCountry", - * // "timestamp": "my_timestamp" + * // "taxCategory": "my_taxCategory", + * // "taxes": [], + * // "title": "my_title", + * // "transitTimeLabel": "my_transitTimeLabel", + * // "unitPricingBaseMeasure": {}, + * // "unitPricingMeasure": {} * // } * } * @@ -18174,60 +20458,60 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.pos.sale + * @alias content.products.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the POS or inventory data provider. - * @param {string} params.targetMerchantId The ID of the target merchant. - * @param {().PosSaleRequest} params.requestBody Request body data + * @param {string=} params.feedId The Content API Supplemental Feed ID. + * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. + * @param {().Product} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - sale( - params: Params$Resource$Pos$Sale, + insert( + params: Params$Resource$Products$Insert, options: StreamMethodOptions ): GaxiosPromise; - sale( - params?: Params$Resource$Pos$Sale, + insert( + params?: Params$Resource$Products$Insert, options?: MethodOptions - ): GaxiosPromise; - sale( - params: Params$Resource$Pos$Sale, + ): GaxiosPromise; + insert( + params: Params$Resource$Products$Insert, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - sale( - params: Params$Resource$Pos$Sale, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + insert( + params: Params$Resource$Products$Insert, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - sale( - params: Params$Resource$Pos$Sale, - callback: BodyResponseCallback + insert( + params: Params$Resource$Products$Insert, + callback: BodyResponseCallback ): void; - sale(callback: BodyResponseCallback): void; - sale( + insert(callback: BodyResponseCallback): void; + insert( paramsOrCallback?: - | Params$Resource$Pos$Sale - | BodyResponseCallback + | Params$Resource$Products$Insert + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Pos$Sale; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || {}) as Params$Resource$Products$Insert; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Pos$Sale; + params = {} as Params$Resource$Products$Insert; options = {}; } @@ -18236,132 +20520,37 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/sale' - ).replace(/([^:]\/)\/+/g, '$1'), + url: (rootUrl + '/content/v2.1/{merchantId}/products').replace( + /([^:]\/)\/+/g, + '$1' + ), method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'targetMerchantId'], - pathParams: ['merchantId', 'targetMerchantId'], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Pos$Custombatch extends StandardParameters { - /** - * Request body metadata - */ - requestBody?: Schema$PosCustomBatchRequest; - } - export interface Params$Resource$Pos$Delete extends StandardParameters { - /** - * The ID of the POS or inventory data provider. - */ - merchantId?: string; - /** - * A store code that is unique per merchant. - */ - storeCode?: string; - /** - * The ID of the target merchant. - */ - targetMerchantId?: string; - } - export interface Params$Resource$Pos$Get extends StandardParameters { - /** - * The ID of the POS or inventory data provider. - */ - merchantId?: string; - /** - * A store code that is unique per merchant. - */ - storeCode?: string; - /** - * The ID of the target merchant. - */ - targetMerchantId?: string; - } - export interface Params$Resource$Pos$Insert extends StandardParameters { - /** - * The ID of the POS or inventory data provider. - */ - merchantId?: string; - /** - * The ID of the target merchant. - */ - targetMerchantId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$PosStore; - } - export interface Params$Resource$Pos$Inventory extends StandardParameters { - /** - * The ID of the POS or inventory data provider. - */ - merchantId?: string; - /** - * The ID of the target merchant. - */ - targetMerchantId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$PosInventoryRequest; - } - export interface Params$Resource$Pos$List extends StandardParameters { - /** - * The ID of the POS or inventory data provider. - */ - merchantId?: string; - /** - * The ID of the target merchant. - */ - targetMerchantId?: string; - } - export interface Params$Resource$Pos$Sale extends StandardParameters { - /** - * The ID of the POS or inventory data provider. - */ - merchantId?: string; - /** - * The ID of the target merchant. - */ - targetMerchantId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$PosSaleRequest; - } - - export class Resource$Products { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * content.products.custombatch - * @desc Retrieves, inserts, and deletes multiple products in a single request. + * content.products.list + * @desc Lists the products in your Merchant Center account. The response might contain fewer items than specified by maxResults. Rely on nextPageToken to determine if there are more items to be requested. * @example * // Before running the sample: * // - Enable the API at: @@ -18385,21 +20574,21 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.products.custombatch({ - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "entries": [] - * // } - * }, + * const res = await content.products.list({ + * // The maximum number of products to return in the response, used for paging. + * maxResults: 'placeholder-value', + * // The ID of the account that contains the products. This account cannot be a multi-client account. + * merchantId: 'placeholder-value', + * // The token returned by the previous request. + * pageToken: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "entries": [], - * // "kind": "my_kind" + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "resources": [] * // } * } * @@ -18408,104 +20597,172 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.products.custombatch + * @alias content.products.list * @memberOf! () * * @param {object} params Parameters for request - * @param {().ProductsCustomBatchRequest} params.requestBody Request body data + * @param {integer=} params.maxResults The maximum number of products to return in the response, used for paging. + * @param {string} params.merchantId The ID of the account that contains the products. This account cannot be a multi-client account. + * @param {string=} params.pageToken The token returned by the previous request. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch( - params: Params$Resource$Products$Custombatch, + list( + params: Params$Resource$Products$List, options: StreamMethodOptions ): GaxiosPromise; - custombatch( - params?: Params$Resource$Products$Custombatch, + list( + params?: Params$Resource$Products$List, options?: MethodOptions - ): GaxiosPromise; - custombatch( - params: Params$Resource$Products$Custombatch, + ): GaxiosPromise; + list( + params: Params$Resource$Products$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - custombatch( - params: Params$Resource$Products$Custombatch, + list( + params: Params$Resource$Products$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - custombatch( - params: Params$Resource$Products$Custombatch, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - custombatch( - callback: BodyResponseCallback + list( + params: Params$Resource$Products$List, + callback: BodyResponseCallback ): void; - custombatch( + list(callback: BodyResponseCallback): void; + list( paramsOrCallback?: - | Params$Resource$Products$Custombatch - | BodyResponseCallback + | Params$Resource$Products$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || - {}) as Params$Resource$Products$Custombatch; + let params = (paramsOrCallback || {}) as Params$Resource$Products$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Products$Custombatch; + params = {} as Params$Resource$Products$List; options = {}; } - if (typeof optionsOrCallback === 'function') { - callback = optionsOrCallback; - options = {}; - } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: (rootUrl + '/content/v2.1/{merchantId}/products').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'GET', + }, + options + ), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Products$Custombatch + extends StandardParameters { + /** + * Request body metadata + */ + requestBody?: Schema$ProductsCustomBatchRequest; + } + export interface Params$Resource$Products$Delete extends StandardParameters { + /** + * The Content API Supplemental Feed ID. + */ + feedId?: string; + /** + * The ID of the account that contains the product. This account cannot be a multi-client account. + */ + merchantId?: string; + /** + * The REST ID of the product. + */ + productId?: string; + } + export interface Params$Resource$Products$Get extends StandardParameters { + /** + * The ID of the account that contains the product. This account cannot be a multi-client account. + */ + merchantId?: string; + /** + * The REST ID of the product. + */ + productId?: string; + } + export interface Params$Resource$Products$Insert extends StandardParameters { + /** + * The Content API Supplemental Feed ID. + */ + feedId?: string; + /** + * The ID of the account that contains the product. This account cannot be a multi-client account. + */ + merchantId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$Product; + } + export interface Params$Resource$Products$List extends StandardParameters { + /** + * The maximum number of products to return in the response, used for paging. + */ + maxResults?: number; + /** + * The ID of the account that contains the products. This account cannot be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; - const parameters = { - options: Object.assign( - { - url: (rootUrl + '/content/v2.1/products/batch').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', - }, - options - ), - params, - requiredParams: [], - pathParams: [], - context: this.context, - }; - if (callback) { - createAPIRequest( - parameters, - callback as BodyResponseCallback<{} | void> - ); - } else { - return createAPIRequest(parameters); - } + export class Resource$Productstatuses { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; } /** - * content.products.delete - * @desc Deletes a product from your Merchant Center account. + * content.productstatuses.custombatch + * @desc Gets the statuses of multiple products in a single request. * @example * // Before running the sample: * // - Enable the API at: @@ -18529,15 +20786,22 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.products.delete({ - * // The Content API Supplemental Feed ID. - * feedId: 'placeholder-value', - * // The ID of the account that contains the product. This account cannot be a multi-client account. - * merchantId: 'placeholder-value', - * // The REST ID of the product. - * productId: 'placeholder-value', + * const res = await content.productstatuses.custombatch({ + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "entries": [] + * // } + * }, * }); * console.log(res.data); + * + * // Example response + * // { + * // "entries": [], + * // "kind": "my_kind" + * // } * } * * main().catch(e => { @@ -18545,58 +20809,66 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.products.delete + * @alias content.productstatuses.custombatch * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.feedId The Content API Supplemental Feed ID. - * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. - * @param {string} params.productId The REST ID of the product. + * @param {().ProductstatusesCustomBatchRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - delete( - params: Params$Resource$Products$Delete, + custombatch( + params: Params$Resource$Productstatuses$Custombatch, options: StreamMethodOptions ): GaxiosPromise; - delete( - params?: Params$Resource$Products$Delete, + custombatch( + params?: Params$Resource$Productstatuses$Custombatch, options?: MethodOptions - ): GaxiosPromise; - delete( - params: Params$Resource$Products$Delete, + ): GaxiosPromise; + custombatch( + params: Params$Resource$Productstatuses$Custombatch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Products$Delete, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + custombatch( + params: Params$Resource$Productstatuses$Custombatch, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - delete( - params: Params$Resource$Products$Delete, - callback: BodyResponseCallback + custombatch( + params: Params$Resource$Productstatuses$Custombatch, + callback: BodyResponseCallback ): void; - delete(callback: BodyResponseCallback): void; - delete( + custombatch( + callback: BodyResponseCallback + ): void; + custombatch( paramsOrCallback?: - | Params$Resource$Products$Delete - | BodyResponseCallback + | Params$Resource$Productstatuses$Custombatch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, - callback?: BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Products$Delete; + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Productstatuses$Custombatch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Products$Delete; + params = {} as Params$Resource$Productstatuses$Custombatch; options = {}; } @@ -18605,35 +20877,39 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: ( - rootUrl + '/content/v2.1/{merchantId}/products/{productId}' - ).replace(/([^:]\/)\/+/g, '$1'), - method: 'DELETE', + url: (rootUrl + '/content/v2.1/productstatuses/batch').replace( + /([^:]\/)\/+/g, + '$1' + ), + method: 'POST', }, options ), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: [], + pathParams: [], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest( + parameters + ); } } /** - * content.products.get - * @desc Retrieves a product from your Merchant Center account. + * content.productstatuses.get + * @desc Gets the status of a product from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -18657,7 +20933,9 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.products.get({ + * const res = await content.productstatuses.get({ + * // If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + * destinations: 'placeholder-value', * // The ID of the account that contains the product. This account cannot be a multi-client account. * merchantId: 'placeholder-value', * // The REST ID of the product. @@ -18667,86 +20945,15 @@ export namespace content_v2_1 { * * // Example response * // { - * // "additionalImageLinks": [], - * // "adsGrouping": "my_adsGrouping", - * // "adsLabels": [], - * // "adsRedirect": "my_adsRedirect", - * // "adult": false, - * // "ageGroup": "my_ageGroup", - * // "availability": "my_availability", - * // "availabilityDate": "my_availabilityDate", - * // "brand": "my_brand", - * // "canonicalLink": "my_canonicalLink", - * // "channel": "my_channel", - * // "color": "my_color", - * // "condition": "my_condition", - * // "contentLanguage": "my_contentLanguage", - * // "costOfGoodsSold": {}, - * // "customAttributes": [], - * // "customLabel0": "my_customLabel0", - * // "customLabel1": "my_customLabel1", - * // "customLabel2": "my_customLabel2", - * // "customLabel3": "my_customLabel3", - * // "customLabel4": "my_customLabel4", - * // "description": "my_description", - * // "displayAdsId": "my_displayAdsId", - * // "displayAdsLink": "my_displayAdsLink", - * // "displayAdsSimilarIds": [], - * // "displayAdsTitle": "my_displayAdsTitle", - * // "displayAdsValue": {}, - * // "energyEfficiencyClass": "my_energyEfficiencyClass", - * // "excludedDestinations": [], - * // "expirationDate": "my_expirationDate", - * // "gender": "my_gender", - * // "googleProductCategory": "my_googleProductCategory", - * // "gtin": "my_gtin", - * // "id": "my_id", - * // "identifierExists": false, - * // "imageLink": "my_imageLink", - * // "includedDestinations": [], - * // "installment": {}, - * // "isBundle": false, - * // "itemGroupId": "my_itemGroupId", + * // "creationDate": "my_creationDate", + * // "destinationStatuses": [], + * // "googleExpirationDate": "my_googleExpirationDate", + * // "itemLevelIssues": [], * // "kind": "my_kind", + * // "lastUpdateDate": "my_lastUpdateDate", * // "link": "my_link", - * // "loyaltyPoints": {}, - * // "material": "my_material", - * // "maxEnergyEfficiencyClass": "my_maxEnergyEfficiencyClass", - * // "maxHandlingTime": "my_maxHandlingTime", - * // "minEnergyEfficiencyClass": "my_minEnergyEfficiencyClass", - * // "minHandlingTime": "my_minHandlingTime", - * // "mobileLink": "my_mobileLink", - * // "mpn": "my_mpn", - * // "multipack": "my_multipack", - * // "offerId": "my_offerId", - * // "pattern": "my_pattern", - * // "price": {}, - * // "productDetails": [], - * // "productHighlights": [], - * // "productTypes": [], - * // "promotionIds": [], - * // "salePrice": {}, - * // "salePriceEffectiveDate": "my_salePriceEffectiveDate", - * // "sellOnGoogleQuantity": "my_sellOnGoogleQuantity", - * // "shipping": [], - * // "shippingHeight": {}, - * // "shippingLabel": "my_shippingLabel", - * // "shippingLength": {}, - * // "shippingWeight": {}, - * // "shippingWidth": {}, - * // "shoppingAdsExcludedCountries": [], - * // "sizeSystem": "my_sizeSystem", - * // "sizeType": "my_sizeType", - * // "sizes": [], - * // "source": "my_source", - * // "subscriptionCost": {}, - * // "targetCountry": "my_targetCountry", - * // "taxCategory": "my_taxCategory", - * // "taxes": [], - * // "title": "my_title", - * // "transitTimeLabel": "my_transitTimeLabel", - * // "unitPricingBaseMeasure": {}, - * // "unitPricingMeasure": {} + * // "productId": "my_productId", + * // "title": "my_title" * // } * } * @@ -18755,10 +20962,11 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.products.get + * @alias content.productstatuses.get * @memberOf! () * * @param {object} params Parameters for request + * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. * @param {string} params.productId The REST ID of the product. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. @@ -18766,48 +20974,49 @@ export namespace content_v2_1 { * @return {object} Request object */ get( - params: Params$Resource$Products$Get, + params: Params$Resource$Productstatuses$Get, options: StreamMethodOptions ): GaxiosPromise; get( - params?: Params$Resource$Products$Get, + params?: Params$Resource$Productstatuses$Get, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; get( - params: Params$Resource$Products$Get, + params: Params$Resource$Productstatuses$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; get( - params: Params$Resource$Products$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + params: Params$Resource$Productstatuses$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; get( - params: Params$Resource$Products$Get, - callback: BodyResponseCallback + params: Params$Resource$Productstatuses$Get, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; + get(callback: BodyResponseCallback): void; get( paramsOrCallback?: - | Params$Resource$Products$Get - | BodyResponseCallback + | Params$Resource$Productstatuses$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Products$Get; + ): void | GaxiosPromise | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Productstatuses$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Products$Get; + params = {} as Params$Resource$Productstatuses$Get; options = {}; } @@ -18816,12 +21025,13 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/products/{productId}' + rootUrl + '/content/v2.1/{merchantId}/productstatuses/{productId}' ).replace(/([^:]\/)\/+/g, '$1'), method: 'GET', }, @@ -18833,18 +21043,18 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.products.insert - * @desc Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry. + * content.productstatuses.list + * @desc Lists the statuses of the products in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -18868,183 +21078,215 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.products.insert({ - * // The Content API Supplemental Feed ID. - * feedId: 'placeholder-value', - * // The ID of the account that contains the product. This account cannot be a multi-client account. + * const res = await content.productstatuses.list({ + * // If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + * destinations: 'placeholder-value', + * // The maximum number of product statuses to return in the response, used for paging. + * maxResults: 'placeholder-value', + * // The ID of the account that contains the products. This account cannot be a multi-client account. * merchantId: 'placeholder-value', + * // The token returned by the previous request. + * pageToken: 'placeholder-value', + * }); + * console.log(res.data); * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "additionalImageLinks": [], - * // "adsGrouping": "my_adsGrouping", - * // "adsLabels": [], - * // "adsRedirect": "my_adsRedirect", - * // "adult": false, - * // "ageGroup": "my_ageGroup", - * // "availability": "my_availability", - * // "availabilityDate": "my_availabilityDate", - * // "brand": "my_brand", - * // "canonicalLink": "my_canonicalLink", - * // "channel": "my_channel", - * // "color": "my_color", - * // "condition": "my_condition", - * // "contentLanguage": "my_contentLanguage", - * // "costOfGoodsSold": {}, - * // "customAttributes": [], - * // "customLabel0": "my_customLabel0", - * // "customLabel1": "my_customLabel1", - * // "customLabel2": "my_customLabel2", - * // "customLabel3": "my_customLabel3", - * // "customLabel4": "my_customLabel4", - * // "description": "my_description", - * // "displayAdsId": "my_displayAdsId", - * // "displayAdsLink": "my_displayAdsLink", - * // "displayAdsSimilarIds": [], - * // "displayAdsTitle": "my_displayAdsTitle", - * // "displayAdsValue": {}, - * // "energyEfficiencyClass": "my_energyEfficiencyClass", - * // "excludedDestinations": [], - * // "expirationDate": "my_expirationDate", - * // "gender": "my_gender", - * // "googleProductCategory": "my_googleProductCategory", - * // "gtin": "my_gtin", - * // "id": "my_id", - * // "identifierExists": false, - * // "imageLink": "my_imageLink", - * // "includedDestinations": [], - * // "installment": {}, - * // "isBundle": false, - * // "itemGroupId": "my_itemGroupId", - * // "kind": "my_kind", - * // "link": "my_link", - * // "loyaltyPoints": {}, - * // "material": "my_material", - * // "maxEnergyEfficiencyClass": "my_maxEnergyEfficiencyClass", - * // "maxHandlingTime": "my_maxHandlingTime", - * // "minEnergyEfficiencyClass": "my_minEnergyEfficiencyClass", - * // "minHandlingTime": "my_minHandlingTime", - * // "mobileLink": "my_mobileLink", - * // "mpn": "my_mpn", - * // "multipack": "my_multipack", - * // "offerId": "my_offerId", - * // "pattern": "my_pattern", - * // "price": {}, - * // "productDetails": [], - * // "productHighlights": [], - * // "productTypes": [], - * // "promotionIds": [], - * // "salePrice": {}, - * // "salePriceEffectiveDate": "my_salePriceEffectiveDate", - * // "sellOnGoogleQuantity": "my_sellOnGoogleQuantity", - * // "shipping": [], - * // "shippingHeight": {}, - * // "shippingLabel": "my_shippingLabel", - * // "shippingLength": {}, - * // "shippingWeight": {}, - * // "shippingWidth": {}, - * // "shoppingAdsExcludedCountries": [], - * // "sizeSystem": "my_sizeSystem", - * // "sizeType": "my_sizeType", - * // "sizes": [], - * // "source": "my_source", - * // "subscriptionCost": {}, - * // "targetCountry": "my_targetCountry", - * // "taxCategory": "my_taxCategory", - * // "taxes": [], - * // "title": "my_title", - * // "transitTimeLabel": "my_transitTimeLabel", - * // "unitPricingBaseMeasure": {}, - * // "unitPricingMeasure": {} - * // } - * }, + * // Example response + * // { + * // "kind": "my_kind", + * // "nextPageToken": "my_nextPageToken", + * // "resources": [] + * // } + * } + * + * main().catch(e => { + * console.error(e); + * throw e; + * }); + * + * @alias content.productstatuses.list + * @memberOf! () + * + * @param {object} params Parameters for request + * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + * @param {integer=} params.maxResults The maximum number of product statuses to return in the response, used for paging. + * @param {string} params.merchantId The ID of the account that contains the products. This account cannot be a multi-client account. + * @param {string=} params.pageToken The token returned by the previous request. + * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. + * @param {callback} callback The callback that handles the response. + * @return {object} Request object + */ + list( + params: Params$Resource$Productstatuses$List, + options: StreamMethodOptions + ): GaxiosPromise; + list( + params?: Params$Resource$Productstatuses$List, + options?: MethodOptions + ): GaxiosPromise; + list( + params: Params$Resource$Productstatuses$List, + options: StreamMethodOptions | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Productstatuses$List, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback + ): void; + list( + params: Params$Resource$Productstatuses$List, + callback: BodyResponseCallback + ): void; + list( + callback: BodyResponseCallback + ): void; + list( + paramsOrCallback?: + | Params$Resource$Productstatuses$List + | BodyResponseCallback + | BodyResponseCallback, + optionsOrCallback?: + | MethodOptions + | StreamMethodOptions + | BodyResponseCallback + | BodyResponseCallback, + callback?: + | BodyResponseCallback + | BodyResponseCallback + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Productstatuses$List; + let options = (optionsOrCallback || {}) as MethodOptions; + + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {} as Params$Resource$Productstatuses$List; + options = {}; + } + + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; + const parameters = { + options: Object.assign( + { + url: ( + rootUrl + '/content/v2.1/{merchantId}/productstatuses' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, + options + ), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + createAPIRequest( + parameters, + callback as BodyResponseCallback<{} | void> + ); + } else { + return createAPIRequest(parameters); + } + } + } + + export interface Params$Resource$Productstatuses$Custombatch + extends StandardParameters { + /** + * Request body metadata + */ + requestBody?: Schema$ProductstatusesCustomBatchRequest; + } + export interface Params$Resource$Productstatuses$Get + extends StandardParameters { + /** + * If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + */ + destinations?: string[]; + /** + * The ID of the account that contains the product. This account cannot be a multi-client account. + */ + merchantId?: string; + /** + * The REST ID of the product. + */ + productId?: string; + } + export interface Params$Resource$Productstatuses$List + extends StandardParameters { + /** + * If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. + */ + destinations?: string[]; + /** + * The maximum number of product statuses to return in the response, used for paging. + */ + maxResults?: number; + /** + * The ID of the account that contains the products. This account cannot be a multi-client account. + */ + merchantId?: string; + /** + * The token returned by the previous request. + */ + pageToken?: string; + } + + export class Resource$Pubsubnotificationsettings { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.pubsubnotificationsettings.get + * @desc Retrieves a Merchant Center account's pubsub notification settings. + * @example + * // Before running the sample: + * // - Enable the API at: + * // https://console.developers.google.com/apis/api/content.googleapis.com + * // - Login into gcloud by running: + * // `$ gcloud auth application-default login` + * // - Install the npm module by running: + * // `$ npm install googleapis` + * + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * async function main() { + * const auth = new google.auth.GoogleAuth({ + * // Scopes can be specified either as an array or as a single, space-delimited string. + * scopes: ['https://www.googleapis.com/auth/content'], + * }); + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.pubsubnotificationsettings.get({ + * // The ID of the account for which to get pubsub notification settings. + * merchantId: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "additionalImageLinks": [], - * // "adsGrouping": "my_adsGrouping", - * // "adsLabels": [], - * // "adsRedirect": "my_adsRedirect", - * // "adult": false, - * // "ageGroup": "my_ageGroup", - * // "availability": "my_availability", - * // "availabilityDate": "my_availabilityDate", - * // "brand": "my_brand", - * // "canonicalLink": "my_canonicalLink", - * // "channel": "my_channel", - * // "color": "my_color", - * // "condition": "my_condition", - * // "contentLanguage": "my_contentLanguage", - * // "costOfGoodsSold": {}, - * // "customAttributes": [], - * // "customLabel0": "my_customLabel0", - * // "customLabel1": "my_customLabel1", - * // "customLabel2": "my_customLabel2", - * // "customLabel3": "my_customLabel3", - * // "customLabel4": "my_customLabel4", - * // "description": "my_description", - * // "displayAdsId": "my_displayAdsId", - * // "displayAdsLink": "my_displayAdsLink", - * // "displayAdsSimilarIds": [], - * // "displayAdsTitle": "my_displayAdsTitle", - * // "displayAdsValue": {}, - * // "energyEfficiencyClass": "my_energyEfficiencyClass", - * // "excludedDestinations": [], - * // "expirationDate": "my_expirationDate", - * // "gender": "my_gender", - * // "googleProductCategory": "my_googleProductCategory", - * // "gtin": "my_gtin", - * // "id": "my_id", - * // "identifierExists": false, - * // "imageLink": "my_imageLink", - * // "includedDestinations": [], - * // "installment": {}, - * // "isBundle": false, - * // "itemGroupId": "my_itemGroupId", + * // "cloudTopicName": "my_cloudTopicName", * // "kind": "my_kind", - * // "link": "my_link", - * // "loyaltyPoints": {}, - * // "material": "my_material", - * // "maxEnergyEfficiencyClass": "my_maxEnergyEfficiencyClass", - * // "maxHandlingTime": "my_maxHandlingTime", - * // "minEnergyEfficiencyClass": "my_minEnergyEfficiencyClass", - * // "minHandlingTime": "my_minHandlingTime", - * // "mobileLink": "my_mobileLink", - * // "mpn": "my_mpn", - * // "multipack": "my_multipack", - * // "offerId": "my_offerId", - * // "pattern": "my_pattern", - * // "price": {}, - * // "productDetails": [], - * // "productHighlights": [], - * // "productTypes": [], - * // "promotionIds": [], - * // "salePrice": {}, - * // "salePriceEffectiveDate": "my_salePriceEffectiveDate", - * // "sellOnGoogleQuantity": "my_sellOnGoogleQuantity", - * // "shipping": [], - * // "shippingHeight": {}, - * // "shippingLabel": "my_shippingLabel", - * // "shippingLength": {}, - * // "shippingWeight": {}, - * // "shippingWidth": {}, - * // "shoppingAdsExcludedCountries": [], - * // "sizeSystem": "my_sizeSystem", - * // "sizeType": "my_sizeType", - * // "sizes": [], - * // "source": "my_source", - * // "subscriptionCost": {}, - * // "targetCountry": "my_targetCountry", - * // "taxCategory": "my_taxCategory", - * // "taxes": [], - * // "title": "my_title", - * // "transitTimeLabel": "my_transitTimeLabel", - * // "unitPricingBaseMeasure": {}, - * // "unitPricingMeasure": {} + * // "registeredEvents": [] * // } * } * @@ -19053,60 +21295,66 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.products.insert + * @alias content.pubsubnotificationsettings.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.feedId The Content API Supplemental Feed ID. - * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. - * @param {().Product} params.requestBody Request body data + * @param {string} params.merchantId The ID of the account for which to get pubsub notification settings. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert( - params: Params$Resource$Products$Insert, + get( + params: Params$Resource$Pubsubnotificationsettings$Get, options: StreamMethodOptions ): GaxiosPromise; - insert( - params?: Params$Resource$Products$Insert, + get( + params?: Params$Resource$Pubsubnotificationsettings$Get, options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Products$Insert, + ): GaxiosPromise; + get( + params: Params$Resource$Pubsubnotificationsettings$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - insert( - params: Params$Resource$Products$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + get( + params: Params$Resource$Pubsubnotificationsettings$Get, + options: + | MethodOptions + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - insert( - params: Params$Resource$Products$Insert, - callback: BodyResponseCallback + get( + params: Params$Resource$Pubsubnotificationsettings$Get, + callback: BodyResponseCallback ): void; - insert(callback: BodyResponseCallback): void; - insert( + get( + callback: BodyResponseCallback + ): void; + get( paramsOrCallback?: - | Params$Resource$Products$Insert - | BodyResponseCallback + | Params$Resource$Pubsubnotificationsettings$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Products$Insert; + ): + | void + | GaxiosPromise + | GaxiosPromise { + let params = (paramsOrCallback || + {}) as Params$Resource$Pubsubnotificationsettings$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Products$Insert; + params = {} as Params$Resource$Pubsubnotificationsettings$Get; options = {}; } @@ -19115,15 +21363,15 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/{merchantId}/products').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: ( + rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options ), @@ -19133,18 +21381,18 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.products.list - * @desc Lists the products in your Merchant Center account. The response might contain fewer items than specified by maxResults. Rely on nextPageToken to determine if there are more items to be requested. + * content.pubsubnotificationsettings.update + * @desc Register a Merchant Center account for pubsub notifications. Note that cloud topic name should not be provided as part of the request. * @example * // Before running the sample: * // - Enable the API at: @@ -19168,21 +21416,27 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.products.list({ - * // The maximum number of products to return in the response, used for paging. - * maxResults: 'placeholder-value', - * // The ID of the account that contains the products. This account cannot be a multi-client account. + * const res = await content.pubsubnotificationsettings.update({ + * // The ID of the account. * merchantId: 'placeholder-value', - * // The token returned by the previous request. - * pageToken: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "cloudTopicName": "my_cloudTopicName", + * // "kind": "my_kind", + * // "registeredEvents": [] + * // } + * }, * }); * console.log(res.data); * * // Example response * // { + * // "cloudTopicName": "my_cloudTopicName", * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken", - * // "resources": [] + * // "registeredEvents": [] * // } * } * @@ -19191,65 +21445,67 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.products.list + * @alias content.pubsubnotificationsettings.update * @memberOf! () * * @param {object} params Parameters for request - * @param {integer=} params.maxResults The maximum number of products to return in the response, used for paging. - * @param {string} params.merchantId The ID of the account that contains the products. This account cannot be a multi-client account. - * @param {string=} params.pageToken The token returned by the previous request. + * @param {string} params.merchantId The ID of the account. + * @param {().PubsubNotificationSettings} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Products$List, + update( + params: Params$Resource$Pubsubnotificationsettings$Update, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Products$List, + update( + params?: Params$Resource$Pubsubnotificationsettings$Update, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Products$List, + ): GaxiosPromise; + update( + params: Params$Resource$Pubsubnotificationsettings$Update, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Products$List, + update( + params: Params$Resource$Pubsubnotificationsettings$Update, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Products$List, - callback: BodyResponseCallback + update( + params: Params$Resource$Pubsubnotificationsettings$Update, + callback: BodyResponseCallback ): void; - list(callback: BodyResponseCallback): void; - list( + update( + callback: BodyResponseCallback + ): void; + update( paramsOrCallback?: - | Params$Resource$Products$List - | BodyResponseCallback + | Params$Resource$Pubsubnotificationsettings$Update + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { - let params = (paramsOrCallback || {}) as Params$Resource$Products$List; + let params = (paramsOrCallback || + {}) as Params$Resource$Pubsubnotificationsettings$Update; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Products$List; + params = {} as Params$Resource$Pubsubnotificationsettings$Update; options = {}; } @@ -19258,15 +21514,15 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/{merchantId}/products').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'GET', + url: ( + rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', }, options ), @@ -19276,86 +21532,45 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Products$Custombatch + export interface Params$Resource$Pubsubnotificationsettings$Get extends StandardParameters { /** - * Request body metadata - */ - requestBody?: Schema$ProductsCustomBatchRequest; - } - export interface Params$Resource$Products$Delete extends StandardParameters { - /** - * The Content API Supplemental Feed ID. - */ - feedId?: string; - /** - * The ID of the account that contains the product. This account cannot be a multi-client account. - */ - merchantId?: string; - /** - * The REST ID of the product. - */ - productId?: string; - } - export interface Params$Resource$Products$Get extends StandardParameters { - /** - * The ID of the account that contains the product. This account cannot be a multi-client account. + * The ID of the account for which to get pubsub notification settings. */ merchantId?: string; - /** - * The REST ID of the product. - */ - productId?: string; } - export interface Params$Resource$Products$Insert extends StandardParameters { - /** - * The Content API Supplemental Feed ID. - */ - feedId?: string; + export interface Params$Resource$Pubsubnotificationsettings$Update + extends StandardParameters { /** - * The ID of the account that contains the product. This account cannot be a multi-client account. + * The ID of the account. */ merchantId?: string; /** * Request body metadata */ - requestBody?: Schema$Product; - } - export interface Params$Resource$Products$List extends StandardParameters { - /** - * The maximum number of products to return in the response, used for paging. - */ - maxResults?: number; - /** - * The ID of the account that contains the products. This account cannot be a multi-client account. - */ - merchantId?: string; - /** - * The token returned by the previous request. - */ - pageToken?: string; + requestBody?: Schema$PubsubNotificationSettings; } - export class Resource$Productstatuses { + export class Resource$Regionalinventory { context: APIRequestContext; constructor(context: APIRequestContext) { this.context = context; } /** - * content.productstatuses.custombatch - * @desc Gets the statuses of multiple products in a single request. + * content.regionalinventory.custombatch + * @desc Updates regional inventory for multiple products or regions in a single request. * @example * // Before running the sample: * // - Enable the API at: @@ -19379,7 +21594,7 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.productstatuses.custombatch({ + * const res = await content.regionalinventory.custombatch({ * // Request body metadata * requestBody: { * // request body parameters @@ -19402,66 +21617,72 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.productstatuses.custombatch + * @alias content.regionalinventory.custombatch * @memberOf! () * * @param {object} params Parameters for request - * @param {().ProductstatusesCustomBatchRequest} params.requestBody Request body data + * @param {().RegionalinventoryCustomBatchRequest} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ custombatch( - params: Params$Resource$Productstatuses$Custombatch, + params: Params$Resource$Regionalinventory$Custombatch, options: StreamMethodOptions ): GaxiosPromise; custombatch( - params?: Params$Resource$Productstatuses$Custombatch, + params?: Params$Resource$Regionalinventory$Custombatch, options?: MethodOptions - ): GaxiosPromise; + ): GaxiosPromise; custombatch( - params: Params$Resource$Productstatuses$Custombatch, + params: Params$Resource$Regionalinventory$Custombatch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; custombatch( - params: Params$Resource$Productstatuses$Custombatch, + params: Params$Resource$Regionalinventory$Custombatch, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback + | BodyResponseCallback, + callback: BodyResponseCallback< + Schema$RegionalinventoryCustomBatchResponse + > ): void; custombatch( - params: Params$Resource$Productstatuses$Custombatch, - callback: BodyResponseCallback + params: Params$Resource$Regionalinventory$Custombatch, + callback: BodyResponseCallback< + Schema$RegionalinventoryCustomBatchResponse + > ): void; custombatch( - callback: BodyResponseCallback + callback: BodyResponseCallback< + Schema$RegionalinventoryCustomBatchResponse + > ): void; custombatch( paramsOrCallback?: - | Params$Resource$Productstatuses$Custombatch - | BodyResponseCallback + | Params$Resource$Regionalinventory$Custombatch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Productstatuses$Custombatch; + {}) as Params$Resource$Regionalinventory$Custombatch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Productstatuses$Custombatch; + params = {} as Params$Resource$Regionalinventory$Custombatch; options = {}; } @@ -19470,11 +21691,12 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/productstatuses/batch').replace( + url: (rootUrl + '/content/v2.1/regionalinventory/batch').replace( /([^:]\/)\/+/g, '$1' ), @@ -19488,20 +21710,20 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( + return createAPIRequest( parameters ); } } /** - * content.productstatuses.get - * @desc Gets the status of a product from your Merchant Center account. + * content.regionalinventory.insert + * @desc Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry. * @example * // Before running the sample: * // - Enable the API at: @@ -19525,27 +21747,37 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.productstatuses.get({ - * // If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - * destinations: 'placeholder-value', + * const res = await content.regionalinventory.insert({ * // The ID of the account that contains the product. This account cannot be a multi-client account. * merchantId: 'placeholder-value', - * // The REST ID of the product. + * // The REST ID of the product for which to update the regional inventory. * productId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "availability": "my_availability", + * // "customAttributes": [], + * // "kind": "my_kind", + * // "price": {}, + * // "regionId": "my_regionId", + * // "salePrice": {}, + * // "salePriceEffectiveDate": "my_salePriceEffectiveDate" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "creationDate": "my_creationDate", - * // "destinationStatuses": [], - * // "googleExpirationDate": "my_googleExpirationDate", - * // "itemLevelIssues": [], + * // "availability": "my_availability", + * // "customAttributes": [], * // "kind": "my_kind", - * // "lastUpdateDate": "my_lastUpdateDate", - * // "link": "my_link", - * // "productId": "my_productId", - * // "title": "my_title" + * // "price": {}, + * // "regionId": "my_regionId", + * // "salePrice": {}, + * // "salePriceEffectiveDate": "my_salePriceEffectiveDate" * // } * } * @@ -19554,61 +21786,64 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.productstatuses.get + * @alias content.regionalinventory.insert * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. - * @param {string} params.productId The REST ID of the product. + * @param {string} params.productId The REST ID of the product for which to update the regional inventory. + * @param {().RegionalInventory} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Productstatuses$Get, + insert( + params: Params$Resource$Regionalinventory$Insert, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Productstatuses$Get, + insert( + params?: Params$Resource$Regionalinventory$Insert, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Productstatuses$Get, + ): GaxiosPromise; + insert( + params: Params$Resource$Regionalinventory$Insert, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Productstatuses$Get, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + insert( + params: Params$Resource$Regionalinventory$Insert, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Productstatuses$Get, - callback: BodyResponseCallback + insert( + params: Params$Resource$Regionalinventory$Insert, + callback: BodyResponseCallback ): void; - get(callback: BodyResponseCallback): void; - get( + insert(callback: BodyResponseCallback): void; + insert( paramsOrCallback?: - | Params$Resource$Productstatuses$Get - | BodyResponseCallback + | Params$Resource$Regionalinventory$Insert + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): void | GaxiosPromise | GaxiosPromise { + ): + | void + | GaxiosPromise + | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Productstatuses$Get; + {}) as Params$Resource$Regionalinventory$Insert; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Productstatuses$Get; + params = {} as Params$Resource$Regionalinventory$Insert; options = {}; } @@ -19617,14 +21852,16 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/productstatuses/{productId}' + rootUrl + + '/content/v2.1/{merchantId}/products/{productId}/regionalinventory' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options ), @@ -19634,18 +21871,49 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } + } + export interface Params$Resource$Regionalinventory$Custombatch + extends StandardParameters { /** - * content.productstatuses.list - * @desc Lists the statuses of the products in your Merchant Center account. + * Request body metadata + */ + requestBody?: Schema$RegionalinventoryCustomBatchRequest; + } + export interface Params$Resource$Regionalinventory$Insert + extends StandardParameters { + /** + * The ID of the account that contains the product. This account cannot be a multi-client account. + */ + merchantId?: string; + /** + * The REST ID of the product for which to update the regional inventory. + */ + productId?: string; + + /** + * Request body metadata + */ + requestBody?: Schema$RegionalInventory; + } + + export class Resource$Repricingrules { + context: APIRequestContext; + constructor(context: APIRequestContext) { + this.context = context; + } + + /** + * content.repricingrules.create + * @desc Creates a repricing rule for your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -19669,23 +21937,43 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.productstatuses.list({ - * // If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - * destinations: 'placeholder-value', - * // The maximum number of product statuses to return in the response, used for paging. - * maxResults: 'placeholder-value', - * // The ID of the account that contains the products. This account cannot be a multi-client account. + * const res = await content.repricingrules.create({ + * // Required. The id of the merchant who owns the repricing rule. * merchantId: 'placeholder-value', - * // The token returned by the previous request. - * pageToken: 'placeholder-value', + * // Required. The id of the rule to create. + * ruleId: 'placeholder-value', + * + * // Request body metadata + * requestBody: { + * // request body parameters + * // { + * // "countryCode": "my_countryCode", + * // "effectiveTimePeriod": {}, + * // "eligibleOfferMatcher": {}, + * // "languageCode": "my_languageCode", + * // "merchantId": "my_merchantId", + * // "paused": false, + * // "restriction": {}, + * // "ruleId": "my_ruleId", + * // "title": "my_title", + * // "type": "my_type" + * // } + * }, * }); * console.log(res.data); * * // Example response * // { - * // "kind": "my_kind", - * // "nextPageToken": "my_nextPageToken", - * // "resources": [] + * // "countryCode": "my_countryCode", + * // "effectiveTimePeriod": {}, + * // "eligibleOfferMatcher": {}, + * // "languageCode": "my_languageCode", + * // "merchantId": "my_merchantId", + * // "paused": false, + * // "restriction": {}, + * // "ruleId": "my_ruleId", + * // "title": "my_title", + * // "type": "my_type" * // } * } * @@ -19694,69 +21982,61 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.productstatuses.list + * @alias content.repricingrules.create * @memberOf! () * * @param {object} params Parameters for request - * @param {string=} params.destinations If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - * @param {integer=} params.maxResults The maximum number of product statuses to return in the response, used for paging. - * @param {string} params.merchantId The ID of the account that contains the products. This account cannot be a multi-client account. - * @param {string=} params.pageToken The token returned by the previous request. + * @param {string} params.merchantId Required. The id of the merchant who owns the repricing rule. + * @param {string=} params.ruleId Required. The id of the rule to create. + * @param {().RepricingRule} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - list( - params: Params$Resource$Productstatuses$List, + create( + params: Params$Resource$Repricingrules$Create, options: StreamMethodOptions ): GaxiosPromise; - list( - params?: Params$Resource$Productstatuses$List, + create( + params?: Params$Resource$Repricingrules$Create, options?: MethodOptions - ): GaxiosPromise; - list( - params: Params$Resource$Productstatuses$List, + ): GaxiosPromise; + create( + params: Params$Resource$Repricingrules$Create, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - list( - params: Params$Resource$Productstatuses$List, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - list( - params: Params$Resource$Productstatuses$List, - callback: BodyResponseCallback + create( + params: Params$Resource$Repricingrules$Create, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - list( - callback: BodyResponseCallback + create( + params: Params$Resource$Repricingrules$Create, + callback: BodyResponseCallback ): void; - list( + create(callback: BodyResponseCallback): void; + create( paramsOrCallback?: - | Params$Resource$Productstatuses$List - | BodyResponseCallback + | Params$Resource$Repricingrules$Create + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Productstatuses$List; + {}) as Params$Resource$Repricingrules$Create; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Productstatuses$List; + params = {} as Params$Resource$Repricingrules$Create; options = {}; } @@ -19765,14 +22045,15 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/productstatuses' + rootUrl + '/content/v2.1/{merchantId}/repricingrules' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'POST', }, options ), @@ -19782,67 +22063,18 @@ export namespace content_v2_1 { context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Productstatuses$Custombatch - extends StandardParameters { - /** - * Request body metadata - */ - requestBody?: Schema$ProductstatusesCustomBatchRequest; - } - export interface Params$Resource$Productstatuses$Get - extends StandardParameters { - /** - * If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - */ - destinations?: string[]; - /** - * The ID of the account that contains the product. This account cannot be a multi-client account. - */ - merchantId?: string; - /** - * The REST ID of the product. - */ - productId?: string; - } - export interface Params$Resource$Productstatuses$List - extends StandardParameters { - /** - * If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - */ - destinations?: string[]; - /** - * The maximum number of product statuses to return in the response, used for paging. - */ - maxResults?: number; - /** - * The ID of the account that contains the products. This account cannot be a multi-client account. - */ - merchantId?: string; - /** - * The token returned by the previous request. - */ - pageToken?: string; - } - - export class Resource$Pubsubnotificationsettings { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * content.pubsubnotificationsettings.get - * @desc Retrieves a Merchant Center account's pubsub notification settings. + * content.repricingrules.delete + * @desc Deletes a repricing rule in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -19866,18 +22098,13 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.pubsubnotificationsettings.get({ - * // The ID of the account for which to get pubsub notification settings. + * const res = await content.repricingrules.delete({ + * // Required. The id of the merchant who owns the repricing rule. * merchantId: 'placeholder-value', + * // Required. The id of the rule to Delete. + * ruleId: 'placeholder-value', * }); * console.log(res.data); - * - * // Example response - * // { - * // "cloudTopicName": "my_cloudTopicName", - * // "kind": "my_kind", - * // "registeredEvents": [] - * // } * } * * main().catch(e => { @@ -19885,66 +22112,58 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.pubsubnotificationsettings.get + * @alias content.repricingrules.delete * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account for which to get pubsub notification settings. + * @param {string} params.merchantId Required. The id of the merchant who owns the repricing rule. + * @param {string} params.ruleId Required. The id of the rule to Delete. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - get( - params: Params$Resource$Pubsubnotificationsettings$Get, + delete( + params: Params$Resource$Repricingrules$Delete, options: StreamMethodOptions ): GaxiosPromise; - get( - params?: Params$Resource$Pubsubnotificationsettings$Get, + delete( + params?: Params$Resource$Repricingrules$Delete, options?: MethodOptions - ): GaxiosPromise; - get( - params: Params$Resource$Pubsubnotificationsettings$Get, + ): GaxiosPromise; + delete( + params: Params$Resource$Repricingrules$Delete, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - get( - params: Params$Resource$Pubsubnotificationsettings$Get, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - get( - params: Params$Resource$Pubsubnotificationsettings$Get, - callback: BodyResponseCallback + delete( + params: Params$Resource$Repricingrules$Delete, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - get( - callback: BodyResponseCallback + delete( + params: Params$Resource$Repricingrules$Delete, + callback: BodyResponseCallback ): void; - get( + delete(callback: BodyResponseCallback): void; + delete( paramsOrCallback?: - | Params$Resource$Pubsubnotificationsettings$Get - | BodyResponseCallback + | Params$Resource$Repricingrules$Delete + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, - callback?: - | BodyResponseCallback - | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + callback?: BodyResponseCallback | BodyResponseCallback + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Pubsubnotificationsettings$Get; + {}) as Params$Resource$Repricingrules$Delete; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Pubsubnotificationsettings$Get; + params = {} as Params$Resource$Repricingrules$Delete; options = {}; } @@ -19953,35 +22172,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings' + rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'GET', + method: 'DELETE', }, options ), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } /** - * content.pubsubnotificationsettings.update - * @desc Register a Merchant Center account for pubsub notifications. Note that cloud topic name should not be provided as part of the request. + * content.repricingrules.get + * @desc Retrieves a repricing rule from your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -19999,33 +22219,32 @@ export namespace content_v2_1 { * // Scopes can be specified either as an array or as a single, space-delimited string. * scopes: ['https://www.googleapis.com/auth/content'], * }); - * - * // Acquire an auth client, and bind it to all future calls - * const authClient = await auth.getClient(); - * google.options({auth: authClient}); - * - * // Do the magic - * const res = await content.pubsubnotificationsettings.update({ - * // The ID of the account. - * merchantId: 'placeholder-value', - * - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "cloudTopicName": "my_cloudTopicName", - * // "kind": "my_kind", - * // "registeredEvents": [] - * // } - * }, + * + * // Acquire an auth client, and bind it to all future calls + * const authClient = await auth.getClient(); + * google.options({auth: authClient}); + * + * // Do the magic + * const res = await content.repricingrules.get({ + * // Required. The id of the merchant who owns the repricing rule. + * merchantId: 'placeholder-value', + * // Required. The id of the rule to retrieve. + * ruleId: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "cloudTopicName": "my_cloudTopicName", - * // "kind": "my_kind", - * // "registeredEvents": [] + * // "countryCode": "my_countryCode", + * // "effectiveTimePeriod": {}, + * // "eligibleOfferMatcher": {}, + * // "languageCode": "my_languageCode", + * // "merchantId": "my_merchantId", + * // "paused": false, + * // "restriction": {}, + * // "ruleId": "my_ruleId", + * // "title": "my_title", + * // "type": "my_type" * // } * } * @@ -20034,67 +22253,60 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.pubsubnotificationsettings.update + * @alias content.repricingrules.get * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account. - * @param {().PubsubNotificationSettings} params.requestBody Request body data + * @param {string} params.merchantId Required. The id of the merchant who owns the repricing rule. + * @param {string} params.ruleId Required. The id of the rule to retrieve. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - update( - params: Params$Resource$Pubsubnotificationsettings$Update, + get( + params: Params$Resource$Repricingrules$Get, options: StreamMethodOptions ): GaxiosPromise; - update( - params?: Params$Resource$Pubsubnotificationsettings$Update, + get( + params?: Params$Resource$Repricingrules$Get, options?: MethodOptions - ): GaxiosPromise; - update( - params: Params$Resource$Pubsubnotificationsettings$Update, + ): GaxiosPromise; + get( + params: Params$Resource$Repricingrules$Get, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - update( - params: Params$Resource$Pubsubnotificationsettings$Update, - options: - | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback - ): void; - update( - params: Params$Resource$Pubsubnotificationsettings$Update, - callback: BodyResponseCallback + get( + params: Params$Resource$Repricingrules$Get, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - update( - callback: BodyResponseCallback + get( + params: Params$Resource$Repricingrules$Get, + callback: BodyResponseCallback ): void; - update( + get(callback: BodyResponseCallback): void; + get( paramsOrCallback?: - | Params$Resource$Pubsubnotificationsettings$Update - | BodyResponseCallback + | Params$Resource$Repricingrules$Get + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Pubsubnotificationsettings$Update; + {}) as Params$Resource$Repricingrules$Get; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Pubsubnotificationsettings$Update; + params = {} as Params$Resource$Repricingrules$Get; options = {}; } @@ -20103,62 +22315,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings' + rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'PUT', + method: 'GET', }, options ), params, - requiredParams: ['merchantId'], - pathParams: ['merchantId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } - } - - export interface Params$Resource$Pubsubnotificationsettings$Get - extends StandardParameters { - /** - * The ID of the account for which to get pubsub notification settings. - */ - merchantId?: string; - } - export interface Params$Resource$Pubsubnotificationsettings$Update - extends StandardParameters { - /** - * The ID of the account. - */ - merchantId?: string; - - /** - * Request body metadata - */ - requestBody?: Schema$PubsubNotificationSettings; - } - - export class Resource$Regionalinventory { - context: APIRequestContext; - constructor(context: APIRequestContext) { - this.context = context; - } /** - * content.regionalinventory.custombatch - * @desc Updates regional inventory for multiple products or regions in a single request. + * content.repricingrules.list + * @desc Lists the repricing rules in your Merchant Center account. * @example * // Before running the sample: * // - Enable the API at: @@ -20182,21 +22368,24 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.regionalinventory.custombatch({ - * // Request body metadata - * requestBody: { - * // request body parameters - * // { - * // "entries": [] - * // } - * }, + * const res = await content.repricingrules.list({ + * // CLDR country code (e.g. "US"), used as a filter on repricing rules. + * countryCode: 'placeholder-value', + * // The two-letter ISO 639-1 language code associated with the repricing rule, used as a filter. + * languageCode: 'placeholder-value', + * // Required. The id of the merchant who owns the repricing rule. + * merchantId: 'placeholder-value', + * // The maximum number of repricing rules to return. The service may return fewer than this value. If unspecified, at most 50 rules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * pageSize: 'placeholder-value', + * // A page token, received from a previous `ListRepricingRules` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepricingRules` must match the call that provided the page token. + * pageToken: 'placeholder-value', * }); * console.log(res.data); * * // Example response * // { - * // "entries": [], - * // "kind": "my_kind" + * // "nextPageToken": "my_nextPageToken", + * // "repricingRules": [] * // } * } * @@ -20205,72 +22394,70 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.regionalinventory.custombatch + * @alias content.repricingrules.list * @memberOf! () * * @param {object} params Parameters for request - * @param {().RegionalinventoryCustomBatchRequest} params.requestBody Request body data + * @param {string=} params.countryCode CLDR country code (e.g. "US"), used as a filter on repricing rules. + * @param {string=} params.languageCode The two-letter ISO 639-1 language code associated with the repricing rule, used as a filter. + * @param {string} params.merchantId Required. The id of the merchant who owns the repricing rule. + * @param {integer=} params.pageSize The maximum number of repricing rules to return. The service may return fewer than this value. If unspecified, at most 50 rules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * @param {string=} params.pageToken A page token, received from a previous `ListRepricingRules` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepricingRules` must match the call that provided the page token. * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - custombatch( - params: Params$Resource$Regionalinventory$Custombatch, + list( + params: Params$Resource$Repricingrules$List, options: StreamMethodOptions ): GaxiosPromise; - custombatch( - params?: Params$Resource$Regionalinventory$Custombatch, + list( + params?: Params$Resource$Repricingrules$List, options?: MethodOptions - ): GaxiosPromise; - custombatch( - params: Params$Resource$Regionalinventory$Custombatch, + ): GaxiosPromise; + list( + params: Params$Resource$Repricingrules$List, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - custombatch( - params: Params$Resource$Regionalinventory$Custombatch, + list( + params: Params$Resource$Repricingrules$List, options: | MethodOptions - | BodyResponseCallback, - callback: BodyResponseCallback< - Schema$RegionalinventoryCustomBatchResponse - > + | BodyResponseCallback, + callback: BodyResponseCallback ): void; - custombatch( - params: Params$Resource$Regionalinventory$Custombatch, - callback: BodyResponseCallback< - Schema$RegionalinventoryCustomBatchResponse - > + list( + params: Params$Resource$Repricingrules$List, + callback: BodyResponseCallback ): void; - custombatch( - callback: BodyResponseCallback< - Schema$RegionalinventoryCustomBatchResponse - > + list( + callback: BodyResponseCallback ): void; - custombatch( + list( paramsOrCallback?: - | Params$Resource$Regionalinventory$Custombatch - | BodyResponseCallback + | Params$Resource$Repricingrules$List + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback ): | void - | GaxiosPromise + | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Regionalinventory$Custombatch; + {}) as Params$Resource$Repricingrules$List; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Regionalinventory$Custombatch; + params = {} as Params$Resource$Repricingrules$List; options = {}; } @@ -20279,38 +22466,36 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { - url: (rootUrl + '/content/v2.1/regionalinventory/batch').replace( - /([^:]\/)\/+/g, - '$1' - ), - method: 'POST', + url: ( + rootUrl + '/content/v2.1/{merchantId}/repricingrules' + ).replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', }, options ), params, - requiredParams: [], - pathParams: [], + requiredParams: ['merchantId'], + pathParams: ['merchantId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest( - parameters - ); + return createAPIRequest(parameters); } } /** - * content.regionalinventory.insert - * @desc Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry. + * content.repricingrules.patch + * @desc Updates a repricing rule in your Merchant Center account. All mutable fields will be overwritten in each update request. In each update, you must provide all required mutable fields, or an error will be thrown. If you do not provide an optional field in the update request, if that field currently exists, it will be deleted from the rule. * @example * // Before running the sample: * // - Enable the API at: @@ -20334,23 +22519,26 @@ export namespace content_v2_1 { * google.options({auth: authClient}); * * // Do the magic - * const res = await content.regionalinventory.insert({ - * // The ID of the account that contains the product. This account cannot be a multi-client account. + * const res = await content.repricingrules.patch({ + * // Required. The id of the merchant who owns the repricing rule. * merchantId: 'placeholder-value', - * // The REST ID of the product for which to update the regional inventory. - * productId: 'placeholder-value', + * // Required. The id of the rule to update. + * ruleId: 'placeholder-value', * * // Request body metadata * requestBody: { * // request body parameters * // { - * // "availability": "my_availability", - * // "customAttributes": [], - * // "kind": "my_kind", - * // "price": {}, - * // "regionId": "my_regionId", - * // "salePrice": {}, - * // "salePriceEffectiveDate": "my_salePriceEffectiveDate" + * // "countryCode": "my_countryCode", + * // "effectiveTimePeriod": {}, + * // "eligibleOfferMatcher": {}, + * // "languageCode": "my_languageCode", + * // "merchantId": "my_merchantId", + * // "paused": false, + * // "restriction": {}, + * // "ruleId": "my_ruleId", + * // "title": "my_title", + * // "type": "my_type" * // } * }, * }); @@ -20358,13 +22546,16 @@ export namespace content_v2_1 { * * // Example response * // { - * // "availability": "my_availability", - * // "customAttributes": [], - * // "kind": "my_kind", - * // "price": {}, - * // "regionId": "my_regionId", - * // "salePrice": {}, - * // "salePriceEffectiveDate": "my_salePriceEffectiveDate" + * // "countryCode": "my_countryCode", + * // "effectiveTimePeriod": {}, + * // "eligibleOfferMatcher": {}, + * // "languageCode": "my_languageCode", + * // "merchantId": "my_merchantId", + * // "paused": false, + * // "restriction": {}, + * // "ruleId": "my_ruleId", + * // "title": "my_title", + * // "type": "my_type" * // } * } * @@ -20373,64 +22564,61 @@ export namespace content_v2_1 { * throw e; * }); * - * @alias content.regionalinventory.insert + * @alias content.repricingrules.patch * @memberOf! () * * @param {object} params Parameters for request - * @param {string} params.merchantId The ID of the account that contains the product. This account cannot be a multi-client account. - * @param {string} params.productId The REST ID of the product for which to update the regional inventory. - * @param {().RegionalInventory} params.requestBody Request body data + * @param {string} params.merchantId Required. The id of the merchant who owns the repricing rule. + * @param {string} params.ruleId Required. The id of the rule to update. + * @param {().RepricingRule} params.requestBody Request body data * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`. * @param {callback} callback The callback that handles the response. * @return {object} Request object */ - insert( - params: Params$Resource$Regionalinventory$Insert, + patch( + params: Params$Resource$Repricingrules$Patch, options: StreamMethodOptions ): GaxiosPromise; - insert( - params?: Params$Resource$Regionalinventory$Insert, + patch( + params?: Params$Resource$Repricingrules$Patch, options?: MethodOptions - ): GaxiosPromise; - insert( - params: Params$Resource$Regionalinventory$Insert, + ): GaxiosPromise; + patch( + params: Params$Resource$Repricingrules$Patch, options: StreamMethodOptions | BodyResponseCallback, callback: BodyResponseCallback ): void; - insert( - params: Params$Resource$Regionalinventory$Insert, - options: MethodOptions | BodyResponseCallback, - callback: BodyResponseCallback + patch( + params: Params$Resource$Repricingrules$Patch, + options: MethodOptions | BodyResponseCallback, + callback: BodyResponseCallback ): void; - insert( - params: Params$Resource$Regionalinventory$Insert, - callback: BodyResponseCallback + patch( + params: Params$Resource$Repricingrules$Patch, + callback: BodyResponseCallback ): void; - insert(callback: BodyResponseCallback): void; - insert( + patch(callback: BodyResponseCallback): void; + patch( paramsOrCallback?: - | Params$Resource$Regionalinventory$Insert - | BodyResponseCallback + | Params$Resource$Repricingrules$Patch + | BodyResponseCallback | BodyResponseCallback, optionsOrCallback?: | MethodOptions | StreamMethodOptions - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback, callback?: - | BodyResponseCallback + | BodyResponseCallback | BodyResponseCallback - ): - | void - | GaxiosPromise - | GaxiosPromise { + ): void | GaxiosPromise | GaxiosPromise { let params = (paramsOrCallback || - {}) as Params$Resource$Regionalinventory$Insert; + {}) as Params$Resource$Repricingrules$Patch; let options = (optionsOrCallback || {}) as MethodOptions; if (typeof paramsOrCallback === 'function') { callback = paramsOrCallback; - params = {} as Params$Resource$Regionalinventory$Insert; + params = {} as Params$Resource$Repricingrules$Patch; options = {}; } @@ -20439,56 +22627,110 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { url: ( - rootUrl + - '/content/v2.1/{merchantId}/products/{productId}/regionalinventory' + rootUrl + '/content/v2.1/{merchantId}/repricingrules/{ruleId}' ).replace(/([^:]\/)\/+/g, '$1'), - method: 'POST', + method: 'PATCH', }, options ), params, - requiredParams: ['merchantId', 'productId'], - pathParams: ['merchantId', 'productId'], + requiredParams: ['merchantId', 'ruleId'], + pathParams: ['merchantId', 'ruleId'], context: this.context, }; if (callback) { - createAPIRequest( + createAPIRequest( parameters, callback as BodyResponseCallback<{} | void> ); } else { - return createAPIRequest(parameters); + return createAPIRequest(parameters); } } } - export interface Params$Resource$Regionalinventory$Custombatch + export interface Params$Resource$Repricingrules$Create extends StandardParameters { + /** + * Required. The id of the merchant who owns the repricing rule. + */ + merchantId?: string; + /** + * Required. The id of the rule to create. + */ + ruleId?: string; + /** * Request body metadata */ - requestBody?: Schema$RegionalinventoryCustomBatchRequest; + requestBody?: Schema$RepricingRule; } - export interface Params$Resource$Regionalinventory$Insert + export interface Params$Resource$Repricingrules$Delete extends StandardParameters { /** - * The ID of the account that contains the product. This account cannot be a multi-client account. + * Required. The id of the merchant who owns the repricing rule. */ merchantId?: string; /** - * The REST ID of the product for which to update the regional inventory. + * Required. The id of the rule to Delete. */ - productId?: string; + ruleId?: string; + } + export interface Params$Resource$Repricingrules$Get + extends StandardParameters { + /** + * Required. The id of the merchant who owns the repricing rule. + */ + merchantId?: string; + /** + * Required. The id of the rule to retrieve. + */ + ruleId?: string; + } + export interface Params$Resource$Repricingrules$List + extends StandardParameters { + /** + * CLDR country code (e.g. "US"), used as a filter on repricing rules. + */ + countryCode?: string; + /** + * The two-letter ISO 639-1 language code associated with the repricing rule, used as a filter. + */ + languageCode?: string; + /** + * Required. The id of the merchant who owns the repricing rule. + */ + merchantId?: string; + /** + * The maximum number of repricing rules to return. The service may return fewer than this value. If unspecified, at most 50 rules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + */ + pageSize?: number; + /** + * A page token, received from a previous `ListRepricingRules` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepricingRules` must match the call that provided the page token. + */ + pageToken?: string; + } + export interface Params$Resource$Repricingrules$Patch + extends StandardParameters { + /** + * Required. The id of the merchant who owns the repricing rule. + */ + merchantId?: string; + /** + * Required. The id of the rule to update. + */ + ruleId?: string; /** * Request body metadata */ - requestBody?: Schema$RegionalInventory; + requestBody?: Schema$RepricingRule; } export class Resource$Returnaddress { @@ -20614,7 +22856,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -20743,7 +22986,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -20882,7 +23126,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -21032,7 +23277,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -21181,7 +23427,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -21393,7 +23640,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -21522,7 +23770,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -21662,7 +23911,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -21816,7 +24066,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -21953,7 +24204,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -22149,7 +24401,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -22301,7 +24554,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -22496,7 +24750,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -22673,7 +24928,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -22811,7 +25067,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -22964,7 +25221,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -23118,7 +25376,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -23272,7 +25531,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -23418,7 +25678,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( { @@ -23566,7 +25827,8 @@ export namespace content_v2_1 { options = {}; } - const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const rootUrl = + options.rootUrl || 'https://shoppingcontent.googleapis.com/'; const parameters = { options: Object.assign( {