google-api-client 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  4. data/generated/google/apis/androidmanagement_v1/classes.rb +1 -2
  5. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  6. data/generated/google/apis/androidpublisher_v2/classes.rb +1 -2
  7. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  8. data/generated/google/apis/androidpublisher_v3/classes.rb +2 -3
  9. data/generated/google/apis/appengine_v1.rb +1 -1
  10. data/generated/google/apis/appengine_v1/classes.rb +59 -1
  11. data/generated/google/apis/appengine_v1/representations.rb +18 -0
  12. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  13. data/generated/google/apis/cloudtasks_v2beta2/service.rb +0 -8
  14. data/generated/google/apis/compute_alpha.rb +1 -1
  15. data/generated/google/apis/compute_alpha/classes.rb +97 -12
  16. data/generated/google/apis/compute_alpha/representations.rb +23 -0
  17. data/generated/google/apis/compute_alpha/service.rb +41 -1
  18. data/generated/google/apis/compute_beta.rb +1 -1
  19. data/generated/google/apis/compute_beta/classes.rb +1616 -43
  20. data/generated/google/apis/compute_beta/representations.rb +685 -20
  21. data/generated/google/apis/compute_beta/service.rb +1286 -0
  22. data/generated/google/apis/compute_v1.rb +1 -1
  23. data/generated/google/apis/compute_v1/classes.rb +184 -3
  24. data/generated/google/apis/compute_v1/representations.rb +43 -0
  25. data/generated/google/apis/compute_v1/service.rb +108 -0
  26. data/generated/google/apis/content_v2.rb +1 -1
  27. data/generated/google/apis/content_v2/classes.rb +805 -102
  28. data/generated/google/apis/content_v2/representations.rb +393 -26
  29. data/generated/google/apis/content_v2/service.rb +242 -0
  30. data/generated/google/apis/content_v2sandbox.rb +1 -1
  31. data/generated/google/apis/content_v2sandbox/classes.rb +703 -0
  32. data/generated/google/apis/content_v2sandbox/representations.rb +367 -0
  33. data/generated/google/apis/content_v2sandbox/service.rb +242 -0
  34. data/generated/google/apis/dlp_v2.rb +1 -1
  35. data/generated/google/apis/dlp_v2/classes.rb +280 -2
  36. data/generated/google/apis/dlp_v2/representations.rb +120 -0
  37. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  38. data/generated/google/apis/genomics_v2alpha1/classes.rb +35 -0
  39. data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
  40. data/generated/google/apis/logging_v2.rb +1 -1
  41. data/generated/google/apis/logging_v2/classes.rb +2 -2
  42. data/generated/google/apis/monitoring_v3.rb +1 -1
  43. data/generated/google/apis/monitoring_v3/classes.rb +7 -0
  44. data/generated/google/apis/monitoring_v3/representations.rb +2 -0
  45. data/generated/google/apis/monitoring_v3/service.rb +5 -3
  46. data/generated/google/apis/pagespeedonline_v4.rb +1 -1
  47. data/generated/google/apis/pubsub_v1.rb +1 -1
  48. data/generated/google/apis/pubsub_v1/classes.rb +0 -8
  49. data/generated/google/apis/pubsub_v1/service.rb +4 -8
  50. data/generated/google/apis/script_v1.rb +1 -1
  51. data/generated/google/apis/script_v1/classes.rb +7 -8
  52. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  53. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -27
  54. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -15
  55. data/generated/google/apis/serviceuser_v1.rb +1 -1
  56. data/generated/google/apis/serviceuser_v1/classes.rb +0 -27
  57. data/generated/google/apis/serviceuser_v1/representations.rb +0 -15
  58. data/generated/google/apis/sheets_v4.rb +1 -1
  59. data/generated/google/apis/sheets_v4/service.rb +2 -1
  60. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  61. data/generated/google/apis/tpu_v1.rb +34 -0
  62. data/generated/google/apis/tpu_v1/classes.rb +736 -0
  63. data/generated/google/apis/tpu_v1/representations.rb +316 -0
  64. data/generated/google/apis/tpu_v1/service.rb +687 -0
  65. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  66. data/generated/google/apis/tpu_v1alpha1/classes.rb +26 -0
  67. data/generated/google/apis/tpu_v1alpha1/representations.rb +15 -0
  68. data/generated/google/apis/videointelligence_v1.rb +1 -1
  69. data/generated/google/apis/videointelligence_v1/classes.rb +0 -473
  70. data/generated/google/apis/videointelligence_v1/representations.rb +0 -222
  71. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  72. data/generated/google/apis/videointelligence_v1beta2/classes.rb +0 -473
  73. data/generated/google/apis/videointelligence_v1beta2/representations.rb +0 -222
  74. data/lib/google/apis/version.rb +1 -1
  75. metadata +6 -6
  76. data/generated/google/apis/photoslibrary_v1.rb +0 -49
  77. data/generated/google/apis/photoslibrary_v1/classes.rb +0 -1330
  78. data/generated/google/apis/photoslibrary_v1/representations.rb +0 -625
  79. data/generated/google/apis/photoslibrary_v1/service.rb +0 -399
@@ -1626,6 +1626,248 @@ module Google
1626
1626
  execute_or_queue_command(command, &block)
1627
1627
  end
1628
1628
 
