Autogenerated update (2018-06-01)

Update:
- androidmanagement_v1
- appengine_v1
- content_v2
- content_v2sandbox
- script_v1
- videointelligence_v1
- videointelligence_v1beta2
This commit is contained in:
Google APIs 2018-06-01 00:36:51 +00:00
parent 37945ed3ef
commit dfd1e66002
22 changed files with 3063 additions and 1508 deletions

View File

@ -7666,6 +7666,7 @@
"/appengine:v1/AuthorizedCertificate/domainNames/domain_name": domain_name
"/appengine:v1/AuthorizedCertificate/expireTime": expire_time
"/appengine:v1/AuthorizedCertificate/id": id
"/appengine:v1/AuthorizedCertificate/managedCertificate": managed_certificate
"/appengine:v1/AuthorizedCertificate/name": name
"/appengine:v1/AuthorizedCertificate/visibleDomainMappings": visible_domain_mappings
"/appengine:v1/AuthorizedCertificate/visibleDomainMappings/visible_domain_mapping": visible_domain_mapping
@ -7838,6 +7839,9 @@
"/appengine:v1/LocationMetadata": location_metadata
"/appengine:v1/LocationMetadata/flexibleEnvironmentAvailable": flexible_environment_available
"/appengine:v1/LocationMetadata/standardEnvironmentAvailable": standard_environment_available
"/appengine:v1/ManagedCertificate": managed_certificate
"/appengine:v1/ManagedCertificate/lastRenewalTime": last_renewal_time
"/appengine:v1/ManagedCertificate/status": status
"/appengine:v1/ManualScaling": manual_scaling
"/appengine:v1/ManualScaling/instances": instances
"/appengine:v1/Network": network
@ -7938,6 +7942,8 @@
"/appengine:v1/Service/split": split
"/appengine:v1/SslSettings": ssl_settings
"/appengine:v1/SslSettings/certificateId": certificate_id
"/appengine:v1/SslSettings/pendingManagedCertificateId": pending_managed_certificate_id
"/appengine:v1/SslSettings/sslManagementType": ssl_management_type
"/appengine:v1/StandardSchedulerSettings": standard_scheduler_settings
"/appengine:v1/StandardSchedulerSettings/maxInstances": max_instances
"/appengine:v1/StandardSchedulerSettings/minInstances": min_instances
@ -33034,6 +33040,9 @@
"/content:v2/AccounttaxListResponse/nextPageToken": next_page_token
"/content:v2/AccounttaxListResponse/resources": resources
"/content:v2/AccounttaxListResponse/resources/resource": resource
"/content:v2/Amount": amount
"/content:v2/Amount/pretax": pretax
"/content:v2/Amount/tax": tax
"/content:v2/CarrierRate": carrier_rate
"/content:v2/CarrierRate/carrierName": carrier_name
"/content:v2/CarrierRate/carrierService": carrier_service
@ -33245,6 +33254,18 @@
"/content:v2/InventorySetRequest/sellOnGoogleQuantity": sell_on_google_quantity
"/content:v2/InventorySetResponse": set_inventory_response
"/content:v2/InventorySetResponse/kind": kind
"/content:v2/InvoiceSummary": invoice_summary
"/content:v2/InvoiceSummary/additionalChargeSummaries": additional_charge_summaries
"/content:v2/InvoiceSummary/additionalChargeSummaries/additional_charge_summary": additional_charge_summary
"/content:v2/InvoiceSummary/customerBalance": customer_balance
"/content:v2/InvoiceSummary/googleBalance": google_balance
"/content:v2/InvoiceSummary/merchantBalance": merchant_balance
"/content:v2/InvoiceSummary/productTotal": product_total
"/content:v2/InvoiceSummary/promotionSummaries": promotion_summaries
"/content:v2/InvoiceSummary/promotionSummaries/promotion_summary": promotion_summary
"/content:v2/InvoiceSummaryAdditionalChargeSummary": invoice_summary_additional_charge_summary
"/content:v2/InvoiceSummaryAdditionalChargeSummary/totalAmount": total_amount
"/content:v2/InvoiceSummaryAdditionalChargeSummary/type": type
"/content:v2/LiaAboutPageSettings": lia_about_page_settings
"/content:v2/LiaAboutPageSettings/status": status
"/content:v2/LiaAboutPageSettings/url": url
@ -33281,6 +33302,7 @@
"/content:v2/LiasettingsCustomBatchRequestEntry/liaSettings": lia_settings
"/content:v2/LiasettingsCustomBatchRequestEntry/merchantId": merchant_id
"/content:v2/LiasettingsCustomBatchRequestEntry/method": method_prop
"/content:v2/LiasettingsCustomBatchRequestEntry/posDataProviderId": pos_data_provider_id
"/content:v2/LiasettingsCustomBatchRequestEntry/posExternalAccountId": pos_external_account_id
"/content:v2/LiasettingsCustomBatchRequestEntry/posProviderId": pos_provider_id
"/content:v2/LiasettingsCustomBatchResponse": liasettings_custom_batch_response
@ -33293,6 +33315,8 @@
"/content:v2/LiasettingsCustomBatchResponseEntry/gmbAccounts": gmb_accounts
"/content:v2/LiasettingsCustomBatchResponseEntry/kind": kind
"/content:v2/LiasettingsCustomBatchResponseEntry/liaSettings": lia_settings
"/content:v2/LiasettingsCustomBatchResponseEntry/posDataProviders": pos_data_providers
"/content:v2/LiasettingsCustomBatchResponseEntry/posDataProviders/pos_data_provider": pos_data_provider
"/content:v2/LiasettingsCustomBatchResponseEntry/posProviders": pos_providers
"/content:v2/LiasettingsCustomBatchResponseEntry/posProviders/pos_provider": pos_provider
"/content:v2/LiasettingsGetAccessibleGmbAccountsResponse": liasettings_get_accessible_gmb_accounts_response
@ -33476,6 +33500,55 @@
"/content:v2/OrderShipmentLineItemShipment/lineItemId": line_item_id
"/content:v2/OrderShipmentLineItemShipment/productId": product_id
"/content:v2/OrderShipmentLineItemShipment/quantity": quantity
"/content:v2/OrderinvoicesCreateChargeInvoiceRequest": orderinvoices_create_charge_invoice_request
"/content:v2/OrderinvoicesCreateChargeInvoiceRequest/invoiceId": invoice_id
"/content:v2/OrderinvoicesCreateChargeInvoiceRequest/invoiceSummary": invoice_summary
"/content:v2/OrderinvoicesCreateChargeInvoiceRequest/lineItemInvoices": line_item_invoices
"/content:v2/OrderinvoicesCreateChargeInvoiceRequest/lineItemInvoices/line_item_invoice": line_item_invoice
"/content:v2/OrderinvoicesCreateChargeInvoiceRequest/operationId": operation_id
"/content:v2/OrderinvoicesCreateChargeInvoiceRequest/shipmentGroupId": shipment_group_id
"/content:v2/OrderinvoicesCreateChargeInvoiceResponse": orderinvoices_create_charge_invoice_response
"/content:v2/OrderinvoicesCreateChargeInvoiceResponse/executionStatus": execution_status
"/content:v2/OrderinvoicesCreateChargeInvoiceResponse/kind": kind
"/content:v2/OrderinvoicesCreateRefundInvoiceRequest": orderinvoices_create_refund_invoice_request
"/content:v2/OrderinvoicesCreateRefundInvoiceRequest/invoiceId": invoice_id
"/content:v2/OrderinvoicesCreateRefundInvoiceRequest/operationId": operation_id
"/content:v2/OrderinvoicesCreateRefundInvoiceRequest/refundOnlyOption": refund_only_option
"/content:v2/OrderinvoicesCreateRefundInvoiceRequest/returnOption": return_option
"/content:v2/OrderinvoicesCreateRefundInvoiceRequest/shipmentInvoices": shipment_invoices
"/content:v2/OrderinvoicesCreateRefundInvoiceRequest/shipmentInvoices/shipment_invoice": shipment_invoice
"/content:v2/OrderinvoicesCreateRefundInvoiceResponse": orderinvoices_create_refund_invoice_response
"/content:v2/OrderinvoicesCreateRefundInvoiceResponse/executionStatus": execution_status
"/content:v2/OrderinvoicesCreateRefundInvoiceResponse/kind": kind
"/content:v2/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption": orderinvoices_custom_batch_request_entry_create_refund_invoice_refund_option
"/content:v2/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption/description": description
"/content:v2/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption/reason": reason
"/content:v2/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption": orderinvoices_custom_batch_request_entry_create_refund_invoice_return_option
"/content:v2/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption/description": description
"/content:v2/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption/reason": reason
"/content:v2/OrderpaymentsNotifyAuthApprovedRequest": orderpayments_notify_auth_approved_request
"/content:v2/OrderpaymentsNotifyAuthApprovedRequest/authAmountPretax": auth_amount_pretax
"/content:v2/OrderpaymentsNotifyAuthApprovedRequest/authAmountTax": auth_amount_tax
"/content:v2/OrderpaymentsNotifyAuthApprovedResponse": orderpayments_notify_auth_approved_response
"/content:v2/OrderpaymentsNotifyAuthApprovedResponse/executionStatus": execution_status
"/content:v2/OrderpaymentsNotifyAuthApprovedResponse/kind": kind
"/content:v2/OrderpaymentsNotifyAuthDeclinedRequest": orderpayments_notify_auth_declined_request
"/content:v2/OrderpaymentsNotifyAuthDeclinedRequest/declineReason": decline_reason
"/content:v2/OrderpaymentsNotifyAuthDeclinedResponse": orderpayments_notify_auth_declined_response
"/content:v2/OrderpaymentsNotifyAuthDeclinedResponse/executionStatus": execution_status
"/content:v2/OrderpaymentsNotifyAuthDeclinedResponse/kind": kind
"/content:v2/OrderpaymentsNotifyChargeRequest": orderpayments_notify_charge_request
"/content:v2/OrderpaymentsNotifyChargeRequest/chargeState": charge_state
"/content:v2/OrderpaymentsNotifyChargeRequest/invoiceId": invoice_id
"/content:v2/OrderpaymentsNotifyChargeResponse": orderpayments_notify_charge_response
"/content:v2/OrderpaymentsNotifyChargeResponse/executionStatus": execution_status
"/content:v2/OrderpaymentsNotifyChargeResponse/kind": kind
"/content:v2/OrderpaymentsNotifyRefundRequest": orderpayments_notify_refund_request
"/content:v2/OrderpaymentsNotifyRefundRequest/invoiceId": invoice_id
"/content:v2/OrderpaymentsNotifyRefundRequest/refundState": refund_state
"/content:v2/OrderpaymentsNotifyRefundResponse": orderpayments_notify_refund_response
"/content:v2/OrderpaymentsNotifyRefundResponse/executionStatus": execution_status
"/content:v2/OrderpaymentsNotifyRefundResponse/kind": kind
"/content:v2/OrdersAcknowledgeRequest": orders_acknowledge_request
"/content:v2/OrdersAcknowledgeRequest/operationId": operation_id
"/content:v2/OrdersAcknowledgeResponse": orders_acknowledge_response
@ -33585,6 +33658,7 @@
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/carrier": carrier
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/lineItems": line_items
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/lineItems/line_item": line_item
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/shipmentGroupId": shipment_group_id
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/shipmentId": shipment_id
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/shipmentInfos": shipment_infos
"/content:v2/OrdersCustomBatchRequestEntryShipLineItems/shipmentInfos/shipment_info": shipment_info
@ -33692,6 +33766,7 @@
"/content:v2/OrdersShipLineItemsRequest/lineItems": line_items
"/content:v2/OrdersShipLineItemsRequest/lineItems/line_item": line_item
"/content:v2/OrdersShipLineItemsRequest/operationId": operation_id
"/content:v2/OrdersShipLineItemsRequest/shipmentGroupId": shipment_group_id
"/content:v2/OrdersShipLineItemsRequest/shipmentId": shipment_id
"/content:v2/OrdersShipLineItemsRequest/shipmentInfos": shipment_infos
"/content:v2/OrdersShipLineItemsRequest/shipmentInfos/shipment_info": shipment_info
@ -33746,6 +33821,14 @@
"/content:v2/PosCustomBatchResponseEntry/kind": kind
"/content:v2/PosCustomBatchResponseEntry/sale": sale
"/content:v2/PosCustomBatchResponseEntry/store": store
"/content:v2/PosDataProviders": pos_data_providers
"/content:v2/PosDataProviders/country": country
"/content:v2/PosDataProviders/posDataProviders": pos_data_providers
"/content:v2/PosDataProviders/posDataProviders/pos_data_provider": pos_data_provider
"/content:v2/PosDataProvidersPosDataProvider": pos_data_providers_pos_data_provider
"/content:v2/PosDataProvidersPosDataProvider/displayName": display_name
"/content:v2/PosDataProvidersPosDataProvider/fullName": full_name
"/content:v2/PosDataProvidersPosDataProvider/providerId": provider_id
"/content:v2/PosInventory": pos_inventory
"/content:v2/PosInventory/contentLanguage": content_language
"/content:v2/PosInventory/gtin": gtin
@ -34053,6 +34136,9 @@
"/content:v2/ProductstatusesListResponse/nextPageToken": next_page_token
"/content:v2/ProductstatusesListResponse/resources": resources
"/content:v2/ProductstatusesListResponse/resources/resource": resource
"/content:v2/Promotion": promotion
"/content:v2/Promotion/promotionAmount": promotion_amount
"/content:v2/Promotion/promotionId": promotion_id
"/content:v2/RateGroup": rate_group
"/content:v2/RateGroup/applicableShippingLabels": applicable_shipping_labels
"/content:v2/RateGroup/applicableShippingLabels/applicable_shipping_label": applicable_shipping_label
@ -34075,6 +34161,17 @@
"/content:v2/Service/name": name
"/content:v2/Service/rateGroups": rate_groups
"/content:v2/Service/rateGroups/rate_group": rate_group
"/content:v2/ShipmentInvoice": shipment_invoice
"/content:v2/ShipmentInvoice/invoiceSummary": invoice_summary
"/content:v2/ShipmentInvoice/lineItemInvoices": line_item_invoices
"/content:v2/ShipmentInvoice/lineItemInvoices/line_item_invoice": line_item_invoice
"/content:v2/ShipmentInvoice/shipmentGroupId": shipment_group_id
"/content:v2/ShipmentInvoiceLineItemInvoice": shipment_invoice_line_item_invoice
"/content:v2/ShipmentInvoiceLineItemInvoice/lineItemId": line_item_id
"/content:v2/ShipmentInvoiceLineItemInvoice/productId": product_id
"/content:v2/ShipmentInvoiceLineItemInvoice/shipmentUnitIds": shipment_unit_ids
"/content:v2/ShipmentInvoiceLineItemInvoice/shipmentUnitIds/shipment_unit_id": shipment_unit_id
"/content:v2/ShipmentInvoiceLineItemInvoice/unitInvoice": unit_invoice
"/content:v2/ShippingSettings": shipping_settings
"/content:v2/ShippingSettings/accountId": account_id
"/content:v2/ShippingSettings/postalCodeGroups": postal_code_groups
@ -34166,6 +34263,23 @@
"/content:v2/TestOrderPaymentMethod/lastFourDigits": last_four_digits
"/content:v2/TestOrderPaymentMethod/predefinedBillingAddress": predefined_billing_address
"/content:v2/TestOrderPaymentMethod/type": type
"/content:v2/UnitInvoice": unit_invoice
"/content:v2/UnitInvoice/additionalCharges": additional_charges
"/content:v2/UnitInvoice/additionalCharges/additional_charge": additional_charge
"/content:v2/UnitInvoice/promotions": promotions
"/content:v2/UnitInvoice/promotions/promotion": promotion
"/content:v2/UnitInvoice/unitPricePretax": unit_price_pretax
"/content:v2/UnitInvoice/unitPriceTaxes": unit_price_taxes
"/content:v2/UnitInvoice/unitPriceTaxes/unit_price_tax": unit_price_tax
"/content:v2/UnitInvoiceAdditionalCharge": unit_invoice_additional_charge
"/content:v2/UnitInvoiceAdditionalCharge/additionalChargeAmount": additional_charge_amount
"/content:v2/UnitInvoiceAdditionalCharge/additionalChargePromotions": additional_charge_promotions
"/content:v2/UnitInvoiceAdditionalCharge/additionalChargePromotions/additional_charge_promotion": additional_charge_promotion
"/content:v2/UnitInvoiceAdditionalCharge/type": type
"/content:v2/UnitInvoiceTaxLine": unit_invoice_tax_line
"/content:v2/UnitInvoiceTaxLine/taxAmount": tax_amount
"/content:v2/UnitInvoiceTaxLine/taxName": tax_name
"/content:v2/UnitInvoiceTaxLine/taxType": tax_type
"/content:v2/Value": value
"/content:v2/Value/carrierRateName": carrier_rate_name
"/content:v2/Value/flatRate": flat_rate
@ -34317,6 +34431,24 @@
"/content:v2/content.liasettings.update/accountId": account_id
"/content:v2/content.liasettings.update/dryRun": dry_run
"/content:v2/content.liasettings.update/merchantId": merchant_id
"/content:v2/content.orderinvoices.createchargeinvoice": createchargeinvoice_orderinvoice
"/content:v2/content.orderinvoices.createchargeinvoice/merchantId": merchant_id
"/content:v2/content.orderinvoices.createchargeinvoice/orderId": order_id
"/content:v2/content.orderinvoices.createrefundinvoice": createrefundinvoice_orderinvoice
"/content:v2/content.orderinvoices.createrefundinvoice/merchantId": merchant_id
"/content:v2/content.orderinvoices.createrefundinvoice/orderId": order_id
"/content:v2/content.orderpayments.notifyauthapproved": notifyauthapproved_orderpayment
"/content:v2/content.orderpayments.notifyauthapproved/merchantId": merchant_id
"/content:v2/content.orderpayments.notifyauthapproved/orderId": order_id
"/content:v2/content.orderpayments.notifyauthdeclined": notifyauthdeclined_orderpayment
"/content:v2/content.orderpayments.notifyauthdeclined/merchantId": merchant_id
"/content:v2/content.orderpayments.notifyauthdeclined/orderId": order_id
"/content:v2/content.orderpayments.notifycharge": notifycharge_orderpayment
"/content:v2/content.orderpayments.notifycharge/merchantId": merchant_id
"/content:v2/content.orderpayments.notifycharge/orderId": order_id
"/content:v2/content.orderpayments.notifyrefund": notifyrefund_orderpayment
"/content:v2/content.orderpayments.notifyrefund/merchantId": merchant_id
"/content:v2/content.orderpayments.notifyrefund/orderId": order_id
"/content:v2/content.orders.acknowledge": acknowledge_order
"/content:v2/content.orders.acknowledge/merchantId": merchant_id
"/content:v2/content.orders.acknowledge/orderId": order_id
@ -34462,6 +34594,9 @@
"/content:v2/key": key
"/content:v2/quotaUser": quota_user
"/content:v2/userIp": user_ip
"/content:v2sandbox/Amount": amount
"/content:v2sandbox/Amount/pretax": pretax
"/content:v2sandbox/Amount/tax": tax
"/content:v2sandbox/Error": error
"/content:v2sandbox/Error/domain": domain
"/content:v2sandbox/Error/message": message
@ -34471,6 +34606,18 @@
"/content:v2sandbox/Errors/errors": errors
"/content:v2sandbox/Errors/errors/error": error
"/content:v2sandbox/Errors/message": message
"/content:v2sandbox/InvoiceSummary": invoice_summary
"/content:v2sandbox/InvoiceSummary/additionalChargeSummaries": additional_charge_summaries
"/content:v2sandbox/InvoiceSummary/additionalChargeSummaries/additional_charge_summary": additional_charge_summary
"/content:v2sandbox/InvoiceSummary/customerBalance": customer_balance
"/content:v2sandbox/InvoiceSummary/googleBalance": google_balance
"/content:v2sandbox/InvoiceSummary/merchantBalance": merchant_balance
"/content:v2sandbox/InvoiceSummary/productTotal": product_total
"/content:v2sandbox/InvoiceSummary/promotionSummaries": promotion_summaries
"/content:v2sandbox/InvoiceSummary/promotionSummaries/promotion_summary": promotion_summary
"/content:v2sandbox/InvoiceSummaryAdditionalChargeSummary": invoice_summary_additional_charge_summary
"/content:v2sandbox/InvoiceSummaryAdditionalChargeSummary/totalAmount": total_amount
"/content:v2sandbox/InvoiceSummaryAdditionalChargeSummary/type": type
"/content:v2sandbox/Order": order
"/content:v2sandbox/Order/acknowledged": acknowledged
"/content:v2sandbox/Order/channelType": channel_type
@ -34629,6 +34776,55 @@
"/content:v2sandbox/OrderShipmentLineItemShipment/lineItemId": line_item_id
"/content:v2sandbox/OrderShipmentLineItemShipment/productId": product_id
"/content:v2sandbox/OrderShipmentLineItemShipment/quantity": quantity
"/content:v2sandbox/OrderinvoicesCreateChargeInvoiceRequest": orderinvoices_create_charge_invoice_request
"/content:v2sandbox/OrderinvoicesCreateChargeInvoiceRequest/invoiceId": invoice_id
"/content:v2sandbox/OrderinvoicesCreateChargeInvoiceRequest/invoiceSummary": invoice_summary
"/content:v2sandbox/OrderinvoicesCreateChargeInvoiceRequest/lineItemInvoices": line_item_invoices
"/content:v2sandbox/OrderinvoicesCreateChargeInvoiceRequest/lineItemInvoices/line_item_invoice": line_item_invoice
"/content:v2sandbox/OrderinvoicesCreateChargeInvoiceRequest/operationId": operation_id
"/content:v2sandbox/OrderinvoicesCreateChargeInvoiceRequest/shipmentGroupId": shipment_group_id
"/content:v2sandbox/OrderinvoicesCreateChargeInvoiceResponse": orderinvoices_create_charge_invoice_response
"/content:v2sandbox/OrderinvoicesCreateChargeInvoiceResponse/executionStatus": execution_status
"/content:v2sandbox/OrderinvoicesCreateChargeInvoiceResponse/kind": kind
"/content:v2sandbox/OrderinvoicesCreateRefundInvoiceRequest": orderinvoices_create_refund_invoice_request
"/content:v2sandbox/OrderinvoicesCreateRefundInvoiceRequest/invoiceId": invoice_id
"/content:v2sandbox/OrderinvoicesCreateRefundInvoiceRequest/operationId": operation_id
"/content:v2sandbox/OrderinvoicesCreateRefundInvoiceRequest/refundOnlyOption": refund_only_option
"/content:v2sandbox/OrderinvoicesCreateRefundInvoiceRequest/returnOption": return_option
"/content:v2sandbox/OrderinvoicesCreateRefundInvoiceRequest/shipmentInvoices": shipment_invoices
"/content:v2sandbox/OrderinvoicesCreateRefundInvoiceRequest/shipmentInvoices/shipment_invoice": shipment_invoice
"/content:v2sandbox/OrderinvoicesCreateRefundInvoiceResponse": orderinvoices_create_refund_invoice_response
"/content:v2sandbox/OrderinvoicesCreateRefundInvoiceResponse/executionStatus": execution_status
"/content:v2sandbox/OrderinvoicesCreateRefundInvoiceResponse/kind": kind
"/content:v2sandbox/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption": orderinvoices_custom_batch_request_entry_create_refund_invoice_refund_option
"/content:v2sandbox/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption/description": description
"/content:v2sandbox/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption/reason": reason
"/content:v2sandbox/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption": orderinvoices_custom_batch_request_entry_create_refund_invoice_return_option
"/content:v2sandbox/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption/description": description
"/content:v2sandbox/OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption/reason": reason
"/content:v2sandbox/OrderpaymentsNotifyAuthApprovedRequest": orderpayments_notify_auth_approved_request
"/content:v2sandbox/OrderpaymentsNotifyAuthApprovedRequest/authAmountPretax": auth_amount_pretax
"/content:v2sandbox/OrderpaymentsNotifyAuthApprovedRequest/authAmountTax": auth_amount_tax
"/content:v2sandbox/OrderpaymentsNotifyAuthApprovedResponse": orderpayments_notify_auth_approved_response
"/content:v2sandbox/OrderpaymentsNotifyAuthApprovedResponse/executionStatus": execution_status
"/content:v2sandbox/OrderpaymentsNotifyAuthApprovedResponse/kind": kind
"/content:v2sandbox/OrderpaymentsNotifyAuthDeclinedRequest": orderpayments_notify_auth_declined_request
"/content:v2sandbox/OrderpaymentsNotifyAuthDeclinedRequest/declineReason": decline_reason
"/content:v2sandbox/OrderpaymentsNotifyAuthDeclinedResponse": orderpayments_notify_auth_declined_response
"/content:v2sandbox/OrderpaymentsNotifyAuthDeclinedResponse/executionStatus": execution_status
"/content:v2sandbox/OrderpaymentsNotifyAuthDeclinedResponse/kind": kind
"/content:v2sandbox/OrderpaymentsNotifyChargeRequest": orderpayments_notify_charge_request
"/content:v2sandbox/OrderpaymentsNotifyChargeRequest/chargeState": charge_state
"/content:v2sandbox/OrderpaymentsNotifyChargeRequest/invoiceId": invoice_id
"/content:v2sandbox/OrderpaymentsNotifyChargeResponse": orderpayments_notify_charge_response
"/content:v2sandbox/OrderpaymentsNotifyChargeResponse/executionStatus": execution_status
"/content:v2sandbox/OrderpaymentsNotifyChargeResponse/kind": kind
"/content:v2sandbox/OrderpaymentsNotifyRefundRequest": orderpayments_notify_refund_request
"/content:v2sandbox/OrderpaymentsNotifyRefundRequest/invoiceId": invoice_id
"/content:v2sandbox/OrderpaymentsNotifyRefundRequest/refundState": refund_state
"/content:v2sandbox/OrderpaymentsNotifyRefundResponse": orderpayments_notify_refund_response
"/content:v2sandbox/OrderpaymentsNotifyRefundResponse/executionStatus": execution_status
"/content:v2sandbox/OrderpaymentsNotifyRefundResponse/kind": kind
"/content:v2sandbox/OrdersAcknowledgeRequest": orders_acknowledge_request
"/content:v2sandbox/OrdersAcknowledgeRequest/operationId": operation_id
"/content:v2sandbox/OrdersAcknowledgeResponse": orders_acknowledge_response
@ -34738,6 +34934,7 @@
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/carrier": carrier
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/lineItems": line_items
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/lineItems/line_item": line_item
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/shipmentGroupId": shipment_group_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/shipmentId": shipment_id
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/shipmentInfos": shipment_infos
"/content:v2sandbox/OrdersCustomBatchRequestEntryShipLineItems/shipmentInfos/shipment_info": shipment_info
@ -34845,6 +35042,7 @@
"/content:v2sandbox/OrdersShipLineItemsRequest/lineItems": line_items
"/content:v2sandbox/OrdersShipLineItemsRequest/lineItems/line_item": line_item
"/content:v2sandbox/OrdersShipLineItemsRequest/operationId": operation_id
"/content:v2sandbox/OrdersShipLineItemsRequest/shipmentGroupId": shipment_group_id
"/content:v2sandbox/OrdersShipLineItemsRequest/shipmentId": shipment_id
"/content:v2sandbox/OrdersShipLineItemsRequest/shipmentInfos": shipment_infos
"/content:v2sandbox/OrdersShipLineItemsRequest/shipmentInfos/shipment_info": shipment_info
@ -34879,6 +35077,20 @@
"/content:v2sandbox/Price": price
"/content:v2sandbox/Price/currency": currency
"/content:v2sandbox/Price/value": value
"/content:v2sandbox/Promotion": promotion
"/content:v2sandbox/Promotion/promotionAmount": promotion_amount
"/content:v2sandbox/Promotion/promotionId": promotion_id
"/content:v2sandbox/ShipmentInvoice": shipment_invoice
"/content:v2sandbox/ShipmentInvoice/invoiceSummary": invoice_summary
"/content:v2sandbox/ShipmentInvoice/lineItemInvoices": line_item_invoices
"/content:v2sandbox/ShipmentInvoice/lineItemInvoices/line_item_invoice": line_item_invoice
"/content:v2sandbox/ShipmentInvoice/shipmentGroupId": shipment_group_id
"/content:v2sandbox/ShipmentInvoiceLineItemInvoice": shipment_invoice_line_item_invoice
"/content:v2sandbox/ShipmentInvoiceLineItemInvoice/lineItemId": line_item_id
"/content:v2sandbox/ShipmentInvoiceLineItemInvoice/productId": product_id
"/content:v2sandbox/ShipmentInvoiceLineItemInvoice/shipmentUnitIds": shipment_unit_ids
"/content:v2sandbox/ShipmentInvoiceLineItemInvoice/shipmentUnitIds/shipment_unit_id": shipment_unit_id
"/content:v2sandbox/ShipmentInvoiceLineItemInvoice/unitInvoice": unit_invoice
"/content:v2sandbox/TestOrder": test_order
"/content:v2sandbox/TestOrder/customer": customer
"/content:v2sandbox/TestOrder/kind": kind
@ -34927,6 +35139,41 @@
"/content:v2sandbox/TestOrderPaymentMethod/lastFourDigits": last_four_digits
"/content:v2sandbox/TestOrderPaymentMethod/predefinedBillingAddress": predefined_billing_address
"/content:v2sandbox/TestOrderPaymentMethod/type": type
"/content:v2sandbox/UnitInvoice": unit_invoice
"/content:v2sandbox/UnitInvoice/additionalCharges": additional_charges
"/content:v2sandbox/UnitInvoice/additionalCharges/additional_charge": additional_charge
"/content:v2sandbox/UnitInvoice/promotions": promotions
"/content:v2sandbox/UnitInvoice/promotions/promotion": promotion
"/content:v2sandbox/UnitInvoice/unitPricePretax": unit_price_pretax
"/content:v2sandbox/UnitInvoice/unitPriceTaxes": unit_price_taxes
"/content:v2sandbox/UnitInvoice/unitPriceTaxes/unit_price_tax": unit_price_tax
"/content:v2sandbox/UnitInvoiceAdditionalCharge": unit_invoice_additional_charge
"/content:v2sandbox/UnitInvoiceAdditionalCharge/additionalChargeAmount": additional_charge_amount
"/content:v2sandbox/UnitInvoiceAdditionalCharge/additionalChargePromotions": additional_charge_promotions
"/content:v2sandbox/UnitInvoiceAdditionalCharge/additionalChargePromotions/additional_charge_promotion": additional_charge_promotion
"/content:v2sandbox/UnitInvoiceAdditionalCharge/type": type
"/content:v2sandbox/UnitInvoiceTaxLine": unit_invoice_tax_line
"/content:v2sandbox/UnitInvoiceTaxLine/taxAmount": tax_amount
"/content:v2sandbox/UnitInvoiceTaxLine/taxName": tax_name
"/content:v2sandbox/UnitInvoiceTaxLine/taxType": tax_type
"/content:v2sandbox/content.orderinvoices.createchargeinvoice": createchargeinvoice_orderinvoice
"/content:v2sandbox/content.orderinvoices.createchargeinvoice/merchantId": merchant_id
"/content:v2sandbox/content.orderinvoices.createchargeinvoice/orderId": order_id
"/content:v2sandbox/content.orderinvoices.createrefundinvoice": createrefundinvoice_orderinvoice
"/content:v2sandbox/content.orderinvoices.createrefundinvoice/merchantId": merchant_id
"/content:v2sandbox/content.orderinvoices.createrefundinvoice/orderId": order_id
"/content:v2sandbox/content.orderpayments.notifyauthapproved": notifyauthapproved_orderpayment
"/content:v2sandbox/content.orderpayments.notifyauthapproved/merchantId": merchant_id
"/content:v2sandbox/content.orderpayments.notifyauthapproved/orderId": order_id
"/content:v2sandbox/content.orderpayments.notifyauthdeclined": notifyauthdeclined_orderpayment
"/content:v2sandbox/content.orderpayments.notifyauthdeclined/merchantId": merchant_id
"/content:v2sandbox/content.orderpayments.notifyauthdeclined/orderId": order_id
"/content:v2sandbox/content.orderpayments.notifycharge": notifycharge_orderpayment
"/content:v2sandbox/content.orderpayments.notifycharge/merchantId": merchant_id
"/content:v2sandbox/content.orderpayments.notifycharge/orderId": order_id
"/content:v2sandbox/content.orderpayments.notifyrefund": notifyrefund_orderpayment
"/content:v2sandbox/content.orderpayments.notifyrefund/merchantId": merchant_id
"/content:v2sandbox/content.orderpayments.notifyrefund/orderId": order_id
"/content:v2sandbox/content.orders.acknowledge": acknowledge_order
"/content:v2sandbox/content.orders.acknowledge/merchantId": merchant_id
"/content:v2sandbox/content.orders.acknowledge/orderId": order_id

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/android/management
module AndroidmanagementV1
VERSION = 'V1'
REVISION = '20180524'
REVISION = '20180530'
# Manage Android devices and apps for your customers
AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'

