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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -0
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +1 -2
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +1 -2
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +2 -3
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +59 -1
- data/generated/google/apis/appengine_v1/representations.rb +18 -0
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +0 -8
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +97 -12
- data/generated/google/apis/compute_alpha/representations.rb +23 -0
- data/generated/google/apis/compute_alpha/service.rb +41 -1
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1616 -43
- data/generated/google/apis/compute_beta/representations.rb +685 -20
- data/generated/google/apis/compute_beta/service.rb +1286 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +184 -3
- data/generated/google/apis/compute_v1/representations.rb +43 -0
- data/generated/google/apis/compute_v1/service.rb +108 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +805 -102
- data/generated/google/apis/content_v2/representations.rb +393 -26
- data/generated/google/apis/content_v2/service.rb +242 -0
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +703 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +367 -0
- data/generated/google/apis/content_v2sandbox/service.rb +242 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +280 -2
- data/generated/google/apis/dlp_v2/representations.rb +120 -0
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +35 -0
- data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +2 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +7 -0
- data/generated/google/apis/monitoring_v3/representations.rb +2 -0
- data/generated/google/apis/monitoring_v3/service.rb +5 -3
- data/generated/google/apis/pagespeedonline_v4.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +0 -8
- data/generated/google/apis/pubsub_v1/service.rb +4 -8
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +7 -8
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -27
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -15
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +0 -27
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -15
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/service.rb +2 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/tpu_v1.rb +34 -0
- data/generated/google/apis/tpu_v1/classes.rb +736 -0
- data/generated/google/apis/tpu_v1/representations.rb +316 -0
- data/generated/google/apis/tpu_v1/service.rb +687 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +26 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +15 -0
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +0 -473
- data/generated/google/apis/videointelligence_v1/representations.rb +0 -222
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +0 -473
- data/generated/google/apis/videointelligence_v1beta2/representations.rb +0 -222
- data/lib/google/apis/version.rb +1 -1
- metadata +6 -6
- data/generated/google/apis/photoslibrary_v1.rb +0 -49
- data/generated/google/apis/photoslibrary_v1/classes.rb +0 -1330
- data/generated/google/apis/photoslibrary_v1/representations.rb +0 -625
- data/generated/google/apis/photoslibrary_v1/service.rb +0 -399
|
@@ -26,7 +26,7 @@ module Google
|
|
|
26
26
|
# @see https://developers.google.com/shopping-content
|
|
27
27
|
module ContentV2
|
|
28
28
|
VERSION = 'V2'
|
|
29
|
-
REVISION = '
|
|
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'
|
|
@@ -1092,6 +1092,31 @@ module Google
|
|
|
1092
1092
|
end
|
|
1093
1093
|
end
|
|
1094
1094
|
|
|
1095
|
+
#
|
|
1096
|
+
class Amount
|
|
1097
|
+
include Google::Apis::Core::Hashable
|
|
1098
|
+
|
|
1099
|
+
# Value before taxes.
|
|
1100
|
+
# Corresponds to the JSON property `pretax`
|
|
1101
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
1102
|
+
attr_accessor :pretax
|
|
1103
|
+
|
|
1104
|
+
# Tax value.
|
|
1105
|
+
# Corresponds to the JSON property `tax`
|
|
1106
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
1107
|
+
attr_accessor :tax
|
|
1108
|
+
|
|
1109
|
+
def initialize(**args)
|
|
1110
|
+
update!(**args)
|
|
1111
|
+
end
|
|
1112
|
+
|
|
1113
|
+
# Update properties of this object
|
|
1114
|
+
def update!(**args)
|
|
1115
|
+
@pretax = args[:pretax] if args.key?(:pretax)
|
|
1116
|
+
@tax = args[:tax] if args.key?(:tax)
|
|
1117
|
+
end
|
|
1118
|
+
end
|
|
1119
|
+
|
|
1095
1120
|
#
|
|
1096
1121
|
class CarrierRate
|
|
1097
1122
|
include Google::Apis::Core::Hashable
|
|
@@ -2575,6 +2600,88 @@ module Google
|
|
|
2575
2600
|
end
|
|
2576
2601
|
end
|
|
2577
2602
|
|
|
2603
|
+
#
|
|
2604
|
+
class InvoiceSummary
|
|
2605
|
+
include Google::Apis::Core::Hashable
|
|
2606
|
+
|
|
2607
|
+
# Summary of the total amounts of the additional charges.
|
|
2608
|
+
# Corresponds to the JSON property `additionalChargeSummaries`
|
|
2609
|
+
# @return [Array<Google::Apis::ContentV2::InvoiceSummaryAdditionalChargeSummary>]
|
|
2610
|
+
attr_accessor :additional_charge_summaries
|
|
2611
|
+
|
|
2612
|
+
# Customer balance on this invoice. A positive amount means the customer is
|
|
2613
|
+
# paying, a negative one means the customer is receiving money. Note that it
|
|
2614
|
+
# must always be true that merchant_balance + customer_balance + google_balance =
|
|
2615
|
+
# 0.
|
|
2616
|
+
# Corresponds to the JSON property `customerBalance`
|
|
2617
|
+
# @return [Google::Apis::ContentV2::Amount]
|
|
2618
|
+
attr_accessor :customer_balance
|
|
2619
|
+
|
|
2620
|
+
# Google balance on this invoice. A positive amount means Google is paying, a
|
|
2621
|
+
# negative one means Google is receiving money. Note that it must always be true
|
|
2622
|
+
# that merchant_balance + customer_balance + google_balance = 0.
|
|
2623
|
+
# Corresponds to the JSON property `googleBalance`
|
|
2624
|
+
# @return [Google::Apis::ContentV2::Amount]
|
|
2625
|
+
attr_accessor :google_balance
|
|
2626
|
+
|
|
2627
|
+
# Merchant balance on this invoice. A positive amount means the merchant is
|
|
2628
|
+
# paying, a negative one means the merchant is receiving money. Note that it
|
|
2629
|
+
# must always be true that merchant_balance + customer_balance + google_balance =
|
|
2630
|
+
# 0.
|
|
2631
|
+
# Corresponds to the JSON property `merchantBalance`
|
|
2632
|
+
# @return [Google::Apis::ContentV2::Amount]
|
|
2633
|
+
attr_accessor :merchant_balance
|
|
2634
|
+
|
|
2635
|
+
# Total price for the product.
|
|
2636
|
+
# Corresponds to the JSON property `productTotal`
|
|
2637
|
+
# @return [Google::Apis::ContentV2::Amount]
|
|
2638
|
+
attr_accessor :product_total
|
|
2639
|
+
|
|
2640
|
+
# Summary for each promotion.
|
|
2641
|
+
# Corresponds to the JSON property `promotionSummaries`
|
|
2642
|
+
# @return [Array<Google::Apis::ContentV2::Promotion>]
|
|
2643
|
+
attr_accessor :promotion_summaries
|
|
2644
|
+
|
|
2645
|
+
def initialize(**args)
|
|
2646
|
+
update!(**args)
|
|
2647
|
+
end
|
|
2648
|
+
|
|
2649
|
+
# Update properties of this object
|
|
2650
|
+
def update!(**args)
|
|
2651
|
+
@additional_charge_summaries = args[:additional_charge_summaries] if args.key?(:additional_charge_summaries)
|
|
2652
|
+
@customer_balance = args[:customer_balance] if args.key?(:customer_balance)
|
|
2653
|
+
@google_balance = args[:google_balance] if args.key?(:google_balance)
|
|
2654
|
+
@merchant_balance = args[:merchant_balance] if args.key?(:merchant_balance)
|
|
2655
|
+
@product_total = args[:product_total] if args.key?(:product_total)
|
|
2656
|
+
@promotion_summaries = args[:promotion_summaries] if args.key?(:promotion_summaries)
|
|
2657
|
+
end
|
|
2658
|
+
end
|
|
2659
|
+
|
|
2660
|
+
#
|
|
2661
|
+
class InvoiceSummaryAdditionalChargeSummary
|
|
2662
|
+
include Google::Apis::Core::Hashable
|
|
2663
|
+
|
|
2664
|
+
# Total additional charge for this type.
|
|
2665
|
+
# Corresponds to the JSON property `totalAmount`
|
|
2666
|
+
# @return [Google::Apis::ContentV2::Amount]
|
|
2667
|
+
attr_accessor :total_amount
|
|
2668
|
+
|
|
2669
|
+
# Type of the additional charge.
|
|
2670
|
+
# Corresponds to the JSON property `type`
|
|
2671
|
+
# @return [String]
|
|
2672
|
+
attr_accessor :type
|
|
2673
|
+
|
|
2674
|
+
def initialize(**args)
|
|
2675
|
+
update!(**args)
|
|
2676
|
+
end
|
|
2677
|
+
|
|
2678
|
+
# Update properties of this object
|
|
2679
|
+
def update!(**args)
|
|
2680
|
+
@total_amount = args[:total_amount] if args.key?(:total_amount)
|
|
2681
|
+
@type = args[:type] if args.key?(:type)
|
|
2682
|
+
end
|
|
2683
|
+
end
|
|
2684
|
+
|
|
2578
2685
|
#
|
|
2579
2686
|
class LiaAboutPageSettings
|
|
2580
2687
|
include Google::Apis::Core::Hashable
|
|
@@ -2816,16 +2923,16 @@ module Google
|
|
|
2816
2923
|
# @return [String]
|
|
2817
2924
|
attr_accessor :method_prop
|
|
2818
2925
|
|
|
2926
|
+
# The ID of POS data provider. Required only for SetPosProvider.
|
|
2927
|
+
# Corresponds to the JSON property `posDataProviderId`
|
|
2928
|
+
# @return [Fixnum]
|
|
2929
|
+
attr_accessor :pos_data_provider_id
|
|
2930
|
+
|
|
2819
2931
|
# The account ID by which this merchant is known to the POS provider.
|
|
2820
2932
|
# Corresponds to the JSON property `posExternalAccountId`
|
|
2821
2933
|
# @return [String]
|
|
2822
2934
|
attr_accessor :pos_external_account_id
|
|
2823
2935
|
|
|
2824
|
-
# The ID of POS provider. Required only for SetPosProvider.
|
|
2825
|
-
# Corresponds to the JSON property `posProviderId`
|
|
2826
|
-
# @return [Fixnum]
|
|
2827
|
-
attr_accessor :pos_provider_id
|
|
2828
|
-
|
|
2829
2936
|
def initialize(**args)
|
|
2830
2937
|
update!(**args)
|
|
2831
2938
|
end
|
|
@@ -2841,8 +2948,8 @@ module Google
|
|
|
2841
2948
|
@lia_settings = args[:lia_settings] if args.key?(:lia_settings)
|
|
2842
2949
|
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
|
2843
2950
|
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
|
2951
|
+
@pos_data_provider_id = args[:pos_data_provider_id] if args.key?(:pos_data_provider_id)
|
|
2844
2952
|
@pos_external_account_id = args[:pos_external_account_id] if args.key?(:pos_external_account_id)
|
|
2845
|
-
@pos_provider_id = args[:pos_provider_id] if args.key?(:pos_provider_id)
|
|
2846
2953
|
end
|
|
2847
2954
|
end
|
|
2848
2955
|
|
|
@@ -2902,10 +3009,10 @@ module Google
|
|
|
2902
3009
|
# @return [Google::Apis::ContentV2::LiaSettings]
|
|
2903
3010
|
attr_accessor :lia_settings
|
|
2904
3011
|
|
|
2905
|
-
# The list of POS providers.
|
|
2906
|
-
# Corresponds to the JSON property `
|
|
2907
|
-
# @return [Array<Google::Apis::ContentV2::
|
|
2908
|
-
attr_accessor :
|
|
3012
|
+
# The list of POS data providers.
|
|
3013
|
+
# Corresponds to the JSON property `posDataProviders`
|
|
3014
|
+
# @return [Array<Google::Apis::ContentV2::PosDataProviders>]
|
|
3015
|
+
attr_accessor :pos_data_providers
|
|
2909
3016
|
|
|
2910
3017
|
def initialize(**args)
|
|
2911
3018
|
update!(**args)
|
|
@@ -2918,7 +3025,7 @@ module Google
|
|
|
2918
3025
|
@gmb_accounts = args[:gmb_accounts] if args.key?(:gmb_accounts)
|
|
2919
3026
|
@kind = args[:kind] if args.key?(:kind)
|
|
2920
3027
|
@lia_settings = args[:lia_settings] if args.key?(:lia_settings)
|
|
2921
|
-
@
|
|
3028
|
+
@pos_data_providers = args[:pos_data_providers] if args.key?(:pos_data_providers)
|
|
2922
3029
|
end
|
|
2923
3030
|
end
|
|
2924
3031
|
|
|
@@ -4104,20 +4211,420 @@ module Google
|
|
|
4104
4211
|
# @return [String]
|
|
4105
4212
|
attr_accessor :id
|
|
4106
4213
|
|
|
4107
|
-
# The line items that are shipped.
|
|
4108
|
-
# Corresponds to the JSON property `lineItems`
|
|
4109
|
-
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
|
|
4110
|
-
attr_accessor :line_items
|
|
4214
|
+
# The line items that are shipped.
|
|
4215
|
+
# Corresponds to the JSON property `lineItems`
|
|
4216
|
+
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
|
|
4217
|
+
attr_accessor :line_items
|
|
4218
|
+
|
|
4219
|
+
# The status of the shipment.
|
|
4220
|
+
# Corresponds to the JSON property `status`
|
|
4221
|
+
# @return [String]
|
|
4222
|
+
attr_accessor :status
|
|
4223
|
+
|
|
4224
|
+
# The tracking id for the shipment.
|
|
4225
|
+
# Corresponds to the JSON property `trackingId`
|
|
4226
|
+
# @return [String]
|
|
4227
|
+
attr_accessor :tracking_id
|
|
4228
|
+
|
|
4229
|
+
def initialize(**args)
|
|
4230
|
+
update!(**args)
|
|
4231
|
+
end
|
|
4232
|
+
|
|
4233
|
+
# Update properties of this object
|
|
4234
|
+
def update!(**args)
|
|
4235
|
+
@carrier = args[:carrier] if args.key?(:carrier)
|
|
4236
|
+
@creation_date = args[:creation_date] if args.key?(:creation_date)
|
|
4237
|
+
@delivery_date = args[:delivery_date] if args.key?(:delivery_date)
|
|
4238
|
+
@id = args[:id] if args.key?(:id)
|
|
4239
|
+
@line_items = args[:line_items] if args.key?(:line_items)
|
|
4240
|
+
@status = args[:status] if args.key?(:status)
|
|
4241
|
+
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
|
4242
|
+
end
|
|
4243
|
+
end
|
|
4244
|
+
|
|
4245
|
+
#
|
|
4246
|
+
class OrderShipmentLineItemShipment
|
|
4247
|
+
include Google::Apis::Core::Hashable
|
|
4248
|
+
|
|
4249
|
+
# The id of the line item that is shipped. Either lineItemId or productId is
|
|
4250
|
+
# required.
|
|
4251
|
+
# Corresponds to the JSON property `lineItemId`
|
|
4252
|
+
# @return [String]
|
|
4253
|
+
attr_accessor :line_item_id
|
|
4254
|
+
|
|
4255
|
+
# The ID of the product to ship. This is the REST ID used in the products
|
|
4256
|
+
# service. Either lineItemId or productId is required.
|
|
4257
|
+
# Corresponds to the JSON property `productId`
|
|
4258
|
+
# @return [String]
|
|
4259
|
+
attr_accessor :product_id
|
|
4260
|
+
|
|
4261
|
+
# The quantity that is shipped.
|
|
4262
|
+
# Corresponds to the JSON property `quantity`
|
|
4263
|
+
# @return [Fixnum]
|
|
4264
|
+
attr_accessor :quantity
|
|
4265
|
+
|
|
4266
|
+
def initialize(**args)
|
|
4267
|
+
update!(**args)
|
|
4268
|
+
end
|
|
4269
|
+
|
|
4270
|
+
# Update properties of this object
|
|
4271
|
+
def update!(**args)
|
|
4272
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
|
4273
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
|
4274
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
|
4275
|
+
end
|
|
4276
|
+
end
|
|
4277
|
+
|
|
4278
|
+
#
|
|
4279
|
+
class OrderinvoicesCreateChargeInvoiceRequest
|
|
4280
|
+
include Google::Apis::Core::Hashable
|
|
4281
|
+
|
|
4282
|
+
# The ID of the invoice.
|
|
4283
|
+
# Corresponds to the JSON property `invoiceId`
|
|
4284
|
+
# @return [String]
|
|
4285
|
+
attr_accessor :invoice_id
|
|
4286
|
+
|
|
4287
|
+
# Invoice summary.
|
|
4288
|
+
# Corresponds to the JSON property `invoiceSummary`
|
|
4289
|
+
# @return [Google::Apis::ContentV2::InvoiceSummary]
|
|
4290
|
+
attr_accessor :invoice_summary
|
|
4291
|
+
|
|
4292
|
+
# Invoice details per line item.
|
|
4293
|
+
# Corresponds to the JSON property `lineItemInvoices`
|
|
4294
|
+
# @return [Array<Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice>]
|
|
4295
|
+
attr_accessor :line_item_invoices
|
|
4296
|
+
|
|
4297
|
+
# The ID of the operation, unique across all operations for a given order.
|
|
4298
|
+
# Corresponds to the JSON property `operationId`
|
|
4299
|
+
# @return [String]
|
|
4300
|
+
attr_accessor :operation_id
|
|
4301
|
+
|
|
4302
|
+
# ID of the shipment group.
|
|
4303
|
+
# Corresponds to the JSON property `shipmentGroupId`
|
|
4304
|
+
# @return [String]
|
|
4305
|
+
attr_accessor :shipment_group_id
|
|
4306
|
+
|
|
4307
|
+
def initialize(**args)
|
|
4308
|
+
update!(**args)
|
|
4309
|
+
end
|
|
4310
|
+
|
|
4311
|
+
# Update properties of this object
|
|
4312
|
+
def update!(**args)
|
|
4313
|
+
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
|
|
4314
|
+
@invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary)
|
|
4315
|
+
@line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices)
|
|
4316
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
|
4317
|
+
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
|
|
4318
|
+
end
|
|
4319
|
+
end
|
|
4320
|
+
|
|
4321
|
+
#
|
|
4322
|
+
class OrderinvoicesCreateChargeInvoiceResponse
|
|
4323
|
+
include Google::Apis::Core::Hashable
|
|
4324
|
+
|
|
4325
|
+
# The status of the execution.
|
|
4326
|
+
# Corresponds to the JSON property `executionStatus`
|
|
4327
|
+
# @return [String]
|
|
4328
|
+
attr_accessor :execution_status
|
|
4329
|
+
|
|
4330
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4331
|
+
# orderinvoicesCreateChargeInvoiceResponse".
|
|
4332
|
+
# Corresponds to the JSON property `kind`
|
|
4333
|
+
# @return [String]
|
|
4334
|
+
attr_accessor :kind
|
|
4335
|
+
|
|
4336
|
+
def initialize(**args)
|
|
4337
|
+
update!(**args)
|
|
4338
|
+
end
|
|
4339
|
+
|
|
4340
|
+
# Update properties of this object
|
|
4341
|
+
def update!(**args)
|
|
4342
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
|
4343
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
4344
|
+
end
|
|
4345
|
+
end
|
|
4346
|
+
|
|
4347
|
+
#
|
|
4348
|
+
class OrderinvoicesCreateRefundInvoiceRequest
|
|
4349
|
+
include Google::Apis::Core::Hashable
|
|
4350
|
+
|
|
4351
|
+
# The ID of the invoice.
|
|
4352
|
+
# Corresponds to the JSON property `invoiceId`
|
|
4353
|
+
# @return [String]
|
|
4354
|
+
attr_accessor :invoice_id
|
|
4355
|
+
|
|
4356
|
+
# The ID of the operation, unique across all operations for a given order.
|
|
4357
|
+
# Corresponds to the JSON property `operationId`
|
|
4358
|
+
# @return [String]
|
|
4359
|
+
attr_accessor :operation_id
|
|
4360
|
+
|
|
4361
|
+
# Option to create a refund-only invoice. Exactly one of refund_option and
|
|
4362
|
+
# return_option must be provided.
|
|
4363
|
+
# Corresponds to the JSON property `refundOnlyOption`
|
|
4364
|
+
# @return [Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption]
|
|
4365
|
+
attr_accessor :refund_only_option
|
|
4366
|
+
|
|
4367
|
+
# Option to create an invoice for a refund and mark all items within the invoice
|
|
4368
|
+
# as returned. Exactly one of refund_option and return_option must be provided.
|
|
4369
|
+
# Corresponds to the JSON property `returnOption`
|
|
4370
|
+
# @return [Google::Apis::ContentV2::OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption]
|
|
4371
|
+
attr_accessor :return_option
|
|
4372
|
+
|
|
4373
|
+
# Invoice details for different shipment groups.
|
|
4374
|
+
# Corresponds to the JSON property `shipmentInvoices`
|
|
4375
|
+
# @return [Array<Google::Apis::ContentV2::ShipmentInvoice>]
|
|
4376
|
+
attr_accessor :shipment_invoices
|
|
4377
|
+
|
|
4378
|
+
def initialize(**args)
|
|
4379
|
+
update!(**args)
|
|
4380
|
+
end
|
|
4381
|
+
|
|
4382
|
+
# Update properties of this object
|
|
4383
|
+
def update!(**args)
|
|
4384
|
+
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
|
|
4385
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
|
4386
|
+
@refund_only_option = args[:refund_only_option] if args.key?(:refund_only_option)
|
|
4387
|
+
@return_option = args[:return_option] if args.key?(:return_option)
|
|
4388
|
+
@shipment_invoices = args[:shipment_invoices] if args.key?(:shipment_invoices)
|
|
4389
|
+
end
|
|
4390
|
+
end
|
|
4391
|
+
|
|
4392
|
+
#
|
|
4393
|
+
class OrderinvoicesCreateRefundInvoiceResponse
|
|
4394
|
+
include Google::Apis::Core::Hashable
|
|
4395
|
+
|
|
4396
|
+
# The status of the execution.
|
|
4397
|
+
# Corresponds to the JSON property `executionStatus`
|
|
4398
|
+
# @return [String]
|
|
4399
|
+
attr_accessor :execution_status
|
|
4400
|
+
|
|
4401
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4402
|
+
# orderinvoicesCreateRefundInvoiceResponse".
|
|
4403
|
+
# Corresponds to the JSON property `kind`
|
|
4404
|
+
# @return [String]
|
|
4405
|
+
attr_accessor :kind
|
|
4406
|
+
|
|
4407
|
+
def initialize(**args)
|
|
4408
|
+
update!(**args)
|
|
4409
|
+
end
|
|
4410
|
+
|
|
4411
|
+
# Update properties of this object
|
|
4412
|
+
def update!(**args)
|
|
4413
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
|
4414
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
4415
|
+
end
|
|
4416
|
+
end
|
|
4417
|
+
|
|
4418
|
+
#
|
|
4419
|
+
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
|
|
4420
|
+
include Google::Apis::Core::Hashable
|
|
4421
|
+
|
|
4422
|
+
# Optional description of the refund reason.
|
|
4423
|
+
# Corresponds to the JSON property `description`
|
|
4424
|
+
# @return [String]
|
|
4425
|
+
attr_accessor :description
|
|
4426
|
+
|
|
4427
|
+
# Reason for the refund.
|
|
4428
|
+
# Corresponds to the JSON property `reason`
|
|
4429
|
+
# @return [String]
|
|
4430
|
+
attr_accessor :reason
|
|
4431
|
+
|
|
4432
|
+
def initialize(**args)
|
|
4433
|
+
update!(**args)
|
|
4434
|
+
end
|
|
4435
|
+
|
|
4436
|
+
# Update properties of this object
|
|
4437
|
+
def update!(**args)
|
|
4438
|
+
@description = args[:description] if args.key?(:description)
|
|
4439
|
+
@reason = args[:reason] if args.key?(:reason)
|
|
4440
|
+
end
|
|
4441
|
+
end
|
|
4442
|
+
|
|
4443
|
+
#
|
|
4444
|
+
class OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
|
|
4445
|
+
include Google::Apis::Core::Hashable
|
|
4446
|
+
|
|
4447
|
+
# Optional description of the return reason.
|
|
4448
|
+
# Corresponds to the JSON property `description`
|
|
4449
|
+
# @return [String]
|
|
4450
|
+
attr_accessor :description
|
|
4451
|
+
|
|
4452
|
+
# Reason for the return.
|
|
4453
|
+
# Corresponds to the JSON property `reason`
|
|
4454
|
+
# @return [String]
|
|
4455
|
+
attr_accessor :reason
|
|
4456
|
+
|
|
4457
|
+
def initialize(**args)
|
|
4458
|
+
update!(**args)
|
|
4459
|
+
end
|
|
4460
|
+
|
|
4461
|
+
# Update properties of this object
|
|
4462
|
+
def update!(**args)
|
|
4463
|
+
@description = args[:description] if args.key?(:description)
|
|
4464
|
+
@reason = args[:reason] if args.key?(:reason)
|
|
4465
|
+
end
|
|
4466
|
+
end
|
|
4467
|
+
|
|
4468
|
+
#
|
|
4469
|
+
class OrderpaymentsNotifyAuthApprovedRequest
|
|
4470
|
+
include Google::Apis::Core::Hashable
|
|
4471
|
+
|
|
4472
|
+
#
|
|
4473
|
+
# Corresponds to the JSON property `authAmountPretax`
|
|
4474
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
4475
|
+
attr_accessor :auth_amount_pretax
|
|
4476
|
+
|
|
4477
|
+
#
|
|
4478
|
+
# Corresponds to the JSON property `authAmountTax`
|
|
4479
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
4480
|
+
attr_accessor :auth_amount_tax
|
|
4481
|
+
|
|
4482
|
+
def initialize(**args)
|
|
4483
|
+
update!(**args)
|
|
4484
|
+
end
|
|
4485
|
+
|
|
4486
|
+
# Update properties of this object
|
|
4487
|
+
def update!(**args)
|
|
4488
|
+
@auth_amount_pretax = args[:auth_amount_pretax] if args.key?(:auth_amount_pretax)
|
|
4489
|
+
@auth_amount_tax = args[:auth_amount_tax] if args.key?(:auth_amount_tax)
|
|
4490
|
+
end
|
|
4491
|
+
end
|
|
4492
|
+
|
|
4493
|
+
#
|
|
4494
|
+
class OrderpaymentsNotifyAuthApprovedResponse
|
|
4495
|
+
include Google::Apis::Core::Hashable
|
|
4496
|
+
|
|
4497
|
+
# The status of the execution.
|
|
4498
|
+
# Corresponds to the JSON property `executionStatus`
|
|
4499
|
+
# @return [String]
|
|
4500
|
+
attr_accessor :execution_status
|
|
4501
|
+
|
|
4502
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4503
|
+
# orderpaymentsNotifyAuthApprovedResponse".
|
|
4504
|
+
# Corresponds to the JSON property `kind`
|
|
4505
|
+
# @return [String]
|
|
4506
|
+
attr_accessor :kind
|
|
4507
|
+
|
|
4508
|
+
def initialize(**args)
|
|
4509
|
+
update!(**args)
|
|
4510
|
+
end
|
|
4511
|
+
|
|
4512
|
+
# Update properties of this object
|
|
4513
|
+
def update!(**args)
|
|
4514
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
|
4515
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
4516
|
+
end
|
|
4517
|
+
end
|
|
4518
|
+
|
|
4519
|
+
#
|
|
4520
|
+
class OrderpaymentsNotifyAuthDeclinedRequest
|
|
4521
|
+
include Google::Apis::Core::Hashable
|
|
4522
|
+
|
|
4523
|
+
# Reason why payment authorization was declined.
|
|
4524
|
+
# Corresponds to the JSON property `declineReason`
|
|
4525
|
+
# @return [String]
|
|
4526
|
+
attr_accessor :decline_reason
|
|
4527
|
+
|
|
4528
|
+
def initialize(**args)
|
|
4529
|
+
update!(**args)
|
|
4530
|
+
end
|
|
4531
|
+
|
|
4532
|
+
# Update properties of this object
|
|
4533
|
+
def update!(**args)
|
|
4534
|
+
@decline_reason = args[:decline_reason] if args.key?(:decline_reason)
|
|
4535
|
+
end
|
|
4536
|
+
end
|
|
4537
|
+
|
|
4538
|
+
#
|
|
4539
|
+
class OrderpaymentsNotifyAuthDeclinedResponse
|
|
4540
|
+
include Google::Apis::Core::Hashable
|
|
4541
|
+
|
|
4542
|
+
# The status of the execution.
|
|
4543
|
+
# Corresponds to the JSON property `executionStatus`
|
|
4544
|
+
# @return [String]
|
|
4545
|
+
attr_accessor :execution_status
|
|
4546
|
+
|
|
4547
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4548
|
+
# orderpaymentsNotifyAuthDeclinedResponse".
|
|
4549
|
+
# Corresponds to the JSON property `kind`
|
|
4550
|
+
# @return [String]
|
|
4551
|
+
attr_accessor :kind
|
|
4552
|
+
|
|
4553
|
+
def initialize(**args)
|
|
4554
|
+
update!(**args)
|
|
4555
|
+
end
|
|
4556
|
+
|
|
4557
|
+
# Update properties of this object
|
|
4558
|
+
def update!(**args)
|
|
4559
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
|
4560
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
4561
|
+
end
|
|
4562
|
+
end
|
|
4563
|
+
|
|
4564
|
+
#
|
|
4565
|
+
class OrderpaymentsNotifyChargeRequest
|
|
4566
|
+
include Google::Apis::Core::Hashable
|
|
4567
|
+
|
|
4568
|
+
# Whether charge was successful.
|
|
4569
|
+
# Corresponds to the JSON property `chargeState`
|
|
4570
|
+
# @return [String]
|
|
4571
|
+
attr_accessor :charge_state
|
|
4572
|
+
|
|
4573
|
+
# Invoice ID from orderInvoice service that corresponds to the charge.
|
|
4574
|
+
# Corresponds to the JSON property `invoiceId`
|
|
4575
|
+
# @return [String]
|
|
4576
|
+
attr_accessor :invoice_id
|
|
4577
|
+
|
|
4578
|
+
def initialize(**args)
|
|
4579
|
+
update!(**args)
|
|
4580
|
+
end
|
|
4581
|
+
|
|
4582
|
+
# Update properties of this object
|
|
4583
|
+
def update!(**args)
|
|
4584
|
+
@charge_state = args[:charge_state] if args.key?(:charge_state)
|
|
4585
|
+
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
|
|
4586
|
+
end
|
|
4587
|
+
end
|
|
4588
|
+
|
|
4589
|
+
#
|
|
4590
|
+
class OrderpaymentsNotifyChargeResponse
|
|
4591
|
+
include Google::Apis::Core::Hashable
|
|
4592
|
+
|
|
4593
|
+
# The status of the execution.
|
|
4594
|
+
# Corresponds to the JSON property `executionStatus`
|
|
4595
|
+
# @return [String]
|
|
4596
|
+
attr_accessor :execution_status
|
|
4597
|
+
|
|
4598
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4599
|
+
# orderpaymentsNotifyChargeResponse".
|
|
4600
|
+
# Corresponds to the JSON property `kind`
|
|
4601
|
+
# @return [String]
|
|
4602
|
+
attr_accessor :kind
|
|
4603
|
+
|
|
4604
|
+
def initialize(**args)
|
|
4605
|
+
update!(**args)
|
|
4606
|
+
end
|
|
4607
|
+
|
|
4608
|
+
# Update properties of this object
|
|
4609
|
+
def update!(**args)
|
|
4610
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
|
4611
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
4612
|
+
end
|
|
4613
|
+
end
|
|
4614
|
+
|
|
4615
|
+
#
|
|
4616
|
+
class OrderpaymentsNotifyRefundRequest
|
|
4617
|
+
include Google::Apis::Core::Hashable
|
|
4111
4618
|
|
|
4112
|
-
#
|
|
4113
|
-
# Corresponds to the JSON property `
|
|
4619
|
+
# Invoice ID from orderInvoice service that corresponds to the charge.
|
|
4620
|
+
# Corresponds to the JSON property `invoiceId`
|
|
4114
4621
|
# @return [String]
|
|
4115
|
-
attr_accessor :
|
|
4622
|
+
attr_accessor :invoice_id
|
|
4116
4623
|
|
|
4117
|
-
#
|
|
4118
|
-
# Corresponds to the JSON property `
|
|
4624
|
+
# Whether refund was successful.
|
|
4625
|
+
# Corresponds to the JSON property `refundState`
|
|
4119
4626
|
# @return [String]
|
|
4120
|
-
attr_accessor :
|
|
4627
|
+
attr_accessor :refund_state
|
|
4121
4628
|
|
|
4122
4629
|
def initialize(**args)
|
|
4123
4630
|
update!(**args)
|
|
@@ -4125,36 +4632,25 @@ module Google
|
|
|
4125
4632
|
|
|
4126
4633
|
# Update properties of this object
|
|
4127
4634
|
def update!(**args)
|
|
4128
|
-
@
|
|
4129
|
-
@
|
|
4130
|
-
@delivery_date = args[:delivery_date] if args.key?(:delivery_date)
|
|
4131
|
-
@id = args[:id] if args.key?(:id)
|
|
4132
|
-
@line_items = args[:line_items] if args.key?(:line_items)
|
|
4133
|
-
@status = args[:status] if args.key?(:status)
|
|
4134
|
-
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
|
4635
|
+
@invoice_id = args[:invoice_id] if args.key?(:invoice_id)
|
|
4636
|
+
@refund_state = args[:refund_state] if args.key?(:refund_state)
|
|
4135
4637
|
end
|
|
4136
4638
|
end
|
|
4137
4639
|
|
|
4138
4640
|
#
|
|
4139
|
-
class
|
|
4641
|
+
class OrderpaymentsNotifyRefundResponse
|
|
4140
4642
|
include Google::Apis::Core::Hashable
|
|
4141
4643
|
|
|
4142
|
-
# The
|
|
4143
|
-
#
|
|
4144
|
-
# Corresponds to the JSON property `lineItemId`
|
|
4644
|
+
# The status of the execution.
|
|
4645
|
+
# Corresponds to the JSON property `executionStatus`
|
|
4145
4646
|
# @return [String]
|
|
4146
|
-
attr_accessor :
|
|
4647
|
+
attr_accessor :execution_status
|
|
4147
4648
|
|
|
4148
|
-
#
|
|
4149
|
-
#
|
|
4150
|
-
# Corresponds to the JSON property `
|
|
4649
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4650
|
+
# orderpaymentsNotifyRefundResponse".
|
|
4651
|
+
# Corresponds to the JSON property `kind`
|
|
4151
4652
|
# @return [String]
|
|
4152
|
-
attr_accessor :
|
|
4153
|
-
|
|
4154
|
-
# The quantity that is shipped.
|
|
4155
|
-
# Corresponds to the JSON property `quantity`
|
|
4156
|
-
# @return [Fixnum]
|
|
4157
|
-
attr_accessor :quantity
|
|
4653
|
+
attr_accessor :kind
|
|
4158
4654
|
|
|
4159
4655
|
def initialize(**args)
|
|
4160
4656
|
update!(**args)
|
|
@@ -4162,9 +4658,8 @@ module Google
|
|
|
4162
4658
|
|
|
4163
4659
|
# Update properties of this object
|
|
4164
4660
|
def update!(**args)
|
|
4165
|
-
@
|
|
4166
|
-
@
|
|
4167
|
-
@quantity = args[:quantity] if args.key?(:quantity)
|
|
4661
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
|
4662
|
+
@kind = args[:kind] if args.key?(:kind)
|
|
4168
4663
|
end
|
|
4169
4664
|
end
|
|
4170
4665
|
|
|
@@ -4962,6 +5457,12 @@ module Google
|
|
|
4962
5457
|
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
|
|
4963
5458
|
attr_accessor :line_items
|
|
4964
5459
|
|
|
5460
|
+
# ID of the shipment group. Required for orders that use the orderinvoices
|
|
5461
|
+
# service.
|
|
5462
|
+
# Corresponds to the JSON property `shipmentGroupId`
|
|
5463
|
+
# @return [String]
|
|
5464
|
+
attr_accessor :shipment_group_id
|
|
5465
|
+
|
|
4965
5466
|
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
|
|
4966
5467
|
# Corresponds to the JSON property `shipmentId`
|
|
4967
5468
|
# @return [String]
|
|
@@ -4986,6 +5487,7 @@ module Google
|
|
|
4986
5487
|
def update!(**args)
|
|
4987
5488
|
@carrier = args[:carrier] if args.key?(:carrier)
|
|
4988
5489
|
@line_items = args[:line_items] if args.key?(:line_items)
|
|
5490
|
+
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
|
|
4989
5491
|
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
|
|
4990
5492
|
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
|
|
4991
5493
|
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
|
@@ -5750,6 +6252,12 @@ module Google
|
|
|
5750
6252
|
# @return [String]
|
|
5751
6253
|
attr_accessor :operation_id
|
|
5752
6254
|
|
|
6255
|
+
# ID of the shipment group. Required for orders that use the orderinvoices
|
|
6256
|
+
# service.
|
|
6257
|
+
# Corresponds to the JSON property `shipmentGroupId`
|
|
6258
|
+
# @return [String]
|
|
6259
|
+
attr_accessor :shipment_group_id
|
|
6260
|
+
|
|
5753
6261
|
# Deprecated. Please use shipmentInfo instead. The ID of the shipment.
|
|
5754
6262
|
# Corresponds to the JSON property `shipmentId`
|
|
5755
6263
|
# @return [String]
|
|
@@ -5775,6 +6283,7 @@ module Google
|
|
|
5775
6283
|
@carrier = args[:carrier] if args.key?(:carrier)
|
|
5776
6284
|
@line_items = args[:line_items] if args.key?(:line_items)
|
|
5777
6285
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
|
6286
|
+
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
|
|
5778
6287
|
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
|
|
5779
6288
|
@shipment_infos = args[:shipment_infos] if args.key?(:shipment_infos)
|
|
5780
6289
|
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
|
@@ -6034,7 +6543,7 @@ module Google
|
|
|
6034
6543
|
# @return [Google::Apis::ContentV2::PosInventory]
|
|
6035
6544
|
attr_accessor :inventory
|
|
6036
6545
|
|
|
6037
|
-
# The ID of the POS provider.
|
|
6546
|
+
# The ID of the POS data provider.
|
|
6038
6547
|
# Corresponds to the JSON property `merchantId`
|
|
6039
6548
|
# @return [Fixnum]
|
|
6040
6549
|
attr_accessor :merchant_id
|
|
@@ -6157,6 +6666,62 @@ module Google
|
|
|
6157
6666
|
end
|
|
6158
6667
|
end
|
|
6159
6668
|
|
|
6669
|
+
#
|
|
6670
|
+
class PosDataProviders
|
|
6671
|
+
include Google::Apis::Core::Hashable
|
|
6672
|
+
|
|
6673
|
+
# Country code.
|
|
6674
|
+
# Corresponds to the JSON property `country`
|
|
6675
|
+
# @return [String]
|
|
6676
|
+
attr_accessor :country
|
|
6677
|
+
|
|
6678
|
+
# A list of POS data providers.
|
|
6679
|
+
# Corresponds to the JSON property `posDataProviders`
|
|
6680
|
+
# @return [Array<Google::Apis::ContentV2::PosDataProvidersPosDataProvider>]
|
|
6681
|
+
attr_accessor :pos_data_providers
|
|
6682
|
+
|
|
6683
|
+
def initialize(**args)
|
|
6684
|
+
update!(**args)
|
|
6685
|
+
end
|
|
6686
|
+
|
|
6687
|
+
# Update properties of this object
|
|
6688
|
+
def update!(**args)
|
|
6689
|
+
@country = args[:country] if args.key?(:country)
|
|
6690
|
+
@pos_data_providers = args[:pos_data_providers] if args.key?(:pos_data_providers)
|
|
6691
|
+
end
|
|
6692
|
+
end
|
|
6693
|
+
|
|
6694
|
+
#
|
|
6695
|
+
class PosDataProvidersPosDataProvider
|
|
6696
|
+
include Google::Apis::Core::Hashable
|
|
6697
|
+
|
|
6698
|
+
# The display name of Pos data Provider.
|
|
6699
|
+
# Corresponds to the JSON property `displayName`
|
|
6700
|
+
# @return [String]
|
|
6701
|
+
attr_accessor :display_name
|
|
6702
|
+
|
|
6703
|
+
# The full name of this POS data Provider.
|
|
6704
|
+
# Corresponds to the JSON property `fullName`
|
|
6705
|
+
# @return [String]
|
|
6706
|
+
attr_accessor :full_name
|
|
6707
|
+
|
|
6708
|
+
# The ID of the account.
|
|
6709
|
+
# Corresponds to the JSON property `providerId`
|
|
6710
|
+
# @return [Fixnum]
|
|
6711
|
+
attr_accessor :provider_id
|
|
6712
|
+
|
|
6713
|
+
def initialize(**args)
|
|
6714
|
+
update!(**args)
|
|
6715
|
+
end
|
|
6716
|
+
|
|
6717
|
+
# Update properties of this object
|
|
6718
|
+
def update!(**args)
|
|
6719
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
6720
|
+
@full_name = args[:full_name] if args.key?(:full_name)
|
|
6721
|
+
@provider_id = args[:provider_id] if args.key?(:provider_id)
|
|
6722
|
+
end
|
|
6723
|
+
end
|
|
6724
|
+
|
|
6160
6725
|
# The absolute quantity of an item available at the given store.
|
|
6161
6726
|
class PosInventory
|
|
6162
6727
|
include Google::Apis::Core::Hashable
|
|
@@ -6383,62 +6948,6 @@ module Google
|
|
|
6383
6948
|
end
|
|
6384
6949
|
end
|
|
6385
6950
|
|
|
6386
|
-
#
|
|
6387
|
-
class PosProviders
|
|
6388
|
-
include Google::Apis::Core::Hashable
|
|
6389
|
-
|
|
6390
|
-
# Country code.
|
|
6391
|
-
# Corresponds to the JSON property `country`
|
|
6392
|
-
# @return [String]
|
|
6393
|
-
attr_accessor :country
|
|
6394
|
-
|
|
6395
|
-
# A list of POS providers.
|
|
6396
|
-
# Corresponds to the JSON property `posProviders`
|
|
6397
|
-
# @return [Array<Google::Apis::ContentV2::PosProvidersPosProvider>]
|
|
6398
|
-
attr_accessor :pos_providers
|
|
6399
|
-
|
|
6400
|
-
def initialize(**args)
|
|
6401
|
-
update!(**args)
|
|
6402
|
-
end
|
|
6403
|
-
|
|
6404
|
-
# Update properties of this object
|
|
6405
|
-
def update!(**args)
|
|
6406
|
-
@country = args[:country] if args.key?(:country)
|
|
6407
|
-
@pos_providers = args[:pos_providers] if args.key?(:pos_providers)
|
|
6408
|
-
end
|
|
6409
|
-
end
|
|
6410
|
-
|
|
6411
|
-
#
|
|
6412
|
-
class PosProvidersPosProvider
|
|
6413
|
-
include Google::Apis::Core::Hashable
|
|
6414
|
-
|
|
6415
|
-
# The display name of Pos Provider.
|
|
6416
|
-
# Corresponds to the JSON property `displayName`
|
|
6417
|
-
# @return [String]
|
|
6418
|
-
attr_accessor :display_name
|
|
6419
|
-
|
|
6420
|
-
# The full name of this POS Provider.
|
|
6421
|
-
# Corresponds to the JSON property `fullName`
|
|
6422
|
-
# @return [String]
|
|
6423
|
-
attr_accessor :full_name
|
|
6424
|
-
|
|
6425
|
-
# The ID of the account.
|
|
6426
|
-
# Corresponds to the JSON property `providerId`
|
|
6427
|
-
# @return [Fixnum]
|
|
6428
|
-
attr_accessor :provider_id
|
|
6429
|
-
|
|
6430
|
-
def initialize(**args)
|
|
6431
|
-
update!(**args)
|
|
6432
|
-
end
|
|
6433
|
-
|
|
6434
|
-
# Update properties of this object
|
|
6435
|
-
def update!(**args)
|
|
6436
|
-
@display_name = args[:display_name] if args.key?(:display_name)
|
|
6437
|
-
@full_name = args[:full_name] if args.key?(:full_name)
|
|
6438
|
-
@provider_id = args[:provider_id] if args.key?(:provider_id)
|
|
6439
|
-
end
|
|
6440
|
-
end
|
|
6441
|
-
|
|
6442
6951
|
# The change of the available quantity of an item at the given store.
|
|
6443
6952
|
class PosSale
|
|
6444
6953
|
include Google::Apis::Core::Hashable
|
|
@@ -8170,6 +8679,32 @@ module Google
|
|
|
8170
8679
|
end
|
|
8171
8680
|
end
|
|
8172
8681
|
|
|
8682
|
+
#
|
|
8683
|
+
class Promotion
|
|
8684
|
+
include Google::Apis::Core::Hashable
|
|
8685
|
+
|
|
8686
|
+
# Amount of the promotion. The values here are the promotion applied to the unit
|
|
8687
|
+
# price pretax and to the total of the tax amounts.
|
|
8688
|
+
# Corresponds to the JSON property `promotionAmount`
|
|
8689
|
+
# @return [Google::Apis::ContentV2::Amount]
|
|
8690
|
+
attr_accessor :promotion_amount
|
|
8691
|
+
|
|
8692
|
+
# ID of the promotion.
|
|
8693
|
+
# Corresponds to the JSON property `promotionId`
|
|
8694
|
+
# @return [String]
|
|
8695
|
+
attr_accessor :promotion_id
|
|
8696
|
+
|
|
8697
|
+
def initialize(**args)
|
|
8698
|
+
update!(**args)
|
|
8699
|
+
end
|
|
8700
|
+
|
|
8701
|
+
# Update properties of this object
|
|
8702
|
+
def update!(**args)
|
|
8703
|
+
@promotion_amount = args[:promotion_amount] if args.key?(:promotion_amount)
|
|
8704
|
+
@promotion_id = args[:promotion_id] if args.key?(:promotion_id)
|
|
8705
|
+
end
|
|
8706
|
+
end
|
|
8707
|
+
|
|
8173
8708
|
#
|
|
8174
8709
|
class RateGroup
|
|
8175
8710
|
include Google::Apis::Core::Hashable
|
|
@@ -8309,6 +8844,75 @@ module Google
|
|
|
8309
8844
|
end
|
|
8310
8845
|
end
|
|
8311
8846
|
|
|
8847
|
+
#
|
|
8848
|
+
class ShipmentInvoice
|
|
8849
|
+
include Google::Apis::Core::Hashable
|
|
8850
|
+
|
|
8851
|
+
# Invoice summary.
|
|
8852
|
+
# Corresponds to the JSON property `invoiceSummary`
|
|
8853
|
+
# @return [Google::Apis::ContentV2::InvoiceSummary]
|
|
8854
|
+
attr_accessor :invoice_summary
|
|
8855
|
+
|
|
8856
|
+
# Invoice details per line item.
|
|
8857
|
+
# Corresponds to the JSON property `lineItemInvoices`
|
|
8858
|
+
# @return [Array<Google::Apis::ContentV2::ShipmentInvoiceLineItemInvoice>]
|
|
8859
|
+
attr_accessor :line_item_invoices
|
|
8860
|
+
|
|
8861
|
+
# ID of the shipment group.
|
|
8862
|
+
# Corresponds to the JSON property `shipmentGroupId`
|
|
8863
|
+
# @return [String]
|
|
8864
|
+
attr_accessor :shipment_group_id
|
|
8865
|
+
|
|
8866
|
+
def initialize(**args)
|
|
8867
|
+
update!(**args)
|
|
8868
|
+
end
|
|
8869
|
+
|
|
8870
|
+
# Update properties of this object
|
|
8871
|
+
def update!(**args)
|
|
8872
|
+
@invoice_summary = args[:invoice_summary] if args.key?(:invoice_summary)
|
|
8873
|
+
@line_item_invoices = args[:line_item_invoices] if args.key?(:line_item_invoices)
|
|
8874
|
+
@shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id)
|
|
8875
|
+
end
|
|
8876
|
+
end
|
|
8877
|
+
|
|
8878
|
+
#
|
|
8879
|
+
class ShipmentInvoiceLineItemInvoice
|
|
8880
|
+
include Google::Apis::Core::Hashable
|
|
8881
|
+
|
|
8882
|
+
# ID of the line item. Either lineItemId or productId must be set.
|
|
8883
|
+
# Corresponds to the JSON property `lineItemId`
|
|
8884
|
+
# @return [String]
|
|
8885
|
+
attr_accessor :line_item_id
|
|
8886
|
+
|
|
8887
|
+
# ID of the product. This is the REST ID used in the products service. Either
|
|
8888
|
+
# lineItemId or productId must be set.
|
|
8889
|
+
# Corresponds to the JSON property `productId`
|
|
8890
|
+
# @return [String]
|
|
8891
|
+
attr_accessor :product_id
|
|
8892
|
+
|
|
8893
|
+
# Unit IDs to define specific units within the line item.
|
|
8894
|
+
# Corresponds to the JSON property `shipmentUnitIds`
|
|
8895
|
+
# @return [Array<String>]
|
|
8896
|
+
attr_accessor :shipment_unit_ids
|
|
8897
|
+
|
|
8898
|
+
# Invoice details for a single unit.
|
|
8899
|
+
# Corresponds to the JSON property `unitInvoice`
|
|
8900
|
+
# @return [Google::Apis::ContentV2::UnitInvoice]
|
|
8901
|
+
attr_accessor :unit_invoice
|
|
8902
|
+
|
|
8903
|
+
def initialize(**args)
|
|
8904
|
+
update!(**args)
|
|
8905
|
+
end
|
|
8906
|
+
|
|
8907
|
+
# Update properties of this object
|
|
8908
|
+
def update!(**args)
|
|
8909
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
|
8910
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
|
8911
|
+
@shipment_unit_ids = args[:shipment_unit_ids] if args.key?(:shipment_unit_ids)
|
|
8912
|
+
@unit_invoice = args[:unit_invoice] if args.key?(:unit_invoice)
|
|
8913
|
+
end
|
|
8914
|
+
end
|
|
8915
|
+
|
|
8312
8916
|
# The merchant account's shipping settings.
|
|
8313
8917
|
class ShippingSettings
|
|
8314
8918
|
include Google::Apis::Core::Hashable
|
|
@@ -8910,6 +9514,105 @@ module Google
|
|
|
8910
9514
|
end
|
|
8911
9515
|
end
|
|
8912
9516
|
|
|
9517
|
+
#
|
|
9518
|
+
class UnitInvoice
|
|
9519
|
+
include Google::Apis::Core::Hashable
|
|
9520
|
+
|
|
9521
|
+
# Additional charges for a unit, e.g. shipping costs.
|
|
9522
|
+
# Corresponds to the JSON property `additionalCharges`
|
|
9523
|
+
# @return [Array<Google::Apis::ContentV2::UnitInvoiceAdditionalCharge>]
|
|
9524
|
+
attr_accessor :additional_charges
|
|
9525
|
+
|
|
9526
|
+
# Promotions applied to a unit.
|
|
9527
|
+
# Corresponds to the JSON property `promotions`
|
|
9528
|
+
# @return [Array<Google::Apis::ContentV2::Promotion>]
|
|
9529
|
+
attr_accessor :promotions
|
|
9530
|
+
|
|
9531
|
+
# Price of the unit, before applying taxes.
|
|
9532
|
+
# Corresponds to the JSON property `unitPricePretax`
|
|
9533
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
9534
|
+
attr_accessor :unit_price_pretax
|
|
9535
|
+
|
|
9536
|
+
# Tax amounts to apply to the unit price.
|
|
9537
|
+
# Corresponds to the JSON property `unitPriceTaxes`
|
|
9538
|
+
# @return [Array<Google::Apis::ContentV2::UnitInvoiceTaxLine>]
|
|
9539
|
+
attr_accessor :unit_price_taxes
|
|
9540
|
+
|
|
9541
|
+
def initialize(**args)
|
|
9542
|
+
update!(**args)
|
|
9543
|
+
end
|
|
9544
|
+
|
|
9545
|
+
# Update properties of this object
|
|
9546
|
+
def update!(**args)
|
|
9547
|
+
@additional_charges = args[:additional_charges] if args.key?(:additional_charges)
|
|
9548
|
+
@promotions = args[:promotions] if args.key?(:promotions)
|
|
9549
|
+
@unit_price_pretax = args[:unit_price_pretax] if args.key?(:unit_price_pretax)
|
|
9550
|
+
@unit_price_taxes = args[:unit_price_taxes] if args.key?(:unit_price_taxes)
|
|
9551
|
+
end
|
|
9552
|
+
end
|
|
9553
|
+
|
|
9554
|
+
#
|
|
9555
|
+
class UnitInvoiceAdditionalCharge
|
|
9556
|
+
include Google::Apis::Core::Hashable
|
|
9557
|
+
|
|
9558
|
+
# Amount of the additional charge.
|
|
9559
|
+
# Corresponds to the JSON property `additionalChargeAmount`
|
|
9560
|
+
# @return [Google::Apis::ContentV2::Amount]
|
|
9561
|
+
attr_accessor :additional_charge_amount
|
|
9562
|
+
|
|
9563
|
+
# Promotions applied to the additional charge.
|
|
9564
|
+
# Corresponds to the JSON property `additionalChargePromotions`
|
|
9565
|
+
# @return [Array<Google::Apis::ContentV2::Promotion>]
|
|
9566
|
+
attr_accessor :additional_charge_promotions
|
|
9567
|
+
|
|
9568
|
+
# Type of the additional charge.
|
|
9569
|
+
# Corresponds to the JSON property `type`
|
|
9570
|
+
# @return [String]
|
|
9571
|
+
attr_accessor :type
|
|
9572
|
+
|
|
9573
|
+
def initialize(**args)
|
|
9574
|
+
update!(**args)
|
|
9575
|
+
end
|
|
9576
|
+
|
|
9577
|
+
# Update properties of this object
|
|
9578
|
+
def update!(**args)
|
|
9579
|
+
@additional_charge_amount = args[:additional_charge_amount] if args.key?(:additional_charge_amount)
|
|
9580
|
+
@additional_charge_promotions = args[:additional_charge_promotions] if args.key?(:additional_charge_promotions)
|
|
9581
|
+
@type = args[:type] if args.key?(:type)
|
|
9582
|
+
end
|
|
9583
|
+
end
|
|
9584
|
+
|
|
9585
|
+
#
|
|
9586
|
+
class UnitInvoiceTaxLine
|
|
9587
|
+
include Google::Apis::Core::Hashable
|
|
9588
|
+
|
|
9589
|
+
# Tax amount for the tax type.
|
|
9590
|
+
# Corresponds to the JSON property `taxAmount`
|
|
9591
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
9592
|
+
attr_accessor :tax_amount
|
|
9593
|
+
|
|
9594
|
+
# Optional name of the tax type.
|
|
9595
|
+
# Corresponds to the JSON property `taxName`
|
|
9596
|
+
# @return [String]
|
|
9597
|
+
attr_accessor :tax_name
|
|
9598
|
+
|
|
9599
|
+
# Type of the tax.
|
|
9600
|
+
# Corresponds to the JSON property `taxType`
|
|
9601
|
+
# @return [String]
|
|
9602
|
+
attr_accessor :tax_type
|
|
9603
|
+
|
|
9604
|
+
def initialize(**args)
|
|
9605
|
+
update!(**args)
|
|
9606
|
+
end
|
|
9607
|
+
|
|
9608
|
+
# Update properties of this object
|
|
9609
|
+
def update!(**args)
|
|
9610
|
+
@tax_amount = args[:tax_amount] if args.key?(:tax_amount)
|
|
9611
|
+
@tax_name = args[:tax_name] if args.key?(:tax_name)
|
|
9612
|
+
@tax_type = args[:tax_type] if args.key?(:tax_type)
|
|
9613
|
+
end
|
|
9614
|
+
end
|
|
9615
|
+
|
|
8913
9616
|
# The single value of a rate group or the value of a rate group table's cell.
|
|
8914
9617
|
# Exactly one of noShipping, flatRate, pricePercentage, carrierRateName,
|
|
8915
9618
|
# subtableName must be set.
|