1629
+ # Creates a charge invoice for a shipment group, and triggers a charge capture
1630
+ # for non-facilitated payment orders.
1631
+ # @param [Fixnum] merchant_id
1632
+ # The ID of the account that manages the order. This cannot be a multi-client
1633
+ # account.
1634
+ # @param [String] order_id
1635
+ # The ID of the order.
1636
+ # @param [Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceRequest] orderinvoices_create_charge_invoice_request_object
1637
+ # @param [String] fields
1638
+ # Selector specifying which fields to include in a partial response.
1639
+ # @param [String] quota_user
1640
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1641
+ # characters.
1642
+ # @param [String] user_ip
1643
+ # Deprecated. Please use quotaUser instead.
1644
+ # @param [Google::Apis::RequestOptions] options
1645
+ # Request-specific options
1646
+ #
1647
+ # @yield [result, err] Result & error if block supplied
1648
+ # @yieldparam result [Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse] parsed result object
1649
+ # @yieldparam err [StandardError] error object if request failed
1650
+ #
1651
+ # @return [Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse]
1652
+ #
1653
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1654
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1655
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1656
+ 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)
1657
+ command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createChargeInvoice', options)
1658
+ command.request_representation = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceRequest::Representation
1659
+ command.request_object = orderinvoices_create_charge_invoice_request_object
1660
+ command.response_representation = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse::Representation
1661
+ command.response_class = Google::Apis::ContentV2::OrderinvoicesCreateChargeInvoiceResponse
1662
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1663
+ command.params['orderId'] = order_id unless order_id.nil?
1664
+ command.query['fields'] = fields unless fields.nil?
1665
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1666
+ command.query['userIp'] = user_ip unless user_ip.nil?
1667
+ execute_or_queue_command(command, &block)
1668
+ end
1669
+
1670
+ # Creates a refund invoice for one or more shipment groups, and triggers a
1671
+ # refund for non-facilitated payment orders.
1672
+ # @param [Fixnum] merchant_id
1673
+ # The ID of the account that manages the order. This cannot be a multi-client
1674
+ # account.
1675
+ # @param [String] order_id
1676
+ # The ID of the order.
1677
+ # @param [Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceRequest] orderinvoices_create_refund_invoice_request_object
1678
+ # @param [String] fields
1679
+ # Selector specifying which fields to include in a partial response.
1680
+ # @param [String] quota_user
1681
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1682
+ # characters.
1683
+ # @param [String] user_ip
1684
+ # Deprecated. Please use quotaUser instead.
1685
+ # @param [Google::Apis::RequestOptions] options
1686
+ # Request-specific options
1687
+ #
1688
+ # @yield [result, err] Result & error if block supplied
1689
+ # @yieldparam result [Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse] parsed result object
1690
+ # @yieldparam err [StandardError] error object if request failed
1691
+ #
1692
+ # @return [Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse]
1693
+ #
1694
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1695
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1696
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1697
+ 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)
1698
+ command = make_simple_command(:post, '{merchantId}/orderinvoices/{orderId}/createRefundInvoice', options)
1699
+ command.request_representation = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceRequest::Representation
1700
+ command.request_object = orderinvoices_create_refund_invoice_request_object
1701
+ command.response_representation = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse::Representation
1702
+ command.response_class = Google::Apis::ContentV2::OrderinvoicesCreateRefundInvoiceResponse
1703
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1704
+ command.params['orderId'] = order_id unless order_id.nil?
1705
+ command.query['fields'] = fields unless fields.nil?
1706
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1707
+ command.query['userIp'] = user_ip unless user_ip.nil?
1708
+ execute_or_queue_command(command, &block)
1709
+ end
1710
+
1711
+ # Notify about successfully authorizing user's payment method for a given amount.
1712
+ # @param [Fixnum] merchant_id
1713
+ # The ID of the account that manages the order. This cannot be a multi-client
1714
+ # account.
1715
+ # @param [String] order_id
1716
+ # The ID of the order for for which payment authorization is happening.
1717
+ # @param [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedRequest] orderpayments_notify_auth_approved_request_object
1718
+ # @param [String] fields
1719
+ # Selector specifying which fields to include in a partial response.
1720
+ # @param [String] quota_user
1721
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1722
+ # characters.
1723
+ # @param [String] user_ip
1724
+ # Deprecated. Please use quotaUser instead.
1725
+ # @param [Google::Apis::RequestOptions] options
1726
+ # Request-specific options
1727
+ #
1728
+ # @yield [result, err] Result & error if block supplied
1729
+ # @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse] parsed result object
1730
+ # @yieldparam err [StandardError] error object if request failed
1731
+ #
1732
+ # @return [Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse]
1733
+ #
1734
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1735
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1736
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1737
+ 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)
1738
+ command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthApproved', options)
1739
+ command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedRequest::Representation
1740
+ command.request_object = orderpayments_notify_auth_approved_request_object
1741
+ command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse::Representation
1742
+ command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyAuthApprovedResponse
1743
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1744
+ command.params['orderId'] = order_id unless order_id.nil?
1745
+ command.query['fields'] = fields unless fields.nil?
1746
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1747
+ command.query['userIp'] = user_ip unless user_ip.nil?
1748
+ execute_or_queue_command(command, &block)
1749
+ end
1750
+
1751
+ # Notify about failure to authorize user's payment method.
1752
+ # @param [Fixnum] merchant_id
1753
+ # The ID of the account that manages the order. This cannot be a multi-client
1754
+ # account.
1755
+ # @param [String] order_id
1756
+ # The ID of the order for which payment authorization was declined.
1757
+ # @param [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedRequest] orderpayments_notify_auth_declined_request_object
1758
+ # @param [String] fields
1759
+ # Selector specifying which fields to include in a partial response.
1760
+ # @param [String] quota_user
1761
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1762
+ # characters.
1763
+ # @param [String] user_ip
1764
+ # Deprecated. Please use quotaUser instead.
1765
+ # @param [Google::Apis::RequestOptions] options
1766
+ # Request-specific options
1767
+ #
1768
+ # @yield [result, err] Result & error if block supplied
1769
+ # @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse] parsed result object
1770
+ # @yieldparam err [StandardError] error object if request failed
1771
+ #
1772
+ # @return [Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse]
1773
+ #
1774
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1775
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1776
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1777
+ 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)
1778
+ command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyAuthDeclined', options)
1779
+ command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedRequest::Representation
1780
+ command.request_object = orderpayments_notify_auth_declined_request_object
1781
+ command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse::Representation
1782
+ command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyAuthDeclinedResponse
1783
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1784
+ command.params['orderId'] = order_id unless order_id.nil?
1785
+ command.query['fields'] = fields unless fields.nil?
1786
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1787
+ command.query['userIp'] = user_ip unless user_ip.nil?
1788
+ execute_or_queue_command(command, &block)
1789
+ end
1790
+
1791
+ # Notify about charge on user's selected payments method.
1792
+ # @param [Fixnum] merchant_id
1793
+ # The ID of the account that manages the order. This cannot be a multi-client
1794
+ # account.
1795
+ # @param [String] order_id
1796
+ # The ID of the order for which charge is happening.
1797
+ # @param [Google::Apis::ContentV2::OrderpaymentsNotifyChargeRequest] orderpayments_notify_charge_request_object
1798
+ # @param [String] fields
1799
+ # Selector specifying which fields to include in a partial response.
1800
+ # @param [String] quota_user
1801
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1802
+ # characters.
1803
+ # @param [String] user_ip
1804
+ # Deprecated. Please use quotaUser instead.
1805
+ # @param [Google::Apis::RequestOptions] options
1806
+ # Request-specific options
1807
+ #
1808
+ # @yield [result, err] Result & error if block supplied
1809
+ # @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse] parsed result object
1810
+ # @yieldparam err [StandardError] error object if request failed
1811
+ #
1812
+ # @return [Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse]
1813
+ #
1814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1817
+ def notifycharge_orderpayment(merchant_id, order_id, orderpayments_notify_charge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1818
+ command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyCharge', options)
1819
+ command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyChargeRequest::Representation
1820
+ command.request_object = orderpayments_notify_charge_request_object
1821
+ command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse::Representation
1822
+ command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyChargeResponse
1823
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1824
+ command.params['orderId'] = order_id unless order_id.nil?
1825
+ command.query['fields'] = fields unless fields.nil?
1826
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1827
+ command.query['userIp'] = user_ip unless user_ip.nil?
1828
+ execute_or_queue_command(command, &block)
1829
+ end
1830
+
1831
+ # Notify about refund on user's selected payments method.
1832
+ # @param [Fixnum] merchant_id
1833
+ # The ID of the account that manages the order. This cannot be a multi-client
1834
+ # account.
1835
+ # @param [String] order_id
1836
+ # The ID of the order for which charge is happening.
1837
+ # @param [Google::Apis::ContentV2::OrderpaymentsNotifyRefundRequest] orderpayments_notify_refund_request_object
1838
+ # @param [String] fields
1839
+ # Selector specifying which fields to include in a partial response.
1840
+ # @param [String] quota_user
1841
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1842
+ # characters.
1843
+ # @param [String] user_ip
1844
+ # Deprecated. Please use quotaUser instead.
1845
+ # @param [Google::Apis::RequestOptions] options
1846
+ # Request-specific options
1847
+ #
1848
+ # @yield [result, err] Result & error if block supplied
1849
+ # @yieldparam result [Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse] parsed result object
1850
+ # @yieldparam err [StandardError] error object if request failed
1851
+ #
1852
+ # @return [Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse]
1853
+ #
1854
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1855
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1856
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1857
+ def notifyrefund_orderpayment(merchant_id, order_id, orderpayments_notify_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1858
+ command = make_simple_command(:post, '{merchantId}/orderpayments/{orderId}/notifyRefund', options)
1859
+ command.request_representation = Google::Apis::ContentV2::OrderpaymentsNotifyRefundRequest::Representation
1860
+ command.request_object = orderpayments_notify_refund_request_object
1861
+ command.response_representation = Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse::Representation
1862
+ command.response_class = Google::Apis::ContentV2::OrderpaymentsNotifyRefundResponse
1863
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1864
+ command.params['orderId'] = order_id unless order_id.nil?
1865
+ command.query['fields'] = fields unless fields.nil?
1866
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1867
+ command.query['userIp'] = user_ip unless user_ip.nil?
1868
+ execute_or_queue_command(command, &block)
1869
+ end
1870
+
1629
1871
  # Marks an order as acknowledged.
1630
1872
  # @param [Fixnum] merchant_id
1631
1873
  # The ID of the account that manages the order. This cannot be a multi-client
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/shopping-content
27
27
  module ContentV2sandbox
28
28
  VERSION = 'V2sandbox'
29
- REVISION = '20180523'
29
+ REVISION = '20180529'
30
30
 
31
31
  # Manage your product listings and accounts for Google Shopping
32
32
  AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
@@ -22,6 +22,31 @@ module Google
22
22
  module Apis
23
23
  module ContentV2sandbox
24
24
 
25
+ #
26
+ class Amount
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Value before taxes.
30
+ # Corresponds to the JSON property `pretax`
31
+ # @return [Google::Apis::ContentV2sandbox::Price]
32
+ attr_accessor :pretax
33
+
34
+ # Tax value.
35
+ # Corresponds to the JSON property `tax`
36
+ # @return [Google::Apis::ContentV2sandbox::Price]
37
+ attr_accessor :tax
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @pretax = args[:pretax] if args.key?(:pretax)
46
+ @tax = args[:tax] if args.key?(:tax)
47
+ end
48
+ end
49
+
25
50
  # An error returned by the API.
26
51
  class Error
27
52
  include Google::Apis::Core::Hashable
@@ -84,6 +109,88 @@ module Google
84
109
  end
85
110
  end
86
111
 
112
+ #
113
+ class InvoiceSummary
114
+ include Google::Apis::Core::Hashable
115
+
116
+ # Summary of the total amounts of the additional charges.
117
+ # Corresponds to the JSON property `additionalChargeSummaries`
118
+ # @return [Array<Google::Apis::ContentV2sandbox::InvoiceSummaryAdditionalChargeSummary>]
119
+ attr_accessor :additional_charge_summaries
120
+
121
+ # Customer balance on this invoice. A positive amount means the customer is
122
+ # paying, a negative one means the customer is receiving money. Note that it
123
+ # must always be true that merchant_balance + customer_balance + google_balance =
124
+ # 0.
125
+ # Corresponds to the JSON property `customerBalance`
126
+ # @return [Google::Apis::ContentV2sandbox::Amount]
127
+ attr_accessor :customer_balance
128
+
129
+ # Google balance on this invoice. A positive amount means Google is paying, a
130
+ # negative one means Google is receiving money. Note that it must always be true
131
+ # that merchant_balance + customer_balance + google_balance = 0.
132
+ # Corresponds to the JSON property `googleBalance`
133
+ # @return [Google::Apis::ContentV2sandbox::Amount]
134
+ attr_accessor :google_balance
135
+
136
+ # Merchant balance on this invoice. A positive amount means the merchant is
137
+ # paying, a negative one means the merchant is receiving money. Note that it
138
+ # must always be true that merchant_balance + customer_balance + google_balance =
139
+ # 0.
140
+ # Corresponds to the JSON property `merchantBalance`
141
+ # @return [Google::Apis::ContentV2sandbox::Amount]
142
+ attr_accessor :merchant_balance
143
+
144
+ # Total price for the product.
145
+ # Corresponds to the JSON property `productTotal`
146
+ # @return [Google::Apis::ContentV2sandbox::Amount]
147
+ attr_accessor :product_total
148
+
149
+ # Summary for each promotion.
150
+ # Corresponds to the JSON property `promotionSummaries`
151
+ # @return [Array<Google::Apis::ContentV2sandbox::Promotion>]
152
+ attr_accessor :promotion_summaries
153
+
154
+ def initialize(**args)
155
+ update!(**args)
156
+ end
157
+
158
+ # Update properties of this object
159
+ def update!(**args)
160
+ @additional_charge_summaries = args[:additional_charge_summaries] if args.key?(:additional_charge_summaries)
161
+ @customer_balance = args[:customer_balance] if args.key?(:customer_balance)
162
+ @google_balance = args[:google_balance] if args.key?(:google_balance)
163
+ @merchant_balance = args[:merchant_balance] if args.key?(:merchant_balance)
164
+ @product_total = args[:product_total] if args.key?(:product_total)
165
+ @promotion_summaries = args[:promotion_summaries] if args.key?(:promotion_summaries)
166
+ end
167
+ end
168
+
169
+ #
170
+ class InvoiceSummaryAdditionalChargeSummary
171
+ include Google::Apis::Core::Hashable
172
+
173
+ # Total additional charge for this type.
174
+ # Corresponds to the JSON property `totalAmount`
175
+ # @return [Google::Apis::ContentV2sandbox::Amount]
176
+ attr_accessor :total_amount
177
+
178
+ # Type of the additional charge.
179
+ # Corresponds to the JSON property `type`
180
+ # @return [String]
181
+ attr_accessor :type
182
+
183
+ def initialize(**args)
184
+ update!(**args)
185
+ end
186
+
187
+ # Update properties of this object
188
+ def update!(**args)
189
+ @total_amount = args[:total_amount] if args.key?(:total_amount)
190
+ @type = args[:type] if args.key?(:type)
191
+ end
192
+ end
193
+
87
194
  #
88
195
  class Order
89
196
  include Google::Apis::Core::Hashable
@@ -1153,6 +1260,394 @@ module Google
1153
1260
  end
1154
1261
  end
1155
1262
 
1263
+ #
1264
+ class OrderinvoicesCreateChargeInvoiceRequest
1265
+ include Google::Apis::Core::Hashable
1266
+
1267
+ # The ID of the invoice.
1268
+ # Corresponds to the JSON property `invoiceId`
1269
+ # @return [String]
1270
+ attr_accessor :invoice_id
1271
+
1272
+ # Invoice summary.
1273
+ # Corresponds to the JSON property `invoiceSummary`
1274
+ # @return [Google::Apis::ContentV2sandbox::InvoiceSummary]
1275
+ attr_accessor :invoice_summary
1276
+
1277
+ # Invoice details per line item.
1278
+ # Corresponds to the JSON property `lineItemInvoices`
1279
+ # @return [Array<Google::Apis::ContentV2sandbox::ShipmentInvoiceLineItemInvoice>]
1280
+ attr_accessor :line_item_invoices
1281
+
1282
+ # The ID of the operation, unique across all operations for a given order.
1283
+ # Corresponds to the JSON property `operationId`
1284
+ # @return [String]
1285
+ attr_accessor :operation_id
1286
+
1287
+ # ID of the shipment group.
1288
+ # Corresponds to the JSON property `shipmentGroupId`
1289
+ # @return [String]
1290
+ attr_accessor :shipment_group_id
1291
+
1292
+ def initialize(**args)
1293
+ update!(**args)
1294
+ end
1295
+
1296
+ # Update properties of this object
1297
+ def update!(**args)
1298
+ @invoice_id = args[:invoice_id] if args.key?(:invoice_id)
1299
+ @invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary)
1300
+ @line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices)
1301
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
1302
+ @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
1303
+ end
1304
+ end
1305
+
1306
+ #
1307
+ class OrderinvoicesCreateChargeInvoiceResponse
1308
+ include Google::Apis::Core::Hashable
1309
+
1310
+ # The status of the execution.
1311
+ # Corresponds to the JSON property `executionStatus`
1312
+ # @return [String]
1313
+ attr_accessor :execution_status
1314
+
1315
+ # Identifies what kind of resource this is. Value: the fixed string "content#
1316
+ # orderinvoicesCreateChargeInvoiceResponse".
1317
+ # Corresponds to the JSON property `kind`
1318
+ # @return [String]
1319
+ attr_accessor :kind
1320
+
1321
+ def initialize(**args)
1322
+ update!(**args)
1323
+ end
1324
+
1325
+ # Update properties of this object
1326
+ def update!(**args)
1327
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
1328
+ @kind = args[:kind] if args.key?(:kind)
1329
+ end
1330
+ end
1331
+
1332
+ #
1333
+ class OrderinvoicesCreateRefundInvoiceRequest
1334
+ include Google::Apis::Core::Hashable
1335
+
1336
+ # The ID of the invoice.
1337
+ # Corresponds to the JSON property `invoiceId`
1338
+ # @return [String]
1339
+ attr_accessor :invoice_id
1340
+
1341
+ # The ID of the operation, unique across all operations for a given order.
1342
+ # Corresponds to the JSON property `operationId`
1343
+ # @return [String]
1344
+ attr_accessor :operation_id
1345
+
1346
+ # Option to create a refund-only invoice. Exactly one of refund_option and
1347
+ # return_option must be provided.
1348
+ # Corresponds to the JSON property `refundOnlyOption`
1349
+ # @return [Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption]
1350
+ attr_accessor :refund_only_option
1351
+
1352
+ # Option to create an invoice for a refund and mark all items within the invoice
1353
+ # as returned. Exactly one of refund_option and return_option must be provided.
1354
+ # Corresponds to the JSON property `returnOption`
1355
+ # @return [Google::Apis::ContentV2sandbox::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption]
1356
+ attr_accessor :return_option
1357
+
1358
+ # Invoice details for different shipment groups.
1359
+ # Corresponds to the JSON property `shipmentInvoices`
1360
+ # @return [Array<Google::Apis::ContentV2sandbox::ShipmentInvoice>]
1361
+ attr_accessor :shipment_invoices
1362
+
1363
+ def initialize(**args)
1364
+ update!(**args)
1365
+ end
1366
+
1367
+ # Update properties of this object
1368
+ def update!(**args)
1369
+ @invoice_id = args[:invoice_id] if args.key?(:invoice_id)
1370
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
1371
+ @refund_only_option = args[:refund_only_option] if args.key?(:refund_only_option)
1372
+ @return_option = args[:return_option] if args.key?(:return_option)
1373
+ @shipment_invoices = args[:shipment_invoices] if args.key?(:shipment_invoices)
1374
+ end
1375
+ end
1376
+
1377
+ #
1378
+ class OrderinvoicesCreateRefundInvoiceResponse
1379
+ include Google::Apis::Core::Hashable
1380
+
1381
+ # The status of the execution.
1382
+ # Corresponds to the JSON property `executionStatus`
1383
+ # @return [String]
1384
+ attr_accessor :execution_status
1385
+
1386
+ # Identifies what kind of resource this is. Value: the fixed string "content#
1387
+ # orderinvoicesCreateRefundInvoiceResponse".
1388
+ # Corresponds to the JSON property `kind`
1389
+ # @return [String]
1390
+ attr_accessor :kind
1391
+
1392
+ def initialize(**args)
1393
+ update!(**args)
1394
+ end
1395
+
1396
+ # Update properties of this object
1397
+ def update!(**args)
1398
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
1399
+ @kind = args[:kind] if args.key?(:kind)
1400
+ end
1401
+ end
1402
+
1403
+ #
1404
+ class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
1405
+ include Google::Apis::Core::Hashable
1406
+
1407
+ # Optional description of the refund reason.
1408
+ # Corresponds to the JSON property `description`
1409
+ # @return [String]
1410
+ attr_accessor :description
1411
+
1412
+ # Reason for the refund.
1413
+ # Corresponds to the JSON property `reason`
1414
+ # @return [String]
1415
+ attr_accessor :reason
1416
+
1417
+ def initialize(**args)
1418
+ update!(**args)
1419
+ end
1420
+
1421
+ # Update properties of this object
1422
+ def update!(**args)
1423
+ @description = args[:description] if args.key?(:description)
1424
+ @reason = args[:reason] if args.key?(:reason)
1425
+ end
1426
+ end
1427
+
1428
+ #
1429
+ class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
1430
+ include Google::Apis::Core::Hashable
1431
+
1432
+ # Optional description of the return reason.
1433
+ # Corresponds to the JSON property `description`
1434
+ # @return [String]
1435
+ attr_accessor :description
1436
+
1437
+ # Reason for the return.
1438
+ # Corresponds to the JSON property `reason`
1439
+ # @return [String]
1440
+ attr_accessor :reason
1441
+
1442
+ def initialize(**args)
1443
+ update!(**args)
1444
+ end
1445
+
1446
+ # Update properties of this object
1447
+ def update!(**args)
1448
+ @description = args[:description] if args.key?(:description)
1449
+ @reason = args[:reason] if args.key?(:reason)
1450
+ end
1451
+ end
1452
+
1453
+ #
1454
+ class OrderpaymentsNotifyAuthApprovedRequest
1455
+ include Google::Apis::Core::Hashable
1456
+
1457
+ #
1458
+ # Corresponds to the JSON property `authAmountPretax`
1459
+ # @return [Google::Apis::ContentV2sandbox::Price]
1460
+ attr_accessor :auth_amount_pretax
1461
+
1462
+ #
1463
+ # Corresponds to the JSON property `authAmountTax`
1464
+ # @return [Google::Apis::ContentV2sandbox::Price]
1465
+ attr_accessor :auth_amount_tax
1466
+
1467
+ def initialize(**args)
1468
+ update!(**args)
1469
+ end
1470
+
1471
+ # Update properties of this object
1472
+ def update!(**args)
1473
+ @auth_amount_pretax = args[:auth_amount_pretax] if args.key?(:auth_amount_pretax)
1474
+ @auth_amount_tax = args[:auth_amount_tax] if args.key?(:auth_amount_tax)
1475
+ end
1476
+ end
1477
+
1478
+ #
1479
+ class OrderpaymentsNotifyAuthApprovedResponse
1480
+ include Google::Apis::Core::Hashable
1481
+
1482
+ # The status of the execution.
1483
+ # Corresponds to the JSON property `executionStatus`
1484
+ # @return [String]
1485
+ attr_accessor :execution_status
1486
+
1487
+ # Identifies what kind of resource this is. Value: the fixed string "content#
1488
+ # orderpaymentsNotifyAuthApprovedResponse".
1489
+ # Corresponds to the JSON property `kind`
1490
+ # @return [String]
1491
+ attr_accessor :kind
1492
+
1493
+ def initialize(**args)
1494
+ update!(**args)
1495
+ end
1496
+
1497
+ # Update properties of this object
1498
+ def update!(**args)
1499
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
1500
+ @kind = args[:kind] if args.key?(:kind)
1501
+ end
1502
+ end
1503
+
1504
+ #
1505
+ class OrderpaymentsNotifyAuthDeclinedRequest
1506
+ include Google::Apis::Core::Hashable
1507
+
1508
+ # Reason why payment authorization was declined.
1509
+ # Corresponds to the JSON property `declineReason`
1510
+ # @return [String]
1511
+ attr_accessor :decline_reason
1512
+
1513
+ def initialize(**args)
1514
+ update!(**args)
1515
+ end
1516
+
1517
+ # Update properties of this object
1518
+ def update!(**args)
1519
+ @decline_reason = args[:decline_reason] if args.key?(:decline_reason)
1520
+ end
1521
+ end
1522
+
1523
+ #
1524
+ class OrderpaymentsNotifyAuthDeclinedResponse
1525
+ include Google::Apis::Core::Hashable
1526
+
1527
+ # The status of the execution.
1528
+ # Corresponds to the JSON property `executionStatus`
1529
+ # @return [String]
1530
+ attr_accessor :execution_status
1531
+
1532
+ # Identifies what kind of resource this is. Value: the fixed string "content#
1533
+ # orderpaymentsNotifyAuthDeclinedResponse".
1534
+ # Corresponds to the JSON property `kind`
1535
+ # @return [String]
1536
+ attr_accessor :kind
1537
+
1538
+ def initialize(**args)
1539
+ update!(**args)
1540
+ end
1541
+
1542
+ # Update properties of this object
1543
+ def update!(**args)
1544
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
1545
+ @kind = args[:kind] if args.key?(:kind)
1546
+ end
1547
+ end
1548
+
1549
+ #
1550
+ class OrderpaymentsNotifyChargeRequest
1551
+ include Google::Apis::Core::Hashable
1552
+
1553
+ # Whether charge was successful.
1554
+ # Corresponds to the JSON property `chargeState`
1555
+ # @return [String]
1556
+ attr_accessor :charge_state
1557
+
1558
+ # Invoice ID from orderInvoice service that corresponds to the charge.
1559
+ # Corresponds to the JSON property `invoiceId`
1560
+ # @return [String]
1561
+ attr_accessor :invoice_id
1562
+
1563
+ def initialize(**args)
1564
+ update!(**args)
1565
+ end
1566
+
1567
+ # Update properties of this object
1568
+ def update!(**args)
1569
+ @charge_state = args[:charge_state] if args.key?(:charge_state)
1570
+ @invoice_id = args[:invoice_id] if args.key?(:invoice_id)
1571
+ end
1572
+ end
1573
+
1574
+ #
1575
+ class OrderpaymentsNotifyChargeResponse
1576
+ include Google::Apis::Core::Hashable
1577
+
1578
+ # The status of the execution.
1579
+ # Corresponds to the JSON property `executionStatus`
1580
+ # @return [String]
1581
+ attr_accessor :execution_status
1582
+
1583
+ # Identifies what kind of resource this is. Value: the fixed string "content#
1584
+ # orderpaymentsNotifyChargeResponse".
1585
+ # Corresponds to the JSON property `kind`
1586
+ # @return [String]
1587
+ attr_accessor :kind
1588
+
1589
+ def initialize(**args)
1590
+ update!(**args)
1591
+ end
1592
+
1593
+ # Update properties of this object
1594
+ def update!(**args)
1595
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
1596
+ @kind = args[:kind] if args.key?(:kind)
1597
+ end
1598
+ end
1599
+
1600
+ #
1601
+ class OrderpaymentsNotifyRefundRequest
1602
+ include Google::Apis::Core::Hashable
1603
+
1604
+ # Invoice ID from orderInvoice service that corresponds to the charge.
1605
+ # Corresponds to the JSON property `invoiceId`
1606
+ # @return [String]
1607
+ attr_accessor :invoice_id
1608
+
1609
+ # Whether refund was successful.
1610
+ # Corresponds to the JSON property `refundState`
1611
+ # @return [String]
1612
+ attr_accessor :refund_state
1613
+
1614
+ def initialize(**args)
1615
+ update!(**args)
1616
+ end
1617
+
1618
+ # Update properties of this object
1619
+ def update!(**args)
1620
+ @invoice_id = args[:invoice_id] if args.key?(:invoice_id)
1621
+ @refund_state = args[:refund_state] if args.key?(:refund_state)
1622
+ end
1623
+ end
1624
+
1625
+ #
1626
+ class OrderpaymentsNotifyRefundResponse
1627
+ include Google::Apis::Core::Hashable
1628
+
1629
+ # The status of the execution.
1630
+ # Corresponds to the JSON property `executionStatus`
1631
+ # @return [String]
1632
+ attr_accessor :execution_status
1633
+
1634
+ # Identifies what kind of resource this is. Value: the fixed string "content#
1635
+ # orderpaymentsNotifyRefundResponse".
1636
+ # Corresponds to the JSON property `kind`
1637
+ # @return [String]
1638
+ attr_accessor :kind
1639
+
1640
+ def initialize(**args)
1641
+ update!(**args)
1642
+ end
1643
+
1644
+ # Update properties of this object
1645
+ def update!(**args)
1646
+ @execution_status = args[:execution_status] if args.key?(:execution_status)
1647
+ @kind = args[:kind] if args.key?(:kind)
1648
+ end
1649
+ end
1650
+
1156
1651
  #