View File

@ -2191,8 +2191,7 @@ module Google
attr_accessor :usb_file_transfer_disabled
alias_method :usb_file_transfer_disabled?, :usb_file_transfer_disabled
# Allows admins to toggle whether USB storge is enabled or disabled on user's
# devices.
# Whether USB storage is enabled.
# Corresponds to the JSON property `usbMassStorageEnabled`
# @return [Boolean]
attr_accessor :usb_mass_storage_enabled

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/appengine/docs/admin-api/
module AppengineV1
VERSION = 'V1'
REVISION = '20180511'
REVISION = '20180525'
# View and manage your applications deployed on Google App Engine
AUTH_APPENGINE_ADMIN = 'https://www.googleapis.com/auth/appengine.admin'

View File

@ -236,6 +236,11 @@ module Google
# @return [String]
attr_accessor :id
# A certificate managed by App Engine.
# Corresponds to the JSON property `managedCertificate`
# @return [Google::Apis::AppengineV1::ManagedCertificate]
attr_accessor :managed_certificate
# Full path to the AuthorizedCertificate resource in the API. Example: apps/
# myapp/authorizedCertificates/12345.@OutputOnly
# Corresponds to the JSON property `name`
@ -265,6 +270,7 @@ module Google
@domain_names = args[:domain_names] if args.key?(:domain_names)
@expire_time = args[:expire_time] if args.key?(:expire_time)
@id = args[:id] if args.key?(:id)
@managed_certificate = args[:managed_certificate] if args.key?(:managed_certificate)
@name = args[:name] if args.key?(:name)
@visible_domain_mappings = args[:visible_domain_mappings] if args.key?(:visible_domain_mappings)
end
@ -1583,6 +1589,34 @@ module Google
end
end
# A certificate managed by App Engine.
class ManagedCertificate
include Google::Apis::Core::Hashable
# Time at which the certificate was last renewed. The renewal process is fully
# managed. Certificate renewal will automatically occur before the certificate
# expires. Renewal errors can be tracked via ManagementStatus.@OutputOnly
# Corresponds to the JSON property `lastRenewalTime`
# @return [String]
attr_accessor :last_renewal_time
# Status of certificate management. Refers to the most recent certificate
# acquisition or renewal attempt.@OutputOnly
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@last_renewal_time = args[:last_renewal_time] if args.key?(:last_renewal_time)
@status = args[:status] if args.key?(:status)
end
end
# A service with manual scaling runs continuously, allowing you to perform
# complex initialization and rely on the state of its memory over time.
class ManualScaling
@ -2310,11 +2344,33 @@ module Google
include Google::Apis::Core::Hashable
# ID of the AuthorizedCertificate resource configuring SSL for the application.
# Clearing this field will remove SSL support. Example: 12345.
# Clearing this field will remove SSL support.By default, a managed certificate
# is automatically created for every domain mapping. To omit SSL support or to
# configure SSL manually, specify SslManagementType.MANUAL on a CREATE or UPDATE
# request. You must be authorized to administer the AuthorizedCertificate
# resource to manually map it to a DomainMapping resource. Example: 12345.
# Corresponds to the JSON property `certificateId`
# @return [String]
attr_accessor :certificate_id
# ID of the managed AuthorizedCertificate resource currently being provisioned,
# if applicable. Until the new managed certificate has been successfully
# provisioned, the previous SSL state will be preserved. Once the provisioning
# process completes, the certificate_id field will reflect the new managed
# certificate and this field will be left empty. To remove SSL support while
# there is still a pending managed certificate, clear the certificate_id field
# with an UpdateDomainMappingRequest.@OutputOnly
# Corresponds to the JSON property `pendingManagedCertificateId`
# @return [String]
attr_accessor :pending_managed_certificate_id
# SSL management type for this domain. If AUTOMATIC, a managed certificate is
# automatically provisioned. If MANUAL, certificate_id must be manually
# specified in order to configure SSL for this domain.
# Corresponds to the JSON property `sslManagementType`
# @return [String]
attr_accessor :ssl_management_type
def initialize(**args)
update!(**args)
end
@ -2322,6 +2378,8 @@ module Google
# Update properties of this object
def update!(**args)
@certificate_id = args[:certificate_id] if args.key?(:certificate_id)
@pending_managed_certificate_id = args[:pending_managed_certificate_id] if args.key?(:pending_managed_certificate_id)
@ssl_management_type = args[:ssl_management_type] if args.key?(:ssl_management_type)
end
end

View File

@ -274,6 +274,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ManagedCertificate
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ManualScaling
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -480,6 +486,8 @@ module Google
collection :domain_names, as: 'domainNames'
property :expire_time, as: 'expireTime'
property :id, as: 'id'
property :managed_certificate, as: 'managedCertificate', class: Google::Apis::AppengineV1::ManagedCertificate, decorator: Google::Apis::AppengineV1::ManagedCertificate::Representation
property :name, as: 'name'
collection :visible_domain_mappings, as: 'visibleDomainMappings'
end
@ -851,6 +859,14 @@ module Google
end
end
class ManagedCertificate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :last_renewal_time, as: 'lastRenewalTime'
property :status, as: 'status'
end
end
class ManualScaling
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1026,6 +1042,8 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :certificate_id, as: 'certificateId'
property :pending_managed_certificate_id, as: 'pendingManagedCertificateId'
property :ssl_management_type, as: 'sslManagementType'
end
end

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2
VERSION = 'V2'
REVISION = '20180523'
REVISION = '20180529'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -1092,6 +1092,31 @@ module Google
end
end
#
class Amount
include Google::Apis::Core::Hashable
# Value before taxes.
# Corresponds to the JSON property `pretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :pretax
# Tax value.
# Corresponds to the JSON property `tax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :tax
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@pretax = args[:pretax] if args.key?(:pretax)
@tax = args[:tax] if args.key?(:tax)
end
end
#
class CarrierRate
include Google::Apis::Core::Hashable
@ -2575,6 +2600,88 @@ module Google
end
end
#
class InvoiceSummary
include Google::Apis::Core::Hashable
# Summary of the total amounts of the additional charges.
# Corresponds to the JSON property `additionalChargeSummaries`
# @return [Array<Google::Apis::ContentV2::InvoiceSummaryAdditionalChargeSummary>]
attr_accessor :additional_charge_summaries
# Customer balance on this invoice. A positive amount means the customer is
# paying, a negative one means the customer is receiving money. Note that it
# must always be true that merchant_balance + customer_balance + google_balance =
# 0.
# Corresponds to the JSON property `customerBalance`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :customer_balance
# Google balance on this invoice. A positive amount means Google is paying, a
# negative one means Google is receiving money. Note that it must always be true
# that merchant_balance + customer_balance + google_balance = 0.
# Corresponds to the JSON property `googleBalance`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :google_balance
# Merchant balance on this invoice. A positive amount means the merchant is
# paying, a negative one means the merchant is receiving money. Note that it
# must always be true that merchant_balance + customer_balance + google_balance =
# 0.
# Corresponds to the JSON property `merchantBalance`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :merchant_balance
# Total price for the product.
# Corresponds to the JSON property `productTotal`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :product_total
# Summary for each promotion.
# Corresponds to the JSON property `promotionSummaries`
# @return [Array<Google::Apis::ContentV2::Promotion>]
attr_accessor :promotion_summaries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additional_charge_summaries = args[:additional_charge_summaries] if args.key?(:additional_charge_summaries)
@customer_balance = args[:customer_balance] if args.key?(:customer_balance)
@google_balance = args[:google_balance] if args.key?(:google_balance)
@merchant_balance = args[:merchant_balance] if args.key?(:merchant_balance)
@product_total = args[:product_total] if args.key?(:product_total)
@promotion_summaries = args[:promotion_summaries] if args.key?(:promotion_summaries)
end
end
#
class InvoiceSummaryAdditionalChargeSummary
include Google::Apis::Core::Hashable
# Total additional charge for this type.
# Corresponds to the JSON property `totalAmount`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :total_amount
# Type of the additional charge.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@total_amount = args[:total_amount] if args.key?(:total_amount)
@type = args[:type] if args.key?(:type)
end
end
#
class LiaAboutPageSettings
include Google::Apis::Core::Hashable
@ -2816,16 +2923,16 @@ module Google
# @return [String]
attr_accessor :method_prop
# The ID of POS data provider. Required only for SetPosProvider.
# Corresponds to the JSON property `posDataProviderId`
# @return [Fixnum]
attr_accessor :pos_data_provider_id
# The account ID by which this merchant is known to the POS provider.
# Corresponds to the JSON property `posExternalAccountId`
# @return [String]
attr_accessor :pos_external_account_id
# The ID of POS provider. Required only for SetPosProvider.
# Corresponds to the JSON property `posProviderId`
# @return [Fixnum]
attr_accessor :pos_provider_id
def initialize(**args)
update!(**args)
end
@ -2841,8 +2948,8 @@ module Google
@lia_settings = args[:lia_settings] if args.key?(:lia_settings)
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
@method_prop = args[:method_prop] if args.key?(:method_prop)
@pos_data_provider_id = args[:pos_data_provider_id] if args.key?(:pos_data_provider_id)
@pos_external_account_id = args[:pos_external_account_id] if args.key?(:pos_external_account_id)
@pos_provider_id = args[:pos_provider_id] if args.key?(:pos_provider_id)
end
end
@ -2902,10 +3009,10 @@ module Google
# @return [Google::Apis::ContentV2::LiaSettings]
attr_accessor :lia_settings
# The list of POS providers.
# Corresponds to the JSON property `posProviders`
# @return [Array<Google::Apis::ContentV2::PosProviders>]
attr_accessor :pos_providers
# The list of POS data providers.
# Corresponds to the JSON property `posDataProviders`
# @return [Array<Google::Apis::ContentV2::PosDataProviders>]
attr_accessor :pos_data_providers
def initialize(**args)
update!(**args)
@ -2918,7 +3025,7 @@ module Google
@gmb_accounts = args[:gmb_accounts] if args.key?(:gmb_accounts)
@kind = args[:kind] if args.key?(:kind)
@lia_settings = args[:lia_settings] if args.key?(:lia_settings)
@pos_providers = args[:pos_providers] if args.key?(:pos_providers)
@pos_data_providers = args[:pos_data_providers] if args.key?(:pos_data_providers)
end
end
@ -4168,6 +4275,394 @@ module Google
end
end
#
class OrderinvoicesCreateChargeInvoiceRequest
include Google::Apis::Core::Hashable
# The ID of the invoice.
# Corresponds to the JSON property `invoiceId`
# @return [String]
attr_accessor :invoice_id
# Invoice summary.
# Corresponds to the JSON property `invoiceSummary`
# @return [Google::Apis::ContentV2::InvoiceSummary]
attr_accessor :invoice_summary
# Invoice details per line item.
# Corresponds to the JSON property `lineItemInvoices`
# @return [Array<Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice>]
attr_accessor :line_item_invoices
# The ID of the operation, unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# ID of the shipment group.
# Corresponds to the JSON property `shipmentGroupId`
# @return [String]
attr_accessor :shipment_group_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
@invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary)
@line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
end
end
#
class OrderinvoicesCreateChargeInvoiceResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderinvoicesCreateChargeInvoiceResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderinvoicesCreateRefundInvoiceRequest
include Google::Apis::Core::Hashable
# The ID of the invoice.
# Corresponds to the JSON property `invoiceId`
# @return [String]
attr_accessor :invoice_id
# The ID of the operation, unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# Option to create a refund-only invoice. Exactly one of refund_option and
# return_option must be provided.
# Corresponds to the JSON property `refundOnlyOption`
# @return [Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption]
attr_accessor :refund_only_option
# Option to create an invoice for a refund and mark all items within the invoice
# as returned. Exactly one of refund_option and return_option must be provided.
# Corresponds to the JSON property `returnOption`
# @return [Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption]
attr_accessor :return_option
# Invoice details for different shipment groups.
# Corresponds to the JSON property `shipmentInvoices`
# @return [Array<Google::Apis::ContentV2::ShipmentInvoice>]
attr_accessor :shipment_invoices
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@refund_only_option = args[:refund_only_option] if args.key?(:refund_only_option)
@return_option = args[:return_option] if args.key?(:return_option)
@shipment_invoices = args[:shipment_invoices] if args.key?(:shipment_invoices)
end
end
#
class OrderinvoicesCreateRefundInvoiceResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderinvoicesCreateRefundInvoiceResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
include Google::Apis::Core::Hashable
# Optional description of the refund reason.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Reason for the refund.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@reason = args[:reason] if args.key?(:reason)
end
end
#
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
include Google::Apis::Core::Hashable
# Optional description of the return reason.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@reason = args[:reason] if args.key?(:reason)
end
end
#
class OrderpaymentsNotifyAuthApprovedRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `authAmountPretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :auth_amount_pretax
#
# Corresponds to the JSON property `authAmountTax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :auth_amount_tax
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auth_amount_pretax = args[:auth_amount_pretax] if args.key?(:auth_amount_pretax)
@auth_amount_tax = args[:auth_amount_tax] if args.key?(:auth_amount_tax)
end
end
#
class OrderpaymentsNotifyAuthApprovedResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyAuthApprovedResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderpaymentsNotifyAuthDeclinedRequest
include Google::Apis::Core::Hashable
# Reason why payment authorization was declined.
# Corresponds to the JSON property `declineReason`
# @return [String]
attr_accessor :decline_reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@decline_reason = args[:decline_reason] if args.key?(:decline_reason)
end
end
#
class OrderpaymentsNotifyAuthDeclinedResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyAuthDeclinedResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderpaymentsNotifyChargeRequest
include Google::Apis::Core::Hashable
# Whether charge was successful.
# Corresponds to the JSON property `chargeState`
# @return [String]
attr_accessor :charge_state
# Invoice ID from orderInvoice service that corresponds to the charge.
# Corresponds to the JSON property `invoiceId`
# @return [String]
attr_accessor :invoice_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@charge_state = args[:charge_state] if args.key?(:charge_state)
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
end
end
#
class OrderpaymentsNotifyChargeResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyChargeResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderpaymentsNotifyRefundRequest
include Google::Apis::Core::Hashable
# Invoice ID from orderInvoice service that corresponds to the charge.
# Corresponds to the JSON property `invoiceId`
# @return [String]
attr_accessor :invoice_id
# Whether refund was successful.
# Corresponds to the JSON property `refundState`
# @return [String]
attr_accessor :refund_state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
@refund_state = args[:refund_state] if args.key?(:refund_state)
end
end
#
class OrderpaymentsNotifyRefundResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyRefundResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrdersAcknowledgeRequest
include Google::Apis::Core::Hashable
@ -4962,6 +5457,12 @@ module Google
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
attr_accessor :line_items
# ID of the shipment group. Required for orders that use the orderinvoices
# service.
# Corresponds to the JSON property `shipmentGroupId`
# @return [String]
attr_accessor :shipment_group_id
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
@ -4986,6 +5487,7 @@ module Google
def update!(**args)
@carrier = args[:carrier] if args.key?(:carrier)
@line_items = args[:line_items] if args.key?(:line_items)
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
@ -5750,6 +6252,12 @@ module Google
# @return [String]
attr_accessor :operation_id
# ID of the shipment group. Required for orders that use the orderinvoices
# service.
# Corresponds to the JSON property `shipmentGroupId`
# @return [String]
attr_accessor :shipment_group_id
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
@ -5775,6 +6283,7 @@ module Google
@carrier = args[:carrier] if args.key?(:carrier)
@line_items = args[:line_items] if args.key?(:line_items)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
@ -6034,7 +6543,7 @@ module Google
# @return [Google::Apis::ContentV2::PosInventory]
attr_accessor :inventory
# The ID of the POS provider.
# The ID of the POS data provider.
# Corresponds to the JSON property `merchantId`
# @return [Fixnum]
attr_accessor :merchant_id
@ -6157,6 +6666,62 @@ module Google
end
end
#
class PosDataProviders
include Google::Apis::Core::Hashable
# Country code.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# A list of POS data providers.
# Corresponds to the JSON property `posDataProviders`
# @return [Array<Google::Apis::ContentV2::PosDataProvidersPosDataProvider>]
attr_accessor :pos_data_providers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country = args[:country] if args.key?(:country)
@pos_data_providers = args[:pos_data_providers] if args.key?(:pos_data_providers)
end
end
#
class PosDataProvidersPosDataProvider
include Google::Apis::Core::Hashable
# The display name of Pos data Provider.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The full name of this POS data Provider.
# Corresponds to the JSON property `fullName`
# @return [String]
attr_accessor :full_name
# The ID of the account.
# Corresponds to the JSON property `providerId`
# @return [Fixnum]
attr_accessor :provider_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@full_name = args[:full_name] if args.key?(:full_name)
@provider_id = args[:provider_id] if args.key?(:provider_id)
end
end
# The absolute quantity of an item available at the given store.
class PosInventory
include Google::Apis::Core::Hashable
@ -6383,62 +6948,6 @@ module Google
end
end
#
class PosProviders
include Google::Apis::Core::Hashable
# Country code.
# Corresponds to the JSON property `country`
# @return [String]
attr_accessor :country
# A list of POS providers.
# Corresponds to the JSON property `posProviders`
# @return [Array<Google::Apis::ContentV2::PosProvidersPosProvider>]
attr_accessor :pos_providers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country = args[:country] if args.key?(:country)
@pos_providers = args[:pos_providers] if args.key?(:pos_providers)
end
end
#
class PosProvidersPosProvider
include Google::Apis::Core::Hashable
# The display name of Pos Provider.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# The full name of this POS Provider.
# Corresponds to the JSON property `fullName`
# @return [String]
attr_accessor :full_name
# The ID of the account.
# Corresponds to the JSON property `providerId`
# @return [Fixnum]
attr_accessor :provider_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@full_name = args[:full_name] if args.key?(:full_name)
@provider_id = args[:provider_id] if args.key?(:provider_id)
end
end
# The change of the available quantity of an item at the given store.
class PosSale
include Google::Apis::Core::Hashable
@ -8170,6 +8679,32 @@ module Google
end
end
#
class Promotion
include Google::Apis::Core::Hashable
# Amount of the promotion. The values here are the promotion applied to the unit
# price pretax and to the total of the tax amounts.
# Corresponds to the JSON property `promotionAmount`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :promotion_amount
# ID of the promotion.
# Corresponds to the JSON property `promotionId`
# @return [String]
attr_accessor :promotion_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@promotion_amount = args[:promotion_amount] if args.key?(:promotion_amount)
@promotion_id = args[:promotion_id] if args.key?(:promotion_id)
end
end
#
class RateGroup
include Google::Apis::Core::Hashable
@ -8309,6 +8844,75 @@ module Google
end
end
#
class ShipmentInvoice
include Google::Apis::Core::Hashable
# Invoice summary.
# Corresponds to the JSON property `invoiceSummary`
# @return [Google::Apis::ContentV2::InvoiceSummary]
attr_accessor :invoice_summary
# Invoice details per line item.
# Corresponds to the JSON property `lineItemInvoices`
# @return [Array<Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice>]
attr_accessor :line_item_invoices
# ID of the shipment group.
# Corresponds to the JSON property `shipmentGroupId`
# @return [String]
attr_accessor :shipment_group_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary)
@line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices)
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
end
end
#
class ShipmentInvoiceLineItemInvoice
include Google::Apis::Core::Hashable
# ID of the line item. Either lineItemId or productId must be set.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# ID of the product. This is the REST ID used in the products service. Either
# lineItemId or productId must be set.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Unit IDs to define specific units within the line item.
# Corresponds to the JSON property `shipmentUnitIds`
# @return [Array<String>]
attr_accessor :shipment_unit_ids
# Invoice details for a single unit.
# Corresponds to the JSON property `unitInvoice`
# @return [Google::Apis::ContentV2::UnitInvoice]
attr_accessor :unit_invoice
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@shipment_unit_ids = args[:shipment_unit_ids] if args.key?(:shipment_unit_ids)
@unit_invoice = args[:unit_invoice] if args.key?(:unit_invoice)
end
end
# The merchant account's shipping settings.
class ShippingSettings
include Google::Apis::Core::Hashable
@ -8910,6 +9514,105 @@ module Google
end
end
#
class UnitInvoice
include Google::Apis::Core::Hashable
# Additional charges for a unit, e.g. shipping costs.
# Corresponds to the JSON property `additionalCharges`
# @return [Array<Google::Apis::ContentV2::UnitInvoiceAdditionalCharge>]
attr_accessor :additional_charges
# Promotions applied to a unit.
# Corresponds to the JSON property `promotions`
# @return [Array<Google::Apis::ContentV2::Promotion>]
attr_accessor :promotions
# Price of the unit, before applying taxes.
# Corresponds to the JSON property `unitPricePretax`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :unit_price_pretax
# Tax amounts to apply to the unit price.
# Corresponds to the JSON property `unitPriceTaxes`
# @return [Array<Google::Apis::ContentV2::UnitInvoiceTaxLine>]
attr_accessor :unit_price_taxes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additional_charges = args[:additional_charges] if args.key?(:additional_charges)
@promotions = args[:promotions] if args.key?(:promotions)
@unit_price_pretax = args[:unit_price_pretax] if args.key?(:unit_price_pretax)
@unit_price_taxes = args[:unit_price_taxes] if args.key?(:unit_price_taxes)
end
end
#
class UnitInvoiceAdditionalCharge
include Google::Apis::Core::Hashable
# Amount of the additional charge.
# Corresponds to the JSON property `additionalChargeAmount`
# @return [Google::Apis::ContentV2::Amount]
attr_accessor :additional_charge_amount
# Promotions applied to the additional charge.
# Corresponds to the JSON property `additionalChargePromotions`
# @return [Array<Google::Apis::ContentV2::Promotion>]
attr_accessor :additional_charge_promotions
# Type of the additional charge.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additional_charge_amount = args[:additional_charge_amount] if args.key?(:additional_charge_amount)
@additional_charge_promotions = args[:additional_charge_promotions] if args.key?(:additional_charge_promotions)
@type = args[:type] if args.key?(:type)
end
end
#
class UnitInvoiceTaxLine
include Google::Apis::Core::Hashable
# Tax amount for the tax type.
# Corresponds to the JSON property `taxAmount`
# @return [Google::Apis::ContentV2::Price]
attr_accessor :tax_amount
# Optional name of the tax type.
# Corresponds to the JSON property `taxName`
# @return [String]
attr_accessor :tax_name
# Type of the tax.
# Corresponds to the JSON property `taxType`
# @return [String]
attr_accessor :tax_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@tax_amount = args[:tax_amount] if args.key?(:tax_amount)
@tax_name = args[:tax_name] if args.key?(:tax_name)
@tax_type = args[:tax_type] if args.key?(:tax_type)
end
end
# The single value of a rate group or the value of a rate group table's cell.
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
# subtableName must be set.