1157
1652
  class OrdersAcknowledgeRequest
1158
1653
  include Google::Apis::Core::Hashable
@@ -1947,6 +2442,12 @@ module Google
1947
2442
  # @return [Array<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>]
1948
2443
  attr_accessor :line_items
1949
2444
 
2445
+ # ID of the shipment group. Required for orders that use the orderinvoices
2446
+ # service.
2447
+ # Corresponds to the JSON property `shipmentGroupId`
2448
+ # @return [String]
2449
+ attr_accessor :shipment_group_id
2450
+
1950
2451
  # Deprecated. Please use shipmentInfo instead. The ID of the shipment.
1951
2452
  # Corresponds to the JSON property `shipmentId`
1952
2453
  # @return [String]
@@ -1971,6 +2472,7 @@ module Google
1971
2472
  def update!(**args)
1972
2473
  @carrier = args[:carrier] if args.key?(:carrier)
1973
2474
  @line_items = args[:line_items] if args.key?(:line_items)
2475
+ @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
1974
2476
  @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
1975
2477
  @shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
1976
2478
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
@@ -2735,6 +3237,12 @@ module Google
2735
3237
  # @return [String]
2736
3238
  attr_accessor :operation_id
2737
3239
 
3240
+ # ID of the shipment group. Required for orders that use the orderinvoices
3241
+ # service.
3242
+ # Corresponds to the JSON property `shipmentGroupId`
3243
+ # @return [String]
3244
+ attr_accessor :shipment_group_id
3245
+
2738
3246
  # Deprecated. Please use shipmentInfo instead. The ID of the shipment.