View File

@ -196,6 +196,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Amount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class CarrierRate
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -418,6 +424,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InvoiceSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InvoiceSummaryAdditionalChargeSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class LiaAboutPageSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -634,6 +652,90 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCreateChargeInvoiceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCreateChargeInvoiceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCreateRefundInvoiceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCreateRefundInvoiceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthApprovedRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthApprovedResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthDeclinedRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthDeclinedResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyChargeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyChargeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyRefundRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyRefundResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersAcknowledgeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -946,6 +1048,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PosDataProviders
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PosDataProvidersPosDataProvider
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PosInventory
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -970,18 +1084,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class PosProviders
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PosProvidersPosProvider
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class PosSale
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1174,6 +1276,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Promotion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RateGroup
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1192,6 +1300,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ShipmentInvoice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShipmentInvoiceLineItemInvoice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShippingSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1282,6 +1402,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UnitInvoice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnitInvoiceAdditionalCharge
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnitInvoiceTaxLine
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Value
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -1599,6 +1737,16 @@ module Google
end
end
class Amount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :pretax, as: 'pretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :tax, as: 'tax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
end
end
class CarrierRate
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2010,6 +2158,33 @@ module Google
end
end
class InvoiceSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_charge_summaries, as: 'additionalChargeSummaries', class: Google::Apis::ContentV2::InvoiceSummaryAdditionalChargeSummary, decorator: Google::Apis::ContentV2::InvoiceSummaryAdditionalChargeSummary::Representation
property :customer_balance, as: 'customerBalance', class: Google::Apis::ContentV2::Amount, decorator: Google::Apis::ContentV2::Amount::Representation
property :google_balance, as: 'googleBalance', class: Google::Apis::ContentV2::Amount, decorator: Google::Apis::ContentV2::Amount::Representation
property :merchant_balance, as: 'merchantBalance', class: Google::Apis::ContentV2::Amount, decorator: Google::Apis::ContentV2::Amount::Representation
property :product_total, as: 'productTotal', class: Google::Apis::ContentV2::Amount, decorator: Google::Apis::ContentV2::Amount::Representation
collection :promotion_summaries, as: 'promotionSummaries', class: Google::Apis::ContentV2::Promotion, decorator: Google::Apis::ContentV2::Promotion::Representation
end
end
class InvoiceSummaryAdditionalChargeSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :total_amount, as: 'totalAmount', class: Google::Apis::ContentV2::Amount, decorator: Google::Apis::ContentV2::Amount::Representation
property :type, as: 'type'
end
end
class LiaAboutPageSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2082,8 +2257,8 @@ module Google
property :merchant_id, :numeric_string => true, as: 'merchantId'
property :method_prop, as: 'method'
property :pos_data_provider_id, :numeric_string => true, as: 'posDataProviderId'
property :pos_external_account_id, as: 'posExternalAccountId'
property :pos_provider_id, :numeric_string => true, as: 'posProviderId'
end
end
@ -2107,7 +2282,7 @@ module Google
property :kind, as: 'kind'
property :lia_settings, as: 'liaSettings', class: Google::Apis::ContentV2::LiaSettings, decorator: Google::Apis::ContentV2::LiaSettings::Representation
collection :pos_providers, as: 'posProviders', class: Google::Apis::ContentV2::PosProviders, decorator: Google::Apis::ContentV2::PosProviders::Representation
collection :pos_data_providers, as: 'posDataProviders', class: Google::Apis::ContentV2::PosDataProviders, decorator: Google::Apis::ContentV2::PosDataProviders::Representation
end
end
@ -2442,6 +2617,130 @@ module Google
end
end
class OrderinvoicesCreateChargeInvoiceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :invoice_id, as: 'invoiceId'
property :invoice_summary, as: 'invoiceSummary', class: Google::Apis::ContentV2::InvoiceSummary, decorator: Google::Apis::ContentV2::InvoiceSummary::Representation
collection :line_item_invoices, as: 'lineItemInvoices', class: Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice, decorator: Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice::Representation
property :operation_id, as: 'operationId'
property :shipment_group_id, as: 'shipmentGroupId'
end
end
class OrderinvoicesCreateChargeInvoiceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderinvoicesCreateRefundInvoiceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :invoice_id, as: 'invoiceId'
property :operation_id, as: 'operationId'
property :refund_only_option, as: 'refundOnlyOption', class: Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption, decorator: Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption::Representation
property :return_option, as: 'returnOption', class: Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption, decorator: Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption::Representation
collection :shipment_invoices, as: 'shipmentInvoices', class: Google::Apis::ContentV2::ShipmentInvoice, decorator: Google::Apis::ContentV2::ShipmentInvoice::Representation
end
end
class OrderinvoicesCreateRefundInvoiceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :reason, as: 'reason'
end
end
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :reason, as: 'reason'
end
end
class OrderpaymentsNotifyAuthApprovedRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auth_amount_pretax, as: 'authAmountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :auth_amount_tax, as: 'authAmountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
end
end
class OrderpaymentsNotifyAuthApprovedResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderpaymentsNotifyAuthDeclinedRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :decline_reason, as: 'declineReason'
end
end
class OrderpaymentsNotifyAuthDeclinedResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderpaymentsNotifyChargeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :charge_state, as: 'chargeState'
property :invoice_id, as: 'invoiceId'
end
end
class OrderpaymentsNotifyChargeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderpaymentsNotifyRefundRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :invoice_id, as: 'invoiceId'
property :refund_state, as: 'refundState'
end
end
class OrderpaymentsNotifyRefundResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrdersAcknowledgeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -2673,6 +2972,7 @@ module Google
property :carrier, as: 'carrier'
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation
property :shipment_group_id, as: 'shipmentGroupId'
property :shipment_id, as: 'shipmentId'
collection :shipment_infos, as: 'shipmentInfos', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo::Representation
@ -2896,6 +3196,7 @@ module Google
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation
property :operation_id, as: 'operationId'
property :shipment_group_id, as: 'shipmentGroupId'
property :shipment_id, as: 'shipmentId'
collection :shipment_infos, as: 'shipmentInfos', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo::Representation
@ -3015,6 +3316,24 @@ module Google
end
end
class PosDataProviders
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :country, as: 'country'
collection :pos_data_providers, as: 'posDataProviders', class: Google::Apis::ContentV2::PosDataProvidersPosDataProvider, decorator: Google::Apis::ContentV2::PosDataProvidersPosDataProvider::Representation
end
end
class PosDataProvidersPosDataProvider
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :full_name, as: 'fullName'
property :provider_id, :numeric_string => true, as: 'providerId'
end
end
class PosInventory
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3071,24 +3390,6 @@ module Google
end
end
class PosProviders
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :country, as: 'country'
collection :pos_providers, as: 'posProviders', class: Google::Apis::ContentV2::PosProvidersPosProvider, decorator: Google::Apis::ContentV2::PosProvidersPosProvider::Representation
end
end
class PosProvidersPosProvider
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :full_name, as: 'fullName'
property :provider_id, :numeric_string => true, as: 'providerId'
end
end
class PosSale
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3527,6 +3828,15 @@ module Google
end
end
class Promotion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :promotion_amount, as: 'promotionAmount', class: Google::Apis::ContentV2::Amount, decorator: Google::Apis::ContentV2::Amount::Representation
property :promotion_id, as: 'promotionId'
end
end
class RateGroup
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3567,6 +3877,28 @@ module Google
end
end
class ShipmentInvoice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :invoice_summary, as: 'invoiceSummary', class: Google::Apis::ContentV2::InvoiceSummary, decorator: Google::Apis::ContentV2::InvoiceSummary::Representation
collection :line_item_invoices, as: 'lineItemInvoices', class: Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice, decorator: Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice::Representation
property :shipment_group_id, as: 'shipmentGroupId'
end
end
class ShipmentInvoiceLineItemInvoice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
collection :shipment_unit_ids, as: 'shipmentUnitIds'
property :unit_invoice, as: 'unitInvoice', class: Google::Apis::ContentV2::UnitInvoice, decorator: Google::Apis::ContentV2::UnitInvoice::Representation
end
end
class ShippingSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -3748,6 +4080,41 @@ module Google
end
end
class UnitInvoice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_charges, as: 'additionalCharges', class: Google::Apis::ContentV2::UnitInvoiceAdditionalCharge, decorator: Google::Apis::ContentV2::UnitInvoiceAdditionalCharge::Representation
collection :promotions, as: 'promotions', class: Google::Apis::ContentV2::Promotion, decorator: Google::Apis::ContentV2::Promotion::Representation
property :unit_price_pretax, as: 'unitPricePretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
collection :unit_price_taxes, as: 'unitPriceTaxes', class: Google::Apis::ContentV2::UnitInvoiceTaxLine, decorator: Google::Apis::ContentV2::UnitInvoiceTaxLine::Representation
end
end
class UnitInvoiceAdditionalCharge
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :additional_charge_amount, as: 'additionalChargeAmount', class: Google::Apis::ContentV2::Amount, decorator: Google::Apis::ContentV2::Amount::Representation
collection :additional_charge_promotions, as: 'additionalChargePromotions', class: Google::Apis::ContentV2::Promotion, decorator: Google::Apis::ContentV2::Promotion::Representation
property :type, as: 'type'
end
end
class UnitInvoiceTaxLine
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :tax_amount, as: 'taxAmount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
property :tax_name, as: 'taxName'
property :tax_type, as: 'taxType'
end
end
class Value
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -1626,6 +1626,248 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates a charge invoice for a shipment group, and triggers a charge capture
# for non-facilitated payment orders.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order.
# @param [Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceRequest] orderinvoices_create_charge_invoice_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
command.request_representation = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceRequest::Representation
command.request_object = orderinvoices_create_charge_invoice_request_object
command.response_representation = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a refund invoice for one or more shipment groups, and triggers a
# refund for non-facilitated payment orders.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order.
# @param [Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceRequest] orderinvoices_create_refund_invoice_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
command.request_representation = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceRequest::Representation
command.request_object = orderinvoices_create_refund_invoice_request_object
command.response_representation = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Notify about successfully authorizing user's payment method for a given amount.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for for which payment authorization is happening.
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedRequest] orderpayments_notify_auth_approved_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def notifyauthapproved_orderpayment(merchant_id, order_id, orderpayments_notify_auth_approved_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthApproved', options)
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedRequest::Representation
command.request_object = orderpayments_notify_auth_approved_request_object
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Notify about failure to authorize user's payment method.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for which payment authorization was declined.
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedRequest] orderpayments_notify_auth_declined_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def notifyauthdeclined_orderpayment(merchant_id, order_id, orderpayments_notify_auth_declined_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthDeclined', options)
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedRequest::Representation
command.request_object = orderpayments_notify_auth_declined_request_object
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Notify about charge on user's selected payments method.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for which charge is happening.
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyChargeRequest] orderpayments_notify_charge_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyCharge', options)
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyChargeRequest::Representation
command.request_object = orderpayments_notify_charge_request_object
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Notify about refund on user's selected payments method.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for which charge is happening.
# @param [Google::Apis::ContentV2::OrderpaymentsNotifyRefundRequest] orderpayments_notify_refund_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyRefund', options)
command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyRefundRequest::Representation
command.request_object = orderpayments_notify_refund_request_object
command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse::Representation
command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Marks an order as acknowledged.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/shopping-content
module ContentV2sandbox
VERSION = 'V2sandbox'
REVISION = '20180523'
REVISION = '20180529'
# Manage your product listings and accounts for Google Shopping
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'

View File

@ -22,6 +22,31 @@ module Google
module Apis
module ContentV2sandbox
#
class Amount
include Google::Apis::Core::Hashable
# Value before taxes.
# Corresponds to the JSON property `pretax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :pretax
# Tax value.
# Corresponds to the JSON property `tax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :tax
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@pretax = args[:pretax] if args.key?(:pretax)
@tax = args[:tax] if args.key?(:tax)
end
end
# An error returned by the API.
class Error
include Google::Apis::Core::Hashable
@ -84,6 +109,88 @@ module Google
end
end
#
class InvoiceSummary
include Google::Apis::Core::Hashable
# Summary of the total amounts of the additional charges.
# Corresponds to the JSON property `additionalChargeSummaries`
# @return [Array<Google::Apis::ContentV2sandbox::InvoiceSummaryAdditionalChargeSummary>]
attr_accessor :additional_charge_summaries
# Customer balance on this invoice. A positive amount means the customer is
# paying, a negative one means the customer is receiving money. Note that it
# must always be true that merchant_balance + customer_balance + google_balance =
# 0.
# Corresponds to the JSON property `customerBalance`
# @return [Google::Apis::ContentV2sandbox::Amount]
attr_accessor :customer_balance
# Google balance on this invoice. A positive amount means Google is paying, a
# negative one means Google is receiving money. Note that it must always be true
# that merchant_balance + customer_balance + google_balance = 0.
# Corresponds to the JSON property `googleBalance`
# @return [Google::Apis::ContentV2sandbox::Amount]
attr_accessor :google_balance
# Merchant balance on this invoice. A positive amount means the merchant is
# paying, a negative one means the merchant is receiving money. Note that it
# must always be true that merchant_balance + customer_balance + google_balance =
# 0.
# Corresponds to the JSON property `merchantBalance`
# @return [Google::Apis::ContentV2sandbox::Amount]
attr_accessor :merchant_balance
# Total price for the product.
# Corresponds to the JSON property `productTotal`
# @return [Google::Apis::ContentV2sandbox::Amount]
attr_accessor :product_total
# Summary for each promotion.
# Corresponds to the JSON property `promotionSummaries`
# @return [Array<Google::Apis::ContentV2sandbox::Promotion>]
attr_accessor :promotion_summaries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additional_charge_summaries = args[:additional_charge_summaries] if args.key?(:additional_charge_summaries)
@customer_balance = args[:customer_balance] if args.key?(:customer_balance)
@google_balance = args[:google_balance] if args.key?(:google_balance)
@merchant_balance = args[:merchant_balance] if args.key?(:merchant_balance)
@product_total = args[:product_total] if args.key?(:product_total)
@promotion_summaries = args[:promotion_summaries] if args.key?(:promotion_summaries)
end
end
#
class InvoiceSummaryAdditionalChargeSummary
include Google::Apis::Core::Hashable
# Total additional charge for this type.
# Corresponds to the JSON property `totalAmount`
# @return [Google::Apis::ContentV2sandbox::Amount]
attr_accessor :total_amount
# Type of the additional charge.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@total_amount = args[:total_amount] if args.key?(:total_amount)
@type = args[:type] if args.key?(:type)
end
end
#
class Order
include Google::Apis::Core::Hashable
@ -1153,6 +1260,394 @@ module Google
end
end
#
class OrderinvoicesCreateChargeInvoiceRequest
include Google::Apis::Core::Hashable
# The ID of the invoice.
# Corresponds to the JSON property `invoiceId`
# @return [String]
attr_accessor :invoice_id
# Invoice summary.
# Corresponds to the JSON property `invoiceSummary`
# @return [Google::Apis::ContentV2sandbox::InvoiceSummary]
attr_accessor :invoice_summary
# Invoice details per line item.
# Corresponds to the JSON property `lineItemInvoices`
# @return [Array<Google::Apis::ContentV2sandbox::ShipmentInvoiceLineItemInvoice>]
attr_accessor :line_item_invoices
# The ID of the operation, unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# ID of the shipment group.
# Corresponds to the JSON property `shipmentGroupId`
# @return [String]
attr_accessor :shipment_group_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
@invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary)
@line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
end
end
#
class OrderinvoicesCreateChargeInvoiceResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderinvoicesCreateChargeInvoiceResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderinvoicesCreateRefundInvoiceRequest
include Google::Apis::Core::Hashable
# The ID of the invoice.
# Corresponds to the JSON property `invoiceId`
# @return [String]
attr_accessor :invoice_id
# The ID of the operation, unique across all operations for a given order.
# Corresponds to the JSON property `operationId`
# @return [String]
attr_accessor :operation_id
# Option to create a refund-only invoice. Exactly one of refund_option and
# return_option must be provided.
# Corresponds to the JSON property `refundOnlyOption`
# @return [Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption]
attr_accessor :refund_only_option
# Option to create an invoice for a refund and mark all items within the invoice
# as returned. Exactly one of refund_option and return_option must be provided.
# Corresponds to the JSON property `returnOption`
# @return [Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption]
attr_accessor :return_option
# Invoice details for different shipment groups.
# Corresponds to the JSON property `shipmentInvoices`
# @return [Array<Google::Apis::ContentV2sandbox::ShipmentInvoice>]
attr_accessor :shipment_invoices
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@refund_only_option = args[:refund_only_option] if args.key?(:refund_only_option)
@return_option = args[:return_option] if args.key?(:return_option)
@shipment_invoices = args[:shipment_invoices] if args.key?(:shipment_invoices)
end
end
#
class OrderinvoicesCreateRefundInvoiceResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderinvoicesCreateRefundInvoiceResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
include Google::Apis::Core::Hashable
# Optional description of the refund reason.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Reason for the refund.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@reason = args[:reason] if args.key?(:reason)
end
end
#
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
include Google::Apis::Core::Hashable
# Optional description of the return reason.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Reason for the return.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@reason = args[:reason] if args.key?(:reason)
end
end
#
class OrderpaymentsNotifyAuthApprovedRequest
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `authAmountPretax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :auth_amount_pretax
#
# Corresponds to the JSON property `authAmountTax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :auth_amount_tax
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auth_amount_pretax = args[:auth_amount_pretax] if args.key?(:auth_amount_pretax)
@auth_amount_tax = args[:auth_amount_tax] if args.key?(:auth_amount_tax)
end
end
#
class OrderpaymentsNotifyAuthApprovedResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyAuthApprovedResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderpaymentsNotifyAuthDeclinedRequest
include Google::Apis::Core::Hashable
# Reason why payment authorization was declined.
# Corresponds to the JSON property `declineReason`
# @return [String]
attr_accessor :decline_reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@decline_reason = args[:decline_reason] if args.key?(:decline_reason)
end
end
#
class OrderpaymentsNotifyAuthDeclinedResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyAuthDeclinedResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderpaymentsNotifyChargeRequest
include Google::Apis::Core::Hashable
# Whether charge was successful.
# Corresponds to the JSON property `chargeState`
# @return [String]
attr_accessor :charge_state
# Invoice ID from orderInvoice service that corresponds to the charge.
# Corresponds to the JSON property `invoiceId`
# @return [String]
attr_accessor :invoice_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@charge_state = args[:charge_state] if args.key?(:charge_state)
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
end
end
#
class OrderpaymentsNotifyChargeResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyChargeResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrderpaymentsNotifyRefundRequest
include Google::Apis::Core::Hashable
# Invoice ID from orderInvoice service that corresponds to the charge.
# Corresponds to the JSON property `invoiceId`
# @return [String]
attr_accessor :invoice_id
# Whether refund was successful.
# Corresponds to the JSON property `refundState`
# @return [String]
attr_accessor :refund_state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
@refund_state = args[:refund_state] if args.key?(:refund_state)
end
end
#
class OrderpaymentsNotifyRefundResponse
include Google::Apis::Core::Hashable
# The status of the execution.
# Corresponds to the JSON property `executionStatus`
# @return [String]
attr_accessor :execution_status
# Identifies what kind of resource this is. Value: the fixed string "content#
# orderpaymentsNotifyRefundResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@execution_status = args[:execution_status] if args.key?(:execution_status)
@kind = args[:kind] if args.key?(:kind)
end
end
#
class OrdersAcknowledgeRequest
include Google::Apis::Core::Hashable
@ -1947,6 +2442,12 @@ module Google
# @return [Array<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>]
attr_accessor :line_items
# ID of the shipment group. Required for orders that use the orderinvoices
# service.
# Corresponds to the JSON property `shipmentGroupId`
# @return [String]
attr_accessor :shipment_group_id
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
@ -1971,6 +2472,7 @@ module Google
def update!(**args)
@carrier = args[:carrier] if args.key?(:carrier)
@line_items = args[:line_items] if args.key?(:line_items)
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
@ -2735,6 +3237,12 @@ module Google
# @return [String]
attr_accessor :operation_id
# ID of the shipment group. Required for orders that use the orderinvoices
# service.
# Corresponds to the JSON property `shipmentGroupId`
# @return [String]
attr_accessor :shipment_group_id
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
# Corresponds to the JSON property `shipmentId`
# @return [String]
@ -2760,6 +3268,7 @@ module Google
@carrier = args[:carrier] if args.key?(:carrier)
@line_items = args[:line_items] if args.key?(:line_items)
@operation_id = args[:operation_id] if args.key?(:operation_id)
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
@ -3011,6 +3520,101 @@ module Google
end
end
#
class Promotion
include Google::Apis::Core::Hashable
# Amount of the promotion. The values here are the promotion applied to the unit
# price pretax and to the total of the tax amounts.
# Corresponds to the JSON property `promotionAmount`
# @return [Google::Apis::ContentV2sandbox::Amount]
attr_accessor :promotion_amount
# ID of the promotion.
# Corresponds to the JSON property `promotionId`
# @return [String]
attr_accessor :promotion_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@promotion_amount = args[:promotion_amount] if args.key?(:promotion_amount)
@promotion_id = args[:promotion_id] if args.key?(:promotion_id)
end
end
#
class ShipmentInvoice
include Google::Apis::Core::Hashable
# Invoice summary.
# Corresponds to the JSON property `invoiceSummary`
# @return [Google::Apis::ContentV2sandbox::InvoiceSummary]
attr_accessor :invoice_summary
# Invoice details per line item.
# Corresponds to the JSON property `lineItemInvoices`
# @return [Array<Google::Apis::ContentV2sandbox::ShipmentInvoiceLineItemInvoice>]
attr_accessor :line_item_invoices
# ID of the shipment group.
# Corresponds to the JSON property `shipmentGroupId`
# @return [String]
attr_accessor :shipment_group_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary)
@line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices)
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
end
end
#
class ShipmentInvoiceLineItemInvoice
include Google::Apis::Core::Hashable
# ID of the line item. Either lineItemId or productId must be set.
# Corresponds to the JSON property `lineItemId`
# @return [String]
attr_accessor :line_item_id
# ID of the product. This is the REST ID used in the products service. Either
# lineItemId or productId must be set.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Unit IDs to define specific units within the line item.
# Corresponds to the JSON property `shipmentUnitIds`
# @return [Array<String>]
attr_accessor :shipment_unit_ids
# Invoice details for a single unit.
# Corresponds to the JSON property `unitInvoice`
# @return [Google::Apis::ContentV2sandbox::UnitInvoice]
attr_accessor :unit_invoice
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
@product_id = args[:product_id] if args.key?(:product_id)
@shipment_unit_ids = args[:shipment_unit_ids] if args.key?(:shipment_unit_ids)
@unit_invoice = args[:unit_invoice] if args.key?(:unit_invoice)
end
end
#
class TestOrder
include Google::Apis::Core::Hashable
@ -3329,6 +3933,105 @@ module Google
@type = args[:type] if args.key?(:type)
end
end
#
class UnitInvoice
include Google::Apis::Core::Hashable
# Additional charges for a unit, e.g. shipping costs.
# Corresponds to the JSON property `additionalCharges`
# @return [Array<Google::Apis::ContentV2sandbox::UnitInvoiceAdditionalCharge>]
attr_accessor :additional_charges
# Promotions applied to a unit.
# Corresponds to the JSON property `promotions`
# @return [Array<Google::Apis::ContentV2sandbox::Promotion>]
attr_accessor :promotions
# Price of the unit, before applying taxes.
# Corresponds to the JSON property `unitPricePretax`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :unit_price_pretax
# Tax amounts to apply to the unit price.
# Corresponds to the JSON property `unitPriceTaxes`
# @return [Array<Google::Apis::ContentV2sandbox::UnitInvoiceTaxLine>]
attr_accessor :unit_price_taxes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additional_charges = args[:additional_charges] if args.key?(:additional_charges)
@promotions = args[:promotions] if args.key?(:promotions)
@unit_price_pretax = args[:unit_price_pretax] if args.key?(:unit_price_pretax)
@unit_price_taxes = args[:unit_price_taxes] if args.key?(:unit_price_taxes)
end
end
#
class UnitInvoiceAdditionalCharge
include Google::Apis::Core::Hashable
# Amount of the additional charge.
# Corresponds to the JSON property `additionalChargeAmount`
# @return [Google::Apis::ContentV2sandbox::Amount]
attr_accessor :additional_charge_amount
# Promotions applied to the additional charge.
# Corresponds to the JSON property `additionalChargePromotions`
# @return [Array<Google::Apis::ContentV2sandbox::Promotion>]
attr_accessor :additional_charge_promotions
# Type of the additional charge.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@additional_charge_amount = args[:additional_charge_amount] if args.key?(:additional_charge_amount)
@additional_charge_promotions = args[:additional_charge_promotions] if args.key?(:additional_charge_promotions)
@type = args[:type] if args.key?(:type)
end
end
#
class UnitInvoiceTaxLine
include Google::Apis::Core::Hashable
# Tax amount for the tax type.
# Corresponds to the JSON property `taxAmount`
# @return [Google::Apis::ContentV2sandbox::Price]
attr_accessor :tax_amount
# Optional name of the tax type.
# Corresponds to the JSON property `taxName`
# @return [String]
attr_accessor :tax_name
# Type of the tax.
# Corresponds to the JSON property `taxType`
# @return [String]
attr_accessor :tax_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@tax_amount = args[:tax_amount] if args.key?(:tax_amount)
@tax_name = args[:tax_name] if args.key?(:tax_name)
@tax_type = args[:tax_type] if args.key?(:tax_type)
end
end
end
end
end