2739
3247
  # Corresponds to the JSON property `shipmentId`
2740
3248
  # @return [String]
@@ -2760,6 +3268,7 @@ module Google
2760
3268
  @carrier = args[:carrier] if args.key?(:carrier)
2761
3269
  @line_items = args[:line_items] if args.key?(:line_items)
2762
3270
  @operation_id = args[:operation_id] if args.key?(:operation_id)
3271
+ @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
2763
3272
  @shipment_id = args[:shipment_id] if args.key?(:shipment_id)
2764
3273
  @shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
2765
3274
  @tracking_id = args[:tracking_id] if args.key?(:tracking_id)
@@ -3011,6 +3520,101 @@ module Google
3011
3520
  end
3012
3521
  end
3013
3522
 
3523
+ #
3524
+ class Promotion
3525
+ include Google::Apis::Core::Hashable
3526
+
3527
+ # Amount of the promotion. The values here are the promotion applied to the unit
3528
+ # price pretax and to the total of the tax amounts.
3529
+ # Corresponds to the JSON property `promotionAmount`
3530
+ # @return [Google::Apis::ContentV2sandbox::Amount]
3531
+ attr_accessor :promotion_amount
3532
+
3533
+ # ID of the promotion.
3534
+ # Corresponds to the JSON property `promotionId`
3535
+ # @return [String]
3536
+ attr_accessor :promotion_id
3537
+
3538
+ def initialize(**args)
3539
+ update!(**args)
3540
+ end
3541
+
3542
+ # Update properties of this object
3543
+ def update!(**args)
3544
+ @promotion_amount = args[:promotion_amount] if args.key?(:promotion_amount)
3545
+ @promotion_id = args[:promotion_id] if args.key?(:promotion_id)
3546
+ end
3547
+ end
3548
+
3549
+ #
3550
+ class ShipmentInvoice
3551
+ include Google::Apis::Core::Hashable
3552
+
3553
+ # Invoice summary.
3554
+ # Corresponds to the JSON property `invoiceSummary`
3555
+ # @return [Google::Apis::ContentV2sandbox::InvoiceSummary]
3556
+ attr_accessor :invoice_summary
3557
+
3558
+ # Invoice details per line item.
3559
+ # Corresponds to the JSON property `lineItemInvoices`
3560
+ # @return [Array<Google::Apis::ContentV2sandbox::ShipmentInvoiceLineItemInvoice>]
3561
+ attr_accessor :line_item_invoices
3562
+
3563
+ # ID of the shipment group.
3564
+ # Corresponds to the JSON property `shipmentGroupId`
3565
+ # @return [String]
3566
+ attr_accessor :shipment_group_id
3567
+
3568
+ def initialize(**args)
3569
+ update!(**args)
3570
+ end
3571
+
3572
+ # Update properties of this object
3573
+ def update!(**args)
3574
+ @invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary)
3575
+ @line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices)
3576
+ @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
3577
+ end
3578
+ end
3579
+
3580
+ #
3581
+ class ShipmentInvoiceLineItemInvoice
3582
+ include Google::Apis::Core::Hashable
3583
+
3584
+ # ID of the line item. Either lineItemId or productId must be set.
3585
+ # Corresponds to the JSON property `lineItemId`
3586
+ # @return [String]
3587
+ attr_accessor :line_item_id
3588
+
3589
+ # ID of the product. This is the REST ID used in the products service. Either
3590
+ # lineItemId or productId must be set.
3591
+ # Corresponds to the JSON property `productId`
3592
+ # @return [String]
3593
+ attr_accessor :product_id
3594
+
3595
+ # Unit IDs to define specific units within the line item.
3596
+ # Corresponds to the JSON property `shipmentUnitIds`
3597
+ # @return [Array<String>]
3598
+ attr_accessor :shipment_unit_ids
3599
+
3600
+ # Invoice details for a single unit.
3601
+ # Corresponds to the JSON property `unitInvoice`
3602
+ # @return [Google::Apis::ContentV2sandbox::UnitInvoice]
3603
+ attr_accessor :unit_invoice
3604
+
3605
+ def initialize(**args)
3606
+ update!(**args)
3607
+ end
3608
+
3609
+ # Update properties of this object
3610
+ def update!(**args)
3611
+ @line_item_id = args[:line_item_id] if args.key?(:line_item_id)
3612
+ @product_id = args[:product_id] if args.key?(:product_id)
3613
+ @shipment_unit_ids = args[:shipment_unit_ids] if args.key?(:shipment_unit_ids)
3614
+ @unit_invoice = args[:unit_invoice] if args.key?(:unit_invoice)
3615
+ end
3616
+ end
3617
+
3014
3618
  #