View File

@ -22,6 +22,12 @@ module Google
module Apis
module ContentV2sandbox
class Amount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Error
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -34,6 +40,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InvoiceSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InvoiceSummaryAdditionalChargeSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Order
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -154,6 +172,90 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCreateChargeInvoiceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCreateChargeInvoiceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCreateRefundInvoiceRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCreateRefundInvoiceResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthApprovedRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthApprovedResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthDeclinedRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyAuthDeclinedResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyChargeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyChargeResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyRefundRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrderpaymentsNotifyRefundResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class OrdersAcknowledgeRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -448,6 +550,24 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class Promotion
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShipmentInvoice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ShipmentInvoiceLineItemInvoice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class TestOrder
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -484,6 +604,34 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class UnitInvoice
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnitInvoiceAdditionalCharge
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class UnitInvoiceTaxLine
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Amount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :pretax, as: 'pretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :tax, as: 'tax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
end
end
class Error
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -503,6 +651,33 @@ module Google
end
end
class InvoiceSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_charge_summaries, as: 'additionalChargeSummaries', class: Google::Apis::ContentV2sandbox::InvoiceSummaryAdditionalChargeSummary, decorator: Google::Apis::ContentV2sandbox::InvoiceSummaryAdditionalChargeSummary::Representation
property :customer_balance, as: 'customerBalance', class: Google::Apis::ContentV2sandbox::Amount, decorator: Google::Apis::ContentV2sandbox::Amount::Representation
property :google_balance, as: 'googleBalance', class: Google::Apis::ContentV2sandbox::Amount, decorator: Google::Apis::ContentV2sandbox::Amount::Representation
property :merchant_balance, as: 'merchantBalance', class: Google::Apis::ContentV2sandbox::Amount, decorator: Google::Apis::ContentV2sandbox::Amount::Representation
property :product_total, as: 'productTotal', class: Google::Apis::ContentV2sandbox::Amount, decorator: Google::Apis::ContentV2sandbox::Amount::Representation
collection :promotion_summaries, as: 'promotionSummaries', class: Google::Apis::ContentV2sandbox::Promotion, decorator: Google::Apis::ContentV2sandbox::Promotion::Representation
end
end
class InvoiceSummaryAdditionalChargeSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :total_amount, as: 'totalAmount', class: Google::Apis::ContentV2sandbox::Amount, decorator: Google::Apis::ContentV2sandbox::Amount::Representation
property :type, as: 'type'
end
end
class Order
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -776,6 +951,130 @@ module Google
end
end
class OrderinvoicesCreateChargeInvoiceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :invoice_id, as: 'invoiceId'
property :invoice_summary, as: 'invoiceSummary', class: Google::Apis::ContentV2sandbox::InvoiceSummary, decorator: Google::Apis::ContentV2sandbox::InvoiceSummary::Representation
collection :line_item_invoices, as: 'lineItemInvoices', class: Google::Apis::ContentV2sandbox::ShipmentInvoiceLineItemInvoice, decorator: Google::Apis::ContentV2sandbox::ShipmentInvoiceLineItemInvoice::Representation
property :operation_id, as: 'operationId'
property :shipment_group_id, as: 'shipmentGroupId'
end
end
class OrderinvoicesCreateChargeInvoiceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderinvoicesCreateRefundInvoiceRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :invoice_id, as: 'invoiceId'
property :operation_id, as: 'operationId'
property :refund_only_option, as: 'refundOnlyOption', class: Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption, decorator: Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption::Representation
property :return_option, as: 'returnOption', class: Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption, decorator: Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption::Representation
collection :shipment_invoices, as: 'shipmentInvoices', class: Google::Apis::ContentV2sandbox::ShipmentInvoice, decorator: Google::Apis::ContentV2sandbox::ShipmentInvoice::Representation
end
end
class OrderinvoicesCreateRefundInvoiceResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :reason, as: 'reason'
end
end
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :reason, as: 'reason'
end
end
class OrderpaymentsNotifyAuthApprovedRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :auth_amount_pretax, as: 'authAmountPretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :auth_amount_tax, as: 'authAmountTax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
end
end
class OrderpaymentsNotifyAuthApprovedResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderpaymentsNotifyAuthDeclinedRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :decline_reason, as: 'declineReason'
end
end
class OrderpaymentsNotifyAuthDeclinedResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderpaymentsNotifyChargeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :charge_state, as: 'chargeState'
property :invoice_id, as: 'invoiceId'
end
end
class OrderpaymentsNotifyChargeResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrderpaymentsNotifyRefundRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :invoice_id, as: 'invoiceId'
property :refund_state, as: 'refundState'
end
end
class OrderpaymentsNotifyRefundResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :execution_status, as: 'executionStatus'
property :kind, as: 'kind'
end
end
class OrdersAcknowledgeRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1007,6 +1306,7 @@ module Google
property :carrier, as: 'carrier'
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment::Representation
property :shipment_group_id, as: 'shipmentGroupId'
property :shipment_id, as: 'shipmentId'
collection :shipment_infos, as: 'shipmentInfos', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo::Representation
@ -1230,6 +1530,7 @@ module Google
collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment::Representation
property :operation_id, as: 'operationId'
property :shipment_group_id, as: 'shipmentGroupId'
property :shipment_id, as: 'shipmentId'
collection :shipment_infos, as: 'shipmentInfos', class: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo, decorator: Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo::Representation
@ -1307,6 +1608,37 @@ module Google
end
end
class Promotion
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :promotion_amount, as: 'promotionAmount', class: Google::Apis::ContentV2sandbox::Amount, decorator: Google::Apis::ContentV2sandbox::Amount::Representation
property :promotion_id, as: 'promotionId'
end
end
class ShipmentInvoice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :invoice_summary, as: 'invoiceSummary', class: Google::Apis::ContentV2sandbox::InvoiceSummary, decorator: Google::Apis::ContentV2sandbox::InvoiceSummary::Representation
collection :line_item_invoices, as: 'lineItemInvoices', class: Google::Apis::ContentV2sandbox::ShipmentInvoiceLineItemInvoice, decorator: Google::Apis::ContentV2sandbox::ShipmentInvoiceLineItemInvoice::Representation
property :shipment_group_id, as: 'shipmentGroupId'
end
end
class ShipmentInvoiceLineItemInvoice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :line_item_id, as: 'lineItemId'
property :product_id, as: 'productId'
collection :shipment_unit_ids, as: 'shipmentUnitIds'
property :unit_invoice, as: 'unitInvoice', class: Google::Apis::ContentV2sandbox::UnitInvoice, decorator: Google::Apis::ContentV2sandbox::UnitInvoice::Representation
end
end
class TestOrder
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -1394,6 +1726,41 @@ module Google
property :type, as: 'type'
end
end
class UnitInvoice
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :additional_charges, as: 'additionalCharges', class: Google::Apis::ContentV2sandbox::UnitInvoiceAdditionalCharge, decorator: Google::Apis::ContentV2sandbox::UnitInvoiceAdditionalCharge::Representation
collection :promotions, as: 'promotions', class: Google::Apis::ContentV2sandbox::Promotion, decorator: Google::Apis::ContentV2sandbox::Promotion::Representation
property :unit_price_pretax, as: 'unitPricePretax', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
collection :unit_price_taxes, as: 'unitPriceTaxes', class: Google::Apis::ContentV2sandbox::UnitInvoiceTaxLine, decorator: Google::Apis::ContentV2sandbox::UnitInvoiceTaxLine::Representation
end
end
class UnitInvoiceAdditionalCharge
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :additional_charge_amount, as: 'additionalChargeAmount', class: Google::Apis::ContentV2sandbox::Amount, decorator: Google::Apis::ContentV2sandbox::Amount::Representation
collection :additional_charge_promotions, as: 'additionalChargePromotions', class: Google::Apis::ContentV2sandbox::Promotion, decorator: Google::Apis::ContentV2sandbox::Promotion::Representation
property :type, as: 'type'
end
end
class UnitInvoiceTaxLine
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :tax_amount, as: 'taxAmount', class: Google::Apis::ContentV2sandbox::Price, decorator: Google::Apis::ContentV2sandbox::Price::Representation
property :tax_name, as: 'taxName'
property :tax_type, as: 'taxType'
end
end
end
end
end

View File

@ -52,6 +52,248 @@ module Google
@batch_path = 'batch/content/v2sandbox'
end
# Creates a charge invoice for a shipment group, and triggers a charge capture
# for non-facilitated payment orders.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order.
# @param [Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceRequest] orderinvoices_create_charge_invoice_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def createchargeinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_charge_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
command.request_representation = Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceRequest::Representation
command.request_object = orderinvoices_create_charge_invoice_request_object
command.response_representation = Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceResponse::Representation
command.response_class = Google::Apis::ContentV2sandbox::OrderinvoicesCreateChargeInvoiceResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Creates a refund invoice for one or more shipment groups, and triggers a
# refund for non-facilitated payment orders.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order.
# @param [Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceRequest] orderinvoices_create_refund_invoice_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def createrefundinvoice_orderinvoice(merchant_id, order_id, orderinvoices_create_refund_invoice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
command.request_representation = Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceRequest::Representation
command.request_object = orderinvoices_create_refund_invoice_request_object
command.response_representation = Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceResponse::Representation
command.response_class = Google::Apis::ContentV2sandbox::OrderinvoicesCreateRefundInvoiceResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Notify about successfully authorizing user's payment method for a given amount.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for for which payment authorization is happening.
# @param [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedRequest] orderpayments_notify_auth_approved_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def notifyauthapproved_orderpayment(merchant_id, order_id, orderpayments_notify_auth_approved_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthApproved', options)
command.request_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedRequest::Representation
command.request_object = orderpayments_notify_auth_approved_request_object
command.response_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedResponse::Representation
command.response_class = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthApprovedResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Notify about failure to authorize user's payment method.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for which payment authorization was declined.
# @param [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedRequest] orderpayments_notify_auth_declined_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def notifyauthdeclined_orderpayment(merchant_id, order_id, orderpayments_notify_auth_declined_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthDeclined', options)
command.request_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedRequest::Representation
command.request_object = orderpayments_notify_auth_declined_request_object
command.response_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedResponse::Representation
command.response_class = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyAuthDeclinedResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Notify about charge on user's selected payments method.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for which charge is happening.
# @param [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeRequest] orderpayments_notify_charge_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyCharge', options)
command.request_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeRequest::Representation
command.request_object = orderpayments_notify_charge_request_object
command.response_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeResponse::Representation
command.response_class = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyChargeResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Notify about refund on user's selected payments method.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client
# account.
# @param [String] order_id
# The ID of the order for which charge is happening.
# @param [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundRequest] orderpayments_notify_refund_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyRefund', options)
command.request_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundRequest::Representation
command.request_object = orderpayments_notify_refund_request_object
command.response_representation = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundResponse::Representation
command.response_class = Google::Apis::ContentV2sandbox::OrderpaymentsNotifyRefundResponse
command.params['merchantId'] = merchant_id unless merchant_id.nil?
command.params['orderId'] = order_id unless order_id.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
command.query['userIp'] = user_ip unless user_ip.nil?
execute_or_queue_command(command, &block)
end
# Marks an order as acknowledged.
# @param [Fixnum] merchant_id
# The ID of the account that manages the order. This cannot be a multi-client

View File

@ -31,7 +31,7 @@ module Google
# @see https://developers.google.com/apps-script/api/
module ScriptV1
VERSION = 'V1'
REVISION = '20180516'
REVISION = '20180530'
# Read, send, delete, and manage your email
AUTH_SCOPE = 'https://mail.google.com/'

View File