3015
3619
  class TestOrder
3016
3620
  include Google::Apis::Core::Hashable
@@ -3329,6 +3933,105 @@ module Google
3329
3933
  @type = args[:type] if args.key?(:type)
3330
3934
  end
3331
3935
  end
3936
+
3937
+ #
3938
+ class UnitInvoice
3939
+ include Google::Apis::Core::Hashable
3940
+
3941
+ # Additional charges for a unit, e.g. shipping costs.
3942
+ # Corresponds to the JSON property `additionalCharges`
3943
+ # @return [Array<Google::Apis::ContentV2sandbox::UnitInvoiceAdditionalCharge>]
3944
+ attr_accessor :additional_charges
3945
+
3946
+ # Promotions applied to a unit.
3947
+ # Corresponds to the JSON property `promotions`
3948
+ # @return [Array<Google::Apis::ContentV2sandbox::Promotion>]
3949
+ attr_accessor :promotions
3950
+
3951
+ # Price of the unit, before applying taxes.
3952
+ # Corresponds to the JSON property `unitPricePretax`
3953
+ # @return [Google::Apis::ContentV2sandbox::Price]
3954
+ attr_accessor :unit_price_pretax
3955
+
3956
+ # Tax amounts to apply to the unit price.
3957
+ # Corresponds to the JSON property `unitPriceTaxes`
3958
+ # @return [Array<Google::Apis::ContentV2sandbox::UnitInvoiceTaxLine>]
3959
+ attr_accessor :unit_price_taxes
3960
+
3961
+ def initialize(**args)
3962
+ update!(**args)
3963
+ end
3964
+
3965
+ # Update properties of this object
3966
+ def update!(**args)
3967
+ @additional_charges = args[:additional_charges] if args.key?(:additional_charges)
3968
+ @promotions = args[:promotions] if args.key?(:promotions)
3969
+ @unit_price_pretax = args[:unit_price_pretax] if args.key?(:unit_price_pretax)
3970
+ @unit_price_taxes = args[:unit_price_taxes] if args.key?(:unit_price_taxes)
3971
+ end
3972
+ end
3973
+
3974
+ #
3975
+ class UnitInvoiceAdditionalCharge
3976
+ include Google::Apis::Core::Hashable
3977
+
3978
+ # Amount of the additional charge.
3979
+ # Corresponds to the JSON property `additionalChargeAmount`
3980
+ # @return [Google::Apis::ContentV2sandbox::Amount]
3981
+ attr_accessor :additional_charge_amount
3982
+
3983
+ # Promotions applied to the additional charge.
3984
+ # Corresponds to the JSON property `additionalChargePromotions`
3985
+ # @return [Array<Google::Apis::ContentV2sandbox::Promotion>]
3986
+ attr_accessor :additional_charge_promotions
3987
+
3988
+ # Type of the additional charge.
3989
+ # Corresponds to the JSON property `type`
3990
+ # @return [String]
3991
+ attr_accessor :type
3992
+
3993
+ def initialize(**args)
3994
+ update!(**args)
3995
+ end
3996
+
3997
+ # Update properties of this object
3998
+ def update!(**args)
3999
+ @additional_charge_amount = args[:additional_charge_amount] if args.key?(:additional_charge_amount)
4000
+ @additional_charge_promotions = args[:additional_charge_promotions] if args.key?(:additional_charge_promotions)
4001
+ @type = args[:type] if args.key?(:type)
4002
+ end
4003
+ end
4004
+
4005
+ #
4006
+ class UnitInvoiceTaxLine
4007
+ include Google::Apis::Core::Hashable
4008
+
4009
+ # Tax amount for the tax type.
4010
+ # Corresponds to the JSON property `taxAmount`
4011
+ # @return [Google::Apis::ContentV2sandbox::Price]
4012
+ attr_accessor :tax_amount
4013
+
4014
+ # Optional name of the tax type.
4015
+ # Corresponds to the JSON property `taxName`
4016
+ # @return [String]
4017
+ attr_accessor :tax_name
4018
+
4019
+ # Type of the tax.
4020
+ # Corresponds to the JSON property `taxType`
4021
+ # @return [String]
4022
+ attr_accessor :tax_type
4023
+
4024
+ def initialize(**args)
4025
+ update!(**args)
4026
+ end
4027
+
4028
+ # Update properties of this object
4029
+ def update!(**args)
4030
+ @tax_amount = args[:tax_amount] if args.key?(:tax_amount)
4031
+ @tax_name = args[:tax_name] if args.key?(:tax_name)
4032
+ @tax_type = args[:tax_type] if args.key?(:tax_type)
4033
+ end
4034
+ end
3332
4035
  end
3333
4036
  end
3334
4037
  end