@ -895,12 +895,12 @@ module Google
end
end
# A representation of a execution of an Apps Script function that is started
# using run. The execution response does not arrive until the function finishes
# executing. The maximum execution runtime is listed in the [Apps Script quotas
# guide](/apps-script/guides/services/quotas#current_limitations). <p>After the
# execution is started, it can have one of four outcomes:</p> <ul> <li> If the
# script function returns successfully, the
# A representation of an execution of an Apps Script function started with run.
# The execution response does not arrive until the function finishes executing.
# The maximum execution runtime is listed in the [Apps Script quotas guide](/
# apps-script/guides/services/quotas#current_limitations). <p>After execution
# has started, it can have one of four outcomes:</p> <ul> <li> If the script
# function returns successfully, the
# response field contains an
# ExecutionResponse object
# with the function's return value in the object's `result` field.</li>
@ -1057,8 +1057,7 @@ module Google
attr_accessor :details
# A developer-facing error message, which is in English. Any user-facing error
# message is localized and sent in the [google.rpc.Status.details](google.rpc.
# Status.details) field, or localized by the client.
# message is localized and sent in the details field, or localized by the client.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1
VERSION = 'V1'
REVISION = '20180502'
REVISION = '20180530'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -587,310 +587,6 @@ module Google
end
end
# Video annotation progress. Included in the `metadata`
# field of the `Operation` returned by the `GetOperation`
# call of the `google::longrunning::Operations` service.
class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
include Google::Apis::Core::Hashable
# Progress metadata for all videos specified in `AnnotateVideoRequest`.
# Corresponds to the JSON property `annotationProgress`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>]
attr_accessor :annotation_progress
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotation_progress = args[:annotation_progress] if args.key?(:annotation_progress)
end
end
# Video annotation response. Included in the `response`
# field of the `Operation` returned by the `GetOperation`
# call of the `google::longrunning::Operations` service.
class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
include Google::Apis::Core::Hashable
# Annotation results for all videos specified in `AnnotateVideoRequest`.
# Corresponds to the JSON property `annotationResults`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>]
attr_accessor :annotation_results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotation_results = args[:annotation_results] if args.key?(:annotation_results)
end
end
# Label annotation.
class GoogleCloudVideointelligenceV1beta1LabelAnnotation
include Google::Apis::Core::Hashable
# Textual description, e.g. `Fixed-gear bicycle`.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Language code for `description` in BCP-47 format.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Where the label was detected and with what confidence.
# Corresponds to the JSON property `locations`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1LabelLocation>]
attr_accessor :locations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@language_code = args[:language_code] if args.key?(:language_code)
@locations = args[:locations] if args.key?(:locations)
end
end
# Label location.
class GoogleCloudVideointelligenceV1beta1LabelLocation
include Google::Apis::Core::Hashable
# Confidence that the label is accurate. Range: [0, 1].
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# Label level.
# Corresponds to the JSON property `level`
# @return [String]
attr_accessor :level
# Video segment.
# Corresponds to the JSON property `segment`
# @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoSegment]
attr_accessor :segment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@confidence = args[:confidence] if args.key?(:confidence)
@level = args[:level] if args.key?(:level)
@segment = args[:segment] if args.key?(:segment)
end
end
# Safe search annotation (based on per-frame visual signals only).
# If no unsafe content has been detected in a frame, no annotations
# are present for that frame. If only some types of unsafe content
# have been detected in a frame, the likelihood is set to `UNKNOWN`
# for all other types of unsafe content.
class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
include Google::Apis::Core::Hashable
# Likelihood of adult content.
# Corresponds to the JSON property `adult`
# @return [String]
attr_accessor :adult
# Likelihood of medical content.
# Corresponds to the JSON property `medical`
# @return [String]
attr_accessor :medical
# Likelihood of racy content.
# Corresponds to the JSON property `racy`
# @return [String]
attr_accessor :racy
# Likelihood that an obvious modification was made to the original
# version to make it appear funny or offensive.
# Corresponds to the JSON property `spoof`
# @return [String]
attr_accessor :spoof
# Video time offset in microseconds.
# Corresponds to the JSON property `timeOffset`
# @return [Fixnum]
attr_accessor :time_offset
# Likelihood of violent content.
# Corresponds to the JSON property `violent`
# @return [String]
attr_accessor :violent
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@adult = args[:adult] if args.key?(:adult)
@medical = args[:medical] if args.key?(:medical)
@racy = args[:racy] if args.key?(:racy)
@spoof = args[:spoof] if args.key?(:spoof)
@time_offset = args[:time_offset] if args.key?(:time_offset)
@violent = args[:violent] if args.key?(:violent)
end
end
# Annotation progress for a single video.
class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
include Google::Apis::Core::Hashable
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
# Approximate percentage processed thus far.
# Guaranteed to be 100 when fully processed.
# Corresponds to the JSON property `progressPercent`
# @return [Fixnum]
attr_accessor :progress_percent
# Time when the request was received.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Time of the most recent update.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@input_uri = args[:input_uri] if args.key?(:input_uri)
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
@start_time = args[:start_time] if args.key?(:start_time)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Annotation results for a single video.
class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
include Google::Apis::Core::Hashable
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error`
# @return [Google::Apis::VideointelligenceV1::GoogleRpcStatus]
attr_accessor :error
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
# Label annotations. There is exactly one element for each unique label.
# Corresponds to the JSON property `labelAnnotations`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1LabelAnnotation>]
attr_accessor :label_annotations
# Safe search annotations.
# Corresponds to the JSON property `safeSearchAnnotations`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation>]
attr_accessor :safe_search_annotations
# Shot annotations. Each shot is represented as a video segment.
# Corresponds to the JSON property `shotAnnotations`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoSegment>]
attr_accessor :shot_annotations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error = args[:error] if args.key?(:error)
@input_uri = args[:input_uri] if args.key?(:input_uri)
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
@safe_search_annotations = args[:safe_search_annotations] if args.key?(:safe_search_annotations)
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
end
end
# Video segment.
class GoogleCloudVideointelligenceV1beta1VideoSegment
include Google::Apis::Core::Hashable
# End offset in microseconds (inclusive). Unset means 0.
# Corresponds to the JSON property `endTimeOffset`
# @return [Fixnum]
attr_accessor :end_time_offset
# Start offset in microseconds (inclusive). Unset means 0.
# Corresponds to the JSON property `startTimeOffset`
# @return [Fixnum]
attr_accessor :start_time_offset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time_offset = args[:end_time_offset] if args.key?(:end_time_offset)
@start_time_offset = args[:start_time_offset] if args.key?(:start_time_offset)
end
end
# Video annotation progress. Included in the `metadata`
# field of the `Operation` returned by the `GetOperation`
# call of the `google::longrunning::Operations` service.
@ -1311,31 +1007,6 @@ module Google
end
end
# Emotion attribute.
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
include Google::Apis::Core::Hashable
# Emotion entry.
# Corresponds to the JSON property `emotion`
# @return [String]
attr_accessor :emotion
# Confidence score.
# Corresponds to the JSON property `score`
# @return [Float]
attr_accessor :score
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@emotion = args[:emotion] if args.key?(:emotion)
@score = args[:score] if args.key?(:score)
end
end
# Detected entity from video analysis.
class GoogleCloudVideointelligenceV1p1beta1Entity
include Google::Apis::Core::Hashable
@ -1416,105 +1087,6 @@ module Google
end
end
# Face detection annotation.
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
include Google::Apis::Core::Hashable
# All video frames where a face was detected.
# Corresponds to the JSON property `frames`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame>]
attr_accessor :frames
# All video segments where a face was detected.
# Corresponds to the JSON property `segments`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceSegment>]
attr_accessor :segments
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@frames = args[:frames] if args.key?(:frames)
@segments = args[:segments] if args.key?(:segments)
end
end
# Face detection attribute.
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
include Google::Apis::Core::Hashable
# Emotion attributes.
# Corresponds to the JSON property `emotions`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute>]
attr_accessor :emotions
# Normalized bounding box.
# The normalized vertex coordinates are relative to the original image.
# Range: [0, 1].
# Corresponds to the JSON property `normalizedBoundingBox`
# @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox]
attr_accessor :normalized_bounding_box
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@emotions = args[:emotions] if args.key?(:emotions)
@normalized_bounding_box = args[:normalized_bounding_box] if args.key?(:normalized_bounding_box)
end
end
# Video frame level annotation results for face detection.
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
include Google::Apis::Core::Hashable
# Face attributes in a frame.
# There can be more than one attributes if the same face is detected in
# multiple locations within the current frame.
# Corresponds to the JSON property `attributes`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute>]
attr_accessor :attributes
# Time-offset, relative to the beginning of the video,
# corresponding to the video frame for this location.
# Corresponds to the JSON property `timeOffset`
# @return [String]
attr_accessor :time_offset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@attributes = args[:attributes] if args.key?(:attributes)
@time_offset = args[:time_offset] if args.key?(:time_offset)
end
end
# Video segment level annotation results for face detection.
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
include Google::Apis::Core::Hashable
# Video segment.
# Corresponds to the JSON property `segment`
# @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1VideoSegment]
attr_accessor :segment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@segment = args[:segment] if args.key?(:segment)
end
end
# Label annotation.
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
include Google::Apis::Core::Hashable
@ -1606,45 +1178,6 @@ module Google
end
end
# Normalized bounding box.
# The normalized vertex coordinates are relative to the original image.
# Range: [0, 1].
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
include Google::Apis::Core::Hashable
# Bottom Y coordinate.
# Corresponds to the JSON property `bottom`
# @return [Float]
attr_accessor :bottom
# Left X coordinate.
# Corresponds to the JSON property `left`
# @return [Float]
attr_accessor :left
# Right X coordinate.
# Corresponds to the JSON property `right`
# @return [Float]
attr_accessor :right
# Top Y coordinate.
# Corresponds to the JSON property `top`
# @return [Float]
attr_accessor :top
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bottom = args[:bottom] if args.key?(:bottom)
@left = args[:left] if args.key?(:left)
@right = args[:right] if args.key?(:right)
@top = args[:top] if args.key?(:top)
end
end
# Alternative hypotheses (a.k.a. n-best list).
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
include Google::Apis::Core::Hashable
@ -1796,11 +1329,6 @@ module Google
# @return [Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation]
attr_accessor :explicit_annotation
# Face detection annotations.
# Corresponds to the JSON property `faceDetectionAnnotations`
# @return [Array<Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation>]
attr_accessor :face_detection_annotations
# Label annotations on frame level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `frameLabelAnnotations`
@ -1843,7 +1371,6 @@ module Google
def update!(**args)
@error = args[:error] if args.key?(:error)
@explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation)
@face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations)
@frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
@input_uri = args[:input_uri] if args.key?(:input_uri)
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)

View File

@ -118,54 +118,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1LabelAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1LabelLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1VideoSegment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -244,12 +196,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1Entity
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -268,30 +214,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -310,12 +232,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -541,87 +457,6 @@ module Google
end
end
class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress::Representation
end
end
class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults::Representation
end
end
class GoogleCloudVideointelligenceV1beta1LabelAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :language_code, as: 'languageCode'
collection :locations, as: 'locations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1LabelLocation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1LabelLocation::Representation
end
end
class GoogleCloudVideointelligenceV1beta1LabelLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :confidence, as: 'confidence'
property :level, as: 'level'
property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoSegment::Representation
end
end
class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :adult, as: 'adult'
property :medical, as: 'medical'
property :racy, as: 'racy'
property :spoof, as: 'spoof'
property :time_offset, :numeric_string => true, as: 'timeOffset'
property :violent, as: 'violent'
end
end
class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :input_uri, as: 'inputUri'
property :progress_percent, as: 'progressPercent'
property :start_time, as: 'startTime'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VideointelligenceV1::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1::GoogleRpcStatus::Representation
property :input_uri, as: 'inputUri'
collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1LabelAnnotation::Representation
collection :safe_search_annotations, as: 'safeSearchAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation::Representation
collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1beta1VideoSegment::Representation
end
end
class GoogleCloudVideointelligenceV1beta1VideoSegment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time_offset, :numeric_string => true, as: 'endTimeOffset'
property :start_time_offset, :numeric_string => true, as: 'startTimeOffset'
end
end
class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -747,14 +582,6 @@ module Google
end
end
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :emotion, as: 'emotion'
property :score, as: 'score'
end
end
class GoogleCloudVideointelligenceV1p1beta1Entity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -780,43 +607,6 @@ module Google
end
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame::Representation
collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceSegment::Representation
end
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :emotions, as: 'emotions', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute::Representation
property :normalized_bounding_box, as: 'normalizedBoundingBox', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox::Representation
end
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :attributes, as: 'attributes', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute::Representation
property :time_offset, as: 'timeOffset'
end
end
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation
end
end
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -848,16 +638,6 @@ module Google
end
end
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bottom, as: 'bottom'
property :left, as: 'left'
property :right, as: 'right'
property :top, as: 'top'
end
end
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -893,8 +673,6 @@ module Google
property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation::Representation
collection :face_detection_annotations, as: 'faceDetectionAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation::Representation
collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation
property :input_uri, as: 'inputUri'

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/video-intelligence/docs/
module VideointelligenceV1beta2
VERSION = 'V1beta2'
REVISION = '20180502'
REVISION = '20180530'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -400,310 +400,6 @@ module Google
end
end
# Video annotation progress. Included in the `metadata`
# field of the `Operation` returned by the `GetOperation`
# call of the `google::longrunning::Operations` service.
class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
include Google::Apis::Core::Hashable
# Progress metadata for all videos specified in `AnnotateVideoRequest`.
# Corresponds to the JSON property `annotationProgress`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress>]
attr_accessor :annotation_progress
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotation_progress = args[:annotation_progress] if args.key?(:annotation_progress)
end
end
# Video annotation response. Included in the `response`
# field of the `Operation` returned by the `GetOperation`
# call of the `google::longrunning::Operations` service.
class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
include Google::Apis::Core::Hashable
# Annotation results for all videos specified in `AnnotateVideoRequest`.
# Corresponds to the JSON property `annotationResults`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults>]
attr_accessor :annotation_results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@annotation_results = args[:annotation_results] if args.key?(:annotation_results)
end
end
# Label annotation.
class GoogleCloudVideointelligenceV1beta1LabelAnnotation
include Google::Apis::Core::Hashable
# Textual description, e.g. `Fixed-gear bicycle`.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Language code for `description` in BCP-47 format.
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Where the label was detected and with what confidence.
# Corresponds to the JSON property `locations`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1LabelLocation>]
attr_accessor :locations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@language_code = args[:language_code] if args.key?(:language_code)
@locations = args[:locations] if args.key?(:locations)
end
end
# Label location.
class GoogleCloudVideointelligenceV1beta1LabelLocation
include Google::Apis::Core::Hashable
# Confidence that the label is accurate. Range: [0, 1].
# Corresponds to the JSON property `confidence`
# @return [Float]
attr_accessor :confidence
# Label level.
# Corresponds to the JSON property `level`
# @return [String]
attr_accessor :level
# Video segment.
# Corresponds to the JSON property `segment`
# @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment]
attr_accessor :segment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@confidence = args[:confidence] if args.key?(:confidence)
@level = args[:level] if args.key?(:level)
@segment = args[:segment] if args.key?(:segment)
end
end
# Safe search annotation (based on per-frame visual signals only).
# If no unsafe content has been detected in a frame, no annotations
# are present for that frame. If only some types of unsafe content
# have been detected in a frame, the likelihood is set to `UNKNOWN`
# for all other types of unsafe content.
class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
include Google::Apis::Core::Hashable
# Likelihood of adult content.
# Corresponds to the JSON property `adult`
# @return [String]
attr_accessor :adult
# Likelihood of medical content.
# Corresponds to the JSON property `medical`
# @return [String]
attr_accessor :medical
# Likelihood of racy content.
# Corresponds to the JSON property `racy`
# @return [String]
attr_accessor :racy
# Likelihood that an obvious modification was made to the original
# version to make it appear funny or offensive.
# Corresponds to the JSON property `spoof`
# @return [String]
attr_accessor :spoof
# Video time offset in microseconds.
# Corresponds to the JSON property `timeOffset`
# @return [Fixnum]
attr_accessor :time_offset
# Likelihood of violent content.
# Corresponds to the JSON property `violent`
# @return [String]
attr_accessor :violent
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@adult = args[:adult] if args.key?(:adult)
@medical = args[:medical] if args.key?(:medical)
@racy = args[:racy] if args.key?(:racy)
@spoof = args[:spoof] if args.key?(:spoof)
@time_offset = args[:time_offset] if args.key?(:time_offset)
@violent = args[:violent] if args.key?(:violent)
end
end
# Annotation progress for a single video.
class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
include Google::Apis::Core::Hashable
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
# Approximate percentage processed thus far.
# Guaranteed to be 100 when fully processed.
# Corresponds to the JSON property `progressPercent`
# @return [Fixnum]
attr_accessor :progress_percent
# Time when the request was received.
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Time of the most recent update.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@input_uri = args[:input_uri] if args.key?(:input_uri)
@progress_percent = args[:progress_percent] if args.key?(:progress_percent)
@start_time = args[:start_time] if args.key?(:start_time)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Annotation results for a single video.
class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
include Google::Apis::Core::Hashable
# The `Status` type defines a logical error model that is suitable for different
# programming environments, including REST APIs and RPC APIs. It is used by
# [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error message,
# and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# Corresponds to the JSON property `error`
# @return [Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus]
attr_accessor :error
# Video file location in
# [Google Cloud Storage](https://cloud.google.com/storage/).
# Corresponds to the JSON property `inputUri`
# @return [String]
attr_accessor :input_uri
# Label annotations. There is exactly one element for each unique label.
# Corresponds to the JSON property `labelAnnotations`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1LabelAnnotation>]
attr_accessor :label_annotations
# Safe search annotations.
# Corresponds to the JSON property `safeSearchAnnotations`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation>]
attr_accessor :safe_search_annotations
# Shot annotations. Each shot is represented as a video segment.
# Corresponds to the JSON property `shotAnnotations`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment>]
attr_accessor :shot_annotations
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@error = args[:error] if args.key?(:error)
@input_uri = args[:input_uri] if args.key?(:input_uri)
@label_annotations = args[:label_annotations] if args.key?(:label_annotations)
@safe_search_annotations = args[:safe_search_annotations] if args.key?(:safe_search_annotations)
@shot_annotations = args[:shot_annotations] if args.key?(:shot_annotations)
end
end
# Video segment.
class GoogleCloudVideointelligenceV1beta1VideoSegment
include Google::Apis::Core::Hashable
# End offset in microseconds (inclusive). Unset means 0.
# Corresponds to the JSON property `endTimeOffset`
# @return [Fixnum]
attr_accessor :end_time_offset
# Start offset in microseconds (inclusive). Unset means 0.
# Corresponds to the JSON property `startTimeOffset`
# @return [Fixnum]
attr_accessor :start_time_offset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@end_time_offset = args[:end_time_offset] if args.key?(:end_time_offset)
@start_time_offset = args[:start_time_offset] if args.key?(:start_time_offset)
end
end
# Video annotation progress. Included in the `metadata`
# field of the `Operation` returned by the `GetOperation`
# call of the `google::longrunning::Operations` service.
@ -1311,31 +1007,6 @@ module Google
end
end
# Emotion attribute.
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
include Google::Apis::Core::Hashable
# Emotion entry.
# Corresponds to the JSON property `emotion`
# @return [String]
attr_accessor :emotion
# Confidence score.
# Corresponds to the JSON property `score`
# @return [Float]
attr_accessor :score
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@emotion = args[:emotion] if args.key?(:emotion)
@score = args[:score] if args.key?(:score)
end
end
# Detected entity from video analysis.
class GoogleCloudVideointelligenceV1p1beta1Entity
include Google::Apis::Core::Hashable
@ -1416,105 +1087,6 @@ module Google
end
end
# Face detection annotation.
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
include Google::Apis::Core::Hashable
# All video frames where a face was detected.
# Corresponds to the JSON property `frames`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame>]
attr_accessor :frames
# All video segments where a face was detected.
# Corresponds to the JSON property `segments`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceSegment>]
attr_accessor :segments
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@frames = args[:frames] if args.key?(:frames)
@segments = args[:segments] if args.key?(:segments)
end
end
# Face detection attribute.
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
include Google::Apis::Core::Hashable
# Emotion attributes.
# Corresponds to the JSON property `emotions`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute>]
attr_accessor :emotions
# Normalized bounding box.
# The normalized vertex coordinates are relative to the original image.
# Range: [0, 1].
# Corresponds to the JSON property `normalizedBoundingBox`
# @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox]
attr_accessor :normalized_bounding_box
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@emotions = args[:emotions] if args.key?(:emotions)
@normalized_bounding_box = args[:normalized_bounding_box] if args.key?(:normalized_bounding_box)
end
end
# Video frame level annotation results for face detection.
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
include Google::Apis::Core::Hashable
# Face attributes in a frame.
# There can be more than one attributes if the same face is detected in
# multiple locations within the current frame.
# Corresponds to the JSON property `attributes`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute>]
attr_accessor :attributes
# Time-offset, relative to the beginning of the video,
# corresponding to the video frame for this location.
# Corresponds to the JSON property `timeOffset`
# @return [String]
attr_accessor :time_offset
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@attributes = args[:attributes] if args.key?(:attributes)
@time_offset = args[:time_offset] if args.key?(:time_offset)
end
end
# Video segment level annotation results for face detection.
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
include Google::Apis::Core::Hashable
# Video segment.
# Corresponds to the JSON property `segment`
# @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1VideoSegment]
attr_accessor :segment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@segment = args[:segment] if args.key?(:segment)
end
end
# Label annotation.
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
include Google::Apis::Core::Hashable
@ -1606,45 +1178,6 @@ module Google
end
end
# Normalized bounding box.
# The normalized vertex coordinates are relative to the original image.
# Range: [0, 1].
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
include Google::Apis::Core::Hashable
# Bottom Y coordinate.
# Corresponds to the JSON property `bottom`
# @return [Float]
attr_accessor :bottom
# Left X coordinate.
# Corresponds to the JSON property `left`
# @return [Float]
attr_accessor :left
# Right X coordinate.
# Corresponds to the JSON property `right`
# @return [Float]
attr_accessor :right
# Top Y coordinate.
# Corresponds to the JSON property `top`
# @return [Float]
attr_accessor :top
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bottom = args[:bottom] if args.key?(:bottom)
@left = args[:left] if args.key?(:left)
@right = args[:right] if args.key?(:right)
@top = args[:top] if args.key?(:top)
end
end
# Alternative hypotheses (a.k.a. n-best list).
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
include Google::Apis::Core::Hashable
@ -1796,11 +1329,6 @@ module Google
# @return [Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation]
attr_accessor :explicit_annotation
# Face detection annotations.
# Corresponds to the JSON property `faceDetectionAnnotations`
# @return [Array<Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation>]
attr_accessor :face_detection_annotations
# Label annotations on frame level.
# There is exactly one element for each unique label.
# Corresponds to the JSON property `frameLabelAnnotations`
@ -1843,7 +1371,6 @@ module Google
def update!(**args)
@error = args[:error] if args.key?(:error)
@explicit_annotation = args[:explicit_annotation] if args.key?(:explicit_annotation)
@face_detection_annotations = args[:face_detection_annotations] if args.key?(:face_detection_annotations)
@frame_label_annotations = args[:frame_label_annotations] if args.key?(:frame_label_annotations)
@input_uri = args[:input_uri] if args.key?(:input_uri)
@segment_label_annotations = args[:segment_label_annotations] if args.key?(:segment_label_annotations)

View File

@ -88,54 +88,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1LabelAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1LabelLocation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta1VideoSegment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -244,12 +196,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1Entity
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -268,30 +214,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -310,12 +232,6 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -473,87 +389,6 @@ module Google
end
end
class GoogleCloudVideointelligenceV1beta1AnnotateVideoProgress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotation_progress, as: 'annotationProgress', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress::Representation
end
end
class GoogleCloudVideointelligenceV1beta1AnnotateVideoResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :annotation_results, as: 'annotationResults', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoAnnotationResults::Representation
end
end
class GoogleCloudVideointelligenceV1beta1LabelAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :description, as: 'description'
property :language_code, as: 'languageCode'
collection :locations, as: 'locations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1LabelLocation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1LabelLocation::Representation
end
end
class GoogleCloudVideointelligenceV1beta1LabelLocation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :confidence, as: 'confidence'
property :level, as: 'level'
property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment::Representation
end
end
class GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :adult, as: 'adult'
property :medical, as: 'medical'
property :racy, as: 'racy'
property :spoof, as: 'spoof'
property :time_offset, :numeric_string => true, as: 'timeOffset'
property :violent, as: 'violent'
end
end
class GoogleCloudVideointelligenceV1beta1VideoAnnotationProgress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :input_uri, as: 'inputUri'
property :progress_percent, as: 'progressPercent'
property :start_time, as: 'startTime'
property :update_time, as: 'updateTime'
end
end
class GoogleCloudVideointelligenceV1beta1VideoAnnotationResults
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :error, as: 'error', class: Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus, decorator: Google::Apis::VideointelligenceV1beta2::GoogleRpcStatus::Representation
property :input_uri, as: 'inputUri'
collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1LabelAnnotation::Representation
collection :safe_search_annotations, as: 'safeSearchAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1SafeSearchAnnotation::Representation
collection :shot_annotations, as: 'shotAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment::Representation
end
end
class GoogleCloudVideointelligenceV1beta1VideoSegment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :end_time_offset, :numeric_string => true, as: 'endTimeOffset'
property :start_time_offset, :numeric_string => true, as: 'startTimeOffset'
end
end
class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -729,14 +564,6 @@ module Google
end
end
class GoogleCloudVideointelligenceV1p1beta1EmotionAttribute
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :emotion, as: 'emotion'
property :score, as: 'score'
end
end
class GoogleCloudVideointelligenceV1p1beta1Entity
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -762,43 +589,6 @@ module Google
end
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :frames, as: 'frames', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame::Representation
collection :segments, as: 'segments', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceSegment::Representation
end
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :emotions, as: 'emotions', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1EmotionAttribute::Representation
property :normalized_bounding_box, as: 'normalizedBoundingBox', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox::Representation
end
end
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionFrame
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :attributes, as: 'attributes', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAttribute::Representation
property :time_offset, as: 'timeOffset'
end
end
class GoogleCloudVideointelligenceV1p1beta1FaceSegment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :segment, as: 'segment', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1VideoSegment, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1VideoSegment::Representation
end
end
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -830,16 +620,6 @@ module Google
end
end
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bottom, as: 'bottom'
property :left, as: 'left'
property :right, as: 'right'
property :top, as: 'top'
end
end
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -875,8 +655,6 @@ module Google
property :explicit_annotation, as: 'explicitAnnotation', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation::Representation
collection :face_detection_annotations, as: 'faceDetectionAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation::Representation
collection :frame_label_annotations, as: 'frameLabelAnnotations', class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation, decorator: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::Representation
property :input_uri, as: 'inputUri'