1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 package content
52
53 import (
54 "bytes"
55 "context"
56 "encoding/json"
57 "errors"
58 "fmt"
59 "io"
60 "net/http"
61 "net/url"
62 "strconv"
63 "strings"
64
65 googleapi "google.golang.org/api/googleapi"
66 internal "google.golang.org/api/internal"
67 gensupport "google.golang.org/api/internal/gensupport"
68 option "google.golang.org/api/option"
69 internaloption "google.golang.org/api/option/internaloption"
70 htransport "google.golang.org/api/transport/http"
71 )
72
73
74
75 var _ = bytes.NewBuffer
76 var _ = strconv.Itoa
77 var _ = fmt.Sprintf
78 var _ = json.NewDecoder
79 var _ = io.Copy
80 var _ = url.Parse
81 var _ = gensupport.MarshalJSON
82 var _ = googleapi.Version
83 var _ = errors.New
84 var _ = strings.Replace
85 var _ = context.Canceled
86 var _ = internaloption.WithDefaultEndpoint
87 var _ = internal.Version
88
89 const apiId = "content:v2.1"
90 const apiName = "content"
91 const apiVersion = "v2.1"
92 const basePath = "https://shoppingcontent.googleapis.com/content/v2.1/"
93 const basePathTemplate = "https://shoppingcontent.UNIVERSE_DOMAIN/content/v2.1/"
94 const mtlsBasePath = "https://shoppingcontent.mtls.googleapis.com/content/v2.1/"
95
96
97 const (
98
99 ContentScope = "https://www.googleapis.com/auth/content"
100 )
101
102
103 func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
104 scopesOption := internaloption.WithDefaultScopes(
105 "https://www.googleapis.com/auth/content",
106 )
107
108 opts = append([]option.ClientOption{scopesOption}, opts...)
109 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
110 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
111 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
112 opts = append(opts, internaloption.EnableNewAuthLibrary())
113 client, endpoint, err := htransport.NewClient(ctx, opts...)
114 if err != nil {
115 return nil, err
116 }
117 s, err := New(client)
118 if err != nil {
119 return nil, err
120 }
121 if endpoint != "" {
122 s.BasePath = endpoint
123 }
124 return s, nil
125 }
126
127
128
129
130
131
132 func New(client *http.Client) (*APIService, error) {
133 if client == nil {
134 return nil, errors.New("client is nil")
135 }
136 s := &APIService{client: client, BasePath: basePath}
137 s.Accounts = NewAccountsService(s)
138 s.Accountstatuses = NewAccountstatusesService(s)
139 s.Accounttax = NewAccounttaxService(s)
140 s.Buyongoogleprograms = NewBuyongoogleprogramsService(s)
141 s.Collections = NewCollectionsService(s)
142 s.Collectionstatuses = NewCollectionstatusesService(s)
143 s.Conversionsources = NewConversionsourcesService(s)
144 s.Csses = NewCssesService(s)
145 s.Datafeeds = NewDatafeedsService(s)
146 s.Datafeedstatuses = NewDatafeedstatusesService(s)
147 s.Freelistingsprogram = NewFreelistingsprogramService(s)
148 s.Liasettings = NewLiasettingsService(s)
149 s.Localinventory = NewLocalinventoryService(s)
150 s.Merchantsupport = NewMerchantsupportService(s)
151 s.Orderinvoices = NewOrderinvoicesService(s)
152 s.Orderreports = NewOrderreportsService(s)
153 s.Orderreturns = NewOrderreturnsService(s)
154 s.Orders = NewOrdersService(s)
155 s.Ordertrackingsignals = NewOrdertrackingsignalsService(s)
156 s.Pos = NewPosService(s)
157 s.Productdeliverytime = NewProductdeliverytimeService(s)
158 s.Products = NewProductsService(s)
159 s.Productstatuses = NewProductstatusesService(s)
160 s.Promotions = NewPromotionsService(s)
161 s.Pubsubnotificationsettings = NewPubsubnotificationsettingsService(s)
162 s.Quotas = NewQuotasService(s)
163 s.Recommendations = NewRecommendationsService(s)
164 s.Regionalinventory = NewRegionalinventoryService(s)
165 s.Regions = NewRegionsService(s)
166 s.Reports = NewReportsService(s)
167 s.Returnaddress = NewReturnaddressService(s)
168 s.Returnpolicy = NewReturnpolicyService(s)
169 s.Returnpolicyonline = NewReturnpolicyonlineService(s)
170 s.Settlementreports = NewSettlementreportsService(s)
171 s.Settlementtransactions = NewSettlementtransactionsService(s)
172 s.Shippingsettings = NewShippingsettingsService(s)
173 s.Shoppingadsprogram = NewShoppingadsprogramService(s)
174 return s, nil
175 }
176
177 type APIService struct {
178 client *http.Client
179 BasePath string
180 UserAgent string
181
182 Accounts *AccountsService
183
184 Accountstatuses *AccountstatusesService
185
186 Accounttax *AccounttaxService
187
188 Buyongoogleprograms *BuyongoogleprogramsService
189
190 Collections *CollectionsService
191
192 Collectionstatuses *CollectionstatusesService
193
194 Conversionsources *ConversionsourcesService
195
196 Csses *CssesService
197
198 Datafeeds *DatafeedsService
199
200 Datafeedstatuses *DatafeedstatusesService
201
202 Freelistingsprogram *FreelistingsprogramService
203
204 Liasettings *LiasettingsService
205
206 Localinventory *LocalinventoryService
207
208 Merchantsupport *MerchantsupportService
209
210 Orderinvoices *OrderinvoicesService
211
212 Orderreports *OrderreportsService
213
214 Orderreturns *OrderreturnsService
215
216 Orders *OrdersService
217
218 Ordertrackingsignals *OrdertrackingsignalsService
219
220 Pos *PosService
221
222 Productdeliverytime *ProductdeliverytimeService
223
224 Products *ProductsService
225
226 Productstatuses *ProductstatusesService
227
228 Promotions *PromotionsService
229
230 Pubsubnotificationsettings *PubsubnotificationsettingsService
231
232 Quotas *QuotasService
233
234 Recommendations *RecommendationsService
235
236 Regionalinventory *RegionalinventoryService
237
238 Regions *RegionsService
239
240 Reports *ReportsService
241
242 Returnaddress *ReturnaddressService
243
244 Returnpolicy *ReturnpolicyService
245
246 Returnpolicyonline *ReturnpolicyonlineService
247
248 Settlementreports *SettlementreportsService
249
250 Settlementtransactions *SettlementtransactionsService
251
252 Shippingsettings *ShippingsettingsService
253
254 Shoppingadsprogram *ShoppingadsprogramService
255 }
256
257 func (s *APIService) userAgent() string {
258 if s.UserAgent == "" {
259 return googleapi.UserAgent
260 }
261 return googleapi.UserAgent + " " + s.UserAgent
262 }
263
264 func NewAccountsService(s *APIService) *AccountsService {
265 rs := &AccountsService{s: s}
266 rs.Credentials = NewAccountsCredentialsService(s)
267 rs.Labels = NewAccountsLabelsService(s)
268 rs.Returncarrier = NewAccountsReturncarrierService(s)
269 return rs
270 }
271
272 type AccountsService struct {
273 s *APIService
274
275 Credentials *AccountsCredentialsService
276
277 Labels *AccountsLabelsService
278
279 Returncarrier *AccountsReturncarrierService
280 }
281
282 func NewAccountsCredentialsService(s *APIService) *AccountsCredentialsService {
283 rs := &AccountsCredentialsService{s: s}
284 return rs
285 }
286
287 type AccountsCredentialsService struct {
288 s *APIService
289 }
290
291 func NewAccountsLabelsService(s *APIService) *AccountsLabelsService {
292 rs := &AccountsLabelsService{s: s}
293 return rs
294 }
295
296 type AccountsLabelsService struct {
297 s *APIService
298 }
299
300 func NewAccountsReturncarrierService(s *APIService) *AccountsReturncarrierService {
301 rs := &AccountsReturncarrierService{s: s}
302 return rs
303 }
304
305 type AccountsReturncarrierService struct {
306 s *APIService
307 }
308
309 func NewAccountstatusesService(s *APIService) *AccountstatusesService {
310 rs := &AccountstatusesService{s: s}
311 return rs
312 }
313
314 type AccountstatusesService struct {
315 s *APIService
316 }
317
318 func NewAccounttaxService(s *APIService) *AccounttaxService {
319 rs := &AccounttaxService{s: s}
320 return rs
321 }
322
323 type AccounttaxService struct {
324 s *APIService
325 }
326
327 func NewBuyongoogleprogramsService(s *APIService) *BuyongoogleprogramsService {
328 rs := &BuyongoogleprogramsService{s: s}
329 return rs
330 }
331
332 type BuyongoogleprogramsService struct {
333 s *APIService
334 }
335
336 func NewCollectionsService(s *APIService) *CollectionsService {
337 rs := &CollectionsService{s: s}
338 return rs
339 }
340
341 type CollectionsService struct {
342 s *APIService
343 }
344
345 func NewCollectionstatusesService(s *APIService) *CollectionstatusesService {
346 rs := &CollectionstatusesService{s: s}
347 return rs
348 }
349
350 type CollectionstatusesService struct {
351 s *APIService
352 }
353
354 func NewConversionsourcesService(s *APIService) *ConversionsourcesService {
355 rs := &ConversionsourcesService{s: s}
356 return rs
357 }
358
359 type ConversionsourcesService struct {
360 s *APIService
361 }
362
363 func NewCssesService(s *APIService) *CssesService {
364 rs := &CssesService{s: s}
365 return rs
366 }
367
368 type CssesService struct {
369 s *APIService
370 }
371
372 func NewDatafeedsService(s *APIService) *DatafeedsService {
373 rs := &DatafeedsService{s: s}
374 return rs
375 }
376
377 type DatafeedsService struct {
378 s *APIService
379 }
380
381 func NewDatafeedstatusesService(s *APIService) *DatafeedstatusesService {
382 rs := &DatafeedstatusesService{s: s}
383 return rs
384 }
385
386 type DatafeedstatusesService struct {
387 s *APIService
388 }
389
390 func NewFreelistingsprogramService(s *APIService) *FreelistingsprogramService {
391 rs := &FreelistingsprogramService{s: s}
392 rs.Checkoutsettings = NewFreelistingsprogramCheckoutsettingsService(s)
393 return rs
394 }
395
396 type FreelistingsprogramService struct {
397 s *APIService
398
399 Checkoutsettings *FreelistingsprogramCheckoutsettingsService
400 }
401
402 func NewFreelistingsprogramCheckoutsettingsService(s *APIService) *FreelistingsprogramCheckoutsettingsService {
403 rs := &FreelistingsprogramCheckoutsettingsService{s: s}
404 return rs
405 }
406
407 type FreelistingsprogramCheckoutsettingsService struct {
408 s *APIService
409 }
410
411 func NewLiasettingsService(s *APIService) *LiasettingsService {
412 rs := &LiasettingsService{s: s}
413 return rs
414 }
415
416 type LiasettingsService struct {
417 s *APIService
418 }
419
420 func NewLocalinventoryService(s *APIService) *LocalinventoryService {
421 rs := &LocalinventoryService{s: s}
422 return rs
423 }
424
425 type LocalinventoryService struct {
426 s *APIService
427 }
428
429 func NewMerchantsupportService(s *APIService) *MerchantsupportService {
430 rs := &MerchantsupportService{s: s}
431 return rs
432 }
433
434 type MerchantsupportService struct {
435 s *APIService
436 }
437
438 func NewOrderinvoicesService(s *APIService) *OrderinvoicesService {
439 rs := &OrderinvoicesService{s: s}
440 return rs
441 }
442
443 type OrderinvoicesService struct {
444 s *APIService
445 }
446
447 func NewOrderreportsService(s *APIService) *OrderreportsService {
448 rs := &OrderreportsService{s: s}
449 return rs
450 }
451
452 type OrderreportsService struct {
453 s *APIService
454 }
455
456 func NewOrderreturnsService(s *APIService) *OrderreturnsService {
457 rs := &OrderreturnsService{s: s}
458 rs.Labels = NewOrderreturnsLabelsService(s)
459 return rs
460 }
461
462 type OrderreturnsService struct {
463 s *APIService
464
465 Labels *OrderreturnsLabelsService
466 }
467
468 func NewOrderreturnsLabelsService(s *APIService) *OrderreturnsLabelsService {
469 rs := &OrderreturnsLabelsService{s: s}
470 return rs
471 }
472
473 type OrderreturnsLabelsService struct {
474 s *APIService
475 }
476
477 func NewOrdersService(s *APIService) *OrdersService {
478 rs := &OrdersService{s: s}
479 return rs
480 }
481
482 type OrdersService struct {
483 s *APIService
484 }
485
486 func NewOrdertrackingsignalsService(s *APIService) *OrdertrackingsignalsService {
487 rs := &OrdertrackingsignalsService{s: s}
488 return rs
489 }
490
491 type OrdertrackingsignalsService struct {
492 s *APIService
493 }
494
495 func NewPosService(s *APIService) *PosService {
496 rs := &PosService{s: s}
497 return rs
498 }
499
500 type PosService struct {
501 s *APIService
502 }
503
504 func NewProductdeliverytimeService(s *APIService) *ProductdeliverytimeService {
505 rs := &ProductdeliverytimeService{s: s}
506 return rs
507 }
508
509 type ProductdeliverytimeService struct {
510 s *APIService
511 }
512
513 func NewProductsService(s *APIService) *ProductsService {
514 rs := &ProductsService{s: s}
515 return rs
516 }
517
518 type ProductsService struct {
519 s *APIService
520 }
521
522 func NewProductstatusesService(s *APIService) *ProductstatusesService {
523 rs := &ProductstatusesService{s: s}
524 return rs
525 }
526
527 type ProductstatusesService struct {
528 s *APIService
529 }
530
531 func NewPromotionsService(s *APIService) *PromotionsService {
532 rs := &PromotionsService{s: s}
533 return rs
534 }
535
536 type PromotionsService struct {
537 s *APIService
538 }
539
540 func NewPubsubnotificationsettingsService(s *APIService) *PubsubnotificationsettingsService {
541 rs := &PubsubnotificationsettingsService{s: s}
542 return rs
543 }
544
545 type PubsubnotificationsettingsService struct {
546 s *APIService
547 }
548
549 func NewQuotasService(s *APIService) *QuotasService {
550 rs := &QuotasService{s: s}
551 return rs
552 }
553
554 type QuotasService struct {
555 s *APIService
556 }
557
558 func NewRecommendationsService(s *APIService) *RecommendationsService {
559 rs := &RecommendationsService{s: s}
560 return rs
561 }
562
563 type RecommendationsService struct {
564 s *APIService
565 }
566
567 func NewRegionalinventoryService(s *APIService) *RegionalinventoryService {
568 rs := &RegionalinventoryService{s: s}
569 return rs
570 }
571
572 type RegionalinventoryService struct {
573 s *APIService
574 }
575
576 func NewRegionsService(s *APIService) *RegionsService {
577 rs := &RegionsService{s: s}
578 return rs
579 }
580
581 type RegionsService struct {
582 s *APIService
583 }
584
585 func NewReportsService(s *APIService) *ReportsService {
586 rs := &ReportsService{s: s}
587 return rs
588 }
589
590 type ReportsService struct {
591 s *APIService
592 }
593
594 func NewReturnaddressService(s *APIService) *ReturnaddressService {
595 rs := &ReturnaddressService{s: s}
596 return rs
597 }
598
599 type ReturnaddressService struct {
600 s *APIService
601 }
602
603 func NewReturnpolicyService(s *APIService) *ReturnpolicyService {
604 rs := &ReturnpolicyService{s: s}
605 return rs
606 }
607
608 type ReturnpolicyService struct {
609 s *APIService
610 }
611
612 func NewReturnpolicyonlineService(s *APIService) *ReturnpolicyonlineService {
613 rs := &ReturnpolicyonlineService{s: s}
614 return rs
615 }
616
617 type ReturnpolicyonlineService struct {
618 s *APIService
619 }
620
621 func NewSettlementreportsService(s *APIService) *SettlementreportsService {
622 rs := &SettlementreportsService{s: s}
623 return rs
624 }
625
626 type SettlementreportsService struct {
627 s *APIService
628 }
629
630 func NewSettlementtransactionsService(s *APIService) *SettlementtransactionsService {
631 rs := &SettlementtransactionsService{s: s}
632 return rs
633 }
634
635 type SettlementtransactionsService struct {
636 s *APIService
637 }
638
639 func NewShippingsettingsService(s *APIService) *ShippingsettingsService {
640 rs := &ShippingsettingsService{s: s}
641 return rs
642 }
643
644 type ShippingsettingsService struct {
645 s *APIService
646 }
647
648 func NewShoppingadsprogramService(s *APIService) *ShoppingadsprogramService {
649 rs := &ShoppingadsprogramService{s: s}
650 return rs
651 }
652
653 type ShoppingadsprogramService struct {
654 s *APIService
655 }
656
657
658
659
660 type Account struct {
661
662
663 AccountManagement string `json:"accountManagement,omitempty"`
664
665
666
667
668
669 AdsLinks []*AccountAdsLink `json:"adsLinks,omitempty"`
670
671 AdultContent bool `json:"adultContent,omitempty"`
672
673
674
675 AutomaticImprovements *AccountAutomaticImprovements `json:"automaticImprovements,omitempty"`
676
677
678 AutomaticLabelIds googleapi.Uint64s `json:"automaticLabelIds,omitempty"`
679
680
681 BusinessIdentity *AccountBusinessIdentity `json:"businessIdentity,omitempty"`
682
683 BusinessInformation *AccountBusinessInformation `json:"businessInformation,omitempty"`
684
685 ConversionSettings *AccountConversionSettings `json:"conversionSettings,omitempty"`
686
687 CssId uint64 `json:"cssId,omitempty,string"`
688
689
690 GoogleMyBusinessLink *AccountGoogleMyBusinessLink `json:"googleMyBusinessLink,omitempty"`
691
692 Id uint64 `json:"id,omitempty,string"`
693
694
695 Kind string `json:"kind,omitempty"`
696
697
698 LabelIds googleapi.Uint64s `json:"labelIds,omitempty"`
699
700 Name string `json:"name,omitempty"`
701
702
703 SellerId string `json:"sellerId,omitempty"`
704
705
706 Users []*AccountUser `json:"users,omitempty"`
707
708 WebsiteUrl string `json:"websiteUrl,omitempty"`
709
710
711
712
713
714 YoutubeChannelLinks []*AccountYouTubeChannelLink `json:"youtubeChannelLinks,omitempty"`
715
716
717 googleapi.ServerResponse `json:"-"`
718
719
720
721
722
723 ForceSendFields []string `json:"-"`
724
725
726
727
728 NullFields []string `json:"-"`
729 }
730
731 func (s *Account) MarshalJSON() ([]byte, error) {
732 type NoMethod Account
733 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
734 }
735
736 type AccountAddress struct {
737
738
739
740 Country string `json:"country,omitempty"`
741
742
743 Locality string `json:"locality,omitempty"`
744
745 PostalCode string `json:"postalCode,omitempty"`
746
747
748 Region string `json:"region,omitempty"`
749
750
751 StreetAddress string `json:"streetAddress,omitempty"`
752
753
754
755
756
757 ForceSendFields []string `json:"-"`
758
759
760
761
762 NullFields []string `json:"-"`
763 }
764
765 func (s *AccountAddress) MarshalJSON() ([]byte, error) {
766 type NoMethod AccountAddress
767 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
768 }
769
770 type AccountAdsLink struct {
771
772 AdsId uint64 `json:"adsId,omitempty,string"`
773
774
775
776
777
778
779
780
781
782
783 Status string `json:"status,omitempty"`
784
785
786
787
788
789 ForceSendFields []string `json:"-"`
790
791
792
793
794 NullFields []string `json:"-"`
795 }
796
797 func (s *AccountAdsLink) MarshalJSON() ([]byte, error) {
798 type NoMethod AccountAdsLink
799 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
800 }
801
802
803
804 type AccountAutomaticImprovements struct {
805
806
807
808
809
810
811
812
813 ImageImprovements *AccountImageImprovements `json:"imageImprovements,omitempty"`
814
815
816
817
818
819
820
821 ItemUpdates *AccountItemUpdates `json:"itemUpdates,omitempty"`
822
823
824
825
826
827
828
829
830
831
832
833 ShippingImprovements *AccountShippingImprovements `json:"shippingImprovements,omitempty"`
834
835
836
837
838
839 ForceSendFields []string `json:"-"`
840
841
842
843
844 NullFields []string `json:"-"`
845 }
846
847 func (s *AccountAutomaticImprovements) MarshalJSON() ([]byte, error) {
848 type NoMethod AccountAutomaticImprovements
849 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
850 }
851
852
853
854
855 type AccountBusinessIdentity struct {
856
857
858
859
860 BlackOwned *AccountIdentityType `json:"blackOwned,omitempty"`
861
862
863
864
865
866
867 IncludeForPromotions bool `json:"includeForPromotions,omitempty"`
868
869
870
871
872 LatinoOwned *AccountIdentityType `json:"latinoOwned,omitempty"`
873
874
875
876
877 SmallBusiness *AccountIdentityType `json:"smallBusiness,omitempty"`
878
879
880
881
882 VeteranOwned *AccountIdentityType `json:"veteranOwned,omitempty"`
883
884
885
886
887 WomenOwned *AccountIdentityType `json:"womenOwned,omitempty"`
888
889
890
891
892
893 ForceSendFields []string `json:"-"`
894
895
896
897
898 NullFields []string `json:"-"`
899 }
900
901 func (s *AccountBusinessIdentity) MarshalJSON() ([]byte, error) {
902 type NoMethod AccountBusinessIdentity
903 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
904 }
905
906 type AccountBusinessInformation struct {
907
908 Address *AccountAddress `json:"address,omitempty"`
909
910 CustomerService *AccountCustomerService `json:"customerService,omitempty"`
911
912
913
914
915 KoreanBusinessRegistrationNumber string `json:"koreanBusinessRegistrationNumber,omitempty"`
916
917
918
919
920
921 PhoneNumber string `json:"phoneNumber,omitempty"`
922
923
924
925 PhoneVerificationStatus string `json:"phoneVerificationStatus,omitempty"`
926
927
928
929
930
931 ForceSendFields []string `json:"-"`
932
933
934
935
936 NullFields []string `json:"-"`
937 }
938
939 func (s *AccountBusinessInformation) MarshalJSON() ([]byte, error) {
940 type NoMethod AccountBusinessInformation
941 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
942 }
943
944
945 type AccountConversionSettings struct {
946
947
948
949
950 FreeListingsAutoTaggingEnabled bool `json:"freeListingsAutoTaggingEnabled,omitempty"`
951
952
953
954
955
956
957 ForceSendFields []string `json:"-"`
958
959
960
961
962 NullFields []string `json:"-"`
963 }
964
965 func (s *AccountConversionSettings) MarshalJSON() ([]byte, error) {
966 type NoMethod AccountConversionSettings
967 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
968 }
969
970
971
972 type AccountCredentials struct {
973
974 AccessToken string `json:"accessToken,omitempty"`
975
976
977 ExpiresIn int64 `json:"expiresIn,omitempty,string"`
978
979
980
981
982
983
984
985
986 Purpose string `json:"purpose,omitempty"`
987
988
989 googleapi.ServerResponse `json:"-"`
990
991
992
993
994
995 ForceSendFields []string `json:"-"`
996
997
998
999
1000 NullFields []string `json:"-"`
1001 }
1002
1003 func (s *AccountCredentials) MarshalJSON() ([]byte, error) {
1004 type NoMethod AccountCredentials
1005 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1006 }
1007
1008 type AccountCustomerService struct {
1009
1010 Email string `json:"email,omitempty"`
1011
1012 PhoneNumber string `json:"phoneNumber,omitempty"`
1013
1014 Url string `json:"url,omitempty"`
1015
1016
1017
1018
1019
1020 ForceSendFields []string `json:"-"`
1021
1022
1023
1024
1025 NullFields []string `json:"-"`
1026 }
1027
1028 func (s *AccountCustomerService) MarshalJSON() ([]byte, error) {
1029 type NoMethod AccountCustomerService
1030 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1031 }
1032
1033 type AccountGoogleMyBusinessLink struct {
1034
1035
1036
1037 GmbAccountId string `json:"gmbAccountId,omitempty"`
1038
1039
1040
1041 GmbEmail string `json:"gmbEmail,omitempty"`
1042
1043
1044 Status string `json:"status,omitempty"`
1045
1046
1047
1048
1049
1050 ForceSendFields []string `json:"-"`
1051
1052
1053
1054
1055 NullFields []string `json:"-"`
1056 }
1057
1058 func (s *AccountGoogleMyBusinessLink) MarshalJSON() ([]byte, error) {
1059 type NoMethod AccountGoogleMyBusinessLink
1060 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1061 }
1062
1063 type AccountIdentifier struct {
1064
1065
1066 AggregatorId uint64 `json:"aggregatorId,omitempty,string"`
1067
1068
1069 MerchantId uint64 `json:"merchantId,omitempty,string"`
1070
1071
1072
1073
1074
1075 ForceSendFields []string `json:"-"`
1076
1077
1078
1079
1080 NullFields []string `json:"-"`
1081 }
1082
1083 func (s *AccountIdentifier) MarshalJSON() ([]byte, error) {
1084 type NoMethod AccountIdentifier
1085 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1086 }
1087
1088
1089 type AccountIdentityType struct {
1090
1091
1092
1093 SelfIdentified bool `json:"selfIdentified,omitempty"`
1094
1095
1096
1097
1098
1099 ForceSendFields []string `json:"-"`
1100
1101
1102
1103
1104 NullFields []string `json:"-"`
1105 }
1106
1107 func (s *AccountIdentityType) MarshalJSON() ([]byte, error) {
1108 type NoMethod AccountIdentityType
1109 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1110 }
1111
1112
1113
1114
1115
1116
1117
1118
1119 type AccountImageImprovements struct {
1120
1121
1122
1123
1124 AccountImageImprovementsSettings *AccountImageImprovementsSettings `json:"accountImageImprovementsSettings,omitempty"`
1125
1126
1127
1128
1129
1130 EffectiveAllowAutomaticImageImprovements bool `json:"effectiveAllowAutomaticImageImprovements,omitempty"`
1131
1132
1133
1134
1135
1136
1137 ForceSendFields []string `json:"-"`
1138
1139
1140
1141
1142
1143 NullFields []string `json:"-"`
1144 }
1145
1146 func (s *AccountImageImprovements) MarshalJSON() ([]byte, error) {
1147 type NoMethod AccountImageImprovements
1148 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1149 }
1150
1151
1152
1153 type AccountImageImprovementsSettings struct {
1154
1155 AllowAutomaticImageImprovements bool `json:"allowAutomaticImageImprovements,omitempty"`
1156
1157
1158
1159
1160
1161
1162 ForceSendFields []string `json:"-"`
1163
1164
1165
1166
1167 NullFields []string `json:"-"`
1168 }
1169
1170 func (s *AccountImageImprovementsSettings) MarshalJSON() ([]byte, error) {
1171 type NoMethod AccountImageImprovementsSettings
1172 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1173 }
1174
1175
1176 type AccountIssue struct {
1177
1178
1179
1180
1181
1182 Actions []*Action `json:"actions,omitempty"`
1183
1184
1185
1186
1187
1188
1189
1190
1191 Impact *AccountIssueImpact `json:"impact,omitempty"`
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231 PrerenderedContent string `json:"prerenderedContent,omitempty"`
1232
1233 Title string `json:"title,omitempty"`
1234
1235
1236
1237
1238
1239 ForceSendFields []string `json:"-"`
1240
1241
1242
1243
1244 NullFields []string `json:"-"`
1245 }
1246
1247 func (s *AccountIssue) MarshalJSON() ([]byte, error) {
1248 type NoMethod AccountIssue
1249 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1250 }
1251
1252
1253 type AccountIssueImpact struct {
1254
1255
1256
1257
1258
1259 Breakdowns []*Breakdown `json:"breakdowns,omitempty"`
1260
1261
1262
1263 Message string `json:"message,omitempty"`
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276 Severity string `json:"severity,omitempty"`
1277
1278
1279
1280
1281
1282 ForceSendFields []string `json:"-"`
1283
1284
1285
1286
1287 NullFields []string `json:"-"`
1288 }
1289
1290 func (s *AccountIssueImpact) MarshalJSON() ([]byte, error) {
1291 type NoMethod AccountIssueImpact
1292 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1293 }
1294
1295
1296
1297
1298
1299
1300
1301 type AccountItemUpdates struct {
1302
1303
1304
1305
1306 AccountItemUpdatesSettings *AccountItemUpdatesSettings `json:"accountItemUpdatesSettings,omitempty"`
1307
1308
1309
1310
1311 EffectiveAllowAvailabilityUpdates bool `json:"effectiveAllowAvailabilityUpdates,omitempty"`
1312
1313
1314
1315
1316 EffectiveAllowConditionUpdates bool `json:"effectiveAllowConditionUpdates,omitempty"`
1317
1318
1319
1320
1321 EffectiveAllowPriceUpdates bool `json:"effectiveAllowPriceUpdates,omitempty"`
1322
1323
1324
1325
1326 EffectiveAllowStrictAvailabilityUpdates bool `json:"effectiveAllowStrictAvailabilityUpdates,omitempty"`
1327
1328
1329
1330
1331
1332 ForceSendFields []string `json:"-"`
1333
1334
1335
1336
1337 NullFields []string `json:"-"`
1338 }
1339
1340 func (s *AccountItemUpdates) MarshalJSON() ([]byte, error) {
1341 type NoMethod AccountItemUpdates
1342 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1343 }
1344
1345
1346 type AccountItemUpdatesSettings struct {
1347
1348
1349
1350
1351
1352 AllowAvailabilityUpdates bool `json:"allowAvailabilityUpdates,omitempty"`
1353
1354
1355
1356 AllowConditionUpdates bool `json:"allowConditionUpdates,omitempty"`
1357
1358
1359 AllowPriceUpdates bool `json:"allowPriceUpdates,omitempty"`
1360
1361
1362
1363
1364
1365
1366
1367 AllowStrictAvailabilityUpdates bool `json:"allowStrictAvailabilityUpdates,omitempty"`
1368
1369
1370
1371
1372
1373 ForceSendFields []string `json:"-"`
1374
1375
1376
1377
1378 NullFields []string `json:"-"`
1379 }
1380
1381 func (s *AccountItemUpdatesSettings) MarshalJSON() ([]byte, error) {
1382 type NoMethod AccountItemUpdatesSettings
1383 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1384 }
1385
1386
1387
1388 type AccountLabel struct {
1389
1390 AccountId int64 `json:"accountId,omitempty,string"`
1391
1392 Description string `json:"description,omitempty"`
1393
1394 LabelId int64 `json:"labelId,omitempty,string"`
1395
1396
1397
1398
1399
1400
1401
1402 LabelType string `json:"labelType,omitempty"`
1403
1404 Name string `json:"name,omitempty"`
1405
1406
1407 googleapi.ServerResponse `json:"-"`
1408
1409
1410
1411
1412
1413 ForceSendFields []string `json:"-"`
1414
1415
1416
1417
1418 NullFields []string `json:"-"`
1419 }
1420
1421 func (s *AccountLabel) MarshalJSON() ([]byte, error) {
1422 type NoMethod AccountLabel
1423 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1424 }
1425
1426
1427
1428 type AccountReturnCarrier struct {
1429
1430
1431 CarrierAccountId int64 `json:"carrierAccountId,omitempty,string"`
1432
1433 CarrierAccountName string `json:"carrierAccountName,omitempty"`
1434
1435 CarrierAccountNumber string `json:"carrierAccountNumber,omitempty"`
1436
1437
1438
1439
1440
1441
1442 CarrierCode string `json:"carrierCode,omitempty"`
1443
1444
1445 googleapi.ServerResponse `json:"-"`
1446
1447
1448
1449
1450
1451 ForceSendFields []string `json:"-"`
1452
1453
1454
1455
1456 NullFields []string `json:"-"`
1457 }
1458
1459 func (s *AccountReturnCarrier) MarshalJSON() ([]byte, error) {
1460 type NoMethod AccountReturnCarrier
1461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1462 }
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474 type AccountShippingImprovements struct {
1475
1476 AllowShippingImprovements bool `json:"allowShippingImprovements,omitempty"`
1477
1478
1479
1480
1481
1482 ForceSendFields []string `json:"-"`
1483
1484
1485
1486
1487 NullFields []string `json:"-"`
1488 }
1489
1490 func (s *AccountShippingImprovements) MarshalJSON() ([]byte, error) {
1491 type NoMethod AccountShippingImprovements
1492 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1493 }
1494
1495
1496
1497
1498 type AccountStatus struct {
1499
1500 AccountId string `json:"accountId,omitempty"`
1501
1502 AccountLevelIssues []*AccountStatusAccountLevelIssue `json:"accountLevelIssues,omitempty"`
1503
1504
1505 AccountManagement string `json:"accountManagement,omitempty"`
1506
1507
1508 Kind string `json:"kind,omitempty"`
1509
1510
1511 Products []*AccountStatusProducts `json:"products,omitempty"`
1512
1513 WebsiteClaimed bool `json:"websiteClaimed,omitempty"`
1514
1515
1516 googleapi.ServerResponse `json:"-"`
1517
1518
1519
1520
1521
1522 ForceSendFields []string `json:"-"`
1523
1524
1525
1526
1527 NullFields []string `json:"-"`
1528 }
1529
1530 func (s *AccountStatus) MarshalJSON() ([]byte, error) {
1531 type NoMethod AccountStatus
1532 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1533 }
1534
1535 type AccountStatusAccountLevelIssue struct {
1536
1537 Country string `json:"country,omitempty"`
1538
1539
1540 Destination string `json:"destination,omitempty"`
1541
1542 Detail string `json:"detail,omitempty"`
1543
1544 Documentation string `json:"documentation,omitempty"`
1545
1546 Id string `json:"id,omitempty"`
1547
1548
1549 Severity string `json:"severity,omitempty"`
1550
1551 Title string `json:"title,omitempty"`
1552
1553
1554
1555
1556
1557 ForceSendFields []string `json:"-"`
1558
1559
1560
1561
1562 NullFields []string `json:"-"`
1563 }
1564
1565 func (s *AccountStatusAccountLevelIssue) MarshalJSON() ([]byte, error) {
1566 type NoMethod AccountStatusAccountLevelIssue
1567 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1568 }
1569
1570 type AccountStatusItemLevelIssue struct {
1571
1572
1573 AttributeName string `json:"attributeName,omitempty"`
1574
1575 Code string `json:"code,omitempty"`
1576
1577 Description string `json:"description,omitempty"`
1578
1579 Detail string `json:"detail,omitempty"`
1580
1581 Documentation string `json:"documentation,omitempty"`
1582
1583 NumItems int64 `json:"numItems,omitempty,string"`
1584
1585 Resolution string `json:"resolution,omitempty"`
1586
1587 Servability string `json:"servability,omitempty"`
1588
1589
1590
1591
1592
1593 ForceSendFields []string `json:"-"`
1594
1595
1596
1597
1598 NullFields []string `json:"-"`
1599 }
1600
1601 func (s *AccountStatusItemLevelIssue) MarshalJSON() ([]byte, error) {
1602 type NoMethod AccountStatusItemLevelIssue
1603 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1604 }
1605
1606 type AccountStatusProducts struct {
1607
1608
1609 Channel string `json:"channel,omitempty"`
1610
1611 Country string `json:"country,omitempty"`
1612
1613 Destination string `json:"destination,omitempty"`
1614
1615 ItemLevelIssues []*AccountStatusItemLevelIssue `json:"itemLevelIssues,omitempty"`
1616
1617 Statistics *AccountStatusStatistics `json:"statistics,omitempty"`
1618
1619
1620
1621
1622
1623 ForceSendFields []string `json:"-"`
1624
1625
1626
1627
1628 NullFields []string `json:"-"`
1629 }
1630
1631 func (s *AccountStatusProducts) MarshalJSON() ([]byte, error) {
1632 type NoMethod AccountStatusProducts
1633 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1634 }
1635
1636 type AccountStatusStatistics struct {
1637
1638 Active int64 `json:"active,omitempty,string"`
1639
1640 Disapproved int64 `json:"disapproved,omitempty,string"`
1641
1642 Expiring int64 `json:"expiring,omitempty,string"`
1643
1644 Pending int64 `json:"pending,omitempty,string"`
1645
1646
1647
1648
1649
1650 ForceSendFields []string `json:"-"`
1651
1652
1653
1654
1655 NullFields []string `json:"-"`
1656 }
1657
1658 func (s *AccountStatusStatistics) MarshalJSON() ([]byte, error) {
1659 type NoMethod AccountStatusStatistics
1660 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1661 }
1662
1663
1664
1665 type AccountTax struct {
1666
1667
1668 AccountId uint64 `json:"accountId,omitempty,string"`
1669
1670
1671 Kind string `json:"kind,omitempty"`
1672
1673
1674 Rules []*AccountTaxTaxRule `json:"rules,omitempty"`
1675
1676
1677 googleapi.ServerResponse `json:"-"`
1678
1679
1680
1681
1682
1683 ForceSendFields []string `json:"-"`
1684
1685
1686
1687
1688 NullFields []string `json:"-"`
1689 }
1690
1691 func (s *AccountTax) MarshalJSON() ([]byte, error) {
1692 type NoMethod AccountTax
1693 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1694 }
1695
1696
1697
1698 type AccountTaxTaxRule struct {
1699
1700 Country string `json:"country,omitempty"`
1701
1702
1703 LocationId uint64 `json:"locationId,omitempty,string"`
1704
1705
1706 RatePercent string `json:"ratePercent,omitempty"`
1707
1708 ShippingTaxed bool `json:"shippingTaxed,omitempty"`
1709
1710
1711 UseGlobalRate bool `json:"useGlobalRate,omitempty"`
1712
1713
1714
1715
1716
1717 ForceSendFields []string `json:"-"`
1718
1719
1720
1721
1722 NullFields []string `json:"-"`
1723 }
1724
1725 func (s *AccountTaxTaxRule) MarshalJSON() ([]byte, error) {
1726 type NoMethod AccountTaxTaxRule
1727 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1728 }
1729
1730 type AccountUser struct {
1731
1732 Admin bool `json:"admin,omitempty"`
1733
1734 EmailAddress string `json:"emailAddress,omitempty"`
1735
1736 OrderManager bool `json:"orderManager,omitempty"`
1737
1738 PaymentsAnalyst bool `json:"paymentsAnalyst,omitempty"`
1739
1740 PaymentsManager bool `json:"paymentsManager,omitempty"`
1741
1742
1743 ReportingManager bool `json:"reportingManager,omitempty"`
1744
1745
1746
1747
1748
1749 ForceSendFields []string `json:"-"`
1750
1751
1752
1753
1754 NullFields []string `json:"-"`
1755 }
1756
1757 func (s *AccountUser) MarshalJSON() ([]byte, error) {
1758 type NoMethod AccountUser
1759 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1760 }
1761
1762 type AccountYouTubeChannelLink struct {
1763
1764 ChannelId string `json:"channelId,omitempty"`
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775 Status string `json:"status,omitempty"`
1776
1777
1778
1779
1780
1781 ForceSendFields []string `json:"-"`
1782
1783
1784
1785
1786 NullFields []string `json:"-"`
1787 }
1788
1789 func (s *AccountYouTubeChannelLink) MarshalJSON() ([]byte, error) {
1790 type NoMethod AccountYouTubeChannelLink
1791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1792 }
1793
1794 type AccountsAuthInfoResponse struct {
1795
1796
1797
1798
1799
1800 AccountIdentifiers []*AccountIdentifier `json:"accountIdentifiers,omitempty"`
1801
1802
1803 Kind string `json:"kind,omitempty"`
1804
1805
1806 googleapi.ServerResponse `json:"-"`
1807
1808
1809
1810
1811
1812 ForceSendFields []string `json:"-"`
1813
1814
1815
1816
1817 NullFields []string `json:"-"`
1818 }
1819
1820 func (s *AccountsAuthInfoResponse) MarshalJSON() ([]byte, error) {
1821 type NoMethod AccountsAuthInfoResponse
1822 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1823 }
1824
1825 type AccountsClaimWebsiteResponse struct {
1826
1827
1828 Kind string `json:"kind,omitempty"`
1829
1830
1831 googleapi.ServerResponse `json:"-"`
1832
1833
1834
1835
1836
1837 ForceSendFields []string `json:"-"`
1838
1839
1840
1841
1842 NullFields []string `json:"-"`
1843 }
1844
1845 func (s *AccountsClaimWebsiteResponse) MarshalJSON() ([]byte, error) {
1846 type NoMethod AccountsClaimWebsiteResponse
1847 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1848 }
1849
1850 type AccountsCustomBatchRequest struct {
1851
1852 Entries []*AccountsCustomBatchRequestEntry `json:"entries,omitempty"`
1853
1854
1855
1856
1857
1858 ForceSendFields []string `json:"-"`
1859
1860
1861
1862
1863 NullFields []string `json:"-"`
1864 }
1865
1866 func (s *AccountsCustomBatchRequest) MarshalJSON() ([]byte, error) {
1867 type NoMethod AccountsCustomBatchRequest
1868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1869 }
1870
1871
1872
1873 type AccountsCustomBatchRequestEntry struct {
1874
1875
1876 Account *Account `json:"account,omitempty"`
1877
1878
1879 AccountId uint64 `json:"accountId,omitempty,string"`
1880
1881 BatchId int64 `json:"batchId,omitempty"`
1882
1883
1884 Force bool `json:"force,omitempty"`
1885
1886 LabelIds googleapi.Uint64s `json:"labelIds,omitempty"`
1887
1888 LinkRequest *AccountsCustomBatchRequestEntryLinkRequest `json:"linkRequest,omitempty"`
1889
1890 MerchantId uint64 `json:"merchantId,omitempty,string"`
1891
1892
1893 Method string `json:"method,omitempty"`
1894
1895
1896
1897 Overwrite bool `json:"overwrite,omitempty"`
1898
1899
1900 View string `json:"view,omitempty"`
1901
1902
1903
1904
1905
1906 ForceSendFields []string `json:"-"`
1907
1908
1909
1910
1911 NullFields []string `json:"-"`
1912 }
1913
1914 func (s *AccountsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
1915 type NoMethod AccountsCustomBatchRequestEntry
1916 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1917 }
1918
1919 type AccountsCustomBatchRequestEntryLinkRequest struct {
1920
1921
1922
1923 Action string `json:"action,omitempty"`
1924
1925
1926
1927 LinkType string `json:"linkType,omitempty"`
1928
1929 LinkedAccountId string `json:"linkedAccountId,omitempty"`
1930
1931
1932
1933
1934 Services []string `json:"services,omitempty"`
1935
1936
1937
1938
1939
1940 ForceSendFields []string `json:"-"`
1941
1942
1943
1944
1945 NullFields []string `json:"-"`
1946 }
1947
1948 func (s *AccountsCustomBatchRequestEntryLinkRequest) MarshalJSON() ([]byte, error) {
1949 type NoMethod AccountsCustomBatchRequestEntryLinkRequest
1950 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1951 }
1952
1953 type AccountsCustomBatchResponse struct {
1954
1955 Entries []*AccountsCustomBatchResponseEntry `json:"entries,omitempty"`
1956
1957
1958 Kind string `json:"kind,omitempty"`
1959
1960
1961 googleapi.ServerResponse `json:"-"`
1962
1963
1964
1965
1966
1967 ForceSendFields []string `json:"-"`
1968
1969
1970
1971
1972 NullFields []string `json:"-"`
1973 }
1974
1975 func (s *AccountsCustomBatchResponse) MarshalJSON() ([]byte, error) {
1976 type NoMethod AccountsCustomBatchResponse
1977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1978 }
1979
1980
1981
1982 type AccountsCustomBatchResponseEntry struct {
1983
1984
1985 Account *Account `json:"account,omitempty"`
1986
1987 BatchId int64 `json:"batchId,omitempty"`
1988
1989
1990 Errors *Errors `json:"errors,omitempty"`
1991
1992
1993 Kind string `json:"kind,omitempty"`
1994
1995
1996
1997
1998
1999 ForceSendFields []string `json:"-"`
2000
2001
2002
2003
2004 NullFields []string `json:"-"`
2005 }
2006
2007 func (s *AccountsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
2008 type NoMethod AccountsCustomBatchResponseEntry
2009 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2010 }
2011
2012 type AccountsLinkRequest struct {
2013
2014
2015
2016 Action string `json:"action,omitempty"`
2017
2018
2019 ECommercePlatformLinkInfo *ECommercePlatformLinkInfo `json:"eCommercePlatformLinkInfo,omitempty"`
2020
2021
2022 LinkType string `json:"linkType,omitempty"`
2023
2024 LinkedAccountId string `json:"linkedAccountId,omitempty"`
2025
2026
2027 PaymentServiceProviderLinkInfo *PaymentServiceProviderLinkInfo `json:"paymentServiceProviderLinkInfo,omitempty"`
2028
2029
2030
2031 Services []string `json:"services,omitempty"`
2032
2033
2034
2035
2036
2037 ForceSendFields []string `json:"-"`
2038
2039
2040
2041
2042 NullFields []string `json:"-"`
2043 }
2044
2045 func (s *AccountsLinkRequest) MarshalJSON() ([]byte, error) {
2046 type NoMethod AccountsLinkRequest
2047 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2048 }
2049
2050 type AccountsLinkResponse struct {
2051
2052
2053 Kind string `json:"kind,omitempty"`
2054
2055
2056 googleapi.ServerResponse `json:"-"`
2057
2058
2059
2060
2061
2062 ForceSendFields []string `json:"-"`
2063
2064
2065
2066
2067 NullFields []string `json:"-"`
2068 }
2069
2070 func (s *AccountsLinkResponse) MarshalJSON() ([]byte, error) {
2071 type NoMethod AccountsLinkResponse
2072 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2073 }
2074
2075 type AccountsListLinksResponse struct {
2076
2077
2078 Kind string `json:"kind,omitempty"`
2079
2080 Links []*LinkedAccount `json:"links,omitempty"`
2081
2082 NextPageToken string `json:"nextPageToken,omitempty"`
2083
2084
2085 googleapi.ServerResponse `json:"-"`
2086
2087
2088
2089
2090
2091 ForceSendFields []string `json:"-"`
2092
2093
2094
2095
2096 NullFields []string `json:"-"`
2097 }
2098
2099 func (s *AccountsListLinksResponse) MarshalJSON() ([]byte, error) {
2100 type NoMethod AccountsListLinksResponse
2101 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2102 }
2103
2104 type AccountsListResponse struct {
2105
2106
2107 Kind string `json:"kind,omitempty"`
2108
2109 NextPageToken string `json:"nextPageToken,omitempty"`
2110 Resources []*Account `json:"resources,omitempty"`
2111
2112
2113 googleapi.ServerResponse `json:"-"`
2114
2115
2116
2117
2118
2119 ForceSendFields []string `json:"-"`
2120
2121
2122
2123
2124 NullFields []string `json:"-"`
2125 }
2126
2127 func (s *AccountsListResponse) MarshalJSON() ([]byte, error) {
2128 type NoMethod AccountsListResponse
2129 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2130 }
2131
2132 type AccountsUpdateLabelsRequest struct {
2133
2134 LabelIds googleapi.Uint64s `json:"labelIds,omitempty"`
2135
2136
2137
2138
2139
2140 ForceSendFields []string `json:"-"`
2141
2142
2143
2144
2145 NullFields []string `json:"-"`
2146 }
2147
2148 func (s *AccountsUpdateLabelsRequest) MarshalJSON() ([]byte, error) {
2149 type NoMethod AccountsUpdateLabelsRequest
2150 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2151 }
2152
2153 type AccountsUpdateLabelsResponse struct {
2154
2155
2156 Kind string `json:"kind,omitempty"`
2157
2158
2159 googleapi.ServerResponse `json:"-"`
2160
2161
2162
2163
2164
2165 ForceSendFields []string `json:"-"`
2166
2167
2168
2169
2170 NullFields []string `json:"-"`
2171 }
2172
2173 func (s *AccountsUpdateLabelsResponse) MarshalJSON() ([]byte, error) {
2174 type NoMethod AccountsUpdateLabelsResponse
2175 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2176 }
2177
2178 type AccountstatusesCustomBatchRequest struct {
2179
2180 Entries []*AccountstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
2181
2182
2183
2184
2185
2186 ForceSendFields []string `json:"-"`
2187
2188
2189
2190
2191 NullFields []string `json:"-"`
2192 }
2193
2194 func (s *AccountstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) {
2195 type NoMethod AccountstatusesCustomBatchRequest
2196 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2197 }
2198
2199
2200
2201 type AccountstatusesCustomBatchRequestEntry struct {
2202
2203 AccountId uint64 `json:"accountId,omitempty,string"`
2204
2205 BatchId int64 `json:"batchId,omitempty"`
2206
2207
2208 Destinations []string `json:"destinations,omitempty"`
2209
2210 MerchantId uint64 `json:"merchantId,omitempty,string"`
2211
2212 Method string `json:"method,omitempty"`
2213
2214
2215
2216
2217
2218 ForceSendFields []string `json:"-"`
2219
2220
2221
2222
2223 NullFields []string `json:"-"`
2224 }
2225
2226 func (s *AccountstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
2227 type NoMethod AccountstatusesCustomBatchRequestEntry
2228 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2229 }
2230
2231 type AccountstatusesCustomBatchResponse struct {
2232
2233 Entries []*AccountstatusesCustomBatchResponseEntry `json:"entries,omitempty"`
2234
2235
2236 Kind string `json:"kind,omitempty"`
2237
2238
2239 googleapi.ServerResponse `json:"-"`
2240
2241
2242
2243
2244
2245 ForceSendFields []string `json:"-"`
2246
2247
2248
2249
2250 NullFields []string `json:"-"`
2251 }
2252
2253 func (s *AccountstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) {
2254 type NoMethod AccountstatusesCustomBatchResponse
2255 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2256 }
2257
2258
2259
2260 type AccountstatusesCustomBatchResponseEntry struct {
2261
2262
2263 AccountStatus *AccountStatus `json:"accountStatus,omitempty"`
2264
2265 BatchId int64 `json:"batchId,omitempty"`
2266
2267
2268 Errors *Errors `json:"errors,omitempty"`
2269
2270
2271
2272
2273
2274 ForceSendFields []string `json:"-"`
2275
2276
2277
2278
2279 NullFields []string `json:"-"`
2280 }
2281
2282 func (s *AccountstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
2283 type NoMethod AccountstatusesCustomBatchResponseEntry
2284 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2285 }
2286
2287 type AccountstatusesListResponse struct {
2288
2289
2290 Kind string `json:"kind,omitempty"`
2291
2292
2293 NextPageToken string `json:"nextPageToken,omitempty"`
2294 Resources []*AccountStatus `json:"resources,omitempty"`
2295
2296
2297 googleapi.ServerResponse `json:"-"`
2298
2299
2300
2301
2302
2303 ForceSendFields []string `json:"-"`
2304
2305
2306
2307
2308 NullFields []string `json:"-"`
2309 }
2310
2311 func (s *AccountstatusesListResponse) MarshalJSON() ([]byte, error) {
2312 type NoMethod AccountstatusesListResponse
2313 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2314 }
2315
2316 type AccounttaxCustomBatchRequest struct {
2317
2318 Entries []*AccounttaxCustomBatchRequestEntry `json:"entries,omitempty"`
2319
2320
2321
2322
2323
2324 ForceSendFields []string `json:"-"`
2325
2326
2327
2328
2329 NullFields []string `json:"-"`
2330 }
2331
2332 func (s *AccounttaxCustomBatchRequest) MarshalJSON() ([]byte, error) {
2333 type NoMethod AccounttaxCustomBatchRequest
2334 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2335 }
2336
2337
2338
2339 type AccounttaxCustomBatchRequestEntry struct {
2340
2341
2342 AccountId uint64 `json:"accountId,omitempty,string"`
2343
2344
2345 AccountTax *AccountTax `json:"accountTax,omitempty"`
2346
2347 BatchId int64 `json:"batchId,omitempty"`
2348
2349 MerchantId uint64 `json:"merchantId,omitempty,string"`
2350
2351
2352 Method string `json:"method,omitempty"`
2353
2354
2355
2356
2357
2358 ForceSendFields []string `json:"-"`
2359
2360
2361
2362
2363 NullFields []string `json:"-"`
2364 }
2365
2366 func (s *AccounttaxCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
2367 type NoMethod AccounttaxCustomBatchRequestEntry
2368 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2369 }
2370
2371 type AccounttaxCustomBatchResponse struct {
2372
2373 Entries []*AccounttaxCustomBatchResponseEntry `json:"entries,omitempty"`
2374
2375
2376 Kind string `json:"kind,omitempty"`
2377
2378
2379 googleapi.ServerResponse `json:"-"`
2380
2381
2382
2383
2384
2385 ForceSendFields []string `json:"-"`
2386
2387
2388
2389
2390 NullFields []string `json:"-"`
2391 }
2392
2393 func (s *AccounttaxCustomBatchResponse) MarshalJSON() ([]byte, error) {
2394 type NoMethod AccounttaxCustomBatchResponse
2395 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2396 }
2397
2398
2399
2400 type AccounttaxCustomBatchResponseEntry struct {
2401
2402 AccountTax *AccountTax `json:"accountTax,omitempty"`
2403
2404 BatchId int64 `json:"batchId,omitempty"`
2405
2406
2407 Errors *Errors `json:"errors,omitempty"`
2408
2409
2410 Kind string `json:"kind,omitempty"`
2411
2412
2413
2414
2415
2416 ForceSendFields []string `json:"-"`
2417
2418
2419
2420
2421 NullFields []string `json:"-"`
2422 }
2423
2424 func (s *AccounttaxCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
2425 type NoMethod AccounttaxCustomBatchResponseEntry
2426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2427 }
2428
2429 type AccounttaxListResponse struct {
2430
2431
2432 Kind string `json:"kind,omitempty"`
2433
2434
2435 NextPageToken string `json:"nextPageToken,omitempty"`
2436 Resources []*AccountTax `json:"resources,omitempty"`
2437
2438
2439 googleapi.ServerResponse `json:"-"`
2440
2441
2442
2443
2444
2445 ForceSendFields []string `json:"-"`
2446
2447
2448
2449
2450 NullFields []string `json:"-"`
2451 }
2452
2453 func (s *AccounttaxListResponse) MarshalJSON() ([]byte, error) {
2454 type NoMethod AccounttaxListResponse
2455 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2456 }
2457
2458
2459 type Action struct {
2460
2461
2462
2463
2464 BuiltinSimpleAction *BuiltInSimpleAction `json:"builtinSimpleAction,omitempty"`
2465
2466
2467
2468
2469 BuiltinUserInputAction *BuiltInUserInputAction `json:"builtinUserInputAction,omitempty"`
2470
2471 ButtonLabel string `json:"buttonLabel,omitempty"`
2472
2473
2474
2475 ExternalAction *ExternalAction `json:"externalAction,omitempty"`
2476
2477
2478
2479
2480
2481 IsAvailable bool `json:"isAvailable,omitempty"`
2482
2483
2484
2485
2486 Reasons []*ActionReason `json:"reasons,omitempty"`
2487
2488
2489
2490
2491
2492 ForceSendFields []string `json:"-"`
2493
2494
2495
2496
2497 NullFields []string `json:"-"`
2498 }
2499
2500 func (s *Action) MarshalJSON() ([]byte, error) {
2501 type NoMethod Action
2502 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2503 }
2504
2505
2506
2507 type ActionFlow struct {
2508
2509
2510 DialogButtonLabel string `json:"dialogButtonLabel,omitempty"`
2511
2512
2513
2514
2515 DialogCallout *Callout `json:"dialogCallout,omitempty"`
2516
2517
2518
2519
2520 DialogMessage *TextWithTooltip `json:"dialogMessage,omitempty"`
2521
2522
2523 DialogTitle string `json:"dialogTitle,omitempty"`
2524
2525 Id string `json:"id,omitempty"`
2526
2527 Inputs []*InputField `json:"inputs,omitempty"`
2528
2529
2530
2531 Label string `json:"label,omitempty"`
2532
2533
2534
2535
2536
2537 ForceSendFields []string `json:"-"`
2538
2539
2540
2541
2542 NullFields []string `json:"-"`
2543 }
2544
2545 func (s *ActionFlow) MarshalJSON() ([]byte, error) {
2546 type NoMethod ActionFlow
2547 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2548 }
2549
2550
2551 type ActionInput struct {
2552
2553 ActionFlowId string `json:"actionFlowId,omitempty"`
2554
2555 InputValues []*InputValue `json:"inputValues,omitempty"`
2556
2557
2558
2559
2560
2561 ForceSendFields []string `json:"-"`
2562
2563
2564
2565
2566 NullFields []string `json:"-"`
2567 }
2568
2569 func (s *ActionInput) MarshalJSON() ([]byte, error) {
2570 type NoMethod ActionInput
2571 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2572 }
2573
2574
2575 type ActionReason struct {
2576
2577
2578
2579
2580
2581
2582 Action *Action `json:"action,omitempty"`
2583
2584
2585 Detail string `json:"detail,omitempty"`
2586
2587
2588
2589 Message string `json:"message,omitempty"`
2590
2591
2592
2593
2594
2595 ForceSendFields []string `json:"-"`
2596
2597
2598
2599
2600 NullFields []string `json:"-"`
2601 }
2602
2603 func (s *ActionReason) MarshalJSON() ([]byte, error) {
2604 type NoMethod ActionReason
2605 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2606 }
2607
2608
2609
2610 type ActivateBuyOnGoogleProgramRequest struct {
2611 }
2612
2613 type Address struct {
2614
2615
2616
2617 AdministrativeArea string `json:"administrativeArea,omitempty"`
2618
2619
2620 City string `json:"city,omitempty"`
2621
2622
2623
2624 Country string `json:"country,omitempty"`
2625
2626 PostalCode string `json:"postalCode,omitempty"`
2627
2628
2629 StreetAddress string `json:"streetAddress,omitempty"`
2630
2631
2632
2633
2634
2635 ForceSendFields []string `json:"-"`
2636
2637
2638
2639
2640 NullFields []string `json:"-"`
2641 }
2642
2643 func (s *Address) MarshalJSON() ([]byte, error) {
2644 type NoMethod Address
2645 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2646 }
2647
2648
2649
2650
2651 type AlternateDisputeResolution struct {
2652
2653 Label string `json:"label,omitempty"`
2654
2655
2656
2657 Uri string `json:"uri,omitempty"`
2658
2659
2660
2661
2662
2663 ForceSendFields []string `json:"-"`
2664
2665
2666
2667
2668 NullFields []string `json:"-"`
2669 }
2670
2671 func (s *AlternateDisputeResolution) MarshalJSON() ([]byte, error) {
2672 type NoMethod AlternateDisputeResolution
2673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2674 }
2675
2676 type Amount struct {
2677
2678
2679 PriceAmount *Price `json:"priceAmount,omitempty"`
2680
2681 TaxAmount *Price `json:"taxAmount,omitempty"`
2682
2683
2684
2685
2686
2687 ForceSendFields []string `json:"-"`
2688
2689
2690
2691
2692 NullFields []string `json:"-"`
2693 }
2694
2695 func (s *Amount) MarshalJSON() ([]byte, error) {
2696 type NoMethod Amount
2697 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2698 }
2699
2700
2701
2702 type AttributionSettings struct {
2703
2704
2705 AttributionLookbackWindowInDays int64 `json:"attributionLookbackWindowInDays,omitempty"`
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717 AttributionModel string `json:"attributionModel,omitempty"`
2718
2719
2720
2721 ConversionType []*AttributionSettingsConversionType `json:"conversionType,omitempty"`
2722
2723
2724
2725
2726
2727
2728 ForceSendFields []string `json:"-"`
2729
2730
2731
2732
2733 NullFields []string `json:"-"`
2734 }
2735
2736 func (s *AttributionSettings) MarshalJSON() ([]byte, error) {
2737 type NoMethod AttributionSettings
2738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2739 }
2740
2741
2742
2743 type AttributionSettingsConversionType struct {
2744
2745
2746 IncludeInReporting bool `json:"includeInReporting,omitempty"`
2747
2748
2749 Name string `json:"name,omitempty"`
2750
2751
2752
2753
2754
2755 ForceSendFields []string `json:"-"`
2756
2757
2758
2759
2760 NullFields []string `json:"-"`
2761 }
2762
2763 func (s *AttributionSettingsConversionType) MarshalJSON() ([]byte, error) {
2764 type NoMethod AttributionSettingsConversionType
2765 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2766 }
2767
2768
2769
2770 type BestSellers struct {
2771
2772
2773
2774
2775
2776 CategoryId int64 `json:"categoryId,omitempty,string"`
2777
2778
2779 CountryCode string `json:"countryCode,omitempty"`
2780
2781 PreviousRank int64 `json:"previousRank,omitempty,string"`
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798 PreviousRelativeDemand string `json:"previousRelativeDemand,omitempty"`
2799
2800
2801 Rank int64 `json:"rank,omitempty,string"`
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817 RelativeDemand string `json:"relativeDemand,omitempty"`
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827 RelativeDemandChange string `json:"relativeDemandChange,omitempty"`
2828
2829
2830
2831
2832
2833 ReportDate *Date `json:"reportDate,omitempty"`
2834
2835
2836
2837
2838
2839
2840
2841
2842 ReportGranularity string `json:"reportGranularity,omitempty"`
2843
2844
2845
2846
2847
2848 ForceSendFields []string `json:"-"`
2849
2850
2851
2852
2853 NullFields []string `json:"-"`
2854 }
2855
2856 func (s *BestSellers) MarshalJSON() ([]byte, error) {
2857 type NoMethod BestSellers
2858 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2859 }
2860
2861
2862
2863 type Brand struct {
2864
2865 Name string `json:"name,omitempty"`
2866
2867
2868
2869
2870
2871 ForceSendFields []string `json:"-"`
2872
2873
2874
2875
2876 NullFields []string `json:"-"`
2877 }
2878
2879 func (s *Brand) MarshalJSON() ([]byte, error) {
2880 type NoMethod Brand
2881 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2882 }
2883
2884
2885
2886 type Breakdown struct {
2887
2888
2889
2890 Details []string `json:"details,omitempty"`
2891
2892
2893
2894 Regions []*BreakdownRegion `json:"regions,omitempty"`
2895
2896
2897
2898
2899
2900 ForceSendFields []string `json:"-"`
2901
2902
2903
2904
2905 NullFields []string `json:"-"`
2906 }
2907
2908 func (s *Breakdown) MarshalJSON() ([]byte, error) {
2909 type NoMethod Breakdown
2910 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2911 }
2912
2913
2914 type BreakdownRegion struct {
2915
2916
2917 Code string `json:"code,omitempty"`
2918
2919
2920 Name string `json:"name,omitempty"`
2921
2922
2923
2924
2925
2926 ForceSendFields []string `json:"-"`
2927
2928
2929
2930
2931 NullFields []string `json:"-"`
2932 }
2933
2934 func (s *BreakdownRegion) MarshalJSON() ([]byte, error) {
2935 type NoMethod BreakdownRegion
2936 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2937 }
2938
2939
2940
2941
2942
2943
2944
2945
2946 type BuiltInSimpleAction struct {
2947
2948
2949
2950 AdditionalContent *BuiltInSimpleActionAdditionalContent `json:"additionalContent,omitempty"`
2951
2952
2953
2954
2955 AttributeCode string `json:"attributeCode,omitempty"`
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984 Type string `json:"type,omitempty"`
2985
2986
2987
2988
2989
2990 ForceSendFields []string `json:"-"`
2991
2992
2993
2994
2995 NullFields []string `json:"-"`
2996 }
2997
2998 func (s *BuiltInSimpleAction) MarshalJSON() ([]byte, error) {
2999 type NoMethod BuiltInSimpleAction
3000 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3001 }
3002
3003
3004 type BuiltInSimpleActionAdditionalContent struct {
3005
3006 Paragraphs []string `json:"paragraphs,omitempty"`
3007
3008 Title string `json:"title,omitempty"`
3009
3010
3011
3012
3013
3014 ForceSendFields []string `json:"-"`
3015
3016
3017
3018
3019 NullFields []string `json:"-"`
3020 }
3021
3022 func (s *BuiltInSimpleActionAdditionalContent) MarshalJSON() ([]byte, error) {
3023 type NoMethod BuiltInSimpleActionAdditionalContent
3024 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3025 }
3026
3027
3028
3029
3030
3031
3032
3033 type BuiltInUserInputAction struct {
3034
3035
3036 ActionContext string `json:"actionContext,omitempty"`
3037
3038
3039
3040
3041 Flows []*ActionFlow `json:"flows,omitempty"`
3042
3043
3044
3045
3046
3047 ForceSendFields []string `json:"-"`
3048
3049
3050
3051
3052 NullFields []string `json:"-"`
3053 }
3054
3055 func (s *BuiltInUserInputAction) MarshalJSON() ([]byte, error) {
3056 type NoMethod BuiltInUserInputAction
3057 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3058 }
3059
3060 type BusinessDayConfig struct {
3061
3062 BusinessDays []string `json:"businessDays,omitempty"`
3063
3064
3065
3066
3067
3068 ForceSendFields []string `json:"-"`
3069
3070
3071
3072
3073 NullFields []string `json:"-"`
3074 }
3075
3076 func (s *BusinessDayConfig) MarshalJSON() ([]byte, error) {
3077 type NoMethod BusinessDayConfig
3078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3079 }
3080
3081
3082 type BuyOnGoogleProgramStatus struct {
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092 BusinessModel []string `json:"businessModel,omitempty"`
3093
3094
3095 CustomerServicePendingEmail string `json:"customerServicePendingEmail,omitempty"`
3096
3097
3098
3099
3100 CustomerServicePendingPhoneNumber string `json:"customerServicePendingPhoneNumber,omitempty"`
3101
3102
3103
3104
3105
3106
3107
3108 CustomerServicePendingPhoneRegionCode string `json:"customerServicePendingPhoneRegionCode,omitempty"`
3109
3110
3111 CustomerServiceVerifiedEmail string `json:"customerServiceVerifiedEmail,omitempty"`
3112
3113
3114
3115 CustomerServiceVerifiedPhoneNumber string `json:"customerServiceVerifiedPhoneNumber,omitempty"`
3116
3117
3118
3119
3120
3121 CustomerServiceVerifiedPhoneRegionCode string `json:"customerServiceVerifiedPhoneRegionCode,omitempty"`
3122
3123
3124
3125
3126
3127
3128
3129
3130 OnlineSalesChannel string `json:"onlineSalesChannel,omitempty"`
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155 ParticipationStage string `json:"participationStage,omitempty"`
3156
3157
3158 googleapi.ServerResponse `json:"-"`
3159
3160
3161
3162
3163
3164 ForceSendFields []string `json:"-"`
3165
3166
3167
3168
3169 NullFields []string `json:"-"`
3170 }
3171
3172 func (s *BuyOnGoogleProgramStatus) MarshalJSON() ([]byte, error) {
3173 type NoMethod BuyOnGoogleProgramStatus
3174 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3175 }
3176
3177
3178
3179 type Callout struct {
3180
3181 FullMessage *TextWithTooltip `json:"fullMessage,omitempty"`
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195 StyleHint string `json:"styleHint,omitempty"`
3196
3197
3198
3199
3200
3201 ForceSendFields []string `json:"-"`
3202
3203
3204
3205
3206 NullFields []string `json:"-"`
3207 }
3208
3209 func (s *Callout) MarshalJSON() ([]byte, error) {
3210 type NoMethod Callout
3211 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3212 }
3213
3214
3215 type CaptureOrderRequest struct {
3216 }
3217
3218
3219 type CaptureOrderResponse struct {
3220
3221
3222
3223
3224
3225
3226
3227
3228 ExecutionStatus string `json:"executionStatus,omitempty"`
3229
3230
3231 googleapi.ServerResponse `json:"-"`
3232
3233
3234
3235
3236
3237 ForceSendFields []string `json:"-"`
3238
3239
3240
3241
3242 NullFields []string `json:"-"`
3243 }
3244
3245 func (s *CaptureOrderResponse) MarshalJSON() ([]byte, error) {
3246 type NoMethod CaptureOrderResponse
3247 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3248 }
3249
3250 type CarrierRate struct {
3251
3252
3253
3254 CarrierName string `json:"carrierName,omitempty"`
3255
3256
3257
3258 CarrierService string `json:"carrierService,omitempty"`
3259
3260
3261
3262 FlatAdjustment *Price `json:"flatAdjustment,omitempty"`
3263
3264 Name string `json:"name,omitempty"`
3265
3266 OriginPostalCode string `json:"originPostalCode,omitempty"`
3267
3268
3269
3270 PercentageAdjustment string `json:"percentageAdjustment,omitempty"`
3271
3272
3273
3274
3275
3276 ForceSendFields []string `json:"-"`
3277
3278
3279
3280
3281 NullFields []string `json:"-"`
3282 }
3283
3284 func (s *CarrierRate) MarshalJSON() ([]byte, error) {
3285 type NoMethod CarrierRate
3286 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3287 }
3288
3289 type CarriersCarrier struct {
3290
3291
3292 Country string `json:"country,omitempty"`
3293
3294
3295
3296 EddServices []string `json:"eddServices,omitempty"`
3297
3298 Name string `json:"name,omitempty"`
3299
3300
3301
3302 Services []string `json:"services,omitempty"`
3303
3304
3305
3306
3307
3308 ForceSendFields []string `json:"-"`
3309
3310
3311
3312
3313 NullFields []string `json:"-"`
3314 }
3315
3316 func (s *CarriersCarrier) MarshalJSON() ([]byte, error) {
3317 type NoMethod CarriersCarrier
3318 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3319 }
3320
3321
3322 type CheckoutSettings struct {
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335 EffectiveEnrollmentState string `json:"effectiveEnrollmentState,omitempty"`
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350 EffectiveReviewState string `json:"effectiveReviewState,omitempty"`
3351
3352
3353
3354
3355 EffectiveUriSettings *UrlSettings `json:"effectiveUriSettings,omitempty"`
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366 EnrollmentState string `json:"enrollmentState,omitempty"`
3367
3368 MerchantId int64 `json:"merchantId,omitempty,string"`
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385 ReviewState string `json:"reviewState,omitempty"`
3386
3387 UriSettings *UrlSettings `json:"uriSettings,omitempty"`
3388
3389
3390 googleapi.ServerResponse `json:"-"`
3391
3392
3393
3394
3395
3396 ForceSendFields []string `json:"-"`
3397
3398
3399
3400
3401 NullFields []string `json:"-"`
3402 }
3403
3404 func (s *CheckoutSettings) MarshalJSON() ([]byte, error) {
3405 type NoMethod CheckoutSettings
3406 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3407 }
3408
3409
3410
3411
3412 type CloudExportAdditionalProperties struct {
3413
3414
3415 BoolValue bool `json:"boolValue,omitempty"`
3416
3417
3418
3419 FloatValue []float64 `json:"floatValue,omitempty"`
3420
3421
3422
3423 IntValue googleapi.Int64s `json:"intValue,omitempty"`
3424
3425
3426 MaxValue float64 `json:"maxValue,omitempty"`
3427
3428
3429 MinValue float64 `json:"minValue,omitempty"`
3430
3431
3432 PropertyName string `json:"propertyName,omitempty"`
3433
3434
3435
3436
3437 TextValue []string `json:"textValue,omitempty"`
3438
3439
3440 UnitCode string `json:"unitCode,omitempty"`
3441
3442
3443
3444
3445
3446 ForceSendFields []string `json:"-"`
3447
3448
3449
3450
3451 NullFields []string `json:"-"`
3452 }
3453
3454 func (s *CloudExportAdditionalProperties) MarshalJSON() ([]byte, error) {
3455 type NoMethod CloudExportAdditionalProperties
3456 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3457 }
3458
3459 func (s *CloudExportAdditionalProperties) UnmarshalJSON(data []byte) error {
3460 type NoMethod CloudExportAdditionalProperties
3461 var s1 struct {
3462 FloatValue []gensupport.JSONFloat64 `json:"floatValue"`
3463 MaxValue gensupport.JSONFloat64 `json:"maxValue"`
3464 MinValue gensupport.JSONFloat64 `json:"minValue"`
3465 *NoMethod
3466 }
3467 s1.NoMethod = (*NoMethod)(s)
3468 if err := json.Unmarshal(data, &s1); err != nil {
3469 return err
3470 }
3471 s.FloatValue = make([]float64, len(s1.FloatValue))
3472 for i := range s1.FloatValue {
3473 s.FloatValue[i] = float64(s1.FloatValue[i])
3474 }
3475 s.MaxValue = float64(s1.MaxValue)
3476 s.MinValue = float64(s1.MinValue)
3477 return nil
3478 }
3479
3480
3481 type Collection struct {
3482
3483
3484
3485 CustomLabel0 string `json:"customLabel0,omitempty"`
3486
3487
3488 CustomLabel1 string `json:"customLabel1,omitempty"`
3489
3490
3491 CustomLabel2 string `json:"customLabel2,omitempty"`
3492
3493
3494 CustomLabel3 string `json:"customLabel3,omitempty"`
3495
3496
3497 CustomLabel4 string `json:"customLabel4,omitempty"`
3498
3499
3500
3501
3502
3503
3504 FeaturedProduct []*CollectionFeaturedProduct `json:"featuredProduct,omitempty"`
3505
3506
3507 Headline []string `json:"headline,omitempty"`
3508
3509
3510
3511
3512 Id string `json:"id,omitempty"`
3513
3514
3515 ImageLink []string `json:"imageLink,omitempty"`
3516
3517
3518
3519 Language string `json:"language,omitempty"`
3520
3521
3522
3523 Link string `json:"link,omitempty"`
3524
3525
3526
3527 MobileLink string `json:"mobileLink,omitempty"`
3528
3529
3530 ProductCountry string `json:"productCountry,omitempty"`
3531
3532
3533 googleapi.ServerResponse `json:"-"`
3534
3535
3536
3537
3538
3539 ForceSendFields []string `json:"-"`
3540
3541
3542
3543
3544 NullFields []string `json:"-"`
3545 }
3546
3547 func (s *Collection) MarshalJSON() ([]byte, error) {
3548 type NoMethod Collection
3549 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3550 }
3551
3552
3553
3554 type CollectionFeaturedProduct struct {
3555
3556 OfferId string `json:"offerId,omitempty"`
3557
3558 X float64 `json:"x,omitempty"`
3559
3560 Y float64 `json:"y,omitempty"`
3561
3562
3563
3564
3565
3566 ForceSendFields []string `json:"-"`
3567
3568
3569
3570
3571 NullFields []string `json:"-"`
3572 }
3573
3574 func (s *CollectionFeaturedProduct) MarshalJSON() ([]byte, error) {
3575 type NoMethod CollectionFeaturedProduct
3576 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3577 }
3578
3579 func (s *CollectionFeaturedProduct) UnmarshalJSON(data []byte) error {
3580 type NoMethod CollectionFeaturedProduct
3581 var s1 struct {
3582 X gensupport.JSONFloat64 `json:"x"`
3583 Y gensupport.JSONFloat64 `json:"y"`
3584 *NoMethod
3585 }
3586 s1.NoMethod = (*NoMethod)(s)
3587 if err := json.Unmarshal(data, &s1); err != nil {
3588 return err
3589 }
3590 s.X = float64(s1.X)
3591 s.Y = float64(s1.Y)
3592 return nil
3593 }
3594
3595
3596 type CollectionStatus struct {
3597
3598 CollectionLevelIssuses []*CollectionStatusItemLevelIssue `json:"collectionLevelIssuses,omitempty"`
3599
3600
3601
3602 CreationDate string `json:"creationDate,omitempty"`
3603
3604 DestinationStatuses []*CollectionStatusDestinationStatus `json:"destinationStatuses,omitempty"`
3605
3606 Id string `json:"id,omitempty"`
3607
3608
3609
3610 LastUpdateDate string `json:"lastUpdateDate,omitempty"`
3611
3612
3613 googleapi.ServerResponse `json:"-"`
3614
3615
3616
3617
3618
3619 ForceSendFields []string `json:"-"`
3620
3621
3622
3623
3624 NullFields []string `json:"-"`
3625 }
3626
3627 func (s *CollectionStatus) MarshalJSON() ([]byte, error) {
3628 type NoMethod CollectionStatus
3629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3630 }
3631
3632
3633 type CollectionStatusDestinationStatus struct {
3634
3635
3636 ApprovedCountries []string `json:"approvedCountries,omitempty"`
3637
3638 Destination string `json:"destination,omitempty"`
3639
3640
3641 DisapprovedCountries []string `json:"disapprovedCountries,omitempty"`
3642
3643
3644 PendingCountries []string `json:"pendingCountries,omitempty"`
3645
3646
3647 Status string `json:"status,omitempty"`
3648
3649
3650
3651
3652
3653 ForceSendFields []string `json:"-"`
3654
3655
3656
3657
3658 NullFields []string `json:"-"`
3659 }
3660
3661 func (s *CollectionStatusDestinationStatus) MarshalJSON() ([]byte, error) {
3662 type NoMethod CollectionStatusDestinationStatus
3663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3664 }
3665
3666
3667 type CollectionStatusItemLevelIssue struct {
3668
3669
3670 ApplicableCountries []string `json:"applicableCountries,omitempty"`
3671
3672
3673 AttributeName string `json:"attributeName,omitempty"`
3674
3675 Code string `json:"code,omitempty"`
3676
3677 Description string `json:"description,omitempty"`
3678
3679 Destination string `json:"destination,omitempty"`
3680
3681 Detail string `json:"detail,omitempty"`
3682
3683 Documentation string `json:"documentation,omitempty"`
3684
3685 Resolution string `json:"resolution,omitempty"`
3686
3687 Servability string `json:"servability,omitempty"`
3688
3689
3690
3691
3692
3693 ForceSendFields []string `json:"-"`
3694
3695
3696
3697
3698 NullFields []string `json:"-"`
3699 }
3700
3701 func (s *CollectionStatusItemLevelIssue) MarshalJSON() ([]byte, error) {
3702 type NoMethod CollectionStatusItemLevelIssue
3703 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3704 }
3705
3706
3707
3708 type CompetitiveVisibility struct {
3709
3710
3711
3712
3713
3714
3715
3716 AdsOrganicRatio float64 `json:"adsOrganicRatio,omitempty"`
3717
3718
3719
3720
3721
3722
3723 CategoryBenchmarkVisibilityTrend float64 `json:"categoryBenchmarkVisibilityTrend,omitempty"`
3724
3725
3726
3727
3728
3729 CategoryId int64 `json:"categoryId,omitempty,string"`
3730
3731
3732
3733 CountryCode string `json:"countryCode,omitempty"`
3734
3735
3736
3737
3738 Date *Date `json:"date,omitempty"`
3739
3740
3741
3742
3743
3744
3745 Domain string `json:"domain,omitempty"`
3746
3747
3748
3749
3750
3751 HigherPositionRate float64 `json:"higherPositionRate,omitempty"`
3752
3753
3754
3755
3756 IsYourDomain bool `json:"isYourDomain,omitempty"`
3757
3758
3759
3760
3761
3762 PageOverlapRate float64 `json:"pageOverlapRate,omitempty"`
3763
3764
3765
3766
3767
3768
3769 Rank uint64 `json:"rank,omitempty,string"`
3770
3771
3772
3773
3774
3775
3776
3777 RelativeVisibility float64 `json:"relativeVisibility,omitempty"`
3778
3779
3780
3781
3782
3783
3784
3785
3786 TrafficSource string `json:"trafficSource,omitempty"`
3787
3788
3789
3790
3791
3792 YourDomainVisibilityTrend float64 `json:"yourDomainVisibilityTrend,omitempty"`
3793
3794
3795
3796
3797
3798 ForceSendFields []string `json:"-"`
3799
3800
3801
3802
3803 NullFields []string `json:"-"`
3804 }
3805
3806 func (s *CompetitiveVisibility) MarshalJSON() ([]byte, error) {
3807 type NoMethod CompetitiveVisibility
3808 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3809 }
3810
3811 func (s *CompetitiveVisibility) UnmarshalJSON(data []byte) error {
3812 type NoMethod CompetitiveVisibility
3813 var s1 struct {
3814 AdsOrganicRatio gensupport.JSONFloat64 `json:"adsOrganicRatio"`
3815 CategoryBenchmarkVisibilityTrend gensupport.JSONFloat64 `json:"categoryBenchmarkVisibilityTrend"`
3816 HigherPositionRate gensupport.JSONFloat64 `json:"higherPositionRate"`
3817 PageOverlapRate gensupport.JSONFloat64 `json:"pageOverlapRate"`
3818 RelativeVisibility gensupport.JSONFloat64 `json:"relativeVisibility"`
3819 YourDomainVisibilityTrend gensupport.JSONFloat64 `json:"yourDomainVisibilityTrend"`
3820 *NoMethod
3821 }
3822 s1.NoMethod = (*NoMethod)(s)
3823 if err := json.Unmarshal(data, &s1); err != nil {
3824 return err
3825 }
3826 s.AdsOrganicRatio = float64(s1.AdsOrganicRatio)
3827 s.CategoryBenchmarkVisibilityTrend = float64(s1.CategoryBenchmarkVisibilityTrend)
3828 s.HigherPositionRate = float64(s1.HigherPositionRate)
3829 s.PageOverlapRate = float64(s1.PageOverlapRate)
3830 s.RelativeVisibility = float64(s1.RelativeVisibility)
3831 s.YourDomainVisibilityTrend = float64(s1.YourDomainVisibilityTrend)
3832 return nil
3833 }
3834
3835
3836
3837 type ConversionSource struct {
3838
3839
3840
3841
3842
3843
3844
3845 ConversionSourceId string `json:"conversionSourceId,omitempty"`
3846
3847
3848 ExpireTime string `json:"expireTime,omitempty"`
3849
3850
3851 GoogleAnalyticsLink *GoogleAnalyticsLink `json:"googleAnalyticsLink,omitempty"`
3852
3853
3854 MerchantCenterDestination *MerchantCenterDestination `json:"merchantCenterDestination,omitempty"`
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865 State string `json:"state,omitempty"`
3866
3867
3868 googleapi.ServerResponse `json:"-"`
3869
3870
3871
3872
3873
3874 ForceSendFields []string `json:"-"`
3875
3876
3877
3878
3879 NullFields []string `json:"-"`
3880 }
3881
3882 func (s *ConversionSource) MarshalJSON() ([]byte, error) {
3883 type NoMethod ConversionSource
3884 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3885 }
3886
3887
3888 type Css struct {
3889
3890 CssDomainId int64 `json:"cssDomainId,omitempty,string"`
3891
3892
3893 CssGroupId int64 `json:"cssGroupId,omitempty,string"`
3894
3895
3896 DisplayName string `json:"displayName,omitempty"`
3897
3898 FullName string `json:"fullName,omitempty"`
3899
3900 HomepageUri string `json:"homepageUri,omitempty"`
3901
3902
3903 LabelIds googleapi.Int64s `json:"labelIds,omitempty"`
3904
3905
3906 googleapi.ServerResponse `json:"-"`
3907
3908
3909
3910
3911
3912 ForceSendFields []string `json:"-"`
3913
3914
3915
3916
3917 NullFields []string `json:"-"`
3918 }
3919
3920 func (s *Css) MarshalJSON() ([]byte, error) {
3921 type NoMethod Css
3922 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3923 }
3924
3925
3926
3927
3928
3929
3930 type CustomAttribute struct {
3931
3932
3933 GroupValues []*CustomAttribute `json:"groupValues,omitempty"`
3934
3935
3936 Name string `json:"name,omitempty"`
3937
3938 Value string `json:"value,omitempty"`
3939
3940
3941
3942
3943
3944 ForceSendFields []string `json:"-"`
3945
3946
3947
3948
3949 NullFields []string `json:"-"`
3950 }
3951
3952 func (s *CustomAttribute) MarshalJSON() ([]byte, error) {
3953 type NoMethod CustomAttribute
3954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3955 }
3956
3957 type CustomerReturnReason struct {
3958
3959 Description string `json:"description,omitempty"`
3960
3961
3962
3963
3964
3965
3966 ReasonCode string `json:"reasonCode,omitempty"`
3967
3968
3969
3970
3971
3972 ForceSendFields []string `json:"-"`
3973
3974
3975
3976
3977 NullFields []string `json:"-"`
3978 }
3979
3980 func (s *CustomerReturnReason) MarshalJSON() ([]byte, error) {
3981 type NoMethod CustomerReturnReason
3982 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3983 }
3984
3985 type CutoffTime struct {
3986
3987
3988 Hour int64 `json:"hour,omitempty"`
3989
3990
3991 Minute int64 `json:"minute,omitempty"`
3992
3993
3994 Timezone string `json:"timezone,omitempty"`
3995
3996
3997
3998
3999
4000 ForceSendFields []string `json:"-"`
4001
4002
4003
4004
4005 NullFields []string `json:"-"`
4006 }
4007
4008 func (s *CutoffTime) MarshalJSON() ([]byte, error) {
4009 type NoMethod CutoffTime
4010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4011 }
4012
4013
4014 type Datafeed struct {
4015
4016
4017 AttributeLanguage string `json:"attributeLanguage,omitempty"`
4018
4019
4020
4021 ContentType string `json:"contentType,omitempty"`
4022
4023 FetchSchedule *DatafeedFetchSchedule `json:"fetchSchedule,omitempty"`
4024
4025
4026 FileName string `json:"fileName,omitempty"`
4027
4028 Format *DatafeedFormat `json:"format,omitempty"`
4029
4030 Id int64 `json:"id,omitempty,string"`
4031
4032
4033 Kind string `json:"kind,omitempty"`
4034
4035 Name string `json:"name,omitempty"`
4036
4037
4038 Targets []*DatafeedTarget `json:"targets,omitempty"`
4039
4040
4041 googleapi.ServerResponse `json:"-"`
4042
4043
4044
4045
4046
4047 ForceSendFields []string `json:"-"`
4048
4049
4050
4051
4052 NullFields []string `json:"-"`
4053 }
4054
4055 func (s *Datafeed) MarshalJSON() ([]byte, error) {
4056 type NoMethod Datafeed
4057 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4058 }
4059
4060
4061
4062
4063
4064 type DatafeedFetchSchedule struct {
4065
4066 DayOfMonth int64 `json:"dayOfMonth,omitempty"`
4067
4068
4069
4070
4071 FetchUrl string `json:"fetchUrl,omitempty"`
4072
4073 Hour int64 `json:"hour,omitempty"`
4074
4075
4076 MinuteOfHour int64 `json:"minuteOfHour,omitempty"`
4077
4078 Password string `json:"password,omitempty"`
4079
4080 Paused bool `json:"paused,omitempty"`
4081
4082
4083 TimeZone string `json:"timeZone,omitempty"`
4084
4085 Username string `json:"username,omitempty"`
4086
4087
4088
4089 Weekday string `json:"weekday,omitempty"`
4090
4091
4092
4093
4094
4095 ForceSendFields []string `json:"-"`
4096
4097
4098
4099
4100 NullFields []string `json:"-"`
4101 }
4102
4103 func (s *DatafeedFetchSchedule) MarshalJSON() ([]byte, error) {
4104 type NoMethod DatafeedFetchSchedule
4105 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4106 }
4107
4108 type DatafeedFormat struct {
4109
4110
4111
4112
4113 ColumnDelimiter string `json:"columnDelimiter,omitempty"`
4114
4115
4116
4117 FileEncoding string `json:"fileEncoding,omitempty"`
4118
4119
4120
4121 QuotingMode string `json:"quotingMode,omitempty"`
4122
4123
4124
4125
4126
4127 ForceSendFields []string `json:"-"`
4128
4129
4130
4131
4132 NullFields []string `json:"-"`
4133 }
4134
4135 func (s *DatafeedFormat) MarshalJSON() ([]byte, error) {
4136 type NoMethod DatafeedFormat
4137 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4138 }
4139
4140
4141
4142
4143 type DatafeedStatus struct {
4144
4145
4146 Country string `json:"country,omitempty"`
4147
4148 DatafeedId uint64 `json:"datafeedId,omitempty,string"`
4149
4150 Errors []*DatafeedStatusError `json:"errors,omitempty"`
4151
4152 FeedLabel string `json:"feedLabel,omitempty"`
4153
4154 ItemsTotal uint64 `json:"itemsTotal,omitempty,string"`
4155
4156 ItemsValid uint64 `json:"itemsValid,omitempty,string"`
4157
4158
4159 Kind string `json:"kind,omitempty"`
4160
4161
4162 Language string `json:"language,omitempty"`
4163
4164 LastUploadDate string `json:"lastUploadDate,omitempty"`
4165
4166
4167
4168
4169
4170
4171 ProcessingStatus string `json:"processingStatus,omitempty"`
4172
4173 Warnings []*DatafeedStatusError `json:"warnings,omitempty"`
4174
4175
4176 googleapi.ServerResponse `json:"-"`
4177
4178
4179
4180
4181
4182 ForceSendFields []string `json:"-"`
4183
4184
4185
4186
4187 NullFields []string `json:"-"`
4188 }
4189
4190 func (s *DatafeedStatus) MarshalJSON() ([]byte, error) {
4191 type NoMethod DatafeedStatus
4192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4193 }
4194
4195
4196 type DatafeedStatusError struct {
4197
4198 Code string `json:"code,omitempty"`
4199
4200 Count uint64 `json:"count,omitempty,string"`
4201
4202 Examples []*DatafeedStatusExample `json:"examples,omitempty"`
4203
4204 Message string `json:"message,omitempty"`
4205
4206
4207
4208
4209
4210 ForceSendFields []string `json:"-"`
4211
4212
4213
4214
4215 NullFields []string `json:"-"`
4216 }
4217
4218 func (s *DatafeedStatusError) MarshalJSON() ([]byte, error) {
4219 type NoMethod DatafeedStatusError
4220 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4221 }
4222
4223
4224 type DatafeedStatusExample struct {
4225
4226 ItemId string `json:"itemId,omitempty"`
4227
4228 LineNumber uint64 `json:"lineNumber,omitempty,string"`
4229
4230 Value string `json:"value,omitempty"`
4231
4232
4233
4234
4235
4236 ForceSendFields []string `json:"-"`
4237
4238
4239
4240
4241 NullFields []string `json:"-"`
4242 }
4243
4244 func (s *DatafeedStatusExample) MarshalJSON() ([]byte, error) {
4245 type NoMethod DatafeedStatusExample
4246 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4247 }
4248
4249 type DatafeedTarget struct {
4250
4251
4252
4253 Country string `json:"country,omitempty"`
4254
4255
4256
4257
4258 ExcludedDestinations []string `json:"excludedDestinations,omitempty"`
4259
4260
4261
4262
4263 FeedLabel string `json:"feedLabel,omitempty"`
4264
4265
4266
4267
4268 IncludedDestinations []string `json:"includedDestinations,omitempty"`
4269
4270
4271 Language string `json:"language,omitempty"`
4272
4273
4274 TargetCountries []string `json:"targetCountries,omitempty"`
4275
4276
4277
4278
4279
4280 ForceSendFields []string `json:"-"`
4281
4282
4283
4284
4285 NullFields []string `json:"-"`
4286 }
4287
4288 func (s *DatafeedTarget) MarshalJSON() ([]byte, error) {
4289 type NoMethod DatafeedTarget
4290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4291 }
4292
4293 type DatafeedsCustomBatchRequest struct {
4294
4295 Entries []*DatafeedsCustomBatchRequestEntry `json:"entries,omitempty"`
4296
4297
4298
4299
4300
4301 ForceSendFields []string `json:"-"`
4302
4303
4304
4305
4306 NullFields []string `json:"-"`
4307 }
4308
4309 func (s *DatafeedsCustomBatchRequest) MarshalJSON() ([]byte, error) {
4310 type NoMethod DatafeedsCustomBatchRequest
4311 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4312 }
4313
4314
4315
4316 type DatafeedsCustomBatchRequestEntry struct {
4317
4318 BatchId int64 `json:"batchId,omitempty"`
4319
4320 Datafeed *Datafeed `json:"datafeed,omitempty"`
4321
4322 DatafeedId uint64 `json:"datafeedId,omitempty,string"`
4323
4324 MerchantId uint64 `json:"merchantId,omitempty,string"`
4325
4326
4327 Method string `json:"method,omitempty"`
4328
4329
4330
4331
4332
4333 ForceSendFields []string `json:"-"`
4334
4335
4336
4337
4338 NullFields []string `json:"-"`
4339 }
4340
4341 func (s *DatafeedsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
4342 type NoMethod DatafeedsCustomBatchRequestEntry
4343 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4344 }
4345
4346 type DatafeedsCustomBatchResponse struct {
4347
4348 Entries []*DatafeedsCustomBatchResponseEntry `json:"entries,omitempty"`
4349
4350
4351 Kind string `json:"kind,omitempty"`
4352
4353
4354 googleapi.ServerResponse `json:"-"`
4355
4356
4357
4358
4359
4360 ForceSendFields []string `json:"-"`
4361
4362
4363
4364
4365 NullFields []string `json:"-"`
4366 }
4367
4368 func (s *DatafeedsCustomBatchResponse) MarshalJSON() ([]byte, error) {
4369 type NoMethod DatafeedsCustomBatchResponse
4370 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4371 }
4372
4373
4374
4375 type DatafeedsCustomBatchResponseEntry struct {
4376
4377 BatchId int64 `json:"batchId,omitempty"`
4378
4379
4380 Datafeed *Datafeed `json:"datafeed,omitempty"`
4381
4382
4383 Errors *Errors `json:"errors,omitempty"`
4384
4385
4386
4387
4388
4389 ForceSendFields []string `json:"-"`
4390
4391
4392
4393
4394 NullFields []string `json:"-"`
4395 }
4396
4397 func (s *DatafeedsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
4398 type NoMethod DatafeedsCustomBatchResponseEntry
4399 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4400 }
4401
4402 type DatafeedsFetchNowResponse struct {
4403
4404
4405 Kind string `json:"kind,omitempty"`
4406
4407
4408 googleapi.ServerResponse `json:"-"`
4409
4410
4411
4412
4413
4414 ForceSendFields []string `json:"-"`
4415
4416
4417
4418
4419 NullFields []string `json:"-"`
4420 }
4421
4422 func (s *DatafeedsFetchNowResponse) MarshalJSON() ([]byte, error) {
4423 type NoMethod DatafeedsFetchNowResponse
4424 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4425 }
4426
4427 type DatafeedsListResponse struct {
4428
4429
4430 Kind string `json:"kind,omitempty"`
4431
4432 NextPageToken string `json:"nextPageToken,omitempty"`
4433 Resources []*Datafeed `json:"resources,omitempty"`
4434
4435
4436 googleapi.ServerResponse `json:"-"`
4437
4438
4439
4440
4441
4442 ForceSendFields []string `json:"-"`
4443
4444
4445
4446
4447 NullFields []string `json:"-"`
4448 }
4449
4450 func (s *DatafeedsListResponse) MarshalJSON() ([]byte, error) {
4451 type NoMethod DatafeedsListResponse
4452 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4453 }
4454
4455 type DatafeedstatusesCustomBatchRequest struct {
4456
4457 Entries []*DatafeedstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
4458
4459
4460
4461
4462
4463 ForceSendFields []string `json:"-"`
4464
4465
4466
4467
4468 NullFields []string `json:"-"`
4469 }
4470
4471 func (s *DatafeedstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) {
4472 type NoMethod DatafeedstatusesCustomBatchRequest
4473 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4474 }
4475
4476
4477
4478 type DatafeedstatusesCustomBatchRequestEntry struct {
4479
4480 BatchId int64 `json:"batchId,omitempty"`
4481
4482
4483
4484
4485 Country string `json:"country,omitempty"`
4486
4487 DatafeedId uint64 `json:"datafeedId,omitempty,string"`
4488
4489
4490
4491 FeedLabel string `json:"feedLabel,omitempty"`
4492
4493
4494
4495 Language string `json:"language,omitempty"`
4496
4497 MerchantId uint64 `json:"merchantId,omitempty,string"`
4498
4499 Method string `json:"method,omitempty"`
4500
4501
4502
4503
4504
4505 ForceSendFields []string `json:"-"`
4506
4507
4508
4509
4510 NullFields []string `json:"-"`
4511 }
4512
4513 func (s *DatafeedstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
4514 type NoMethod DatafeedstatusesCustomBatchRequestEntry
4515 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4516 }
4517
4518 type DatafeedstatusesCustomBatchResponse struct {
4519
4520 Entries []*DatafeedstatusesCustomBatchResponseEntry `json:"entries,omitempty"`
4521
4522
4523 Kind string `json:"kind,omitempty"`
4524
4525
4526 googleapi.ServerResponse `json:"-"`
4527
4528
4529
4530
4531
4532 ForceSendFields []string `json:"-"`
4533
4534
4535
4536
4537 NullFields []string `json:"-"`
4538 }
4539
4540 func (s *DatafeedstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) {
4541 type NoMethod DatafeedstatusesCustomBatchResponse
4542 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4543 }
4544
4545
4546
4547 type DatafeedstatusesCustomBatchResponseEntry struct {
4548
4549 BatchId int64 `json:"batchId,omitempty"`
4550
4551
4552 DatafeedStatus *DatafeedStatus `json:"datafeedStatus,omitempty"`
4553
4554
4555 Errors *Errors `json:"errors,omitempty"`
4556
4557
4558
4559
4560
4561 ForceSendFields []string `json:"-"`
4562
4563
4564
4565
4566 NullFields []string `json:"-"`
4567 }
4568
4569 func (s *DatafeedstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
4570 type NoMethod DatafeedstatusesCustomBatchResponseEntry
4571 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4572 }
4573
4574 type DatafeedstatusesListResponse struct {
4575
4576
4577 Kind string `json:"kind,omitempty"`
4578
4579
4580 NextPageToken string `json:"nextPageToken,omitempty"`
4581 Resources []*DatafeedStatus `json:"resources,omitempty"`
4582
4583
4584 googleapi.ServerResponse `json:"-"`
4585
4586
4587
4588
4589
4590 ForceSendFields []string `json:"-"`
4591
4592
4593
4594
4595 NullFields []string `json:"-"`
4596 }
4597
4598 func (s *DatafeedstatusesListResponse) MarshalJSON() ([]byte, error) {
4599 type NoMethod DatafeedstatusesListResponse
4600 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4601 }
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612 type Date struct {
4613
4614
4615
4616 Day int64 `json:"day,omitempty"`
4617
4618
4619 Month int64 `json:"month,omitempty"`
4620
4621
4622 Year int64 `json:"year,omitempty"`
4623
4624
4625
4626
4627
4628 ForceSendFields []string `json:"-"`
4629
4630
4631
4632
4633 NullFields []string `json:"-"`
4634 }
4635
4636 func (s *Date) MarshalJSON() ([]byte, error) {
4637 type NoMethod Date
4638 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4639 }
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656 type DateTime struct {
4657
4658
4659 Day int64 `json:"day,omitempty"`
4660
4661
4662
4663 Hours int64 `json:"hours,omitempty"`
4664
4665
4666 Minutes int64 `json:"minutes,omitempty"`
4667
4668
4669 Month int64 `json:"month,omitempty"`
4670
4671
4672 Nanos int64 `json:"nanos,omitempty"`
4673
4674
4675
4676 Seconds int64 `json:"seconds,omitempty"`
4677
4678 TimeZone *TimeZone `json:"timeZone,omitempty"`
4679
4680
4681
4682 UtcOffset string `json:"utcOffset,omitempty"`
4683
4684
4685 Year int64 `json:"year,omitempty"`
4686
4687
4688
4689
4690
4691 ForceSendFields []string `json:"-"`
4692
4693
4694
4695
4696 NullFields []string `json:"-"`
4697 }
4698
4699 func (s *DateTime) MarshalJSON() ([]byte, error) {
4700 type NoMethod DateTime
4701 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4702 }
4703
4704
4705
4706 type DeliveryArea struct {
4707
4708
4709
4710
4711 CountryCode string `json:"countryCode,omitempty"`
4712
4713
4714 PostalCodeRange *DeliveryAreaPostalCodeRange `json:"postalCodeRange,omitempty"`
4715
4716
4717
4718
4719
4720
4721 RegionCode string `json:"regionCode,omitempty"`
4722
4723
4724
4725
4726
4727 ForceSendFields []string `json:"-"`
4728
4729
4730
4731
4732 NullFields []string `json:"-"`
4733 }
4734
4735 func (s *DeliveryArea) MarshalJSON() ([]byte, error) {
4736 type NoMethod DeliveryArea
4737 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4738 }
4739
4740
4741
4742
4743 type DeliveryAreaPostalCodeRange struct {
4744
4745
4746
4747 FirstPostalCode string `json:"firstPostalCode,omitempty"`
4748
4749
4750
4751
4752
4753
4754
4755
4756 LastPostalCode string `json:"lastPostalCode,omitempty"`
4757
4758
4759
4760
4761
4762 ForceSendFields []string `json:"-"`
4763
4764
4765
4766
4767 NullFields []string `json:"-"`
4768 }
4769
4770 func (s *DeliveryAreaPostalCodeRange) MarshalJSON() ([]byte, error) {
4771 type NoMethod DeliveryAreaPostalCodeRange
4772 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4773 }
4774
4775 type DeliveryTime struct {
4776
4777
4778
4779 CutoffTime *CutoffTime `json:"cutoffTime,omitempty"`
4780
4781
4782 HandlingBusinessDayConfig *BusinessDayConfig `json:"handlingBusinessDayConfig,omitempty"`
4783
4784
4785 HolidayCutoffs []*HolidayCutoff `json:"holidayCutoffs,omitempty"`
4786
4787
4788
4789 MaxHandlingTimeInDays int64 `json:"maxHandlingTimeInDays,omitempty"`
4790
4791
4792
4793 MaxTransitTimeInDays int64 `json:"maxTransitTimeInDays,omitempty"`
4794
4795
4796 MinHandlingTimeInDays int64 `json:"minHandlingTimeInDays,omitempty"`
4797
4798
4799
4800
4801 MinTransitTimeInDays int64 `json:"minTransitTimeInDays,omitempty"`
4802
4803
4804 TransitBusinessDayConfig *BusinessDayConfig `json:"transitBusinessDayConfig,omitempty"`
4805
4806
4807
4808 TransitTimeTable *TransitTable `json:"transitTimeTable,omitempty"`
4809
4810
4811
4812
4813 WarehouseBasedDeliveryTimes []*WarehouseBasedDeliveryTime `json:"warehouseBasedDeliveryTimes,omitempty"`
4814
4815
4816
4817
4818
4819 ForceSendFields []string `json:"-"`
4820
4821
4822
4823
4824 NullFields []string `json:"-"`
4825 }
4826
4827 func (s *DeliveryTime) MarshalJSON() ([]byte, error) {
4828 type NoMethod DeliveryTime
4829 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4830 }
4831
4832
4833 type Distance struct {
4834
4835
4836 Unit string `json:"unit,omitempty"`
4837
4838 Value int64 `json:"value,omitempty,string"`
4839
4840
4841
4842
4843
4844 ForceSendFields []string `json:"-"`
4845
4846
4847
4848
4849 NullFields []string `json:"-"`
4850 }
4851
4852 func (s *Distance) MarshalJSON() ([]byte, error) {
4853 type NoMethod Distance
4854 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4855 }
4856
4857
4858
4859 type ECommercePlatformLinkInfo struct {
4860
4861
4862 ExternalAccountId string `json:"externalAccountId,omitempty"`
4863
4864
4865
4866
4867
4868 ForceSendFields []string `json:"-"`
4869
4870
4871
4872
4873 NullFields []string `json:"-"`
4874 }
4875
4876 func (s *ECommercePlatformLinkInfo) MarshalJSON() ([]byte, error) {
4877 type NoMethod ECommercePlatformLinkInfo
4878 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4879 }
4880
4881
4882 type Error struct {
4883
4884 Domain string `json:"domain,omitempty"`
4885
4886 Message string `json:"message,omitempty"`
4887
4888 Reason string `json:"reason,omitempty"`
4889
4890
4891
4892
4893
4894 ForceSendFields []string `json:"-"`
4895
4896
4897
4898
4899 NullFields []string `json:"-"`
4900 }
4901
4902 func (s *Error) MarshalJSON() ([]byte, error) {
4903 type NoMethod Error
4904 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4905 }
4906
4907
4908 type Errors struct {
4909
4910 Code int64 `json:"code,omitempty"`
4911
4912 Errors []*Error `json:"errors,omitempty"`
4913
4914 Message string `json:"message,omitempty"`
4915
4916
4917
4918
4919
4920 ForceSendFields []string `json:"-"`
4921
4922
4923
4924
4925 NullFields []string `json:"-"`
4926 }
4927
4928 func (s *Errors) MarshalJSON() ([]byte, error) {
4929 type NoMethod Errors
4930 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4931 }
4932
4933
4934
4935
4936
4937 type ExternalAction struct {
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951 Type string `json:"type,omitempty"`
4952
4953
4954 Uri string `json:"uri,omitempty"`
4955
4956
4957
4958
4959
4960 ForceSendFields []string `json:"-"`
4961
4962
4963
4964
4965 NullFields []string `json:"-"`
4966 }
4967
4968 func (s *ExternalAction) MarshalJSON() ([]byte, error) {
4969 type NoMethod ExternalAction
4970 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4971 }
4972
4973
4974
4975 type FreeListingsProgramStatus struct {
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986 GlobalState string `json:"globalState,omitempty"`
4987
4988
4989 RegionStatuses []*FreeListingsProgramStatusRegionStatus `json:"regionStatuses,omitempty"`
4990
4991
4992 googleapi.ServerResponse `json:"-"`
4993
4994
4995
4996
4997
4998 ForceSendFields []string `json:"-"`
4999
5000
5001
5002
5003 NullFields []string `json:"-"`
5004 }
5005
5006 func (s *FreeListingsProgramStatus) MarshalJSON() ([]byte, error) {
5007 type NoMethod FreeListingsProgramStatus
5008 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5009 }
5010
5011
5012 type FreeListingsProgramStatusRegionStatus struct {
5013
5014
5015
5016 DisapprovalDate string `json:"disapprovalDate,omitempty"`
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 EligibilityStatus string `json:"eligibilityStatus,omitempty"`
5035
5036 OnboardingIssues []string `json:"onboardingIssues,omitempty"`
5037
5038
5039
5040 RegionCodes []string `json:"regionCodes,omitempty"`
5041
5042
5043
5044
5045
5046
5047
5048
5049 ReviewEligibilityStatus string `json:"reviewEligibilityStatus,omitempty"`
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 ReviewIneligibilityReason string `json:"reviewIneligibilityReason,omitempty"`
5067
5068
5069
5070 ReviewIneligibilityReasonDescription string `json:"reviewIneligibilityReasonDescription,omitempty"`
5071
5072
5073
5074 ReviewIneligibilityReasonDetails *FreeListingsProgramStatusReviewIneligibilityReasonDetails `json:"reviewIneligibilityReasonDetails,omitempty"`
5075
5076
5077 ReviewIssues []string `json:"reviewIssues,omitempty"`
5078
5079
5080
5081
5082
5083 ForceSendFields []string `json:"-"`
5084
5085
5086
5087
5088 NullFields []string `json:"-"`
5089 }
5090
5091 func (s *FreeListingsProgramStatusRegionStatus) MarshalJSON() ([]byte, error) {
5092 type NoMethod FreeListingsProgramStatusRegionStatus
5093 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5094 }
5095
5096
5097
5098 type FreeListingsProgramStatusReviewIneligibilityReasonDetails struct {
5099
5100
5101 CooldownTime string `json:"cooldownTime,omitempty"`
5102
5103
5104
5105
5106
5107 ForceSendFields []string `json:"-"`
5108
5109
5110
5111
5112 NullFields []string `json:"-"`
5113 }
5114
5115 func (s *FreeListingsProgramStatusReviewIneligibilityReasonDetails) MarshalJSON() ([]byte, error) {
5116 type NoMethod FreeListingsProgramStatusReviewIneligibilityReasonDetails
5117 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5118 }
5119
5120
5121
5122 type FreeShippingThreshold struct {
5123
5124
5125
5126 Country string `json:"country,omitempty"`
5127
5128
5129 PriceThreshold *Price `json:"priceThreshold,omitempty"`
5130
5131
5132
5133
5134
5135 ForceSendFields []string `json:"-"`
5136
5137
5138
5139
5140 NullFields []string `json:"-"`
5141 }
5142
5143 func (s *FreeShippingThreshold) MarshalJSON() ([]byte, error) {
5144 type NoMethod FreeShippingThreshold
5145 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5146 }
5147
5148
5149
5150 type GenerateRecommendationsResponse struct {
5151
5152 Recommendations []*Recommendation `json:"recommendations,omitempty"`
5153
5154
5155
5156
5157 ResponseToken string `json:"responseToken,omitempty"`
5158
5159
5160 googleapi.ServerResponse `json:"-"`
5161
5162
5163
5164
5165
5166 ForceSendFields []string `json:"-"`
5167
5168
5169
5170
5171 NullFields []string `json:"-"`
5172 }
5173
5174 func (s *GenerateRecommendationsResponse) MarshalJSON() ([]byte, error) {
5175 type NoMethod GenerateRecommendationsResponse
5176 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5177 }
5178
5179 type GmbAccounts struct {
5180
5181 AccountId uint64 `json:"accountId,omitempty,string"`
5182
5183
5184 GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"`
5185
5186
5187
5188
5189
5190 ForceSendFields []string `json:"-"`
5191
5192
5193
5194
5195 NullFields []string `json:"-"`
5196 }
5197
5198 func (s *GmbAccounts) MarshalJSON() ([]byte, error) {
5199 type NoMethod GmbAccounts
5200 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5201 }
5202
5203 type GmbAccountsGmbAccount struct {
5204
5205 Email string `json:"email,omitempty"`
5206
5207 ListingCount uint64 `json:"listingCount,omitempty,string"`
5208
5209 Name string `json:"name,omitempty"`
5210
5211 Type string `json:"type,omitempty"`
5212
5213
5214
5215
5216
5217 ForceSendFields []string `json:"-"`
5218
5219
5220
5221
5222 NullFields []string `json:"-"`
5223 }
5224
5225 func (s *GmbAccountsGmbAccount) MarshalJSON() ([]byte, error) {
5226 type NoMethod GmbAccountsGmbAccount
5227 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5228 }
5229
5230
5231
5232
5233 type GoogleAnalyticsLink struct {
5234
5235
5236 AttributionSettings *AttributionSettings `json:"attributionSettings,omitempty"`
5237
5238
5239 PropertyId int64 `json:"propertyId,omitempty,string"`
5240
5241
5242 PropertyName string `json:"propertyName,omitempty"`
5243
5244
5245
5246
5247
5248 ForceSendFields []string `json:"-"`
5249
5250
5251
5252
5253 NullFields []string `json:"-"`
5254 }
5255
5256 func (s *GoogleAnalyticsLink) MarshalJSON() ([]byte, error) {
5257 type NoMethod GoogleAnalyticsLink
5258 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5259 }
5260
5261
5262
5263
5264 type Headers struct {
5265
5266
5267 Locations []*LocationIdSet `json:"locations,omitempty"`
5268
5269
5270
5271
5272 NumberOfItems []string `json:"numberOfItems,omitempty"`
5273
5274
5275
5276
5277
5278 PostalCodeGroupNames []string `json:"postalCodeGroupNames,omitempty"`
5279
5280
5281
5282
5283
5284
5285 Prices []*Price `json:"prices,omitempty"`
5286
5287
5288
5289
5290
5291
5292 Weights []*Weight `json:"weights,omitempty"`
5293
5294
5295
5296
5297
5298 ForceSendFields []string `json:"-"`
5299
5300
5301
5302
5303 NullFields []string `json:"-"`
5304 }
5305
5306 func (s *Headers) MarshalJSON() ([]byte, error) {
5307 type NoMethod Headers
5308 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5309 }
5310
5311 type HolidayCutoff struct {
5312
5313
5314 DeadlineDate string `json:"deadlineDate,omitempty"`
5315
5316
5317
5318 DeadlineHour int64 `json:"deadlineHour,omitempty"`
5319
5320
5321 DeadlineTimezone string `json:"deadlineTimezone,omitempty"`
5322
5323 HolidayId string `json:"holidayId,omitempty"`
5324
5325
5326
5327 VisibleFromDate string `json:"visibleFromDate,omitempty"`
5328
5329
5330
5331
5332
5333 ForceSendFields []string `json:"-"`
5334
5335
5336
5337
5338 NullFields []string `json:"-"`
5339 }
5340
5341 func (s *HolidayCutoff) MarshalJSON() ([]byte, error) {
5342 type NoMethod HolidayCutoff
5343 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5344 }
5345
5346 type HolidaysHoliday struct {
5347
5348
5349
5350
5351 CountryCode string `json:"countryCode,omitempty"`
5352
5353
5354 Date string `json:"date,omitempty"`
5355
5356
5357
5358 DeliveryGuaranteeDate string `json:"deliveryGuaranteeDate,omitempty"`
5359
5360
5361
5362
5363 DeliveryGuaranteeHour uint64 `json:"deliveryGuaranteeHour,omitempty,string"`
5364
5365
5366 Id string `json:"id,omitempty"`
5367
5368
5369
5370
5371 Type string `json:"type,omitempty"`
5372
5373
5374
5375
5376
5377 ForceSendFields []string `json:"-"`
5378
5379
5380
5381
5382 NullFields []string `json:"-"`
5383 }
5384
5385 func (s *HolidaysHoliday) MarshalJSON() ([]byte, error) {
5386 type NoMethod HolidaysHoliday
5387 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5388 }
5389
5390
5391
5392
5393 type InputField struct {
5394
5395
5396
5397 CheckboxInput *InputFieldCheckboxInput `json:"checkboxInput,omitempty"`
5398
5399
5400
5401 ChoiceInput *InputFieldChoiceInput `json:"choiceInput,omitempty"`
5402
5403 Id string `json:"id,omitempty"`
5404
5405
5406 Label *TextWithTooltip `json:"label,omitempty"`
5407
5408
5409 Required bool `json:"required,omitempty"`
5410
5411
5412
5413
5414
5415 TextInput *InputFieldTextInput `json:"textInput,omitempty"`
5416
5417
5418
5419
5420
5421 ForceSendFields []string `json:"-"`
5422
5423
5424
5425
5426 NullFields []string `json:"-"`
5427 }
5428
5429 func (s *InputField) MarshalJSON() ([]byte, error) {
5430 type NoMethod InputField
5431 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5432 }
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443 type InputFieldCheckboxInput struct {
5444 }
5445
5446
5447
5448
5449
5450
5451
5452 type InputFieldChoiceInput struct {
5453
5454 Options []*InputFieldChoiceInputChoiceInputOption `json:"options,omitempty"`
5455
5456
5457
5458
5459
5460 ForceSendFields []string `json:"-"`
5461
5462
5463
5464
5465 NullFields []string `json:"-"`
5466 }
5467
5468 func (s *InputFieldChoiceInput) MarshalJSON() ([]byte, error) {
5469 type NoMethod InputFieldChoiceInput
5470 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5471 }
5472
5473
5474 type InputFieldChoiceInputChoiceInputOption struct {
5475
5476
5477 AdditionalInput *InputField `json:"additionalInput,omitempty"`
5478
5479 Id string `json:"id,omitempty"`
5480
5481
5482 Label *TextWithTooltip `json:"label,omitempty"`
5483
5484
5485
5486
5487
5488 ForceSendFields []string `json:"-"`
5489
5490
5491
5492
5493 NullFields []string `json:"-"`
5494 }
5495
5496 func (s *InputFieldChoiceInputChoiceInputOption) MarshalJSON() ([]byte, error) {
5497 type NoMethod InputFieldChoiceInputChoiceInputOption
5498 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5499 }
5500
5501
5502 type InputFieldTextInput struct {
5503
5504
5505
5506 AdditionalInfo *TextWithTooltip `json:"additionalInfo,omitempty"`
5507
5508
5509 AriaLabel string `json:"ariaLabel,omitempty"`
5510
5511
5512
5513 FormatInfo string `json:"formatInfo,omitempty"`
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 Type string `json:"type,omitempty"`
5528
5529
5530
5531
5532
5533 ForceSendFields []string `json:"-"`
5534
5535
5536
5537
5538 NullFields []string `json:"-"`
5539 }
5540
5541 func (s *InputFieldTextInput) MarshalJSON() ([]byte, error) {
5542 type NoMethod InputFieldTextInput
5543 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5544 }
5545
5546
5547 type InputValue struct {
5548
5549 CheckboxInputValue *InputValueCheckboxInputValue `json:"checkboxInputValue,omitempty"`
5550
5551 ChoiceInputValue *InputValueChoiceInputValue `json:"choiceInputValue,omitempty"`
5552
5553 InputFieldId string `json:"inputFieldId,omitempty"`
5554
5555 TextInputValue *InputValueTextInputValue `json:"textInputValue,omitempty"`
5556
5557
5558
5559
5560
5561 ForceSendFields []string `json:"-"`
5562
5563
5564
5565
5566 NullFields []string `json:"-"`
5567 }
5568
5569 func (s *InputValue) MarshalJSON() ([]byte, error) {
5570 type NoMethod InputValue
5571 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5572 }
5573
5574
5575 type InputValueCheckboxInputValue struct {
5576
5577
5578 Value bool `json:"value,omitempty"`
5579
5580
5581
5582
5583
5584 ForceSendFields []string `json:"-"`
5585
5586
5587
5588
5589 NullFields []string `json:"-"`
5590 }
5591
5592 func (s *InputValueCheckboxInputValue) MarshalJSON() ([]byte, error) {
5593 type NoMethod InputValueCheckboxInputValue
5594 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5595 }
5596
5597
5598 type InputValueChoiceInputValue struct {
5599
5600
5601 ChoiceInputOptionId string `json:"choiceInputOptionId,omitempty"`
5602
5603
5604
5605
5606
5607 ForceSendFields []string `json:"-"`
5608
5609
5610
5611
5612 NullFields []string `json:"-"`
5613 }
5614
5615 func (s *InputValueChoiceInputValue) MarshalJSON() ([]byte, error) {
5616 type NoMethod InputValueChoiceInputValue
5617 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5618 }
5619
5620
5621 type InputValueTextInputValue struct {
5622
5623 Value string `json:"value,omitempty"`
5624
5625
5626
5627
5628
5629 ForceSendFields []string `json:"-"`
5630
5631
5632
5633
5634 NullFields []string `json:"-"`
5635 }
5636
5637 func (s *InputValueTextInputValue) MarshalJSON() ([]byte, error) {
5638 type NoMethod InputValueTextInputValue
5639 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5640 }
5641
5642
5643
5644 type InsertCheckoutSettingsRequest struct {
5645
5646
5647 UriSettings *UrlSettings `json:"uriSettings,omitempty"`
5648
5649
5650
5651
5652
5653 ForceSendFields []string `json:"-"`
5654
5655
5656
5657
5658 NullFields []string `json:"-"`
5659 }
5660
5661 func (s *InsertCheckoutSettingsRequest) MarshalJSON() ([]byte, error) {
5662 type NoMethod InsertCheckoutSettingsRequest
5663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5664 }
5665
5666
5667
5668 type Installment struct {
5669
5670 Amount *Price `json:"amount,omitempty"`
5671
5672
5673 CreditType string `json:"creditType,omitempty"`
5674
5675 Downpayment *Price `json:"downpayment,omitempty"`
5676
5677 Months int64 `json:"months,omitempty,string"`
5678
5679
5680
5681
5682
5683 ForceSendFields []string `json:"-"`
5684
5685
5686
5687
5688 NullFields []string `json:"-"`
5689 }
5690
5691 func (s *Installment) MarshalJSON() ([]byte, error) {
5692 type NoMethod Installment
5693 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5694 }
5695
5696 type InvoiceSummary struct {
5697
5698
5699 AdditionalChargeSummaries []*InvoiceSummaryAdditionalChargeSummary `json:"additionalChargeSummaries,omitempty"`
5700
5701 ProductTotal *Amount `json:"productTotal,omitempty"`
5702
5703
5704
5705
5706
5707 ForceSendFields []string `json:"-"`
5708
5709
5710
5711
5712 NullFields []string `json:"-"`
5713 }
5714
5715 func (s *InvoiceSummary) MarshalJSON() ([]byte, error) {
5716 type NoMethod InvoiceSummary
5717 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5718 }
5719
5720 type InvoiceSummaryAdditionalChargeSummary struct {
5721
5722 TotalAmount *Amount `json:"totalAmount,omitempty"`
5723
5724
5725 Type string `json:"type,omitempty"`
5726
5727
5728
5729
5730
5731 ForceSendFields []string `json:"-"`
5732
5733
5734
5735
5736 NullFields []string `json:"-"`
5737 }
5738
5739 func (s *InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error) {
5740 type NoMethod InvoiceSummaryAdditionalChargeSummary
5741 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5742 }
5743
5744
5745 type LabelIds struct {
5746
5747 LabelIds googleapi.Int64s `json:"labelIds,omitempty"`
5748
5749
5750
5751
5752
5753 ForceSendFields []string `json:"-"`
5754
5755
5756
5757
5758 NullFields []string `json:"-"`
5759 }
5760
5761 func (s *LabelIds) MarshalJSON() ([]byte, error) {
5762 type NoMethod LabelIds
5763 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5764 }
5765
5766 type LiaAboutPageSettings struct {
5767
5768
5769 Status string `json:"status,omitempty"`
5770
5771 Url string `json:"url,omitempty"`
5772
5773
5774
5775
5776
5777 ForceSendFields []string `json:"-"`
5778
5779
5780
5781
5782 NullFields []string `json:"-"`
5783 }
5784
5785 func (s *LiaAboutPageSettings) MarshalJSON() ([]byte, error) {
5786 type NoMethod LiaAboutPageSettings
5787 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5788 }
5789
5790 type LiaCountrySettings struct {
5791
5792 About *LiaAboutPageSettings `json:"about,omitempty"`
5793
5794 Country string `json:"country,omitempty"`
5795
5796
5797 HostedLocalStorefrontActive bool `json:"hostedLocalStorefrontActive,omitempty"`
5798
5799 Inventory *LiaInventorySettings `json:"inventory,omitempty"`
5800
5801
5802 OmnichannelExperience *LiaOmnichannelExperience `json:"omnichannelExperience,omitempty"`
5803
5804 OnDisplayToOrder *LiaOnDisplayToOrderSettings `json:"onDisplayToOrder,omitempty"`
5805
5806 PosDataProvider *LiaPosDataProvider `json:"posDataProvider,omitempty"`
5807
5808 StorePickupActive bool `json:"storePickupActive,omitempty"`
5809
5810
5811
5812
5813
5814 ForceSendFields []string `json:"-"`
5815
5816
5817
5818
5819 NullFields []string `json:"-"`
5820 }
5821
5822 func (s *LiaCountrySettings) MarshalJSON() ([]byte, error) {
5823 type NoMethod LiaCountrySettings
5824 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5825 }
5826
5827 type LiaInventorySettings struct {
5828
5829
5830 InventoryVerificationContactEmail string `json:"inventoryVerificationContactEmail,omitempty"`
5831
5832
5833 InventoryVerificationContactName string `json:"inventoryVerificationContactName,omitempty"`
5834
5835
5836 InventoryVerificationContactStatus string `json:"inventoryVerificationContactStatus,omitempty"`
5837
5838
5839 Status string `json:"status,omitempty"`
5840
5841
5842
5843
5844
5845
5846 ForceSendFields []string `json:"-"`
5847
5848
5849
5850
5851
5852 NullFields []string `json:"-"`
5853 }
5854
5855 func (s *LiaInventorySettings) MarshalJSON() ([]byte, error) {
5856 type NoMethod LiaInventorySettings
5857 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5858 }
5859
5860
5861 type LiaOmnichannelExperience struct {
5862
5863 Country string `json:"country,omitempty"`
5864
5865
5866
5867
5868 LsfType string `json:"lsfType,omitempty"`
5869
5870
5871 PickupTypes []string `json:"pickupTypes,omitempty"`
5872
5873
5874 googleapi.ServerResponse `json:"-"`
5875
5876
5877
5878
5879
5880 ForceSendFields []string `json:"-"`
5881
5882
5883
5884
5885 NullFields []string `json:"-"`
5886 }
5887
5888 func (s *LiaOmnichannelExperience) MarshalJSON() ([]byte, error) {
5889 type NoMethod LiaOmnichannelExperience
5890 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5891 }
5892
5893 type LiaOnDisplayToOrderSettings struct {
5894
5895 ShippingCostPolicyUrl string `json:"shippingCostPolicyUrl,omitempty"`
5896
5897
5898 Status string `json:"status,omitempty"`
5899
5900
5901
5902
5903
5904 ForceSendFields []string `json:"-"`
5905
5906
5907
5908
5909 NullFields []string `json:"-"`
5910 }
5911
5912 func (s *LiaOnDisplayToOrderSettings) MarshalJSON() ([]byte, error) {
5913 type NoMethod LiaOnDisplayToOrderSettings
5914 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5915 }
5916
5917 type LiaPosDataProvider struct {
5918
5919 PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"`
5920
5921
5922 PosExternalAccountId string `json:"posExternalAccountId,omitempty"`
5923
5924
5925
5926
5927
5928 ForceSendFields []string `json:"-"`
5929
5930
5931
5932
5933 NullFields []string `json:"-"`
5934 }
5935
5936 func (s *LiaPosDataProvider) MarshalJSON() ([]byte, error) {
5937 type NoMethod LiaPosDataProvider
5938 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5939 }
5940
5941
5942
5943 type LiaSettings struct {
5944
5945
5946 AccountId uint64 `json:"accountId,omitempty,string"`
5947
5948 CountrySettings []*LiaCountrySettings `json:"countrySettings,omitempty"`
5949
5950
5951 Kind string `json:"kind,omitempty"`
5952
5953
5954 googleapi.ServerResponse `json:"-"`
5955
5956
5957
5958
5959
5960 ForceSendFields []string `json:"-"`
5961
5962
5963
5964
5965 NullFields []string `json:"-"`
5966 }
5967
5968 func (s *LiaSettings) MarshalJSON() ([]byte, error) {
5969 type NoMethod LiaSettings
5970 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5971 }
5972
5973 type LiasettingsCustomBatchRequest struct {
5974
5975 Entries []*LiasettingsCustomBatchRequestEntry `json:"entries,omitempty"`
5976
5977
5978
5979
5980
5981 ForceSendFields []string `json:"-"`
5982
5983
5984
5985
5986 NullFields []string `json:"-"`
5987 }
5988
5989 func (s *LiasettingsCustomBatchRequest) MarshalJSON() ([]byte, error) {
5990 type NoMethod LiasettingsCustomBatchRequest
5991 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5992 }
5993
5994 type LiasettingsCustomBatchRequestEntry struct {
5995
5996
5997 AccountId uint64 `json:"accountId,omitempty,string"`
5998
5999 BatchId int64 `json:"batchId,omitempty"`
6000
6001
6002 ContactEmail string `json:"contactEmail,omitempty"`
6003
6004
6005 ContactName string `json:"contactName,omitempty"`
6006
6007 Country string `json:"country,omitempty"`
6008
6009 GmbEmail string `json:"gmbEmail,omitempty"`
6010
6011
6012 LiaSettings *LiaSettings `json:"liaSettings,omitempty"`
6013
6014 MerchantId uint64 `json:"merchantId,omitempty,string"`
6015
6016
6017
6018
6019 Method string `json:"method,omitempty"`
6020
6021
6022 OmnichannelExperience *LiaOmnichannelExperience `json:"omnichannelExperience,omitempty"`
6023
6024
6025 PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"`
6026
6027
6028 PosExternalAccountId string `json:"posExternalAccountId,omitempty"`
6029
6030
6031
6032
6033
6034 ForceSendFields []string `json:"-"`
6035
6036
6037
6038
6039 NullFields []string `json:"-"`
6040 }
6041
6042 func (s *LiasettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
6043 type NoMethod LiasettingsCustomBatchRequestEntry
6044 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6045 }
6046
6047 type LiasettingsCustomBatchResponse struct {
6048
6049 Entries []*LiasettingsCustomBatchResponseEntry `json:"entries,omitempty"`
6050
6051
6052 Kind string `json:"kind,omitempty"`
6053
6054
6055 googleapi.ServerResponse `json:"-"`
6056
6057
6058
6059
6060
6061 ForceSendFields []string `json:"-"`
6062
6063
6064
6065
6066 NullFields []string `json:"-"`
6067 }
6068
6069 func (s *LiasettingsCustomBatchResponse) MarshalJSON() ([]byte, error) {
6070 type NoMethod LiasettingsCustomBatchResponse
6071 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6072 }
6073
6074 type LiasettingsCustomBatchResponseEntry struct {
6075
6076 BatchId int64 `json:"batchId,omitempty"`
6077
6078 Errors *Errors `json:"errors,omitempty"`
6079
6080 GmbAccounts *GmbAccounts `json:"gmbAccounts,omitempty"`
6081
6082
6083 Kind string `json:"kind,omitempty"`
6084
6085 LiaSettings *LiaSettings `json:"liaSettings,omitempty"`
6086
6087 OmnichannelExperience *LiaOmnichannelExperience `json:"omnichannelExperience,omitempty"`
6088
6089 PosDataProviders []*PosDataProviders `json:"posDataProviders,omitempty"`
6090
6091
6092
6093
6094
6095 ForceSendFields []string `json:"-"`
6096
6097
6098
6099
6100 NullFields []string `json:"-"`
6101 }
6102
6103 func (s *LiasettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
6104 type NoMethod LiasettingsCustomBatchResponseEntry
6105 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6106 }
6107
6108 type LiasettingsGetAccessibleGmbAccountsResponse struct {
6109
6110 AccountId uint64 `json:"accountId,omitempty,string"`
6111
6112
6113 GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"`
6114
6115
6116 Kind string `json:"kind,omitempty"`
6117
6118
6119 googleapi.ServerResponse `json:"-"`
6120
6121
6122
6123
6124
6125 ForceSendFields []string `json:"-"`
6126
6127
6128
6129
6130 NullFields []string `json:"-"`
6131 }
6132
6133 func (s *LiasettingsGetAccessibleGmbAccountsResponse) MarshalJSON() ([]byte, error) {
6134 type NoMethod LiasettingsGetAccessibleGmbAccountsResponse
6135 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6136 }
6137
6138 type LiasettingsListPosDataProvidersResponse struct {
6139
6140
6141 Kind string `json:"kind,omitempty"`
6142
6143 PosDataProviders []*PosDataProviders `json:"posDataProviders,omitempty"`
6144
6145
6146 googleapi.ServerResponse `json:"-"`
6147
6148
6149
6150
6151
6152 ForceSendFields []string `json:"-"`
6153
6154
6155
6156
6157 NullFields []string `json:"-"`
6158 }
6159
6160 func (s *LiasettingsListPosDataProvidersResponse) MarshalJSON() ([]byte, error) {
6161 type NoMethod LiasettingsListPosDataProvidersResponse
6162 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6163 }
6164
6165 type LiasettingsListResponse struct {
6166
6167
6168 Kind string `json:"kind,omitempty"`
6169
6170 NextPageToken string `json:"nextPageToken,omitempty"`
6171 Resources []*LiaSettings `json:"resources,omitempty"`
6172
6173
6174 googleapi.ServerResponse `json:"-"`
6175
6176
6177
6178
6179
6180 ForceSendFields []string `json:"-"`
6181
6182
6183
6184
6185 NullFields []string `json:"-"`
6186 }
6187
6188 func (s *LiasettingsListResponse) MarshalJSON() ([]byte, error) {
6189 type NoMethod LiasettingsListResponse
6190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6191 }
6192
6193 type LiasettingsRequestGmbAccessResponse struct {
6194
6195
6196 Kind string `json:"kind,omitempty"`
6197
6198
6199 googleapi.ServerResponse `json:"-"`
6200
6201
6202
6203
6204
6205 ForceSendFields []string `json:"-"`
6206
6207
6208
6209
6210 NullFields []string `json:"-"`
6211 }
6212
6213 func (s *LiasettingsRequestGmbAccessResponse) MarshalJSON() ([]byte, error) {
6214 type NoMethod LiasettingsRequestGmbAccessResponse
6215 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6216 }
6217
6218 type LiasettingsRequestInventoryVerificationResponse struct {
6219
6220
6221 Kind string `json:"kind,omitempty"`
6222
6223
6224 googleapi.ServerResponse `json:"-"`
6225
6226
6227
6228
6229
6230 ForceSendFields []string `json:"-"`
6231
6232
6233
6234
6235 NullFields []string `json:"-"`
6236 }
6237
6238 func (s *LiasettingsRequestInventoryVerificationResponse) MarshalJSON() ([]byte, error) {
6239 type NoMethod LiasettingsRequestInventoryVerificationResponse
6240 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6241 }
6242
6243 type LiasettingsSetInventoryVerificationContactResponse struct {
6244
6245
6246 Kind string `json:"kind,omitempty"`
6247
6248
6249 googleapi.ServerResponse `json:"-"`
6250
6251
6252
6253
6254
6255 ForceSendFields []string `json:"-"`
6256
6257
6258
6259
6260 NullFields []string `json:"-"`
6261 }
6262
6263 func (s *LiasettingsSetInventoryVerificationContactResponse) MarshalJSON() ([]byte, error) {
6264 type NoMethod LiasettingsSetInventoryVerificationContactResponse
6265 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6266 }
6267
6268 type LiasettingsSetPosDataProviderResponse struct {
6269
6270
6271 Kind string `json:"kind,omitempty"`
6272
6273
6274 googleapi.ServerResponse `json:"-"`
6275
6276
6277
6278
6279
6280 ForceSendFields []string `json:"-"`
6281
6282
6283
6284
6285 NullFields []string `json:"-"`
6286 }
6287
6288 func (s *LiasettingsSetPosDataProviderResponse) MarshalJSON() ([]byte, error) {
6289 type NoMethod LiasettingsSetPosDataProviderResponse
6290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6291 }
6292
6293 type LinkService struct {
6294
6295
6296
6297
6298 Service string `json:"service,omitempty"`
6299
6300
6301 Status string `json:"status,omitempty"`
6302
6303
6304
6305
6306
6307 ForceSendFields []string `json:"-"`
6308
6309
6310
6311
6312 NullFields []string `json:"-"`
6313 }
6314
6315 func (s *LinkService) MarshalJSON() ([]byte, error) {
6316 type NoMethod LinkService
6317 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6318 }
6319
6320 type LinkedAccount struct {
6321
6322 LinkedAccountId string `json:"linkedAccountId,omitempty"`
6323
6324 Services []*LinkService `json:"services,omitempty"`
6325
6326
6327
6328
6329
6330 ForceSendFields []string `json:"-"`
6331
6332
6333
6334
6335 NullFields []string `json:"-"`
6336 }
6337
6338 func (s *LinkedAccount) MarshalJSON() ([]byte, error) {
6339 type NoMethod LinkedAccount
6340 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6341 }
6342
6343
6344
6345 type ListAccountLabelsResponse struct {
6346
6347 AccountLabels []*AccountLabel `json:"accountLabels,omitempty"`
6348
6349
6350 NextPageToken string `json:"nextPageToken,omitempty"`
6351
6352
6353 googleapi.ServerResponse `json:"-"`
6354
6355
6356
6357
6358
6359 ForceSendFields []string `json:"-"`
6360
6361
6362
6363
6364 NullFields []string `json:"-"`
6365 }
6366
6367 func (s *ListAccountLabelsResponse) MarshalJSON() ([]byte, error) {
6368 type NoMethod ListAccountLabelsResponse
6369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6370 }
6371
6372
6373
6374 type ListAccountReturnCarrierResponse struct {
6375
6376
6377 AccountReturnCarriers []*AccountReturnCarrier `json:"accountReturnCarriers,omitempty"`
6378
6379
6380 googleapi.ServerResponse `json:"-"`
6381
6382
6383
6384
6385
6386 ForceSendFields []string `json:"-"`
6387
6388
6389
6390
6391 NullFields []string `json:"-"`
6392 }
6393
6394 func (s *ListAccountReturnCarrierResponse) MarshalJSON() ([]byte, error) {
6395 type NoMethod ListAccountReturnCarrierResponse
6396 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6397 }
6398
6399
6400
6401 type ListCollectionStatusesResponse struct {
6402
6403
6404 NextPageToken string `json:"nextPageToken,omitempty"`
6405
6406 Resources []*CollectionStatus `json:"resources,omitempty"`
6407
6408
6409 googleapi.ServerResponse `json:"-"`
6410
6411
6412
6413
6414
6415 ForceSendFields []string `json:"-"`
6416
6417
6418
6419
6420 NullFields []string `json:"-"`
6421 }
6422
6423 func (s *ListCollectionStatusesResponse) MarshalJSON() ([]byte, error) {
6424 type NoMethod ListCollectionStatusesResponse
6425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6426 }
6427
6428
6429 type ListCollectionsResponse struct {
6430
6431
6432 NextPageToken string `json:"nextPageToken,omitempty"`
6433
6434 Resources []*Collection `json:"resources,omitempty"`
6435
6436
6437 googleapi.ServerResponse `json:"-"`
6438
6439
6440
6441
6442
6443 ForceSendFields []string `json:"-"`
6444
6445
6446
6447
6448 NullFields []string `json:"-"`
6449 }
6450
6451 func (s *ListCollectionsResponse) MarshalJSON() ([]byte, error) {
6452 type NoMethod ListCollectionsResponse
6453 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6454 }
6455
6456
6457
6458 type ListConversionSourcesResponse struct {
6459
6460 ConversionSources []*ConversionSource `json:"conversionSources,omitempty"`
6461
6462 NextPageToken string `json:"nextPageToken,omitempty"`
6463
6464
6465 googleapi.ServerResponse `json:"-"`
6466
6467
6468
6469
6470
6471 ForceSendFields []string `json:"-"`
6472
6473
6474
6475
6476 NullFields []string `json:"-"`
6477 }
6478
6479 func (s *ListConversionSourcesResponse) MarshalJSON() ([]byte, error) {
6480 type NoMethod ListConversionSourcesResponse
6481 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6482 }
6483
6484
6485 type ListCssesResponse struct {
6486
6487 Csses []*Css `json:"csses,omitempty"`
6488
6489
6490 NextPageToken string `json:"nextPageToken,omitempty"`
6491
6492
6493 googleapi.ServerResponse `json:"-"`
6494
6495
6496
6497
6498
6499 ForceSendFields []string `json:"-"`
6500
6501
6502
6503
6504 NullFields []string `json:"-"`
6505 }
6506
6507 func (s *ListCssesResponse) MarshalJSON() ([]byte, error) {
6508 type NoMethod ListCssesResponse
6509 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6510 }
6511
6512
6513 type ListMethodQuotasResponse struct {
6514
6515 MethodQuotas []*MethodQuota `json:"methodQuotas,omitempty"`
6516
6517
6518 NextPageToken string `json:"nextPageToken,omitempty"`
6519
6520
6521 googleapi.ServerResponse `json:"-"`
6522
6523
6524
6525
6526
6527 ForceSendFields []string `json:"-"`
6528
6529
6530
6531
6532 NullFields []string `json:"-"`
6533 }
6534
6535 func (s *ListMethodQuotasResponse) MarshalJSON() ([]byte, error) {
6536 type NoMethod ListMethodQuotasResponse
6537 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6538 }
6539
6540
6541 type ListPromotionResponse struct {
6542
6543
6544 NextPageToken string `json:"nextPageToken,omitempty"`
6545
6546 Promotions []*Promotion `json:"promotions,omitempty"`
6547
6548
6549 googleapi.ServerResponse `json:"-"`
6550
6551
6552
6553
6554
6555 ForceSendFields []string `json:"-"`
6556
6557
6558
6559
6560 NullFields []string `json:"-"`
6561 }
6562
6563 func (s *ListPromotionResponse) MarshalJSON() ([]byte, error) {
6564 type NoMethod ListPromotionResponse
6565 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6566 }
6567
6568
6569 type ListRegionsResponse struct {
6570
6571
6572 NextPageToken string `json:"nextPageToken,omitempty"`
6573
6574 Regions []*Region `json:"regions,omitempty"`
6575
6576
6577 googleapi.ServerResponse `json:"-"`
6578
6579
6580
6581
6582
6583 ForceSendFields []string `json:"-"`
6584
6585
6586
6587
6588 NullFields []string `json:"-"`
6589 }
6590
6591 func (s *ListRegionsResponse) MarshalJSON() ([]byte, error) {
6592 type NoMethod ListRegionsResponse
6593 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6594 }
6595
6596
6597
6598 type ListReturnPolicyOnlineResponse struct {
6599
6600 ReturnPolicies []*ReturnPolicyOnline `json:"returnPolicies,omitempty"`
6601
6602
6603 googleapi.ServerResponse `json:"-"`
6604
6605
6606
6607
6608
6609 ForceSendFields []string `json:"-"`
6610
6611
6612
6613
6614 NullFields []string `json:"-"`
6615 }
6616
6617 func (s *ListReturnPolicyOnlineResponse) MarshalJSON() ([]byte, error) {
6618 type NoMethod ListReturnPolicyOnlineResponse
6619 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6620 }
6621
6622
6623
6624 type LocalInventory struct {
6625
6626
6627 Availability string `json:"availability,omitempty"`
6628
6629
6630
6631 CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"`
6632
6633 InstoreProductLocation string `json:"instoreProductLocation,omitempty"`
6634
6635
6636 Kind string `json:"kind,omitempty"`
6637
6638
6639
6640
6641 PickupMethod string `json:"pickupMethod,omitempty"`
6642
6643
6644
6645
6646 PickupSla string `json:"pickupSla,omitempty"`
6647
6648 Price *Price `json:"price,omitempty"`
6649
6650 Quantity int64 `json:"quantity,omitempty"`
6651
6652
6653 SalePrice *Price `json:"salePrice,omitempty"`
6654
6655
6656
6657 SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"`
6658
6659 StoreCode string `json:"storeCode,omitempty"`
6660
6661
6662 googleapi.ServerResponse `json:"-"`
6663
6664
6665
6666
6667
6668 ForceSendFields []string `json:"-"`
6669
6670
6671
6672
6673 NullFields []string `json:"-"`
6674 }
6675
6676 func (s *LocalInventory) MarshalJSON() ([]byte, error) {
6677 type NoMethod LocalInventory
6678 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6679 }
6680
6681 type LocalinventoryCustomBatchRequest struct {
6682
6683 Entries []*LocalinventoryCustomBatchRequestEntry `json:"entries,omitempty"`
6684
6685
6686
6687
6688
6689 ForceSendFields []string `json:"-"`
6690
6691
6692
6693
6694 NullFields []string `json:"-"`
6695 }
6696
6697 func (s *LocalinventoryCustomBatchRequest) MarshalJSON() ([]byte, error) {
6698 type NoMethod LocalinventoryCustomBatchRequest
6699 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6700 }
6701
6702
6703
6704 type LocalinventoryCustomBatchRequestEntry struct {
6705
6706 BatchId int64 `json:"batchId,omitempty"`
6707
6708 LocalInventory *LocalInventory `json:"localInventory,omitempty"`
6709
6710 MerchantId uint64 `json:"merchantId,omitempty,string"`
6711
6712
6713 Method string `json:"method,omitempty"`
6714
6715 ProductId string `json:"productId,omitempty"`
6716
6717
6718
6719
6720
6721 ForceSendFields []string `json:"-"`
6722
6723
6724
6725
6726 NullFields []string `json:"-"`
6727 }
6728
6729 func (s *LocalinventoryCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
6730 type NoMethod LocalinventoryCustomBatchRequestEntry
6731 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6732 }
6733
6734 type LocalinventoryCustomBatchResponse struct {
6735
6736 Entries []*LocalinventoryCustomBatchResponseEntry `json:"entries,omitempty"`
6737
6738
6739 Kind string `json:"kind,omitempty"`
6740
6741
6742 googleapi.ServerResponse `json:"-"`
6743
6744
6745
6746
6747
6748 ForceSendFields []string `json:"-"`
6749
6750
6751
6752
6753 NullFields []string `json:"-"`
6754 }
6755
6756 func (s *LocalinventoryCustomBatchResponse) MarshalJSON() ([]byte, error) {
6757 type NoMethod LocalinventoryCustomBatchResponse
6758 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6759 }
6760
6761
6762
6763 type LocalinventoryCustomBatchResponseEntry struct {
6764
6765 BatchId int64 `json:"batchId,omitempty"`
6766
6767
6768 Errors *Errors `json:"errors,omitempty"`
6769
6770
6771 Kind string `json:"kind,omitempty"`
6772
6773
6774
6775
6776
6777 ForceSendFields []string `json:"-"`
6778
6779
6780
6781
6782 NullFields []string `json:"-"`
6783 }
6784
6785 func (s *LocalinventoryCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
6786 type NoMethod LocalinventoryCustomBatchResponseEntry
6787 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6788 }
6789
6790 type LocationIdSet struct {
6791
6792
6793 LocationIds []string `json:"locationIds,omitempty"`
6794
6795
6796
6797
6798
6799 ForceSendFields []string `json:"-"`
6800
6801
6802
6803
6804 NullFields []string `json:"-"`
6805 }
6806
6807 func (s *LocationIdSet) MarshalJSON() ([]byte, error) {
6808 type NoMethod LocationIdSet
6809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6810 }
6811
6812
6813
6814
6815 type LoyaltyProgram struct {
6816
6817
6818 CashbackForFutureUse *Price `json:"cashbackForFutureUse,omitempty"`
6819
6820 LoyaltyPoints int64 `json:"loyaltyPoints,omitempty,string"`
6821
6822
6823 Price *Price `json:"price,omitempty"`
6824
6825
6826
6827
6828
6829 ProgramLabel string `json:"programLabel,omitempty"`
6830
6831
6832 TierLabel string `json:"tierLabel,omitempty"`
6833
6834
6835
6836
6837
6838 ForceSendFields []string `json:"-"`
6839
6840
6841
6842
6843 NullFields []string `json:"-"`
6844 }
6845
6846 func (s *LoyaltyProgram) MarshalJSON() ([]byte, error) {
6847 type NoMethod LoyaltyProgram
6848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6849 }
6850
6851
6852
6853
6854 type MerchantCenterDestination struct {
6855
6856
6857 AttributionSettings *AttributionSettings `json:"attributionSettings,omitempty"`
6858
6859
6860
6861 CurrencyCode string `json:"currencyCode,omitempty"`
6862
6863 DestinationId string `json:"destinationId,omitempty"`
6864
6865
6866
6867 DisplayName string `json:"displayName,omitempty"`
6868
6869
6870
6871
6872
6873 ForceSendFields []string `json:"-"`
6874
6875
6876
6877
6878 NullFields []string `json:"-"`
6879 }
6880
6881 func (s *MerchantCenterDestination) MarshalJSON() ([]byte, error) {
6882 type NoMethod MerchantCenterDestination
6883 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6884 }
6885
6886
6887
6888 type MerchantOrderReturn struct {
6889
6890 CreationDate string `json:"creationDate,omitempty"`
6891
6892 MerchantOrderId string `json:"merchantOrderId,omitempty"`
6893
6894 OrderId string `json:"orderId,omitempty"`
6895
6896 OrderReturnId string `json:"orderReturnId,omitempty"`
6897
6898 ReturnItems []*MerchantOrderReturnItem `json:"returnItems,omitempty"`
6899
6900 ReturnPricingInfo *ReturnPricingInfo `json:"returnPricingInfo,omitempty"`
6901
6902 ReturnShipments []*ReturnShipment `json:"returnShipments,omitempty"`
6903
6904
6905 googleapi.ServerResponse `json:"-"`
6906
6907
6908
6909
6910
6911 ForceSendFields []string `json:"-"`
6912
6913
6914
6915
6916 NullFields []string `json:"-"`
6917 }
6918
6919 func (s *MerchantOrderReturn) MarshalJSON() ([]byte, error) {
6920 type NoMethod MerchantOrderReturn
6921 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6922 }
6923
6924 type MerchantOrderReturnItem struct {
6925
6926
6927 CustomerReturnReason *CustomerReturnReason `json:"customerReturnReason,omitempty"`
6928
6929
6930 ItemId string `json:"itemId,omitempty"`
6931
6932
6933 MerchantRejectionReason *MerchantRejectionReason `json:"merchantRejectionReason,omitempty"`
6934
6935
6936 MerchantReturnReason *RefundReason `json:"merchantReturnReason,omitempty"`
6937
6938 Product *OrderLineItemProduct `json:"product,omitempty"`
6939
6940 RefundableAmount *MonetaryAmount `json:"refundableAmount,omitempty"`
6941
6942
6943 ReturnItemId string `json:"returnItemId,omitempty"`
6944
6945
6946 ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"`
6947
6948
6949 ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
6950
6951
6952 ShipmentUnitId string `json:"shipmentUnitId,omitempty"`
6953
6954
6955 State string `json:"state,omitempty"`
6956
6957
6958
6959
6960
6961 ForceSendFields []string `json:"-"`
6962
6963
6964
6965
6966 NullFields []string `json:"-"`
6967 }
6968
6969 func (s *MerchantOrderReturnItem) MarshalJSON() ([]byte, error) {
6970 type NoMethod MerchantOrderReturnItem
6971 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6972 }
6973
6974 type MerchantRejectionReason struct {
6975
6976 Description string `json:"description,omitempty"`
6977
6978 ReasonCode string `json:"reasonCode,omitempty"`
6979
6980
6981
6982
6983
6984 ForceSendFields []string `json:"-"`
6985
6986
6987
6988
6989 NullFields []string `json:"-"`
6990 }
6991
6992 func (s *MerchantRejectionReason) MarshalJSON() ([]byte, error) {
6993 type NoMethod MerchantRejectionReason
6994 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6995 }
6996
6997
6998 type MethodQuota struct {
6999
7000
7001
7002 Method string `json:"method,omitempty"`
7003
7004
7005 QuotaLimit int64 `json:"quotaLimit,omitempty,string"`
7006
7007
7008 QuotaMinuteLimit int64 `json:"quotaMinuteLimit,omitempty,string"`
7009
7010
7011
7012 QuotaUsage int64 `json:"quotaUsage,omitempty,string"`
7013
7014
7015
7016
7017
7018 ForceSendFields []string `json:"-"`
7019
7020
7021
7022
7023 NullFields []string `json:"-"`
7024 }
7025
7026 func (s *MethodQuota) MarshalJSON() ([]byte, error) {
7027 type NoMethod MethodQuota
7028 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7029 }
7030
7031
7032
7033 type Metrics struct {
7034
7035
7036
7037 Aos float64 `json:"aos,omitempty"`
7038
7039
7040
7041
7042
7043
7044
7045
7046 AovMicros float64 `json:"aovMicros,omitempty"`
7047
7048 Clicks int64 `json:"clicks,omitempty,string"`
7049
7050
7051
7052 ConversionRate float64 `json:"conversionRate,omitempty"`
7053
7054
7055
7056
7057
7058
7059
7060
7061 ConversionValueMicros int64 `json:"conversionValueMicros,omitempty,string"`
7062
7063
7064
7065
7066
7067 Conversions float64 `json:"conversions,omitempty"`
7068
7069
7070
7071 Ctr float64 `json:"ctr,omitempty"`
7072
7073
7074
7075 DaysToShip float64 `json:"daysToShip,omitempty"`
7076
7077 Impressions int64 `json:"impressions,omitempty,string"`
7078
7079
7080 ItemDaysToShip float64 `json:"itemDaysToShip,omitempty"`
7081
7082
7083
7084
7085 ItemFillRate float64 `json:"itemFillRate,omitempty"`
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095 OrderedItemSalesMicros int64 `json:"orderedItemSalesMicros,omitempty,string"`
7096
7097
7098
7099 OrderedItems int64 `json:"orderedItems,omitempty,string"`
7100
7101
7102
7103 Orders int64 `json:"orders,omitempty,string"`
7104
7105
7106
7107 RejectedItems int64 `json:"rejectedItems,omitempty,string"`
7108
7109
7110
7111
7112
7113
7114 ReturnRate float64 `json:"returnRate,omitempty"`
7115
7116
7117
7118 ReturnedItems int64 `json:"returnedItems,omitempty,string"`
7119
7120
7121
7122
7123
7124
7125
7126
7127 ReturnsMicros int64 `json:"returnsMicros,omitempty,string"`
7128
7129
7130
7131
7132
7133
7134
7135
7136 ShippedItemSalesMicros int64 `json:"shippedItemSalesMicros,omitempty,string"`
7137
7138
7139 ShippedItems int64 `json:"shippedItems,omitempty,string"`
7140
7141
7142
7143 ShippedOrders int64 `json:"shippedOrders,omitempty,string"`
7144
7145
7146
7147
7148
7149 UnshippedItems float64 `json:"unshippedItems,omitempty"`
7150
7151
7152
7153
7154
7155 UnshippedOrders float64 `json:"unshippedOrders,omitempty"`
7156
7157
7158
7159
7160
7161 ForceSendFields []string `json:"-"`
7162
7163
7164
7165
7166 NullFields []string `json:"-"`
7167 }
7168
7169 func (s *Metrics) MarshalJSON() ([]byte, error) {
7170 type NoMethod Metrics
7171 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7172 }
7173
7174 func (s *Metrics) UnmarshalJSON(data []byte) error {
7175 type NoMethod Metrics
7176 var s1 struct {
7177 Aos gensupport.JSONFloat64 `json:"aos"`
7178 AovMicros gensupport.JSONFloat64 `json:"aovMicros"`
7179 ConversionRate gensupport.JSONFloat64 `json:"conversionRate"`
7180 Conversions gensupport.JSONFloat64 `json:"conversions"`
7181 Ctr gensupport.JSONFloat64 `json:"ctr"`
7182 DaysToShip gensupport.JSONFloat64 `json:"daysToShip"`
7183 ItemDaysToShip gensupport.JSONFloat64 `json:"itemDaysToShip"`
7184 ItemFillRate gensupport.JSONFloat64 `json:"itemFillRate"`
7185 ReturnRate gensupport.JSONFloat64 `json:"returnRate"`
7186 UnshippedItems gensupport.JSONFloat64 `json:"unshippedItems"`
7187 UnshippedOrders gensupport.JSONFloat64 `json:"unshippedOrders"`
7188 *NoMethod
7189 }
7190 s1.NoMethod = (*NoMethod)(s)
7191 if err := json.Unmarshal(data, &s1); err != nil {
7192 return err
7193 }
7194 s.Aos = float64(s1.Aos)
7195 s.AovMicros = float64(s1.AovMicros)
7196 s.ConversionRate = float64(s1.ConversionRate)
7197 s.Conversions = float64(s1.Conversions)
7198 s.Ctr = float64(s1.Ctr)
7199 s.DaysToShip = float64(s1.DaysToShip)
7200 s.ItemDaysToShip = float64(s1.ItemDaysToShip)
7201 s.ItemFillRate = float64(s1.ItemFillRate)
7202 s.ReturnRate = float64(s1.ReturnRate)
7203 s.UnshippedItems = float64(s1.UnshippedItems)
7204 s.UnshippedOrders = float64(s1.UnshippedOrders)
7205 return nil
7206 }
7207
7208 type MinimumOrderValueTable struct {
7209 StoreCodeSetWithMovs []*MinimumOrderValueTableStoreCodeSetWithMov `json:"storeCodeSetWithMovs,omitempty"`
7210
7211
7212
7213
7214
7215 ForceSendFields []string `json:"-"`
7216
7217
7218
7219
7220 NullFields []string `json:"-"`
7221 }
7222
7223 func (s *MinimumOrderValueTable) MarshalJSON() ([]byte, error) {
7224 type NoMethod MinimumOrderValueTable
7225 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7226 }
7227
7228
7229
7230
7231
7232
7233 type MinimumOrderValueTableStoreCodeSetWithMov struct {
7234
7235 StoreCodes []string `json:"storeCodes,omitempty"`
7236
7237 Value *Price `json:"value,omitempty"`
7238
7239
7240
7241
7242
7243 ForceSendFields []string `json:"-"`
7244
7245
7246
7247
7248 NullFields []string `json:"-"`
7249 }
7250
7251 func (s *MinimumOrderValueTableStoreCodeSetWithMov) MarshalJSON() ([]byte, error) {
7252 type NoMethod MinimumOrderValueTableStoreCodeSetWithMov
7253 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7254 }
7255
7256 type MonetaryAmount struct {
7257
7258
7259
7260
7261
7262 PriceAmount *Price `json:"priceAmount,omitempty"`
7263
7264
7265
7266 TaxAmount *Price `json:"taxAmount,omitempty"`
7267
7268
7269
7270
7271
7272 ForceSendFields []string `json:"-"`
7273
7274
7275
7276
7277 NullFields []string `json:"-"`
7278 }
7279
7280 func (s *MonetaryAmount) MarshalJSON() ([]byte, error) {
7281 type NoMethod MonetaryAmount
7282 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7283 }
7284
7285
7286
7287 type OnboardBuyOnGoogleProgramRequest struct {
7288
7289 CustomerServiceEmail string `json:"customerServiceEmail,omitempty"`
7290
7291
7292
7293
7294
7295 ForceSendFields []string `json:"-"`
7296
7297
7298
7299
7300 NullFields []string `json:"-"`
7301 }
7302
7303 func (s *OnboardBuyOnGoogleProgramRequest) MarshalJSON() ([]byte, error) {
7304 type NoMethod OnboardBuyOnGoogleProgramRequest
7305 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7306 }
7307
7308
7309
7310 type Order struct {
7311
7312 Acknowledged bool `json:"acknowledged,omitempty"`
7313
7314 Annotations []*OrderOrderAnnotation `json:"annotations,omitempty"`
7315
7316 BillingAddress *OrderAddress `json:"billingAddress,omitempty"`
7317
7318 Customer *OrderCustomer `json:"customer,omitempty"`
7319
7320 DeliveryDetails *OrderDeliveryDetails `json:"deliveryDetails,omitempty"`
7321
7322 Id string `json:"id,omitempty"`
7323
7324
7325 Kind string `json:"kind,omitempty"`
7326
7327 LineItems []*OrderLineItem `json:"lineItems,omitempty"`
7328 MerchantId uint64 `json:"merchantId,omitempty,string"`
7329
7330 MerchantOrderId string `json:"merchantOrderId,omitempty"`
7331
7332
7333
7334 NetPriceAmount *Price `json:"netPriceAmount,omitempty"`
7335
7336
7337
7338 NetTaxAmount *Price `json:"netTaxAmount,omitempty"`
7339
7340
7341
7342 PaymentStatus string `json:"paymentStatus,omitempty"`
7343
7344 PickupDetails *OrderPickupDetails `json:"pickupDetails,omitempty"`
7345
7346 PlacedDate string `json:"placedDate,omitempty"`
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365 Promotions []*OrderPromotion `json:"promotions,omitempty"`
7366
7367 Refunds []*OrderRefund `json:"refunds,omitempty"`
7368
7369 Shipments []*OrderShipment `json:"shipments,omitempty"`
7370
7371 ShippingCost *Price `json:"shippingCost,omitempty"`
7372
7373 ShippingCostTax *Price `json:"shippingCostTax,omitempty"`
7374
7375
7376
7377
7378 Status string `json:"status,omitempty"`
7379
7380
7381 TaxCollector string `json:"taxCollector,omitempty"`
7382
7383
7384 googleapi.ServerResponse `json:"-"`
7385
7386
7387
7388
7389
7390 ForceSendFields []string `json:"-"`
7391
7392
7393
7394
7395 NullFields []string `json:"-"`
7396 }
7397
7398 func (s *Order) MarshalJSON() ([]byte, error) {
7399 type NoMethod Order
7400 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7401 }
7402
7403 type OrderAddress struct {
7404
7405 Country string `json:"country,omitempty"`
7406
7407
7408
7409 FullAddress []string `json:"fullAddress,omitempty"`
7410
7411 IsPostOfficeBox bool `json:"isPostOfficeBox,omitempty"`
7412
7413
7414 Locality string `json:"locality,omitempty"`
7415
7416 PostalCode string `json:"postalCode,omitempty"`
7417
7418 RecipientName string `json:"recipientName,omitempty"`
7419
7420
7421 Region string `json:"region,omitempty"`
7422
7423
7424 StreetAddress []string `json:"streetAddress,omitempty"`
7425
7426
7427
7428
7429
7430 ForceSendFields []string `json:"-"`
7431
7432
7433
7434
7435 NullFields []string `json:"-"`
7436 }
7437
7438 func (s *OrderAddress) MarshalJSON() ([]byte, error) {
7439 type NoMethod OrderAddress
7440 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7441 }
7442
7443 type OrderCancellation struct {
7444
7445
7446
7447 Actor string `json:"actor,omitempty"`
7448
7449
7450 CreationDate string `json:"creationDate,omitempty"`
7451
7452 Quantity int64 `json:"quantity,omitempty"`
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469 Reason string `json:"reason,omitempty"`
7470
7471 ReasonText string `json:"reasonText,omitempty"`
7472
7473
7474
7475
7476
7477 ForceSendFields []string `json:"-"`
7478
7479
7480
7481
7482 NullFields []string `json:"-"`
7483 }
7484
7485 func (s *OrderCancellation) MarshalJSON() ([]byte, error) {
7486 type NoMethod OrderCancellation
7487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7488 }
7489
7490 type OrderCustomer struct {
7491
7492 FullName string `json:"fullName,omitempty"`
7493
7494
7495
7496
7497 InvoiceReceivingEmail string `json:"invoiceReceivingEmail,omitempty"`
7498
7499 LoyaltyInfo *OrderCustomerLoyaltyInfo `json:"loyaltyInfo,omitempty"`
7500
7501
7502
7503
7504 MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
7505
7506
7507
7508
7509
7510 ForceSendFields []string `json:"-"`
7511
7512
7513
7514
7515 NullFields []string `json:"-"`
7516 }
7517
7518 func (s *OrderCustomer) MarshalJSON() ([]byte, error) {
7519 type NoMethod OrderCustomer
7520 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7521 }
7522
7523 type OrderCustomerLoyaltyInfo struct {
7524
7525 LoyaltyNumber string `json:"loyaltyNumber,omitempty"`
7526
7527 Name string `json:"name,omitempty"`
7528
7529
7530
7531
7532
7533 ForceSendFields []string `json:"-"`
7534
7535
7536
7537
7538 NullFields []string `json:"-"`
7539 }
7540
7541 func (s *OrderCustomerLoyaltyInfo) MarshalJSON() ([]byte, error) {
7542 type NoMethod OrderCustomerLoyaltyInfo
7543 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7544 }
7545
7546 type OrderCustomerMarketingRightsInfo struct {
7547
7548
7549
7550
7551
7552
7553 ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
7554
7555
7556 LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
7557
7558
7559
7560
7561 MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"`
7562
7563
7564
7565
7566
7567 ForceSendFields []string `json:"-"`
7568
7569
7570
7571
7572 NullFields []string `json:"-"`
7573 }
7574
7575 func (s *OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
7576 type NoMethod OrderCustomerMarketingRightsInfo
7577 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7578 }
7579
7580 type OrderDeliveryDetails struct {
7581
7582 Address *OrderAddress `json:"address,omitempty"`
7583
7584 PhoneNumber string `json:"phoneNumber,omitempty"`
7585
7586
7587
7588
7589
7590 ForceSendFields []string `json:"-"`
7591
7592
7593
7594
7595 NullFields []string `json:"-"`
7596 }
7597
7598 func (s *OrderDeliveryDetails) MarshalJSON() ([]byte, error) {
7599 type NoMethod OrderDeliveryDetails
7600 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7601 }
7602
7603 type OrderLineItem struct {
7604
7605 Adjustments []*OrderLineItemAdjustment `json:"adjustments,omitempty"`
7606
7607 Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`
7608
7609 Cancellations []*OrderCancellation `json:"cancellations,omitempty"`
7610
7611 Id string `json:"id,omitempty"`
7612
7613
7614 Price *Price `json:"price,omitempty"`
7615
7616
7617
7618
7619 Product *OrderLineItemProduct `json:"product,omitempty"`
7620
7621 QuantityCanceled int64 `json:"quantityCanceled,omitempty"`
7622
7623 QuantityDelivered int64 `json:"quantityDelivered,omitempty"`
7624
7625 QuantityOrdered int64 `json:"quantityOrdered,omitempty"`
7626
7627 QuantityPending int64 `json:"quantityPending,omitempty"`
7628
7629 QuantityReadyForPickup int64 `json:"quantityReadyForPickup,omitempty"`
7630
7631 QuantityReturned int64 `json:"quantityReturned,omitempty"`
7632
7633 QuantityShipped int64 `json:"quantityShipped,omitempty"`
7634
7635 QuantityUndeliverable int64 `json:"quantityUndeliverable,omitempty"`
7636
7637 ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"`
7638
7639 Returns []*OrderReturn `json:"returns,omitempty"`
7640
7641 ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"`
7642
7643
7644 Tax *Price `json:"tax,omitempty"`
7645
7646
7647
7648
7649
7650 ForceSendFields []string `json:"-"`
7651
7652
7653
7654
7655 NullFields []string `json:"-"`
7656 }
7657
7658 func (s *OrderLineItem) MarshalJSON() ([]byte, error) {
7659 type NoMethod OrderLineItem
7660 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7661 }
7662
7663 type OrderLineItemAdjustment struct {
7664
7665 PriceAdjustment *Price `json:"priceAdjustment,omitempty"`
7666
7667 TaxAdjustment *Price `json:"taxAdjustment,omitempty"`
7668
7669 Type string `json:"type,omitempty"`
7670
7671
7672
7673
7674
7675 ForceSendFields []string `json:"-"`
7676
7677
7678
7679
7680 NullFields []string `json:"-"`
7681 }
7682
7683 func (s *OrderLineItemAdjustment) MarshalJSON() ([]byte, error) {
7684 type NoMethod OrderLineItemAdjustment
7685 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7686 }
7687
7688 type OrderLineItemProduct struct {
7689
7690 Brand string `json:"brand,omitempty"`
7691
7692
7693 Condition string `json:"condition,omitempty"`
7694
7695 ContentLanguage string `json:"contentLanguage,omitempty"`
7696
7697 Fees []*OrderLineItemProductFee `json:"fees,omitempty"`
7698
7699 Gtin string `json:"gtin,omitempty"`
7700
7701 Id string `json:"id,omitempty"`
7702
7703 ImageLink string `json:"imageLink,omitempty"`
7704
7705 ItemGroupId string `json:"itemGroupId,omitempty"`
7706
7707 Mpn string `json:"mpn,omitempty"`
7708
7709 OfferId string `json:"offerId,omitempty"`
7710
7711 Price *Price `json:"price,omitempty"`
7712
7713 ShownImage string `json:"shownImage,omitempty"`
7714
7715 TargetCountry string `json:"targetCountry,omitempty"`
7716
7717 Title string `json:"title,omitempty"`
7718
7719
7720
7721 VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"`
7722
7723
7724
7725
7726
7727 ForceSendFields []string `json:"-"`
7728
7729
7730
7731
7732 NullFields []string `json:"-"`
7733 }
7734
7735 func (s *OrderLineItemProduct) MarshalJSON() ([]byte, error) {
7736 type NoMethod OrderLineItemProduct
7737 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7738 }
7739
7740 type OrderLineItemProductFee struct {
7741
7742 Amount *Price `json:"amount,omitempty"`
7743
7744 Name string `json:"name,omitempty"`
7745
7746
7747
7748
7749
7750 ForceSendFields []string `json:"-"`
7751
7752
7753
7754
7755 NullFields []string `json:"-"`
7756 }
7757
7758 func (s *OrderLineItemProductFee) MarshalJSON() ([]byte, error) {
7759 type NoMethod OrderLineItemProductFee
7760 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7761 }
7762
7763 type OrderLineItemProductVariantAttribute struct {
7764
7765 Dimension string `json:"dimension,omitempty"`
7766
7767 Value string `json:"value,omitempty"`
7768
7769
7770
7771
7772
7773 ForceSendFields []string `json:"-"`
7774
7775
7776
7777
7778 NullFields []string `json:"-"`
7779 }
7780
7781 func (s *OrderLineItemProductVariantAttribute) MarshalJSON() ([]byte, error) {
7782 type NoMethod OrderLineItemProductVariantAttribute
7783 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7784 }
7785
7786 type OrderLineItemReturnInfo struct {
7787
7788 DaysToReturn int64 `json:"daysToReturn,omitempty"`
7789
7790 IsReturnable bool `json:"isReturnable,omitempty"`
7791
7792 PolicyUrl string `json:"policyUrl,omitempty"`
7793
7794
7795
7796
7797
7798 ForceSendFields []string `json:"-"`
7799
7800
7801
7802
7803 NullFields []string `json:"-"`
7804 }
7805
7806 func (s *OrderLineItemReturnInfo) MarshalJSON() ([]byte, error) {
7807 type NoMethod OrderLineItemReturnInfo
7808 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7809 }
7810
7811 type OrderLineItemShippingDetails struct {
7812
7813 DeliverByDate string `json:"deliverByDate,omitempty"`
7814
7815 Method *OrderLineItemShippingDetailsMethod `json:"method,omitempty"`
7816
7817
7818
7819 PickupPromiseInMinutes int64 `json:"pickupPromiseInMinutes,omitempty"`
7820
7821 ShipByDate string `json:"shipByDate,omitempty"`
7822
7823
7824
7825 Type string `json:"type,omitempty"`
7826
7827
7828
7829
7830
7831 ForceSendFields []string `json:"-"`
7832
7833
7834
7835
7836 NullFields []string `json:"-"`
7837 }
7838
7839 func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error) {
7840 type NoMethod OrderLineItemShippingDetails
7841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7842 }
7843
7844 type OrderLineItemShippingDetailsMethod struct {
7845
7846
7847 Carrier string `json:"carrier,omitempty"`
7848
7849 MaxDaysInTransit int64 `json:"maxDaysInTransit,omitempty"`
7850
7851 MethodName string `json:"methodName,omitempty"`
7852
7853 MinDaysInTransit int64 `json:"minDaysInTransit,omitempty"`
7854
7855
7856
7857
7858
7859 ForceSendFields []string `json:"-"`
7860
7861
7862
7863
7864 NullFields []string `json:"-"`
7865 }
7866
7867 func (s *OrderLineItemShippingDetailsMethod) MarshalJSON() ([]byte, error) {
7868 type NoMethod OrderLineItemShippingDetailsMethod
7869 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7870 }
7871
7872 type OrderMerchantProvidedAnnotation struct {
7873
7874
7875 Key string `json:"key,omitempty"`
7876
7877
7878 Value string `json:"value,omitempty"`
7879
7880
7881
7882
7883
7884 ForceSendFields []string `json:"-"`
7885
7886
7887
7888
7889 NullFields []string `json:"-"`
7890 }
7891
7892 func (s *OrderMerchantProvidedAnnotation) MarshalJSON() ([]byte, error) {
7893 type NoMethod OrderMerchantProvidedAnnotation
7894 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7895 }
7896
7897 type OrderOrderAnnotation struct {
7898
7899 Key string `json:"key,omitempty"`
7900
7901 Value string `json:"value,omitempty"`
7902
7903
7904
7905
7906
7907 ForceSendFields []string `json:"-"`
7908
7909
7910
7911
7912 NullFields []string `json:"-"`
7913 }
7914
7915 func (s *OrderOrderAnnotation) MarshalJSON() ([]byte, error) {
7916 type NoMethod OrderOrderAnnotation
7917 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7918 }
7919
7920 type OrderPickupDetails struct {
7921
7922
7923
7924 Address *OrderAddress `json:"address,omitempty"`
7925
7926
7927 Collectors []*OrderPickupDetailsCollector `json:"collectors,omitempty"`
7928
7929 LocationId string `json:"locationId,omitempty"`
7930
7931
7932
7933 PickupType string `json:"pickupType,omitempty"`
7934
7935
7936
7937
7938
7939 ForceSendFields []string `json:"-"`
7940
7941
7942
7943
7944 NullFields []string `json:"-"`
7945 }
7946
7947 func (s *OrderPickupDetails) MarshalJSON() ([]byte, error) {
7948 type NoMethod OrderPickupDetails
7949 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7950 }
7951
7952 type OrderPickupDetailsCollector struct {
7953
7954 Name string `json:"name,omitempty"`
7955
7956 PhoneNumber string `json:"phoneNumber,omitempty"`
7957
7958
7959
7960
7961
7962 ForceSendFields []string `json:"-"`
7963
7964
7965
7966
7967 NullFields []string `json:"-"`
7968 }
7969
7970 func (s *OrderPickupDetailsCollector) MarshalJSON() ([]byte, error) {
7971 type NoMethod OrderPickupDetailsCollector
7972 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7973 }
7974
7975 type OrderPromotion struct {
7976
7977
7978
7979
7980 ApplicableItems []*OrderPromotionItem `json:"applicableItems,omitempty"`
7981
7982
7983
7984 AppliedItems []*OrderPromotionItem `json:"appliedItems,omitempty"`
7985
7986
7987
7988 EndTime string `json:"endTime,omitempty"`
7989
7990
7991
7992 Funder string `json:"funder,omitempty"`
7993
7994
7995 MerchantPromotionId string `json:"merchantPromotionId,omitempty"`
7996
7997
7998 PriceValue *Price `json:"priceValue,omitempty"`
7999
8000
8001 ShortTitle string `json:"shortTitle,omitempty"`
8002
8003
8004
8005 StartTime string `json:"startTime,omitempty"`
8006
8007
8008
8009
8010
8011
8012
8013 Subtype string `json:"subtype,omitempty"`
8014
8015
8016 TaxValue *Price `json:"taxValue,omitempty"`
8017
8018 Title string `json:"title,omitempty"`
8019
8020
8021
8022 Type string `json:"type,omitempty"`
8023
8024
8025
8026
8027
8028 ForceSendFields []string `json:"-"`
8029
8030
8031
8032
8033 NullFields []string `json:"-"`
8034 }
8035
8036 func (s *OrderPromotion) MarshalJSON() ([]byte, error) {
8037 type NoMethod OrderPromotion
8038 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8039 }
8040
8041 type OrderPromotionItem struct {
8042
8043
8044 LineItemId string `json:"lineItemId,omitempty"`
8045
8046 OfferId string `json:"offerId,omitempty"`
8047
8048 ProductId string `json:"productId,omitempty"`
8049
8050
8051 Quantity int64 `json:"quantity,omitempty"`
8052
8053
8054
8055
8056
8057 ForceSendFields []string `json:"-"`
8058
8059
8060
8061
8062 NullFields []string `json:"-"`
8063 }
8064
8065 func (s *OrderPromotionItem) MarshalJSON() ([]byte, error) {
8066 type NoMethod OrderPromotionItem
8067 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8068 }
8069
8070 type OrderRefund struct {
8071
8072
8073
8074 Actor string `json:"actor,omitempty"`
8075
8076 Amount *Price `json:"amount,omitempty"`
8077
8078 CreationDate string `json:"creationDate,omitempty"`
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 Reason string `json:"reason,omitempty"`
8099
8100 ReasonText string `json:"reasonText,omitempty"`
8101
8102
8103
8104
8105
8106 ForceSendFields []string `json:"-"`
8107
8108
8109
8110
8111 NullFields []string `json:"-"`
8112 }
8113
8114 func (s *OrderRefund) MarshalJSON() ([]byte, error) {
8115 type NoMethod OrderRefund
8116 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8117 }
8118
8119
8120
8121 type OrderReportDisbursement struct {
8122
8123 DisbursementAmount *Price `json:"disbursementAmount,omitempty"`
8124
8125 DisbursementCreationDate string `json:"disbursementCreationDate,omitempty"`
8126
8127
8128 DisbursementDate string `json:"disbursementDate,omitempty"`
8129
8130 DisbursementId string `json:"disbursementId,omitempty"`
8131
8132 MerchantId uint64 `json:"merchantId,omitempty,string"`
8133
8134
8135
8136
8137
8138 ForceSendFields []string `json:"-"`
8139
8140
8141
8142
8143 NullFields []string `json:"-"`
8144 }
8145
8146 func (s *OrderReportDisbursement) MarshalJSON() ([]byte, error) {
8147 type NoMethod OrderReportDisbursement
8148 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8149 }
8150
8151 type OrderReportTransaction struct {
8152
8153 DisbursementAmount *Price `json:"disbursementAmount,omitempty"`
8154
8155
8156 DisbursementCreationDate string `json:"disbursementCreationDate,omitempty"`
8157
8158
8159 DisbursementDate string `json:"disbursementDate,omitempty"`
8160
8161 DisbursementId string `json:"disbursementId,omitempty"`
8162
8163 MerchantId uint64 `json:"merchantId,omitempty,string"`
8164
8165 MerchantOrderId string `json:"merchantOrderId,omitempty"`
8166
8167 OrderId string `json:"orderId,omitempty"`
8168
8169 ProductAmount *ProductAmount `json:"productAmount,omitempty"`
8170
8171 TransactionDate string `json:"transactionDate,omitempty"`
8172
8173
8174
8175
8176
8177 ForceSendFields []string `json:"-"`
8178
8179
8180
8181
8182 NullFields []string `json:"-"`
8183 }
8184
8185 func (s *OrderReportTransaction) MarshalJSON() ([]byte, error) {
8186 type NoMethod OrderReportTransaction
8187 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8188 }
8189
8190 type OrderReturn struct {
8191
8192
8193
8194 Actor string `json:"actor,omitempty"`
8195
8196 CreationDate string `json:"creationDate,omitempty"`
8197
8198 Quantity int64 `json:"quantity,omitempty"`
8199
8200
8201
8202
8203
8204
8205
8206 Reason string `json:"reason,omitempty"`
8207
8208 ReasonText string `json:"reasonText,omitempty"`
8209
8210
8211
8212
8213
8214 ForceSendFields []string `json:"-"`
8215
8216
8217
8218
8219 NullFields []string `json:"-"`
8220 }
8221
8222 func (s *OrderReturn) MarshalJSON() ([]byte, error) {
8223 type NoMethod OrderReturn
8224 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8225 }
8226
8227 type OrderShipment struct {
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258 Carrier string `json:"carrier,omitempty"`
8259
8260
8261 CreationDate string `json:"creationDate,omitempty"`
8262
8263
8264 DeliveryDate string `json:"deliveryDate,omitempty"`
8265
8266 Id string `json:"id,omitempty"`
8267
8268 LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`
8269
8270
8271 ScheduledDeliveryDetails *OrderShipmentScheduledDeliveryDetails `json:"scheduledDeliveryDetails,omitempty"`
8272
8273
8274 ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
8275
8276
8277 Status string `json:"status,omitempty"`
8278
8279 TrackingId string `json:"trackingId,omitempty"`
8280
8281
8282
8283
8284
8285 ForceSendFields []string `json:"-"`
8286
8287
8288
8289
8290 NullFields []string `json:"-"`
8291 }
8292
8293 func (s *OrderShipment) MarshalJSON() ([]byte, error) {
8294 type NoMethod OrderShipment
8295 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8296 }
8297
8298 type OrderShipmentLineItemShipment struct {
8299
8300
8301
8302 LineItemId string `json:"lineItemId,omitempty"`
8303
8304
8305 ProductId string `json:"productId,omitempty"`
8306
8307 Quantity int64 `json:"quantity,omitempty"`
8308
8309
8310
8311
8312
8313 ForceSendFields []string `json:"-"`
8314
8315
8316
8317
8318 NullFields []string `json:"-"`
8319 }
8320
8321 func (s *OrderShipmentLineItemShipment) MarshalJSON() ([]byte, error) {
8322 type NoMethod OrderShipmentLineItemShipment
8323 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8324 }
8325
8326 type OrderShipmentScheduledDeliveryDetails struct {
8327
8328
8329
8330 CarrierPhoneNumber string `json:"carrierPhoneNumber,omitempty"`
8331
8332
8333 ScheduledDate string `json:"scheduledDate,omitempty"`
8334
8335
8336
8337
8338
8339 ForceSendFields []string `json:"-"`
8340
8341
8342
8343
8344 NullFields []string `json:"-"`
8345 }
8346
8347 func (s *OrderShipmentScheduledDeliveryDetails) MarshalJSON() ([]byte, error) {
8348 type NoMethod OrderShipmentScheduledDeliveryDetails
8349 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8350 }
8351
8352
8353
8354 type OrderTrackingSignal struct {
8355
8356
8357 CustomerShippingFee *PriceAmount `json:"customerShippingFee,omitempty"`
8358
8359
8360
8361 DeliveryPostalCode string `json:"deliveryPostalCode,omitempty"`
8362
8363
8364
8365 DeliveryRegionCode string `json:"deliveryRegionCode,omitempty"`
8366
8367 LineItems []*OrderTrackingSignalLineItemDetails `json:"lineItems,omitempty"`
8368
8369
8370
8371
8372
8373 MerchantId int64 `json:"merchantId,omitempty,string"`
8374
8375
8376 OrderCreatedTime *DateTime `json:"orderCreatedTime,omitempty"`
8377
8378
8379 OrderId string `json:"orderId,omitempty"`
8380
8381
8382 OrderTrackingSignalId int64 `json:"orderTrackingSignalId,omitempty,string"`
8383
8384
8385 ShipmentLineItemMapping []*OrderTrackingSignalShipmentLineItemMapping `json:"shipmentLineItemMapping,omitempty"`
8386
8387 ShippingInfo []*OrderTrackingSignalShippingInfo `json:"shippingInfo,omitempty"`
8388
8389
8390 googleapi.ServerResponse `json:"-"`
8391
8392
8393
8394
8395
8396 ForceSendFields []string `json:"-"`
8397
8398
8399
8400
8401 NullFields []string `json:"-"`
8402 }
8403
8404 func (s *OrderTrackingSignal) MarshalJSON() ([]byte, error) {
8405 type NoMethod OrderTrackingSignal
8406 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8407 }
8408
8409
8410 type OrderTrackingSignalLineItemDetails struct {
8411
8412 Brand string `json:"brand,omitempty"`
8413
8414 Gtin string `json:"gtin,omitempty"`
8415
8416 LineItemId string `json:"lineItemId,omitempty"`
8417
8418 Mpn string `json:"mpn,omitempty"`
8419
8420
8421 ProductDescription string `json:"productDescription,omitempty"`
8422
8423
8424 ProductId string `json:"productId,omitempty"`
8425
8426 ProductTitle string `json:"productTitle,omitempty"`
8427
8428 Quantity int64 `json:"quantity,omitempty,string"`
8429
8430 Sku string `json:"sku,omitempty"`
8431
8432
8433 Upc string `json:"upc,omitempty"`
8434
8435
8436
8437
8438
8439 ForceSendFields []string `json:"-"`
8440
8441
8442
8443
8444 NullFields []string `json:"-"`
8445 }
8446
8447 func (s *OrderTrackingSignalLineItemDetails) MarshalJSON() ([]byte, error) {
8448 type NoMethod OrderTrackingSignalLineItemDetails
8449 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8450 }
8451
8452
8453
8454 type OrderTrackingSignalShipmentLineItemMapping struct {
8455
8456 LineItemId string `json:"lineItemId,omitempty"`
8457
8458 Quantity int64 `json:"quantity,omitempty,string"`
8459
8460
8461 ShipmentId string `json:"shipmentId,omitempty"`
8462
8463
8464
8465
8466
8467 ForceSendFields []string `json:"-"`
8468
8469
8470
8471
8472 NullFields []string `json:"-"`
8473 }
8474
8475 func (s *OrderTrackingSignalShipmentLineItemMapping) MarshalJSON() ([]byte, error) {
8476 type NoMethod OrderTrackingSignalShipmentLineItemMapping
8477 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8478 }
8479
8480
8481 type OrderTrackingSignalShippingInfo struct {
8482
8483
8484
8485 ActualDeliveryTime *DateTime `json:"actualDeliveryTime,omitempty"`
8486
8487
8488
8489
8490 CarrierName string `json:"carrierName,omitempty"`
8491
8492
8493 CarrierServiceName string `json:"carrierServiceName,omitempty"`
8494
8495
8496
8497 EarliestDeliveryPromiseTime *DateTime `json:"earliestDeliveryPromiseTime,omitempty"`
8498
8499
8500
8501 LatestDeliveryPromiseTime *DateTime `json:"latestDeliveryPromiseTime,omitempty"`
8502
8503
8504
8505 OriginPostalCode string `json:"originPostalCode,omitempty"`
8506
8507
8508
8509 OriginRegionCode string `json:"originRegionCode,omitempty"`
8510
8511
8512 ShipmentId string `json:"shipmentId,omitempty"`
8513
8514
8515 ShippedTime *DateTime `json:"shippedTime,omitempty"`
8516
8517
8518
8519
8520
8521
8522
8523 ShippingStatus string `json:"shippingStatus,omitempty"`
8524
8525
8526
8527 TrackingId string `json:"trackingId,omitempty"`
8528
8529
8530
8531
8532
8533 ForceSendFields []string `json:"-"`
8534
8535
8536
8537
8538 NullFields []string `json:"-"`
8539 }
8540
8541 func (s *OrderTrackingSignalShippingInfo) MarshalJSON() ([]byte, error) {
8542 type NoMethod OrderTrackingSignalShippingInfo
8543 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8544 }
8545
8546 type OrderinvoicesCreateChargeInvoiceRequest struct {
8547
8548 InvoiceId string `json:"invoiceId,omitempty"`
8549
8550 InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"`
8551
8552 LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"`
8553
8554
8555 OperationId string `json:"operationId,omitempty"`
8556
8557
8558
8559 ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
8560
8561
8562
8563
8564
8565 ForceSendFields []string `json:"-"`
8566
8567
8568
8569
8570 NullFields []string `json:"-"`
8571 }
8572
8573 func (s *OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON() ([]byte, error) {
8574 type NoMethod OrderinvoicesCreateChargeInvoiceRequest
8575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8576 }
8577
8578 type OrderinvoicesCreateChargeInvoiceResponse struct {
8579
8580
8581 ExecutionStatus string `json:"executionStatus,omitempty"`
8582
8583
8584 Kind string `json:"kind,omitempty"`
8585
8586
8587 googleapi.ServerResponse `json:"-"`
8588
8589
8590
8591
8592
8593 ForceSendFields []string `json:"-"`
8594
8595
8596
8597
8598 NullFields []string `json:"-"`
8599 }
8600
8601 func (s *OrderinvoicesCreateChargeInvoiceResponse) MarshalJSON() ([]byte, error) {
8602 type NoMethod OrderinvoicesCreateChargeInvoiceResponse
8603 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8604 }
8605
8606 type OrderinvoicesCreateRefundInvoiceRequest struct {
8607
8608 InvoiceId string `json:"invoiceId,omitempty"`
8609
8610
8611 OperationId string `json:"operationId,omitempty"`
8612
8613
8614 RefundOnlyOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption `json:"refundOnlyOption,omitempty"`
8615
8616
8617
8618 ReturnOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption `json:"returnOption,omitempty"`
8619
8620 ShipmentInvoices []*ShipmentInvoice `json:"shipmentInvoices,omitempty"`
8621
8622
8623
8624
8625
8626 ForceSendFields []string `json:"-"`
8627
8628
8629
8630
8631 NullFields []string `json:"-"`
8632 }
8633
8634 func (s *OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON() ([]byte, error) {
8635 type NoMethod OrderinvoicesCreateRefundInvoiceRequest
8636 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8637 }
8638
8639 type OrderinvoicesCreateRefundInvoiceResponse struct {
8640
8641
8642 ExecutionStatus string `json:"executionStatus,omitempty"`
8643
8644
8645 Kind string `json:"kind,omitempty"`
8646
8647
8648 googleapi.ServerResponse `json:"-"`
8649
8650
8651
8652
8653
8654 ForceSendFields []string `json:"-"`
8655
8656
8657
8658
8659 NullFields []string `json:"-"`
8660 }
8661
8662 func (s *OrderinvoicesCreateRefundInvoiceResponse) MarshalJSON() ([]byte, error) {
8663 type NoMethod OrderinvoicesCreateRefundInvoiceResponse
8664 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8665 }
8666
8667 type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption struct {
8668
8669 Description string `json:"description,omitempty"`
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689 Reason string `json:"reason,omitempty"`
8690
8691
8692
8693
8694
8695 ForceSendFields []string `json:"-"`
8696
8697
8698
8699
8700 NullFields []string `json:"-"`
8701 }
8702
8703 func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption) MarshalJSON() ([]byte, error) {
8704 type NoMethod OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
8705 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8706 }
8707
8708 type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption struct {
8709
8710 Description string `json:"description,omitempty"`
8711
8712
8713
8714
8715
8716
8717
8718 Reason string `json:"reason,omitempty"`
8719
8720
8721
8722
8723
8724 ForceSendFields []string `json:"-"`
8725
8726
8727
8728
8729 NullFields []string `json:"-"`
8730 }
8731
8732 func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption) MarshalJSON() ([]byte, error) {
8733 type NoMethod OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
8734 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8735 }
8736
8737 type OrderreportsListDisbursementsResponse struct {
8738
8739 Disbursements []*OrderReportDisbursement `json:"disbursements,omitempty"`
8740
8741
8742 Kind string `json:"kind,omitempty"`
8743
8744
8745 NextPageToken string `json:"nextPageToken,omitempty"`
8746
8747
8748 googleapi.ServerResponse `json:"-"`
8749
8750
8751
8752
8753
8754 ForceSendFields []string `json:"-"`
8755
8756
8757
8758
8759 NullFields []string `json:"-"`
8760 }
8761
8762 func (s *OrderreportsListDisbursementsResponse) MarshalJSON() ([]byte, error) {
8763 type NoMethod OrderreportsListDisbursementsResponse
8764 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8765 }
8766
8767 type OrderreportsListTransactionsResponse struct {
8768
8769
8770 Kind string `json:"kind,omitempty"`
8771
8772 NextPageToken string `json:"nextPageToken,omitempty"`
8773
8774 Transactions []*OrderReportTransaction `json:"transactions,omitempty"`
8775
8776
8777 googleapi.ServerResponse `json:"-"`
8778
8779
8780
8781
8782
8783 ForceSendFields []string `json:"-"`
8784
8785
8786
8787
8788 NullFields []string `json:"-"`
8789 }
8790
8791 func (s *OrderreportsListTransactionsResponse) MarshalJSON() ([]byte, error) {
8792 type NoMethod OrderreportsListTransactionsResponse
8793 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8794 }
8795
8796 type OrderreturnsAcknowledgeRequest struct {
8797
8798
8799 OperationId string `json:"operationId,omitempty"`
8800
8801
8802
8803
8804
8805 ForceSendFields []string `json:"-"`
8806
8807
8808
8809
8810 NullFields []string `json:"-"`
8811 }
8812
8813 func (s *OrderreturnsAcknowledgeRequest) MarshalJSON() ([]byte, error) {
8814 type NoMethod OrderreturnsAcknowledgeRequest
8815 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8816 }
8817
8818 type OrderreturnsAcknowledgeResponse struct {
8819
8820
8821 ExecutionStatus string `json:"executionStatus,omitempty"`
8822
8823
8824 Kind string `json:"kind,omitempty"`
8825
8826
8827 googleapi.ServerResponse `json:"-"`
8828
8829
8830
8831
8832
8833 ForceSendFields []string `json:"-"`
8834
8835
8836
8837
8838 NullFields []string `json:"-"`
8839 }
8840
8841 func (s *OrderreturnsAcknowledgeResponse) MarshalJSON() ([]byte, error) {
8842 type NoMethod OrderreturnsAcknowledgeResponse
8843 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8844 }
8845
8846 type OrderreturnsCreateOrderReturnRequest struct {
8847
8848 LineItems []*OrderreturnsLineItem `json:"lineItems,omitempty"`
8849
8850
8851 OperationId string `json:"operationId,omitempty"`
8852
8853 OrderId string `json:"orderId,omitempty"`
8854
8855 ReturnMethodType string `json:"returnMethodType,omitempty"`
8856
8857
8858
8859
8860
8861 ForceSendFields []string `json:"-"`
8862
8863
8864
8865
8866 NullFields []string `json:"-"`
8867 }
8868
8869 func (s *OrderreturnsCreateOrderReturnRequest) MarshalJSON() ([]byte, error) {
8870 type NoMethod OrderreturnsCreateOrderReturnRequest
8871 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8872 }
8873
8874 type OrderreturnsCreateOrderReturnResponse struct {
8875
8876
8877 ExecutionStatus string `json:"executionStatus,omitempty"`
8878
8879
8880 Kind string `json:"kind,omitempty"`
8881
8882 OrderReturn *MerchantOrderReturn `json:"orderReturn,omitempty"`
8883
8884
8885 googleapi.ServerResponse `json:"-"`
8886
8887
8888
8889
8890
8891 ForceSendFields []string `json:"-"`
8892
8893
8894
8895
8896 NullFields []string `json:"-"`
8897 }
8898
8899 func (s *OrderreturnsCreateOrderReturnResponse) MarshalJSON() ([]byte, error) {
8900 type NoMethod OrderreturnsCreateOrderReturnResponse
8901 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8902 }
8903
8904 type OrderreturnsLineItem struct {
8905
8906
8907 LineItemId string `json:"lineItemId,omitempty"`
8908
8909
8910 ProductId string `json:"productId,omitempty"`
8911
8912 Quantity int64 `json:"quantity,omitempty"`
8913
8914
8915
8916
8917
8918 ForceSendFields []string `json:"-"`
8919
8920
8921
8922
8923 NullFields []string `json:"-"`
8924 }
8925
8926 func (s *OrderreturnsLineItem) MarshalJSON() ([]byte, error) {
8927 type NoMethod OrderreturnsLineItem
8928 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8929 }
8930
8931 type OrderreturnsListResponse struct {
8932
8933
8934 Kind string `json:"kind,omitempty"`
8935
8936 NextPageToken string `json:"nextPageToken,omitempty"`
8937 Resources []*MerchantOrderReturn `json:"resources,omitempty"`
8938
8939
8940 googleapi.ServerResponse `json:"-"`
8941
8942
8943
8944
8945
8946 ForceSendFields []string `json:"-"`
8947
8948
8949
8950
8951 NullFields []string `json:"-"`
8952 }
8953
8954 func (s *OrderreturnsListResponse) MarshalJSON() ([]byte, error) {
8955 type NoMethod OrderreturnsListResponse
8956 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8957 }
8958
8959 type OrderreturnsPartialRefund struct {
8960
8961
8962 PriceAmount *Price `json:"priceAmount,omitempty"`
8963
8964
8965 TaxAmount *Price `json:"taxAmount,omitempty"`
8966
8967
8968
8969
8970
8971 ForceSendFields []string `json:"-"`
8972
8973
8974
8975
8976 NullFields []string `json:"-"`
8977 }
8978
8979 func (s *OrderreturnsPartialRefund) MarshalJSON() ([]byte, error) {
8980 type NoMethod OrderreturnsPartialRefund
8981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8982 }
8983
8984 type OrderreturnsProcessRequest struct {
8985
8986
8987 FullChargeReturnShippingCost bool `json:"fullChargeReturnShippingCost,omitempty"`
8988
8989
8990 OperationId string `json:"operationId,omitempty"`
8991
8992 RefundShippingFee *OrderreturnsRefundOperation `json:"refundShippingFee,omitempty"`
8993
8994 ReturnItems []*OrderreturnsReturnItem `json:"returnItems,omitempty"`
8995
8996
8997
8998
8999
9000 ForceSendFields []string `json:"-"`
9001
9002
9003
9004
9005 NullFields []string `json:"-"`
9006 }
9007
9008 func (s *OrderreturnsProcessRequest) MarshalJSON() ([]byte, error) {
9009 type NoMethod OrderreturnsProcessRequest
9010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9011 }
9012
9013 type OrderreturnsProcessResponse struct {
9014
9015
9016 ExecutionStatus string `json:"executionStatus,omitempty"`
9017
9018
9019 Kind string `json:"kind,omitempty"`
9020
9021
9022 googleapi.ServerResponse `json:"-"`
9023
9024
9025
9026
9027
9028 ForceSendFields []string `json:"-"`
9029
9030
9031
9032
9033 NullFields []string `json:"-"`
9034 }
9035
9036 func (s *OrderreturnsProcessResponse) MarshalJSON() ([]byte, error) {
9037 type NoMethod OrderreturnsProcessResponse
9038 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9039 }
9040
9041 type OrderreturnsRefundOperation struct {
9042
9043
9044
9045
9046 FullRefund bool `json:"fullRefund,omitempty"`
9047
9048
9049
9050 PartialRefund *OrderreturnsPartialRefund `json:"partialRefund,omitempty"`
9051
9052
9053 PaymentType string `json:"paymentType,omitempty"`
9054
9055 ReasonText string `json:"reasonText,omitempty"`
9056
9057 ReturnRefundReason string `json:"returnRefundReason,omitempty"`
9058
9059
9060
9061
9062
9063 ForceSendFields []string `json:"-"`
9064
9065
9066
9067
9068 NullFields []string `json:"-"`
9069 }
9070
9071 func (s *OrderreturnsRefundOperation) MarshalJSON() ([]byte, error) {
9072 type NoMethod OrderreturnsRefundOperation
9073 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9074 }
9075
9076 type OrderreturnsRejectOperation struct {
9077
9078 Reason string `json:"reason,omitempty"`
9079
9080 ReasonText string `json:"reasonText,omitempty"`
9081
9082
9083
9084
9085
9086 ForceSendFields []string `json:"-"`
9087
9088
9089
9090
9091 NullFields []string `json:"-"`
9092 }
9093
9094 func (s *OrderreturnsRejectOperation) MarshalJSON() ([]byte, error) {
9095 type NoMethod OrderreturnsRejectOperation
9096 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9097 }
9098
9099 type OrderreturnsReturnItem struct {
9100
9101 Refund *OrderreturnsRefundOperation `json:"refund,omitempty"`
9102
9103 Reject *OrderreturnsRejectOperation `json:"reject,omitempty"`
9104
9105
9106 ReturnItemId string `json:"returnItemId,omitempty"`
9107
9108
9109
9110
9111
9112 ForceSendFields []string `json:"-"`
9113
9114
9115
9116
9117 NullFields []string `json:"-"`
9118 }
9119
9120 func (s *OrderreturnsReturnItem) MarshalJSON() ([]byte, error) {
9121 type NoMethod OrderreturnsReturnItem
9122 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9123 }
9124
9125 type OrdersAcknowledgeRequest struct {
9126
9127
9128 OperationId string `json:"operationId,omitempty"`
9129
9130
9131
9132
9133
9134 ForceSendFields []string `json:"-"`
9135
9136
9137
9138
9139 NullFields []string `json:"-"`
9140 }
9141
9142 func (s *OrdersAcknowledgeRequest) MarshalJSON() ([]byte, error) {
9143 type NoMethod OrdersAcknowledgeRequest
9144 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9145 }
9146
9147 type OrdersAcknowledgeResponse struct {
9148
9149
9150 ExecutionStatus string `json:"executionStatus,omitempty"`
9151
9152
9153 Kind string `json:"kind,omitempty"`
9154
9155
9156 googleapi.ServerResponse `json:"-"`
9157
9158
9159
9160
9161
9162 ForceSendFields []string `json:"-"`
9163
9164
9165
9166
9167 NullFields []string `json:"-"`
9168 }
9169
9170 func (s *OrdersAcknowledgeResponse) MarshalJSON() ([]byte, error) {
9171 type NoMethod OrdersAcknowledgeResponse
9172 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9173 }
9174
9175 type OrdersAdvanceTestOrderResponse struct {
9176
9177
9178 Kind string `json:"kind,omitempty"`
9179
9180
9181 googleapi.ServerResponse `json:"-"`
9182
9183
9184
9185
9186
9187 ForceSendFields []string `json:"-"`
9188
9189
9190
9191
9192 NullFields []string `json:"-"`
9193 }
9194
9195 func (s *OrdersAdvanceTestOrderResponse) MarshalJSON() ([]byte, error) {
9196 type NoMethod OrdersAdvanceTestOrderResponse
9197 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9198 }
9199
9200 type OrdersCancelLineItemRequest struct {
9201
9202
9203 LineItemId string `json:"lineItemId,omitempty"`
9204
9205
9206 OperationId string `json:"operationId,omitempty"`
9207
9208
9209 ProductId string `json:"productId,omitempty"`
9210
9211 Quantity int64 `json:"quantity,omitempty"`
9212
9213
9214
9215
9216
9217 Reason string `json:"reason,omitempty"`
9218
9219 ReasonText string `json:"reasonText,omitempty"`
9220
9221
9222
9223
9224
9225 ForceSendFields []string `json:"-"`
9226
9227
9228
9229
9230 NullFields []string `json:"-"`
9231 }
9232
9233 func (s *OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error) {
9234 type NoMethod OrdersCancelLineItemRequest
9235 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9236 }
9237
9238 type OrdersCancelLineItemResponse struct {
9239
9240
9241 ExecutionStatus string `json:"executionStatus,omitempty"`
9242
9243
9244 Kind string `json:"kind,omitempty"`
9245
9246
9247 googleapi.ServerResponse `json:"-"`
9248
9249
9250
9251
9252
9253 ForceSendFields []string `json:"-"`
9254
9255
9256
9257
9258 NullFields []string `json:"-"`
9259 }
9260
9261 func (s *OrdersCancelLineItemResponse) MarshalJSON() ([]byte, error) {
9262 type NoMethod OrdersCancelLineItemResponse
9263 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9264 }
9265
9266 type OrdersCancelRequest struct {
9267
9268
9269 OperationId string `json:"operationId,omitempty"`
9270
9271
9272
9273
9274
9275 Reason string `json:"reason,omitempty"`
9276
9277 ReasonText string `json:"reasonText,omitempty"`
9278
9279
9280
9281
9282
9283 ForceSendFields []string `json:"-"`
9284
9285
9286
9287
9288 NullFields []string `json:"-"`
9289 }
9290
9291 func (s *OrdersCancelRequest) MarshalJSON() ([]byte, error) {
9292 type NoMethod OrdersCancelRequest
9293 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9294 }
9295
9296 type OrdersCancelResponse struct {
9297
9298
9299 ExecutionStatus string `json:"executionStatus,omitempty"`
9300
9301
9302 Kind string `json:"kind,omitempty"`
9303
9304
9305 googleapi.ServerResponse `json:"-"`
9306
9307
9308
9309
9310
9311 ForceSendFields []string `json:"-"`
9312
9313
9314
9315
9316 NullFields []string `json:"-"`
9317 }
9318
9319 func (s *OrdersCancelResponse) MarshalJSON() ([]byte, error) {
9320 type NoMethod OrdersCancelResponse
9321 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9322 }
9323
9324 type OrdersCancelTestOrderByCustomerRequest struct {
9325
9326
9327 Reason string `json:"reason,omitempty"`
9328
9329
9330
9331
9332
9333 ForceSendFields []string `json:"-"`
9334
9335
9336
9337
9338 NullFields []string `json:"-"`
9339 }
9340
9341 func (s *OrdersCancelTestOrderByCustomerRequest) MarshalJSON() ([]byte, error) {
9342 type NoMethod OrdersCancelTestOrderByCustomerRequest
9343 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9344 }
9345
9346 type OrdersCancelTestOrderByCustomerResponse struct {
9347
9348
9349 Kind string `json:"kind,omitempty"`
9350
9351
9352 googleapi.ServerResponse `json:"-"`
9353
9354
9355
9356
9357
9358 ForceSendFields []string `json:"-"`
9359
9360
9361
9362
9363 NullFields []string `json:"-"`
9364 }
9365
9366 func (s *OrdersCancelTestOrderByCustomerResponse) MarshalJSON() ([]byte, error) {
9367 type NoMethod OrdersCancelTestOrderByCustomerResponse
9368 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9369 }
9370
9371 type OrdersCreateTestOrderRequest struct {
9372
9373
9374
9375
9376 Country string `json:"country,omitempty"`
9377
9378
9379
9380
9381 TemplateName string `json:"templateName,omitempty"`
9382
9383 TestOrder *TestOrder `json:"testOrder,omitempty"`
9384
9385
9386
9387
9388
9389 ForceSendFields []string `json:"-"`
9390
9391
9392
9393
9394 NullFields []string `json:"-"`
9395 }
9396
9397 func (s *OrdersCreateTestOrderRequest) MarshalJSON() ([]byte, error) {
9398 type NoMethod OrdersCreateTestOrderRequest
9399 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9400 }
9401
9402 type OrdersCreateTestOrderResponse struct {
9403
9404
9405 Kind string `json:"kind,omitempty"`
9406
9407 OrderId string `json:"orderId,omitempty"`
9408
9409
9410 googleapi.ServerResponse `json:"-"`
9411
9412
9413
9414
9415
9416 ForceSendFields []string `json:"-"`
9417
9418
9419
9420
9421 NullFields []string `json:"-"`
9422 }
9423
9424 func (s *OrdersCreateTestOrderResponse) MarshalJSON() ([]byte, error) {
9425 type NoMethod OrdersCreateTestOrderResponse
9426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9427 }
9428
9429 type OrdersCreateTestReturnRequest struct {
9430
9431 Items []*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem `json:"items,omitempty"`
9432
9433
9434
9435
9436
9437 ForceSendFields []string `json:"-"`
9438
9439
9440
9441
9442 NullFields []string `json:"-"`
9443 }
9444
9445 func (s *OrdersCreateTestReturnRequest) MarshalJSON() ([]byte, error) {
9446 type NoMethod OrdersCreateTestReturnRequest
9447 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9448 }
9449
9450 type OrdersCreateTestReturnResponse struct {
9451
9452
9453 Kind string `json:"kind,omitempty"`
9454
9455 ReturnId string `json:"returnId,omitempty"`
9456
9457
9458 googleapi.ServerResponse `json:"-"`
9459
9460
9461
9462
9463
9464 ForceSendFields []string `json:"-"`
9465
9466
9467
9468
9469 NullFields []string `json:"-"`
9470 }
9471
9472 func (s *OrdersCreateTestReturnResponse) MarshalJSON() ([]byte, error) {
9473 type NoMethod OrdersCreateTestReturnResponse
9474 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9475 }
9476
9477 type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem struct {
9478
9479 LineItemId string `json:"lineItemId,omitempty"`
9480
9481 Quantity int64 `json:"quantity,omitempty"`
9482
9483
9484
9485
9486
9487 ForceSendFields []string `json:"-"`
9488
9489
9490
9491
9492 NullFields []string `json:"-"`
9493 }
9494
9495 func (s *OrdersCustomBatchRequestEntryCreateTestReturnReturnItem) MarshalJSON() ([]byte, error) {
9496 type NoMethod OrdersCustomBatchRequestEntryCreateTestReturnReturnItem
9497 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9498 }
9499
9500 type OrdersCustomBatchRequestEntryRefundItemItem struct {
9501
9502
9503
9504
9505 Amount *MonetaryAmount `json:"amount,omitempty"`
9506
9507
9508 FullRefund bool `json:"fullRefund,omitempty"`
9509
9510
9511 LineItemId string `json:"lineItemId,omitempty"`
9512
9513
9514 ProductId string `json:"productId,omitempty"`
9515
9516 Quantity int64 `json:"quantity,omitempty"`
9517
9518
9519
9520
9521
9522 ForceSendFields []string `json:"-"`
9523
9524
9525
9526
9527 NullFields []string `json:"-"`
9528 }
9529
9530 func (s *OrdersCustomBatchRequestEntryRefundItemItem) MarshalJSON() ([]byte, error) {
9531 type NoMethod OrdersCustomBatchRequestEntryRefundItemItem
9532 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9533 }
9534
9535 type OrdersCustomBatchRequestEntryRefundItemShipping struct {
9536
9537
9538 Amount *Price `json:"amount,omitempty"`
9539
9540
9541
9542
9543
9544 FullRefund bool `json:"fullRefund,omitempty"`
9545
9546
9547
9548
9549
9550 ForceSendFields []string `json:"-"`
9551
9552
9553
9554
9555 NullFields []string `json:"-"`
9556 }
9557
9558 func (s *OrdersCustomBatchRequestEntryRefundItemShipping) MarshalJSON() ([]byte, error) {
9559 type NoMethod OrdersCustomBatchRequestEntryRefundItemShipping
9560 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9561 }
9562
9563 type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct {
9564
9565
9566 Carrier string `json:"carrier,omitempty"`
9567
9568
9569 ShipmentId string `json:"shipmentId,omitempty"`
9570
9571 TrackingId string `json:"trackingId,omitempty"`
9572
9573
9574
9575
9576
9577 ForceSendFields []string `json:"-"`
9578
9579
9580
9581
9582 NullFields []string `json:"-"`
9583 }
9584
9585 func (s *OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ([]byte, error) {
9586 type NoMethod OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
9587 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9588 }
9589
9590
9591
9592 type OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails struct {
9593
9594
9595 CarrierPhoneNumber string `json:"carrierPhoneNumber,omitempty"`
9596
9597
9598 ScheduledDate string `json:"scheduledDate,omitempty"`
9599
9600
9601
9602
9603
9604 ForceSendFields []string `json:"-"`
9605
9606
9607
9608
9609 NullFields []string `json:"-"`
9610 }
9611
9612 func (s *OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails) MarshalJSON() ([]byte, error) {
9613 type NoMethod OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails
9614 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9615 }
9616
9617 type OrdersGetByMerchantOrderIdResponse struct {
9618
9619
9620 Kind string `json:"kind,omitempty"`
9621
9622 Order *Order `json:"order,omitempty"`
9623
9624
9625 googleapi.ServerResponse `json:"-"`
9626
9627
9628
9629
9630
9631 ForceSendFields []string `json:"-"`
9632
9633
9634
9635
9636 NullFields []string `json:"-"`
9637 }
9638
9639 func (s *OrdersGetByMerchantOrderIdResponse) MarshalJSON() ([]byte, error) {
9640 type NoMethod OrdersGetByMerchantOrderIdResponse
9641 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9642 }
9643
9644 type OrdersGetTestOrderTemplateResponse struct {
9645
9646
9647 Kind string `json:"kind,omitempty"`
9648
9649 Template *TestOrder `json:"template,omitempty"`
9650
9651
9652 googleapi.ServerResponse `json:"-"`
9653
9654
9655
9656
9657
9658 ForceSendFields []string `json:"-"`
9659
9660
9661
9662
9663 NullFields []string `json:"-"`
9664 }
9665
9666 func (s *OrdersGetTestOrderTemplateResponse) MarshalJSON() ([]byte, error) {
9667 type NoMethod OrdersGetTestOrderTemplateResponse
9668 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9669 }
9670
9671 type OrdersInStoreRefundLineItemRequest struct {
9672
9673
9674 LineItemId string `json:"lineItemId,omitempty"`
9675
9676
9677 OperationId string `json:"operationId,omitempty"`
9678
9679
9680 PriceAmount *Price `json:"priceAmount,omitempty"`
9681
9682
9683 ProductId string `json:"productId,omitempty"`
9684
9685 Quantity int64 `json:"quantity,omitempty"`
9686
9687
9688
9689
9690
9691
9692
9693 Reason string `json:"reason,omitempty"`
9694
9695 ReasonText string `json:"reasonText,omitempty"`
9696
9697 TaxAmount *Price `json:"taxAmount,omitempty"`
9698
9699
9700
9701
9702
9703 ForceSendFields []string `json:"-"`
9704
9705
9706
9707
9708 NullFields []string `json:"-"`
9709 }
9710
9711 func (s *OrdersInStoreRefundLineItemRequest) MarshalJSON() ([]byte, error) {
9712 type NoMethod OrdersInStoreRefundLineItemRequest
9713 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9714 }
9715
9716 type OrdersInStoreRefundLineItemResponse struct {
9717
9718
9719 ExecutionStatus string `json:"executionStatus,omitempty"`
9720
9721
9722 Kind string `json:"kind,omitempty"`
9723
9724
9725 googleapi.ServerResponse `json:"-"`
9726
9727
9728
9729
9730
9731 ForceSendFields []string `json:"-"`
9732
9733
9734
9735
9736 NullFields []string `json:"-"`
9737 }
9738
9739 func (s *OrdersInStoreRefundLineItemResponse) MarshalJSON() ([]byte, error) {
9740 type NoMethod OrdersInStoreRefundLineItemResponse
9741 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9742 }
9743
9744 type OrdersListResponse struct {
9745
9746
9747 Kind string `json:"kind,omitempty"`
9748
9749 NextPageToken string `json:"nextPageToken,omitempty"`
9750 Resources []*Order `json:"resources,omitempty"`
9751
9752
9753 googleapi.ServerResponse `json:"-"`
9754
9755
9756
9757
9758
9759 ForceSendFields []string `json:"-"`
9760
9761
9762
9763
9764 NullFields []string `json:"-"`
9765 }
9766
9767 func (s *OrdersListResponse) MarshalJSON() ([]byte, error) {
9768 type NoMethod OrdersListResponse
9769 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9770 }
9771
9772 type OrdersRefundItemRequest struct {
9773
9774
9775 Items []*OrdersCustomBatchRequestEntryRefundItemItem `json:"items,omitempty"`
9776
9777
9778 OperationId string `json:"operationId,omitempty"`
9779
9780
9781
9782
9783
9784
9785
9786 Reason string `json:"reason,omitempty"`
9787
9788 ReasonText string `json:"reasonText,omitempty"`
9789
9790
9791 Shipping *OrdersCustomBatchRequestEntryRefundItemShipping `json:"shipping,omitempty"`
9792
9793
9794
9795
9796
9797 ForceSendFields []string `json:"-"`
9798
9799
9800
9801
9802 NullFields []string `json:"-"`
9803 }
9804
9805 func (s *OrdersRefundItemRequest) MarshalJSON() ([]byte, error) {
9806 type NoMethod OrdersRefundItemRequest
9807 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9808 }
9809
9810 type OrdersRefundItemResponse struct {
9811
9812
9813 ExecutionStatus string `json:"executionStatus,omitempty"`
9814
9815
9816 Kind string `json:"kind,omitempty"`
9817
9818
9819 googleapi.ServerResponse `json:"-"`
9820
9821
9822
9823
9824
9825 ForceSendFields []string `json:"-"`
9826
9827
9828
9829
9830 NullFields []string `json:"-"`
9831 }
9832
9833 func (s *OrdersRefundItemResponse) MarshalJSON() ([]byte, error) {
9834 type NoMethod OrdersRefundItemResponse
9835 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9836 }
9837
9838 type OrdersRefundOrderRequest struct {
9839
9840
9841 Amount *MonetaryAmount `json:"amount,omitempty"`
9842
9843
9844 FullRefund bool `json:"fullRefund,omitempty"`
9845
9846
9847 OperationId string `json:"operationId,omitempty"`
9848
9849
9850 Reason string `json:"reason,omitempty"`
9851
9852 ReasonText string `json:"reasonText,omitempty"`
9853
9854
9855
9856
9857
9858 ForceSendFields []string `json:"-"`
9859
9860
9861
9862
9863 NullFields []string `json:"-"`
9864 }
9865
9866 func (s *OrdersRefundOrderRequest) MarshalJSON() ([]byte, error) {
9867 type NoMethod OrdersRefundOrderRequest
9868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9869 }
9870
9871 type OrdersRefundOrderResponse struct {
9872
9873
9874 ExecutionStatus string `json:"executionStatus,omitempty"`
9875
9876
9877 Kind string `json:"kind,omitempty"`
9878
9879
9880 googleapi.ServerResponse `json:"-"`
9881
9882
9883
9884
9885
9886 ForceSendFields []string `json:"-"`
9887
9888
9889
9890
9891 NullFields []string `json:"-"`
9892 }
9893
9894 func (s *OrdersRefundOrderResponse) MarshalJSON() ([]byte, error) {
9895 type NoMethod OrdersRefundOrderResponse
9896 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9897 }
9898
9899 type OrdersRejectReturnLineItemRequest struct {
9900
9901
9902 LineItemId string `json:"lineItemId,omitempty"`
9903
9904
9905 OperationId string `json:"operationId,omitempty"`
9906
9907
9908 ProductId string `json:"productId,omitempty"`
9909
9910 Quantity int64 `json:"quantity,omitempty"`
9911
9912
9913
9914 Reason string `json:"reason,omitempty"`
9915
9916 ReasonText string `json:"reasonText,omitempty"`
9917
9918
9919
9920
9921
9922 ForceSendFields []string `json:"-"`
9923
9924
9925
9926
9927 NullFields []string `json:"-"`
9928 }
9929
9930 func (s *OrdersRejectReturnLineItemRequest) MarshalJSON() ([]byte, error) {
9931 type NoMethod OrdersRejectReturnLineItemRequest
9932 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9933 }
9934
9935 type OrdersRejectReturnLineItemResponse struct {
9936
9937
9938 ExecutionStatus string `json:"executionStatus,omitempty"`
9939
9940
9941 Kind string `json:"kind,omitempty"`
9942
9943
9944 googleapi.ServerResponse `json:"-"`
9945
9946
9947
9948
9949
9950 ForceSendFields []string `json:"-"`
9951
9952
9953
9954
9955 NullFields []string `json:"-"`
9956 }
9957
9958 func (s *OrdersRejectReturnLineItemResponse) MarshalJSON() ([]byte, error) {
9959 type NoMethod OrdersRejectReturnLineItemResponse
9960 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9961 }
9962
9963 type OrdersReturnRefundLineItemRequest struct {
9964
9965
9966 LineItemId string `json:"lineItemId,omitempty"`
9967
9968
9969 OperationId string `json:"operationId,omitempty"`
9970
9971
9972
9973 PriceAmount *Price `json:"priceAmount,omitempty"`
9974
9975
9976 ProductId string `json:"productId,omitempty"`
9977
9978 Quantity int64 `json:"quantity,omitempty"`
9979
9980
9981
9982
9983
9984
9985
9986 Reason string `json:"reason,omitempty"`
9987
9988 ReasonText string `json:"reasonText,omitempty"`
9989
9990
9991 TaxAmount *Price `json:"taxAmount,omitempty"`
9992
9993
9994
9995
9996
9997 ForceSendFields []string `json:"-"`
9998
9999
10000
10001
10002 NullFields []string `json:"-"`
10003 }
10004
10005 func (s *OrdersReturnRefundLineItemRequest) MarshalJSON() ([]byte, error) {
10006 type NoMethod OrdersReturnRefundLineItemRequest
10007 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10008 }
10009
10010 type OrdersReturnRefundLineItemResponse struct {
10011
10012
10013 ExecutionStatus string `json:"executionStatus,omitempty"`
10014
10015
10016 Kind string `json:"kind,omitempty"`
10017
10018
10019 googleapi.ServerResponse `json:"-"`
10020
10021
10022
10023
10024
10025 ForceSendFields []string `json:"-"`
10026
10027
10028
10029
10030 NullFields []string `json:"-"`
10031 }
10032
10033 func (s *OrdersReturnRefundLineItemResponse) MarshalJSON() ([]byte, error) {
10034 type NoMethod OrdersReturnRefundLineItemResponse
10035 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10036 }
10037
10038 type OrdersSetLineItemMetadataRequest struct {
10039 Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`
10040
10041
10042 LineItemId string `json:"lineItemId,omitempty"`
10043
10044
10045 OperationId string `json:"operationId,omitempty"`
10046
10047
10048 ProductId string `json:"productId,omitempty"`
10049
10050
10051
10052
10053
10054 ForceSendFields []string `json:"-"`
10055
10056
10057
10058
10059 NullFields []string `json:"-"`
10060 }
10061
10062 func (s *OrdersSetLineItemMetadataRequest) MarshalJSON() ([]byte, error) {
10063 type NoMethod OrdersSetLineItemMetadataRequest
10064 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10065 }
10066
10067 type OrdersSetLineItemMetadataResponse struct {
10068
10069
10070 ExecutionStatus string `json:"executionStatus,omitempty"`
10071
10072
10073 Kind string `json:"kind,omitempty"`
10074
10075
10076 googleapi.ServerResponse `json:"-"`
10077
10078
10079
10080
10081
10082 ForceSendFields []string `json:"-"`
10083
10084
10085
10086
10087 NullFields []string `json:"-"`
10088 }
10089
10090 func (s *OrdersSetLineItemMetadataResponse) MarshalJSON() ([]byte, error) {
10091 type NoMethod OrdersSetLineItemMetadataResponse
10092 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10093 }
10094
10095 type OrdersShipLineItemsRequest struct {
10096
10097 LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`
10098
10099
10100 OperationId string `json:"operationId,omitempty"`
10101
10102
10103 ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
10104
10105
10106
10107 ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`
10108
10109
10110
10111
10112
10113 ForceSendFields []string `json:"-"`
10114
10115
10116
10117
10118 NullFields []string `json:"-"`
10119 }
10120
10121 func (s *OrdersShipLineItemsRequest) MarshalJSON() ([]byte, error) {
10122 type NoMethod OrdersShipLineItemsRequest
10123 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10124 }
10125
10126 type OrdersShipLineItemsResponse struct {
10127
10128
10129 ExecutionStatus string `json:"executionStatus,omitempty"`
10130
10131
10132 Kind string `json:"kind,omitempty"`
10133
10134
10135 googleapi.ServerResponse `json:"-"`
10136
10137
10138
10139
10140
10141 ForceSendFields []string `json:"-"`
10142
10143
10144
10145
10146 NullFields []string `json:"-"`
10147 }
10148
10149 func (s *OrdersShipLineItemsResponse) MarshalJSON() ([]byte, error) {
10150 type NoMethod OrdersShipLineItemsResponse
10151 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10152 }
10153
10154 type OrdersUpdateLineItemShippingDetailsRequest struct {
10155
10156
10157
10158 DeliverByDate string `json:"deliverByDate,omitempty"`
10159
10160
10161 LineItemId string `json:"lineItemId,omitempty"`
10162
10163
10164 OperationId string `json:"operationId,omitempty"`
10165
10166
10167 ProductId string `json:"productId,omitempty"`
10168
10169
10170
10171 ShipByDate string `json:"shipByDate,omitempty"`
10172
10173
10174
10175
10176
10177 ForceSendFields []string `json:"-"`
10178
10179
10180
10181
10182 NullFields []string `json:"-"`
10183 }
10184
10185 func (s *OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON() ([]byte, error) {
10186 type NoMethod OrdersUpdateLineItemShippingDetailsRequest
10187 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10188 }
10189
10190 type OrdersUpdateLineItemShippingDetailsResponse struct {
10191
10192
10193 ExecutionStatus string `json:"executionStatus,omitempty"`
10194
10195
10196 Kind string `json:"kind,omitempty"`
10197
10198
10199 googleapi.ServerResponse `json:"-"`
10200
10201
10202
10203
10204
10205 ForceSendFields []string `json:"-"`
10206
10207
10208
10209
10210 NullFields []string `json:"-"`
10211 }
10212
10213 func (s *OrdersUpdateLineItemShippingDetailsResponse) MarshalJSON() ([]byte, error) {
10214 type NoMethod OrdersUpdateLineItemShippingDetailsResponse
10215 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10216 }
10217
10218 type OrdersUpdateMerchantOrderIdRequest struct {
10219
10220
10221 MerchantOrderId string `json:"merchantOrderId,omitempty"`
10222
10223
10224 OperationId string `json:"operationId,omitempty"`
10225
10226
10227
10228
10229
10230 ForceSendFields []string `json:"-"`
10231
10232
10233
10234
10235 NullFields []string `json:"-"`
10236 }
10237
10238 func (s *OrdersUpdateMerchantOrderIdRequest) MarshalJSON() ([]byte, error) {
10239 type NoMethod OrdersUpdateMerchantOrderIdRequest
10240 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10241 }
10242
10243 type OrdersUpdateMerchantOrderIdResponse struct {
10244
10245
10246 ExecutionStatus string `json:"executionStatus,omitempty"`
10247
10248
10249 Kind string `json:"kind,omitempty"`
10250
10251
10252 googleapi.ServerResponse `json:"-"`
10253
10254
10255
10256
10257
10258 ForceSendFields []string `json:"-"`
10259
10260
10261
10262
10263 NullFields []string `json:"-"`
10264 }
10265
10266 func (s *OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error) {
10267 type NoMethod OrdersUpdateMerchantOrderIdResponse
10268 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10269 }
10270
10271 type OrdersUpdateShipmentRequest struct {
10272
10273
10274
10275 Carrier string `json:"carrier,omitempty"`
10276
10277
10278 DeliveryDate string `json:"deliveryDate,omitempty"`
10279
10280
10281
10282 LastPickupDate string `json:"lastPickupDate,omitempty"`
10283
10284
10285 OperationId string `json:"operationId,omitempty"`
10286
10287
10288
10289 ReadyPickupDate string `json:"readyPickupDate,omitempty"`
10290
10291
10292 ScheduledDeliveryDetails *OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails `json:"scheduledDeliveryDetails,omitempty"`
10293
10294 ShipmentId string `json:"shipmentId,omitempty"`
10295
10296
10297 Status string `json:"status,omitempty"`
10298
10299 TrackingId string `json:"trackingId,omitempty"`
10300
10301
10302
10303 UndeliveredDate string `json:"undeliveredDate,omitempty"`
10304
10305
10306
10307
10308
10309 ForceSendFields []string `json:"-"`
10310
10311
10312
10313
10314 NullFields []string `json:"-"`
10315 }
10316
10317 func (s *OrdersUpdateShipmentRequest) MarshalJSON() ([]byte, error) {
10318 type NoMethod OrdersUpdateShipmentRequest
10319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10320 }
10321
10322 type OrdersUpdateShipmentResponse struct {
10323
10324
10325 ExecutionStatus string `json:"executionStatus,omitempty"`
10326
10327
10328 Kind string `json:"kind,omitempty"`
10329
10330
10331 googleapi.ServerResponse `json:"-"`
10332
10333
10334
10335
10336
10337 ForceSendFields []string `json:"-"`
10338
10339
10340
10341
10342 NullFields []string `json:"-"`
10343 }
10344
10345 func (s *OrdersUpdateShipmentResponse) MarshalJSON() ([]byte, error) {
10346 type NoMethod OrdersUpdateShipmentResponse
10347 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10348 }
10349
10350
10351 type PauseBuyOnGoogleProgramRequest struct {
10352 }
10353
10354
10355
10356 type PaymentServiceProviderLinkInfo struct {
10357
10358
10359 ExternalAccountBusinessCountry string `json:"externalAccountBusinessCountry,omitempty"`
10360
10361
10362 ExternalAccountId string `json:"externalAccountId,omitempty"`
10363
10364
10365
10366
10367
10368
10369 ForceSendFields []string `json:"-"`
10370
10371
10372
10373
10374 NullFields []string `json:"-"`
10375 }
10376
10377 func (s *PaymentServiceProviderLinkInfo) MarshalJSON() ([]byte, error) {
10378 type NoMethod PaymentServiceProviderLinkInfo
10379 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10380 }
10381
10382 type PickupCarrierService struct {
10383
10384
10385 CarrierName string `json:"carrierName,omitempty"`
10386
10387
10388 ServiceName string `json:"serviceName,omitempty"`
10389
10390
10391
10392
10393
10394 ForceSendFields []string `json:"-"`
10395
10396
10397
10398
10399 NullFields []string `json:"-"`
10400 }
10401
10402 func (s *PickupCarrierService) MarshalJSON() ([]byte, error) {
10403 type NoMethod PickupCarrierService
10404 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10405 }
10406
10407 type PickupServicesPickupService struct {
10408
10409 CarrierName string `json:"carrierName,omitempty"`
10410
10411
10412 Country string `json:"country,omitempty"`
10413
10414
10415 ServiceName string `json:"serviceName,omitempty"`
10416
10417
10418
10419
10420
10421 ForceSendFields []string `json:"-"`
10422
10423
10424
10425
10426 NullFields []string `json:"-"`
10427 }
10428
10429 func (s *PickupServicesPickupService) MarshalJSON() ([]byte, error) {
10430 type NoMethod PickupServicesPickupService
10431 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10432 }
10433
10434 type PosCustomBatchRequest struct {
10435
10436 Entries []*PosCustomBatchRequestEntry `json:"entries,omitempty"`
10437
10438
10439
10440
10441
10442 ForceSendFields []string `json:"-"`
10443
10444
10445
10446
10447 NullFields []string `json:"-"`
10448 }
10449
10450 func (s *PosCustomBatchRequest) MarshalJSON() ([]byte, error) {
10451 type NoMethod PosCustomBatchRequest
10452 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10453 }
10454
10455 type PosCustomBatchRequestEntry struct {
10456
10457 BatchId int64 `json:"batchId,omitempty"`
10458
10459
10460 Inventory *PosInventory `json:"inventory,omitempty"`
10461
10462 MerchantId uint64 `json:"merchantId,omitempty,string"`
10463
10464
10465 Method string `json:"method,omitempty"`
10466
10467
10468 Sale *PosSale `json:"sale,omitempty"`
10469
10470
10471 Store *PosStore `json:"store,omitempty"`
10472
10473
10474 StoreCode string `json:"storeCode,omitempty"`
10475
10476 TargetMerchantId uint64 `json:"targetMerchantId,omitempty,string"`
10477
10478
10479
10480
10481
10482 ForceSendFields []string `json:"-"`
10483
10484
10485
10486
10487 NullFields []string `json:"-"`
10488 }
10489
10490 func (s *PosCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
10491 type NoMethod PosCustomBatchRequestEntry
10492 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10493 }
10494
10495 type PosCustomBatchResponse struct {
10496
10497 Entries []*PosCustomBatchResponseEntry `json:"entries,omitempty"`
10498
10499
10500 Kind string `json:"kind,omitempty"`
10501
10502
10503 googleapi.ServerResponse `json:"-"`
10504
10505
10506
10507
10508
10509 ForceSendFields []string `json:"-"`
10510
10511
10512
10513
10514 NullFields []string `json:"-"`
10515 }
10516
10517 func (s *PosCustomBatchResponse) MarshalJSON() ([]byte, error) {
10518 type NoMethod PosCustomBatchResponse
10519 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10520 }
10521
10522 type PosCustomBatchResponseEntry struct {
10523
10524 BatchId int64 `json:"batchId,omitempty"`
10525
10526 Errors *Errors `json:"errors,omitempty"`
10527
10528 Inventory *PosInventory `json:"inventory,omitempty"`
10529
10530
10531 Kind string `json:"kind,omitempty"`
10532
10533 Sale *PosSale `json:"sale,omitempty"`
10534
10535 Store *PosStore `json:"store,omitempty"`
10536
10537
10538
10539
10540
10541 ForceSendFields []string `json:"-"`
10542
10543
10544
10545
10546 NullFields []string `json:"-"`
10547 }
10548
10549 func (s *PosCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
10550 type NoMethod PosCustomBatchResponseEntry
10551 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10552 }
10553
10554 type PosDataProviders struct {
10555
10556 Country string `json:"country,omitempty"`
10557
10558 PosDataProviders []*PosDataProvidersPosDataProvider `json:"posDataProviders,omitempty"`
10559
10560
10561
10562
10563
10564 ForceSendFields []string `json:"-"`
10565
10566
10567
10568
10569 NullFields []string `json:"-"`
10570 }
10571
10572 func (s *PosDataProviders) MarshalJSON() ([]byte, error) {
10573 type NoMethod PosDataProviders
10574 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10575 }
10576
10577 type PosDataProvidersPosDataProvider struct {
10578
10579 DisplayName string `json:"displayName,omitempty"`
10580
10581 FullName string `json:"fullName,omitempty"`
10582
10583 ProviderId uint64 `json:"providerId,omitempty,string"`
10584
10585
10586
10587
10588
10589 ForceSendFields []string `json:"-"`
10590
10591
10592
10593
10594 NullFields []string `json:"-"`
10595 }
10596
10597 func (s *PosDataProvidersPosDataProvider) MarshalJSON() ([]byte, error) {
10598 type NoMethod PosDataProvidersPosDataProvider
10599 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10600 }
10601
10602
10603 type PosInventory struct {
10604
10605
10606 ContentLanguage string `json:"contentLanguage,omitempty"`
10607
10608 Gtin string `json:"gtin,omitempty"`
10609
10610 ItemId string `json:"itemId,omitempty"`
10611
10612
10613 Kind string `json:"kind,omitempty"`
10614
10615
10616
10617
10618 PickupMethod string `json:"pickupMethod,omitempty"`
10619
10620
10621
10622
10623 PickupSla string `json:"pickupSla,omitempty"`
10624
10625 Price *Price `json:"price,omitempty"`
10626
10627 Quantity int64 `json:"quantity,omitempty,string"`
10628
10629
10630
10631 StoreCode string `json:"storeCode,omitempty"`
10632
10633 TargetCountry string `json:"targetCountry,omitempty"`
10634
10635 Timestamp string `json:"timestamp,omitempty"`
10636
10637
10638
10639
10640
10641 ForceSendFields []string `json:"-"`
10642
10643
10644
10645
10646 NullFields []string `json:"-"`
10647 }
10648
10649 func (s *PosInventory) MarshalJSON() ([]byte, error) {
10650 type NoMethod PosInventory
10651 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10652 }
10653
10654 type PosInventoryRequest struct {
10655
10656
10657 ContentLanguage string `json:"contentLanguage,omitempty"`
10658
10659 Gtin string `json:"gtin,omitempty"`
10660
10661 ItemId string `json:"itemId,omitempty"`
10662
10663
10664
10665
10666 PickupMethod string `json:"pickupMethod,omitempty"`
10667
10668
10669
10670
10671 PickupSla string `json:"pickupSla,omitempty"`
10672
10673 Price *Price `json:"price,omitempty"`
10674
10675 Quantity int64 `json:"quantity,omitempty,string"`
10676
10677
10678
10679 StoreCode string `json:"storeCode,omitempty"`
10680
10681 TargetCountry string `json:"targetCountry,omitempty"`
10682
10683 Timestamp string `json:"timestamp,omitempty"`
10684
10685
10686
10687
10688
10689 ForceSendFields []string `json:"-"`
10690
10691
10692
10693
10694 NullFields []string `json:"-"`
10695 }
10696
10697 func (s *PosInventoryRequest) MarshalJSON() ([]byte, error) {
10698 type NoMethod PosInventoryRequest
10699 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10700 }
10701
10702 type PosInventoryResponse struct {
10703
10704
10705 ContentLanguage string `json:"contentLanguage,omitempty"`
10706
10707 Gtin string `json:"gtin,omitempty"`
10708
10709 ItemId string `json:"itemId,omitempty"`
10710
10711
10712 Kind string `json:"kind,omitempty"`
10713
10714
10715
10716
10717 PickupMethod string `json:"pickupMethod,omitempty"`
10718
10719
10720
10721
10722 PickupSla string `json:"pickupSla,omitempty"`
10723
10724 Price *Price `json:"price,omitempty"`
10725
10726 Quantity int64 `json:"quantity,omitempty,string"`
10727
10728
10729
10730 StoreCode string `json:"storeCode,omitempty"`
10731
10732 TargetCountry string `json:"targetCountry,omitempty"`
10733
10734 Timestamp string `json:"timestamp,omitempty"`
10735
10736
10737 googleapi.ServerResponse `json:"-"`
10738
10739
10740
10741
10742
10743 ForceSendFields []string `json:"-"`
10744
10745
10746
10747
10748 NullFields []string `json:"-"`
10749 }
10750
10751 func (s *PosInventoryResponse) MarshalJSON() ([]byte, error) {
10752 type NoMethod PosInventoryResponse
10753 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10754 }
10755
10756 type PosListResponse struct {
10757
10758
10759 Kind string `json:"kind,omitempty"`
10760 Resources []*PosStore `json:"resources,omitempty"`
10761
10762
10763 googleapi.ServerResponse `json:"-"`
10764
10765
10766
10767
10768
10769 ForceSendFields []string `json:"-"`
10770
10771
10772
10773
10774 NullFields []string `json:"-"`
10775 }
10776
10777 func (s *PosListResponse) MarshalJSON() ([]byte, error) {
10778 type NoMethod PosListResponse
10779 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10780 }
10781
10782
10783 type PosSale struct {
10784
10785
10786 ContentLanguage string `json:"contentLanguage,omitempty"`
10787
10788 Gtin string `json:"gtin,omitempty"`
10789
10790 ItemId string `json:"itemId,omitempty"`
10791
10792
10793 Kind string `json:"kind,omitempty"`
10794
10795 Price *Price `json:"price,omitempty"`
10796
10797
10798 Quantity int64 `json:"quantity,omitempty,string"`
10799
10800 SaleId string `json:"saleId,omitempty"`
10801
10802
10803
10804 StoreCode string `json:"storeCode,omitempty"`
10805
10806 TargetCountry string `json:"targetCountry,omitempty"`
10807
10808 Timestamp string `json:"timestamp,omitempty"`
10809
10810
10811
10812
10813
10814 ForceSendFields []string `json:"-"`
10815
10816
10817
10818
10819 NullFields []string `json:"-"`
10820 }
10821
10822 func (s *PosSale) MarshalJSON() ([]byte, error) {
10823 type NoMethod PosSale
10824 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10825 }
10826
10827 type PosSaleRequest struct {
10828
10829
10830 ContentLanguage string `json:"contentLanguage,omitempty"`
10831
10832 Gtin string `json:"gtin,omitempty"`
10833
10834 ItemId string `json:"itemId,omitempty"`
10835
10836 Price *Price `json:"price,omitempty"`
10837
10838
10839 Quantity int64 `json:"quantity,omitempty,string"`
10840
10841 SaleId string `json:"saleId,omitempty"`
10842
10843
10844
10845 StoreCode string `json:"storeCode,omitempty"`
10846
10847 TargetCountry string `json:"targetCountry,omitempty"`
10848
10849 Timestamp string `json:"timestamp,omitempty"`
10850
10851
10852
10853
10854
10855 ForceSendFields []string `json:"-"`
10856
10857
10858
10859
10860 NullFields []string `json:"-"`
10861 }
10862
10863 func (s *PosSaleRequest) MarshalJSON() ([]byte, error) {
10864 type NoMethod PosSaleRequest
10865 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10866 }
10867
10868 type PosSaleResponse struct {
10869
10870
10871 ContentLanguage string `json:"contentLanguage,omitempty"`
10872
10873 Gtin string `json:"gtin,omitempty"`
10874
10875 ItemId string `json:"itemId,omitempty"`
10876
10877
10878 Kind string `json:"kind,omitempty"`
10879
10880 Price *Price `json:"price,omitempty"`
10881
10882
10883 Quantity int64 `json:"quantity,omitempty,string"`
10884
10885 SaleId string `json:"saleId,omitempty"`
10886
10887
10888
10889 StoreCode string `json:"storeCode,omitempty"`
10890
10891 TargetCountry string `json:"targetCountry,omitempty"`
10892
10893 Timestamp string `json:"timestamp,omitempty"`
10894
10895
10896 googleapi.ServerResponse `json:"-"`
10897
10898
10899
10900
10901
10902 ForceSendFields []string `json:"-"`
10903
10904
10905
10906
10907 NullFields []string `json:"-"`
10908 }
10909
10910 func (s *PosSaleResponse) MarshalJSON() ([]byte, error) {
10911 type NoMethod PosSaleResponse
10912 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10913 }
10914
10915
10916 type PosStore struct {
10917
10918 GcidCategory []string `json:"gcidCategory,omitempty"`
10919
10920
10921 Kind string `json:"kind,omitempty"`
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933 MatchingStatus string `json:"matchingStatus,omitempty"`
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949 MatchingStatusHint string `json:"matchingStatusHint,omitempty"`
10950
10951 PhoneNumber string `json:"phoneNumber,omitempty"`
10952
10953 PlaceId string `json:"placeId,omitempty"`
10954
10955 StoreAddress string `json:"storeAddress,omitempty"`
10956
10957
10958 StoreCode string `json:"storeCode,omitempty"`
10959
10960 StoreName string `json:"storeName,omitempty"`
10961
10962 WebsiteUrl string `json:"websiteUrl,omitempty"`
10963
10964
10965 googleapi.ServerResponse `json:"-"`
10966
10967
10968
10969
10970
10971 ForceSendFields []string `json:"-"`
10972
10973
10974
10975
10976 NullFields []string `json:"-"`
10977 }
10978
10979 func (s *PosStore) MarshalJSON() ([]byte, error) {
10980 type NoMethod PosStore
10981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10982 }
10983
10984 type PostalCodeGroup struct {
10985
10986
10987 Country string `json:"country,omitempty"`
10988
10989 Name string `json:"name,omitempty"`
10990
10991 PostalCodeRanges []*PostalCodeRange `json:"postalCodeRanges,omitempty"`
10992
10993
10994
10995
10996
10997 ForceSendFields []string `json:"-"`
10998
10999
11000
11001
11002 NullFields []string `json:"-"`
11003 }
11004
11005 func (s *PostalCodeGroup) MarshalJSON() ([]byte, error) {
11006 type NoMethod PostalCodeGroup
11007 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11008 }
11009
11010 type PostalCodeRange struct {
11011
11012
11013
11014 PostalCodeRangeBegin string `json:"postalCodeRangeBegin,omitempty"`
11015
11016
11017
11018
11019
11020
11021
11022 PostalCodeRangeEnd string `json:"postalCodeRangeEnd,omitempty"`
11023
11024
11025
11026
11027
11028 ForceSendFields []string `json:"-"`
11029
11030
11031
11032
11033 NullFields []string `json:"-"`
11034 }
11035
11036 func (s *PostalCodeRange) MarshalJSON() ([]byte, error) {
11037 type NoMethod PostalCodeRange
11038 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11039 }
11040
11041 type Price struct {
11042
11043 Currency string `json:"currency,omitempty"`
11044
11045 Value string `json:"value,omitempty"`
11046
11047
11048
11049
11050
11051 ForceSendFields []string `json:"-"`
11052
11053
11054
11055
11056 NullFields []string `json:"-"`
11057 }
11058
11059 func (s *Price) MarshalJSON() ([]byte, error) {
11060 type NoMethod Price
11061 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11062 }
11063
11064
11065 type PriceAmount struct {
11066
11067 Currency string `json:"currency,omitempty"`
11068
11069 Value string `json:"value,omitempty"`
11070
11071
11072
11073
11074
11075 ForceSendFields []string `json:"-"`
11076
11077
11078
11079
11080 NullFields []string `json:"-"`
11081 }
11082
11083 func (s *PriceAmount) MarshalJSON() ([]byte, error) {
11084 type NoMethod PriceAmount
11085 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11086 }
11087
11088
11089
11090
11091
11092 type PriceCompetitiveness struct {
11093
11094 BenchmarkPriceCurrencyCode string `json:"benchmarkPriceCurrencyCode,omitempty"`
11095
11096
11097
11098 BenchmarkPriceMicros int64 `json:"benchmarkPriceMicros,omitempty,string"`
11099
11100 CountryCode string `json:"countryCode,omitempty"`
11101
11102
11103
11104
11105
11106 ForceSendFields []string `json:"-"`
11107
11108
11109
11110
11111 NullFields []string `json:"-"`
11112 }
11113
11114 func (s *PriceCompetitiveness) MarshalJSON() ([]byte, error) {
11115 type NoMethod PriceCompetitiveness
11116 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11117 }
11118
11119
11120
11121
11122
11123 type PriceInsights struct {
11124
11125
11126
11127
11128
11129
11130
11131
11132 Effectiveness string `json:"effectiveness,omitempty"`
11133
11134
11135
11136 PredictedClicksChangeFraction float64 `json:"predictedClicksChangeFraction,omitempty"`
11137
11138
11139
11140 PredictedConversionsChangeFraction float64 `json:"predictedConversionsChangeFraction,omitempty"`
11141
11142
11143
11144
11145 PredictedGrossProfitChangeFraction float64 `json:"predictedGrossProfitChangeFraction,omitempty"`
11146
11147
11148
11149 PredictedImpressionsChangeFraction float64 `json:"predictedImpressionsChangeFraction,omitempty"`
11150
11151
11152
11153 PredictedMonthlyGrossProfitChangeCurrencyCode string `json:"predictedMonthlyGrossProfitChangeCurrencyCode,omitempty"`
11154
11155
11156
11157
11158
11159 PredictedMonthlyGrossProfitChangeMicros int64 `json:"predictedMonthlyGrossProfitChangeMicros,omitempty,string"`
11160
11161 SuggestedPriceCurrencyCode string `json:"suggestedPriceCurrencyCode,omitempty"`
11162
11163
11164 SuggestedPriceMicros int64 `json:"suggestedPriceMicros,omitempty,string"`
11165
11166
11167
11168
11169
11170 ForceSendFields []string `json:"-"`
11171
11172
11173
11174
11175 NullFields []string `json:"-"`
11176 }
11177
11178 func (s *PriceInsights) MarshalJSON() ([]byte, error) {
11179 type NoMethod PriceInsights
11180 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11181 }
11182
11183 func (s *PriceInsights) UnmarshalJSON(data []byte) error {
11184 type NoMethod PriceInsights
11185 var s1 struct {
11186 PredictedClicksChangeFraction gensupport.JSONFloat64 `json:"predictedClicksChangeFraction"`
11187 PredictedConversionsChangeFraction gensupport.JSONFloat64 `json:"predictedConversionsChangeFraction"`
11188 PredictedGrossProfitChangeFraction gensupport.JSONFloat64 `json:"predictedGrossProfitChangeFraction"`
11189 PredictedImpressionsChangeFraction gensupport.JSONFloat64 `json:"predictedImpressionsChangeFraction"`
11190 *NoMethod
11191 }
11192 s1.NoMethod = (*NoMethod)(s)
11193 if err := json.Unmarshal(data, &s1); err != nil {
11194 return err
11195 }
11196 s.PredictedClicksChangeFraction = float64(s1.PredictedClicksChangeFraction)
11197 s.PredictedConversionsChangeFraction = float64(s1.PredictedConversionsChangeFraction)
11198 s.PredictedGrossProfitChangeFraction = float64(s1.PredictedGrossProfitChangeFraction)
11199 s.PredictedImpressionsChangeFraction = float64(s1.PredictedImpressionsChangeFraction)
11200 return nil
11201 }
11202
11203
11204
11205
11206
11207 type Product struct {
11208
11209 AdditionalImageLinks []string `json:"additionalImageLinks,omitempty"`
11210
11211
11212 AdditionalSizeType string `json:"additionalSizeType,omitempty"`
11213
11214
11215 AdsGrouping string `json:"adsGrouping,omitempty"`
11216
11217 AdsLabels []string `json:"adsLabels,omitempty"`
11218
11219
11220 AdsRedirect string `json:"adsRedirect,omitempty"`
11221
11222 Adult bool `json:"adult,omitempty"`
11223
11224 AgeGroup string `json:"ageGroup,omitempty"`
11225
11226
11227
11228
11229
11230 AutoPricingMinPrice *Price `json:"autoPricingMinPrice,omitempty"`
11231
11232 Availability string `json:"availability,omitempty"`
11233
11234
11235 AvailabilityDate string `json:"availabilityDate,omitempty"`
11236
11237 Brand string `json:"brand,omitempty"`
11238
11239 CanonicalLink string `json:"canonicalLink,omitempty"`
11240
11241
11242
11243
11244 Certifications []*ProductCertification `json:"certifications,omitempty"`
11245
11246
11247 Channel string `json:"channel,omitempty"`
11248
11249
11250 CloudExportAdditionalProperties []*CloudExportAdditionalProperties `json:"cloudExportAdditionalProperties,omitempty"`
11251
11252 Color string `json:"color,omitempty"`
11253
11254 Condition string `json:"condition,omitempty"`
11255
11256
11257 ContentLanguage string `json:"contentLanguage,omitempty"`
11258
11259 CostOfGoodsSold *Price `json:"costOfGoodsSold,omitempty"`
11260
11261
11262
11263
11264
11265
11266 CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"`
11267
11268
11269 CustomLabel0 string `json:"customLabel0,omitempty"`
11270
11271
11272 CustomLabel1 string `json:"customLabel1,omitempty"`
11273
11274
11275 CustomLabel2 string `json:"customLabel2,omitempty"`
11276
11277
11278 CustomLabel3 string `json:"customLabel3,omitempty"`
11279
11280
11281 CustomLabel4 string `json:"customLabel4,omitempty"`
11282
11283 Description string `json:"description,omitempty"`
11284
11285
11286
11287
11288 DisclosureDate string `json:"disclosureDate,omitempty"`
11289
11290 DisplayAdsId string `json:"displayAdsId,omitempty"`
11291
11292
11293 DisplayAdsLink string `json:"displayAdsLink,omitempty"`
11294
11295 DisplayAdsSimilarIds []string `json:"displayAdsSimilarIds,omitempty"`
11296
11297 DisplayAdsTitle string `json:"displayAdsTitle,omitempty"`
11298
11299 DisplayAdsValue float64 `json:"displayAdsValue,omitempty"`
11300
11301
11302 EnergyEfficiencyClass string `json:"energyEfficiencyClass,omitempty"`
11303
11304
11305
11306
11307 ExcludedDestinations []string `json:"excludedDestinations,omitempty"`
11308
11309
11310
11311
11312 ExpirationDate string `json:"expirationDate,omitempty"`
11313
11314
11315
11316 ExternalSellerId string `json:"externalSellerId,omitempty"`
11317
11318
11319
11320 FeedLabel string `json:"feedLabel,omitempty"`
11321
11322
11323 FreeShippingThreshold []*FreeShippingThreshold `json:"freeShippingThreshold,omitempty"`
11324
11325 Gender string `json:"gender,omitempty"`
11326
11327
11328
11329
11330
11331 GoogleProductCategory string `json:"googleProductCategory,omitempty"`
11332
11333 Gtin string `json:"gtin,omitempty"`
11334
11335
11336
11337
11338 Id string `json:"id,omitempty"`
11339
11340
11341
11342
11343 IdentifierExists bool `json:"identifierExists,omitempty"`
11344
11345 ImageLink string `json:"imageLink,omitempty"`
11346
11347
11348
11349
11350 IncludedDestinations []string `json:"includedDestinations,omitempty"`
11351
11352 Installment *Installment `json:"installment,omitempty"`
11353
11354
11355 IsBundle bool `json:"isBundle,omitempty"`
11356
11357 ItemGroupId string `json:"itemGroupId,omitempty"`
11358
11359
11360 Kind string `json:"kind,omitempty"`
11361
11362
11363
11364 LifestyleImageLinks []string `json:"lifestyleImageLinks,omitempty"`
11365
11366 Link string `json:"link,omitempty"`
11367
11368 LinkTemplate string `json:"linkTemplate,omitempty"`
11369
11370
11371 LoyaltyProgram *LoyaltyProgram `json:"loyaltyProgram,omitempty"`
11372
11373 Material string `json:"material,omitempty"`
11374
11375
11376 MaxEnergyEfficiencyClass string `json:"maxEnergyEfficiencyClass,omitempty"`
11377
11378 MaxHandlingTime int64 `json:"maxHandlingTime,omitempty,string"`
11379
11380
11381 MinEnergyEfficiencyClass string `json:"minEnergyEfficiencyClass,omitempty"`
11382
11383 MinHandlingTime int64 `json:"minHandlingTime,omitempty,string"`
11384
11385
11386 MobileLink string `json:"mobileLink,omitempty"`
11387
11388
11389 MobileLinkTemplate string `json:"mobileLinkTemplate,omitempty"`
11390
11391 Mpn string `json:"mpn,omitempty"`
11392
11393 Multipack int64 `json:"multipack,omitempty,string"`
11394
11395
11396
11397
11398
11399
11400 OfferId string `json:"offerId,omitempty"`
11401
11402 Pattern string `json:"pattern,omitempty"`
11403
11404
11405 Pause string `json:"pause,omitempty"`
11406
11407
11408 PickupMethod string `json:"pickupMethod,omitempty"`
11409
11410
11411
11412 PickupSla string `json:"pickupSla,omitempty"`
11413
11414 Price *Price `json:"price,omitempty"`
11415
11416 ProductDetails []*ProductProductDetail `json:"productDetails,omitempty"`
11417
11418
11419 ProductHeight *ProductDimension `json:"productHeight,omitempty"`
11420
11421
11422 ProductHighlights []string `json:"productHighlights,omitempty"`
11423
11424
11425 ProductLength *ProductDimension `json:"productLength,omitempty"`
11426
11427
11428 ProductTypes []string `json:"productTypes,omitempty"`
11429
11430
11431 ProductWeight *ProductWeight `json:"productWeight,omitempty"`
11432
11433
11434 ProductWidth *ProductDimension `json:"productWidth,omitempty"`
11435
11436 PromotionIds []string `json:"promotionIds,omitempty"`
11437
11438 SalePrice *Price `json:"salePrice,omitempty"`
11439
11440
11441 SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"`
11442
11443
11444 SellOnGoogleQuantity int64 `json:"sellOnGoogleQuantity,omitempty,string"`
11445
11446 Shipping []*ProductShipping `json:"shipping,omitempty"`
11447
11448 ShippingHeight *ProductShippingDimension `json:"shippingHeight,omitempty"`
11449
11450
11451 ShippingLabel string `json:"shippingLabel,omitempty"`
11452
11453 ShippingLength *ProductShippingDimension `json:"shippingLength,omitempty"`
11454
11455 ShippingWeight *ProductShippingWeight `json:"shippingWeight,omitempty"`
11456
11457 ShippingWidth *ProductShippingDimension `json:"shippingWidth,omitempty"`
11458
11459
11460
11461 ShoppingAdsExcludedCountries []string `json:"shoppingAdsExcludedCountries,omitempty"`
11462
11463
11464 SizeSystem string `json:"sizeSystem,omitempty"`
11465
11466 SizeType string `json:"sizeType,omitempty"`
11467
11468
11469
11470 Sizes []string `json:"sizes,omitempty"`
11471
11472
11473 Source string `json:"source,omitempty"`
11474
11475
11476 StructuredDescription *ProductStructuredDescription `json:"structuredDescription,omitempty"`
11477
11478
11479 StructuredTitle *ProductStructuredTitle `json:"structuredTitle,omitempty"`
11480
11481
11482 SubscriptionCost *ProductSubscriptionCost `json:"subscriptionCost,omitempty"`
11483
11484
11485 TargetCountry string `json:"targetCountry,omitempty"`
11486
11487
11488 TaxCategory string `json:"taxCategory,omitempty"`
11489
11490 Taxes []*ProductTax `json:"taxes,omitempty"`
11491
11492 Title string `json:"title,omitempty"`
11493
11494
11495 TransitTimeLabel string `json:"transitTimeLabel,omitempty"`
11496
11497 UnitPricingBaseMeasure *ProductUnitPricingBaseMeasure `json:"unitPricingBaseMeasure,omitempty"`
11498
11499 UnitPricingMeasure *ProductUnitPricingMeasure `json:"unitPricingMeasure,omitempty"`
11500
11501 VirtualModelLink string `json:"virtualModelLink,omitempty"`
11502
11503
11504 googleapi.ServerResponse `json:"-"`
11505
11506
11507
11508
11509
11510 ForceSendFields []string `json:"-"`
11511
11512
11513
11514
11515 NullFields []string `json:"-"`
11516 }
11517
11518 func (s *Product) MarshalJSON() ([]byte, error) {
11519 type NoMethod Product
11520 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11521 }
11522
11523 func (s *Product) UnmarshalJSON(data []byte) error {
11524 type NoMethod Product
11525 var s1 struct {
11526 DisplayAdsValue gensupport.JSONFloat64 `json:"displayAdsValue"`
11527 *NoMethod
11528 }
11529 s1.NoMethod = (*NoMethod)(s)
11530 if err := json.Unmarshal(data, &s1); err != nil {
11531 return err
11532 }
11533 s.DisplayAdsValue = float64(s1.DisplayAdsValue)
11534 return nil
11535 }
11536
11537 type ProductAmount struct {
11538
11539
11540 PriceAmount *Price `json:"priceAmount,omitempty"`
11541
11542 RemittedTaxAmount *Price `json:"remittedTaxAmount,omitempty"`
11543
11544 TaxAmount *Price `json:"taxAmount,omitempty"`
11545
11546
11547
11548
11549
11550 ForceSendFields []string `json:"-"`
11551
11552
11553
11554
11555 NullFields []string `json:"-"`
11556 }
11557
11558 func (s *ProductAmount) MarshalJSON() ([]byte, error) {
11559 type NoMethod ProductAmount
11560 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11561 }
11562
11563
11564
11565
11566
11567 type ProductCertification struct {
11568
11569
11570 CertificationAuthority string `json:"certificationAuthority,omitempty"`
11571
11572
11573 CertificationCode string `json:"certificationCode,omitempty"`
11574
11575
11576 CertificationName string `json:"certificationName,omitempty"`
11577
11578
11579
11580
11581
11582 ForceSendFields []string `json:"-"`
11583
11584
11585
11586
11587 NullFields []string `json:"-"`
11588 }
11589
11590 func (s *ProductCertification) MarshalJSON() ([]byte, error) {
11591 type NoMethod ProductCertification
11592 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11593 }
11594
11595
11596
11597
11598 type ProductCluster struct {
11599
11600 Brand string `json:"brand,omitempty"`
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614 BrandInventoryStatus string `json:"brandInventoryStatus,omitempty"`
11615
11616
11617 CategoryL1 string `json:"categoryL1,omitempty"`
11618
11619
11620 CategoryL2 string `json:"categoryL2,omitempty"`
11621
11622
11623 CategoryL3 string `json:"categoryL3,omitempty"`
11624
11625
11626 CategoryL4 string `json:"categoryL4,omitempty"`
11627
11628
11629 CategoryL5 string `json:"categoryL5,omitempty"`
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643 InventoryStatus string `json:"inventoryStatus,omitempty"`
11644
11645 Title string `json:"title,omitempty"`
11646
11647 VariantGtins []string `json:"variantGtins,omitempty"`
11648
11649
11650
11651
11652
11653 ForceSendFields []string `json:"-"`
11654
11655
11656
11657
11658 NullFields []string `json:"-"`
11659 }
11660
11661 func (s *ProductCluster) MarshalJSON() ([]byte, error) {
11662 type NoMethod ProductCluster
11663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11664 }
11665
11666
11667
11668
11669
11670
11671 type ProductDeliveryTime struct {
11672
11673
11674
11675 AreaDeliveryTimes []*ProductDeliveryTimeAreaDeliveryTime `json:"areaDeliveryTimes,omitempty"`
11676
11677 ProductId *ProductId `json:"productId,omitempty"`
11678
11679
11680 googleapi.ServerResponse `json:"-"`
11681
11682
11683
11684
11685
11686 ForceSendFields []string `json:"-"`
11687
11688
11689
11690
11691 NullFields []string `json:"-"`
11692 }
11693
11694 func (s *ProductDeliveryTime) MarshalJSON() ([]byte, error) {
11695 type NoMethod ProductDeliveryTime
11696 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11697 }
11698
11699
11700
11701 type ProductDeliveryTimeAreaDeliveryTime struct {
11702
11703
11704 DeliveryArea *DeliveryArea `json:"deliveryArea,omitempty"`
11705
11706
11707 DeliveryTime *ProductDeliveryTimeAreaDeliveryTimeDeliveryTime `json:"deliveryTime,omitempty"`
11708
11709
11710
11711
11712
11713 ForceSendFields []string `json:"-"`
11714
11715
11716
11717
11718 NullFields []string `json:"-"`
11719 }
11720
11721 func (s *ProductDeliveryTimeAreaDeliveryTime) MarshalJSON() ([]byte, error) {
11722 type NoMethod ProductDeliveryTimeAreaDeliveryTime
11723 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11724 }
11725
11726
11727
11728 type ProductDeliveryTimeAreaDeliveryTimeDeliveryTime struct {
11729
11730
11731
11732 MaxHandlingTimeDays int64 `json:"maxHandlingTimeDays,omitempty"`
11733
11734
11735
11736 MaxTransitTimeDays int64 `json:"maxTransitTimeDays,omitempty"`
11737
11738
11739
11740 MinHandlingTimeDays int64 `json:"minHandlingTimeDays,omitempty"`
11741
11742
11743
11744 MinTransitTimeDays int64 `json:"minTransitTimeDays,omitempty"`
11745
11746
11747
11748
11749
11750 ForceSendFields []string `json:"-"`
11751
11752
11753
11754
11755 NullFields []string `json:"-"`
11756 }
11757
11758 func (s *ProductDeliveryTimeAreaDeliveryTimeDeliveryTime) MarshalJSON() ([]byte, error) {
11759 type NoMethod ProductDeliveryTimeAreaDeliveryTimeDeliveryTime
11760 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11761 }
11762
11763 type ProductDimension struct {
11764
11765 Unit string `json:"unit,omitempty"`
11766
11767
11768 Value float64 `json:"value,omitempty"`
11769
11770
11771
11772
11773
11774 ForceSendFields []string `json:"-"`
11775
11776
11777
11778
11779 NullFields []string `json:"-"`
11780 }
11781
11782 func (s *ProductDimension) MarshalJSON() ([]byte, error) {
11783 type NoMethod ProductDimension
11784 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11785 }
11786
11787 func (s *ProductDimension) UnmarshalJSON(data []byte) error {
11788 type NoMethod ProductDimension
11789 var s1 struct {
11790 Value gensupport.JSONFloat64 `json:"value"`
11791 *NoMethod
11792 }
11793 s1.NoMethod = (*NoMethod)(s)
11794 if err := json.Unmarshal(data, &s1); err != nil {
11795 return err
11796 }
11797 s.Value = float64(s1.Value)
11798 return nil
11799 }
11800
11801
11802 type ProductId struct {
11803
11804
11805 ProductId string `json:"productId,omitempty"`
11806
11807
11808
11809
11810
11811 ForceSendFields []string `json:"-"`
11812
11813
11814
11815
11816 NullFields []string `json:"-"`
11817 }
11818
11819 func (s *ProductId) MarshalJSON() ([]byte, error) {
11820 type NoMethod ProductId
11821 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11822 }
11823
11824
11825 type ProductIssue struct {
11826
11827
11828
11829
11830
11831 Actions []*Action `json:"actions,omitempty"`
11832
11833
11834
11835
11836
11837
11838
11839
11840 Impact *ProductIssueImpact `json:"impact,omitempty"`
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880 PrerenderedContent string `json:"prerenderedContent,omitempty"`
11881
11882 Title string `json:"title,omitempty"`
11883
11884
11885
11886
11887
11888 ForceSendFields []string `json:"-"`
11889
11890
11891
11892
11893 NullFields []string `json:"-"`
11894 }
11895
11896 func (s *ProductIssue) MarshalJSON() ([]byte, error) {
11897 type NoMethod ProductIssue
11898 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11899 }
11900
11901
11902 type ProductIssueImpact struct {
11903
11904
11905
11906
11907
11908 Breakdowns []*Breakdown `json:"breakdowns,omitempty"`
11909
11910
11911
11912 Message string `json:"message,omitempty"`
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925 Severity string `json:"severity,omitempty"`
11926
11927
11928
11929
11930
11931 ForceSendFields []string `json:"-"`
11932
11933
11934
11935
11936 NullFields []string `json:"-"`
11937 }
11938
11939 func (s *ProductIssueImpact) MarshalJSON() ([]byte, error) {
11940 type NoMethod ProductIssueImpact
11941 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11942 }
11943
11944 type ProductProductDetail struct {
11945
11946 AttributeName string `json:"attributeName,omitempty"`
11947
11948 AttributeValue string `json:"attributeValue,omitempty"`
11949
11950 SectionName string `json:"sectionName,omitempty"`
11951
11952
11953
11954
11955
11956 ForceSendFields []string `json:"-"`
11957
11958
11959
11960
11961 NullFields []string `json:"-"`
11962 }
11963
11964 func (s *ProductProductDetail) MarshalJSON() ([]byte, error) {
11965 type NoMethod ProductProductDetail
11966 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11967 }
11968
11969 type ProductShipping struct {
11970
11971 Country string `json:"country,omitempty"`
11972
11973
11974 LocationGroupName string `json:"locationGroupName,omitempty"`
11975
11976
11977 LocationId int64 `json:"locationId,omitempty,string"`
11978
11979
11980
11981
11982
11983 MaxHandlingTime int64 `json:"maxHandlingTime,omitempty,string"`
11984
11985
11986
11987
11988 MaxTransitTime int64 `json:"maxTransitTime,omitempty,string"`
11989
11990
11991
11992
11993
11994 MinHandlingTime int64 `json:"minHandlingTime,omitempty,string"`
11995
11996
11997
11998
11999
12000 MinTransitTime int64 `json:"minTransitTime,omitempty,string"`
12001
12002
12003
12004
12005 PostalCode string `json:"postalCode,omitempty"`
12006
12007 Price *Price `json:"price,omitempty"`
12008
12009 Region string `json:"region,omitempty"`
12010
12011 Service string `json:"service,omitempty"`
12012
12013
12014
12015
12016
12017 ForceSendFields []string `json:"-"`
12018
12019
12020
12021
12022 NullFields []string `json:"-"`
12023 }
12024
12025 func (s *ProductShipping) MarshalJSON() ([]byte, error) {
12026 type NoMethod ProductShipping
12027 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12028 }
12029
12030 type ProductShippingDimension struct {
12031
12032 Unit string `json:"unit,omitempty"`
12033
12034
12035 Value float64 `json:"value,omitempty"`
12036
12037
12038
12039
12040
12041 ForceSendFields []string `json:"-"`
12042
12043
12044
12045
12046 NullFields []string `json:"-"`
12047 }
12048
12049 func (s *ProductShippingDimension) MarshalJSON() ([]byte, error) {
12050 type NoMethod ProductShippingDimension
12051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12052 }
12053
12054 func (s *ProductShippingDimension) UnmarshalJSON(data []byte) error {
12055 type NoMethod ProductShippingDimension
12056 var s1 struct {
12057 Value gensupport.JSONFloat64 `json:"value"`
12058 *NoMethod
12059 }
12060 s1.NoMethod = (*NoMethod)(s)
12061 if err := json.Unmarshal(data, &s1); err != nil {
12062 return err
12063 }
12064 s.Value = float64(s1.Value)
12065 return nil
12066 }
12067
12068 type ProductShippingWeight struct {
12069
12070 Unit string `json:"unit,omitempty"`
12071
12072
12073 Value float64 `json:"value,omitempty"`
12074
12075
12076
12077
12078
12079 ForceSendFields []string `json:"-"`
12080
12081
12082
12083
12084 NullFields []string `json:"-"`
12085 }
12086
12087 func (s *ProductShippingWeight) MarshalJSON() ([]byte, error) {
12088 type NoMethod ProductShippingWeight
12089 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12090 }
12091
12092 func (s *ProductShippingWeight) UnmarshalJSON(data []byte) error {
12093 type NoMethod ProductShippingWeight
12094 var s1 struct {
12095 Value gensupport.JSONFloat64 `json:"value"`
12096 *NoMethod
12097 }
12098 s1.NoMethod = (*NoMethod)(s)
12099 if err := json.Unmarshal(data, &s1); err != nil {
12100 return err
12101 }
12102 s.Value = float64(s1.Value)
12103 return nil
12104 }
12105
12106
12107
12108 type ProductStatus struct {
12109
12110 CreationDate string `json:"creationDate,omitempty"`
12111
12112 DestinationStatuses []*ProductStatusDestinationStatus `json:"destinationStatuses,omitempty"`
12113
12114
12115 GoogleExpirationDate string `json:"googleExpirationDate,omitempty"`
12116
12117 ItemLevelIssues []*ProductStatusItemLevelIssue `json:"itemLevelIssues,omitempty"`
12118
12119
12120 Kind string `json:"kind,omitempty"`
12121
12122
12123 LastUpdateDate string `json:"lastUpdateDate,omitempty"`
12124
12125 Link string `json:"link,omitempty"`
12126
12127 ProductId string `json:"productId,omitempty"`
12128
12129 Title string `json:"title,omitempty"`
12130
12131
12132 googleapi.ServerResponse `json:"-"`
12133
12134
12135
12136
12137
12138 ForceSendFields []string `json:"-"`
12139
12140
12141
12142
12143 NullFields []string `json:"-"`
12144 }
12145
12146 func (s *ProductStatus) MarshalJSON() ([]byte, error) {
12147 type NoMethod ProductStatus
12148 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12149 }
12150
12151 type ProductStatusDestinationStatus struct {
12152
12153
12154 ApprovedCountries []string `json:"approvedCountries,omitempty"`
12155
12156 Destination string `json:"destination,omitempty"`
12157
12158
12159 DisapprovedCountries []string `json:"disapprovedCountries,omitempty"`
12160
12161
12162 PendingCountries []string `json:"pendingCountries,omitempty"`
12163
12164
12165 Status string `json:"status,omitempty"`
12166
12167
12168
12169
12170
12171 ForceSendFields []string `json:"-"`
12172
12173
12174
12175
12176 NullFields []string `json:"-"`
12177 }
12178
12179 func (s *ProductStatusDestinationStatus) MarshalJSON() ([]byte, error) {
12180 type NoMethod ProductStatusDestinationStatus
12181 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12182 }
12183
12184 type ProductStatusItemLevelIssue struct {
12185
12186
12187 ApplicableCountries []string `json:"applicableCountries,omitempty"`
12188
12189
12190 AttributeName string `json:"attributeName,omitempty"`
12191
12192 Code string `json:"code,omitempty"`
12193
12194 Description string `json:"description,omitempty"`
12195
12196 Destination string `json:"destination,omitempty"`
12197
12198 Detail string `json:"detail,omitempty"`
12199
12200 Documentation string `json:"documentation,omitempty"`
12201
12202 Resolution string `json:"resolution,omitempty"`
12203
12204 Servability string `json:"servability,omitempty"`
12205
12206
12207
12208
12209
12210 ForceSendFields []string `json:"-"`
12211
12212
12213
12214
12215 NullFields []string `json:"-"`
12216 }
12217
12218 func (s *ProductStatusItemLevelIssue) MarshalJSON() ([]byte, error) {
12219 type NoMethod ProductStatusItemLevelIssue
12220 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12221 }
12222
12223
12224
12225
12226
12227 type ProductStructuredDescription struct {
12228
12229 Content string `json:"content,omitempty"`
12230
12231
12232 DigitalSourceType string `json:"digitalSourceType,omitempty"`
12233
12234
12235
12236
12237
12238 ForceSendFields []string `json:"-"`
12239
12240
12241
12242
12243 NullFields []string `json:"-"`
12244 }
12245
12246 func (s *ProductStructuredDescription) MarshalJSON() ([]byte, error) {
12247 type NoMethod ProductStructuredDescription
12248 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12249 }
12250
12251
12252
12253
12254
12255 type ProductStructuredTitle struct {
12256
12257 Content string `json:"content,omitempty"`
12258
12259
12260 DigitalSourceType string `json:"digitalSourceType,omitempty"`
12261
12262
12263
12264
12265
12266 ForceSendFields []string `json:"-"`
12267
12268
12269
12270
12271 NullFields []string `json:"-"`
12272 }
12273
12274 func (s *ProductStructuredTitle) MarshalJSON() ([]byte, error) {
12275 type NoMethod ProductStructuredTitle
12276 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12277 }
12278
12279 type ProductSubscriptionCost struct {
12280
12281 Amount *Price `json:"amount,omitempty"`
12282
12283 Period string `json:"period,omitempty"`
12284
12285 PeriodLength int64 `json:"periodLength,omitempty,string"`
12286
12287
12288
12289
12290
12291 ForceSendFields []string `json:"-"`
12292
12293
12294
12295
12296 NullFields []string `json:"-"`
12297 }
12298
12299 func (s *ProductSubscriptionCost) MarshalJSON() ([]byte, error) {
12300 type NoMethod ProductSubscriptionCost
12301 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12302 }
12303
12304 type ProductTax struct {
12305
12306
12307 Country string `json:"country,omitempty"`
12308
12309
12310 LocationId int64 `json:"locationId,omitempty,string"`
12311
12312
12313
12314
12315 PostalCode string `json:"postalCode,omitempty"`
12316
12317 Rate float64 `json:"rate,omitempty"`
12318
12319 Region string `json:"region,omitempty"`
12320
12321 TaxShip bool `json:"taxShip,omitempty"`
12322
12323
12324
12325
12326
12327 ForceSendFields []string `json:"-"`
12328
12329
12330
12331
12332 NullFields []string `json:"-"`
12333 }
12334
12335 func (s *ProductTax) MarshalJSON() ([]byte, error) {
12336 type NoMethod ProductTax
12337 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12338 }
12339
12340 func (s *ProductTax) UnmarshalJSON(data []byte) error {
12341 type NoMethod ProductTax
12342 var s1 struct {
12343 Rate gensupport.JSONFloat64 `json:"rate"`
12344 *NoMethod
12345 }
12346 s1.NoMethod = (*NoMethod)(s)
12347 if err := json.Unmarshal(data, &s1); err != nil {
12348 return err
12349 }
12350 s.Rate = float64(s1.Rate)
12351 return nil
12352 }
12353
12354 type ProductUnitPricingBaseMeasure struct {
12355
12356 Unit string `json:"unit,omitempty"`
12357
12358 Value int64 `json:"value,omitempty,string"`
12359
12360
12361
12362
12363
12364 ForceSendFields []string `json:"-"`
12365
12366
12367
12368
12369 NullFields []string `json:"-"`
12370 }
12371
12372 func (s *ProductUnitPricingBaseMeasure) MarshalJSON() ([]byte, error) {
12373 type NoMethod ProductUnitPricingBaseMeasure
12374 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12375 }
12376
12377 type ProductUnitPricingMeasure struct {
12378
12379 Unit string `json:"unit,omitempty"`
12380
12381 Value float64 `json:"value,omitempty"`
12382
12383
12384
12385
12386
12387 ForceSendFields []string `json:"-"`
12388
12389
12390
12391
12392 NullFields []string `json:"-"`
12393 }
12394
12395 func (s *ProductUnitPricingMeasure) MarshalJSON() ([]byte, error) {
12396 type NoMethod ProductUnitPricingMeasure
12397 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12398 }
12399
12400 func (s *ProductUnitPricingMeasure) UnmarshalJSON(data []byte) error {
12401 type NoMethod ProductUnitPricingMeasure
12402 var s1 struct {
12403 Value gensupport.JSONFloat64 `json:"value"`
12404 *NoMethod
12405 }
12406 s1.NoMethod = (*NoMethod)(s)
12407 if err := json.Unmarshal(data, &s1); err != nil {
12408 return err
12409 }
12410 s.Value = float64(s1.Value)
12411 return nil
12412 }
12413
12414
12415
12416 type ProductView struct {
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427 AggregatedDestinationStatus string `json:"aggregatedDestinationStatus,omitempty"`
12428
12429 Availability string `json:"availability,omitempty"`
12430
12431 Brand string `json:"brand,omitempty"`
12432
12433
12434 CategoryL1 string `json:"categoryL1,omitempty"`
12435
12436
12437 CategoryL2 string `json:"categoryL2,omitempty"`
12438
12439
12440 CategoryL3 string `json:"categoryL3,omitempty"`
12441
12442
12443 CategoryL4 string `json:"categoryL4,omitempty"`
12444
12445
12446 CategoryL5 string `json:"categoryL5,omitempty"`
12447
12448
12449
12450
12451
12452
12453 Channel string `json:"channel,omitempty"`
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465 ClickPotential string `json:"clickPotential,omitempty"`
12466
12467
12468
12469 ClickPotentialRank int64 `json:"clickPotentialRank,omitempty,string"`
12470
12471 Condition string `json:"condition,omitempty"`
12472
12473
12474 CreationTime string `json:"creationTime,omitempty"`
12475
12476
12477 CurrencyCode string `json:"currencyCode,omitempty"`
12478
12479 ExpirationDate *Date `json:"expirationDate,omitempty"`
12480
12481 Gtin []string `json:"gtin,omitempty"`
12482
12483
12484
12485
12486 Id string `json:"id,omitempty"`
12487
12488
12489 ItemGroupId string `json:"itemGroupId,omitempty"`
12490
12491 ItemIssues []*ProductViewItemIssue `json:"itemIssues,omitempty"`
12492
12493 LanguageCode string `json:"languageCode,omitempty"`
12494
12495 OfferId string `json:"offerId,omitempty"`
12496
12497
12498
12499 PriceMicros int64 `json:"priceMicros,omitempty,string"`
12500
12501
12502 ProductTypeL1 string `json:"productTypeL1,omitempty"`
12503
12504
12505 ProductTypeL2 string `json:"productTypeL2,omitempty"`
12506
12507
12508 ProductTypeL3 string `json:"productTypeL3,omitempty"`
12509
12510
12511 ProductTypeL4 string `json:"productTypeL4,omitempty"`
12512
12513
12514 ProductTypeL5 string `json:"productTypeL5,omitempty"`
12515
12516 ShippingLabel string `json:"shippingLabel,omitempty"`
12517
12518 Title string `json:"title,omitempty"`
12519
12520
12521
12522
12523
12524 ForceSendFields []string `json:"-"`
12525
12526
12527
12528
12529 NullFields []string `json:"-"`
12530 }
12531
12532 func (s *ProductView) MarshalJSON() ([]byte, error) {
12533 type NoMethod ProductView
12534 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12535 }
12536
12537
12538 type ProductViewItemIssue struct {
12539
12540 IssueType *ProductViewItemIssueItemIssueType `json:"issueType,omitempty"`
12541
12542
12543
12544
12545
12546
12547
12548
12549 Resolution string `json:"resolution,omitempty"`
12550
12551 Severity *ProductViewItemIssueItemIssueSeverity `json:"severity,omitempty"`
12552
12553
12554
12555
12556
12557 ForceSendFields []string `json:"-"`
12558
12559
12560
12561
12562 NullFields []string `json:"-"`
12563 }
12564
12565 func (s *ProductViewItemIssue) MarshalJSON() ([]byte, error) {
12566 type NoMethod ProductViewItemIssue
12567 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12568 }
12569
12570
12571
12572 type ProductViewItemIssueIssueSeverityPerDestination struct {
12573
12574 DemotedCountries []string `json:"demotedCountries,omitempty"`
12575
12576 Destination string `json:"destination,omitempty"`
12577
12578 DisapprovedCountries []string `json:"disapprovedCountries,omitempty"`
12579
12580
12581
12582
12583
12584 ForceSendFields []string `json:"-"`
12585
12586
12587
12588
12589 NullFields []string `json:"-"`
12590 }
12591
12592 func (s *ProductViewItemIssueIssueSeverityPerDestination) MarshalJSON() ([]byte, error) {
12593 type NoMethod ProductViewItemIssueIssueSeverityPerDestination
12594 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12595 }
12596
12597
12598
12599 type ProductViewItemIssueItemIssueSeverity struct {
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609 AggregatedSeverity string `json:"aggregatedSeverity,omitempty"`
12610
12611 SeverityPerDestination []*ProductViewItemIssueIssueSeverityPerDestination `json:"severityPerDestination,omitempty"`
12612
12613
12614
12615
12616
12617 ForceSendFields []string `json:"-"`
12618
12619
12620
12621
12622 NullFields []string `json:"-"`
12623 }
12624
12625 func (s *ProductViewItemIssueItemIssueSeverity) MarshalJSON() ([]byte, error) {
12626 type NoMethod ProductViewItemIssueItemIssueSeverity
12627 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12628 }
12629
12630
12631 type ProductViewItemIssueItemIssueType struct {
12632
12633 CanonicalAttribute string `json:"canonicalAttribute,omitempty"`
12634
12635 Code string `json:"code,omitempty"`
12636
12637
12638
12639
12640
12641 ForceSendFields []string `json:"-"`
12642
12643
12644
12645
12646 NullFields []string `json:"-"`
12647 }
12648
12649 func (s *ProductViewItemIssueItemIssueType) MarshalJSON() ([]byte, error) {
12650 type NoMethod ProductViewItemIssueItemIssueType
12651 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12652 }
12653
12654 type ProductWeight struct {
12655
12656
12657 Unit string `json:"unit,omitempty"`
12658
12659
12660 Value float64 `json:"value,omitempty"`
12661
12662
12663
12664
12665
12666 ForceSendFields []string `json:"-"`
12667
12668
12669
12670
12671 NullFields []string `json:"-"`
12672 }
12673
12674 func (s *ProductWeight) MarshalJSON() ([]byte, error) {
12675 type NoMethod ProductWeight
12676 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12677 }
12678
12679 func (s *ProductWeight) UnmarshalJSON(data []byte) error {
12680 type NoMethod ProductWeight
12681 var s1 struct {
12682 Value gensupport.JSONFloat64 `json:"value"`
12683 *NoMethod
12684 }
12685 s1.NoMethod = (*NoMethod)(s)
12686 if err := json.Unmarshal(data, &s1); err != nil {
12687 return err
12688 }
12689 s.Value = float64(s1.Value)
12690 return nil
12691 }
12692
12693 type ProductsCustomBatchRequest struct {
12694
12695 Entries []*ProductsCustomBatchRequestEntry `json:"entries,omitempty"`
12696
12697
12698
12699
12700
12701 ForceSendFields []string `json:"-"`
12702
12703
12704
12705
12706 NullFields []string `json:"-"`
12707 }
12708
12709 func (s *ProductsCustomBatchRequest) MarshalJSON() ([]byte, error) {
12710 type NoMethod ProductsCustomBatchRequest
12711 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12712 }
12713
12714
12715
12716 type ProductsCustomBatchRequestEntry struct {
12717
12718 BatchId int64 `json:"batchId,omitempty"`
12719
12720
12721
12722 FeedId uint64 `json:"feedId,omitempty,string"`
12723
12724 MerchantId uint64 `json:"merchantId,omitempty,string"`
12725
12726
12727 Method string `json:"method,omitempty"`
12728
12729
12730
12731
12732
12733
12734 Product *Product `json:"product,omitempty"`
12735
12736
12737 ProductId string `json:"productId,omitempty"`
12738
12739
12740
12741
12742
12743
12744
12745 UpdateMask string `json:"updateMask,omitempty"`
12746
12747
12748
12749
12750
12751 ForceSendFields []string `json:"-"`
12752
12753
12754
12755
12756 NullFields []string `json:"-"`
12757 }
12758
12759 func (s *ProductsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
12760 type NoMethod ProductsCustomBatchRequestEntry
12761 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12762 }
12763
12764 type ProductsCustomBatchResponse struct {
12765
12766 Entries []*ProductsCustomBatchResponseEntry `json:"entries,omitempty"`
12767
12768
12769 Kind string `json:"kind,omitempty"`
12770
12771
12772 googleapi.ServerResponse `json:"-"`
12773
12774
12775
12776
12777
12778 ForceSendFields []string `json:"-"`
12779
12780
12781
12782
12783 NullFields []string `json:"-"`
12784 }
12785
12786 func (s *ProductsCustomBatchResponse) MarshalJSON() ([]byte, error) {
12787 type NoMethod ProductsCustomBatchResponse
12788 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12789 }
12790
12791
12792
12793 type ProductsCustomBatchResponseEntry struct {
12794
12795 BatchId int64 `json:"batchId,omitempty"`
12796
12797
12798 Errors *Errors `json:"errors,omitempty"`
12799
12800
12801 Kind string `json:"kind,omitempty"`
12802
12803
12804 Product *Product `json:"product,omitempty"`
12805
12806
12807
12808
12809
12810 ForceSendFields []string `json:"-"`
12811
12812
12813
12814
12815 NullFields []string `json:"-"`
12816 }
12817
12818 func (s *ProductsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
12819 type NoMethod ProductsCustomBatchResponseEntry
12820 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12821 }
12822
12823 type ProductsListResponse struct {
12824
12825
12826 Kind string `json:"kind,omitempty"`
12827
12828 NextPageToken string `json:"nextPageToken,omitempty"`
12829 Resources []*Product `json:"resources,omitempty"`
12830
12831
12832 googleapi.ServerResponse `json:"-"`
12833
12834
12835
12836
12837
12838 ForceSendFields []string `json:"-"`
12839
12840
12841
12842
12843 NullFields []string `json:"-"`
12844 }
12845
12846 func (s *ProductsListResponse) MarshalJSON() ([]byte, error) {
12847 type NoMethod ProductsListResponse
12848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12849 }
12850
12851 type ProductstatusesCustomBatchRequest struct {
12852
12853 Entries []*ProductstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
12854
12855
12856
12857
12858
12859 ForceSendFields []string `json:"-"`
12860
12861
12862
12863
12864 NullFields []string `json:"-"`
12865 }
12866
12867 func (s *ProductstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) {
12868 type NoMethod ProductstatusesCustomBatchRequest
12869 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12870 }
12871
12872
12873
12874 type ProductstatusesCustomBatchRequestEntry struct {
12875
12876 BatchId int64 `json:"batchId,omitempty"`
12877
12878
12879 Destinations []string `json:"destinations,omitempty"`
12880
12881
12882 IncludeAttributes bool `json:"includeAttributes,omitempty"`
12883
12884 MerchantId uint64 `json:"merchantId,omitempty,string"`
12885
12886 Method string `json:"method,omitempty"`
12887
12888 ProductId string `json:"productId,omitempty"`
12889
12890
12891
12892
12893
12894 ForceSendFields []string `json:"-"`
12895
12896
12897
12898
12899 NullFields []string `json:"-"`
12900 }
12901
12902 func (s *ProductstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
12903 type NoMethod ProductstatusesCustomBatchRequestEntry
12904 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12905 }
12906
12907 type ProductstatusesCustomBatchResponse struct {
12908
12909 Entries []*ProductstatusesCustomBatchResponseEntry `json:"entries,omitempty"`
12910
12911
12912 Kind string `json:"kind,omitempty"`
12913
12914
12915 googleapi.ServerResponse `json:"-"`
12916
12917
12918
12919
12920
12921 ForceSendFields []string `json:"-"`
12922
12923
12924
12925
12926 NullFields []string `json:"-"`
12927 }
12928
12929 func (s *ProductstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) {
12930 type NoMethod ProductstatusesCustomBatchResponse
12931 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12932 }
12933
12934
12935
12936 type ProductstatusesCustomBatchResponseEntry struct {
12937
12938 BatchId int64 `json:"batchId,omitempty"`
12939
12940
12941 Errors *Errors `json:"errors,omitempty"`
12942
12943
12944 Kind string `json:"kind,omitempty"`
12945
12946
12947 ProductStatus *ProductStatus `json:"productStatus,omitempty"`
12948
12949
12950
12951
12952
12953 ForceSendFields []string `json:"-"`
12954
12955
12956
12957
12958 NullFields []string `json:"-"`
12959 }
12960
12961 func (s *ProductstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
12962 type NoMethod ProductstatusesCustomBatchResponseEntry
12963 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12964 }
12965
12966 type ProductstatusesListResponse struct {
12967
12968
12969 Kind string `json:"kind,omitempty"`
12970
12971
12972 NextPageToken string `json:"nextPageToken,omitempty"`
12973 Resources []*ProductStatus `json:"resources,omitempty"`
12974
12975
12976 googleapi.ServerResponse `json:"-"`
12977
12978
12979
12980
12981
12982 ForceSendFields []string `json:"-"`
12983
12984
12985
12986
12987 NullFields []string `json:"-"`
12988 }
12989
12990 func (s *ProductstatusesListResponse) MarshalJSON() ([]byte, error) {
12991 type NoMethod ProductstatusesListResponse
12992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12993 }
12994
12995
12996
12997
12998
12999
13000
13001 type Promotion struct {
13002
13003 Brand []string `json:"brand,omitempty"`
13004
13005 BrandExclusion []string `json:"brandExclusion,omitempty"`
13006
13007
13008
13009
13010
13011
13012
13013
13014 ContentLanguage string `json:"contentLanguage,omitempty"`
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039 CouponValueType string `json:"couponValueType,omitempty"`
13040
13041 FreeGiftDescription string `json:"freeGiftDescription,omitempty"`
13042
13043 FreeGiftItemId string `json:"freeGiftItemId,omitempty"`
13044
13045 FreeGiftValue *PriceAmount `json:"freeGiftValue,omitempty"`
13046
13047
13048 GenericRedemptionCode string `json:"genericRedemptionCode,omitempty"`
13049
13050 GetThisQuantityDiscounted int64 `json:"getThisQuantityDiscounted,omitempty"`
13051
13052
13053
13054
13055
13056 Id string `json:"id,omitempty"`
13057
13058 ItemGroupId []string `json:"itemGroupId,omitempty"`
13059
13060
13061 ItemGroupIdExclusion []string `json:"itemGroupIdExclusion,omitempty"`
13062
13063 ItemId []string `json:"itemId,omitempty"`
13064
13065 ItemIdExclusion []string `json:"itemIdExclusion,omitempty"`
13066
13067 LimitQuantity int64 `json:"limitQuantity,omitempty"`
13068
13069 LimitValue *PriceAmount `json:"limitValue,omitempty"`
13070
13071 LongTitle string `json:"longTitle,omitempty"`
13072
13073 MinimumPurchaseAmount *PriceAmount `json:"minimumPurchaseAmount,omitempty"`
13074
13075 MinimumPurchaseQuantity int64 `json:"minimumPurchaseQuantity,omitempty"`
13076
13077 MoneyBudget *PriceAmount `json:"moneyBudget,omitempty"`
13078
13079 MoneyOffAmount *PriceAmount `json:"moneyOffAmount,omitempty"`
13080
13081
13082
13083
13084
13085
13086 OfferType string `json:"offerType,omitempty"`
13087
13088 OrderLimit int64 `json:"orderLimit,omitempty"`
13089
13090 PercentOff int64 `json:"percentOff,omitempty"`
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100 ProductApplicability string `json:"productApplicability,omitempty"`
13101
13102 ProductType []string `json:"productType,omitempty"`
13103
13104
13105 ProductTypeExclusion []string `json:"productTypeExclusion,omitempty"`
13106
13107 PromotionDestinationIds []string `json:"promotionDestinationIds,omitempty"`
13108
13109
13110 PromotionDisplayDates string `json:"promotionDisplayDates,omitempty"`
13111
13112
13113 PromotionDisplayTimePeriod *TimePeriod `json:"promotionDisplayTimePeriod,omitempty"`
13114
13115
13116 PromotionEffectiveDates string `json:"promotionEffectiveDates,omitempty"`
13117
13118
13119 PromotionEffectiveTimePeriod *TimePeriod `json:"promotionEffectiveTimePeriod,omitempty"`
13120
13121
13122 PromotionId string `json:"promotionId,omitempty"`
13123
13124 PromotionStatus *PromotionPromotionStatus `json:"promotionStatus,omitempty"`
13125
13126
13127
13128
13129 PromotionUrl string `json:"promotionUrl,omitempty"`
13130
13131
13132
13133
13134
13135
13136
13137
13138 RedemptionChannel []string `json:"redemptionChannel,omitempty"`
13139
13140 ShippingServiceNames []string `json:"shippingServiceNames,omitempty"`
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152 StoreApplicability string `json:"storeApplicability,omitempty"`
13153
13154 StoreCode []string `json:"storeCode,omitempty"`
13155
13156 StoreCodeExclusion []string `json:"storeCodeExclusion,omitempty"`
13157
13158
13159
13160 TargetCountry string `json:"targetCountry,omitempty"`
13161
13162
13163 googleapi.ServerResponse `json:"-"`
13164
13165
13166
13167
13168
13169 ForceSendFields []string `json:"-"`
13170
13171
13172
13173
13174 NullFields []string `json:"-"`
13175 }
13176
13177 func (s *Promotion) MarshalJSON() ([]byte, error) {
13178 type NoMethod Promotion
13179 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13180 }
13181
13182
13183 type PromotionPromotionStatus struct {
13184
13185
13186
13187 CreationDate string `json:"creationDate,omitempty"`
13188
13189 DestinationStatuses []*PromotionPromotionStatusDestinationStatus `json:"destinationStatuses,omitempty"`
13190
13191
13192
13193 LastUpdateDate string `json:"lastUpdateDate,omitempty"`
13194
13195 PromotionIssue []*PromotionPromotionStatusPromotionIssue `json:"promotionIssue,omitempty"`
13196
13197
13198
13199
13200
13201 ForceSendFields []string `json:"-"`
13202
13203
13204
13205
13206 NullFields []string `json:"-"`
13207 }
13208
13209 func (s *PromotionPromotionStatus) MarshalJSON() ([]byte, error) {
13210 type NoMethod PromotionPromotionStatus
13211 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13212 }
13213
13214
13215
13216 type PromotionPromotionStatusDestinationStatus struct {
13217
13218 Destination string `json:"destination,omitempty"`
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230 Status string `json:"status,omitempty"`
13231
13232
13233
13234
13235
13236 ForceSendFields []string `json:"-"`
13237
13238
13239
13240
13241 NullFields []string `json:"-"`
13242 }
13243
13244 func (s *PromotionPromotionStatusDestinationStatus) MarshalJSON() ([]byte, error) {
13245 type NoMethod PromotionPromotionStatusDestinationStatus
13246 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13247 }
13248
13249
13250
13251 type PromotionPromotionStatusPromotionIssue struct {
13252
13253 Code string `json:"code,omitempty"`
13254
13255 Detail string `json:"detail,omitempty"`
13256
13257
13258
13259
13260
13261 ForceSendFields []string `json:"-"`
13262
13263
13264
13265
13266 NullFields []string `json:"-"`
13267 }
13268
13269 func (s *PromotionPromotionStatusPromotionIssue) MarshalJSON() ([]byte, error) {
13270 type NoMethod PromotionPromotionStatusPromotionIssue
13271 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13272 }
13273
13274
13275
13276 type PubsubNotificationSettings struct {
13277
13278
13279 CloudTopicName string `json:"cloudTopicName,omitempty"`
13280
13281
13282 Kind string `json:"kind,omitempty"`
13283
13284
13285 RegisteredEvents []string `json:"registeredEvents,omitempty"`
13286
13287
13288 googleapi.ServerResponse `json:"-"`
13289
13290
13291
13292
13293
13294 ForceSendFields []string `json:"-"`
13295
13296
13297
13298
13299 NullFields []string `json:"-"`
13300 }
13301
13302 func (s *PubsubNotificationSettings) MarshalJSON() ([]byte, error) {
13303 type NoMethod PubsubNotificationSettings
13304 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13305 }
13306
13307 type RateGroup struct {
13308
13309
13310
13311
13312 ApplicableShippingLabels []string `json:"applicableShippingLabels,omitempty"`
13313
13314
13315 CarrierRates []*CarrierRate `json:"carrierRates,omitempty"`
13316
13317
13318 MainTable *Table `json:"mainTable,omitempty"`
13319
13320
13321 Name string `json:"name,omitempty"`
13322
13323
13324 SingleValue *Value `json:"singleValue,omitempty"`
13325
13326
13327 Subtables []*Table `json:"subtables,omitempty"`
13328
13329
13330
13331
13332
13333 ForceSendFields []string `json:"-"`
13334
13335
13336
13337
13338 NullFields []string `json:"-"`
13339 }
13340
13341 func (s *RateGroup) MarshalJSON() ([]byte, error) {
13342 type NoMethod RateGroup
13343 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13344 }
13345
13346
13347
13348
13349 type Recommendation struct {
13350
13351 AdditionalCallToAction []*RecommendationCallToAction `json:"additionalCallToAction,omitempty"`
13352
13353
13354
13355
13356 AdditionalDescriptions []*RecommendationDescription `json:"additionalDescriptions,omitempty"`
13357
13358
13359 Creative []*RecommendationCreative `json:"creative,omitempty"`
13360
13361 DefaultCallToAction *RecommendationCallToAction `json:"defaultCallToAction,omitempty"`
13362
13363
13364
13365 DefaultDescription string `json:"defaultDescription,omitempty"`
13366
13367
13368
13369
13370 NumericalImpact int64 `json:"numericalImpact,omitempty"`
13371
13372
13373 Paid bool `json:"paid,omitempty"`
13374
13375
13376
13377 RecommendationName string `json:"recommendationName,omitempty"`
13378
13379
13380
13381 SubType string `json:"subType,omitempty"`
13382
13383
13384
13385 Title string `json:"title,omitempty"`
13386
13387
13388
13389 Type string `json:"type,omitempty"`
13390
13391
13392
13393
13394
13395 ForceSendFields []string `json:"-"`
13396
13397
13398
13399
13400 NullFields []string `json:"-"`
13401 }
13402
13403 func (s *Recommendation) MarshalJSON() ([]byte, error) {
13404 type NoMethod Recommendation
13405 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13406 }
13407
13408
13409
13410 type RecommendationCallToAction struct {
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420 Intent string `json:"intent,omitempty"`
13421
13422 LocalizedText string `json:"localizedText,omitempty"`
13423
13424
13425
13426
13427
13428 Uri string `json:"uri,omitempty"`
13429
13430
13431
13432
13433
13434 ForceSendFields []string `json:"-"`
13435
13436
13437
13438
13439 NullFields []string `json:"-"`
13440 }
13441
13442 func (s *RecommendationCallToAction) MarshalJSON() ([]byte, error) {
13443 type NoMethod RecommendationCallToAction
13444 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13445 }
13446
13447
13448
13449 type RecommendationCreative struct {
13450
13451
13452
13453
13454
13455
13456
13457 Type string `json:"type,omitempty"`
13458
13459 Uri string `json:"uri,omitempty"`
13460
13461
13462
13463
13464
13465 ForceSendFields []string `json:"-"`
13466
13467
13468
13469
13470 NullFields []string `json:"-"`
13471 }
13472
13473 func (s *RecommendationCreative) MarshalJSON() ([]byte, error) {
13474 type NoMethod RecommendationCreative
13475 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13476 }
13477
13478
13479
13480 type RecommendationDescription struct {
13481
13482 Text string `json:"text,omitempty"`
13483
13484
13485
13486
13487
13488
13489
13490 Type string `json:"type,omitempty"`
13491
13492
13493
13494
13495
13496 ForceSendFields []string `json:"-"`
13497
13498
13499
13500
13501 NullFields []string `json:"-"`
13502 }
13503
13504 func (s *RecommendationDescription) MarshalJSON() ([]byte, error) {
13505 type NoMethod RecommendationDescription
13506 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13507 }
13508
13509 type RefundReason struct {
13510
13511 Description string `json:"description,omitempty"`
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531 ReasonCode string `json:"reasonCode,omitempty"`
13532
13533
13534
13535
13536
13537 ForceSendFields []string `json:"-"`
13538
13539
13540
13541
13542 NullFields []string `json:"-"`
13543 }
13544
13545 func (s *RefundReason) MarshalJSON() ([]byte, error) {
13546 type NoMethod RefundReason
13547 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13548 }
13549
13550
13551
13552
13553
13554 type Region struct {
13555
13556 DisplayName string `json:"displayName,omitempty"`
13557
13558 GeotargetArea *RegionGeoTargetArea `json:"geotargetArea,omitempty"`
13559
13560 MerchantId int64 `json:"merchantId,omitempty,string"`
13561
13562 PostalCodeArea *RegionPostalCodeArea `json:"postalCodeArea,omitempty"`
13563
13564 RegionId string `json:"regionId,omitempty"`
13565
13566
13567 RegionalInventoryEligible bool `json:"regionalInventoryEligible,omitempty"`
13568
13569
13570 ShippingEligible bool `json:"shippingEligible,omitempty"`
13571
13572
13573 googleapi.ServerResponse `json:"-"`
13574
13575
13576
13577
13578
13579 ForceSendFields []string `json:"-"`
13580
13581
13582
13583
13584 NullFields []string `json:"-"`
13585 }
13586
13587 func (s *Region) MarshalJSON() ([]byte, error) {
13588 type NoMethod Region
13589 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13590 }
13591
13592
13593 type RegionGeoTargetArea struct {
13594
13595
13596
13597 GeotargetCriteriaIds googleapi.Int64s `json:"geotargetCriteriaIds,omitempty"`
13598
13599
13600
13601
13602
13603 ForceSendFields []string `json:"-"`
13604
13605
13606
13607
13608 NullFields []string `json:"-"`
13609 }
13610
13611 func (s *RegionGeoTargetArea) MarshalJSON() ([]byte, error) {
13612 type NoMethod RegionGeoTargetArea
13613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13614 }
13615
13616
13617
13618
13619 type RegionPostalCodeArea struct {
13620
13621 PostalCodes []*RegionPostalCodeAreaPostalCodeRange `json:"postalCodes,omitempty"`
13622
13623
13624 RegionCode string `json:"regionCode,omitempty"`
13625
13626
13627
13628
13629
13630 ForceSendFields []string `json:"-"`
13631
13632
13633
13634
13635 NullFields []string `json:"-"`
13636 }
13637
13638 func (s *RegionPostalCodeArea) MarshalJSON() ([]byte, error) {
13639 type NoMethod RegionPostalCodeArea
13640 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13641 }
13642
13643
13644
13645 type RegionPostalCodeAreaPostalCodeRange struct {
13646
13647
13648
13649 Begin string `json:"begin,omitempty"`
13650
13651
13652
13653
13654
13655
13656
13657 End string `json:"end,omitempty"`
13658
13659
13660
13661
13662
13663 ForceSendFields []string `json:"-"`
13664
13665
13666
13667
13668 NullFields []string `json:"-"`
13669 }
13670
13671 func (s *RegionPostalCodeAreaPostalCodeRange) MarshalJSON() ([]byte, error) {
13672 type NoMethod RegionPostalCodeAreaPostalCodeRange
13673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13674 }
13675
13676
13677
13678 type RegionalInventory struct {
13679
13680 Availability string `json:"availability,omitempty"`
13681
13682
13683
13684 CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"`
13685
13686
13687 Kind string `json:"kind,omitempty"`
13688
13689 Price *Price `json:"price,omitempty"`
13690
13691 RegionId string `json:"regionId,omitempty"`
13692
13693
13694 SalePrice *Price `json:"salePrice,omitempty"`
13695
13696
13697
13698 SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"`
13699
13700
13701 googleapi.ServerResponse `json:"-"`
13702
13703
13704
13705
13706
13707 ForceSendFields []string `json:"-"`
13708
13709
13710
13711
13712 NullFields []string `json:"-"`
13713 }
13714
13715 func (s *RegionalInventory) MarshalJSON() ([]byte, error) {
13716 type NoMethod RegionalInventory
13717 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13718 }
13719
13720 type RegionalinventoryCustomBatchRequest struct {
13721
13722 Entries []*RegionalinventoryCustomBatchRequestEntry `json:"entries,omitempty"`
13723
13724
13725
13726
13727
13728 ForceSendFields []string `json:"-"`
13729
13730
13731
13732
13733 NullFields []string `json:"-"`
13734 }
13735
13736 func (s *RegionalinventoryCustomBatchRequest) MarshalJSON() ([]byte, error) {
13737 type NoMethod RegionalinventoryCustomBatchRequest
13738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13739 }
13740
13741
13742
13743 type RegionalinventoryCustomBatchRequestEntry struct {
13744
13745 BatchId int64 `json:"batchId,omitempty"`
13746
13747 MerchantId uint64 `json:"merchantId,omitempty,string"`
13748
13749
13750 Method string `json:"method,omitempty"`
13751
13752 ProductId string `json:"productId,omitempty"`
13753
13754 RegionalInventory *RegionalInventory `json:"regionalInventory,omitempty"`
13755
13756
13757
13758
13759
13760 ForceSendFields []string `json:"-"`
13761
13762
13763
13764
13765 NullFields []string `json:"-"`
13766 }
13767
13768 func (s *RegionalinventoryCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
13769 type NoMethod RegionalinventoryCustomBatchRequestEntry
13770 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13771 }
13772
13773 type RegionalinventoryCustomBatchResponse struct {
13774
13775 Entries []*RegionalinventoryCustomBatchResponseEntry `json:"entries,omitempty"`
13776
13777
13778 Kind string `json:"kind,omitempty"`
13779
13780
13781 googleapi.ServerResponse `json:"-"`
13782
13783
13784
13785
13786
13787 ForceSendFields []string `json:"-"`
13788
13789
13790
13791
13792 NullFields []string `json:"-"`
13793 }
13794
13795 func (s *RegionalinventoryCustomBatchResponse) MarshalJSON() ([]byte, error) {
13796 type NoMethod RegionalinventoryCustomBatchResponse
13797 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13798 }
13799
13800
13801
13802 type RegionalinventoryCustomBatchResponseEntry struct {
13803
13804 BatchId int64 `json:"batchId,omitempty"`
13805
13806
13807 Errors *Errors `json:"errors,omitempty"`
13808
13809
13810 Kind string `json:"kind,omitempty"`
13811
13812 RegionalInventory *RegionalInventory `json:"regionalInventory,omitempty"`
13813
13814
13815
13816
13817
13818 ForceSendFields []string `json:"-"`
13819
13820
13821
13822
13823 NullFields []string `json:"-"`
13824 }
13825
13826 func (s *RegionalinventoryCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
13827 type NoMethod RegionalinventoryCustomBatchResponseEntry
13828 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13829 }
13830
13831
13832
13833 type RenderAccountIssuesRequestPayload struct {
13834
13835
13836
13837
13838
13839
13840
13841
13842 ContentOption string `json:"contentOption,omitempty"`
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859 UserInputActionOption string `json:"userInputActionOption,omitempty"`
13860
13861
13862
13863
13864
13865 ForceSendFields []string `json:"-"`
13866
13867
13868
13869
13870 NullFields []string `json:"-"`
13871 }
13872
13873 func (s *RenderAccountIssuesRequestPayload) MarshalJSON() ([]byte, error) {
13874 type NoMethod RenderAccountIssuesRequestPayload
13875 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13876 }
13877
13878
13879
13880 type RenderAccountIssuesResponse struct {
13881
13882
13883
13884
13885
13886 AlternateDisputeResolution *AlternateDisputeResolution `json:"alternateDisputeResolution,omitempty"`
13887
13888
13889
13890
13891 Issues []*AccountIssue `json:"issues,omitempty"`
13892
13893
13894 googleapi.ServerResponse `json:"-"`
13895
13896
13897
13898
13899
13900 ForceSendFields []string `json:"-"`
13901
13902
13903
13904
13905 NullFields []string `json:"-"`
13906 }
13907
13908 func (s *RenderAccountIssuesResponse) MarshalJSON() ([]byte, error) {
13909 type NoMethod RenderAccountIssuesResponse
13910 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13911 }
13912
13913
13914
13915 type RenderProductIssuesRequestPayload struct {
13916
13917
13918
13919
13920
13921
13922
13923
13924 ContentOption string `json:"contentOption,omitempty"`
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941 UserInputActionOption string `json:"userInputActionOption,omitempty"`
13942
13943
13944
13945
13946
13947 ForceSendFields []string `json:"-"`
13948
13949
13950
13951
13952 NullFields []string `json:"-"`
13953 }
13954
13955 func (s *RenderProductIssuesRequestPayload) MarshalJSON() ([]byte, error) {
13956 type NoMethod RenderProductIssuesRequestPayload
13957 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13958 }
13959
13960
13961
13962 type RenderProductIssuesResponse struct {
13963
13964
13965
13966
13967 AlternateDisputeResolution *AlternateDisputeResolution `json:"alternateDisputeResolution,omitempty"`
13968
13969
13970
13971
13972 Issues []*ProductIssue `json:"issues,omitempty"`
13973
13974
13975 googleapi.ServerResponse `json:"-"`
13976
13977
13978
13979
13980
13981 ForceSendFields []string `json:"-"`
13982
13983
13984
13985
13986 NullFields []string `json:"-"`
13987 }
13988
13989 func (s *RenderProductIssuesResponse) MarshalJSON() ([]byte, error) {
13990 type NoMethod RenderProductIssuesResponse
13991 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13992 }
13993
13994
13995
13996 type ReportInteractionRequest struct {
13997
13998
13999
14000
14001
14002
14003
14004
14005 InteractionType string `json:"interactionType,omitempty"`
14006
14007
14008 ResponseToken string `json:"responseToken,omitempty"`
14009
14010
14011
14012 Subtype string `json:"subtype,omitempty"`
14013
14014
14015
14016 Type string `json:"type,omitempty"`
14017
14018
14019
14020
14021
14022 ForceSendFields []string `json:"-"`
14023
14024
14025
14026
14027 NullFields []string `json:"-"`
14028 }
14029
14030 func (s *ReportInteractionRequest) MarshalJSON() ([]byte, error) {
14031 type NoMethod ReportInteractionRequest
14032 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14033 }
14034
14035
14036 type ReportRow struct {
14037
14038
14039
14040 BestSellers *BestSellers `json:"bestSellers,omitempty"`
14041
14042
14043 Brand *Brand `json:"brand,omitempty"`
14044
14045
14046
14047
14048 CompetitiveVisibility *CompetitiveVisibility `json:"competitiveVisibility,omitempty"`
14049
14050
14051 Metrics *Metrics `json:"metrics,omitempty"`
14052
14053
14054
14055 PriceCompetitiveness *PriceCompetitiveness `json:"priceCompetitiveness,omitempty"`
14056
14057
14058
14059 PriceInsights *PriceInsights `json:"priceInsights,omitempty"`
14060
14061
14062
14063 ProductCluster *ProductCluster `json:"productCluster,omitempty"`
14064
14065
14066 ProductView *ProductView `json:"productView,omitempty"`
14067
14068
14069
14070 Segments *Segments `json:"segments,omitempty"`
14071
14072
14073
14074
14075 TopicTrends *TopicTrends `json:"topicTrends,omitempty"`
14076
14077
14078
14079
14080
14081 ForceSendFields []string `json:"-"`
14082
14083
14084
14085
14086 NullFields []string `json:"-"`
14087 }
14088
14089 func (s *ReportRow) MarshalJSON() ([]byte, error) {
14090 type NoMethod ReportRow
14091 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14092 }
14093
14094
14095
14096 type RequestPhoneVerificationRequest struct {
14097
14098
14099
14100
14101 LanguageCode string `json:"languageCode,omitempty"`
14102
14103 PhoneNumber string `json:"phoneNumber,omitempty"`
14104
14105
14106
14107
14108 PhoneRegionCode string `json:"phoneRegionCode,omitempty"`
14109
14110
14111
14112
14113
14114
14115 PhoneVerificationMethod string `json:"phoneVerificationMethod,omitempty"`
14116
14117
14118
14119
14120
14121 ForceSendFields []string `json:"-"`
14122
14123
14124
14125
14126 NullFields []string `json:"-"`
14127 }
14128
14129 func (s *RequestPhoneVerificationRequest) MarshalJSON() ([]byte, error) {
14130 type NoMethod RequestPhoneVerificationRequest
14131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14132 }
14133
14134
14135
14136 type RequestPhoneVerificationResponse struct {
14137
14138
14139 VerificationId string `json:"verificationId,omitempty"`
14140
14141
14142 googleapi.ServerResponse `json:"-"`
14143
14144
14145
14146
14147
14148 ForceSendFields []string `json:"-"`
14149
14150
14151
14152
14153 NullFields []string `json:"-"`
14154 }
14155
14156 func (s *RequestPhoneVerificationResponse) MarshalJSON() ([]byte, error) {
14157 type NoMethod RequestPhoneVerificationResponse
14158 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14159 }
14160
14161
14162
14163 type RequestReviewBuyOnGoogleProgramRequest struct {
14164 }
14165
14166
14167
14168 type RequestReviewFreeListingsRequest struct {
14169
14170
14171
14172 RegionCode string `json:"regionCode,omitempty"`
14173
14174
14175
14176
14177
14178 ForceSendFields []string `json:"-"`
14179
14180
14181
14182
14183 NullFields []string `json:"-"`
14184 }
14185
14186 func (s *RequestReviewFreeListingsRequest) MarshalJSON() ([]byte, error) {
14187 type NoMethod RequestReviewFreeListingsRequest
14188 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14189 }
14190
14191
14192
14193 type RequestReviewShoppingAdsRequest struct {
14194
14195
14196
14197 RegionCode string `json:"regionCode,omitempty"`
14198
14199
14200
14201
14202
14203 ForceSendFields []string `json:"-"`
14204
14205
14206
14207
14208 NullFields []string `json:"-"`
14209 }
14210
14211 func (s *RequestReviewShoppingAdsRequest) MarshalJSON() ([]byte, error) {
14212 type NoMethod RequestReviewShoppingAdsRequest
14213 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14214 }
14215
14216
14217 type ReturnAddress struct {
14218
14219 Address *ReturnAddressAddress `json:"address,omitempty"`
14220
14221
14222 Country string `json:"country,omitempty"`
14223
14224
14225 Kind string `json:"kind,omitempty"`
14226
14227
14228 Label string `json:"label,omitempty"`
14229
14230
14231 PhoneNumber string `json:"phoneNumber,omitempty"`
14232
14233 ReturnAddressId string `json:"returnAddressId,omitempty"`
14234
14235
14236 googleapi.ServerResponse `json:"-"`
14237
14238
14239
14240
14241
14242 ForceSendFields []string `json:"-"`
14243
14244
14245
14246
14247 NullFields []string `json:"-"`
14248 }
14249
14250 func (s *ReturnAddress) MarshalJSON() ([]byte, error) {
14251 type NoMethod ReturnAddress
14252 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14253 }
14254
14255 type ReturnAddressAddress struct {
14256
14257 Country string `json:"country,omitempty"`
14258
14259
14260 Locality string `json:"locality,omitempty"`
14261
14262 PostalCode string `json:"postalCode,omitempty"`
14263
14264 RecipientName string `json:"recipientName,omitempty"`
14265
14266
14267 Region string `json:"region,omitempty"`
14268
14269
14270 StreetAddress []string `json:"streetAddress,omitempty"`
14271
14272
14273
14274
14275
14276 ForceSendFields []string `json:"-"`
14277
14278
14279
14280
14281 NullFields []string `json:"-"`
14282 }
14283
14284 func (s *ReturnAddressAddress) MarshalJSON() ([]byte, error) {
14285 type NoMethod ReturnAddressAddress
14286 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14287 }
14288
14289
14290 type ReturnPolicy struct {
14291
14292
14293 Country string `json:"country,omitempty"`
14294
14295
14296 Kind string `json:"kind,omitempty"`
14297
14298
14299 Label string `json:"label,omitempty"`
14300
14301 Name string `json:"name,omitempty"`
14302
14303 NonFreeReturnReasons []string `json:"nonFreeReturnReasons,omitempty"`
14304
14305 Policy *ReturnPolicyPolicy `json:"policy,omitempty"`
14306
14307 ReturnPolicyId string `json:"returnPolicyId,omitempty"`
14308
14309
14310 ReturnShippingFee *Price `json:"returnShippingFee,omitempty"`
14311
14312 SeasonalOverrides []*ReturnPolicySeasonalOverride `json:"seasonalOverrides,omitempty"`
14313
14314
14315 googleapi.ServerResponse `json:"-"`
14316
14317
14318
14319
14320
14321 ForceSendFields []string `json:"-"`
14322
14323
14324
14325
14326 NullFields []string `json:"-"`
14327 }
14328
14329 func (s *ReturnPolicy) MarshalJSON() ([]byte, error) {
14330 type NoMethod ReturnPolicy
14331 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14332 }
14333
14334
14335
14336 type ReturnPolicyOnline struct {
14337
14338
14339 Countries []string `json:"countries,omitempty"`
14340
14341
14342
14343
14344
14345
14346
14347 ItemConditions []string `json:"itemConditions,omitempty"`
14348
14349
14350
14351
14352 Label string `json:"label,omitempty"`
14353
14354 Name string `json:"name,omitempty"`
14355
14356 Policy *ReturnPolicyOnlinePolicy `json:"policy,omitempty"`
14357
14358
14359
14360 RestockingFee *ReturnPolicyOnlineRestockingFee `json:"restockingFee,omitempty"`
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370 ReturnMethods []string `json:"returnMethods,omitempty"`
14371
14372 ReturnPolicyId string `json:"returnPolicyId,omitempty"`
14373
14374
14375 ReturnPolicyUri string `json:"returnPolicyUri,omitempty"`
14376
14377
14378 ReturnReasonCategoryInfo []*ReturnPolicyOnlineReturnReasonCategoryInfo `json:"returnReasonCategoryInfo,omitempty"`
14379
14380
14381 googleapi.ServerResponse `json:"-"`
14382
14383
14384
14385
14386
14387 ForceSendFields []string `json:"-"`
14388
14389
14390
14391
14392 NullFields []string `json:"-"`
14393 }
14394
14395 func (s *ReturnPolicyOnline) MarshalJSON() ([]byte, error) {
14396 type NoMethod ReturnPolicyOnline
14397 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14398 }
14399
14400
14401 type ReturnPolicyOnlinePolicy struct {
14402
14403
14404
14405 Days int64 `json:"days,omitempty,string"`
14406
14407
14408
14409
14410
14411
14412
14413
14414 Type string `json:"type,omitempty"`
14415
14416
14417
14418
14419
14420 ForceSendFields []string `json:"-"`
14421
14422
14423
14424
14425 NullFields []string `json:"-"`
14426 }
14427
14428 func (s *ReturnPolicyOnlinePolicy) MarshalJSON() ([]byte, error) {
14429 type NoMethod ReturnPolicyOnlinePolicy
14430 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14431 }
14432
14433
14434
14435 type ReturnPolicyOnlineRestockingFee struct {
14436
14437 FixedFee *PriceAmount `json:"fixedFee,omitempty"`
14438
14439
14440 MicroPercent int64 `json:"microPercent,omitempty"`
14441
14442
14443
14444
14445
14446 ForceSendFields []string `json:"-"`
14447
14448
14449
14450
14451 NullFields []string `json:"-"`
14452 }
14453
14454 func (s *ReturnPolicyOnlineRestockingFee) MarshalJSON() ([]byte, error) {
14455 type NoMethod ReturnPolicyOnlineRestockingFee
14456 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14457 }
14458
14459
14460
14461 type ReturnPolicyOnlineReturnReasonCategoryInfo struct {
14462
14463
14464
14465
14466
14467
14468
14469 ReturnLabelSource string `json:"returnLabelSource,omitempty"`
14470
14471
14472
14473
14474
14475
14476
14477 ReturnReasonCategory string `json:"returnReasonCategory,omitempty"`
14478
14479
14480 ReturnShippingFee *ReturnPolicyOnlineReturnShippingFee `json:"returnShippingFee,omitempty"`
14481
14482
14483
14484
14485
14486 ForceSendFields []string `json:"-"`
14487
14488
14489
14490
14491 NullFields []string `json:"-"`
14492 }
14493
14494 func (s *ReturnPolicyOnlineReturnReasonCategoryInfo) MarshalJSON() ([]byte, error) {
14495 type NoMethod ReturnPolicyOnlineReturnReasonCategoryInfo
14496 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14497 }
14498
14499
14500
14501
14502 type ReturnPolicyOnlineReturnShippingFee struct {
14503
14504
14505
14506 FixedFee *PriceAmount `json:"fixedFee,omitempty"`
14507
14508
14509
14510
14511
14512
14513
14514 Type string `json:"type,omitempty"`
14515
14516
14517
14518
14519
14520 ForceSendFields []string `json:"-"`
14521
14522
14523
14524
14525 NullFields []string `json:"-"`
14526 }
14527
14528 func (s *ReturnPolicyOnlineReturnShippingFee) MarshalJSON() ([]byte, error) {
14529 type NoMethod ReturnPolicyOnlineReturnShippingFee
14530 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14531 }
14532
14533 type ReturnPolicyPolicy struct {
14534
14535
14536
14537 LastReturnDate string `json:"lastReturnDate,omitempty"`
14538
14539
14540
14541
14542
14543
14544
14545
14546 NumberOfDays int64 `json:"numberOfDays,omitempty,string"`
14547
14548
14549
14550
14551
14552
14553 Type string `json:"type,omitempty"`
14554
14555
14556
14557
14558
14559 ForceSendFields []string `json:"-"`
14560
14561
14562
14563
14564 NullFields []string `json:"-"`
14565 }
14566
14567 func (s *ReturnPolicyPolicy) MarshalJSON() ([]byte, error) {
14568 type NoMethod ReturnPolicyPolicy
14569 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14570 }
14571
14572 type ReturnPolicySeasonalOverride struct {
14573
14574
14575 EndDate string `json:"endDate,omitempty"`
14576
14577
14578 Name string `json:"name,omitempty"`
14579
14580 Policy *ReturnPolicyPolicy `json:"policy,omitempty"`
14581
14582
14583 StartDate string `json:"startDate,omitempty"`
14584
14585
14586
14587
14588
14589 ForceSendFields []string `json:"-"`
14590
14591
14592
14593
14594 NullFields []string `json:"-"`
14595 }
14596
14597 func (s *ReturnPolicySeasonalOverride) MarshalJSON() ([]byte, error) {
14598 type NoMethod ReturnPolicySeasonalOverride
14599 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14600 }
14601
14602 type ReturnPricingInfo struct {
14603
14604
14605
14606 ChargeReturnShippingFee bool `json:"chargeReturnShippingFee,omitempty"`
14607
14608
14609
14610 MaxReturnShippingFee *MonetaryAmount `json:"maxReturnShippingFee,omitempty"`
14611
14612
14613
14614 RefundableItemsTotalAmount *MonetaryAmount `json:"refundableItemsTotalAmount,omitempty"`
14615
14616
14617 RefundableShippingAmount *MonetaryAmount `json:"refundableShippingAmount,omitempty"`
14618
14619
14620
14621 TotalRefundedAmount *MonetaryAmount `json:"totalRefundedAmount,omitempty"`
14622
14623
14624
14625
14626
14627 ForceSendFields []string `json:"-"`
14628
14629
14630
14631
14632 NullFields []string `json:"-"`
14633 }
14634
14635 func (s *ReturnPricingInfo) MarshalJSON() ([]byte, error) {
14636 type NoMethod ReturnPricingInfo
14637 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14638 }
14639
14640 type ReturnShipment struct {
14641
14642 CreationDate string `json:"creationDate,omitempty"`
14643
14644 DeliveryDate string `json:"deliveryDate,omitempty"`
14645
14646
14647 ReturnMethodType string `json:"returnMethodType,omitempty"`
14648
14649 ShipmentId string `json:"shipmentId,omitempty"`
14650
14651
14652 ShipmentTrackingInfos []*ShipmentTrackingInfo `json:"shipmentTrackingInfos,omitempty"`
14653
14654 ShippingDate string `json:"shippingDate,omitempty"`
14655
14656
14657 State string `json:"state,omitempty"`
14658
14659
14660
14661
14662
14663 ForceSendFields []string `json:"-"`
14664
14665
14666
14667
14668 NullFields []string `json:"-"`
14669 }
14670
14671 func (s *ReturnShipment) MarshalJSON() ([]byte, error) {
14672 type NoMethod ReturnShipment
14673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14674 }
14675
14676
14677
14678 type ReturnShippingLabel struct {
14679
14680 Carrier string `json:"carrier,omitempty"`
14681
14682 LabelUri string `json:"labelUri,omitempty"`
14683
14684 TrackingId string `json:"trackingId,omitempty"`
14685
14686
14687 googleapi.ServerResponse `json:"-"`
14688
14689
14690
14691
14692
14693 ForceSendFields []string `json:"-"`
14694
14695
14696
14697
14698 NullFields []string `json:"-"`
14699 }
14700
14701 func (s *ReturnShippingLabel) MarshalJSON() ([]byte, error) {
14702 type NoMethod ReturnShippingLabel
14703 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14704 }
14705
14706 type ReturnaddressCustomBatchRequest struct {
14707
14708 Entries []*ReturnaddressCustomBatchRequestEntry `json:"entries,omitempty"`
14709
14710
14711
14712
14713
14714 ForceSendFields []string `json:"-"`
14715
14716
14717
14718
14719 NullFields []string `json:"-"`
14720 }
14721
14722 func (s *ReturnaddressCustomBatchRequest) MarshalJSON() ([]byte, error) {
14723 type NoMethod ReturnaddressCustomBatchRequest
14724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14725 }
14726
14727 type ReturnaddressCustomBatchRequestEntry struct {
14728
14729 BatchId int64 `json:"batchId,omitempty"`
14730
14731 MerchantId uint64 `json:"merchantId,omitempty,string"`
14732
14733
14734 Method string `json:"method,omitempty"`
14735
14736
14737 ReturnAddress *ReturnAddress `json:"returnAddress,omitempty"`
14738
14739
14740 ReturnAddressId string `json:"returnAddressId,omitempty"`
14741
14742
14743
14744
14745
14746 ForceSendFields []string `json:"-"`
14747
14748
14749
14750
14751 NullFields []string `json:"-"`
14752 }
14753
14754 func (s *ReturnaddressCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
14755 type NoMethod ReturnaddressCustomBatchRequestEntry
14756 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14757 }
14758
14759 type ReturnaddressCustomBatchResponse struct {
14760
14761 Entries []*ReturnaddressCustomBatchResponseEntry `json:"entries,omitempty"`
14762
14763
14764 Kind string `json:"kind,omitempty"`
14765
14766
14767 googleapi.ServerResponse `json:"-"`
14768
14769
14770
14771
14772
14773 ForceSendFields []string `json:"-"`
14774
14775
14776
14777
14778 NullFields []string `json:"-"`
14779 }
14780
14781 func (s *ReturnaddressCustomBatchResponse) MarshalJSON() ([]byte, error) {
14782 type NoMethod ReturnaddressCustomBatchResponse
14783 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14784 }
14785
14786 type ReturnaddressCustomBatchResponseEntry struct {
14787
14788 BatchId int64 `json:"batchId,omitempty"`
14789
14790 Errors *Errors `json:"errors,omitempty"`
14791
14792
14793 Kind string `json:"kind,omitempty"`
14794
14795 ReturnAddress *ReturnAddress `json:"returnAddress,omitempty"`
14796
14797
14798
14799
14800
14801 ForceSendFields []string `json:"-"`
14802
14803
14804
14805
14806 NullFields []string `json:"-"`
14807 }
14808
14809 func (s *ReturnaddressCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
14810 type NoMethod ReturnaddressCustomBatchResponseEntry
14811 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14812 }
14813
14814 type ReturnaddressListResponse struct {
14815
14816
14817 Kind string `json:"kind,omitempty"`
14818
14819 NextPageToken string `json:"nextPageToken,omitempty"`
14820 Resources []*ReturnAddress `json:"resources,omitempty"`
14821
14822
14823 googleapi.ServerResponse `json:"-"`
14824
14825
14826
14827
14828
14829 ForceSendFields []string `json:"-"`
14830
14831
14832
14833
14834 NullFields []string `json:"-"`
14835 }
14836
14837 func (s *ReturnaddressListResponse) MarshalJSON() ([]byte, error) {
14838 type NoMethod ReturnaddressListResponse
14839 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14840 }
14841
14842 type ReturnpolicyCustomBatchRequest struct {
14843
14844 Entries []*ReturnpolicyCustomBatchRequestEntry `json:"entries,omitempty"`
14845
14846
14847
14848
14849
14850 ForceSendFields []string `json:"-"`
14851
14852
14853
14854
14855 NullFields []string `json:"-"`
14856 }
14857
14858 func (s *ReturnpolicyCustomBatchRequest) MarshalJSON() ([]byte, error) {
14859 type NoMethod ReturnpolicyCustomBatchRequest
14860 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14861 }
14862
14863 type ReturnpolicyCustomBatchRequestEntry struct {
14864
14865 BatchId int64 `json:"batchId,omitempty"`
14866
14867 MerchantId uint64 `json:"merchantId,omitempty,string"`
14868
14869
14870 Method string `json:"method,omitempty"`
14871
14872
14873 ReturnPolicy *ReturnPolicy `json:"returnPolicy,omitempty"`
14874
14875
14876 ReturnPolicyId string `json:"returnPolicyId,omitempty"`
14877
14878
14879
14880
14881
14882 ForceSendFields []string `json:"-"`
14883
14884
14885
14886
14887 NullFields []string `json:"-"`
14888 }
14889
14890 func (s *ReturnpolicyCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
14891 type NoMethod ReturnpolicyCustomBatchRequestEntry
14892 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14893 }
14894
14895 type ReturnpolicyCustomBatchResponse struct {
14896
14897 Entries []*ReturnpolicyCustomBatchResponseEntry `json:"entries,omitempty"`
14898
14899
14900 Kind string `json:"kind,omitempty"`
14901
14902
14903 googleapi.ServerResponse `json:"-"`
14904
14905
14906
14907
14908
14909 ForceSendFields []string `json:"-"`
14910
14911
14912
14913
14914 NullFields []string `json:"-"`
14915 }
14916
14917 func (s *ReturnpolicyCustomBatchResponse) MarshalJSON() ([]byte, error) {
14918 type NoMethod ReturnpolicyCustomBatchResponse
14919 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14920 }
14921
14922 type ReturnpolicyCustomBatchResponseEntry struct {
14923
14924 BatchId int64 `json:"batchId,omitempty"`
14925
14926 Errors *Errors `json:"errors,omitempty"`
14927
14928
14929 Kind string `json:"kind,omitempty"`
14930
14931 ReturnPolicy *ReturnPolicy `json:"returnPolicy,omitempty"`
14932
14933
14934
14935
14936
14937 ForceSendFields []string `json:"-"`
14938
14939
14940
14941
14942 NullFields []string `json:"-"`
14943 }
14944
14945 func (s *ReturnpolicyCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
14946 type NoMethod ReturnpolicyCustomBatchResponseEntry
14947 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14948 }
14949
14950 type ReturnpolicyListResponse struct {
14951
14952
14953 Kind string `json:"kind,omitempty"`
14954 Resources []*ReturnPolicy `json:"resources,omitempty"`
14955
14956
14957 googleapi.ServerResponse `json:"-"`
14958
14959
14960
14961
14962
14963 ForceSendFields []string `json:"-"`
14964
14965
14966
14967
14968 NullFields []string `json:"-"`
14969 }
14970
14971 func (s *ReturnpolicyListResponse) MarshalJSON() ([]byte, error) {
14972 type NoMethod ReturnpolicyListResponse
14973 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14974 }
14975
14976 type Row struct {
14977
14978
14979
14980 Cells []*Value `json:"cells,omitempty"`
14981
14982
14983
14984
14985
14986 ForceSendFields []string `json:"-"`
14987
14988
14989
14990
14991 NullFields []string `json:"-"`
14992 }
14993
14994 func (s *Row) MarshalJSON() ([]byte, error) {
14995 type NoMethod Row
14996 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14997 }
14998
14999
15000 type SearchRequest struct {
15001
15002
15003 PageSize int64 `json:"pageSize,omitempty"`
15004
15005
15006
15007
15008 PageToken string `json:"pageToken,omitempty"`
15009
15010
15011
15012
15013 Query string `json:"query,omitempty"`
15014
15015
15016
15017
15018
15019 ForceSendFields []string `json:"-"`
15020
15021
15022
15023
15024 NullFields []string `json:"-"`
15025 }
15026
15027 func (s *SearchRequest) MarshalJSON() ([]byte, error) {
15028 type NoMethod SearchRequest
15029 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15030 }
15031
15032
15033 type SearchResponse struct {
15034
15035
15036 NextPageToken string `json:"nextPageToken,omitempty"`
15037
15038 Results []*ReportRow `json:"results,omitempty"`
15039
15040
15041 googleapi.ServerResponse `json:"-"`
15042
15043
15044
15045
15046
15047 ForceSendFields []string `json:"-"`
15048
15049
15050
15051
15052 NullFields []string `json:"-"`
15053 }
15054
15055 func (s *SearchResponse) MarshalJSON() ([]byte, error) {
15056 type NoMethod SearchResponse
15057 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15058 }
15059
15060
15061
15062
15063
15064
15065
15066 type Segments struct {
15067
15068 Brand string `json:"brand,omitempty"`
15069
15070
15071
15072 CategoryL1 string `json:"categoryL1,omitempty"`
15073
15074
15075
15076 CategoryL2 string `json:"categoryL2,omitempty"`
15077
15078
15079
15080 CategoryL3 string `json:"categoryL3,omitempty"`
15081
15082
15083
15084 CategoryL4 string `json:"categoryL4,omitempty"`
15085
15086
15087
15088 CategoryL5 string `json:"categoryL5,omitempty"`
15089
15090
15091
15092 CurrencyCode string `json:"currencyCode,omitempty"`
15093
15094 CustomLabel0 string `json:"customLabel0,omitempty"`
15095
15096 CustomLabel1 string `json:"customLabel1,omitempty"`
15097
15098 CustomLabel2 string `json:"customLabel2,omitempty"`
15099
15100 CustomLabel3 string `json:"customLabel3,omitempty"`
15101
15102 CustomLabel4 string `json:"customLabel4,omitempty"`
15103
15104
15105
15106 CustomerCountryCode string `json:"customerCountryCode,omitempty"`
15107
15108 Date *Date `json:"date,omitempty"`
15109
15110 OfferId string `json:"offerId,omitempty"`
15111
15112
15113
15114 ProductTypeL1 string `json:"productTypeL1,omitempty"`
15115
15116
15117
15118 ProductTypeL2 string `json:"productTypeL2,omitempty"`
15119
15120
15121
15122 ProductTypeL3 string `json:"productTypeL3,omitempty"`
15123
15124
15125
15126 ProductTypeL4 string `json:"productTypeL4,omitempty"`
15127
15128
15129
15130 ProductTypeL5 string `json:"productTypeL5,omitempty"`
15131
15132
15133
15134
15135
15136
15137
15138
15139 Program string `json:"program,omitempty"`
15140
15141 Title string `json:"title,omitempty"`
15142
15143
15144 Week *Date `json:"week,omitempty"`
15145
15146
15147
15148
15149
15150 ForceSendFields []string `json:"-"`
15151
15152
15153
15154
15155 NullFields []string `json:"-"`
15156 }
15157
15158 func (s *Segments) MarshalJSON() ([]byte, error) {
15159 type NoMethod Segments
15160 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15161 }
15162
15163 type Service struct {
15164
15165
15166 Active bool `json:"active,omitempty"`
15167
15168
15169 Currency string `json:"currency,omitempty"`
15170
15171
15172 DeliveryCountry string `json:"deliveryCountry,omitempty"`
15173
15174
15175 DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"`
15176
15177
15178
15179 Eligibility string `json:"eligibility,omitempty"`
15180
15181
15182
15183
15184 MinimumOrderValue *Price `json:"minimumOrderValue,omitempty"`
15185
15186
15187 MinimumOrderValueTable *MinimumOrderValueTable `json:"minimumOrderValueTable,omitempty"`
15188
15189
15190 Name string `json:"name,omitempty"`
15191
15192
15193
15194
15195 PickupService *PickupCarrierService `json:"pickupService,omitempty"`
15196
15197
15198
15199 RateGroups []*RateGroup `json:"rateGroups,omitempty"`
15200
15201
15202
15203 ShipmentType string `json:"shipmentType,omitempty"`
15204
15205
15206 StoreConfig *ServiceStoreConfig `json:"storeConfig,omitempty"`
15207
15208
15209
15210
15211
15212 ForceSendFields []string `json:"-"`
15213
15214
15215
15216
15217 NullFields []string `json:"-"`
15218 }
15219
15220 func (s *Service) MarshalJSON() ([]byte, error) {
15221 type NoMethod Service
15222 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15223 }
15224
15225
15226
15227 type ServiceStoreConfig struct {
15228
15229
15230
15231 CutoffConfig *ServiceStoreConfigCutoffConfig `json:"cutoffConfig,omitempty"`
15232
15233
15234 ServiceRadius *Distance `json:"serviceRadius,omitempty"`
15235
15236
15237
15238
15239 StoreCodes []string `json:"storeCodes,omitempty"`
15240
15241
15242
15243 StoreServiceType string `json:"storeServiceType,omitempty"`
15244
15245
15246
15247
15248
15249 ForceSendFields []string `json:"-"`
15250
15251
15252
15253
15254 NullFields []string `json:"-"`
15255 }
15256
15257 func (s *ServiceStoreConfig) MarshalJSON() ([]byte, error) {
15258 type NoMethod ServiceStoreConfig
15259 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15260 }
15261
15262
15263
15264
15265 type ServiceStoreConfigCutoffConfig struct {
15266
15267
15268 LocalCutoffTime *ServiceStoreConfigCutoffConfigLocalCutoffTime `json:"localCutoffTime,omitempty"`
15269
15270
15271
15272
15273
15274
15275
15276 NoDeliveryPostCutoff bool `json:"noDeliveryPostCutoff,omitempty"`
15277
15278
15279 StoreCloseOffsetHours int64 `json:"storeCloseOffsetHours,omitempty,string"`
15280
15281
15282
15283
15284
15285 ForceSendFields []string `json:"-"`
15286
15287
15288
15289
15290 NullFields []string `json:"-"`
15291 }
15292
15293 func (s *ServiceStoreConfigCutoffConfig) MarshalJSON() ([]byte, error) {
15294 type NoMethod ServiceStoreConfigCutoffConfig
15295 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15296 }
15297
15298
15299
15300 type ServiceStoreConfigCutoffConfigLocalCutoffTime struct {
15301
15302 Hour int64 `json:"hour,omitempty,string"`
15303
15304
15305 Minute int64 `json:"minute,omitempty,string"`
15306
15307
15308
15309
15310
15311 ForceSendFields []string `json:"-"`
15312
15313
15314
15315
15316 NullFields []string `json:"-"`
15317 }
15318
15319 func (s *ServiceStoreConfigCutoffConfigLocalCutoffTime) MarshalJSON() ([]byte, error) {
15320 type NoMethod ServiceStoreConfigCutoffConfigLocalCutoffTime
15321 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15322 }
15323
15324
15325
15326 type SettlementReport struct {
15327
15328
15329 EndDate string `json:"endDate,omitempty"`
15330
15331
15332 Kind string `json:"kind,omitempty"`
15333
15334
15335 PreviousBalance *Price `json:"previousBalance,omitempty"`
15336
15337 SettlementId string `json:"settlementId,omitempty"`
15338
15339
15340 StartDate string `json:"startDate,omitempty"`
15341
15342 TransferAmount *Price `json:"transferAmount,omitempty"`
15343
15344
15345 TransferDate string `json:"transferDate,omitempty"`
15346
15347
15348
15349 TransferIds []string `json:"transferIds,omitempty"`
15350
15351
15352 googleapi.ServerResponse `json:"-"`
15353
15354
15355
15356
15357
15358 ForceSendFields []string `json:"-"`
15359
15360
15361
15362
15363 NullFields []string `json:"-"`
15364 }
15365
15366 func (s *SettlementReport) MarshalJSON() ([]byte, error) {
15367 type NoMethod SettlementReport
15368 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15369 }
15370
15371
15372
15373 type SettlementTransaction struct {
15374
15375 Amount *SettlementTransactionAmount `json:"amount,omitempty"`
15376
15377 Identifiers *SettlementTransactionIdentifiers `json:"identifiers,omitempty"`
15378
15379
15380 Kind string `json:"kind,omitempty"`
15381
15382 Transaction *SettlementTransactionTransaction `json:"transaction,omitempty"`
15383
15384
15385
15386
15387
15388 ForceSendFields []string `json:"-"`
15389
15390
15391
15392
15393 NullFields []string `json:"-"`
15394 }
15395
15396 func (s *SettlementTransaction) MarshalJSON() ([]byte, error) {
15397 type NoMethod SettlementTransaction
15398 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15399 }
15400
15401 type SettlementTransactionAmount struct {
15402 Commission *SettlementTransactionAmountCommission `json:"commission,omitempty"`
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427 Description string `json:"description,omitempty"`
15428
15429 TransactionAmount *Price `json:"transactionAmount,omitempty"`
15430
15431
15432
15433
15434 Type string `json:"type,omitempty"`
15435
15436
15437
15438
15439
15440 ForceSendFields []string `json:"-"`
15441
15442
15443
15444
15445 NullFields []string `json:"-"`
15446 }
15447
15448 func (s *SettlementTransactionAmount) MarshalJSON() ([]byte, error) {
15449 type NoMethod SettlementTransactionAmount
15450 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15451 }
15452
15453 type SettlementTransactionAmountCommission struct {
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470 Category string `json:"category,omitempty"`
15471
15472 Rate string `json:"rate,omitempty"`
15473
15474
15475
15476
15477
15478 ForceSendFields []string `json:"-"`
15479
15480
15481
15482
15483 NullFields []string `json:"-"`
15484 }
15485
15486 func (s *SettlementTransactionAmountCommission) MarshalJSON() ([]byte, error) {
15487 type NoMethod SettlementTransactionAmountCommission
15488 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15489 }
15490
15491 type SettlementTransactionIdentifiers struct {
15492
15493 AdjustmentId string `json:"adjustmentId,omitempty"`
15494
15495 MerchantOrderId string `json:"merchantOrderId,omitempty"`
15496
15497 OrderItemId string `json:"orderItemId,omitempty"`
15498
15499 SettlementEntryId string `json:"settlementEntryId,omitempty"`
15500
15501 ShipmentIds []string `json:"shipmentIds,omitempty"`
15502
15503 TransactionId string `json:"transactionId,omitempty"`
15504
15505
15506
15507
15508
15509 ForceSendFields []string `json:"-"`
15510
15511
15512
15513
15514 NullFields []string `json:"-"`
15515 }
15516
15517 func (s *SettlementTransactionIdentifiers) MarshalJSON() ([]byte, error) {
15518 type NoMethod SettlementTransactionIdentifiers
15519 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15520 }
15521
15522 type SettlementTransactionTransaction struct {
15523
15524 PostDate string `json:"postDate,omitempty"`
15525
15526
15527
15528
15529
15530
15531 Type string `json:"type,omitempty"`
15532
15533
15534
15535
15536
15537 ForceSendFields []string `json:"-"`
15538
15539
15540
15541
15542 NullFields []string `json:"-"`
15543 }
15544
15545 func (s *SettlementTransactionTransaction) MarshalJSON() ([]byte, error) {
15546 type NoMethod SettlementTransactionTransaction
15547 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15548 }
15549
15550 type SettlementreportsListResponse struct {
15551
15552
15553 Kind string `json:"kind,omitempty"`
15554
15555 NextPageToken string `json:"nextPageToken,omitempty"`
15556 Resources []*SettlementReport `json:"resources,omitempty"`
15557
15558
15559 googleapi.ServerResponse `json:"-"`
15560
15561
15562
15563
15564
15565 ForceSendFields []string `json:"-"`
15566
15567
15568
15569
15570 NullFields []string `json:"-"`
15571 }
15572
15573 func (s *SettlementreportsListResponse) MarshalJSON() ([]byte, error) {
15574 type NoMethod SettlementreportsListResponse
15575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15576 }
15577
15578 type SettlementtransactionsListResponse struct {
15579
15580
15581 Kind string `json:"kind,omitempty"`
15582
15583 NextPageToken string `json:"nextPageToken,omitempty"`
15584 Resources []*SettlementTransaction `json:"resources,omitempty"`
15585
15586
15587 googleapi.ServerResponse `json:"-"`
15588
15589
15590
15591
15592
15593 ForceSendFields []string `json:"-"`
15594
15595
15596
15597
15598 NullFields []string `json:"-"`
15599 }
15600
15601 func (s *SettlementtransactionsListResponse) MarshalJSON() ([]byte, error) {
15602 type NoMethod SettlementtransactionsListResponse
15603 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15604 }
15605
15606 type ShipmentInvoice struct {
15607
15608 InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"`
15609
15610 LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"`
15611
15612
15613
15614 ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
15615
15616
15617
15618
15619
15620 ForceSendFields []string `json:"-"`
15621
15622
15623
15624
15625 NullFields []string `json:"-"`
15626 }
15627
15628 func (s *ShipmentInvoice) MarshalJSON() ([]byte, error) {
15629 type NoMethod ShipmentInvoice
15630 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15631 }
15632
15633 type ShipmentInvoiceLineItemInvoice struct {
15634
15635 LineItemId string `json:"lineItemId,omitempty"`
15636
15637
15638 ProductId string `json:"productId,omitempty"`
15639
15640
15641
15642
15643 ShipmentUnitIds []string `json:"shipmentUnitIds,omitempty"`
15644
15645 UnitInvoice *UnitInvoice `json:"unitInvoice,omitempty"`
15646
15647
15648
15649
15650
15651 ForceSendFields []string `json:"-"`
15652
15653
15654
15655
15656 NullFields []string `json:"-"`
15657 }
15658
15659 func (s *ShipmentInvoiceLineItemInvoice) MarshalJSON() ([]byte, error) {
15660 type NoMethod ShipmentInvoiceLineItemInvoice
15661 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15662 }
15663
15664 type ShipmentTrackingInfo struct {
15665
15666
15667
15668
15669
15670
15671
15672 Carrier string `json:"carrier,omitempty"`
15673
15674 TrackingNumber string `json:"trackingNumber,omitempty"`
15675
15676
15677
15678
15679
15680 ForceSendFields []string `json:"-"`
15681
15682
15683
15684
15685 NullFields []string `json:"-"`
15686 }
15687
15688 func (s *ShipmentTrackingInfo) MarshalJSON() ([]byte, error) {
15689 type NoMethod ShipmentTrackingInfo
15690 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15691 }
15692
15693
15694
15695 type ShippingSettings struct {
15696
15697
15698 AccountId uint64 `json:"accountId,omitempty,string"`
15699
15700
15701 PostalCodeGroups []*PostalCodeGroup `json:"postalCodeGroups,omitempty"`
15702
15703 Services []*Service `json:"services,omitempty"`
15704
15705
15706 Warehouses []*Warehouse `json:"warehouses,omitempty"`
15707
15708
15709 googleapi.ServerResponse `json:"-"`
15710
15711
15712
15713
15714
15715 ForceSendFields []string `json:"-"`
15716
15717
15718
15719
15720 NullFields []string `json:"-"`
15721 }
15722
15723 func (s *ShippingSettings) MarshalJSON() ([]byte, error) {
15724 type NoMethod ShippingSettings
15725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15726 }
15727
15728 type ShippingsettingsCustomBatchRequest struct {
15729
15730 Entries []*ShippingsettingsCustomBatchRequestEntry `json:"entries,omitempty"`
15731
15732
15733
15734
15735
15736 ForceSendFields []string `json:"-"`
15737
15738
15739
15740
15741 NullFields []string `json:"-"`
15742 }
15743
15744 func (s *ShippingsettingsCustomBatchRequest) MarshalJSON() ([]byte, error) {
15745 type NoMethod ShippingsettingsCustomBatchRequest
15746 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15747 }
15748
15749
15750
15751 type ShippingsettingsCustomBatchRequestEntry struct {
15752
15753
15754 AccountId uint64 `json:"accountId,omitempty,string"`
15755
15756 BatchId int64 `json:"batchId,omitempty"`
15757
15758 MerchantId uint64 `json:"merchantId,omitempty,string"`
15759
15760
15761 Method string `json:"method,omitempty"`
15762
15763
15764 ShippingSettings *ShippingSettings `json:"shippingSettings,omitempty"`
15765
15766
15767
15768
15769
15770 ForceSendFields []string `json:"-"`
15771
15772
15773
15774
15775 NullFields []string `json:"-"`
15776 }
15777
15778 func (s *ShippingsettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
15779 type NoMethod ShippingsettingsCustomBatchRequestEntry
15780 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15781 }
15782
15783 type ShippingsettingsCustomBatchResponse struct {
15784
15785 Entries []*ShippingsettingsCustomBatchResponseEntry `json:"entries,omitempty"`
15786
15787
15788 Kind string `json:"kind,omitempty"`
15789
15790
15791 googleapi.ServerResponse `json:"-"`
15792
15793
15794
15795
15796
15797 ForceSendFields []string `json:"-"`
15798
15799
15800
15801
15802 NullFields []string `json:"-"`
15803 }
15804
15805 func (s *ShippingsettingsCustomBatchResponse) MarshalJSON() ([]byte, error) {
15806 type NoMethod ShippingsettingsCustomBatchResponse
15807 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15808 }
15809
15810
15811
15812 type ShippingsettingsCustomBatchResponseEntry struct {
15813
15814 BatchId int64 `json:"batchId,omitempty"`
15815
15816
15817 Errors *Errors `json:"errors,omitempty"`
15818
15819
15820 Kind string `json:"kind,omitempty"`
15821
15822 ShippingSettings *ShippingSettings `json:"shippingSettings,omitempty"`
15823
15824
15825
15826
15827
15828 ForceSendFields []string `json:"-"`
15829
15830
15831
15832
15833 NullFields []string `json:"-"`
15834 }
15835
15836 func (s *ShippingsettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
15837 type NoMethod ShippingsettingsCustomBatchResponseEntry
15838 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15839 }
15840
15841 type ShippingsettingsGetSupportedCarriersResponse struct {
15842
15843 Carriers []*CarriersCarrier `json:"carriers,omitempty"`
15844
15845
15846 Kind string `json:"kind,omitempty"`
15847
15848
15849 googleapi.ServerResponse `json:"-"`
15850
15851
15852
15853
15854
15855 ForceSendFields []string `json:"-"`
15856
15857
15858
15859
15860 NullFields []string `json:"-"`
15861 }
15862
15863 func (s *ShippingsettingsGetSupportedCarriersResponse) MarshalJSON() ([]byte, error) {
15864 type NoMethod ShippingsettingsGetSupportedCarriersResponse
15865 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15866 }
15867
15868 type ShippingsettingsGetSupportedHolidaysResponse struct {
15869
15870
15871 Holidays []*HolidaysHoliday `json:"holidays,omitempty"`
15872
15873
15874 Kind string `json:"kind,omitempty"`
15875
15876
15877 googleapi.ServerResponse `json:"-"`
15878
15879
15880
15881
15882
15883 ForceSendFields []string `json:"-"`
15884
15885
15886
15887
15888 NullFields []string `json:"-"`
15889 }
15890
15891 func (s *ShippingsettingsGetSupportedHolidaysResponse) MarshalJSON() ([]byte, error) {
15892 type NoMethod ShippingsettingsGetSupportedHolidaysResponse
15893 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15894 }
15895
15896 type ShippingsettingsGetSupportedPickupServicesResponse struct {
15897
15898
15899 Kind string `json:"kind,omitempty"`
15900
15901 PickupServices []*PickupServicesPickupService `json:"pickupServices,omitempty"`
15902
15903
15904 googleapi.ServerResponse `json:"-"`
15905
15906
15907
15908
15909
15910 ForceSendFields []string `json:"-"`
15911
15912
15913
15914
15915 NullFields []string `json:"-"`
15916 }
15917
15918 func (s *ShippingsettingsGetSupportedPickupServicesResponse) MarshalJSON() ([]byte, error) {
15919 type NoMethod ShippingsettingsGetSupportedPickupServicesResponse
15920 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15921 }
15922
15923 type ShippingsettingsListResponse struct {
15924
15925
15926 Kind string `json:"kind,omitempty"`
15927
15928
15929 NextPageToken string `json:"nextPageToken,omitempty"`
15930 Resources []*ShippingSettings `json:"resources,omitempty"`
15931
15932
15933 googleapi.ServerResponse `json:"-"`
15934
15935
15936
15937
15938
15939 ForceSendFields []string `json:"-"`
15940
15941
15942
15943
15944 NullFields []string `json:"-"`
15945 }
15946
15947 func (s *ShippingsettingsListResponse) MarshalJSON() ([]byte, error) {
15948 type NoMethod ShippingsettingsListResponse
15949 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15950 }
15951
15952
15953 type ShoppingAdsProgramStatus struct {
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964 GlobalState string `json:"globalState,omitempty"`
15965
15966
15967 RegionStatuses []*ShoppingAdsProgramStatusRegionStatus `json:"regionStatuses,omitempty"`
15968
15969
15970 googleapi.ServerResponse `json:"-"`
15971
15972
15973
15974
15975
15976 ForceSendFields []string `json:"-"`
15977
15978
15979
15980
15981 NullFields []string `json:"-"`
15982 }
15983
15984 func (s *ShoppingAdsProgramStatus) MarshalJSON() ([]byte, error) {
15985 type NoMethod ShoppingAdsProgramStatus
15986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15987 }
15988
15989
15990 type ShoppingAdsProgramStatusRegionStatus struct {
15991
15992
15993
15994 DisapprovalDate string `json:"disapprovalDate,omitempty"`
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012 EligibilityStatus string `json:"eligibilityStatus,omitempty"`
16013
16014 OnboardingIssues []string `json:"onboardingIssues,omitempty"`
16015
16016
16017
16018 RegionCodes []string `json:"regionCodes,omitempty"`
16019
16020
16021
16022
16023
16024
16025
16026
16027 ReviewEligibilityStatus string `json:"reviewEligibilityStatus,omitempty"`
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044 ReviewIneligibilityReason string `json:"reviewIneligibilityReason,omitempty"`
16045
16046
16047
16048 ReviewIneligibilityReasonDescription string `json:"reviewIneligibilityReasonDescription,omitempty"`
16049
16050
16051
16052 ReviewIneligibilityReasonDetails *ShoppingAdsProgramStatusReviewIneligibilityReasonDetails `json:"reviewIneligibilityReasonDetails,omitempty"`
16053
16054
16055 ReviewIssues []string `json:"reviewIssues,omitempty"`
16056
16057
16058
16059
16060
16061 ForceSendFields []string `json:"-"`
16062
16063
16064
16065
16066 NullFields []string `json:"-"`
16067 }
16068
16069 func (s *ShoppingAdsProgramStatusRegionStatus) MarshalJSON() ([]byte, error) {
16070 type NoMethod ShoppingAdsProgramStatusRegionStatus
16071 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16072 }
16073
16074
16075
16076 type ShoppingAdsProgramStatusReviewIneligibilityReasonDetails struct {
16077
16078
16079 CooldownTime string `json:"cooldownTime,omitempty"`
16080
16081
16082
16083
16084
16085 ForceSendFields []string `json:"-"`
16086
16087
16088
16089
16090 NullFields []string `json:"-"`
16091 }
16092
16093 func (s *ShoppingAdsProgramStatusReviewIneligibilityReasonDetails) MarshalJSON() ([]byte, error) {
16094 type NoMethod ShoppingAdsProgramStatusReviewIneligibilityReasonDetails
16095 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16096 }
16097
16098 type Table struct {
16099
16100
16101 ColumnHeaders *Headers `json:"columnHeaders,omitempty"`
16102
16103 Name string `json:"name,omitempty"`
16104
16105 RowHeaders *Headers `json:"rowHeaders,omitempty"`
16106
16107
16108 Rows []*Row `json:"rows,omitempty"`
16109
16110
16111
16112
16113
16114 ForceSendFields []string `json:"-"`
16115
16116
16117
16118
16119 NullFields []string `json:"-"`
16120 }
16121
16122 func (s *Table) MarshalJSON() ([]byte, error) {
16123 type NoMethod Table
16124 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16125 }
16126
16127 type TestOrder struct {
16128
16129 DeliveryDetails *TestOrderDeliveryDetails `json:"deliveryDetails,omitempty"`
16130
16131
16132 EnableOrderinvoices bool `json:"enableOrderinvoices,omitempty"`
16133
16134
16135 Kind string `json:"kind,omitempty"`
16136
16137
16138 LineItems []*TestOrderLineItem `json:"lineItems,omitempty"`
16139
16140 NotificationMode string `json:"notificationMode,omitempty"`
16141
16142 PickupDetails *TestOrderPickupDetails `json:"pickupDetails,omitempty"`
16143
16144
16145 PredefinedBillingAddress string `json:"predefinedBillingAddress,omitempty"`
16146
16147
16148
16149 PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"`
16150
16151
16152
16153 PredefinedEmail string `json:"predefinedEmail,omitempty"`
16154
16155
16156
16157 PredefinedPickupDetails string `json:"predefinedPickupDetails,omitempty"`
16158
16159 Promotions []*OrderPromotion `json:"promotions,omitempty"`
16160
16161
16162
16163
16164 ShippingCost *Price `json:"shippingCost,omitempty"`
16165
16166
16167
16168 ShippingOption string `json:"shippingOption,omitempty"`
16169
16170
16171
16172
16173
16174 ForceSendFields []string `json:"-"`
16175
16176
16177
16178
16179 NullFields []string `json:"-"`
16180 }
16181
16182 func (s *TestOrder) MarshalJSON() ([]byte, error) {
16183 type NoMethod TestOrder
16184 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16185 }
16186
16187 type TestOrderAddress struct {
16188
16189 Country string `json:"country,omitempty"`
16190
16191
16192
16193 FullAddress []string `json:"fullAddress,omitempty"`
16194
16195 IsPostOfficeBox bool `json:"isPostOfficeBox,omitempty"`
16196
16197
16198 Locality string `json:"locality,omitempty"`
16199
16200 PostalCode string `json:"postalCode,omitempty"`
16201
16202 RecipientName string `json:"recipientName,omitempty"`
16203
16204
16205 Region string `json:"region,omitempty"`
16206
16207
16208 StreetAddress []string `json:"streetAddress,omitempty"`
16209
16210
16211
16212
16213
16214 ForceSendFields []string `json:"-"`
16215
16216
16217
16218
16219 NullFields []string `json:"-"`
16220 }
16221
16222 func (s *TestOrderAddress) MarshalJSON() ([]byte, error) {
16223 type NoMethod TestOrderAddress
16224 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16225 }
16226
16227 type TestOrderDeliveryDetails struct {
16228
16229 Address *TestOrderAddress `json:"address,omitempty"`
16230
16231 IsScheduledDelivery bool `json:"isScheduledDelivery,omitempty"`
16232
16233 PhoneNumber string `json:"phoneNumber,omitempty"`
16234
16235
16236
16237
16238
16239 ForceSendFields []string `json:"-"`
16240
16241
16242
16243
16244 NullFields []string `json:"-"`
16245 }
16246
16247 func (s *TestOrderDeliveryDetails) MarshalJSON() ([]byte, error) {
16248 type NoMethod TestOrderDeliveryDetails
16249 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16250 }
16251
16252 type TestOrderLineItem struct {
16253
16254 Product *TestOrderLineItemProduct `json:"product,omitempty"`
16255
16256 QuantityOrdered int64 `json:"quantityOrdered,omitempty"`
16257
16258 ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"`
16259
16260
16261 ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"`
16262
16263
16264
16265
16266
16267 ForceSendFields []string `json:"-"`
16268
16269
16270
16271
16272 NullFields []string `json:"-"`
16273 }
16274
16275 func (s *TestOrderLineItem) MarshalJSON() ([]byte, error) {
16276 type NoMethod TestOrderLineItem
16277 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16278 }
16279
16280 type TestOrderLineItemProduct struct {
16281
16282 Brand string `json:"brand,omitempty"`
16283
16284
16285 Condition string `json:"condition,omitempty"`
16286
16287
16288 ContentLanguage string `json:"contentLanguage,omitempty"`
16289
16290 Fees []*OrderLineItemProductFee `json:"fees,omitempty"`
16291
16292 Gtin string `json:"gtin,omitempty"`
16293
16294 ImageLink string `json:"imageLink,omitempty"`
16295
16296
16297 ItemGroupId string `json:"itemGroupId,omitempty"`
16298
16299 Mpn string `json:"mpn,omitempty"`
16300
16301 OfferId string `json:"offerId,omitempty"`
16302
16303
16304
16305 Price *Price `json:"price,omitempty"`
16306
16307
16308 TargetCountry string `json:"targetCountry,omitempty"`
16309
16310 Title string `json:"title,omitempty"`
16311
16312 VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"`
16313
16314
16315
16316
16317
16318 ForceSendFields []string `json:"-"`
16319
16320
16321
16322
16323 NullFields []string `json:"-"`
16324 }
16325
16326 func (s *TestOrderLineItemProduct) MarshalJSON() ([]byte, error) {
16327 type NoMethod TestOrderLineItemProduct
16328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16329 }
16330
16331 type TestOrderPickupDetails struct {
16332
16333
16334 LocationCode string `json:"locationCode,omitempty"`
16335
16336 PickupLocationAddress *TestOrderAddress `json:"pickupLocationAddress,omitempty"`
16337
16338
16339 PickupLocationType string `json:"pickupLocationType,omitempty"`
16340
16341 PickupPersons []*TestOrderPickupDetailsPickupPerson `json:"pickupPersons,omitempty"`
16342
16343
16344
16345
16346
16347 ForceSendFields []string `json:"-"`
16348
16349
16350
16351
16352 NullFields []string `json:"-"`
16353 }
16354
16355 func (s *TestOrderPickupDetails) MarshalJSON() ([]byte, error) {
16356 type NoMethod TestOrderPickupDetails
16357 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16358 }
16359
16360 type TestOrderPickupDetailsPickupPerson struct {
16361
16362 Name string `json:"name,omitempty"`
16363
16364 PhoneNumber string `json:"phoneNumber,omitempty"`
16365
16366
16367
16368
16369
16370 ForceSendFields []string `json:"-"`
16371
16372
16373
16374
16375 NullFields []string `json:"-"`
16376 }
16377
16378 func (s *TestOrderPickupDetailsPickupPerson) MarshalJSON() ([]byte, error) {
16379 type NoMethod TestOrderPickupDetailsPickupPerson
16380 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16381 }
16382
16383
16384
16385 type TextWithTooltip struct {
16386
16387 SimpleTooltipValue string `json:"simpleTooltipValue,omitempty"`
16388
16389 SimpleValue string `json:"simpleValue,omitempty"`
16390
16391
16392
16393
16394
16395
16396
16397
16398
16399
16400 TooltipIconStyle string `json:"tooltipIconStyle,omitempty"`
16401
16402
16403
16404
16405
16406 ForceSendFields []string `json:"-"`
16407
16408
16409
16410
16411 NullFields []string `json:"-"`
16412 }
16413
16414 func (s *TextWithTooltip) MarshalJSON() ([]byte, error) {
16415 type NoMethod TextWithTooltip
16416 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16417 }
16418
16419
16420 type TimePeriod struct {
16421
16422 EndTime string `json:"endTime,omitempty"`
16423
16424 StartTime string `json:"startTime,omitempty"`
16425
16426
16427
16428
16429
16430 ForceSendFields []string `json:"-"`
16431
16432
16433
16434
16435 NullFields []string `json:"-"`
16436 }
16437
16438 func (s *TimePeriod) MarshalJSON() ([]byte, error) {
16439 type NoMethod TimePeriod
16440 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16441 }
16442
16443
16444
16445 type TimeZone struct {
16446
16447 Id string `json:"id,omitempty"`
16448
16449 Version string `json:"version,omitempty"`
16450
16451
16452
16453
16454
16455 ForceSendFields []string `json:"-"`
16456
16457
16458
16459
16460 NullFields []string `json:"-"`
16461 }
16462
16463 func (s *TimeZone) MarshalJSON() ([]byte, error) {
16464 type NoMethod TimeZone
16465 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16466 }
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478 type TopicTrends struct {
16479
16480
16481 CustomerCountryCode string `json:"customerCountryCode,omitempty"`
16482
16483 Date *Date `json:"date,omitempty"`
16484
16485
16486
16487 Last120DaysSearchInterest float64 `json:"last120DaysSearchInterest,omitempty"`
16488
16489
16490
16491 Last30DaysSearchInterest float64 `json:"last30DaysSearchInterest,omitempty"`
16492
16493
16494
16495 Last7DaysSearchInterest float64 `json:"last7DaysSearchInterest,omitempty"`
16496
16497
16498
16499 Last90DaysSearchInterest float64 `json:"last90DaysSearchInterest,omitempty"`
16500
16501
16502
16503 Next7DaysSearchInterest float64 `json:"next7DaysSearchInterest,omitempty"`
16504
16505
16506
16507 SearchInterest float64 `json:"searchInterest,omitempty"`
16508
16509
16510
16511 Topic string `json:"topic,omitempty"`
16512
16513
16514
16515
16516
16517 ForceSendFields []string `json:"-"`
16518
16519
16520
16521
16522 NullFields []string `json:"-"`
16523 }
16524
16525 func (s *TopicTrends) MarshalJSON() ([]byte, error) {
16526 type NoMethod TopicTrends
16527 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16528 }
16529
16530 func (s *TopicTrends) UnmarshalJSON(data []byte) error {
16531 type NoMethod TopicTrends
16532 var s1 struct {
16533 Last120DaysSearchInterest gensupport.JSONFloat64 `json:"last120DaysSearchInterest"`
16534 Last30DaysSearchInterest gensupport.JSONFloat64 `json:"last30DaysSearchInterest"`
16535 Last7DaysSearchInterest gensupport.JSONFloat64 `json:"last7DaysSearchInterest"`
16536 Last90DaysSearchInterest gensupport.JSONFloat64 `json:"last90DaysSearchInterest"`
16537 Next7DaysSearchInterest gensupport.JSONFloat64 `json:"next7DaysSearchInterest"`
16538 SearchInterest gensupport.JSONFloat64 `json:"searchInterest"`
16539 *NoMethod
16540 }
16541 s1.NoMethod = (*NoMethod)(s)
16542 if err := json.Unmarshal(data, &s1); err != nil {
16543 return err
16544 }
16545 s.Last120DaysSearchInterest = float64(s1.Last120DaysSearchInterest)
16546 s.Last30DaysSearchInterest = float64(s1.Last30DaysSearchInterest)
16547 s.Last7DaysSearchInterest = float64(s1.Last7DaysSearchInterest)
16548 s.Last90DaysSearchInterest = float64(s1.Last90DaysSearchInterest)
16549 s.Next7DaysSearchInterest = float64(s1.Next7DaysSearchInterest)
16550 s.SearchInterest = float64(s1.SearchInterest)
16551 return nil
16552 }
16553
16554 type TransitTable struct {
16555
16556
16557
16558
16559 PostalCodeGroupNames []string `json:"postalCodeGroupNames,omitempty"`
16560 Rows []*TransitTableTransitTimeRow `json:"rows,omitempty"`
16561
16562
16563
16564 TransitTimeLabels []string `json:"transitTimeLabels,omitempty"`
16565
16566
16567
16568
16569
16570 ForceSendFields []string `json:"-"`
16571
16572
16573
16574
16575 NullFields []string `json:"-"`
16576 }
16577
16578 func (s *TransitTable) MarshalJSON() ([]byte, error) {
16579 type NoMethod TransitTable
16580 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16581 }
16582
16583 type TransitTableTransitTimeRow struct {
16584 Values []*TransitTableTransitTimeRowTransitTimeValue `json:"values,omitempty"`
16585
16586
16587
16588
16589
16590 ForceSendFields []string `json:"-"`
16591
16592
16593
16594
16595 NullFields []string `json:"-"`
16596 }
16597
16598 func (s *TransitTableTransitTimeRow) MarshalJSON() ([]byte, error) {
16599 type NoMethod TransitTableTransitTimeRow
16600 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16601 }
16602
16603 type TransitTableTransitTimeRowTransitTimeValue struct {
16604
16605
16606 MaxTransitTimeInDays int64 `json:"maxTransitTimeInDays,omitempty"`
16607
16608
16609 MinTransitTimeInDays int64 `json:"minTransitTimeInDays,omitempty"`
16610
16611
16612
16613
16614
16615 ForceSendFields []string `json:"-"`
16616
16617
16618
16619
16620 NullFields []string `json:"-"`
16621 }
16622
16623 func (s *TransitTableTransitTimeRowTransitTimeValue) MarshalJSON() ([]byte, error) {
16624 type NoMethod TransitTableTransitTimeRowTransitTimeValue
16625 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16626 }
16627
16628
16629 type TriggerActionPayload struct {
16630
16631
16632
16633 ActionContext string `json:"actionContext,omitempty"`
16634
16635 ActionInput *ActionInput `json:"actionInput,omitempty"`
16636
16637
16638
16639
16640
16641 ForceSendFields []string `json:"-"`
16642
16643
16644
16645
16646 NullFields []string `json:"-"`
16647 }
16648
16649 func (s *TriggerActionPayload) MarshalJSON() ([]byte, error) {
16650 type NoMethod TriggerActionPayload
16651 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16652 }
16653
16654
16655 type TriggerActionResponse struct {
16656
16657 Message string `json:"message,omitempty"`
16658
16659
16660 googleapi.ServerResponse `json:"-"`
16661
16662
16663
16664
16665
16666 ForceSendFields []string `json:"-"`
16667
16668
16669
16670
16671 NullFields []string `json:"-"`
16672 }
16673
16674 func (s *TriggerActionResponse) MarshalJSON() ([]byte, error) {
16675 type NoMethod TriggerActionResponse
16676 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16677 }
16678
16679
16680
16681 type UndeleteConversionSourceRequest struct {
16682 }
16683
16684 type UnitInvoice struct {
16685
16686
16687 AdditionalCharges []*UnitInvoiceAdditionalCharge `json:"additionalCharges,omitempty"`
16688
16689
16690
16691
16692 UnitPrice *Price `json:"unitPrice,omitempty"`
16693
16694 UnitPriceTaxes []*UnitInvoiceTaxLine `json:"unitPriceTaxes,omitempty"`
16695
16696
16697
16698
16699
16700 ForceSendFields []string `json:"-"`
16701
16702
16703
16704
16705 NullFields []string `json:"-"`
16706 }
16707
16708 func (s *UnitInvoice) MarshalJSON() ([]byte, error) {
16709 type NoMethod UnitInvoice
16710 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16711 }
16712
16713 type UnitInvoiceAdditionalCharge struct {
16714
16715
16716
16717
16718 AdditionalChargeAmount *Amount `json:"additionalChargeAmount,omitempty"`
16719
16720
16721 Type string `json:"type,omitempty"`
16722
16723
16724
16725
16726
16727 ForceSendFields []string `json:"-"`
16728
16729
16730
16731
16732 NullFields []string `json:"-"`
16733 }
16734
16735 func (s *UnitInvoiceAdditionalCharge) MarshalJSON() ([]byte, error) {
16736 type NoMethod UnitInvoiceAdditionalCharge
16737 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16738 }
16739
16740 type UnitInvoiceTaxLine struct {
16741
16742 TaxAmount *Price `json:"taxAmount,omitempty"`
16743
16744
16745 TaxName string `json:"taxName,omitempty"`
16746
16747
16748 TaxType string `json:"taxType,omitempty"`
16749
16750
16751
16752
16753
16754 ForceSendFields []string `json:"-"`
16755
16756
16757
16758
16759 NullFields []string `json:"-"`
16760 }
16761
16762 func (s *UnitInvoiceTaxLine) MarshalJSON() ([]byte, error) {
16763 type NoMethod UnitInvoiceTaxLine
16764 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16765 }
16766
16767
16768
16769
16770
16771
16772 type UrlSettings struct {
16773
16774
16775
16776 CartUriTemplate string `json:"cartUriTemplate,omitempty"`
16777
16778
16779 CheckoutUriTemplate string `json:"checkoutUriTemplate,omitempty"`
16780
16781
16782
16783
16784
16785 ForceSendFields []string `json:"-"`
16786
16787
16788
16789
16790 NullFields []string `json:"-"`
16791 }
16792
16793 func (s *UrlSettings) MarshalJSON() ([]byte, error) {
16794 type NoMethod UrlSettings
16795 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16796 }
16797
16798
16799
16800
16801 type Value struct {
16802
16803
16804
16805 CarrierRateName string `json:"carrierRateName,omitempty"`
16806
16807 FlatRate *Price `json:"flatRate,omitempty"`
16808
16809
16810 NoShipping bool `json:"noShipping,omitempty"`
16811
16812
16813
16814 PricePercentage string `json:"pricePercentage,omitempty"`
16815
16816
16817 SubtableName string `json:"subtableName,omitempty"`
16818
16819
16820
16821
16822
16823 ForceSendFields []string `json:"-"`
16824
16825
16826
16827
16828 NullFields []string `json:"-"`
16829 }
16830
16831 func (s *Value) MarshalJSON() ([]byte, error) {
16832 type NoMethod Value
16833 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16834 }
16835
16836
16837 type VerifyPhoneNumberRequest struct {
16838
16839
16840
16841
16842
16843
16844
16845 PhoneVerificationMethod string `json:"phoneVerificationMethod,omitempty"`
16846
16847
16848 VerificationCode string `json:"verificationCode,omitempty"`
16849
16850 VerificationId string `json:"verificationId,omitempty"`
16851
16852
16853
16854
16855
16856 ForceSendFields []string `json:"-"`
16857
16858
16859
16860
16861 NullFields []string `json:"-"`
16862 }
16863
16864 func (s *VerifyPhoneNumberRequest) MarshalJSON() ([]byte, error) {
16865 type NoMethod VerifyPhoneNumberRequest
16866 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16867 }
16868
16869
16870
16871 type VerifyPhoneNumberResponse struct {
16872
16873
16874 VerifiedPhoneNumber string `json:"verifiedPhoneNumber,omitempty"`
16875
16876
16877 googleapi.ServerResponse `json:"-"`
16878
16879
16880
16881
16882
16883 ForceSendFields []string `json:"-"`
16884
16885
16886
16887
16888 NullFields []string `json:"-"`
16889 }
16890
16891 func (s *VerifyPhoneNumberResponse) MarshalJSON() ([]byte, error) {
16892 type NoMethod VerifyPhoneNumberResponse
16893 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16894 }
16895
16896
16897 type Warehouse struct {
16898
16899
16900 BusinessDayConfig *BusinessDayConfig `json:"businessDayConfig,omitempty"`
16901
16902
16903
16904 CutoffTime *WarehouseCutoffTime `json:"cutoffTime,omitempty"`
16905
16906
16907
16908 HandlingDays int64 `json:"handlingDays,omitempty,string"`
16909
16910 Name string `json:"name,omitempty"`
16911
16912 ShippingAddress *Address `json:"shippingAddress,omitempty"`
16913
16914
16915
16916
16917
16918 ForceSendFields []string `json:"-"`
16919
16920
16921
16922
16923 NullFields []string `json:"-"`
16924 }
16925
16926 func (s *Warehouse) MarshalJSON() ([]byte, error) {
16927 type NoMethod Warehouse
16928 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16929 }
16930
16931 type WarehouseBasedDeliveryTime struct {
16932
16933
16934
16935 Carrier string `json:"carrier,omitempty"`
16936
16937
16938
16939
16940 CarrierService string `json:"carrierService,omitempty"`
16941
16942 OriginAdministrativeArea string `json:"originAdministrativeArea,omitempty"`
16943
16944 OriginCity string `json:"originCity,omitempty"`
16945
16946
16947 OriginCountry string `json:"originCountry,omitempty"`
16948
16949 OriginPostalCode string `json:"originPostalCode,omitempty"`
16950
16951 OriginStreetAddress string `json:"originStreetAddress,omitempty"`
16952
16953
16954
16955 WarehouseName string `json:"warehouseName,omitempty"`
16956
16957
16958
16959
16960
16961 ForceSendFields []string `json:"-"`
16962
16963
16964
16965
16966 NullFields []string `json:"-"`
16967 }
16968
16969 func (s *WarehouseBasedDeliveryTime) MarshalJSON() ([]byte, error) {
16970 type NoMethod WarehouseBasedDeliveryTime
16971 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16972 }
16973
16974 type WarehouseCutoffTime struct {
16975
16976
16977
16978 Hour int64 `json:"hour,omitempty"`
16979
16980
16981
16982 Minute int64 `json:"minute,omitempty"`
16983
16984
16985
16986
16987
16988 ForceSendFields []string `json:"-"`
16989
16990
16991
16992
16993 NullFields []string `json:"-"`
16994 }
16995
16996 func (s *WarehouseCutoffTime) MarshalJSON() ([]byte, error) {
16997 type NoMethod WarehouseCutoffTime
16998 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16999 }
17000
17001 type Weight struct {
17002
17003 Unit string `json:"unit,omitempty"`
17004
17005
17006 Value string `json:"value,omitempty"`
17007
17008
17009
17010
17011
17012 ForceSendFields []string `json:"-"`
17013
17014
17015
17016
17017 NullFields []string `json:"-"`
17018 }
17019
17020 func (s *Weight) MarshalJSON() ([]byte, error) {
17021 type NoMethod Weight
17022 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17023 }
17024
17025 type AccountsAuthinfoCall struct {
17026 s *APIService
17027 urlParams_ gensupport.URLParams
17028 ifNoneMatch_ string
17029 ctx_ context.Context
17030 header_ http.Header
17031 }
17032
17033
17034 func (r *AccountsService) Authinfo() *AccountsAuthinfoCall {
17035 c := &AccountsAuthinfoCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17036 return c
17037 }
17038
17039
17040
17041
17042 func (c *AccountsAuthinfoCall) Fields(s ...googleapi.Field) *AccountsAuthinfoCall {
17043 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17044 return c
17045 }
17046
17047
17048
17049
17050 func (c *AccountsAuthinfoCall) IfNoneMatch(entityTag string) *AccountsAuthinfoCall {
17051 c.ifNoneMatch_ = entityTag
17052 return c
17053 }
17054
17055
17056 func (c *AccountsAuthinfoCall) Context(ctx context.Context) *AccountsAuthinfoCall {
17057 c.ctx_ = ctx
17058 return c
17059 }
17060
17061
17062
17063 func (c *AccountsAuthinfoCall) Header() http.Header {
17064 if c.header_ == nil {
17065 c.header_ = make(http.Header)
17066 }
17067 return c.header_
17068 }
17069
17070 func (c *AccountsAuthinfoCall) doRequest(alt string) (*http.Response, error) {
17071 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17072 if c.ifNoneMatch_ != "" {
17073 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17074 }
17075 var body io.Reader = nil
17076 c.urlParams_.Set("alt", alt)
17077 c.urlParams_.Set("prettyPrint", "false")
17078 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/authinfo")
17079 urls += "?" + c.urlParams_.Encode()
17080 req, err := http.NewRequest("GET", urls, body)
17081 if err != nil {
17082 return nil, err
17083 }
17084 req.Header = reqHeaders
17085 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17086 }
17087
17088
17089
17090
17091
17092
17093
17094 func (c *AccountsAuthinfoCall) Do(opts ...googleapi.CallOption) (*AccountsAuthInfoResponse, error) {
17095 gensupport.SetOptions(c.urlParams_, opts...)
17096 res, err := c.doRequest("json")
17097 if res != nil && res.StatusCode == http.StatusNotModified {
17098 if res.Body != nil {
17099 res.Body.Close()
17100 }
17101 return nil, gensupport.WrapError(&googleapi.Error{
17102 Code: res.StatusCode,
17103 Header: res.Header,
17104 })
17105 }
17106 if err != nil {
17107 return nil, err
17108 }
17109 defer googleapi.CloseBody(res)
17110 if err := googleapi.CheckResponse(res); err != nil {
17111 return nil, gensupport.WrapError(err)
17112 }
17113 ret := &AccountsAuthInfoResponse{
17114 ServerResponse: googleapi.ServerResponse{
17115 Header: res.Header,
17116 HTTPStatusCode: res.StatusCode,
17117 },
17118 }
17119 target := &ret
17120 if err := gensupport.DecodeResponse(target, res); err != nil {
17121 return nil, err
17122 }
17123 return ret, nil
17124 }
17125
17126 type AccountsClaimwebsiteCall struct {
17127 s *APIService
17128 merchantId uint64
17129 accountId uint64
17130 urlParams_ gensupport.URLParams
17131 ctx_ context.Context
17132 header_ http.Header
17133 }
17134
17135
17136
17137
17138
17139
17140
17141
17142 func (r *AccountsService) Claimwebsite(merchantId uint64, accountId uint64) *AccountsClaimwebsiteCall {
17143 c := &AccountsClaimwebsiteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17144 c.merchantId = merchantId
17145 c.accountId = accountId
17146 return c
17147 }
17148
17149
17150
17151
17152
17153
17154 func (c *AccountsClaimwebsiteCall) Overwrite(overwrite bool) *AccountsClaimwebsiteCall {
17155 c.urlParams_.Set("overwrite", fmt.Sprint(overwrite))
17156 return c
17157 }
17158
17159
17160
17161
17162 func (c *AccountsClaimwebsiteCall) Fields(s ...googleapi.Field) *AccountsClaimwebsiteCall {
17163 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17164 return c
17165 }
17166
17167
17168 func (c *AccountsClaimwebsiteCall) Context(ctx context.Context) *AccountsClaimwebsiteCall {
17169 c.ctx_ = ctx
17170 return c
17171 }
17172
17173
17174
17175 func (c *AccountsClaimwebsiteCall) Header() http.Header {
17176 if c.header_ == nil {
17177 c.header_ = make(http.Header)
17178 }
17179 return c.header_
17180 }
17181
17182 func (c *AccountsClaimwebsiteCall) doRequest(alt string) (*http.Response, error) {
17183 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17184 var body io.Reader = nil
17185 c.urlParams_.Set("alt", alt)
17186 c.urlParams_.Set("prettyPrint", "false")
17187 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/claimwebsite")
17188 urls += "?" + c.urlParams_.Encode()
17189 req, err := http.NewRequest("POST", urls, body)
17190 if err != nil {
17191 return nil, err
17192 }
17193 req.Header = reqHeaders
17194 googleapi.Expand(req.URL, map[string]string{
17195 "merchantId": strconv.FormatUint(c.merchantId, 10),
17196 "accountId": strconv.FormatUint(c.accountId, 10),
17197 })
17198 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17199 }
17200
17201
17202
17203
17204
17205
17206
17207 func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsClaimWebsiteResponse, error) {
17208 gensupport.SetOptions(c.urlParams_, opts...)
17209 res, err := c.doRequest("json")
17210 if res != nil && res.StatusCode == http.StatusNotModified {
17211 if res.Body != nil {
17212 res.Body.Close()
17213 }
17214 return nil, gensupport.WrapError(&googleapi.Error{
17215 Code: res.StatusCode,
17216 Header: res.Header,
17217 })
17218 }
17219 if err != nil {
17220 return nil, err
17221 }
17222 defer googleapi.CloseBody(res)
17223 if err := googleapi.CheckResponse(res); err != nil {
17224 return nil, gensupport.WrapError(err)
17225 }
17226 ret := &AccountsClaimWebsiteResponse{
17227 ServerResponse: googleapi.ServerResponse{
17228 Header: res.Header,
17229 HTTPStatusCode: res.StatusCode,
17230 },
17231 }
17232 target := &ret
17233 if err := gensupport.DecodeResponse(target, res); err != nil {
17234 return nil, err
17235 }
17236 return ret, nil
17237 }
17238
17239 type AccountsCustombatchCall struct {
17240 s *APIService
17241 accountscustombatchrequest *AccountsCustomBatchRequest
17242 urlParams_ gensupport.URLParams
17243 ctx_ context.Context
17244 header_ http.Header
17245 }
17246
17247
17248
17249 func (r *AccountsService) Custombatch(accountscustombatchrequest *AccountsCustomBatchRequest) *AccountsCustombatchCall {
17250 c := &AccountsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17251 c.accountscustombatchrequest = accountscustombatchrequest
17252 return c
17253 }
17254
17255
17256
17257
17258 func (c *AccountsCustombatchCall) Fields(s ...googleapi.Field) *AccountsCustombatchCall {
17259 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17260 return c
17261 }
17262
17263
17264 func (c *AccountsCustombatchCall) Context(ctx context.Context) *AccountsCustombatchCall {
17265 c.ctx_ = ctx
17266 return c
17267 }
17268
17269
17270
17271 func (c *AccountsCustombatchCall) Header() http.Header {
17272 if c.header_ == nil {
17273 c.header_ = make(http.Header)
17274 }
17275 return c.header_
17276 }
17277
17278 func (c *AccountsCustombatchCall) doRequest(alt string) (*http.Response, error) {
17279 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17280 var body io.Reader = nil
17281 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountscustombatchrequest)
17282 if err != nil {
17283 return nil, err
17284 }
17285 c.urlParams_.Set("alt", alt)
17286 c.urlParams_.Set("prettyPrint", "false")
17287 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/batch")
17288 urls += "?" + c.urlParams_.Encode()
17289 req, err := http.NewRequest("POST", urls, body)
17290 if err != nil {
17291 return nil, err
17292 }
17293 req.Header = reqHeaders
17294 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17295 }
17296
17297
17298
17299
17300
17301
17302
17303 func (c *AccountsCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountsCustomBatchResponse, error) {
17304 gensupport.SetOptions(c.urlParams_, opts...)
17305 res, err := c.doRequest("json")
17306 if res != nil && res.StatusCode == http.StatusNotModified {
17307 if res.Body != nil {
17308 res.Body.Close()
17309 }
17310 return nil, gensupport.WrapError(&googleapi.Error{
17311 Code: res.StatusCode,
17312 Header: res.Header,
17313 })
17314 }
17315 if err != nil {
17316 return nil, err
17317 }
17318 defer googleapi.CloseBody(res)
17319 if err := googleapi.CheckResponse(res); err != nil {
17320 return nil, gensupport.WrapError(err)
17321 }
17322 ret := &AccountsCustomBatchResponse{
17323 ServerResponse: googleapi.ServerResponse{
17324 Header: res.Header,
17325 HTTPStatusCode: res.StatusCode,
17326 },
17327 }
17328 target := &ret
17329 if err := gensupport.DecodeResponse(target, res); err != nil {
17330 return nil, err
17331 }
17332 return ret, nil
17333 }
17334
17335 type AccountsDeleteCall struct {
17336 s *APIService
17337 merchantId uint64
17338 accountId uint64
17339 urlParams_ gensupport.URLParams
17340 ctx_ context.Context
17341 header_ http.Header
17342 }
17343
17344
17345
17346
17347
17348
17349 func (r *AccountsService) Delete(merchantId uint64, accountId uint64) *AccountsDeleteCall {
17350 c := &AccountsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17351 c.merchantId = merchantId
17352 c.accountId = accountId
17353 return c
17354 }
17355
17356
17357
17358 func (c *AccountsDeleteCall) Force(force bool) *AccountsDeleteCall {
17359 c.urlParams_.Set("force", fmt.Sprint(force))
17360 return c
17361 }
17362
17363
17364
17365
17366 func (c *AccountsDeleteCall) Fields(s ...googleapi.Field) *AccountsDeleteCall {
17367 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17368 return c
17369 }
17370
17371
17372 func (c *AccountsDeleteCall) Context(ctx context.Context) *AccountsDeleteCall {
17373 c.ctx_ = ctx
17374 return c
17375 }
17376
17377
17378
17379 func (c *AccountsDeleteCall) Header() http.Header {
17380 if c.header_ == nil {
17381 c.header_ = make(http.Header)
17382 }
17383 return c.header_
17384 }
17385
17386 func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) {
17387 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17388 var body io.Reader = nil
17389 c.urlParams_.Set("alt", alt)
17390 c.urlParams_.Set("prettyPrint", "false")
17391 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}")
17392 urls += "?" + c.urlParams_.Encode()
17393 req, err := http.NewRequest("DELETE", urls, body)
17394 if err != nil {
17395 return nil, err
17396 }
17397 req.Header = reqHeaders
17398 googleapi.Expand(req.URL, map[string]string{
17399 "merchantId": strconv.FormatUint(c.merchantId, 10),
17400 "accountId": strconv.FormatUint(c.accountId, 10),
17401 })
17402 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17403 }
17404
17405
17406 func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) error {
17407 gensupport.SetOptions(c.urlParams_, opts...)
17408 res, err := c.doRequest("json")
17409 if err != nil {
17410 return err
17411 }
17412 defer googleapi.CloseBody(res)
17413 if err := googleapi.CheckResponse(res); err != nil {
17414 return gensupport.WrapError(err)
17415 }
17416 return nil
17417 }
17418
17419 type AccountsGetCall struct {
17420 s *APIService
17421 merchantId uint64
17422 accountId uint64
17423 urlParams_ gensupport.URLParams
17424 ifNoneMatch_ string
17425 ctx_ context.Context
17426 header_ http.Header
17427 }
17428
17429
17430
17431
17432
17433
17434
17435 func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetCall {
17436 c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17437 c.merchantId = merchantId
17438 c.accountId = accountId
17439 return c
17440 }
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450 func (c *AccountsGetCall) View(view string) *AccountsGetCall {
17451 c.urlParams_.Set("view", view)
17452 return c
17453 }
17454
17455
17456
17457
17458 func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall {
17459 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17460 return c
17461 }
17462
17463
17464
17465
17466 func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall {
17467 c.ifNoneMatch_ = entityTag
17468 return c
17469 }
17470
17471
17472 func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall {
17473 c.ctx_ = ctx
17474 return c
17475 }
17476
17477
17478
17479 func (c *AccountsGetCall) Header() http.Header {
17480 if c.header_ == nil {
17481 c.header_ = make(http.Header)
17482 }
17483 return c.header_
17484 }
17485
17486 func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) {
17487 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17488 if c.ifNoneMatch_ != "" {
17489 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17490 }
17491 var body io.Reader = nil
17492 c.urlParams_.Set("alt", alt)
17493 c.urlParams_.Set("prettyPrint", "false")
17494 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}")
17495 urls += "?" + c.urlParams_.Encode()
17496 req, err := http.NewRequest("GET", urls, body)
17497 if err != nil {
17498 return nil, err
17499 }
17500 req.Header = reqHeaders
17501 googleapi.Expand(req.URL, map[string]string{
17502 "merchantId": strconv.FormatUint(c.merchantId, 10),
17503 "accountId": strconv.FormatUint(c.accountId, 10),
17504 })
17505 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17506 }
17507
17508
17509
17510
17511
17512
17513 func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) {
17514 gensupport.SetOptions(c.urlParams_, opts...)
17515 res, err := c.doRequest("json")
17516 if res != nil && res.StatusCode == http.StatusNotModified {
17517 if res.Body != nil {
17518 res.Body.Close()
17519 }
17520 return nil, gensupport.WrapError(&googleapi.Error{
17521 Code: res.StatusCode,
17522 Header: res.Header,
17523 })
17524 }
17525 if err != nil {
17526 return nil, err
17527 }
17528 defer googleapi.CloseBody(res)
17529 if err := googleapi.CheckResponse(res); err != nil {
17530 return nil, gensupport.WrapError(err)
17531 }
17532 ret := &Account{
17533 ServerResponse: googleapi.ServerResponse{
17534 Header: res.Header,
17535 HTTPStatusCode: res.StatusCode,
17536 },
17537 }
17538 target := &ret
17539 if err := gensupport.DecodeResponse(target, res); err != nil {
17540 return nil, err
17541 }
17542 return ret, nil
17543 }
17544
17545 type AccountsInsertCall struct {
17546 s *APIService
17547 merchantId uint64
17548 account *Account
17549 urlParams_ gensupport.URLParams
17550 ctx_ context.Context
17551 header_ http.Header
17552 }
17553
17554
17555
17556
17557
17558 func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsInsertCall {
17559 c := &AccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17560 c.merchantId = merchantId
17561 c.account = account
17562 return c
17563 }
17564
17565
17566
17567
17568 func (c *AccountsInsertCall) Fields(s ...googleapi.Field) *AccountsInsertCall {
17569 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17570 return c
17571 }
17572
17573
17574 func (c *AccountsInsertCall) Context(ctx context.Context) *AccountsInsertCall {
17575 c.ctx_ = ctx
17576 return c
17577 }
17578
17579
17580
17581 func (c *AccountsInsertCall) Header() http.Header {
17582 if c.header_ == nil {
17583 c.header_ = make(http.Header)
17584 }
17585 return c.header_
17586 }
17587
17588 func (c *AccountsInsertCall) doRequest(alt string) (*http.Response, error) {
17589 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17590 var body io.Reader = nil
17591 body, err := googleapi.WithoutDataWrapper.JSONReader(c.account)
17592 if err != nil {
17593 return nil, err
17594 }
17595 c.urlParams_.Set("alt", alt)
17596 c.urlParams_.Set("prettyPrint", "false")
17597 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts")
17598 urls += "?" + c.urlParams_.Encode()
17599 req, err := http.NewRequest("POST", urls, body)
17600 if err != nil {
17601 return nil, err
17602 }
17603 req.Header = reqHeaders
17604 googleapi.Expand(req.URL, map[string]string{
17605 "merchantId": strconv.FormatUint(c.merchantId, 10),
17606 })
17607 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17608 }
17609
17610
17611
17612
17613
17614
17615 func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) {
17616 gensupport.SetOptions(c.urlParams_, opts...)
17617 res, err := c.doRequest("json")
17618 if res != nil && res.StatusCode == http.StatusNotModified {
17619 if res.Body != nil {
17620 res.Body.Close()
17621 }
17622 return nil, gensupport.WrapError(&googleapi.Error{
17623 Code: res.StatusCode,
17624 Header: res.Header,
17625 })
17626 }
17627 if err != nil {
17628 return nil, err
17629 }
17630 defer googleapi.CloseBody(res)
17631 if err := googleapi.CheckResponse(res); err != nil {
17632 return nil, gensupport.WrapError(err)
17633 }
17634 ret := &Account{
17635 ServerResponse: googleapi.ServerResponse{
17636 Header: res.Header,
17637 HTTPStatusCode: res.StatusCode,
17638 },
17639 }
17640 target := &ret
17641 if err := gensupport.DecodeResponse(target, res); err != nil {
17642 return nil, err
17643 }
17644 return ret, nil
17645 }
17646
17647 type AccountsLinkCall struct {
17648 s *APIService
17649 merchantId uint64
17650 accountId uint64
17651 accountslinkrequest *AccountsLinkRequest
17652 urlParams_ gensupport.URLParams
17653 ctx_ context.Context
17654 header_ http.Header
17655 }
17656
17657
17658
17659
17660
17661
17662
17663
17664 func (r *AccountsService) Link(merchantId uint64, accountId uint64, accountslinkrequest *AccountsLinkRequest) *AccountsLinkCall {
17665 c := &AccountsLinkCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17666 c.merchantId = merchantId
17667 c.accountId = accountId
17668 c.accountslinkrequest = accountslinkrequest
17669 return c
17670 }
17671
17672
17673
17674
17675 func (c *AccountsLinkCall) Fields(s ...googleapi.Field) *AccountsLinkCall {
17676 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17677 return c
17678 }
17679
17680
17681 func (c *AccountsLinkCall) Context(ctx context.Context) *AccountsLinkCall {
17682 c.ctx_ = ctx
17683 return c
17684 }
17685
17686
17687
17688 func (c *AccountsLinkCall) Header() http.Header {
17689 if c.header_ == nil {
17690 c.header_ = make(http.Header)
17691 }
17692 return c.header_
17693 }
17694
17695 func (c *AccountsLinkCall) doRequest(alt string) (*http.Response, error) {
17696 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17697 var body io.Reader = nil
17698 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountslinkrequest)
17699 if err != nil {
17700 return nil, err
17701 }
17702 c.urlParams_.Set("alt", alt)
17703 c.urlParams_.Set("prettyPrint", "false")
17704 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/link")
17705 urls += "?" + c.urlParams_.Encode()
17706 req, err := http.NewRequest("POST", urls, body)
17707 if err != nil {
17708 return nil, err
17709 }
17710 req.Header = reqHeaders
17711 googleapi.Expand(req.URL, map[string]string{
17712 "merchantId": strconv.FormatUint(c.merchantId, 10),
17713 "accountId": strconv.FormatUint(c.accountId, 10),
17714 })
17715 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17716 }
17717
17718
17719
17720
17721
17722
17723
17724 func (c *AccountsLinkCall) Do(opts ...googleapi.CallOption) (*AccountsLinkResponse, error) {
17725 gensupport.SetOptions(c.urlParams_, opts...)
17726 res, err := c.doRequest("json")
17727 if res != nil && res.StatusCode == http.StatusNotModified {
17728 if res.Body != nil {
17729 res.Body.Close()
17730 }
17731 return nil, gensupport.WrapError(&googleapi.Error{
17732 Code: res.StatusCode,
17733 Header: res.Header,
17734 })
17735 }
17736 if err != nil {
17737 return nil, err
17738 }
17739 defer googleapi.CloseBody(res)
17740 if err := googleapi.CheckResponse(res); err != nil {
17741 return nil, gensupport.WrapError(err)
17742 }
17743 ret := &AccountsLinkResponse{
17744 ServerResponse: googleapi.ServerResponse{
17745 Header: res.Header,
17746 HTTPStatusCode: res.StatusCode,
17747 },
17748 }
17749 target := &ret
17750 if err := gensupport.DecodeResponse(target, res); err != nil {
17751 return nil, err
17752 }
17753 return ret, nil
17754 }
17755
17756 type AccountsListCall struct {
17757 s *APIService
17758 merchantId uint64
17759 urlParams_ gensupport.URLParams
17760 ifNoneMatch_ string
17761 ctx_ context.Context
17762 header_ http.Header
17763 }
17764
17765
17766
17767
17768
17769 func (r *AccountsService) List(merchantId uint64) *AccountsListCall {
17770 c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17771 c.merchantId = merchantId
17772 return c
17773 }
17774
17775
17776
17777 func (c *AccountsListCall) Label(label uint64) *AccountsListCall {
17778 c.urlParams_.Set("label", fmt.Sprint(label))
17779 return c
17780 }
17781
17782
17783
17784 func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall {
17785 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
17786 return c
17787 }
17788
17789
17790
17791 func (c *AccountsListCall) Name(name string) *AccountsListCall {
17792 c.urlParams_.Set("name", name)
17793 return c
17794 }
17795
17796
17797
17798 func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall {
17799 c.urlParams_.Set("pageToken", pageToken)
17800 return c
17801 }
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811 func (c *AccountsListCall) View(view string) *AccountsListCall {
17812 c.urlParams_.Set("view", view)
17813 return c
17814 }
17815
17816
17817
17818
17819 func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall {
17820 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17821 return c
17822 }
17823
17824
17825
17826
17827 func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall {
17828 c.ifNoneMatch_ = entityTag
17829 return c
17830 }
17831
17832
17833 func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall {
17834 c.ctx_ = ctx
17835 return c
17836 }
17837
17838
17839
17840 func (c *AccountsListCall) Header() http.Header {
17841 if c.header_ == nil {
17842 c.header_ = make(http.Header)
17843 }
17844 return c.header_
17845 }
17846
17847 func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) {
17848 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17849 if c.ifNoneMatch_ != "" {
17850 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17851 }
17852 var body io.Reader = nil
17853 c.urlParams_.Set("alt", alt)
17854 c.urlParams_.Set("prettyPrint", "false")
17855 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts")
17856 urls += "?" + c.urlParams_.Encode()
17857 req, err := http.NewRequest("GET", urls, body)
17858 if err != nil {
17859 return nil, err
17860 }
17861 req.Header = reqHeaders
17862 googleapi.Expand(req.URL, map[string]string{
17863 "merchantId": strconv.FormatUint(c.merchantId, 10),
17864 })
17865 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17866 }
17867
17868
17869
17870
17871
17872
17873
17874 func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) {
17875 gensupport.SetOptions(c.urlParams_, opts...)
17876 res, err := c.doRequest("json")
17877 if res != nil && res.StatusCode == http.StatusNotModified {
17878 if res.Body != nil {
17879 res.Body.Close()
17880 }
17881 return nil, gensupport.WrapError(&googleapi.Error{
17882 Code: res.StatusCode,
17883 Header: res.Header,
17884 })
17885 }
17886 if err != nil {
17887 return nil, err
17888 }
17889 defer googleapi.CloseBody(res)
17890 if err := googleapi.CheckResponse(res); err != nil {
17891 return nil, gensupport.WrapError(err)
17892 }
17893 ret := &AccountsListResponse{
17894 ServerResponse: googleapi.ServerResponse{
17895 Header: res.Header,
17896 HTTPStatusCode: res.StatusCode,
17897 },
17898 }
17899 target := &ret
17900 if err := gensupport.DecodeResponse(target, res); err != nil {
17901 return nil, err
17902 }
17903 return ret, nil
17904 }
17905
17906
17907
17908
17909 func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error {
17910 c.ctx_ = ctx
17911 defer c.PageToken(c.urlParams_.Get("pageToken"))
17912 for {
17913 x, err := c.Do()
17914 if err != nil {
17915 return err
17916 }
17917 if err := f(x); err != nil {
17918 return err
17919 }
17920 if x.NextPageToken == "" {
17921 return nil
17922 }
17923 c.PageToken(x.NextPageToken)
17924 }
17925 }
17926
17927 type AccountsListlinksCall struct {
17928 s *APIService
17929 merchantId uint64
17930 accountId uint64
17931 urlParams_ gensupport.URLParams
17932 ifNoneMatch_ string
17933 ctx_ context.Context
17934 header_ http.Header
17935 }
17936
17937
17938
17939
17940
17941
17942
17943
17944 func (r *AccountsService) Listlinks(merchantId uint64, accountId uint64) *AccountsListlinksCall {
17945 c := &AccountsListlinksCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17946 c.merchantId = merchantId
17947 c.accountId = accountId
17948 return c
17949 }
17950
17951
17952
17953
17954
17955 func (c *AccountsListlinksCall) MaxResults(maxResults int64) *AccountsListlinksCall {
17956 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
17957 return c
17958 }
17959
17960
17961
17962 func (c *AccountsListlinksCall) PageToken(pageToken string) *AccountsListlinksCall {
17963 c.urlParams_.Set("pageToken", pageToken)
17964 return c
17965 }
17966
17967
17968
17969
17970 func (c *AccountsListlinksCall) Fields(s ...googleapi.Field) *AccountsListlinksCall {
17971 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17972 return c
17973 }
17974
17975
17976
17977
17978 func (c *AccountsListlinksCall) IfNoneMatch(entityTag string) *AccountsListlinksCall {
17979 c.ifNoneMatch_ = entityTag
17980 return c
17981 }
17982
17983
17984 func (c *AccountsListlinksCall) Context(ctx context.Context) *AccountsListlinksCall {
17985 c.ctx_ = ctx
17986 return c
17987 }
17988
17989
17990
17991 func (c *AccountsListlinksCall) Header() http.Header {
17992 if c.header_ == nil {
17993 c.header_ = make(http.Header)
17994 }
17995 return c.header_
17996 }
17997
17998 func (c *AccountsListlinksCall) doRequest(alt string) (*http.Response, error) {
17999 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18000 if c.ifNoneMatch_ != "" {
18001 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18002 }
18003 var body io.Reader = nil
18004 c.urlParams_.Set("alt", alt)
18005 c.urlParams_.Set("prettyPrint", "false")
18006 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/listlinks")
18007 urls += "?" + c.urlParams_.Encode()
18008 req, err := http.NewRequest("GET", urls, body)
18009 if err != nil {
18010 return nil, err
18011 }
18012 req.Header = reqHeaders
18013 googleapi.Expand(req.URL, map[string]string{
18014 "merchantId": strconv.FormatUint(c.merchantId, 10),
18015 "accountId": strconv.FormatUint(c.accountId, 10),
18016 })
18017 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18018 }
18019
18020
18021
18022
18023
18024
18025
18026 func (c *AccountsListlinksCall) Do(opts ...googleapi.CallOption) (*AccountsListLinksResponse, error) {
18027 gensupport.SetOptions(c.urlParams_, opts...)
18028 res, err := c.doRequest("json")
18029 if res != nil && res.StatusCode == http.StatusNotModified {
18030 if res.Body != nil {
18031 res.Body.Close()
18032 }
18033 return nil, gensupport.WrapError(&googleapi.Error{
18034 Code: res.StatusCode,
18035 Header: res.Header,
18036 })
18037 }
18038 if err != nil {
18039 return nil, err
18040 }
18041 defer googleapi.CloseBody(res)
18042 if err := googleapi.CheckResponse(res); err != nil {
18043 return nil, gensupport.WrapError(err)
18044 }
18045 ret := &AccountsListLinksResponse{
18046 ServerResponse: googleapi.ServerResponse{
18047 Header: res.Header,
18048 HTTPStatusCode: res.StatusCode,
18049 },
18050 }
18051 target := &ret
18052 if err := gensupport.DecodeResponse(target, res); err != nil {
18053 return nil, err
18054 }
18055 return ret, nil
18056 }
18057
18058
18059
18060
18061 func (c *AccountsListlinksCall) Pages(ctx context.Context, f func(*AccountsListLinksResponse) error) error {
18062 c.ctx_ = ctx
18063 defer c.PageToken(c.urlParams_.Get("pageToken"))
18064 for {
18065 x, err := c.Do()
18066 if err != nil {
18067 return err
18068 }
18069 if err := f(x); err != nil {
18070 return err
18071 }
18072 if x.NextPageToken == "" {
18073 return nil
18074 }
18075 c.PageToken(x.NextPageToken)
18076 }
18077 }
18078
18079 type AccountsRequestphoneverificationCall struct {
18080 s *APIService
18081 merchantId int64
18082 accountId int64
18083 requestphoneverificationrequest *RequestPhoneVerificationRequest
18084 urlParams_ gensupport.URLParams
18085 ctx_ context.Context
18086 header_ http.Header
18087 }
18088
18089
18090
18091
18092
18093
18094
18095
18096 func (r *AccountsService) Requestphoneverification(merchantId int64, accountId int64, requestphoneverificationrequest *RequestPhoneVerificationRequest) *AccountsRequestphoneverificationCall {
18097 c := &AccountsRequestphoneverificationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18098 c.merchantId = merchantId
18099 c.accountId = accountId
18100 c.requestphoneverificationrequest = requestphoneverificationrequest
18101 return c
18102 }
18103
18104
18105
18106
18107 func (c *AccountsRequestphoneverificationCall) Fields(s ...googleapi.Field) *AccountsRequestphoneverificationCall {
18108 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18109 return c
18110 }
18111
18112
18113 func (c *AccountsRequestphoneverificationCall) Context(ctx context.Context) *AccountsRequestphoneverificationCall {
18114 c.ctx_ = ctx
18115 return c
18116 }
18117
18118
18119
18120 func (c *AccountsRequestphoneverificationCall) Header() http.Header {
18121 if c.header_ == nil {
18122 c.header_ = make(http.Header)
18123 }
18124 return c.header_
18125 }
18126
18127 func (c *AccountsRequestphoneverificationCall) doRequest(alt string) (*http.Response, error) {
18128 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18129 var body io.Reader = nil
18130 body, err := googleapi.WithoutDataWrapper.JSONReader(c.requestphoneverificationrequest)
18131 if err != nil {
18132 return nil, err
18133 }
18134 c.urlParams_.Set("alt", alt)
18135 c.urlParams_.Set("prettyPrint", "false")
18136 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/requestphoneverification")
18137 urls += "?" + c.urlParams_.Encode()
18138 req, err := http.NewRequest("POST", urls, body)
18139 if err != nil {
18140 return nil, err
18141 }
18142 req.Header = reqHeaders
18143 googleapi.Expand(req.URL, map[string]string{
18144 "merchantId": strconv.FormatInt(c.merchantId, 10),
18145 "accountId": strconv.FormatInt(c.accountId, 10),
18146 })
18147 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18148 }
18149
18150
18151
18152
18153
18154
18155
18156 func (c *AccountsRequestphoneverificationCall) Do(opts ...googleapi.CallOption) (*RequestPhoneVerificationResponse, error) {
18157 gensupport.SetOptions(c.urlParams_, opts...)
18158 res, err := c.doRequest("json")
18159 if res != nil && res.StatusCode == http.StatusNotModified {
18160 if res.Body != nil {
18161 res.Body.Close()
18162 }
18163 return nil, gensupport.WrapError(&googleapi.Error{
18164 Code: res.StatusCode,
18165 Header: res.Header,
18166 })
18167 }
18168 if err != nil {
18169 return nil, err
18170 }
18171 defer googleapi.CloseBody(res)
18172 if err := googleapi.CheckResponse(res); err != nil {
18173 return nil, gensupport.WrapError(err)
18174 }
18175 ret := &RequestPhoneVerificationResponse{
18176 ServerResponse: googleapi.ServerResponse{
18177 Header: res.Header,
18178 HTTPStatusCode: res.StatusCode,
18179 },
18180 }
18181 target := &ret
18182 if err := gensupport.DecodeResponse(target, res); err != nil {
18183 return nil, err
18184 }
18185 return ret, nil
18186 }
18187
18188 type AccountsUpdateCall struct {
18189 s *APIService
18190 merchantId uint64
18191 accountId uint64
18192 account *Account
18193 urlParams_ gensupport.URLParams
18194 ctx_ context.Context
18195 header_ http.Header
18196 }
18197
18198
18199
18200
18201
18202
18203
18204
18205 func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *Account) *AccountsUpdateCall {
18206 c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18207 c.merchantId = merchantId
18208 c.accountId = accountId
18209 c.account = account
18210 return c
18211 }
18212
18213
18214
18215
18216 func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall {
18217 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18218 return c
18219 }
18220
18221
18222 func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall {
18223 c.ctx_ = ctx
18224 return c
18225 }
18226
18227
18228
18229 func (c *AccountsUpdateCall) Header() http.Header {
18230 if c.header_ == nil {
18231 c.header_ = make(http.Header)
18232 }
18233 return c.header_
18234 }
18235
18236 func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) {
18237 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18238 var body io.Reader = nil
18239 body, err := googleapi.WithoutDataWrapper.JSONReader(c.account)
18240 if err != nil {
18241 return nil, err
18242 }
18243 c.urlParams_.Set("alt", alt)
18244 c.urlParams_.Set("prettyPrint", "false")
18245 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}")
18246 urls += "?" + c.urlParams_.Encode()
18247 req, err := http.NewRequest("PUT", urls, body)
18248 if err != nil {
18249 return nil, err
18250 }
18251 req.Header = reqHeaders
18252 googleapi.Expand(req.URL, map[string]string{
18253 "merchantId": strconv.FormatUint(c.merchantId, 10),
18254 "accountId": strconv.FormatUint(c.accountId, 10),
18255 })
18256 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18257 }
18258
18259
18260
18261
18262
18263
18264 func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) {
18265 gensupport.SetOptions(c.urlParams_, opts...)
18266 res, err := c.doRequest("json")
18267 if res != nil && res.StatusCode == http.StatusNotModified {
18268 if res.Body != nil {
18269 res.Body.Close()
18270 }
18271 return nil, gensupport.WrapError(&googleapi.Error{
18272 Code: res.StatusCode,
18273 Header: res.Header,
18274 })
18275 }
18276 if err != nil {
18277 return nil, err
18278 }
18279 defer googleapi.CloseBody(res)
18280 if err := googleapi.CheckResponse(res); err != nil {
18281 return nil, gensupport.WrapError(err)
18282 }
18283 ret := &Account{
18284 ServerResponse: googleapi.ServerResponse{
18285 Header: res.Header,
18286 HTTPStatusCode: res.StatusCode,
18287 },
18288 }
18289 target := &ret
18290 if err := gensupport.DecodeResponse(target, res); err != nil {
18291 return nil, err
18292 }
18293 return ret, nil
18294 }
18295
18296 type AccountsUpdatelabelsCall struct {
18297 s *APIService
18298 merchantId uint64
18299 accountId uint64
18300 accountsupdatelabelsrequest *AccountsUpdateLabelsRequest
18301 urlParams_ gensupport.URLParams
18302 ctx_ context.Context
18303 header_ http.Header
18304 }
18305
18306
18307
18308
18309
18310
18311 func (r *AccountsService) Updatelabels(merchantId uint64, accountId uint64, accountsupdatelabelsrequest *AccountsUpdateLabelsRequest) *AccountsUpdatelabelsCall {
18312 c := &AccountsUpdatelabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18313 c.merchantId = merchantId
18314 c.accountId = accountId
18315 c.accountsupdatelabelsrequest = accountsupdatelabelsrequest
18316 return c
18317 }
18318
18319
18320
18321
18322 func (c *AccountsUpdatelabelsCall) Fields(s ...googleapi.Field) *AccountsUpdatelabelsCall {
18323 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18324 return c
18325 }
18326
18327
18328 func (c *AccountsUpdatelabelsCall) Context(ctx context.Context) *AccountsUpdatelabelsCall {
18329 c.ctx_ = ctx
18330 return c
18331 }
18332
18333
18334
18335 func (c *AccountsUpdatelabelsCall) Header() http.Header {
18336 if c.header_ == nil {
18337 c.header_ = make(http.Header)
18338 }
18339 return c.header_
18340 }
18341
18342 func (c *AccountsUpdatelabelsCall) doRequest(alt string) (*http.Response, error) {
18343 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18344 var body io.Reader = nil
18345 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountsupdatelabelsrequest)
18346 if err != nil {
18347 return nil, err
18348 }
18349 c.urlParams_.Set("alt", alt)
18350 c.urlParams_.Set("prettyPrint", "false")
18351 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/updatelabels")
18352 urls += "?" + c.urlParams_.Encode()
18353 req, err := http.NewRequest("POST", urls, body)
18354 if err != nil {
18355 return nil, err
18356 }
18357 req.Header = reqHeaders
18358 googleapi.Expand(req.URL, map[string]string{
18359 "merchantId": strconv.FormatUint(c.merchantId, 10),
18360 "accountId": strconv.FormatUint(c.accountId, 10),
18361 })
18362 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18363 }
18364
18365
18366
18367
18368
18369
18370
18371 func (c *AccountsUpdatelabelsCall) Do(opts ...googleapi.CallOption) (*AccountsUpdateLabelsResponse, error) {
18372 gensupport.SetOptions(c.urlParams_, opts...)
18373 res, err := c.doRequest("json")
18374 if res != nil && res.StatusCode == http.StatusNotModified {
18375 if res.Body != nil {
18376 res.Body.Close()
18377 }
18378 return nil, gensupport.WrapError(&googleapi.Error{
18379 Code: res.StatusCode,
18380 Header: res.Header,
18381 })
18382 }
18383 if err != nil {
18384 return nil, err
18385 }
18386 defer googleapi.CloseBody(res)
18387 if err := googleapi.CheckResponse(res); err != nil {
18388 return nil, gensupport.WrapError(err)
18389 }
18390 ret := &AccountsUpdateLabelsResponse{
18391 ServerResponse: googleapi.ServerResponse{
18392 Header: res.Header,
18393 HTTPStatusCode: res.StatusCode,
18394 },
18395 }
18396 target := &ret
18397 if err := gensupport.DecodeResponse(target, res); err != nil {
18398 return nil, err
18399 }
18400 return ret, nil
18401 }
18402
18403 type AccountsVerifyphonenumberCall struct {
18404 s *APIService
18405 merchantId int64
18406 accountId int64
18407 verifyphonenumberrequest *VerifyPhoneNumberRequest
18408 urlParams_ gensupport.URLParams
18409 ctx_ context.Context
18410 header_ http.Header
18411 }
18412
18413
18414
18415
18416
18417
18418
18419
18420
18421
18422 func (r *AccountsService) Verifyphonenumber(merchantId int64, accountId int64, verifyphonenumberrequest *VerifyPhoneNumberRequest) *AccountsVerifyphonenumberCall {
18423 c := &AccountsVerifyphonenumberCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18424 c.merchantId = merchantId
18425 c.accountId = accountId
18426 c.verifyphonenumberrequest = verifyphonenumberrequest
18427 return c
18428 }
18429
18430
18431
18432
18433 func (c *AccountsVerifyphonenumberCall) Fields(s ...googleapi.Field) *AccountsVerifyphonenumberCall {
18434 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18435 return c
18436 }
18437
18438
18439 func (c *AccountsVerifyphonenumberCall) Context(ctx context.Context) *AccountsVerifyphonenumberCall {
18440 c.ctx_ = ctx
18441 return c
18442 }
18443
18444
18445
18446 func (c *AccountsVerifyphonenumberCall) Header() http.Header {
18447 if c.header_ == nil {
18448 c.header_ = make(http.Header)
18449 }
18450 return c.header_
18451 }
18452
18453 func (c *AccountsVerifyphonenumberCall) doRequest(alt string) (*http.Response, error) {
18454 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18455 var body io.Reader = nil
18456 body, err := googleapi.WithoutDataWrapper.JSONReader(c.verifyphonenumberrequest)
18457 if err != nil {
18458 return nil, err
18459 }
18460 c.urlParams_.Set("alt", alt)
18461 c.urlParams_.Set("prettyPrint", "false")
18462 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/verifyphonenumber")
18463 urls += "?" + c.urlParams_.Encode()
18464 req, err := http.NewRequest("POST", urls, body)
18465 if err != nil {
18466 return nil, err
18467 }
18468 req.Header = reqHeaders
18469 googleapi.Expand(req.URL, map[string]string{
18470 "merchantId": strconv.FormatInt(c.merchantId, 10),
18471 "accountId": strconv.FormatInt(c.accountId, 10),
18472 })
18473 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18474 }
18475
18476
18477
18478
18479
18480
18481
18482 func (c *AccountsVerifyphonenumberCall) Do(opts ...googleapi.CallOption) (*VerifyPhoneNumberResponse, error) {
18483 gensupport.SetOptions(c.urlParams_, opts...)
18484 res, err := c.doRequest("json")
18485 if res != nil && res.StatusCode == http.StatusNotModified {
18486 if res.Body != nil {
18487 res.Body.Close()
18488 }
18489 return nil, gensupport.WrapError(&googleapi.Error{
18490 Code: res.StatusCode,
18491 Header: res.Header,
18492 })
18493 }
18494 if err != nil {
18495 return nil, err
18496 }
18497 defer googleapi.CloseBody(res)
18498 if err := googleapi.CheckResponse(res); err != nil {
18499 return nil, gensupport.WrapError(err)
18500 }
18501 ret := &VerifyPhoneNumberResponse{
18502 ServerResponse: googleapi.ServerResponse{
18503 Header: res.Header,
18504 HTTPStatusCode: res.StatusCode,
18505 },
18506 }
18507 target := &ret
18508 if err := gensupport.DecodeResponse(target, res); err != nil {
18509 return nil, err
18510 }
18511 return ret, nil
18512 }
18513
18514 type AccountsCredentialsCreateCall struct {
18515 s *APIService
18516 accountId int64
18517 accountcredentials *AccountCredentials
18518 urlParams_ gensupport.URLParams
18519 ctx_ context.Context
18520 header_ http.Header
18521 }
18522
18523
18524
18525
18526
18527
18528 func (r *AccountsCredentialsService) Create(accountId int64, accountcredentials *AccountCredentials) *AccountsCredentialsCreateCall {
18529 c := &AccountsCredentialsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18530 c.accountId = accountId
18531 c.accountcredentials = accountcredentials
18532 return c
18533 }
18534
18535
18536
18537
18538 func (c *AccountsCredentialsCreateCall) Fields(s ...googleapi.Field) *AccountsCredentialsCreateCall {
18539 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18540 return c
18541 }
18542
18543
18544 func (c *AccountsCredentialsCreateCall) Context(ctx context.Context) *AccountsCredentialsCreateCall {
18545 c.ctx_ = ctx
18546 return c
18547 }
18548
18549
18550
18551 func (c *AccountsCredentialsCreateCall) Header() http.Header {
18552 if c.header_ == nil {
18553 c.header_ = make(http.Header)
18554 }
18555 return c.header_
18556 }
18557
18558 func (c *AccountsCredentialsCreateCall) doRequest(alt string) (*http.Response, error) {
18559 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18560 var body io.Reader = nil
18561 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountcredentials)
18562 if err != nil {
18563 return nil, err
18564 }
18565 c.urlParams_.Set("alt", alt)
18566 c.urlParams_.Set("prettyPrint", "false")
18567 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/credentials")
18568 urls += "?" + c.urlParams_.Encode()
18569 req, err := http.NewRequest("POST", urls, body)
18570 if err != nil {
18571 return nil, err
18572 }
18573 req.Header = reqHeaders
18574 googleapi.Expand(req.URL, map[string]string{
18575 "accountId": strconv.FormatInt(c.accountId, 10),
18576 })
18577 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18578 }
18579
18580
18581
18582
18583
18584
18585
18586 func (c *AccountsCredentialsCreateCall) Do(opts ...googleapi.CallOption) (*AccountCredentials, error) {
18587 gensupport.SetOptions(c.urlParams_, opts...)
18588 res, err := c.doRequest("json")
18589 if res != nil && res.StatusCode == http.StatusNotModified {
18590 if res.Body != nil {
18591 res.Body.Close()
18592 }
18593 return nil, gensupport.WrapError(&googleapi.Error{
18594 Code: res.StatusCode,
18595 Header: res.Header,
18596 })
18597 }
18598 if err != nil {
18599 return nil, err
18600 }
18601 defer googleapi.CloseBody(res)
18602 if err := googleapi.CheckResponse(res); err != nil {
18603 return nil, gensupport.WrapError(err)
18604 }
18605 ret := &AccountCredentials{
18606 ServerResponse: googleapi.ServerResponse{
18607 Header: res.Header,
18608 HTTPStatusCode: res.StatusCode,
18609 },
18610 }
18611 target := &ret
18612 if err := gensupport.DecodeResponse(target, res); err != nil {
18613 return nil, err
18614 }
18615 return ret, nil
18616 }
18617
18618 type AccountsLabelsCreateCall struct {
18619 s *APIService
18620 accountId int64
18621 accountlabel *AccountLabel
18622 urlParams_ gensupport.URLParams
18623 ctx_ context.Context
18624 header_ http.Header
18625 }
18626
18627
18628
18629
18630 func (r *AccountsLabelsService) Create(accountId int64, accountlabel *AccountLabel) *AccountsLabelsCreateCall {
18631 c := &AccountsLabelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18632 c.accountId = accountId
18633 c.accountlabel = accountlabel
18634 return c
18635 }
18636
18637
18638
18639
18640 func (c *AccountsLabelsCreateCall) Fields(s ...googleapi.Field) *AccountsLabelsCreateCall {
18641 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18642 return c
18643 }
18644
18645
18646 func (c *AccountsLabelsCreateCall) Context(ctx context.Context) *AccountsLabelsCreateCall {
18647 c.ctx_ = ctx
18648 return c
18649 }
18650
18651
18652
18653 func (c *AccountsLabelsCreateCall) Header() http.Header {
18654 if c.header_ == nil {
18655 c.header_ = make(http.Header)
18656 }
18657 return c.header_
18658 }
18659
18660 func (c *AccountsLabelsCreateCall) doRequest(alt string) (*http.Response, error) {
18661 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18662 var body io.Reader = nil
18663 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountlabel)
18664 if err != nil {
18665 return nil, err
18666 }
18667 c.urlParams_.Set("alt", alt)
18668 c.urlParams_.Set("prettyPrint", "false")
18669 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/labels")
18670 urls += "?" + c.urlParams_.Encode()
18671 req, err := http.NewRequest("POST", urls, body)
18672 if err != nil {
18673 return nil, err
18674 }
18675 req.Header = reqHeaders
18676 googleapi.Expand(req.URL, map[string]string{
18677 "accountId": strconv.FormatInt(c.accountId, 10),
18678 })
18679 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18680 }
18681
18682
18683
18684
18685
18686
18687 func (c *AccountsLabelsCreateCall) Do(opts ...googleapi.CallOption) (*AccountLabel, error) {
18688 gensupport.SetOptions(c.urlParams_, opts...)
18689 res, err := c.doRequest("json")
18690 if res != nil && res.StatusCode == http.StatusNotModified {
18691 if res.Body != nil {
18692 res.Body.Close()
18693 }
18694 return nil, gensupport.WrapError(&googleapi.Error{
18695 Code: res.StatusCode,
18696 Header: res.Header,
18697 })
18698 }
18699 if err != nil {
18700 return nil, err
18701 }
18702 defer googleapi.CloseBody(res)
18703 if err := googleapi.CheckResponse(res); err != nil {
18704 return nil, gensupport.WrapError(err)
18705 }
18706 ret := &AccountLabel{
18707 ServerResponse: googleapi.ServerResponse{
18708 Header: res.Header,
18709 HTTPStatusCode: res.StatusCode,
18710 },
18711 }
18712 target := &ret
18713 if err := gensupport.DecodeResponse(target, res); err != nil {
18714 return nil, err
18715 }
18716 return ret, nil
18717 }
18718
18719 type AccountsLabelsDeleteCall struct {
18720 s *APIService
18721 accountId int64
18722 labelId int64
18723 urlParams_ gensupport.URLParams
18724 ctx_ context.Context
18725 header_ http.Header
18726 }
18727
18728
18729
18730
18731
18732
18733 func (r *AccountsLabelsService) Delete(accountId int64, labelId int64) *AccountsLabelsDeleteCall {
18734 c := &AccountsLabelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18735 c.accountId = accountId
18736 c.labelId = labelId
18737 return c
18738 }
18739
18740
18741
18742
18743 func (c *AccountsLabelsDeleteCall) Fields(s ...googleapi.Field) *AccountsLabelsDeleteCall {
18744 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18745 return c
18746 }
18747
18748
18749 func (c *AccountsLabelsDeleteCall) Context(ctx context.Context) *AccountsLabelsDeleteCall {
18750 c.ctx_ = ctx
18751 return c
18752 }
18753
18754
18755
18756 func (c *AccountsLabelsDeleteCall) Header() http.Header {
18757 if c.header_ == nil {
18758 c.header_ = make(http.Header)
18759 }
18760 return c.header_
18761 }
18762
18763 func (c *AccountsLabelsDeleteCall) doRequest(alt string) (*http.Response, error) {
18764 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18765 var body io.Reader = nil
18766 c.urlParams_.Set("alt", alt)
18767 c.urlParams_.Set("prettyPrint", "false")
18768 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/labels/{labelId}")
18769 urls += "?" + c.urlParams_.Encode()
18770 req, err := http.NewRequest("DELETE", urls, body)
18771 if err != nil {
18772 return nil, err
18773 }
18774 req.Header = reqHeaders
18775 googleapi.Expand(req.URL, map[string]string{
18776 "accountId": strconv.FormatInt(c.accountId, 10),
18777 "labelId": strconv.FormatInt(c.labelId, 10),
18778 })
18779 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18780 }
18781
18782
18783 func (c *AccountsLabelsDeleteCall) Do(opts ...googleapi.CallOption) error {
18784 gensupport.SetOptions(c.urlParams_, opts...)
18785 res, err := c.doRequest("json")
18786 if err != nil {
18787 return err
18788 }
18789 defer googleapi.CloseBody(res)
18790 if err := googleapi.CheckResponse(res); err != nil {
18791 return gensupport.WrapError(err)
18792 }
18793 return nil
18794 }
18795
18796 type AccountsLabelsListCall struct {
18797 s *APIService
18798 accountId int64
18799 urlParams_ gensupport.URLParams
18800 ifNoneMatch_ string
18801 ctx_ context.Context
18802 header_ http.Header
18803 }
18804
18805
18806
18807
18808 func (r *AccountsLabelsService) List(accountId int64) *AccountsLabelsListCall {
18809 c := &AccountsLabelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18810 c.accountId = accountId
18811 return c
18812 }
18813
18814
18815
18816
18817
18818 func (c *AccountsLabelsListCall) PageSize(pageSize int64) *AccountsLabelsListCall {
18819 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18820 return c
18821 }
18822
18823
18824
18825
18826
18827 func (c *AccountsLabelsListCall) PageToken(pageToken string) *AccountsLabelsListCall {
18828 c.urlParams_.Set("pageToken", pageToken)
18829 return c
18830 }
18831
18832
18833
18834
18835 func (c *AccountsLabelsListCall) Fields(s ...googleapi.Field) *AccountsLabelsListCall {
18836 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18837 return c
18838 }
18839
18840
18841
18842
18843 func (c *AccountsLabelsListCall) IfNoneMatch(entityTag string) *AccountsLabelsListCall {
18844 c.ifNoneMatch_ = entityTag
18845 return c
18846 }
18847
18848
18849 func (c *AccountsLabelsListCall) Context(ctx context.Context) *AccountsLabelsListCall {
18850 c.ctx_ = ctx
18851 return c
18852 }
18853
18854
18855
18856 func (c *AccountsLabelsListCall) Header() http.Header {
18857 if c.header_ == nil {
18858 c.header_ = make(http.Header)
18859 }
18860 return c.header_
18861 }
18862
18863 func (c *AccountsLabelsListCall) doRequest(alt string) (*http.Response, error) {
18864 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18865 if c.ifNoneMatch_ != "" {
18866 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18867 }
18868 var body io.Reader = nil
18869 c.urlParams_.Set("alt", alt)
18870 c.urlParams_.Set("prettyPrint", "false")
18871 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/labels")
18872 urls += "?" + c.urlParams_.Encode()
18873 req, err := http.NewRequest("GET", urls, body)
18874 if err != nil {
18875 return nil, err
18876 }
18877 req.Header = reqHeaders
18878 googleapi.Expand(req.URL, map[string]string{
18879 "accountId": strconv.FormatInt(c.accountId, 10),
18880 })
18881 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18882 }
18883
18884
18885
18886
18887
18888
18889
18890 func (c *AccountsLabelsListCall) Do(opts ...googleapi.CallOption) (*ListAccountLabelsResponse, error) {
18891 gensupport.SetOptions(c.urlParams_, opts...)
18892 res, err := c.doRequest("json")
18893 if res != nil && res.StatusCode == http.StatusNotModified {
18894 if res.Body != nil {
18895 res.Body.Close()
18896 }
18897 return nil, gensupport.WrapError(&googleapi.Error{
18898 Code: res.StatusCode,
18899 Header: res.Header,
18900 })
18901 }
18902 if err != nil {
18903 return nil, err
18904 }
18905 defer googleapi.CloseBody(res)
18906 if err := googleapi.CheckResponse(res); err != nil {
18907 return nil, gensupport.WrapError(err)
18908 }
18909 ret := &ListAccountLabelsResponse{
18910 ServerResponse: googleapi.ServerResponse{
18911 Header: res.Header,
18912 HTTPStatusCode: res.StatusCode,
18913 },
18914 }
18915 target := &ret
18916 if err := gensupport.DecodeResponse(target, res); err != nil {
18917 return nil, err
18918 }
18919 return ret, nil
18920 }
18921
18922
18923
18924
18925 func (c *AccountsLabelsListCall) Pages(ctx context.Context, f func(*ListAccountLabelsResponse) error) error {
18926 c.ctx_ = ctx
18927 defer c.PageToken(c.urlParams_.Get("pageToken"))
18928 for {
18929 x, err := c.Do()
18930 if err != nil {
18931 return err
18932 }
18933 if err := f(x); err != nil {
18934 return err
18935 }
18936 if x.NextPageToken == "" {
18937 return nil
18938 }
18939 c.PageToken(x.NextPageToken)
18940 }
18941 }
18942
18943 type AccountsLabelsPatchCall struct {
18944 s *APIService
18945 accountId int64
18946 labelId int64
18947 accountlabel *AccountLabel
18948 urlParams_ gensupport.URLParams
18949 ctx_ context.Context
18950 header_ http.Header
18951 }
18952
18953
18954
18955
18956
18957 func (r *AccountsLabelsService) Patch(accountId int64, labelId int64, accountlabel *AccountLabel) *AccountsLabelsPatchCall {
18958 c := &AccountsLabelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18959 c.accountId = accountId
18960 c.labelId = labelId
18961 c.accountlabel = accountlabel
18962 return c
18963 }
18964
18965
18966
18967
18968 func (c *AccountsLabelsPatchCall) Fields(s ...googleapi.Field) *AccountsLabelsPatchCall {
18969 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18970 return c
18971 }
18972
18973
18974 func (c *AccountsLabelsPatchCall) Context(ctx context.Context) *AccountsLabelsPatchCall {
18975 c.ctx_ = ctx
18976 return c
18977 }
18978
18979
18980
18981 func (c *AccountsLabelsPatchCall) Header() http.Header {
18982 if c.header_ == nil {
18983 c.header_ = make(http.Header)
18984 }
18985 return c.header_
18986 }
18987
18988 func (c *AccountsLabelsPatchCall) doRequest(alt string) (*http.Response, error) {
18989 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18990 var body io.Reader = nil
18991 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountlabel)
18992 if err != nil {
18993 return nil, err
18994 }
18995 c.urlParams_.Set("alt", alt)
18996 c.urlParams_.Set("prettyPrint", "false")
18997 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/labels/{labelId}")
18998 urls += "?" + c.urlParams_.Encode()
18999 req, err := http.NewRequest("PATCH", urls, body)
19000 if err != nil {
19001 return nil, err
19002 }
19003 req.Header = reqHeaders
19004 googleapi.Expand(req.URL, map[string]string{
19005 "accountId": strconv.FormatInt(c.accountId, 10),
19006 "labelId": strconv.FormatInt(c.labelId, 10),
19007 })
19008 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19009 }
19010
19011
19012
19013
19014
19015
19016 func (c *AccountsLabelsPatchCall) Do(opts ...googleapi.CallOption) (*AccountLabel, error) {
19017 gensupport.SetOptions(c.urlParams_, opts...)
19018 res, err := c.doRequest("json")
19019 if res != nil && res.StatusCode == http.StatusNotModified {
19020 if res.Body != nil {
19021 res.Body.Close()
19022 }
19023 return nil, gensupport.WrapError(&googleapi.Error{
19024 Code: res.StatusCode,
19025 Header: res.Header,
19026 })
19027 }
19028 if err != nil {
19029 return nil, err
19030 }
19031 defer googleapi.CloseBody(res)
19032 if err := googleapi.CheckResponse(res); err != nil {
19033 return nil, gensupport.WrapError(err)
19034 }
19035 ret := &AccountLabel{
19036 ServerResponse: googleapi.ServerResponse{
19037 Header: res.Header,
19038 HTTPStatusCode: res.StatusCode,
19039 },
19040 }
19041 target := &ret
19042 if err := gensupport.DecodeResponse(target, res); err != nil {
19043 return nil, err
19044 }
19045 return ret, nil
19046 }
19047
19048 type AccountsReturncarrierCreateCall struct {
19049 s *APIService
19050 accountId int64
19051 accountreturncarrier *AccountReturnCarrier
19052 urlParams_ gensupport.URLParams
19053 ctx_ context.Context
19054 header_ http.Header
19055 }
19056
19057
19058
19059
19060
19061 func (r *AccountsReturncarrierService) Create(accountId int64, accountreturncarrier *AccountReturnCarrier) *AccountsReturncarrierCreateCall {
19062 c := &AccountsReturncarrierCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19063 c.accountId = accountId
19064 c.accountreturncarrier = accountreturncarrier
19065 return c
19066 }
19067
19068
19069
19070
19071 func (c *AccountsReturncarrierCreateCall) Fields(s ...googleapi.Field) *AccountsReturncarrierCreateCall {
19072 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19073 return c
19074 }
19075
19076
19077 func (c *AccountsReturncarrierCreateCall) Context(ctx context.Context) *AccountsReturncarrierCreateCall {
19078 c.ctx_ = ctx
19079 return c
19080 }
19081
19082
19083
19084 func (c *AccountsReturncarrierCreateCall) Header() http.Header {
19085 if c.header_ == nil {
19086 c.header_ = make(http.Header)
19087 }
19088 return c.header_
19089 }
19090
19091 func (c *AccountsReturncarrierCreateCall) doRequest(alt string) (*http.Response, error) {
19092 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19093 var body io.Reader = nil
19094 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountreturncarrier)
19095 if err != nil {
19096 return nil, err
19097 }
19098 c.urlParams_.Set("alt", alt)
19099 c.urlParams_.Set("prettyPrint", "false")
19100 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/returncarrier")
19101 urls += "?" + c.urlParams_.Encode()
19102 req, err := http.NewRequest("POST", urls, body)
19103 if err != nil {
19104 return nil, err
19105 }
19106 req.Header = reqHeaders
19107 googleapi.Expand(req.URL, map[string]string{
19108 "accountId": strconv.FormatInt(c.accountId, 10),
19109 })
19110 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19111 }
19112
19113
19114
19115
19116
19117
19118
19119 func (c *AccountsReturncarrierCreateCall) Do(opts ...googleapi.CallOption) (*AccountReturnCarrier, error) {
19120 gensupport.SetOptions(c.urlParams_, opts...)
19121 res, err := c.doRequest("json")
19122 if res != nil && res.StatusCode == http.StatusNotModified {
19123 if res.Body != nil {
19124 res.Body.Close()
19125 }
19126 return nil, gensupport.WrapError(&googleapi.Error{
19127 Code: res.StatusCode,
19128 Header: res.Header,
19129 })
19130 }
19131 if err != nil {
19132 return nil, err
19133 }
19134 defer googleapi.CloseBody(res)
19135 if err := googleapi.CheckResponse(res); err != nil {
19136 return nil, gensupport.WrapError(err)
19137 }
19138 ret := &AccountReturnCarrier{
19139 ServerResponse: googleapi.ServerResponse{
19140 Header: res.Header,
19141 HTTPStatusCode: res.StatusCode,
19142 },
19143 }
19144 target := &ret
19145 if err := gensupport.DecodeResponse(target, res); err != nil {
19146 return nil, err
19147 }
19148 return ret, nil
19149 }
19150
19151 type AccountsReturncarrierDeleteCall struct {
19152 s *APIService
19153 accountId int64
19154 carrierAccountId int64
19155 urlParams_ gensupport.URLParams
19156 ctx_ context.Context
19157 header_ http.Header
19158 }
19159
19160
19161
19162
19163
19164
19165
19166 func (r *AccountsReturncarrierService) Delete(accountId int64, carrierAccountId int64) *AccountsReturncarrierDeleteCall {
19167 c := &AccountsReturncarrierDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19168 c.accountId = accountId
19169 c.carrierAccountId = carrierAccountId
19170 return c
19171 }
19172
19173
19174
19175
19176 func (c *AccountsReturncarrierDeleteCall) Fields(s ...googleapi.Field) *AccountsReturncarrierDeleteCall {
19177 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19178 return c
19179 }
19180
19181
19182 func (c *AccountsReturncarrierDeleteCall) Context(ctx context.Context) *AccountsReturncarrierDeleteCall {
19183 c.ctx_ = ctx
19184 return c
19185 }
19186
19187
19188
19189 func (c *AccountsReturncarrierDeleteCall) Header() http.Header {
19190 if c.header_ == nil {
19191 c.header_ = make(http.Header)
19192 }
19193 return c.header_
19194 }
19195
19196 func (c *AccountsReturncarrierDeleteCall) doRequest(alt string) (*http.Response, error) {
19197 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19198 var body io.Reader = nil
19199 c.urlParams_.Set("alt", alt)
19200 c.urlParams_.Set("prettyPrint", "false")
19201 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/returncarrier/{carrierAccountId}")
19202 urls += "?" + c.urlParams_.Encode()
19203 req, err := http.NewRequest("DELETE", urls, body)
19204 if err != nil {
19205 return nil, err
19206 }
19207 req.Header = reqHeaders
19208 googleapi.Expand(req.URL, map[string]string{
19209 "accountId": strconv.FormatInt(c.accountId, 10),
19210 "carrierAccountId": strconv.FormatInt(c.carrierAccountId, 10),
19211 })
19212 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19213 }
19214
19215
19216 func (c *AccountsReturncarrierDeleteCall) Do(opts ...googleapi.CallOption) error {
19217 gensupport.SetOptions(c.urlParams_, opts...)
19218 res, err := c.doRequest("json")
19219 if err != nil {
19220 return err
19221 }
19222 defer googleapi.CloseBody(res)
19223 if err := googleapi.CheckResponse(res); err != nil {
19224 return gensupport.WrapError(err)
19225 }
19226 return nil
19227 }
19228
19229 type AccountsReturncarrierListCall struct {
19230 s *APIService
19231 accountId int64
19232 urlParams_ gensupport.URLParams
19233 ifNoneMatch_ string
19234 ctx_ context.Context
19235 header_ http.Header
19236 }
19237
19238
19239
19240
19241
19242 func (r *AccountsReturncarrierService) List(accountId int64) *AccountsReturncarrierListCall {
19243 c := &AccountsReturncarrierListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19244 c.accountId = accountId
19245 return c
19246 }
19247
19248
19249
19250
19251 func (c *AccountsReturncarrierListCall) Fields(s ...googleapi.Field) *AccountsReturncarrierListCall {
19252 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19253 return c
19254 }
19255
19256
19257
19258
19259 func (c *AccountsReturncarrierListCall) IfNoneMatch(entityTag string) *AccountsReturncarrierListCall {
19260 c.ifNoneMatch_ = entityTag
19261 return c
19262 }
19263
19264
19265 func (c *AccountsReturncarrierListCall) Context(ctx context.Context) *AccountsReturncarrierListCall {
19266 c.ctx_ = ctx
19267 return c
19268 }
19269
19270
19271
19272 func (c *AccountsReturncarrierListCall) Header() http.Header {
19273 if c.header_ == nil {
19274 c.header_ = make(http.Header)
19275 }
19276 return c.header_
19277 }
19278
19279 func (c *AccountsReturncarrierListCall) doRequest(alt string) (*http.Response, error) {
19280 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19281 if c.ifNoneMatch_ != "" {
19282 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19283 }
19284 var body io.Reader = nil
19285 c.urlParams_.Set("alt", alt)
19286 c.urlParams_.Set("prettyPrint", "false")
19287 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/returncarrier")
19288 urls += "?" + c.urlParams_.Encode()
19289 req, err := http.NewRequest("GET", urls, body)
19290 if err != nil {
19291 return nil, err
19292 }
19293 req.Header = reqHeaders
19294 googleapi.Expand(req.URL, map[string]string{
19295 "accountId": strconv.FormatInt(c.accountId, 10),
19296 })
19297 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19298 }
19299
19300
19301
19302
19303
19304
19305
19306 func (c *AccountsReturncarrierListCall) Do(opts ...googleapi.CallOption) (*ListAccountReturnCarrierResponse, error) {
19307 gensupport.SetOptions(c.urlParams_, opts...)
19308 res, err := c.doRequest("json")
19309 if res != nil && res.StatusCode == http.StatusNotModified {
19310 if res.Body != nil {
19311 res.Body.Close()
19312 }
19313 return nil, gensupport.WrapError(&googleapi.Error{
19314 Code: res.StatusCode,
19315 Header: res.Header,
19316 })
19317 }
19318 if err != nil {
19319 return nil, err
19320 }
19321 defer googleapi.CloseBody(res)
19322 if err := googleapi.CheckResponse(res); err != nil {
19323 return nil, gensupport.WrapError(err)
19324 }
19325 ret := &ListAccountReturnCarrierResponse{
19326 ServerResponse: googleapi.ServerResponse{
19327 Header: res.Header,
19328 HTTPStatusCode: res.StatusCode,
19329 },
19330 }
19331 target := &ret
19332 if err := gensupport.DecodeResponse(target, res); err != nil {
19333 return nil, err
19334 }
19335 return ret, nil
19336 }
19337
19338 type AccountsReturncarrierPatchCall struct {
19339 s *APIService
19340 accountId int64
19341 carrierAccountId int64
19342 accountreturncarrier *AccountReturnCarrier
19343 urlParams_ gensupport.URLParams
19344 ctx_ context.Context
19345 header_ http.Header
19346 }
19347
19348
19349
19350
19351
19352
19353
19354 func (r *AccountsReturncarrierService) Patch(accountId int64, carrierAccountId int64, accountreturncarrier *AccountReturnCarrier) *AccountsReturncarrierPatchCall {
19355 c := &AccountsReturncarrierPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19356 c.accountId = accountId
19357 c.carrierAccountId = carrierAccountId
19358 c.accountreturncarrier = accountreturncarrier
19359 return c
19360 }
19361
19362
19363
19364
19365 func (c *AccountsReturncarrierPatchCall) Fields(s ...googleapi.Field) *AccountsReturncarrierPatchCall {
19366 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19367 return c
19368 }
19369
19370
19371 func (c *AccountsReturncarrierPatchCall) Context(ctx context.Context) *AccountsReturncarrierPatchCall {
19372 c.ctx_ = ctx
19373 return c
19374 }
19375
19376
19377
19378 func (c *AccountsReturncarrierPatchCall) Header() http.Header {
19379 if c.header_ == nil {
19380 c.header_ = make(http.Header)
19381 }
19382 return c.header_
19383 }
19384
19385 func (c *AccountsReturncarrierPatchCall) doRequest(alt string) (*http.Response, error) {
19386 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19387 var body io.Reader = nil
19388 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountreturncarrier)
19389 if err != nil {
19390 return nil, err
19391 }
19392 c.urlParams_.Set("alt", alt)
19393 c.urlParams_.Set("prettyPrint", "false")
19394 urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/returncarrier/{carrierAccountId}")
19395 urls += "?" + c.urlParams_.Encode()
19396 req, err := http.NewRequest("PATCH", urls, body)
19397 if err != nil {
19398 return nil, err
19399 }
19400 req.Header = reqHeaders
19401 googleapi.Expand(req.URL, map[string]string{
19402 "accountId": strconv.FormatInt(c.accountId, 10),
19403 "carrierAccountId": strconv.FormatInt(c.carrierAccountId, 10),
19404 })
19405 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19406 }
19407
19408
19409
19410
19411
19412
19413
19414 func (c *AccountsReturncarrierPatchCall) Do(opts ...googleapi.CallOption) (*AccountReturnCarrier, error) {
19415 gensupport.SetOptions(c.urlParams_, opts...)
19416 res, err := c.doRequest("json")
19417 if res != nil && res.StatusCode == http.StatusNotModified {
19418 if res.Body != nil {
19419 res.Body.Close()
19420 }
19421 return nil, gensupport.WrapError(&googleapi.Error{
19422 Code: res.StatusCode,
19423 Header: res.Header,
19424 })
19425 }
19426 if err != nil {
19427 return nil, err
19428 }
19429 defer googleapi.CloseBody(res)
19430 if err := googleapi.CheckResponse(res); err != nil {
19431 return nil, gensupport.WrapError(err)
19432 }
19433 ret := &AccountReturnCarrier{
19434 ServerResponse: googleapi.ServerResponse{
19435 Header: res.Header,
19436 HTTPStatusCode: res.StatusCode,
19437 },
19438 }
19439 target := &ret
19440 if err := gensupport.DecodeResponse(target, res); err != nil {
19441 return nil, err
19442 }
19443 return ret, nil
19444 }
19445
19446 type AccountstatusesCustombatchCall struct {
19447 s *APIService
19448 accountstatusescustombatchrequest *AccountstatusesCustomBatchRequest
19449 urlParams_ gensupport.URLParams
19450 ctx_ context.Context
19451 header_ http.Header
19452 }
19453
19454
19455
19456 func (r *AccountstatusesService) Custombatch(accountstatusescustombatchrequest *AccountstatusesCustomBatchRequest) *AccountstatusesCustombatchCall {
19457 c := &AccountstatusesCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19458 c.accountstatusescustombatchrequest = accountstatusescustombatchrequest
19459 return c
19460 }
19461
19462
19463
19464
19465 func (c *AccountstatusesCustombatchCall) Fields(s ...googleapi.Field) *AccountstatusesCustombatchCall {
19466 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19467 return c
19468 }
19469
19470
19471 func (c *AccountstatusesCustombatchCall) Context(ctx context.Context) *AccountstatusesCustombatchCall {
19472 c.ctx_ = ctx
19473 return c
19474 }
19475
19476
19477
19478 func (c *AccountstatusesCustombatchCall) Header() http.Header {
19479 if c.header_ == nil {
19480 c.header_ = make(http.Header)
19481 }
19482 return c.header_
19483 }
19484
19485 func (c *AccountstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) {
19486 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19487 var body io.Reader = nil
19488 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountstatusescustombatchrequest)
19489 if err != nil {
19490 return nil, err
19491 }
19492 c.urlParams_.Set("alt", alt)
19493 c.urlParams_.Set("prettyPrint", "false")
19494 urls := googleapi.ResolveRelative(c.s.BasePath, "accountstatuses/batch")
19495 urls += "?" + c.urlParams_.Encode()
19496 req, err := http.NewRequest("POST", urls, body)
19497 if err != nil {
19498 return nil, err
19499 }
19500 req.Header = reqHeaders
19501 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19502 }
19503
19504
19505
19506
19507
19508
19509
19510 func (c *AccountstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountstatusesCustomBatchResponse, error) {
19511 gensupport.SetOptions(c.urlParams_, opts...)
19512 res, err := c.doRequest("json")
19513 if res != nil && res.StatusCode == http.StatusNotModified {
19514 if res.Body != nil {
19515 res.Body.Close()
19516 }
19517 return nil, gensupport.WrapError(&googleapi.Error{
19518 Code: res.StatusCode,
19519 Header: res.Header,
19520 })
19521 }
19522 if err != nil {
19523 return nil, err
19524 }
19525 defer googleapi.CloseBody(res)
19526 if err := googleapi.CheckResponse(res); err != nil {
19527 return nil, gensupport.WrapError(err)
19528 }
19529 ret := &AccountstatusesCustomBatchResponse{
19530 ServerResponse: googleapi.ServerResponse{
19531 Header: res.Header,
19532 HTTPStatusCode: res.StatusCode,
19533 },
19534 }
19535 target := &ret
19536 if err := gensupport.DecodeResponse(target, res); err != nil {
19537 return nil, err
19538 }
19539 return ret, nil
19540 }
19541
19542 type AccountstatusesGetCall struct {
19543 s *APIService
19544 merchantId uint64
19545 accountId uint64
19546 urlParams_ gensupport.URLParams
19547 ifNoneMatch_ string
19548 ctx_ context.Context
19549 header_ http.Header
19550 }
19551
19552
19553
19554
19555
19556
19557
19558
19559 func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *AccountstatusesGetCall {
19560 c := &AccountstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19561 c.merchantId = merchantId
19562 c.accountId = accountId
19563 return c
19564 }
19565
19566
19567
19568
19569 func (c *AccountstatusesGetCall) Destinations(destinations ...string) *AccountstatusesGetCall {
19570 c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
19571 return c
19572 }
19573
19574
19575
19576
19577 func (c *AccountstatusesGetCall) Fields(s ...googleapi.Field) *AccountstatusesGetCall {
19578 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19579 return c
19580 }
19581
19582
19583
19584
19585 func (c *AccountstatusesGetCall) IfNoneMatch(entityTag string) *AccountstatusesGetCall {
19586 c.ifNoneMatch_ = entityTag
19587 return c
19588 }
19589
19590
19591 func (c *AccountstatusesGetCall) Context(ctx context.Context) *AccountstatusesGetCall {
19592 c.ctx_ = ctx
19593 return c
19594 }
19595
19596
19597
19598 func (c *AccountstatusesGetCall) Header() http.Header {
19599 if c.header_ == nil {
19600 c.header_ = make(http.Header)
19601 }
19602 return c.header_
19603 }
19604
19605 func (c *AccountstatusesGetCall) doRequest(alt string) (*http.Response, error) {
19606 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19607 if c.ifNoneMatch_ != "" {
19608 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19609 }
19610 var body io.Reader = nil
19611 c.urlParams_.Set("alt", alt)
19612 c.urlParams_.Set("prettyPrint", "false")
19613 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accountstatuses/{accountId}")
19614 urls += "?" + c.urlParams_.Encode()
19615 req, err := http.NewRequest("GET", urls, body)
19616 if err != nil {
19617 return nil, err
19618 }
19619 req.Header = reqHeaders
19620 googleapi.Expand(req.URL, map[string]string{
19621 "merchantId": strconv.FormatUint(c.merchantId, 10),
19622 "accountId": strconv.FormatUint(c.accountId, 10),
19623 })
19624 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19625 }
19626
19627
19628
19629
19630
19631
19632 func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatus, error) {
19633 gensupport.SetOptions(c.urlParams_, opts...)
19634 res, err := c.doRequest("json")
19635 if res != nil && res.StatusCode == http.StatusNotModified {
19636 if res.Body != nil {
19637 res.Body.Close()
19638 }
19639 return nil, gensupport.WrapError(&googleapi.Error{
19640 Code: res.StatusCode,
19641 Header: res.Header,
19642 })
19643 }
19644 if err != nil {
19645 return nil, err
19646 }
19647 defer googleapi.CloseBody(res)
19648 if err := googleapi.CheckResponse(res); err != nil {
19649 return nil, gensupport.WrapError(err)
19650 }
19651 ret := &AccountStatus{
19652 ServerResponse: googleapi.ServerResponse{
19653 Header: res.Header,
19654 HTTPStatusCode: res.StatusCode,
19655 },
19656 }
19657 target := &ret
19658 if err := gensupport.DecodeResponse(target, res); err != nil {
19659 return nil, err
19660 }
19661 return ret, nil
19662 }
19663
19664 type AccountstatusesListCall struct {
19665 s *APIService
19666 merchantId uint64
19667 urlParams_ gensupport.URLParams
19668 ifNoneMatch_ string
19669 ctx_ context.Context
19670 header_ http.Header
19671 }
19672
19673
19674
19675
19676
19677
19678 func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCall {
19679 c := &AccountstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19680 c.merchantId = merchantId
19681 return c
19682 }
19683
19684
19685
19686
19687 func (c *AccountstatusesListCall) Destinations(destinations ...string) *AccountstatusesListCall {
19688 c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
19689 return c
19690 }
19691
19692
19693
19694 func (c *AccountstatusesListCall) MaxResults(maxResults int64) *AccountstatusesListCall {
19695 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
19696 return c
19697 }
19698
19699
19700
19701 func (c *AccountstatusesListCall) Name(name string) *AccountstatusesListCall {
19702 c.urlParams_.Set("name", name)
19703 return c
19704 }
19705
19706
19707
19708 func (c *AccountstatusesListCall) PageToken(pageToken string) *AccountstatusesListCall {
19709 c.urlParams_.Set("pageToken", pageToken)
19710 return c
19711 }
19712
19713
19714
19715
19716 func (c *AccountstatusesListCall) Fields(s ...googleapi.Field) *AccountstatusesListCall {
19717 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19718 return c
19719 }
19720
19721
19722
19723
19724 func (c *AccountstatusesListCall) IfNoneMatch(entityTag string) *AccountstatusesListCall {
19725 c.ifNoneMatch_ = entityTag
19726 return c
19727 }
19728
19729
19730 func (c *AccountstatusesListCall) Context(ctx context.Context) *AccountstatusesListCall {
19731 c.ctx_ = ctx
19732 return c
19733 }
19734
19735
19736
19737 func (c *AccountstatusesListCall) Header() http.Header {
19738 if c.header_ == nil {
19739 c.header_ = make(http.Header)
19740 }
19741 return c.header_
19742 }
19743
19744 func (c *AccountstatusesListCall) doRequest(alt string) (*http.Response, error) {
19745 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19746 if c.ifNoneMatch_ != "" {
19747 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19748 }
19749 var body io.Reader = nil
19750 c.urlParams_.Set("alt", alt)
19751 c.urlParams_.Set("prettyPrint", "false")
19752 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accountstatuses")
19753 urls += "?" + c.urlParams_.Encode()
19754 req, err := http.NewRequest("GET", urls, body)
19755 if err != nil {
19756 return nil, err
19757 }
19758 req.Header = reqHeaders
19759 googleapi.Expand(req.URL, map[string]string{
19760 "merchantId": strconv.FormatUint(c.merchantId, 10),
19761 })
19762 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19763 }
19764
19765
19766
19767
19768
19769
19770
19771 func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*AccountstatusesListResponse, error) {
19772 gensupport.SetOptions(c.urlParams_, opts...)
19773 res, err := c.doRequest("json")
19774 if res != nil && res.StatusCode == http.StatusNotModified {
19775 if res.Body != nil {
19776 res.Body.Close()
19777 }
19778 return nil, gensupport.WrapError(&googleapi.Error{
19779 Code: res.StatusCode,
19780 Header: res.Header,
19781 })
19782 }
19783 if err != nil {
19784 return nil, err
19785 }
19786 defer googleapi.CloseBody(res)
19787 if err := googleapi.CheckResponse(res); err != nil {
19788 return nil, gensupport.WrapError(err)
19789 }
19790 ret := &AccountstatusesListResponse{
19791 ServerResponse: googleapi.ServerResponse{
19792 Header: res.Header,
19793 HTTPStatusCode: res.StatusCode,
19794 },
19795 }
19796 target := &ret
19797 if err := gensupport.DecodeResponse(target, res); err != nil {
19798 return nil, err
19799 }
19800 return ret, nil
19801 }
19802
19803
19804
19805
19806 func (c *AccountstatusesListCall) Pages(ctx context.Context, f func(*AccountstatusesListResponse) error) error {
19807 c.ctx_ = ctx
19808 defer c.PageToken(c.urlParams_.Get("pageToken"))
19809 for {
19810 x, err := c.Do()
19811 if err != nil {
19812 return err
19813 }
19814 if err := f(x); err != nil {
19815 return err
19816 }
19817 if x.NextPageToken == "" {
19818 return nil
19819 }
19820 c.PageToken(x.NextPageToken)
19821 }
19822 }
19823
19824 type AccounttaxCustombatchCall struct {
19825 s *APIService
19826 accounttaxcustombatchrequest *AccounttaxCustomBatchRequest
19827 urlParams_ gensupport.URLParams
19828 ctx_ context.Context
19829 header_ http.Header
19830 }
19831
19832
19833
19834 func (r *AccounttaxService) Custombatch(accounttaxcustombatchrequest *AccounttaxCustomBatchRequest) *AccounttaxCustombatchCall {
19835 c := &AccounttaxCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19836 c.accounttaxcustombatchrequest = accounttaxcustombatchrequest
19837 return c
19838 }
19839
19840
19841
19842
19843 func (c *AccounttaxCustombatchCall) Fields(s ...googleapi.Field) *AccounttaxCustombatchCall {
19844 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19845 return c
19846 }
19847
19848
19849 func (c *AccounttaxCustombatchCall) Context(ctx context.Context) *AccounttaxCustombatchCall {
19850 c.ctx_ = ctx
19851 return c
19852 }
19853
19854
19855
19856 func (c *AccounttaxCustombatchCall) Header() http.Header {
19857 if c.header_ == nil {
19858 c.header_ = make(http.Header)
19859 }
19860 return c.header_
19861 }
19862
19863 func (c *AccounttaxCustombatchCall) doRequest(alt string) (*http.Response, error) {
19864 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19865 var body io.Reader = nil
19866 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accounttaxcustombatchrequest)
19867 if err != nil {
19868 return nil, err
19869 }
19870 c.urlParams_.Set("alt", alt)
19871 c.urlParams_.Set("prettyPrint", "false")
19872 urls := googleapi.ResolveRelative(c.s.BasePath, "accounttax/batch")
19873 urls += "?" + c.urlParams_.Encode()
19874 req, err := http.NewRequest("POST", urls, body)
19875 if err != nil {
19876 return nil, err
19877 }
19878 req.Header = reqHeaders
19879 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19880 }
19881
19882
19883
19884
19885
19886
19887
19888 func (c *AccounttaxCustombatchCall) Do(opts ...googleapi.CallOption) (*AccounttaxCustomBatchResponse, error) {
19889 gensupport.SetOptions(c.urlParams_, opts...)
19890 res, err := c.doRequest("json")
19891 if res != nil && res.StatusCode == http.StatusNotModified {
19892 if res.Body != nil {
19893 res.Body.Close()
19894 }
19895 return nil, gensupport.WrapError(&googleapi.Error{
19896 Code: res.StatusCode,
19897 Header: res.Header,
19898 })
19899 }
19900 if err != nil {
19901 return nil, err
19902 }
19903 defer googleapi.CloseBody(res)
19904 if err := googleapi.CheckResponse(res); err != nil {
19905 return nil, gensupport.WrapError(err)
19906 }
19907 ret := &AccounttaxCustomBatchResponse{
19908 ServerResponse: googleapi.ServerResponse{
19909 Header: res.Header,
19910 HTTPStatusCode: res.StatusCode,
19911 },
19912 }
19913 target := &ret
19914 if err := gensupport.DecodeResponse(target, res); err != nil {
19915 return nil, err
19916 }
19917 return ret, nil
19918 }
19919
19920 type AccounttaxGetCall struct {
19921 s *APIService
19922 merchantId uint64
19923 accountId uint64
19924 urlParams_ gensupport.URLParams
19925 ifNoneMatch_ string
19926 ctx_ context.Context
19927 header_ http.Header
19928 }
19929
19930
19931
19932
19933
19934
19935
19936
19937 func (r *AccounttaxService) Get(merchantId uint64, accountId uint64) *AccounttaxGetCall {
19938 c := &AccounttaxGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19939 c.merchantId = merchantId
19940 c.accountId = accountId
19941 return c
19942 }
19943
19944
19945
19946
19947 func (c *AccounttaxGetCall) Fields(s ...googleapi.Field) *AccounttaxGetCall {
19948 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19949 return c
19950 }
19951
19952
19953
19954
19955 func (c *AccounttaxGetCall) IfNoneMatch(entityTag string) *AccounttaxGetCall {
19956 c.ifNoneMatch_ = entityTag
19957 return c
19958 }
19959
19960
19961 func (c *AccounttaxGetCall) Context(ctx context.Context) *AccounttaxGetCall {
19962 c.ctx_ = ctx
19963 return c
19964 }
19965
19966
19967
19968 func (c *AccounttaxGetCall) Header() http.Header {
19969 if c.header_ == nil {
19970 c.header_ = make(http.Header)
19971 }
19972 return c.header_
19973 }
19974
19975 func (c *AccounttaxGetCall) doRequest(alt string) (*http.Response, error) {
19976 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19977 if c.ifNoneMatch_ != "" {
19978 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19979 }
19980 var body io.Reader = nil
19981 c.urlParams_.Set("alt", alt)
19982 c.urlParams_.Set("prettyPrint", "false")
19983 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounttax/{accountId}")
19984 urls += "?" + c.urlParams_.Encode()
19985 req, err := http.NewRequest("GET", urls, body)
19986 if err != nil {
19987 return nil, err
19988 }
19989 req.Header = reqHeaders
19990 googleapi.Expand(req.URL, map[string]string{
19991 "merchantId": strconv.FormatUint(c.merchantId, 10),
19992 "accountId": strconv.FormatUint(c.accountId, 10),
19993 })
19994 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19995 }
19996
19997
19998
19999
20000
20001
20002 func (c *AccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error) {
20003 gensupport.SetOptions(c.urlParams_, opts...)
20004 res, err := c.doRequest("json")
20005 if res != nil && res.StatusCode == http.StatusNotModified {
20006 if res.Body != nil {
20007 res.Body.Close()
20008 }
20009 return nil, gensupport.WrapError(&googleapi.Error{
20010 Code: res.StatusCode,
20011 Header: res.Header,
20012 })
20013 }
20014 if err != nil {
20015 return nil, err
20016 }
20017 defer googleapi.CloseBody(res)
20018 if err := googleapi.CheckResponse(res); err != nil {
20019 return nil, gensupport.WrapError(err)
20020 }
20021 ret := &AccountTax{
20022 ServerResponse: googleapi.ServerResponse{
20023 Header: res.Header,
20024 HTTPStatusCode: res.StatusCode,
20025 },
20026 }
20027 target := &ret
20028 if err := gensupport.DecodeResponse(target, res); err != nil {
20029 return nil, err
20030 }
20031 return ret, nil
20032 }
20033
20034 type AccounttaxListCall struct {
20035 s *APIService
20036 merchantId uint64
20037 urlParams_ gensupport.URLParams
20038 ifNoneMatch_ string
20039 ctx_ context.Context
20040 header_ http.Header
20041 }
20042
20043
20044
20045
20046
20047
20048 func (r *AccounttaxService) List(merchantId uint64) *AccounttaxListCall {
20049 c := &AccounttaxListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20050 c.merchantId = merchantId
20051 return c
20052 }
20053
20054
20055
20056 func (c *AccounttaxListCall) MaxResults(maxResults int64) *AccounttaxListCall {
20057 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
20058 return c
20059 }
20060
20061
20062
20063 func (c *AccounttaxListCall) PageToken(pageToken string) *AccounttaxListCall {
20064 c.urlParams_.Set("pageToken", pageToken)
20065 return c
20066 }
20067
20068
20069
20070
20071 func (c *AccounttaxListCall) Fields(s ...googleapi.Field) *AccounttaxListCall {
20072 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20073 return c
20074 }
20075
20076
20077
20078
20079 func (c *AccounttaxListCall) IfNoneMatch(entityTag string) *AccounttaxListCall {
20080 c.ifNoneMatch_ = entityTag
20081 return c
20082 }
20083
20084
20085 func (c *AccounttaxListCall) Context(ctx context.Context) *AccounttaxListCall {
20086 c.ctx_ = ctx
20087 return c
20088 }
20089
20090
20091
20092 func (c *AccounttaxListCall) Header() http.Header {
20093 if c.header_ == nil {
20094 c.header_ = make(http.Header)
20095 }
20096 return c.header_
20097 }
20098
20099 func (c *AccounttaxListCall) doRequest(alt string) (*http.Response, error) {
20100 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20101 if c.ifNoneMatch_ != "" {
20102 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20103 }
20104 var body io.Reader = nil
20105 c.urlParams_.Set("alt", alt)
20106 c.urlParams_.Set("prettyPrint", "false")
20107 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounttax")
20108 urls += "?" + c.urlParams_.Encode()
20109 req, err := http.NewRequest("GET", urls, body)
20110 if err != nil {
20111 return nil, err
20112 }
20113 req.Header = reqHeaders
20114 googleapi.Expand(req.URL, map[string]string{
20115 "merchantId": strconv.FormatUint(c.merchantId, 10),
20116 })
20117 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20118 }
20119
20120
20121
20122
20123
20124
20125
20126 func (c *AccounttaxListCall) Do(opts ...googleapi.CallOption) (*AccounttaxListResponse, error) {
20127 gensupport.SetOptions(c.urlParams_, opts...)
20128 res, err := c.doRequest("json")
20129 if res != nil && res.StatusCode == http.StatusNotModified {
20130 if res.Body != nil {
20131 res.Body.Close()
20132 }
20133 return nil, gensupport.WrapError(&googleapi.Error{
20134 Code: res.StatusCode,
20135 Header: res.Header,
20136 })
20137 }
20138 if err != nil {
20139 return nil, err
20140 }
20141 defer googleapi.CloseBody(res)
20142 if err := googleapi.CheckResponse(res); err != nil {
20143 return nil, gensupport.WrapError(err)
20144 }
20145 ret := &AccounttaxListResponse{
20146 ServerResponse: googleapi.ServerResponse{
20147 Header: res.Header,
20148 HTTPStatusCode: res.StatusCode,
20149 },
20150 }
20151 target := &ret
20152 if err := gensupport.DecodeResponse(target, res); err != nil {
20153 return nil, err
20154 }
20155 return ret, nil
20156 }
20157
20158
20159
20160
20161 func (c *AccounttaxListCall) Pages(ctx context.Context, f func(*AccounttaxListResponse) error) error {
20162 c.ctx_ = ctx
20163 defer c.PageToken(c.urlParams_.Get("pageToken"))
20164 for {
20165 x, err := c.Do()
20166 if err != nil {
20167 return err
20168 }
20169 if err := f(x); err != nil {
20170 return err
20171 }
20172 if x.NextPageToken == "" {
20173 return nil
20174 }
20175 c.PageToken(x.NextPageToken)
20176 }
20177 }
20178
20179 type AccounttaxUpdateCall struct {
20180 s *APIService
20181 merchantId uint64
20182 accountId uint64
20183 accounttax *AccountTax
20184 urlParams_ gensupport.URLParams
20185 ctx_ context.Context
20186 header_ http.Header
20187 }
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197 func (r *AccounttaxService) Update(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxUpdateCall {
20198 c := &AccounttaxUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20199 c.merchantId = merchantId
20200 c.accountId = accountId
20201 c.accounttax = accounttax
20202 return c
20203 }
20204
20205
20206
20207
20208 func (c *AccounttaxUpdateCall) Fields(s ...googleapi.Field) *AccounttaxUpdateCall {
20209 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20210 return c
20211 }
20212
20213
20214 func (c *AccounttaxUpdateCall) Context(ctx context.Context) *AccounttaxUpdateCall {
20215 c.ctx_ = ctx
20216 return c
20217 }
20218
20219
20220
20221 func (c *AccounttaxUpdateCall) Header() http.Header {
20222 if c.header_ == nil {
20223 c.header_ = make(http.Header)
20224 }
20225 return c.header_
20226 }
20227
20228 func (c *AccounttaxUpdateCall) doRequest(alt string) (*http.Response, error) {
20229 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20230 var body io.Reader = nil
20231 body, err := googleapi.WithoutDataWrapper.JSONReader(c.accounttax)
20232 if err != nil {
20233 return nil, err
20234 }
20235 c.urlParams_.Set("alt", alt)
20236 c.urlParams_.Set("prettyPrint", "false")
20237 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounttax/{accountId}")
20238 urls += "?" + c.urlParams_.Encode()
20239 req, err := http.NewRequest("PUT", urls, body)
20240 if err != nil {
20241 return nil, err
20242 }
20243 req.Header = reqHeaders
20244 googleapi.Expand(req.URL, map[string]string{
20245 "merchantId": strconv.FormatUint(c.merchantId, 10),
20246 "accountId": strconv.FormatUint(c.accountId, 10),
20247 })
20248 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20249 }
20250
20251
20252
20253
20254
20255
20256 func (c *AccounttaxUpdateCall) Do(opts ...googleapi.CallOption) (*AccountTax, error) {
20257 gensupport.SetOptions(c.urlParams_, opts...)
20258 res, err := c.doRequest("json")
20259 if res != nil && res.StatusCode == http.StatusNotModified {
20260 if res.Body != nil {
20261 res.Body.Close()
20262 }
20263 return nil, gensupport.WrapError(&googleapi.Error{
20264 Code: res.StatusCode,
20265 Header: res.Header,
20266 })
20267 }
20268 if err != nil {
20269 return nil, err
20270 }
20271 defer googleapi.CloseBody(res)
20272 if err := googleapi.CheckResponse(res); err != nil {
20273 return nil, gensupport.WrapError(err)
20274 }
20275 ret := &AccountTax{
20276 ServerResponse: googleapi.ServerResponse{
20277 Header: res.Header,
20278 HTTPStatusCode: res.StatusCode,
20279 },
20280 }
20281 target := &ret
20282 if err := gensupport.DecodeResponse(target, res); err != nil {
20283 return nil, err
20284 }
20285 return ret, nil
20286 }
20287
20288 type BuyongoogleprogramsActivateCall struct {
20289 s *APIService
20290 merchantId int64
20291 regionCode string
20292 activatebuyongoogleprogramrequest *ActivateBuyOnGoogleProgramRequest
20293 urlParams_ gensupport.URLParams
20294 ctx_ context.Context
20295 header_ http.Header
20296 }
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306 func (r *BuyongoogleprogramsService) Activate(merchantId int64, regionCode string, activatebuyongoogleprogramrequest *ActivateBuyOnGoogleProgramRequest) *BuyongoogleprogramsActivateCall {
20307 c := &BuyongoogleprogramsActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20308 c.merchantId = merchantId
20309 c.regionCode = regionCode
20310 c.activatebuyongoogleprogramrequest = activatebuyongoogleprogramrequest
20311 return c
20312 }
20313
20314
20315
20316
20317 func (c *BuyongoogleprogramsActivateCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsActivateCall {
20318 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20319 return c
20320 }
20321
20322
20323 func (c *BuyongoogleprogramsActivateCall) Context(ctx context.Context) *BuyongoogleprogramsActivateCall {
20324 c.ctx_ = ctx
20325 return c
20326 }
20327
20328
20329
20330 func (c *BuyongoogleprogramsActivateCall) Header() http.Header {
20331 if c.header_ == nil {
20332 c.header_ = make(http.Header)
20333 }
20334 return c.header_
20335 }
20336
20337 func (c *BuyongoogleprogramsActivateCall) doRequest(alt string) (*http.Response, error) {
20338 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20339 var body io.Reader = nil
20340 body, err := googleapi.WithoutDataWrapper.JSONReader(c.activatebuyongoogleprogramrequest)
20341 if err != nil {
20342 return nil, err
20343 }
20344 c.urlParams_.Set("alt", alt)
20345 c.urlParams_.Set("prettyPrint", "false")
20346 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}/activate")
20347 urls += "?" + c.urlParams_.Encode()
20348 req, err := http.NewRequest("POST", urls, body)
20349 if err != nil {
20350 return nil, err
20351 }
20352 req.Header = reqHeaders
20353 googleapi.Expand(req.URL, map[string]string{
20354 "merchantId": strconv.FormatInt(c.merchantId, 10),
20355 "regionCode": c.regionCode,
20356 })
20357 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20358 }
20359
20360
20361 func (c *BuyongoogleprogramsActivateCall) Do(opts ...googleapi.CallOption) error {
20362 gensupport.SetOptions(c.urlParams_, opts...)
20363 res, err := c.doRequest("json")
20364 if err != nil {
20365 return err
20366 }
20367 defer googleapi.CloseBody(res)
20368 if err := googleapi.CheckResponse(res); err != nil {
20369 return gensupport.WrapError(err)
20370 }
20371 return nil
20372 }
20373
20374 type BuyongoogleprogramsGetCall struct {
20375 s *APIService
20376 merchantId int64
20377 regionCode string
20378 urlParams_ gensupport.URLParams
20379 ifNoneMatch_ string
20380 ctx_ context.Context
20381 header_ http.Header
20382 }
20383
20384
20385
20386
20387
20388
20389
20390 func (r *BuyongoogleprogramsService) Get(merchantId int64, regionCode string) *BuyongoogleprogramsGetCall {
20391 c := &BuyongoogleprogramsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20392 c.merchantId = merchantId
20393 c.regionCode = regionCode
20394 return c
20395 }
20396
20397
20398
20399
20400 func (c *BuyongoogleprogramsGetCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsGetCall {
20401 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20402 return c
20403 }
20404
20405
20406
20407
20408 func (c *BuyongoogleprogramsGetCall) IfNoneMatch(entityTag string) *BuyongoogleprogramsGetCall {
20409 c.ifNoneMatch_ = entityTag
20410 return c
20411 }
20412
20413
20414 func (c *BuyongoogleprogramsGetCall) Context(ctx context.Context) *BuyongoogleprogramsGetCall {
20415 c.ctx_ = ctx
20416 return c
20417 }
20418
20419
20420
20421 func (c *BuyongoogleprogramsGetCall) Header() http.Header {
20422 if c.header_ == nil {
20423 c.header_ = make(http.Header)
20424 }
20425 return c.header_
20426 }
20427
20428 func (c *BuyongoogleprogramsGetCall) doRequest(alt string) (*http.Response, error) {
20429 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20430 if c.ifNoneMatch_ != "" {
20431 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20432 }
20433 var body io.Reader = nil
20434 c.urlParams_.Set("alt", alt)
20435 c.urlParams_.Set("prettyPrint", "false")
20436 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}")
20437 urls += "?" + c.urlParams_.Encode()
20438 req, err := http.NewRequest("GET", urls, body)
20439 if err != nil {
20440 return nil, err
20441 }
20442 req.Header = reqHeaders
20443 googleapi.Expand(req.URL, map[string]string{
20444 "merchantId": strconv.FormatInt(c.merchantId, 10),
20445 "regionCode": c.regionCode,
20446 })
20447 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20448 }
20449
20450
20451
20452
20453
20454
20455
20456 func (c *BuyongoogleprogramsGetCall) Do(opts ...googleapi.CallOption) (*BuyOnGoogleProgramStatus, error) {
20457 gensupport.SetOptions(c.urlParams_, opts...)
20458 res, err := c.doRequest("json")
20459 if res != nil && res.StatusCode == http.StatusNotModified {
20460 if res.Body != nil {
20461 res.Body.Close()
20462 }
20463 return nil, gensupport.WrapError(&googleapi.Error{
20464 Code: res.StatusCode,
20465 Header: res.Header,
20466 })
20467 }
20468 if err != nil {
20469 return nil, err
20470 }
20471 defer googleapi.CloseBody(res)
20472 if err := googleapi.CheckResponse(res); err != nil {
20473 return nil, gensupport.WrapError(err)
20474 }
20475 ret := &BuyOnGoogleProgramStatus{
20476 ServerResponse: googleapi.ServerResponse{
20477 Header: res.Header,
20478 HTTPStatusCode: res.StatusCode,
20479 },
20480 }
20481 target := &ret
20482 if err := gensupport.DecodeResponse(target, res); err != nil {
20483 return nil, err
20484 }
20485 return ret, nil
20486 }
20487
20488 type BuyongoogleprogramsOnboardCall struct {
20489 s *APIService
20490 merchantId int64
20491 regionCode string
20492 onboardbuyongoogleprogramrequest *OnboardBuyOnGoogleProgramRequest
20493 urlParams_ gensupport.URLParams
20494 ctx_ context.Context
20495 header_ http.Header
20496 }
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510 func (r *BuyongoogleprogramsService) Onboard(merchantId int64, regionCode string, onboardbuyongoogleprogramrequest *OnboardBuyOnGoogleProgramRequest) *BuyongoogleprogramsOnboardCall {
20511 c := &BuyongoogleprogramsOnboardCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20512 c.merchantId = merchantId
20513 c.regionCode = regionCode
20514 c.onboardbuyongoogleprogramrequest = onboardbuyongoogleprogramrequest
20515 return c
20516 }
20517
20518
20519
20520
20521 func (c *BuyongoogleprogramsOnboardCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsOnboardCall {
20522 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20523 return c
20524 }
20525
20526
20527 func (c *BuyongoogleprogramsOnboardCall) Context(ctx context.Context) *BuyongoogleprogramsOnboardCall {
20528 c.ctx_ = ctx
20529 return c
20530 }
20531
20532
20533
20534 func (c *BuyongoogleprogramsOnboardCall) Header() http.Header {
20535 if c.header_ == nil {
20536 c.header_ = make(http.Header)
20537 }
20538 return c.header_
20539 }
20540
20541 func (c *BuyongoogleprogramsOnboardCall) doRequest(alt string) (*http.Response, error) {
20542 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20543 var body io.Reader = nil
20544 body, err := googleapi.WithoutDataWrapper.JSONReader(c.onboardbuyongoogleprogramrequest)
20545 if err != nil {
20546 return nil, err
20547 }
20548 c.urlParams_.Set("alt", alt)
20549 c.urlParams_.Set("prettyPrint", "false")
20550 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}/onboard")
20551 urls += "?" + c.urlParams_.Encode()
20552 req, err := http.NewRequest("POST", urls, body)
20553 if err != nil {
20554 return nil, err
20555 }
20556 req.Header = reqHeaders
20557 googleapi.Expand(req.URL, map[string]string{
20558 "merchantId": strconv.FormatInt(c.merchantId, 10),
20559 "regionCode": c.regionCode,
20560 })
20561 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20562 }
20563
20564
20565 func (c *BuyongoogleprogramsOnboardCall) Do(opts ...googleapi.CallOption) error {
20566 gensupport.SetOptions(c.urlParams_, opts...)
20567 res, err := c.doRequest("json")
20568 if err != nil {
20569 return err
20570 }
20571 defer googleapi.CloseBody(res)
20572 if err := googleapi.CheckResponse(res); err != nil {
20573 return gensupport.WrapError(err)
20574 }
20575 return nil
20576 }
20577
20578 type BuyongoogleprogramsPatchCall struct {
20579 s *APIService
20580 merchantId int64
20581 regionCode string
20582 buyongoogleprogramstatus *BuyOnGoogleProgramStatus
20583 urlParams_ gensupport.URLParams
20584 ctx_ context.Context
20585 header_ http.Header
20586 }
20587
20588
20589
20590
20591
20592
20593
20594
20595 func (r *BuyongoogleprogramsService) Patch(merchantId int64, regionCode string, buyongoogleprogramstatus *BuyOnGoogleProgramStatus) *BuyongoogleprogramsPatchCall {
20596 c := &BuyongoogleprogramsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20597 c.merchantId = merchantId
20598 c.regionCode = regionCode
20599 c.buyongoogleprogramstatus = buyongoogleprogramstatus
20600 return c
20601 }
20602
20603
20604
20605
20606
20607 func (c *BuyongoogleprogramsPatchCall) UpdateMask(updateMask string) *BuyongoogleprogramsPatchCall {
20608 c.urlParams_.Set("updateMask", updateMask)
20609 return c
20610 }
20611
20612
20613
20614
20615 func (c *BuyongoogleprogramsPatchCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsPatchCall {
20616 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20617 return c
20618 }
20619
20620
20621 func (c *BuyongoogleprogramsPatchCall) Context(ctx context.Context) *BuyongoogleprogramsPatchCall {
20622 c.ctx_ = ctx
20623 return c
20624 }
20625
20626
20627
20628 func (c *BuyongoogleprogramsPatchCall) Header() http.Header {
20629 if c.header_ == nil {
20630 c.header_ = make(http.Header)
20631 }
20632 return c.header_
20633 }
20634
20635 func (c *BuyongoogleprogramsPatchCall) doRequest(alt string) (*http.Response, error) {
20636 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20637 var body io.Reader = nil
20638 body, err := googleapi.WithoutDataWrapper.JSONReader(c.buyongoogleprogramstatus)
20639 if err != nil {
20640 return nil, err
20641 }
20642 c.urlParams_.Set("alt", alt)
20643 c.urlParams_.Set("prettyPrint", "false")
20644 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}")
20645 urls += "?" + c.urlParams_.Encode()
20646 req, err := http.NewRequest("PATCH", urls, body)
20647 if err != nil {
20648 return nil, err
20649 }
20650 req.Header = reqHeaders
20651 googleapi.Expand(req.URL, map[string]string{
20652 "merchantId": strconv.FormatInt(c.merchantId, 10),
20653 "regionCode": c.regionCode,
20654 })
20655 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20656 }
20657
20658
20659
20660
20661
20662
20663
20664 func (c *BuyongoogleprogramsPatchCall) Do(opts ...googleapi.CallOption) (*BuyOnGoogleProgramStatus, error) {
20665 gensupport.SetOptions(c.urlParams_, opts...)
20666 res, err := c.doRequest("json")
20667 if res != nil && res.StatusCode == http.StatusNotModified {
20668 if res.Body != nil {
20669 res.Body.Close()
20670 }
20671 return nil, gensupport.WrapError(&googleapi.Error{
20672 Code: res.StatusCode,
20673 Header: res.Header,
20674 })
20675 }
20676 if err != nil {
20677 return nil, err
20678 }
20679 defer googleapi.CloseBody(res)
20680 if err := googleapi.CheckResponse(res); err != nil {
20681 return nil, gensupport.WrapError(err)
20682 }
20683 ret := &BuyOnGoogleProgramStatus{
20684 ServerResponse: googleapi.ServerResponse{
20685 Header: res.Header,
20686 HTTPStatusCode: res.StatusCode,
20687 },
20688 }
20689 target := &ret
20690 if err := gensupport.DecodeResponse(target, res); err != nil {
20691 return nil, err
20692 }
20693 return ret, nil
20694 }
20695
20696 type BuyongoogleprogramsPauseCall struct {
20697 s *APIService
20698 merchantId int64
20699 regionCode string
20700 pausebuyongoogleprogramrequest *PauseBuyOnGoogleProgramRequest
20701 urlParams_ gensupport.URLParams
20702 ctx_ context.Context
20703 header_ http.Header
20704 }
20705
20706
20707
20708
20709
20710
20711
20712
20713 func (r *BuyongoogleprogramsService) Pause(merchantId int64, regionCode string, pausebuyongoogleprogramrequest *PauseBuyOnGoogleProgramRequest) *BuyongoogleprogramsPauseCall {
20714 c := &BuyongoogleprogramsPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20715 c.merchantId = merchantId
20716 c.regionCode = regionCode
20717 c.pausebuyongoogleprogramrequest = pausebuyongoogleprogramrequest
20718 return c
20719 }
20720
20721
20722
20723
20724 func (c *BuyongoogleprogramsPauseCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsPauseCall {
20725 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20726 return c
20727 }
20728
20729
20730 func (c *BuyongoogleprogramsPauseCall) Context(ctx context.Context) *BuyongoogleprogramsPauseCall {
20731 c.ctx_ = ctx
20732 return c
20733 }
20734
20735
20736
20737 func (c *BuyongoogleprogramsPauseCall) Header() http.Header {
20738 if c.header_ == nil {
20739 c.header_ = make(http.Header)
20740 }
20741 return c.header_
20742 }
20743
20744 func (c *BuyongoogleprogramsPauseCall) doRequest(alt string) (*http.Response, error) {
20745 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20746 var body io.Reader = nil
20747 body, err := googleapi.WithoutDataWrapper.JSONReader(c.pausebuyongoogleprogramrequest)
20748 if err != nil {
20749 return nil, err
20750 }
20751 c.urlParams_.Set("alt", alt)
20752 c.urlParams_.Set("prettyPrint", "false")
20753 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}/pause")
20754 urls += "?" + c.urlParams_.Encode()
20755 req, err := http.NewRequest("POST", urls, body)
20756 if err != nil {
20757 return nil, err
20758 }
20759 req.Header = reqHeaders
20760 googleapi.Expand(req.URL, map[string]string{
20761 "merchantId": strconv.FormatInt(c.merchantId, 10),
20762 "regionCode": c.regionCode,
20763 })
20764 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20765 }
20766
20767
20768 func (c *BuyongoogleprogramsPauseCall) Do(opts ...googleapi.CallOption) error {
20769 gensupport.SetOptions(c.urlParams_, opts...)
20770 res, err := c.doRequest("json")
20771 if err != nil {
20772 return err
20773 }
20774 defer googleapi.CloseBody(res)
20775 if err := googleapi.CheckResponse(res); err != nil {
20776 return gensupport.WrapError(err)
20777 }
20778 return nil
20779 }
20780
20781 type BuyongoogleprogramsRequestreviewCall struct {
20782 s *APIService
20783 merchantId int64
20784 regionCode string
20785 requestreviewbuyongoogleprogramrequest *RequestReviewBuyOnGoogleProgramRequest
20786 urlParams_ gensupport.URLParams
20787 ctx_ context.Context
20788 header_ http.Header
20789 }
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799 func (r *BuyongoogleprogramsService) Requestreview(merchantId int64, regionCode string, requestreviewbuyongoogleprogramrequest *RequestReviewBuyOnGoogleProgramRequest) *BuyongoogleprogramsRequestreviewCall {
20800 c := &BuyongoogleprogramsRequestreviewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20801 c.merchantId = merchantId
20802 c.regionCode = regionCode
20803 c.requestreviewbuyongoogleprogramrequest = requestreviewbuyongoogleprogramrequest
20804 return c
20805 }
20806
20807
20808
20809
20810 func (c *BuyongoogleprogramsRequestreviewCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsRequestreviewCall {
20811 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20812 return c
20813 }
20814
20815
20816 func (c *BuyongoogleprogramsRequestreviewCall) Context(ctx context.Context) *BuyongoogleprogramsRequestreviewCall {
20817 c.ctx_ = ctx
20818 return c
20819 }
20820
20821
20822
20823 func (c *BuyongoogleprogramsRequestreviewCall) Header() http.Header {
20824 if c.header_ == nil {
20825 c.header_ = make(http.Header)
20826 }
20827 return c.header_
20828 }
20829
20830 func (c *BuyongoogleprogramsRequestreviewCall) doRequest(alt string) (*http.Response, error) {
20831 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20832 var body io.Reader = nil
20833 body, err := googleapi.WithoutDataWrapper.JSONReader(c.requestreviewbuyongoogleprogramrequest)
20834 if err != nil {
20835 return nil, err
20836 }
20837 c.urlParams_.Set("alt", alt)
20838 c.urlParams_.Set("prettyPrint", "false")
20839 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}/requestreview")
20840 urls += "?" + c.urlParams_.Encode()
20841 req, err := http.NewRequest("POST", urls, body)
20842 if err != nil {
20843 return nil, err
20844 }
20845 req.Header = reqHeaders
20846 googleapi.Expand(req.URL, map[string]string{
20847 "merchantId": strconv.FormatInt(c.merchantId, 10),
20848 "regionCode": c.regionCode,
20849 })
20850 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20851 }
20852
20853
20854 func (c *BuyongoogleprogramsRequestreviewCall) Do(opts ...googleapi.CallOption) error {
20855 gensupport.SetOptions(c.urlParams_, opts...)
20856 res, err := c.doRequest("json")
20857 if err != nil {
20858 return err
20859 }
20860 defer googleapi.CloseBody(res)
20861 if err := googleapi.CheckResponse(res); err != nil {
20862 return gensupport.WrapError(err)
20863 }
20864 return nil
20865 }
20866
20867 type CollectionsCreateCall struct {
20868 s *APIService
20869 merchantId int64
20870 collection *Collection
20871 urlParams_ gensupport.URLParams
20872 ctx_ context.Context
20873 header_ http.Header
20874 }
20875
20876
20877
20878
20879
20880
20881
20882
20883 func (r *CollectionsService) Create(merchantId int64, collection *Collection) *CollectionsCreateCall {
20884 c := &CollectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20885 c.merchantId = merchantId
20886 c.collection = collection
20887 return c
20888 }
20889
20890
20891
20892
20893 func (c *CollectionsCreateCall) Fields(s ...googleapi.Field) *CollectionsCreateCall {
20894 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20895 return c
20896 }
20897
20898
20899 func (c *CollectionsCreateCall) Context(ctx context.Context) *CollectionsCreateCall {
20900 c.ctx_ = ctx
20901 return c
20902 }
20903
20904
20905
20906 func (c *CollectionsCreateCall) Header() http.Header {
20907 if c.header_ == nil {
20908 c.header_ = make(http.Header)
20909 }
20910 return c.header_
20911 }
20912
20913 func (c *CollectionsCreateCall) doRequest(alt string) (*http.Response, error) {
20914 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20915 var body io.Reader = nil
20916 body, err := googleapi.WithoutDataWrapper.JSONReader(c.collection)
20917 if err != nil {
20918 return nil, err
20919 }
20920 c.urlParams_.Set("alt", alt)
20921 c.urlParams_.Set("prettyPrint", "false")
20922 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collections")
20923 urls += "?" + c.urlParams_.Encode()
20924 req, err := http.NewRequest("POST", urls, body)
20925 if err != nil {
20926 return nil, err
20927 }
20928 req.Header = reqHeaders
20929 googleapi.Expand(req.URL, map[string]string{
20930 "merchantId": strconv.FormatInt(c.merchantId, 10),
20931 })
20932 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20933 }
20934
20935
20936
20937
20938
20939
20940 func (c *CollectionsCreateCall) Do(opts ...googleapi.CallOption) (*Collection, error) {
20941 gensupport.SetOptions(c.urlParams_, opts...)
20942 res, err := c.doRequest("json")
20943 if res != nil && res.StatusCode == http.StatusNotModified {
20944 if res.Body != nil {
20945 res.Body.Close()
20946 }
20947 return nil, gensupport.WrapError(&googleapi.Error{
20948 Code: res.StatusCode,
20949 Header: res.Header,
20950 })
20951 }
20952 if err != nil {
20953 return nil, err
20954 }
20955 defer googleapi.CloseBody(res)
20956 if err := googleapi.CheckResponse(res); err != nil {
20957 return nil, gensupport.WrapError(err)
20958 }
20959 ret := &Collection{
20960 ServerResponse: googleapi.ServerResponse{
20961 Header: res.Header,
20962 HTTPStatusCode: res.StatusCode,
20963 },
20964 }
20965 target := &ret
20966 if err := gensupport.DecodeResponse(target, res); err != nil {
20967 return nil, err
20968 }
20969 return ret, nil
20970 }
20971
20972 type CollectionsDeleteCall struct {
20973 s *APIService
20974 merchantId int64
20975 collectionId string
20976 urlParams_ gensupport.URLParams
20977 ctx_ context.Context
20978 header_ http.Header
20979 }
20980
20981
20982
20983
20984
20985
20986
20987 func (r *CollectionsService) Delete(merchantId int64, collectionId string) *CollectionsDeleteCall {
20988 c := &CollectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20989 c.merchantId = merchantId
20990 c.collectionId = collectionId
20991 return c
20992 }
20993
20994
20995
20996
20997 func (c *CollectionsDeleteCall) Fields(s ...googleapi.Field) *CollectionsDeleteCall {
20998 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20999 return c
21000 }
21001
21002
21003 func (c *CollectionsDeleteCall) Context(ctx context.Context) *CollectionsDeleteCall {
21004 c.ctx_ = ctx
21005 return c
21006 }
21007
21008
21009
21010 func (c *CollectionsDeleteCall) Header() http.Header {
21011 if c.header_ == nil {
21012 c.header_ = make(http.Header)
21013 }
21014 return c.header_
21015 }
21016
21017 func (c *CollectionsDeleteCall) doRequest(alt string) (*http.Response, error) {
21018 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21019 var body io.Reader = nil
21020 c.urlParams_.Set("alt", alt)
21021 c.urlParams_.Set("prettyPrint", "false")
21022 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collections/{collectionId}")
21023 urls += "?" + c.urlParams_.Encode()
21024 req, err := http.NewRequest("DELETE", urls, body)
21025 if err != nil {
21026 return nil, err
21027 }
21028 req.Header = reqHeaders
21029 googleapi.Expand(req.URL, map[string]string{
21030 "merchantId": strconv.FormatInt(c.merchantId, 10),
21031 "collectionId": c.collectionId,
21032 })
21033 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21034 }
21035
21036
21037 func (c *CollectionsDeleteCall) Do(opts ...googleapi.CallOption) error {
21038 gensupport.SetOptions(c.urlParams_, opts...)
21039 res, err := c.doRequest("json")
21040 if err != nil {
21041 return err
21042 }
21043 defer googleapi.CloseBody(res)
21044 if err := googleapi.CheckResponse(res); err != nil {
21045 return gensupport.WrapError(err)
21046 }
21047 return nil
21048 }
21049
21050 type CollectionsGetCall struct {
21051 s *APIService
21052 merchantId int64
21053 collectionId string
21054 urlParams_ gensupport.URLParams
21055 ifNoneMatch_ string
21056 ctx_ context.Context
21057 header_ http.Header
21058 }
21059
21060
21061
21062
21063
21064
21065 func (r *CollectionsService) Get(merchantId int64, collectionId string) *CollectionsGetCall {
21066 c := &CollectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21067 c.merchantId = merchantId
21068 c.collectionId = collectionId
21069 return c
21070 }
21071
21072
21073
21074
21075 func (c *CollectionsGetCall) Fields(s ...googleapi.Field) *CollectionsGetCall {
21076 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21077 return c
21078 }
21079
21080
21081
21082
21083 func (c *CollectionsGetCall) IfNoneMatch(entityTag string) *CollectionsGetCall {
21084 c.ifNoneMatch_ = entityTag
21085 return c
21086 }
21087
21088
21089 func (c *CollectionsGetCall) Context(ctx context.Context) *CollectionsGetCall {
21090 c.ctx_ = ctx
21091 return c
21092 }
21093
21094
21095
21096 func (c *CollectionsGetCall) Header() http.Header {
21097 if c.header_ == nil {
21098 c.header_ = make(http.Header)
21099 }
21100 return c.header_
21101 }
21102
21103 func (c *CollectionsGetCall) doRequest(alt string) (*http.Response, error) {
21104 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21105 if c.ifNoneMatch_ != "" {
21106 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21107 }
21108 var body io.Reader = nil
21109 c.urlParams_.Set("alt", alt)
21110 c.urlParams_.Set("prettyPrint", "false")
21111 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collections/{collectionId}")
21112 urls += "?" + c.urlParams_.Encode()
21113 req, err := http.NewRequest("GET", urls, body)
21114 if err != nil {
21115 return nil, err
21116 }
21117 req.Header = reqHeaders
21118 googleapi.Expand(req.URL, map[string]string{
21119 "merchantId": strconv.FormatInt(c.merchantId, 10),
21120 "collectionId": c.collectionId,
21121 })
21122 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21123 }
21124
21125
21126
21127
21128
21129
21130 func (c *CollectionsGetCall) Do(opts ...googleapi.CallOption) (*Collection, error) {
21131 gensupport.SetOptions(c.urlParams_, opts...)
21132 res, err := c.doRequest("json")
21133 if res != nil && res.StatusCode == http.StatusNotModified {
21134 if res.Body != nil {
21135 res.Body.Close()
21136 }
21137 return nil, gensupport.WrapError(&googleapi.Error{
21138 Code: res.StatusCode,
21139 Header: res.Header,
21140 })
21141 }
21142 if err != nil {
21143 return nil, err
21144 }
21145 defer googleapi.CloseBody(res)
21146 if err := googleapi.CheckResponse(res); err != nil {
21147 return nil, gensupport.WrapError(err)
21148 }
21149 ret := &Collection{
21150 ServerResponse: googleapi.ServerResponse{
21151 Header: res.Header,
21152 HTTPStatusCode: res.StatusCode,
21153 },
21154 }
21155 target := &ret
21156 if err := gensupport.DecodeResponse(target, res); err != nil {
21157 return nil, err
21158 }
21159 return ret, nil
21160 }
21161
21162 type CollectionsListCall struct {
21163 s *APIService
21164 merchantId int64
21165 urlParams_ gensupport.URLParams
21166 ifNoneMatch_ string
21167 ctx_ context.Context
21168 header_ http.Header
21169 }
21170
21171
21172
21173
21174
21175
21176
21177 func (r *CollectionsService) List(merchantId int64) *CollectionsListCall {
21178 c := &CollectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21179 c.merchantId = merchantId
21180 return c
21181 }
21182
21183
21184
21185
21186 func (c *CollectionsListCall) PageSize(pageSize int64) *CollectionsListCall {
21187 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21188 return c
21189 }
21190
21191
21192
21193
21194 func (c *CollectionsListCall) PageToken(pageToken string) *CollectionsListCall {
21195 c.urlParams_.Set("pageToken", pageToken)
21196 return c
21197 }
21198
21199
21200
21201
21202 func (c *CollectionsListCall) Fields(s ...googleapi.Field) *CollectionsListCall {
21203 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21204 return c
21205 }
21206
21207
21208
21209
21210 func (c *CollectionsListCall) IfNoneMatch(entityTag string) *CollectionsListCall {
21211 c.ifNoneMatch_ = entityTag
21212 return c
21213 }
21214
21215
21216 func (c *CollectionsListCall) Context(ctx context.Context) *CollectionsListCall {
21217 c.ctx_ = ctx
21218 return c
21219 }
21220
21221
21222
21223 func (c *CollectionsListCall) Header() http.Header {
21224 if c.header_ == nil {
21225 c.header_ = make(http.Header)
21226 }
21227 return c.header_
21228 }
21229
21230 func (c *CollectionsListCall) doRequest(alt string) (*http.Response, error) {
21231 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21232 if c.ifNoneMatch_ != "" {
21233 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21234 }
21235 var body io.Reader = nil
21236 c.urlParams_.Set("alt", alt)
21237 c.urlParams_.Set("prettyPrint", "false")
21238 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collections")
21239 urls += "?" + c.urlParams_.Encode()
21240 req, err := http.NewRequest("GET", urls, body)
21241 if err != nil {
21242 return nil, err
21243 }
21244 req.Header = reqHeaders
21245 googleapi.Expand(req.URL, map[string]string{
21246 "merchantId": strconv.FormatInt(c.merchantId, 10),
21247 })
21248 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21249 }
21250
21251
21252
21253
21254
21255
21256
21257 func (c *CollectionsListCall) Do(opts ...googleapi.CallOption) (*ListCollectionsResponse, error) {
21258 gensupport.SetOptions(c.urlParams_, opts...)
21259 res, err := c.doRequest("json")
21260 if res != nil && res.StatusCode == http.StatusNotModified {
21261 if res.Body != nil {
21262 res.Body.Close()
21263 }
21264 return nil, gensupport.WrapError(&googleapi.Error{
21265 Code: res.StatusCode,
21266 Header: res.Header,
21267 })
21268 }
21269 if err != nil {
21270 return nil, err
21271 }
21272 defer googleapi.CloseBody(res)
21273 if err := googleapi.CheckResponse(res); err != nil {
21274 return nil, gensupport.WrapError(err)
21275 }
21276 ret := &ListCollectionsResponse{
21277 ServerResponse: googleapi.ServerResponse{
21278 Header: res.Header,
21279 HTTPStatusCode: res.StatusCode,
21280 },
21281 }
21282 target := &ret
21283 if err := gensupport.DecodeResponse(target, res); err != nil {
21284 return nil, err
21285 }
21286 return ret, nil
21287 }
21288
21289
21290
21291
21292 func (c *CollectionsListCall) Pages(ctx context.Context, f func(*ListCollectionsResponse) error) error {
21293 c.ctx_ = ctx
21294 defer c.PageToken(c.urlParams_.Get("pageToken"))
21295 for {
21296 x, err := c.Do()
21297 if err != nil {
21298 return err
21299 }
21300 if err := f(x); err != nil {
21301 return err
21302 }
21303 if x.NextPageToken == "" {
21304 return nil
21305 }
21306 c.PageToken(x.NextPageToken)
21307 }
21308 }
21309
21310 type CollectionstatusesGetCall struct {
21311 s *APIService
21312 merchantId int64
21313 collectionId string
21314 urlParams_ gensupport.URLParams
21315 ifNoneMatch_ string
21316 ctx_ context.Context
21317 header_ http.Header
21318 }
21319
21320
21321
21322
21323
21324
21325
21326 func (r *CollectionstatusesService) Get(merchantId int64, collectionId string) *CollectionstatusesGetCall {
21327 c := &CollectionstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21328 c.merchantId = merchantId
21329 c.collectionId = collectionId
21330 return c
21331 }
21332
21333
21334
21335
21336 func (c *CollectionstatusesGetCall) Fields(s ...googleapi.Field) *CollectionstatusesGetCall {
21337 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21338 return c
21339 }
21340
21341
21342
21343
21344 func (c *CollectionstatusesGetCall) IfNoneMatch(entityTag string) *CollectionstatusesGetCall {
21345 c.ifNoneMatch_ = entityTag
21346 return c
21347 }
21348
21349
21350 func (c *CollectionstatusesGetCall) Context(ctx context.Context) *CollectionstatusesGetCall {
21351 c.ctx_ = ctx
21352 return c
21353 }
21354
21355
21356
21357 func (c *CollectionstatusesGetCall) Header() http.Header {
21358 if c.header_ == nil {
21359 c.header_ = make(http.Header)
21360 }
21361 return c.header_
21362 }
21363
21364 func (c *CollectionstatusesGetCall) doRequest(alt string) (*http.Response, error) {
21365 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21366 if c.ifNoneMatch_ != "" {
21367 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21368 }
21369 var body io.Reader = nil
21370 c.urlParams_.Set("alt", alt)
21371 c.urlParams_.Set("prettyPrint", "false")
21372 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collectionstatuses/{collectionId}")
21373 urls += "?" + c.urlParams_.Encode()
21374 req, err := http.NewRequest("GET", urls, body)
21375 if err != nil {
21376 return nil, err
21377 }
21378 req.Header = reqHeaders
21379 googleapi.Expand(req.URL, map[string]string{
21380 "merchantId": strconv.FormatInt(c.merchantId, 10),
21381 "collectionId": c.collectionId,
21382 })
21383 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21384 }
21385
21386
21387
21388
21389
21390
21391
21392 func (c *CollectionstatusesGetCall) Do(opts ...googleapi.CallOption) (*CollectionStatus, error) {
21393 gensupport.SetOptions(c.urlParams_, opts...)
21394 res, err := c.doRequest("json")
21395 if res != nil && res.StatusCode == http.StatusNotModified {
21396 if res.Body != nil {
21397 res.Body.Close()
21398 }
21399 return nil, gensupport.WrapError(&googleapi.Error{
21400 Code: res.StatusCode,
21401 Header: res.Header,
21402 })
21403 }
21404 if err != nil {
21405 return nil, err
21406 }
21407 defer googleapi.CloseBody(res)
21408 if err := googleapi.CheckResponse(res); err != nil {
21409 return nil, gensupport.WrapError(err)
21410 }
21411 ret := &CollectionStatus{
21412 ServerResponse: googleapi.ServerResponse{
21413 Header: res.Header,
21414 HTTPStatusCode: res.StatusCode,
21415 },
21416 }
21417 target := &ret
21418 if err := gensupport.DecodeResponse(target, res); err != nil {
21419 return nil, err
21420 }
21421 return ret, nil
21422 }
21423
21424 type CollectionstatusesListCall struct {
21425 s *APIService
21426 merchantId int64
21427 urlParams_ gensupport.URLParams
21428 ifNoneMatch_ string
21429 ctx_ context.Context
21430 header_ http.Header
21431 }
21432
21433
21434
21435
21436
21437 func (r *CollectionstatusesService) List(merchantId int64) *CollectionstatusesListCall {
21438 c := &CollectionstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21439 c.merchantId = merchantId
21440 return c
21441 }
21442
21443
21444
21445
21446 func (c *CollectionstatusesListCall) PageSize(pageSize int64) *CollectionstatusesListCall {
21447 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21448 return c
21449 }
21450
21451
21452
21453
21454 func (c *CollectionstatusesListCall) PageToken(pageToken string) *CollectionstatusesListCall {
21455 c.urlParams_.Set("pageToken", pageToken)
21456 return c
21457 }
21458
21459
21460
21461
21462 func (c *CollectionstatusesListCall) Fields(s ...googleapi.Field) *CollectionstatusesListCall {
21463 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21464 return c
21465 }
21466
21467
21468
21469
21470 func (c *CollectionstatusesListCall) IfNoneMatch(entityTag string) *CollectionstatusesListCall {
21471 c.ifNoneMatch_ = entityTag
21472 return c
21473 }
21474
21475
21476 func (c *CollectionstatusesListCall) Context(ctx context.Context) *CollectionstatusesListCall {
21477 c.ctx_ = ctx
21478 return c
21479 }
21480
21481
21482
21483 func (c *CollectionstatusesListCall) Header() http.Header {
21484 if c.header_ == nil {
21485 c.header_ = make(http.Header)
21486 }
21487 return c.header_
21488 }
21489
21490 func (c *CollectionstatusesListCall) doRequest(alt string) (*http.Response, error) {
21491 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21492 if c.ifNoneMatch_ != "" {
21493 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21494 }
21495 var body io.Reader = nil
21496 c.urlParams_.Set("alt", alt)
21497 c.urlParams_.Set("prettyPrint", "false")
21498 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collectionstatuses")
21499 urls += "?" + c.urlParams_.Encode()
21500 req, err := http.NewRequest("GET", urls, body)
21501 if err != nil {
21502 return nil, err
21503 }
21504 req.Header = reqHeaders
21505 googleapi.Expand(req.URL, map[string]string{
21506 "merchantId": strconv.FormatInt(c.merchantId, 10),
21507 })
21508 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21509 }
21510
21511
21512
21513
21514
21515
21516
21517 func (c *CollectionstatusesListCall) Do(opts ...googleapi.CallOption) (*ListCollectionStatusesResponse, error) {
21518 gensupport.SetOptions(c.urlParams_, opts...)
21519 res, err := c.doRequest("json")
21520 if res != nil && res.StatusCode == http.StatusNotModified {
21521 if res.Body != nil {
21522 res.Body.Close()
21523 }
21524 return nil, gensupport.WrapError(&googleapi.Error{
21525 Code: res.StatusCode,
21526 Header: res.Header,
21527 })
21528 }
21529 if err != nil {
21530 return nil, err
21531 }
21532 defer googleapi.CloseBody(res)
21533 if err := googleapi.CheckResponse(res); err != nil {
21534 return nil, gensupport.WrapError(err)
21535 }
21536 ret := &ListCollectionStatusesResponse{
21537 ServerResponse: googleapi.ServerResponse{
21538 Header: res.Header,
21539 HTTPStatusCode: res.StatusCode,
21540 },
21541 }
21542 target := &ret
21543 if err := gensupport.DecodeResponse(target, res); err != nil {
21544 return nil, err
21545 }
21546 return ret, nil
21547 }
21548
21549
21550
21551
21552 func (c *CollectionstatusesListCall) Pages(ctx context.Context, f func(*ListCollectionStatusesResponse) error) error {
21553 c.ctx_ = ctx
21554 defer c.PageToken(c.urlParams_.Get("pageToken"))
21555 for {
21556 x, err := c.Do()
21557 if err != nil {
21558 return err
21559 }
21560 if err := f(x); err != nil {
21561 return err
21562 }
21563 if x.NextPageToken == "" {
21564 return nil
21565 }
21566 c.PageToken(x.NextPageToken)
21567 }
21568 }
21569
21570 type ConversionsourcesCreateCall struct {
21571 s *APIService
21572 merchantId int64
21573 conversionsource *ConversionSource
21574 urlParams_ gensupport.URLParams
21575 ctx_ context.Context
21576 header_ http.Header
21577 }
21578
21579
21580
21581
21582 func (r *ConversionsourcesService) Create(merchantId int64, conversionsource *ConversionSource) *ConversionsourcesCreateCall {
21583 c := &ConversionsourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21584 c.merchantId = merchantId
21585 c.conversionsource = conversionsource
21586 return c
21587 }
21588
21589
21590
21591
21592 func (c *ConversionsourcesCreateCall) Fields(s ...googleapi.Field) *ConversionsourcesCreateCall {
21593 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21594 return c
21595 }
21596
21597
21598 func (c *ConversionsourcesCreateCall) Context(ctx context.Context) *ConversionsourcesCreateCall {
21599 c.ctx_ = ctx
21600 return c
21601 }
21602
21603
21604
21605 func (c *ConversionsourcesCreateCall) Header() http.Header {
21606 if c.header_ == nil {
21607 c.header_ = make(http.Header)
21608 }
21609 return c.header_
21610 }
21611
21612 func (c *ConversionsourcesCreateCall) doRequest(alt string) (*http.Response, error) {
21613 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21614 var body io.Reader = nil
21615 body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsource)
21616 if err != nil {
21617 return nil, err
21618 }
21619 c.urlParams_.Set("alt", alt)
21620 c.urlParams_.Set("prettyPrint", "false")
21621 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources")
21622 urls += "?" + c.urlParams_.Encode()
21623 req, err := http.NewRequest("POST", urls, body)
21624 if err != nil {
21625 return nil, err
21626 }
21627 req.Header = reqHeaders
21628 googleapi.Expand(req.URL, map[string]string{
21629 "merchantId": strconv.FormatInt(c.merchantId, 10),
21630 })
21631 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21632 }
21633
21634
21635
21636
21637
21638
21639
21640 func (c *ConversionsourcesCreateCall) Do(opts ...googleapi.CallOption) (*ConversionSource, error) {
21641 gensupport.SetOptions(c.urlParams_, opts...)
21642 res, err := c.doRequest("json")
21643 if res != nil && res.StatusCode == http.StatusNotModified {
21644 if res.Body != nil {
21645 res.Body.Close()
21646 }
21647 return nil, gensupport.WrapError(&googleapi.Error{
21648 Code: res.StatusCode,
21649 Header: res.Header,
21650 })
21651 }
21652 if err != nil {
21653 return nil, err
21654 }
21655 defer googleapi.CloseBody(res)
21656 if err := googleapi.CheckResponse(res); err != nil {
21657 return nil, gensupport.WrapError(err)
21658 }
21659 ret := &ConversionSource{
21660 ServerResponse: googleapi.ServerResponse{
21661 Header: res.Header,
21662 HTTPStatusCode: res.StatusCode,
21663 },
21664 }
21665 target := &ret
21666 if err := gensupport.DecodeResponse(target, res); err != nil {
21667 return nil, err
21668 }
21669 return ret, nil
21670 }
21671
21672 type ConversionsourcesDeleteCall struct {
21673 s *APIService
21674 merchantId int64
21675 conversionSourceId string
21676 urlParams_ gensupport.URLParams
21677 ctx_ context.Context
21678 header_ http.Header
21679 }
21680
21681
21682
21683
21684
21685
21686
21687 func (r *ConversionsourcesService) Delete(merchantId int64, conversionSourceId string) *ConversionsourcesDeleteCall {
21688 c := &ConversionsourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21689 c.merchantId = merchantId
21690 c.conversionSourceId = conversionSourceId
21691 return c
21692 }
21693
21694
21695
21696
21697 func (c *ConversionsourcesDeleteCall) Fields(s ...googleapi.Field) *ConversionsourcesDeleteCall {
21698 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21699 return c
21700 }
21701
21702
21703 func (c *ConversionsourcesDeleteCall) Context(ctx context.Context) *ConversionsourcesDeleteCall {
21704 c.ctx_ = ctx
21705 return c
21706 }
21707
21708
21709
21710 func (c *ConversionsourcesDeleteCall) Header() http.Header {
21711 if c.header_ == nil {
21712 c.header_ = make(http.Header)
21713 }
21714 return c.header_
21715 }
21716
21717 func (c *ConversionsourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
21718 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21719 var body io.Reader = nil
21720 c.urlParams_.Set("alt", alt)
21721 c.urlParams_.Set("prettyPrint", "false")
21722 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources/{conversionSourceId}")
21723 urls += "?" + c.urlParams_.Encode()
21724 req, err := http.NewRequest("DELETE", urls, body)
21725 if err != nil {
21726 return nil, err
21727 }
21728 req.Header = reqHeaders
21729 googleapi.Expand(req.URL, map[string]string{
21730 "merchantId": strconv.FormatInt(c.merchantId, 10),
21731 "conversionSourceId": c.conversionSourceId,
21732 })
21733 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21734 }
21735
21736
21737 func (c *ConversionsourcesDeleteCall) Do(opts ...googleapi.CallOption) error {
21738 gensupport.SetOptions(c.urlParams_, opts...)
21739 res, err := c.doRequest("json")
21740 if err != nil {
21741 return err
21742 }
21743 defer googleapi.CloseBody(res)
21744 if err := googleapi.CheckResponse(res); err != nil {
21745 return gensupport.WrapError(err)
21746 }
21747 return nil
21748 }
21749
21750 type ConversionsourcesGetCall struct {
21751 s *APIService
21752 merchantId int64
21753 conversionSourceId string
21754 urlParams_ gensupport.URLParams
21755 ifNoneMatch_ string
21756 ctx_ context.Context
21757 header_ http.Header
21758 }
21759
21760
21761
21762
21763
21764 func (r *ConversionsourcesService) Get(merchantId int64, conversionSourceId string) *ConversionsourcesGetCall {
21765 c := &ConversionsourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21766 c.merchantId = merchantId
21767 c.conversionSourceId = conversionSourceId
21768 return c
21769 }
21770
21771
21772
21773
21774 func (c *ConversionsourcesGetCall) Fields(s ...googleapi.Field) *ConversionsourcesGetCall {
21775 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21776 return c
21777 }
21778
21779
21780
21781
21782 func (c *ConversionsourcesGetCall) IfNoneMatch(entityTag string) *ConversionsourcesGetCall {
21783 c.ifNoneMatch_ = entityTag
21784 return c
21785 }
21786
21787
21788 func (c *ConversionsourcesGetCall) Context(ctx context.Context) *ConversionsourcesGetCall {
21789 c.ctx_ = ctx
21790 return c
21791 }
21792
21793
21794
21795 func (c *ConversionsourcesGetCall) Header() http.Header {
21796 if c.header_ == nil {
21797 c.header_ = make(http.Header)
21798 }
21799 return c.header_
21800 }
21801
21802 func (c *ConversionsourcesGetCall) doRequest(alt string) (*http.Response, error) {
21803 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21804 if c.ifNoneMatch_ != "" {
21805 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21806 }
21807 var body io.Reader = nil
21808 c.urlParams_.Set("alt", alt)
21809 c.urlParams_.Set("prettyPrint", "false")
21810 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources/{conversionSourceId}")
21811 urls += "?" + c.urlParams_.Encode()
21812 req, err := http.NewRequest("GET", urls, body)
21813 if err != nil {
21814 return nil, err
21815 }
21816 req.Header = reqHeaders
21817 googleapi.Expand(req.URL, map[string]string{
21818 "merchantId": strconv.FormatInt(c.merchantId, 10),
21819 "conversionSourceId": c.conversionSourceId,
21820 })
21821 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21822 }
21823
21824
21825
21826
21827
21828
21829
21830 func (c *ConversionsourcesGetCall) Do(opts ...googleapi.CallOption) (*ConversionSource, error) {
21831 gensupport.SetOptions(c.urlParams_, opts...)
21832 res, err := c.doRequest("json")
21833 if res != nil && res.StatusCode == http.StatusNotModified {
21834 if res.Body != nil {
21835 res.Body.Close()
21836 }
21837 return nil, gensupport.WrapError(&googleapi.Error{
21838 Code: res.StatusCode,
21839 Header: res.Header,
21840 })
21841 }
21842 if err != nil {
21843 return nil, err
21844 }
21845 defer googleapi.CloseBody(res)
21846 if err := googleapi.CheckResponse(res); err != nil {
21847 return nil, gensupport.WrapError(err)
21848 }
21849 ret := &ConversionSource{
21850 ServerResponse: googleapi.ServerResponse{
21851 Header: res.Header,
21852 HTTPStatusCode: res.StatusCode,
21853 },
21854 }
21855 target := &ret
21856 if err := gensupport.DecodeResponse(target, res); err != nil {
21857 return nil, err
21858 }
21859 return ret, nil
21860 }
21861
21862 type ConversionsourcesListCall struct {
21863 s *APIService
21864 merchantId int64
21865 urlParams_ gensupport.URLParams
21866 ifNoneMatch_ string
21867 ctx_ context.Context
21868 header_ http.Header
21869 }
21870
21871
21872
21873
21874 func (r *ConversionsourcesService) List(merchantId int64) *ConversionsourcesListCall {
21875 c := &ConversionsourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21876 c.merchantId = merchantId
21877 return c
21878 }
21879
21880
21881
21882
21883
21884
21885 func (c *ConversionsourcesListCall) PageSize(pageSize int64) *ConversionsourcesListCall {
21886 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21887 return c
21888 }
21889
21890
21891 func (c *ConversionsourcesListCall) PageToken(pageToken string) *ConversionsourcesListCall {
21892 c.urlParams_.Set("pageToken", pageToken)
21893 return c
21894 }
21895
21896
21897
21898 func (c *ConversionsourcesListCall) ShowDeleted(showDeleted bool) *ConversionsourcesListCall {
21899 c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
21900 return c
21901 }
21902
21903
21904
21905
21906 func (c *ConversionsourcesListCall) Fields(s ...googleapi.Field) *ConversionsourcesListCall {
21907 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21908 return c
21909 }
21910
21911
21912
21913
21914 func (c *ConversionsourcesListCall) IfNoneMatch(entityTag string) *ConversionsourcesListCall {
21915 c.ifNoneMatch_ = entityTag
21916 return c
21917 }
21918
21919
21920 func (c *ConversionsourcesListCall) Context(ctx context.Context) *ConversionsourcesListCall {
21921 c.ctx_ = ctx
21922 return c
21923 }
21924
21925
21926
21927 func (c *ConversionsourcesListCall) Header() http.Header {
21928 if c.header_ == nil {
21929 c.header_ = make(http.Header)
21930 }
21931 return c.header_
21932 }
21933
21934 func (c *ConversionsourcesListCall) doRequest(alt string) (*http.Response, error) {
21935 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21936 if c.ifNoneMatch_ != "" {
21937 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21938 }
21939 var body io.Reader = nil
21940 c.urlParams_.Set("alt", alt)
21941 c.urlParams_.Set("prettyPrint", "false")
21942 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources")
21943 urls += "?" + c.urlParams_.Encode()
21944 req, err := http.NewRequest("GET", urls, body)
21945 if err != nil {
21946 return nil, err
21947 }
21948 req.Header = reqHeaders
21949 googleapi.Expand(req.URL, map[string]string{
21950 "merchantId": strconv.FormatInt(c.merchantId, 10),
21951 })
21952 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21953 }
21954
21955
21956
21957
21958
21959
21960
21961 func (c *ConversionsourcesListCall) Do(opts ...googleapi.CallOption) (*ListConversionSourcesResponse, error) {
21962 gensupport.SetOptions(c.urlParams_, opts...)
21963 res, err := c.doRequest("json")
21964 if res != nil && res.StatusCode == http.StatusNotModified {
21965 if res.Body != nil {
21966 res.Body.Close()
21967 }
21968 return nil, gensupport.WrapError(&googleapi.Error{
21969 Code: res.StatusCode,
21970 Header: res.Header,
21971 })
21972 }
21973 if err != nil {
21974 return nil, err
21975 }
21976 defer googleapi.CloseBody(res)
21977 if err := googleapi.CheckResponse(res); err != nil {
21978 return nil, gensupport.WrapError(err)
21979 }
21980 ret := &ListConversionSourcesResponse{
21981 ServerResponse: googleapi.ServerResponse{
21982 Header: res.Header,
21983 HTTPStatusCode: res.StatusCode,
21984 },
21985 }
21986 target := &ret
21987 if err := gensupport.DecodeResponse(target, res); err != nil {
21988 return nil, err
21989 }
21990 return ret, nil
21991 }
21992
21993
21994
21995
21996 func (c *ConversionsourcesListCall) Pages(ctx context.Context, f func(*ListConversionSourcesResponse) error) error {
21997 c.ctx_ = ctx
21998 defer c.PageToken(c.urlParams_.Get("pageToken"))
21999 for {
22000 x, err := c.Do()
22001 if err != nil {
22002 return err
22003 }
22004 if err := f(x); err != nil {
22005 return err
22006 }
22007 if x.NextPageToken == "" {
22008 return nil
22009 }
22010 c.PageToken(x.NextPageToken)
22011 }
22012 }
22013
22014 type ConversionsourcesPatchCall struct {
22015 s *APIService
22016 merchantId int64
22017 conversionSourceId string
22018 conversionsource *ConversionSource
22019 urlParams_ gensupport.URLParams
22020 ctx_ context.Context
22021 header_ http.Header
22022 }
22023
22024
22025
22026
22027
22028 func (r *ConversionsourcesService) Patch(merchantId int64, conversionSourceId string, conversionsource *ConversionSource) *ConversionsourcesPatchCall {
22029 c := &ConversionsourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22030 c.merchantId = merchantId
22031 c.conversionSourceId = conversionSourceId
22032 c.conversionsource = conversionsource
22033 return c
22034 }
22035
22036
22037
22038 func (c *ConversionsourcesPatchCall) UpdateMask(updateMask string) *ConversionsourcesPatchCall {
22039 c.urlParams_.Set("updateMask", updateMask)
22040 return c
22041 }
22042
22043
22044
22045
22046 func (c *ConversionsourcesPatchCall) Fields(s ...googleapi.Field) *ConversionsourcesPatchCall {
22047 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22048 return c
22049 }
22050
22051
22052 func (c *ConversionsourcesPatchCall) Context(ctx context.Context) *ConversionsourcesPatchCall {
22053 c.ctx_ = ctx
22054 return c
22055 }
22056
22057
22058
22059 func (c *ConversionsourcesPatchCall) Header() http.Header {
22060 if c.header_ == nil {
22061 c.header_ = make(http.Header)
22062 }
22063 return c.header_
22064 }
22065
22066 func (c *ConversionsourcesPatchCall) doRequest(alt string) (*http.Response, error) {
22067 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22068 var body io.Reader = nil
22069 body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsource)
22070 if err != nil {
22071 return nil, err
22072 }
22073 c.urlParams_.Set("alt", alt)
22074 c.urlParams_.Set("prettyPrint", "false")
22075 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources/{conversionSourceId}")
22076 urls += "?" + c.urlParams_.Encode()
22077 req, err := http.NewRequest("PATCH", urls, body)
22078 if err != nil {
22079 return nil, err
22080 }
22081 req.Header = reqHeaders
22082 googleapi.Expand(req.URL, map[string]string{
22083 "merchantId": strconv.FormatInt(c.merchantId, 10),
22084 "conversionSourceId": c.conversionSourceId,
22085 })
22086 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22087 }
22088
22089
22090
22091
22092
22093
22094
22095 func (c *ConversionsourcesPatchCall) Do(opts ...googleapi.CallOption) (*ConversionSource, error) {
22096 gensupport.SetOptions(c.urlParams_, opts...)
22097 res, err := c.doRequest("json")
22098 if res != nil && res.StatusCode == http.StatusNotModified {
22099 if res.Body != nil {
22100 res.Body.Close()
22101 }
22102 return nil, gensupport.WrapError(&googleapi.Error{
22103 Code: res.StatusCode,
22104 Header: res.Header,
22105 })
22106 }
22107 if err != nil {
22108 return nil, err
22109 }
22110 defer googleapi.CloseBody(res)
22111 if err := googleapi.CheckResponse(res); err != nil {
22112 return nil, gensupport.WrapError(err)
22113 }
22114 ret := &ConversionSource{
22115 ServerResponse: googleapi.ServerResponse{
22116 Header: res.Header,
22117 HTTPStatusCode: res.StatusCode,
22118 },
22119 }
22120 target := &ret
22121 if err := gensupport.DecodeResponse(target, res); err != nil {
22122 return nil, err
22123 }
22124 return ret, nil
22125 }
22126
22127 type ConversionsourcesUndeleteCall struct {
22128 s *APIService
22129 merchantId int64
22130 conversionSourceId string
22131 undeleteconversionsourcerequest *UndeleteConversionSourceRequest
22132 urlParams_ gensupport.URLParams
22133 ctx_ context.Context
22134 header_ http.Header
22135 }
22136
22137
22138
22139
22140
22141 func (r *ConversionsourcesService) Undelete(merchantId int64, conversionSourceId string, undeleteconversionsourcerequest *UndeleteConversionSourceRequest) *ConversionsourcesUndeleteCall {
22142 c := &ConversionsourcesUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22143 c.merchantId = merchantId
22144 c.conversionSourceId = conversionSourceId
22145 c.undeleteconversionsourcerequest = undeleteconversionsourcerequest
22146 return c
22147 }
22148
22149
22150
22151
22152 func (c *ConversionsourcesUndeleteCall) Fields(s ...googleapi.Field) *ConversionsourcesUndeleteCall {
22153 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22154 return c
22155 }
22156
22157
22158 func (c *ConversionsourcesUndeleteCall) Context(ctx context.Context) *ConversionsourcesUndeleteCall {
22159 c.ctx_ = ctx
22160 return c
22161 }
22162
22163
22164
22165 func (c *ConversionsourcesUndeleteCall) Header() http.Header {
22166 if c.header_ == nil {
22167 c.header_ = make(http.Header)
22168 }
22169 return c.header_
22170 }
22171
22172 func (c *ConversionsourcesUndeleteCall) doRequest(alt string) (*http.Response, error) {
22173 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22174 var body io.Reader = nil
22175 body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteconversionsourcerequest)
22176 if err != nil {
22177 return nil, err
22178 }
22179 c.urlParams_.Set("alt", alt)
22180 c.urlParams_.Set("prettyPrint", "false")
22181 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources/{conversionSourceId}:undelete")
22182 urls += "?" + c.urlParams_.Encode()
22183 req, err := http.NewRequest("POST", urls, body)
22184 if err != nil {
22185 return nil, err
22186 }
22187 req.Header = reqHeaders
22188 googleapi.Expand(req.URL, map[string]string{
22189 "merchantId": strconv.FormatInt(c.merchantId, 10),
22190 "conversionSourceId": c.conversionSourceId,
22191 })
22192 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22193 }
22194
22195
22196 func (c *ConversionsourcesUndeleteCall) Do(opts ...googleapi.CallOption) error {
22197 gensupport.SetOptions(c.urlParams_, opts...)
22198 res, err := c.doRequest("json")
22199 if err != nil {
22200 return err
22201 }
22202 defer googleapi.CloseBody(res)
22203 if err := googleapi.CheckResponse(res); err != nil {
22204 return gensupport.WrapError(err)
22205 }
22206 return nil
22207 }
22208
22209 type CssesGetCall struct {
22210 s *APIService
22211 cssGroupId int64
22212 cssDomainId int64
22213 urlParams_ gensupport.URLParams
22214 ifNoneMatch_ string
22215 ctx_ context.Context
22216 header_ http.Header
22217 }
22218
22219
22220
22221
22222
22223
22224
22225
22226 func (r *CssesService) Get(cssGroupId int64, cssDomainId int64) *CssesGetCall {
22227 c := &CssesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22228 c.cssGroupId = cssGroupId
22229 c.cssDomainId = cssDomainId
22230 return c
22231 }
22232
22233
22234
22235
22236 func (c *CssesGetCall) Fields(s ...googleapi.Field) *CssesGetCall {
22237 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22238 return c
22239 }
22240
22241
22242
22243
22244 func (c *CssesGetCall) IfNoneMatch(entityTag string) *CssesGetCall {
22245 c.ifNoneMatch_ = entityTag
22246 return c
22247 }
22248
22249
22250 func (c *CssesGetCall) Context(ctx context.Context) *CssesGetCall {
22251 c.ctx_ = ctx
22252 return c
22253 }
22254
22255
22256
22257 func (c *CssesGetCall) Header() http.Header {
22258 if c.header_ == nil {
22259 c.header_ = make(http.Header)
22260 }
22261 return c.header_
22262 }
22263
22264 func (c *CssesGetCall) doRequest(alt string) (*http.Response, error) {
22265 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22266 if c.ifNoneMatch_ != "" {
22267 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22268 }
22269 var body io.Reader = nil
22270 c.urlParams_.Set("alt", alt)
22271 c.urlParams_.Set("prettyPrint", "false")
22272 urls := googleapi.ResolveRelative(c.s.BasePath, "{cssGroupId}/csses/{cssDomainId}")
22273 urls += "?" + c.urlParams_.Encode()
22274 req, err := http.NewRequest("GET", urls, body)
22275 if err != nil {
22276 return nil, err
22277 }
22278 req.Header = reqHeaders
22279 googleapi.Expand(req.URL, map[string]string{
22280 "cssGroupId": strconv.FormatInt(c.cssGroupId, 10),
22281 "cssDomainId": strconv.FormatInt(c.cssDomainId, 10),
22282 })
22283 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22284 }
22285
22286
22287
22288
22289
22290
22291 func (c *CssesGetCall) Do(opts ...googleapi.CallOption) (*Css, error) {
22292 gensupport.SetOptions(c.urlParams_, opts...)
22293 res, err := c.doRequest("json")
22294 if res != nil && res.StatusCode == http.StatusNotModified {
22295 if res.Body != nil {
22296 res.Body.Close()
22297 }
22298 return nil, gensupport.WrapError(&googleapi.Error{
22299 Code: res.StatusCode,
22300 Header: res.Header,
22301 })
22302 }
22303 if err != nil {
22304 return nil, err
22305 }
22306 defer googleapi.CloseBody(res)
22307 if err := googleapi.CheckResponse(res); err != nil {
22308 return nil, gensupport.WrapError(err)
22309 }
22310 ret := &Css{
22311 ServerResponse: googleapi.ServerResponse{
22312 Header: res.Header,
22313 HTTPStatusCode: res.StatusCode,
22314 },
22315 }
22316 target := &ret
22317 if err := gensupport.DecodeResponse(target, res); err != nil {
22318 return nil, err
22319 }
22320 return ret, nil
22321 }
22322
22323 type CssesListCall struct {
22324 s *APIService
22325 cssGroupId int64
22326 urlParams_ gensupport.URLParams
22327 ifNoneMatch_ string
22328 ctx_ context.Context
22329 header_ http.Header
22330 }
22331
22332
22333
22334
22335 func (r *CssesService) List(cssGroupId int64) *CssesListCall {
22336 c := &CssesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22337 c.cssGroupId = cssGroupId
22338 return c
22339 }
22340
22341
22342
22343
22344
22345 func (c *CssesListCall) PageSize(pageSize int64) *CssesListCall {
22346 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22347 return c
22348 }
22349
22350
22351
22352
22353
22354 func (c *CssesListCall) PageToken(pageToken string) *CssesListCall {
22355 c.urlParams_.Set("pageToken", pageToken)
22356 return c
22357 }
22358
22359
22360
22361
22362 func (c *CssesListCall) Fields(s ...googleapi.Field) *CssesListCall {
22363 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22364 return c
22365 }
22366
22367
22368
22369
22370 func (c *CssesListCall) IfNoneMatch(entityTag string) *CssesListCall {
22371 c.ifNoneMatch_ = entityTag
22372 return c
22373 }
22374
22375
22376 func (c *CssesListCall) Context(ctx context.Context) *CssesListCall {
22377 c.ctx_ = ctx
22378 return c
22379 }
22380
22381
22382
22383 func (c *CssesListCall) Header() http.Header {
22384 if c.header_ == nil {
22385 c.header_ = make(http.Header)
22386 }
22387 return c.header_
22388 }
22389
22390 func (c *CssesListCall) doRequest(alt string) (*http.Response, error) {
22391 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22392 if c.ifNoneMatch_ != "" {
22393 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22394 }
22395 var body io.Reader = nil
22396 c.urlParams_.Set("alt", alt)
22397 c.urlParams_.Set("prettyPrint", "false")
22398 urls := googleapi.ResolveRelative(c.s.BasePath, "{cssGroupId}/csses")
22399 urls += "?" + c.urlParams_.Encode()
22400 req, err := http.NewRequest("GET", urls, body)
22401 if err != nil {
22402 return nil, err
22403 }
22404 req.Header = reqHeaders
22405 googleapi.Expand(req.URL, map[string]string{
22406 "cssGroupId": strconv.FormatInt(c.cssGroupId, 10),
22407 })
22408 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22409 }
22410
22411
22412
22413
22414
22415
22416
22417 func (c *CssesListCall) Do(opts ...googleapi.CallOption) (*ListCssesResponse, error) {
22418 gensupport.SetOptions(c.urlParams_, opts...)
22419 res, err := c.doRequest("json")
22420 if res != nil && res.StatusCode == http.StatusNotModified {
22421 if res.Body != nil {
22422 res.Body.Close()
22423 }
22424 return nil, gensupport.WrapError(&googleapi.Error{
22425 Code: res.StatusCode,
22426 Header: res.Header,
22427 })
22428 }
22429 if err != nil {
22430 return nil, err
22431 }
22432 defer googleapi.CloseBody(res)
22433 if err := googleapi.CheckResponse(res); err != nil {
22434 return nil, gensupport.WrapError(err)
22435 }
22436 ret := &ListCssesResponse{
22437 ServerResponse: googleapi.ServerResponse{
22438 Header: res.Header,
22439 HTTPStatusCode: res.StatusCode,
22440 },
22441 }
22442 target := &ret
22443 if err := gensupport.DecodeResponse(target, res); err != nil {
22444 return nil, err
22445 }
22446 return ret, nil
22447 }
22448
22449
22450
22451
22452 func (c *CssesListCall) Pages(ctx context.Context, f func(*ListCssesResponse) error) error {
22453 c.ctx_ = ctx
22454 defer c.PageToken(c.urlParams_.Get("pageToken"))
22455 for {
22456 x, err := c.Do()
22457 if err != nil {
22458 return err
22459 }
22460 if err := f(x); err != nil {
22461 return err
22462 }
22463 if x.NextPageToken == "" {
22464 return nil
22465 }
22466 c.PageToken(x.NextPageToken)
22467 }
22468 }
22469
22470 type CssesUpdatelabelsCall struct {
22471 s *APIService
22472 cssGroupId int64
22473 cssDomainId int64
22474 labelids *LabelIds
22475 urlParams_ gensupport.URLParams
22476 ctx_ context.Context
22477 header_ http.Header
22478 }
22479
22480
22481
22482
22483
22484
22485 func (r *CssesService) Updatelabels(cssGroupId int64, cssDomainId int64, labelids *LabelIds) *CssesUpdatelabelsCall {
22486 c := &CssesUpdatelabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22487 c.cssGroupId = cssGroupId
22488 c.cssDomainId = cssDomainId
22489 c.labelids = labelids
22490 return c
22491 }
22492
22493
22494
22495
22496 func (c *CssesUpdatelabelsCall) Fields(s ...googleapi.Field) *CssesUpdatelabelsCall {
22497 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22498 return c
22499 }
22500
22501
22502 func (c *CssesUpdatelabelsCall) Context(ctx context.Context) *CssesUpdatelabelsCall {
22503 c.ctx_ = ctx
22504 return c
22505 }
22506
22507
22508
22509 func (c *CssesUpdatelabelsCall) Header() http.Header {
22510 if c.header_ == nil {
22511 c.header_ = make(http.Header)
22512 }
22513 return c.header_
22514 }
22515
22516 func (c *CssesUpdatelabelsCall) doRequest(alt string) (*http.Response, error) {
22517 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22518 var body io.Reader = nil
22519 body, err := googleapi.WithoutDataWrapper.JSONReader(c.labelids)
22520 if err != nil {
22521 return nil, err
22522 }
22523 c.urlParams_.Set("alt", alt)
22524 c.urlParams_.Set("prettyPrint", "false")
22525 urls := googleapi.ResolveRelative(c.s.BasePath, "{cssGroupId}/csses/{cssDomainId}/updatelabels")
22526 urls += "?" + c.urlParams_.Encode()
22527 req, err := http.NewRequest("POST", urls, body)
22528 if err != nil {
22529 return nil, err
22530 }
22531 req.Header = reqHeaders
22532 googleapi.Expand(req.URL, map[string]string{
22533 "cssGroupId": strconv.FormatInt(c.cssGroupId, 10),
22534 "cssDomainId": strconv.FormatInt(c.cssDomainId, 10),
22535 })
22536 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22537 }
22538
22539
22540
22541
22542
22543
22544 func (c *CssesUpdatelabelsCall) Do(opts ...googleapi.CallOption) (*Css, error) {
22545 gensupport.SetOptions(c.urlParams_, opts...)
22546 res, err := c.doRequest("json")
22547 if res != nil && res.StatusCode == http.StatusNotModified {
22548 if res.Body != nil {
22549 res.Body.Close()
22550 }
22551 return nil, gensupport.WrapError(&googleapi.Error{
22552 Code: res.StatusCode,
22553 Header: res.Header,
22554 })
22555 }
22556 if err != nil {
22557 return nil, err
22558 }
22559 defer googleapi.CloseBody(res)
22560 if err := googleapi.CheckResponse(res); err != nil {
22561 return nil, gensupport.WrapError(err)
22562 }
22563 ret := &Css{
22564 ServerResponse: googleapi.ServerResponse{
22565 Header: res.Header,
22566 HTTPStatusCode: res.StatusCode,
22567 },
22568 }
22569 target := &ret
22570 if err := gensupport.DecodeResponse(target, res); err != nil {
22571 return nil, err
22572 }
22573 return ret, nil
22574 }
22575
22576 type DatafeedsCustombatchCall struct {
22577 s *APIService
22578 datafeedscustombatchrequest *DatafeedsCustomBatchRequest
22579 urlParams_ gensupport.URLParams
22580 ctx_ context.Context
22581 header_ http.Header
22582 }
22583
22584
22585
22586 func (r *DatafeedsService) Custombatch(datafeedscustombatchrequest *DatafeedsCustomBatchRequest) *DatafeedsCustombatchCall {
22587 c := &DatafeedsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22588 c.datafeedscustombatchrequest = datafeedscustombatchrequest
22589 return c
22590 }
22591
22592
22593
22594
22595 func (c *DatafeedsCustombatchCall) Fields(s ...googleapi.Field) *DatafeedsCustombatchCall {
22596 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22597 return c
22598 }
22599
22600
22601 func (c *DatafeedsCustombatchCall) Context(ctx context.Context) *DatafeedsCustombatchCall {
22602 c.ctx_ = ctx
22603 return c
22604 }
22605
22606
22607
22608 func (c *DatafeedsCustombatchCall) Header() http.Header {
22609 if c.header_ == nil {
22610 c.header_ = make(http.Header)
22611 }
22612 return c.header_
22613 }
22614
22615 func (c *DatafeedsCustombatchCall) doRequest(alt string) (*http.Response, error) {
22616 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22617 var body io.Reader = nil
22618 body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeedscustombatchrequest)
22619 if err != nil {
22620 return nil, err
22621 }
22622 c.urlParams_.Set("alt", alt)
22623 c.urlParams_.Set("prettyPrint", "false")
22624 urls := googleapi.ResolveRelative(c.s.BasePath, "datafeeds/batch")
22625 urls += "?" + c.urlParams_.Encode()
22626 req, err := http.NewRequest("POST", urls, body)
22627 if err != nil {
22628 return nil, err
22629 }
22630 req.Header = reqHeaders
22631 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22632 }
22633
22634
22635
22636
22637
22638
22639
22640 func (c *DatafeedsCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedsCustomBatchResponse, error) {
22641 gensupport.SetOptions(c.urlParams_, opts...)
22642 res, err := c.doRequest("json")
22643 if res != nil && res.StatusCode == http.StatusNotModified {
22644 if res.Body != nil {
22645 res.Body.Close()
22646 }
22647 return nil, gensupport.WrapError(&googleapi.Error{
22648 Code: res.StatusCode,
22649 Header: res.Header,
22650 })
22651 }
22652 if err != nil {
22653 return nil, err
22654 }
22655 defer googleapi.CloseBody(res)
22656 if err := googleapi.CheckResponse(res); err != nil {
22657 return nil, gensupport.WrapError(err)
22658 }
22659 ret := &DatafeedsCustomBatchResponse{
22660 ServerResponse: googleapi.ServerResponse{
22661 Header: res.Header,
22662 HTTPStatusCode: res.StatusCode,
22663 },
22664 }
22665 target := &ret
22666 if err := gensupport.DecodeResponse(target, res); err != nil {
22667 return nil, err
22668 }
22669 return ret, nil
22670 }
22671
22672 type DatafeedsDeleteCall struct {
22673 s *APIService
22674 merchantId uint64
22675 datafeedId uint64
22676 urlParams_ gensupport.URLParams
22677 ctx_ context.Context
22678 header_ http.Header
22679 }
22680
22681
22682
22683
22684
22685
22686 func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *DatafeedsDeleteCall {
22687 c := &DatafeedsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22688 c.merchantId = merchantId
22689 c.datafeedId = datafeedId
22690 return c
22691 }
22692
22693
22694
22695
22696 func (c *DatafeedsDeleteCall) Fields(s ...googleapi.Field) *DatafeedsDeleteCall {
22697 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22698 return c
22699 }
22700
22701
22702 func (c *DatafeedsDeleteCall) Context(ctx context.Context) *DatafeedsDeleteCall {
22703 c.ctx_ = ctx
22704 return c
22705 }
22706
22707
22708
22709 func (c *DatafeedsDeleteCall) Header() http.Header {
22710 if c.header_ == nil {
22711 c.header_ = make(http.Header)
22712 }
22713 return c.header_
22714 }
22715
22716 func (c *DatafeedsDeleteCall) doRequest(alt string) (*http.Response, error) {
22717 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22718 var body io.Reader = nil
22719 c.urlParams_.Set("alt", alt)
22720 c.urlParams_.Set("prettyPrint", "false")
22721 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}")
22722 urls += "?" + c.urlParams_.Encode()
22723 req, err := http.NewRequest("DELETE", urls, body)
22724 if err != nil {
22725 return nil, err
22726 }
22727 req.Header = reqHeaders
22728 googleapi.Expand(req.URL, map[string]string{
22729 "merchantId": strconv.FormatUint(c.merchantId, 10),
22730 "datafeedId": strconv.FormatUint(c.datafeedId, 10),
22731 })
22732 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22733 }
22734
22735
22736 func (c *DatafeedsDeleteCall) Do(opts ...googleapi.CallOption) error {
22737 gensupport.SetOptions(c.urlParams_, opts...)
22738 res, err := c.doRequest("json")
22739 if err != nil {
22740 return err
22741 }
22742 defer googleapi.CloseBody(res)
22743 if err := googleapi.CheckResponse(res); err != nil {
22744 return gensupport.WrapError(err)
22745 }
22746 return nil
22747 }
22748
22749 type DatafeedsFetchnowCall struct {
22750 s *APIService
22751 merchantId uint64
22752 datafeedId uint64
22753 urlParams_ gensupport.URLParams
22754 ctx_ context.Context
22755 header_ http.Header
22756 }
22757
22758
22759
22760
22761
22762
22763
22764
22765
22766
22767 func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *DatafeedsFetchnowCall {
22768 c := &DatafeedsFetchnowCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22769 c.merchantId = merchantId
22770 c.datafeedId = datafeedId
22771 return c
22772 }
22773
22774
22775
22776
22777 func (c *DatafeedsFetchnowCall) Fields(s ...googleapi.Field) *DatafeedsFetchnowCall {
22778 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22779 return c
22780 }
22781
22782
22783 func (c *DatafeedsFetchnowCall) Context(ctx context.Context) *DatafeedsFetchnowCall {
22784 c.ctx_ = ctx
22785 return c
22786 }
22787
22788
22789
22790 func (c *DatafeedsFetchnowCall) Header() http.Header {
22791 if c.header_ == nil {
22792 c.header_ = make(http.Header)
22793 }
22794 return c.header_
22795 }
22796
22797 func (c *DatafeedsFetchnowCall) doRequest(alt string) (*http.Response, error) {
22798 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22799 var body io.Reader = nil
22800 c.urlParams_.Set("alt", alt)
22801 c.urlParams_.Set("prettyPrint", "false")
22802 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}/fetchNow")
22803 urls += "?" + c.urlParams_.Encode()
22804 req, err := http.NewRequest("POST", urls, body)
22805 if err != nil {
22806 return nil, err
22807 }
22808 req.Header = reqHeaders
22809 googleapi.Expand(req.URL, map[string]string{
22810 "merchantId": strconv.FormatUint(c.merchantId, 10),
22811 "datafeedId": strconv.FormatUint(c.datafeedId, 10),
22812 })
22813 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22814 }
22815
22816
22817
22818
22819
22820
22821
22822 func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetchNowResponse, error) {
22823 gensupport.SetOptions(c.urlParams_, opts...)
22824 res, err := c.doRequest("json")
22825 if res != nil && res.StatusCode == http.StatusNotModified {
22826 if res.Body != nil {
22827 res.Body.Close()
22828 }
22829 return nil, gensupport.WrapError(&googleapi.Error{
22830 Code: res.StatusCode,
22831 Header: res.Header,
22832 })
22833 }
22834 if err != nil {
22835 return nil, err
22836 }
22837 defer googleapi.CloseBody(res)
22838 if err := googleapi.CheckResponse(res); err != nil {
22839 return nil, gensupport.WrapError(err)
22840 }
22841 ret := &DatafeedsFetchNowResponse{
22842 ServerResponse: googleapi.ServerResponse{
22843 Header: res.Header,
22844 HTTPStatusCode: res.StatusCode,
22845 },
22846 }
22847 target := &ret
22848 if err := gensupport.DecodeResponse(target, res); err != nil {
22849 return nil, err
22850 }
22851 return ret, nil
22852 }
22853
22854 type DatafeedsGetCall struct {
22855 s *APIService
22856 merchantId uint64
22857 datafeedId uint64
22858 urlParams_ gensupport.URLParams
22859 ifNoneMatch_ string
22860 ctx_ context.Context
22861 header_ http.Header
22862 }
22863
22864
22865
22866
22867
22868
22869 func (r *DatafeedsService) Get(merchantId uint64, datafeedId uint64) *DatafeedsGetCall {
22870 c := &DatafeedsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22871 c.merchantId = merchantId
22872 c.datafeedId = datafeedId
22873 return c
22874 }
22875
22876
22877
22878
22879 func (c *DatafeedsGetCall) Fields(s ...googleapi.Field) *DatafeedsGetCall {
22880 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22881 return c
22882 }
22883
22884
22885
22886
22887 func (c *DatafeedsGetCall) IfNoneMatch(entityTag string) *DatafeedsGetCall {
22888 c.ifNoneMatch_ = entityTag
22889 return c
22890 }
22891
22892
22893 func (c *DatafeedsGetCall) Context(ctx context.Context) *DatafeedsGetCall {
22894 c.ctx_ = ctx
22895 return c
22896 }
22897
22898
22899
22900 func (c *DatafeedsGetCall) Header() http.Header {
22901 if c.header_ == nil {
22902 c.header_ = make(http.Header)
22903 }
22904 return c.header_
22905 }
22906
22907 func (c *DatafeedsGetCall) doRequest(alt string) (*http.Response, error) {
22908 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22909 if c.ifNoneMatch_ != "" {
22910 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22911 }
22912 var body io.Reader = nil
22913 c.urlParams_.Set("alt", alt)
22914 c.urlParams_.Set("prettyPrint", "false")
22915 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}")
22916 urls += "?" + c.urlParams_.Encode()
22917 req, err := http.NewRequest("GET", urls, body)
22918 if err != nil {
22919 return nil, err
22920 }
22921 req.Header = reqHeaders
22922 googleapi.Expand(req.URL, map[string]string{
22923 "merchantId": strconv.FormatUint(c.merchantId, 10),
22924 "datafeedId": strconv.FormatUint(c.datafeedId, 10),
22925 })
22926 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22927 }
22928
22929
22930
22931
22932
22933
22934 func (c *DatafeedsGetCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) {
22935 gensupport.SetOptions(c.urlParams_, opts...)
22936 res, err := c.doRequest("json")
22937 if res != nil && res.StatusCode == http.StatusNotModified {
22938 if res.Body != nil {
22939 res.Body.Close()
22940 }
22941 return nil, gensupport.WrapError(&googleapi.Error{
22942 Code: res.StatusCode,
22943 Header: res.Header,
22944 })
22945 }
22946 if err != nil {
22947 return nil, err
22948 }
22949 defer googleapi.CloseBody(res)
22950 if err := googleapi.CheckResponse(res); err != nil {
22951 return nil, gensupport.WrapError(err)
22952 }
22953 ret := &Datafeed{
22954 ServerResponse: googleapi.ServerResponse{
22955 Header: res.Header,
22956 HTTPStatusCode: res.StatusCode,
22957 },
22958 }
22959 target := &ret
22960 if err := gensupport.DecodeResponse(target, res); err != nil {
22961 return nil, err
22962 }
22963 return ret, nil
22964 }
22965
22966 type DatafeedsInsertCall struct {
22967 s *APIService
22968 merchantId uint64
22969 datafeed *Datafeed
22970 urlParams_ gensupport.URLParams
22971 ctx_ context.Context
22972 header_ http.Header
22973 }
22974
22975
22976
22977
22978
22979
22980 func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *DatafeedsInsertCall {
22981 c := &DatafeedsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22982 c.merchantId = merchantId
22983 c.datafeed = datafeed
22984 return c
22985 }
22986
22987
22988
22989
22990 func (c *DatafeedsInsertCall) Fields(s ...googleapi.Field) *DatafeedsInsertCall {
22991 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22992 return c
22993 }
22994
22995
22996 func (c *DatafeedsInsertCall) Context(ctx context.Context) *DatafeedsInsertCall {
22997 c.ctx_ = ctx
22998 return c
22999 }
23000
23001
23002
23003 func (c *DatafeedsInsertCall) Header() http.Header {
23004 if c.header_ == nil {
23005 c.header_ = make(http.Header)
23006 }
23007 return c.header_
23008 }
23009
23010 func (c *DatafeedsInsertCall) doRequest(alt string) (*http.Response, error) {
23011 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23012 var body io.Reader = nil
23013 body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeed)
23014 if err != nil {
23015 return nil, err
23016 }
23017 c.urlParams_.Set("alt", alt)
23018 c.urlParams_.Set("prettyPrint", "false")
23019 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds")
23020 urls += "?" + c.urlParams_.Encode()
23021 req, err := http.NewRequest("POST", urls, body)
23022 if err != nil {
23023 return nil, err
23024 }
23025 req.Header = reqHeaders
23026 googleapi.Expand(req.URL, map[string]string{
23027 "merchantId": strconv.FormatUint(c.merchantId, 10),
23028 })
23029 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23030 }
23031
23032
23033
23034
23035
23036
23037 func (c *DatafeedsInsertCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) {
23038 gensupport.SetOptions(c.urlParams_, opts...)
23039 res, err := c.doRequest("json")
23040 if res != nil && res.StatusCode == http.StatusNotModified {
23041 if res.Body != nil {
23042 res.Body.Close()
23043 }
23044 return nil, gensupport.WrapError(&googleapi.Error{
23045 Code: res.StatusCode,
23046 Header: res.Header,
23047 })
23048 }
23049 if err != nil {
23050 return nil, err
23051 }
23052 defer googleapi.CloseBody(res)
23053 if err := googleapi.CheckResponse(res); err != nil {
23054 return nil, gensupport.WrapError(err)
23055 }
23056 ret := &Datafeed{
23057 ServerResponse: googleapi.ServerResponse{
23058 Header: res.Header,
23059 HTTPStatusCode: res.StatusCode,
23060 },
23061 }
23062 target := &ret
23063 if err := gensupport.DecodeResponse(target, res); err != nil {
23064 return nil, err
23065 }
23066 return ret, nil
23067 }
23068
23069 type DatafeedsListCall struct {
23070 s *APIService
23071 merchantId uint64
23072 urlParams_ gensupport.URLParams
23073 ifNoneMatch_ string
23074 ctx_ context.Context
23075 header_ http.Header
23076 }
23077
23078
23079
23080
23081
23082
23083 func (r *DatafeedsService) List(merchantId uint64) *DatafeedsListCall {
23084 c := &DatafeedsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23085 c.merchantId = merchantId
23086 return c
23087 }
23088
23089
23090
23091 func (c *DatafeedsListCall) MaxResults(maxResults int64) *DatafeedsListCall {
23092 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
23093 return c
23094 }
23095
23096
23097
23098 func (c *DatafeedsListCall) PageToken(pageToken string) *DatafeedsListCall {
23099 c.urlParams_.Set("pageToken", pageToken)
23100 return c
23101 }
23102
23103
23104
23105
23106 func (c *DatafeedsListCall) Fields(s ...googleapi.Field) *DatafeedsListCall {
23107 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23108 return c
23109 }
23110
23111
23112
23113
23114 func (c *DatafeedsListCall) IfNoneMatch(entityTag string) *DatafeedsListCall {
23115 c.ifNoneMatch_ = entityTag
23116 return c
23117 }
23118
23119
23120 func (c *DatafeedsListCall) Context(ctx context.Context) *DatafeedsListCall {
23121 c.ctx_ = ctx
23122 return c
23123 }
23124
23125
23126
23127 func (c *DatafeedsListCall) Header() http.Header {
23128 if c.header_ == nil {
23129 c.header_ = make(http.Header)
23130 }
23131 return c.header_
23132 }
23133
23134 func (c *DatafeedsListCall) doRequest(alt string) (*http.Response, error) {
23135 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23136 if c.ifNoneMatch_ != "" {
23137 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23138 }
23139 var body io.Reader = nil
23140 c.urlParams_.Set("alt", alt)
23141 c.urlParams_.Set("prettyPrint", "false")
23142 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds")
23143 urls += "?" + c.urlParams_.Encode()
23144 req, err := http.NewRequest("GET", urls, body)
23145 if err != nil {
23146 return nil, err
23147 }
23148 req.Header = reqHeaders
23149 googleapi.Expand(req.URL, map[string]string{
23150 "merchantId": strconv.FormatUint(c.merchantId, 10),
23151 })
23152 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23153 }
23154
23155
23156
23157
23158
23159
23160
23161 func (c *DatafeedsListCall) Do(opts ...googleapi.CallOption) (*DatafeedsListResponse, error) {
23162 gensupport.SetOptions(c.urlParams_, opts...)
23163 res, err := c.doRequest("json")
23164 if res != nil && res.StatusCode == http.StatusNotModified {
23165 if res.Body != nil {
23166 res.Body.Close()
23167 }
23168 return nil, gensupport.WrapError(&googleapi.Error{
23169 Code: res.StatusCode,
23170 Header: res.Header,
23171 })
23172 }
23173 if err != nil {
23174 return nil, err
23175 }
23176 defer googleapi.CloseBody(res)
23177 if err := googleapi.CheckResponse(res); err != nil {
23178 return nil, gensupport.WrapError(err)
23179 }
23180 ret := &DatafeedsListResponse{
23181 ServerResponse: googleapi.ServerResponse{
23182 Header: res.Header,
23183 HTTPStatusCode: res.StatusCode,
23184 },
23185 }
23186 target := &ret
23187 if err := gensupport.DecodeResponse(target, res); err != nil {
23188 return nil, err
23189 }
23190 return ret, nil
23191 }
23192
23193
23194
23195
23196 func (c *DatafeedsListCall) Pages(ctx context.Context, f func(*DatafeedsListResponse) error) error {
23197 c.ctx_ = ctx
23198 defer c.PageToken(c.urlParams_.Get("pageToken"))
23199 for {
23200 x, err := c.Do()
23201 if err != nil {
23202 return err
23203 }
23204 if err := f(x); err != nil {
23205 return err
23206 }
23207 if x.NextPageToken == "" {
23208 return nil
23209 }
23210 c.PageToken(x.NextPageToken)
23211 }
23212 }
23213
23214 type DatafeedsUpdateCall struct {
23215 s *APIService
23216 merchantId uint64
23217 datafeedId uint64
23218 datafeed *Datafeed
23219 urlParams_ gensupport.URLParams
23220 ctx_ context.Context
23221 header_ http.Header
23222 }
23223
23224
23225
23226
23227
23228
23229
23230 func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsUpdateCall {
23231 c := &DatafeedsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23232 c.merchantId = merchantId
23233 c.datafeedId = datafeedId
23234 c.datafeed = datafeed
23235 return c
23236 }
23237
23238
23239
23240
23241 func (c *DatafeedsUpdateCall) Fields(s ...googleapi.Field) *DatafeedsUpdateCall {
23242 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23243 return c
23244 }
23245
23246
23247 func (c *DatafeedsUpdateCall) Context(ctx context.Context) *DatafeedsUpdateCall {
23248 c.ctx_ = ctx
23249 return c
23250 }
23251
23252
23253
23254 func (c *DatafeedsUpdateCall) Header() http.Header {
23255 if c.header_ == nil {
23256 c.header_ = make(http.Header)
23257 }
23258 return c.header_
23259 }
23260
23261 func (c *DatafeedsUpdateCall) doRequest(alt string) (*http.Response, error) {
23262 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23263 var body io.Reader = nil
23264 body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeed)
23265 if err != nil {
23266 return nil, err
23267 }
23268 c.urlParams_.Set("alt", alt)
23269 c.urlParams_.Set("prettyPrint", "false")
23270 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}")
23271 urls += "?" + c.urlParams_.Encode()
23272 req, err := http.NewRequest("PUT", urls, body)
23273 if err != nil {
23274 return nil, err
23275 }
23276 req.Header = reqHeaders
23277 googleapi.Expand(req.URL, map[string]string{
23278 "merchantId": strconv.FormatUint(c.merchantId, 10),
23279 "datafeedId": strconv.FormatUint(c.datafeedId, 10),
23280 })
23281 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23282 }
23283
23284
23285
23286
23287
23288
23289 func (c *DatafeedsUpdateCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) {
23290 gensupport.SetOptions(c.urlParams_, opts...)
23291 res, err := c.doRequest("json")
23292 if res != nil && res.StatusCode == http.StatusNotModified {
23293 if res.Body != nil {
23294 res.Body.Close()
23295 }
23296 return nil, gensupport.WrapError(&googleapi.Error{
23297 Code: res.StatusCode,
23298 Header: res.Header,
23299 })
23300 }
23301 if err != nil {
23302 return nil, err
23303 }
23304 defer googleapi.CloseBody(res)
23305 if err := googleapi.CheckResponse(res); err != nil {
23306 return nil, gensupport.WrapError(err)
23307 }
23308 ret := &Datafeed{
23309 ServerResponse: googleapi.ServerResponse{
23310 Header: res.Header,
23311 HTTPStatusCode: res.StatusCode,
23312 },
23313 }
23314 target := &ret
23315 if err := gensupport.DecodeResponse(target, res); err != nil {
23316 return nil, err
23317 }
23318 return ret, nil
23319 }
23320
23321 type DatafeedstatusesCustombatchCall struct {
23322 s *APIService
23323 datafeedstatusescustombatchrequest *DatafeedstatusesCustomBatchRequest
23324 urlParams_ gensupport.URLParams
23325 ctx_ context.Context
23326 header_ http.Header
23327 }
23328
23329
23330
23331 func (r *DatafeedstatusesService) Custombatch(datafeedstatusescustombatchrequest *DatafeedstatusesCustomBatchRequest) *DatafeedstatusesCustombatchCall {
23332 c := &DatafeedstatusesCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23333 c.datafeedstatusescustombatchrequest = datafeedstatusescustombatchrequest
23334 return c
23335 }
23336
23337
23338
23339
23340 func (c *DatafeedstatusesCustombatchCall) Fields(s ...googleapi.Field) *DatafeedstatusesCustombatchCall {
23341 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23342 return c
23343 }
23344
23345
23346 func (c *DatafeedstatusesCustombatchCall) Context(ctx context.Context) *DatafeedstatusesCustombatchCall {
23347 c.ctx_ = ctx
23348 return c
23349 }
23350
23351
23352
23353 func (c *DatafeedstatusesCustombatchCall) Header() http.Header {
23354 if c.header_ == nil {
23355 c.header_ = make(http.Header)
23356 }
23357 return c.header_
23358 }
23359
23360 func (c *DatafeedstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) {
23361 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23362 var body io.Reader = nil
23363 body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeedstatusescustombatchrequest)
23364 if err != nil {
23365 return nil, err
23366 }
23367 c.urlParams_.Set("alt", alt)
23368 c.urlParams_.Set("prettyPrint", "false")
23369 urls := googleapi.ResolveRelative(c.s.BasePath, "datafeedstatuses/batch")
23370 urls += "?" + c.urlParams_.Encode()
23371 req, err := http.NewRequest("POST", urls, body)
23372 if err != nil {
23373 return nil, err
23374 }
23375 req.Header = reqHeaders
23376 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23377 }
23378
23379
23380
23381
23382
23383
23384
23385 func (c *DatafeedstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedstatusesCustomBatchResponse, error) {
23386 gensupport.SetOptions(c.urlParams_, opts...)
23387 res, err := c.doRequest("json")
23388 if res != nil && res.StatusCode == http.StatusNotModified {
23389 if res.Body != nil {
23390 res.Body.Close()
23391 }
23392 return nil, gensupport.WrapError(&googleapi.Error{
23393 Code: res.StatusCode,
23394 Header: res.Header,
23395 })
23396 }
23397 if err != nil {
23398 return nil, err
23399 }
23400 defer googleapi.CloseBody(res)
23401 if err := googleapi.CheckResponse(res); err != nil {
23402 return nil, gensupport.WrapError(err)
23403 }
23404 ret := &DatafeedstatusesCustomBatchResponse{
23405 ServerResponse: googleapi.ServerResponse{
23406 Header: res.Header,
23407 HTTPStatusCode: res.StatusCode,
23408 },
23409 }
23410 target := &ret
23411 if err := gensupport.DecodeResponse(target, res); err != nil {
23412 return nil, err
23413 }
23414 return ret, nil
23415 }
23416
23417 type DatafeedstatusesGetCall struct {
23418 s *APIService
23419 merchantId uint64
23420 datafeedId uint64
23421 urlParams_ gensupport.URLParams
23422 ifNoneMatch_ string
23423 ctx_ context.Context
23424 header_ http.Header
23425 }
23426
23427
23428
23429
23430
23431
23432 func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *DatafeedstatusesGetCall {
23433 c := &DatafeedstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23434 c.merchantId = merchantId
23435 c.datafeedId = datafeedId
23436 return c
23437 }
23438
23439
23440
23441
23442
23443
23444 func (c *DatafeedstatusesGetCall) Country(country string) *DatafeedstatusesGetCall {
23445 c.urlParams_.Set("country", country)
23446 return c
23447 }
23448
23449
23450
23451
23452
23453
23454 func (c *DatafeedstatusesGetCall) FeedLabel(feedLabel string) *DatafeedstatusesGetCall {
23455 c.urlParams_.Set("feedLabel", feedLabel)
23456 return c
23457 }
23458
23459
23460
23461
23462
23463
23464 func (c *DatafeedstatusesGetCall) Language(language string) *DatafeedstatusesGetCall {
23465 c.urlParams_.Set("language", language)
23466 return c
23467 }
23468
23469
23470
23471
23472 func (c *DatafeedstatusesGetCall) Fields(s ...googleapi.Field) *DatafeedstatusesGetCall {
23473 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23474 return c
23475 }
23476
23477
23478
23479
23480 func (c *DatafeedstatusesGetCall) IfNoneMatch(entityTag string) *DatafeedstatusesGetCall {
23481 c.ifNoneMatch_ = entityTag
23482 return c
23483 }
23484
23485
23486 func (c *DatafeedstatusesGetCall) Context(ctx context.Context) *DatafeedstatusesGetCall {
23487 c.ctx_ = ctx
23488 return c
23489 }
23490
23491
23492
23493 func (c *DatafeedstatusesGetCall) Header() http.Header {
23494 if c.header_ == nil {
23495 c.header_ = make(http.Header)
23496 }
23497 return c.header_
23498 }
23499
23500 func (c *DatafeedstatusesGetCall) doRequest(alt string) (*http.Response, error) {
23501 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23502 if c.ifNoneMatch_ != "" {
23503 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23504 }
23505 var body io.Reader = nil
23506 c.urlParams_.Set("alt", alt)
23507 c.urlParams_.Set("prettyPrint", "false")
23508 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeedstatuses/{datafeedId}")
23509 urls += "?" + c.urlParams_.Encode()
23510 req, err := http.NewRequest("GET", urls, body)
23511 if err != nil {
23512 return nil, err
23513 }
23514 req.Header = reqHeaders
23515 googleapi.Expand(req.URL, map[string]string{
23516 "merchantId": strconv.FormatUint(c.merchantId, 10),
23517 "datafeedId": strconv.FormatUint(c.datafeedId, 10),
23518 })
23519 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23520 }
23521
23522
23523
23524
23525
23526
23527 func (c *DatafeedstatusesGetCall) Do(opts ...googleapi.CallOption) (*DatafeedStatus, error) {
23528 gensupport.SetOptions(c.urlParams_, opts...)
23529 res, err := c.doRequest("json")
23530 if res != nil && res.StatusCode == http.StatusNotModified {
23531 if res.Body != nil {
23532 res.Body.Close()
23533 }
23534 return nil, gensupport.WrapError(&googleapi.Error{
23535 Code: res.StatusCode,
23536 Header: res.Header,
23537 })
23538 }
23539 if err != nil {
23540 return nil, err
23541 }
23542 defer googleapi.CloseBody(res)
23543 if err := googleapi.CheckResponse(res); err != nil {
23544 return nil, gensupport.WrapError(err)
23545 }
23546 ret := &DatafeedStatus{
23547 ServerResponse: googleapi.ServerResponse{
23548 Header: res.Header,
23549 HTTPStatusCode: res.StatusCode,
23550 },
23551 }
23552 target := &ret
23553 if err := gensupport.DecodeResponse(target, res); err != nil {
23554 return nil, err
23555 }
23556 return ret, nil
23557 }
23558
23559 type DatafeedstatusesListCall struct {
23560 s *APIService
23561 merchantId uint64
23562 urlParams_ gensupport.URLParams
23563 ifNoneMatch_ string
23564 ctx_ context.Context
23565 header_ http.Header
23566 }
23567
23568
23569
23570
23571
23572 func (r *DatafeedstatusesService) List(merchantId uint64) *DatafeedstatusesListCall {
23573 c := &DatafeedstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23574 c.merchantId = merchantId
23575 return c
23576 }
23577
23578
23579
23580 func (c *DatafeedstatusesListCall) MaxResults(maxResults int64) *DatafeedstatusesListCall {
23581 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
23582 return c
23583 }
23584
23585
23586
23587 func (c *DatafeedstatusesListCall) PageToken(pageToken string) *DatafeedstatusesListCall {
23588 c.urlParams_.Set("pageToken", pageToken)
23589 return c
23590 }
23591
23592
23593
23594
23595 func (c *DatafeedstatusesListCall) Fields(s ...googleapi.Field) *DatafeedstatusesListCall {
23596 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23597 return c
23598 }
23599
23600
23601
23602
23603 func (c *DatafeedstatusesListCall) IfNoneMatch(entityTag string) *DatafeedstatusesListCall {
23604 c.ifNoneMatch_ = entityTag
23605 return c
23606 }
23607
23608
23609 func (c *DatafeedstatusesListCall) Context(ctx context.Context) *DatafeedstatusesListCall {
23610 c.ctx_ = ctx
23611 return c
23612 }
23613
23614
23615
23616 func (c *DatafeedstatusesListCall) Header() http.Header {
23617 if c.header_ == nil {
23618 c.header_ = make(http.Header)
23619 }
23620 return c.header_
23621 }
23622
23623 func (c *DatafeedstatusesListCall) doRequest(alt string) (*http.Response, error) {
23624 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23625 if c.ifNoneMatch_ != "" {
23626 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23627 }
23628 var body io.Reader = nil
23629 c.urlParams_.Set("alt", alt)
23630 c.urlParams_.Set("prettyPrint", "false")
23631 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeedstatuses")
23632 urls += "?" + c.urlParams_.Encode()
23633 req, err := http.NewRequest("GET", urls, body)
23634 if err != nil {
23635 return nil, err
23636 }
23637 req.Header = reqHeaders
23638 googleapi.Expand(req.URL, map[string]string{
23639 "merchantId": strconv.FormatUint(c.merchantId, 10),
23640 })
23641 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23642 }
23643
23644
23645
23646
23647
23648
23649
23650 func (c *DatafeedstatusesListCall) Do(opts ...googleapi.CallOption) (*DatafeedstatusesListResponse, error) {
23651 gensupport.SetOptions(c.urlParams_, opts...)
23652 res, err := c.doRequest("json")
23653 if res != nil && res.StatusCode == http.StatusNotModified {
23654 if res.Body != nil {
23655 res.Body.Close()
23656 }
23657 return nil, gensupport.WrapError(&googleapi.Error{
23658 Code: res.StatusCode,
23659 Header: res.Header,
23660 })
23661 }
23662 if err != nil {
23663 return nil, err
23664 }
23665 defer googleapi.CloseBody(res)
23666 if err := googleapi.CheckResponse(res); err != nil {
23667 return nil, gensupport.WrapError(err)
23668 }
23669 ret := &DatafeedstatusesListResponse{
23670 ServerResponse: googleapi.ServerResponse{
23671 Header: res.Header,
23672 HTTPStatusCode: res.StatusCode,
23673 },
23674 }
23675 target := &ret
23676 if err := gensupport.DecodeResponse(target, res); err != nil {
23677 return nil, err
23678 }
23679 return ret, nil
23680 }
23681
23682
23683
23684
23685 func (c *DatafeedstatusesListCall) Pages(ctx context.Context, f func(*DatafeedstatusesListResponse) error) error {
23686 c.ctx_ = ctx
23687 defer c.PageToken(c.urlParams_.Get("pageToken"))
23688 for {
23689 x, err := c.Do()
23690 if err != nil {
23691 return err
23692 }
23693 if err := f(x); err != nil {
23694 return err
23695 }
23696 if x.NextPageToken == "" {
23697 return nil
23698 }
23699 c.PageToken(x.NextPageToken)
23700 }
23701 }
23702
23703 type FreelistingsprogramGetCall struct {
23704 s *APIService
23705 merchantId int64
23706 urlParams_ gensupport.URLParams
23707 ifNoneMatch_ string
23708 ctx_ context.Context
23709 header_ http.Header
23710 }
23711
23712
23713
23714
23715
23716
23717
23718 func (r *FreelistingsprogramService) Get(merchantId int64) *FreelistingsprogramGetCall {
23719 c := &FreelistingsprogramGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23720 c.merchantId = merchantId
23721 return c
23722 }
23723
23724
23725
23726
23727 func (c *FreelistingsprogramGetCall) Fields(s ...googleapi.Field) *FreelistingsprogramGetCall {
23728 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23729 return c
23730 }
23731
23732
23733
23734
23735 func (c *FreelistingsprogramGetCall) IfNoneMatch(entityTag string) *FreelistingsprogramGetCall {
23736 c.ifNoneMatch_ = entityTag
23737 return c
23738 }
23739
23740
23741 func (c *FreelistingsprogramGetCall) Context(ctx context.Context) *FreelistingsprogramGetCall {
23742 c.ctx_ = ctx
23743 return c
23744 }
23745
23746
23747
23748 func (c *FreelistingsprogramGetCall) Header() http.Header {
23749 if c.header_ == nil {
23750 c.header_ = make(http.Header)
23751 }
23752 return c.header_
23753 }
23754
23755 func (c *FreelistingsprogramGetCall) doRequest(alt string) (*http.Response, error) {
23756 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23757 if c.ifNoneMatch_ != "" {
23758 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23759 }
23760 var body io.Reader = nil
23761 c.urlParams_.Set("alt", alt)
23762 c.urlParams_.Set("prettyPrint", "false")
23763 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/freelistingsprogram")
23764 urls += "?" + c.urlParams_.Encode()
23765 req, err := http.NewRequest("GET", urls, body)
23766 if err != nil {
23767 return nil, err
23768 }
23769 req.Header = reqHeaders
23770 googleapi.Expand(req.URL, map[string]string{
23771 "merchantId": strconv.FormatInt(c.merchantId, 10),
23772 })
23773 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23774 }
23775
23776
23777
23778
23779
23780
23781
23782 func (c *FreelistingsprogramGetCall) Do(opts ...googleapi.CallOption) (*FreeListingsProgramStatus, error) {
23783 gensupport.SetOptions(c.urlParams_, opts...)
23784 res, err := c.doRequest("json")
23785 if res != nil && res.StatusCode == http.StatusNotModified {
23786 if res.Body != nil {
23787 res.Body.Close()
23788 }
23789 return nil, gensupport.WrapError(&googleapi.Error{
23790 Code: res.StatusCode,
23791 Header: res.Header,
23792 })
23793 }
23794 if err != nil {
23795 return nil, err
23796 }
23797 defer googleapi.CloseBody(res)
23798 if err := googleapi.CheckResponse(res); err != nil {
23799 return nil, gensupport.WrapError(err)
23800 }
23801 ret := &FreeListingsProgramStatus{
23802 ServerResponse: googleapi.ServerResponse{
23803 Header: res.Header,
23804 HTTPStatusCode: res.StatusCode,
23805 },
23806 }
23807 target := &ret
23808 if err := gensupport.DecodeResponse(target, res); err != nil {
23809 return nil, err
23810 }
23811 return ret, nil
23812 }
23813
23814 type FreelistingsprogramRequestreviewCall struct {
23815 s *APIService
23816 merchantId int64
23817 requestreviewfreelistingsrequest *RequestReviewFreeListingsRequest
23818 urlParams_ gensupport.URLParams
23819 ctx_ context.Context
23820 header_ http.Header
23821 }
23822
23823
23824
23825
23826
23827
23828 func (r *FreelistingsprogramService) Requestreview(merchantId int64, requestreviewfreelistingsrequest *RequestReviewFreeListingsRequest) *FreelistingsprogramRequestreviewCall {
23829 c := &FreelistingsprogramRequestreviewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23830 c.merchantId = merchantId
23831 c.requestreviewfreelistingsrequest = requestreviewfreelistingsrequest
23832 return c
23833 }
23834
23835
23836
23837
23838 func (c *FreelistingsprogramRequestreviewCall) Fields(s ...googleapi.Field) *FreelistingsprogramRequestreviewCall {
23839 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23840 return c
23841 }
23842
23843
23844 func (c *FreelistingsprogramRequestreviewCall) Context(ctx context.Context) *FreelistingsprogramRequestreviewCall {
23845 c.ctx_ = ctx
23846 return c
23847 }
23848
23849
23850
23851 func (c *FreelistingsprogramRequestreviewCall) Header() http.Header {
23852 if c.header_ == nil {
23853 c.header_ = make(http.Header)
23854 }
23855 return c.header_
23856 }
23857
23858 func (c *FreelistingsprogramRequestreviewCall) doRequest(alt string) (*http.Response, error) {
23859 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23860 var body io.Reader = nil
23861 body, err := googleapi.WithoutDataWrapper.JSONReader(c.requestreviewfreelistingsrequest)
23862 if err != nil {
23863 return nil, err
23864 }
23865 c.urlParams_.Set("alt", alt)
23866 c.urlParams_.Set("prettyPrint", "false")
23867 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/freelistingsprogram/requestreview")
23868 urls += "?" + c.urlParams_.Encode()
23869 req, err := http.NewRequest("POST", urls, body)
23870 if err != nil {
23871 return nil, err
23872 }
23873 req.Header = reqHeaders
23874 googleapi.Expand(req.URL, map[string]string{
23875 "merchantId": strconv.FormatInt(c.merchantId, 10),
23876 })
23877 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23878 }
23879
23880
23881 func (c *FreelistingsprogramRequestreviewCall) Do(opts ...googleapi.CallOption) error {
23882 gensupport.SetOptions(c.urlParams_, opts...)
23883 res, err := c.doRequest("json")
23884 if err != nil {
23885 return err
23886 }
23887 defer googleapi.CloseBody(res)
23888 if err := googleapi.CheckResponse(res); err != nil {
23889 return gensupport.WrapError(err)
23890 }
23891 return nil
23892 }
23893
23894 type FreelistingsprogramCheckoutsettingsDeleteCall struct {
23895 s *APIService
23896 merchantId int64
23897 urlParams_ gensupport.URLParams
23898 ctx_ context.Context
23899 header_ http.Header
23900 }
23901
23902
23903
23904
23905
23906 func (r *FreelistingsprogramCheckoutsettingsService) Delete(merchantId int64) *FreelistingsprogramCheckoutsettingsDeleteCall {
23907 c := &FreelistingsprogramCheckoutsettingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23908 c.merchantId = merchantId
23909 return c
23910 }
23911
23912
23913
23914
23915 func (c *FreelistingsprogramCheckoutsettingsDeleteCall) Fields(s ...googleapi.Field) *FreelistingsprogramCheckoutsettingsDeleteCall {
23916 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23917 return c
23918 }
23919
23920
23921 func (c *FreelistingsprogramCheckoutsettingsDeleteCall) Context(ctx context.Context) *FreelistingsprogramCheckoutsettingsDeleteCall {
23922 c.ctx_ = ctx
23923 return c
23924 }
23925
23926
23927
23928 func (c *FreelistingsprogramCheckoutsettingsDeleteCall) Header() http.Header {
23929 if c.header_ == nil {
23930 c.header_ = make(http.Header)
23931 }
23932 return c.header_
23933 }
23934
23935 func (c *FreelistingsprogramCheckoutsettingsDeleteCall) doRequest(alt string) (*http.Response, error) {
23936 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23937 var body io.Reader = nil
23938 c.urlParams_.Set("alt", alt)
23939 c.urlParams_.Set("prettyPrint", "false")
23940 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/freelistingsprogram/checkoutsettings")
23941 urls += "?" + c.urlParams_.Encode()
23942 req, err := http.NewRequest("DELETE", urls, body)
23943 if err != nil {
23944 return nil, err
23945 }
23946 req.Header = reqHeaders
23947 googleapi.Expand(req.URL, map[string]string{
23948 "merchantId": strconv.FormatInt(c.merchantId, 10),
23949 })
23950 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23951 }
23952
23953
23954 func (c *FreelistingsprogramCheckoutsettingsDeleteCall) Do(opts ...googleapi.CallOption) error {
23955 gensupport.SetOptions(c.urlParams_, opts...)
23956 res, err := c.doRequest("json")
23957 if err != nil {
23958 return err
23959 }
23960 defer googleapi.CloseBody(res)
23961 if err := googleapi.CheckResponse(res); err != nil {
23962 return gensupport.WrapError(err)
23963 }
23964 return nil
23965 }
23966
23967 type FreelistingsprogramCheckoutsettingsGetCall struct {
23968 s *APIService
23969 merchantId int64
23970 urlParams_ gensupport.URLParams
23971 ifNoneMatch_ string
23972 ctx_ context.Context
23973 header_ http.Header
23974 }
23975
23976
23977
23978
23979
23980 func (r *FreelistingsprogramCheckoutsettingsService) Get(merchantId int64) *FreelistingsprogramCheckoutsettingsGetCall {
23981 c := &FreelistingsprogramCheckoutsettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23982 c.merchantId = merchantId
23983 return c
23984 }
23985
23986
23987
23988
23989 func (c *FreelistingsprogramCheckoutsettingsGetCall) Fields(s ...googleapi.Field) *FreelistingsprogramCheckoutsettingsGetCall {
23990 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23991 return c
23992 }
23993
23994
23995
23996
23997 func (c *FreelistingsprogramCheckoutsettingsGetCall) IfNoneMatch(entityTag string) *FreelistingsprogramCheckoutsettingsGetCall {
23998 c.ifNoneMatch_ = entityTag
23999 return c
24000 }
24001
24002
24003 func (c *FreelistingsprogramCheckoutsettingsGetCall) Context(ctx context.Context) *FreelistingsprogramCheckoutsettingsGetCall {
24004 c.ctx_ = ctx
24005 return c
24006 }
24007
24008
24009
24010 func (c *FreelistingsprogramCheckoutsettingsGetCall) Header() http.Header {
24011 if c.header_ == nil {
24012 c.header_ = make(http.Header)
24013 }
24014 return c.header_
24015 }
24016
24017 func (c *FreelistingsprogramCheckoutsettingsGetCall) doRequest(alt string) (*http.Response, error) {
24018 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24019 if c.ifNoneMatch_ != "" {
24020 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24021 }
24022 var body io.Reader = nil
24023 c.urlParams_.Set("alt", alt)
24024 c.urlParams_.Set("prettyPrint", "false")
24025 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/freelistingsprogram/checkoutsettings")
24026 urls += "?" + c.urlParams_.Encode()
24027 req, err := http.NewRequest("GET", urls, body)
24028 if err != nil {
24029 return nil, err
24030 }
24031 req.Header = reqHeaders
24032 googleapi.Expand(req.URL, map[string]string{
24033 "merchantId": strconv.FormatInt(c.merchantId, 10),
24034 })
24035 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24036 }
24037
24038
24039
24040
24041
24042
24043
24044 func (c *FreelistingsprogramCheckoutsettingsGetCall) Do(opts ...googleapi.CallOption) (*CheckoutSettings, error) {
24045 gensupport.SetOptions(c.urlParams_, opts...)
24046 res, err := c.doRequest("json")
24047 if res != nil && res.StatusCode == http.StatusNotModified {
24048 if res.Body != nil {
24049 res.Body.Close()
24050 }
24051 return nil, gensupport.WrapError(&googleapi.Error{
24052 Code: res.StatusCode,
24053 Header: res.Header,
24054 })
24055 }
24056 if err != nil {
24057 return nil, err
24058 }
24059 defer googleapi.CloseBody(res)
24060 if err := googleapi.CheckResponse(res); err != nil {
24061 return nil, gensupport.WrapError(err)
24062 }
24063 ret := &CheckoutSettings{
24064 ServerResponse: googleapi.ServerResponse{
24065 Header: res.Header,
24066 HTTPStatusCode: res.StatusCode,
24067 },
24068 }
24069 target := &ret
24070 if err := gensupport.DecodeResponse(target, res); err != nil {
24071 return nil, err
24072 }
24073 return ret, nil
24074 }
24075
24076 type FreelistingsprogramCheckoutsettingsInsertCall struct {
24077 s *APIService
24078 merchantId int64
24079 insertcheckoutsettingsrequest *InsertCheckoutSettingsRequest
24080 urlParams_ gensupport.URLParams
24081 ctx_ context.Context
24082 header_ http.Header
24083 }
24084
24085
24086
24087
24088 func (r *FreelistingsprogramCheckoutsettingsService) Insert(merchantId int64, insertcheckoutsettingsrequest *InsertCheckoutSettingsRequest) *FreelistingsprogramCheckoutsettingsInsertCall {
24089 c := &FreelistingsprogramCheckoutsettingsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24090 c.merchantId = merchantId
24091 c.insertcheckoutsettingsrequest = insertcheckoutsettingsrequest
24092 return c
24093 }
24094
24095
24096
24097
24098 func (c *FreelistingsprogramCheckoutsettingsInsertCall) Fields(s ...googleapi.Field) *FreelistingsprogramCheckoutsettingsInsertCall {
24099 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24100 return c
24101 }
24102
24103
24104 func (c *FreelistingsprogramCheckoutsettingsInsertCall) Context(ctx context.Context) *FreelistingsprogramCheckoutsettingsInsertCall {
24105 c.ctx_ = ctx
24106 return c
24107 }
24108
24109
24110
24111 func (c *FreelistingsprogramCheckoutsettingsInsertCall) Header() http.Header {
24112 if c.header_ == nil {
24113 c.header_ = make(http.Header)
24114 }
24115 return c.header_
24116 }
24117
24118 func (c *FreelistingsprogramCheckoutsettingsInsertCall) doRequest(alt string) (*http.Response, error) {
24119 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24120 var body io.Reader = nil
24121 body, err := googleapi.WithoutDataWrapper.JSONReader(c.insertcheckoutsettingsrequest)
24122 if err != nil {
24123 return nil, err
24124 }
24125 c.urlParams_.Set("alt", alt)
24126 c.urlParams_.Set("prettyPrint", "false")
24127 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/freelistingsprogram/checkoutsettings")
24128 urls += "?" + c.urlParams_.Encode()
24129 req, err := http.NewRequest("POST", urls, body)
24130 if err != nil {
24131 return nil, err
24132 }
24133 req.Header = reqHeaders
24134 googleapi.Expand(req.URL, map[string]string{
24135 "merchantId": strconv.FormatInt(c.merchantId, 10),
24136 })
24137 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24138 }
24139
24140
24141
24142
24143
24144
24145
24146 func (c *FreelistingsprogramCheckoutsettingsInsertCall) Do(opts ...googleapi.CallOption) (*CheckoutSettings, error) {
24147 gensupport.SetOptions(c.urlParams_, opts...)
24148 res, err := c.doRequest("json")
24149 if res != nil && res.StatusCode == http.StatusNotModified {
24150 if res.Body != nil {
24151 res.Body.Close()
24152 }
24153 return nil, gensupport.WrapError(&googleapi.Error{
24154 Code: res.StatusCode,
24155 Header: res.Header,
24156 })
24157 }
24158 if err != nil {
24159 return nil, err
24160 }
24161 defer googleapi.CloseBody(res)
24162 if err := googleapi.CheckResponse(res); err != nil {
24163 return nil, gensupport.WrapError(err)
24164 }
24165 ret := &CheckoutSettings{
24166 ServerResponse: googleapi.ServerResponse{
24167 Header: res.Header,
24168 HTTPStatusCode: res.StatusCode,
24169 },
24170 }
24171 target := &ret
24172 if err := gensupport.DecodeResponse(target, res); err != nil {
24173 return nil, err
24174 }
24175 return ret, nil
24176 }
24177
24178 type LiasettingsCustombatchCall struct {
24179 s *APIService
24180 liasettingscustombatchrequest *LiasettingsCustomBatchRequest
24181 urlParams_ gensupport.URLParams
24182 ctx_ context.Context
24183 header_ http.Header
24184 }
24185
24186
24187
24188 func (r *LiasettingsService) Custombatch(liasettingscustombatchrequest *LiasettingsCustomBatchRequest) *LiasettingsCustombatchCall {
24189 c := &LiasettingsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24190 c.liasettingscustombatchrequest = liasettingscustombatchrequest
24191 return c
24192 }
24193
24194
24195
24196
24197 func (c *LiasettingsCustombatchCall) Fields(s ...googleapi.Field) *LiasettingsCustombatchCall {
24198 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24199 return c
24200 }
24201
24202
24203 func (c *LiasettingsCustombatchCall) Context(ctx context.Context) *LiasettingsCustombatchCall {
24204 c.ctx_ = ctx
24205 return c
24206 }
24207
24208
24209
24210 func (c *LiasettingsCustombatchCall) Header() http.Header {
24211 if c.header_ == nil {
24212 c.header_ = make(http.Header)
24213 }
24214 return c.header_
24215 }
24216
24217 func (c *LiasettingsCustombatchCall) doRequest(alt string) (*http.Response, error) {
24218 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24219 var body io.Reader = nil
24220 body, err := googleapi.WithoutDataWrapper.JSONReader(c.liasettingscustombatchrequest)
24221 if err != nil {
24222 return nil, err
24223 }
24224 c.urlParams_.Set("alt", alt)
24225 c.urlParams_.Set("prettyPrint", "false")
24226 urls := googleapi.ResolveRelative(c.s.BasePath, "liasettings/batch")
24227 urls += "?" + c.urlParams_.Encode()
24228 req, err := http.NewRequest("POST", urls, body)
24229 if err != nil {
24230 return nil, err
24231 }
24232 req.Header = reqHeaders
24233 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24234 }
24235
24236
24237
24238
24239
24240
24241
24242 func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*LiasettingsCustomBatchResponse, error) {
24243 gensupport.SetOptions(c.urlParams_, opts...)
24244 res, err := c.doRequest("json")
24245 if res != nil && res.StatusCode == http.StatusNotModified {
24246 if res.Body != nil {
24247 res.Body.Close()
24248 }
24249 return nil, gensupport.WrapError(&googleapi.Error{
24250 Code: res.StatusCode,
24251 Header: res.Header,
24252 })
24253 }
24254 if err != nil {
24255 return nil, err
24256 }
24257 defer googleapi.CloseBody(res)
24258 if err := googleapi.CheckResponse(res); err != nil {
24259 return nil, gensupport.WrapError(err)
24260 }
24261 ret := &LiasettingsCustomBatchResponse{
24262 ServerResponse: googleapi.ServerResponse{
24263 Header: res.Header,
24264 HTTPStatusCode: res.StatusCode,
24265 },
24266 }
24267 target := &ret
24268 if err := gensupport.DecodeResponse(target, res); err != nil {
24269 return nil, err
24270 }
24271 return ret, nil
24272 }
24273
24274 type LiasettingsGetCall struct {
24275 s *APIService
24276 merchantId uint64
24277 accountId uint64
24278 urlParams_ gensupport.URLParams
24279 ifNoneMatch_ string
24280 ctx_ context.Context
24281 header_ http.Header
24282 }
24283
24284
24285
24286
24287
24288
24289
24290 func (r *LiasettingsService) Get(merchantId uint64, accountId uint64) *LiasettingsGetCall {
24291 c := &LiasettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24292 c.merchantId = merchantId
24293 c.accountId = accountId
24294 return c
24295 }
24296
24297
24298
24299
24300 func (c *LiasettingsGetCall) Fields(s ...googleapi.Field) *LiasettingsGetCall {
24301 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24302 return c
24303 }
24304
24305
24306
24307
24308 func (c *LiasettingsGetCall) IfNoneMatch(entityTag string) *LiasettingsGetCall {
24309 c.ifNoneMatch_ = entityTag
24310 return c
24311 }
24312
24313
24314 func (c *LiasettingsGetCall) Context(ctx context.Context) *LiasettingsGetCall {
24315 c.ctx_ = ctx
24316 return c
24317 }
24318
24319
24320
24321 func (c *LiasettingsGetCall) Header() http.Header {
24322 if c.header_ == nil {
24323 c.header_ = make(http.Header)
24324 }
24325 return c.header_
24326 }
24327
24328 func (c *LiasettingsGetCall) doRequest(alt string) (*http.Response, error) {
24329 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24330 if c.ifNoneMatch_ != "" {
24331 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24332 }
24333 var body io.Reader = nil
24334 c.urlParams_.Set("alt", alt)
24335 c.urlParams_.Set("prettyPrint", "false")
24336 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}")
24337 urls += "?" + c.urlParams_.Encode()
24338 req, err := http.NewRequest("GET", urls, body)
24339 if err != nil {
24340 return nil, err
24341 }
24342 req.Header = reqHeaders
24343 googleapi.Expand(req.URL, map[string]string{
24344 "merchantId": strconv.FormatUint(c.merchantId, 10),
24345 "accountId": strconv.FormatUint(c.accountId, 10),
24346 })
24347 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24348 }
24349
24350
24351
24352
24353
24354
24355 func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error) {
24356 gensupport.SetOptions(c.urlParams_, opts...)
24357 res, err := c.doRequest("json")
24358 if res != nil && res.StatusCode == http.StatusNotModified {
24359 if res.Body != nil {
24360 res.Body.Close()
24361 }
24362 return nil, gensupport.WrapError(&googleapi.Error{
24363 Code: res.StatusCode,
24364 Header: res.Header,
24365 })
24366 }
24367 if err != nil {
24368 return nil, err
24369 }
24370 defer googleapi.CloseBody(res)
24371 if err := googleapi.CheckResponse(res); err != nil {
24372 return nil, gensupport.WrapError(err)
24373 }
24374 ret := &LiaSettings{
24375 ServerResponse: googleapi.ServerResponse{
24376 Header: res.Header,
24377 HTTPStatusCode: res.StatusCode,
24378 },
24379 }
24380 target := &ret
24381 if err := gensupport.DecodeResponse(target, res); err != nil {
24382 return nil, err
24383 }
24384 return ret, nil
24385 }
24386
24387 type LiasettingsGetaccessiblegmbaccountsCall struct {
24388 s *APIService
24389 merchantId uint64
24390 accountId uint64
24391 urlParams_ gensupport.URLParams
24392 ifNoneMatch_ string
24393 ctx_ context.Context
24394 header_ http.Header
24395 }
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405 func (r *LiasettingsService) Getaccessiblegmbaccounts(merchantId uint64, accountId uint64) *LiasettingsGetaccessiblegmbaccountsCall {
24406 c := &LiasettingsGetaccessiblegmbaccountsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24407 c.merchantId = merchantId
24408 c.accountId = accountId
24409 return c
24410 }
24411
24412
24413
24414
24415 func (c *LiasettingsGetaccessiblegmbaccountsCall) Fields(s ...googleapi.Field) *LiasettingsGetaccessiblegmbaccountsCall {
24416 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24417 return c
24418 }
24419
24420
24421
24422
24423 func (c *LiasettingsGetaccessiblegmbaccountsCall) IfNoneMatch(entityTag string) *LiasettingsGetaccessiblegmbaccountsCall {
24424 c.ifNoneMatch_ = entityTag
24425 return c
24426 }
24427
24428
24429 func (c *LiasettingsGetaccessiblegmbaccountsCall) Context(ctx context.Context) *LiasettingsGetaccessiblegmbaccountsCall {
24430 c.ctx_ = ctx
24431 return c
24432 }
24433
24434
24435
24436 func (c *LiasettingsGetaccessiblegmbaccountsCall) Header() http.Header {
24437 if c.header_ == nil {
24438 c.header_ = make(http.Header)
24439 }
24440 return c.header_
24441 }
24442
24443 func (c *LiasettingsGetaccessiblegmbaccountsCall) doRequest(alt string) (*http.Response, error) {
24444 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24445 if c.ifNoneMatch_ != "" {
24446 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24447 }
24448 var body io.Reader = nil
24449 c.urlParams_.Set("alt", alt)
24450 c.urlParams_.Set("prettyPrint", "false")
24451 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/accessiblegmbaccounts")
24452 urls += "?" + c.urlParams_.Encode()
24453 req, err := http.NewRequest("GET", urls, body)
24454 if err != nil {
24455 return nil, err
24456 }
24457 req.Header = reqHeaders
24458 googleapi.Expand(req.URL, map[string]string{
24459 "merchantId": strconv.FormatUint(c.merchantId, 10),
24460 "accountId": strconv.FormatUint(c.accountId, 10),
24461 })
24462 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24463 }
24464
24465
24466
24467
24468
24469
24470
24471 func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOption) (*LiasettingsGetAccessibleGmbAccountsResponse, error) {
24472 gensupport.SetOptions(c.urlParams_, opts...)
24473 res, err := c.doRequest("json")
24474 if res != nil && res.StatusCode == http.StatusNotModified {
24475 if res.Body != nil {
24476 res.Body.Close()
24477 }
24478 return nil, gensupport.WrapError(&googleapi.Error{
24479 Code: res.StatusCode,
24480 Header: res.Header,
24481 })
24482 }
24483 if err != nil {
24484 return nil, err
24485 }
24486 defer googleapi.CloseBody(res)
24487 if err := googleapi.CheckResponse(res); err != nil {
24488 return nil, gensupport.WrapError(err)
24489 }
24490 ret := &LiasettingsGetAccessibleGmbAccountsResponse{
24491 ServerResponse: googleapi.ServerResponse{
24492 Header: res.Header,
24493 HTTPStatusCode: res.StatusCode,
24494 },
24495 }
24496 target := &ret
24497 if err := gensupport.DecodeResponse(target, res); err != nil {
24498 return nil, err
24499 }
24500 return ret, nil
24501 }
24502
24503 type LiasettingsListCall struct {
24504 s *APIService
24505 merchantId uint64
24506 urlParams_ gensupport.URLParams
24507 ifNoneMatch_ string
24508 ctx_ context.Context
24509 header_ http.Header
24510 }
24511
24512
24513
24514
24515
24516
24517 func (r *LiasettingsService) List(merchantId uint64) *LiasettingsListCall {
24518 c := &LiasettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24519 c.merchantId = merchantId
24520 return c
24521 }
24522
24523
24524
24525 func (c *LiasettingsListCall) MaxResults(maxResults int64) *LiasettingsListCall {
24526 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
24527 return c
24528 }
24529
24530
24531
24532 func (c *LiasettingsListCall) PageToken(pageToken string) *LiasettingsListCall {
24533 c.urlParams_.Set("pageToken", pageToken)
24534 return c
24535 }
24536
24537
24538
24539
24540 func (c *LiasettingsListCall) Fields(s ...googleapi.Field) *LiasettingsListCall {
24541 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24542 return c
24543 }
24544
24545
24546
24547
24548 func (c *LiasettingsListCall) IfNoneMatch(entityTag string) *LiasettingsListCall {
24549 c.ifNoneMatch_ = entityTag
24550 return c
24551 }
24552
24553
24554 func (c *LiasettingsListCall) Context(ctx context.Context) *LiasettingsListCall {
24555 c.ctx_ = ctx
24556 return c
24557 }
24558
24559
24560
24561 func (c *LiasettingsListCall) Header() http.Header {
24562 if c.header_ == nil {
24563 c.header_ = make(http.Header)
24564 }
24565 return c.header_
24566 }
24567
24568 func (c *LiasettingsListCall) doRequest(alt string) (*http.Response, error) {
24569 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24570 if c.ifNoneMatch_ != "" {
24571 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24572 }
24573 var body io.Reader = nil
24574 c.urlParams_.Set("alt", alt)
24575 c.urlParams_.Set("prettyPrint", "false")
24576 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings")
24577 urls += "?" + c.urlParams_.Encode()
24578 req, err := http.NewRequest("GET", urls, body)
24579 if err != nil {
24580 return nil, err
24581 }
24582 req.Header = reqHeaders
24583 googleapi.Expand(req.URL, map[string]string{
24584 "merchantId": strconv.FormatUint(c.merchantId, 10),
24585 })
24586 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24587 }
24588
24589
24590
24591
24592
24593
24594
24595 func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsListResponse, error) {
24596 gensupport.SetOptions(c.urlParams_, opts...)
24597 res, err := c.doRequest("json")
24598 if res != nil && res.StatusCode == http.StatusNotModified {
24599 if res.Body != nil {
24600 res.Body.Close()
24601 }
24602 return nil, gensupport.WrapError(&googleapi.Error{
24603 Code: res.StatusCode,
24604 Header: res.Header,
24605 })
24606 }
24607 if err != nil {
24608 return nil, err
24609 }
24610 defer googleapi.CloseBody(res)
24611 if err := googleapi.CheckResponse(res); err != nil {
24612 return nil, gensupport.WrapError(err)
24613 }
24614 ret := &LiasettingsListResponse{
24615 ServerResponse: googleapi.ServerResponse{
24616 Header: res.Header,
24617 HTTPStatusCode: res.StatusCode,
24618 },
24619 }
24620 target := &ret
24621 if err := gensupport.DecodeResponse(target, res); err != nil {
24622 return nil, err
24623 }
24624 return ret, nil
24625 }
24626
24627
24628
24629
24630 func (c *LiasettingsListCall) Pages(ctx context.Context, f func(*LiasettingsListResponse) error) error {
24631 c.ctx_ = ctx
24632 defer c.PageToken(c.urlParams_.Get("pageToken"))
24633 for {
24634 x, err := c.Do()
24635 if err != nil {
24636 return err
24637 }
24638 if err := f(x); err != nil {
24639 return err
24640 }
24641 if x.NextPageToken == "" {
24642 return nil
24643 }
24644 c.PageToken(x.NextPageToken)
24645 }
24646 }
24647
24648 type LiasettingsListposdataprovidersCall struct {
24649 s *APIService
24650 urlParams_ gensupport.URLParams
24651 ifNoneMatch_ string
24652 ctx_ context.Context
24653 header_ http.Header
24654 }
24655
24656
24657
24658 func (r *LiasettingsService) Listposdataproviders() *LiasettingsListposdataprovidersCall {
24659 c := &LiasettingsListposdataprovidersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24660 return c
24661 }
24662
24663
24664
24665
24666 func (c *LiasettingsListposdataprovidersCall) Fields(s ...googleapi.Field) *LiasettingsListposdataprovidersCall {
24667 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24668 return c
24669 }
24670
24671
24672
24673
24674 func (c *LiasettingsListposdataprovidersCall) IfNoneMatch(entityTag string) *LiasettingsListposdataprovidersCall {
24675 c.ifNoneMatch_ = entityTag
24676 return c
24677 }
24678
24679
24680 func (c *LiasettingsListposdataprovidersCall) Context(ctx context.Context) *LiasettingsListposdataprovidersCall {
24681 c.ctx_ = ctx
24682 return c
24683 }
24684
24685
24686
24687 func (c *LiasettingsListposdataprovidersCall) Header() http.Header {
24688 if c.header_ == nil {
24689 c.header_ = make(http.Header)
24690 }
24691 return c.header_
24692 }
24693
24694 func (c *LiasettingsListposdataprovidersCall) doRequest(alt string) (*http.Response, error) {
24695 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24696 if c.ifNoneMatch_ != "" {
24697 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24698 }
24699 var body io.Reader = nil
24700 c.urlParams_.Set("alt", alt)
24701 c.urlParams_.Set("prettyPrint", "false")
24702 urls := googleapi.ResolveRelative(c.s.BasePath, "liasettings/posdataproviders")
24703 urls += "?" + c.urlParams_.Encode()
24704 req, err := http.NewRequest("GET", urls, body)
24705 if err != nil {
24706 return nil, err
24707 }
24708 req.Header = reqHeaders
24709 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24710 }
24711
24712
24713
24714
24715
24716
24717
24718 func (c *LiasettingsListposdataprovidersCall) Do(opts ...googleapi.CallOption) (*LiasettingsListPosDataProvidersResponse, error) {
24719 gensupport.SetOptions(c.urlParams_, opts...)
24720 res, err := c.doRequest("json")
24721 if res != nil && res.StatusCode == http.StatusNotModified {
24722 if res.Body != nil {
24723 res.Body.Close()
24724 }
24725 return nil, gensupport.WrapError(&googleapi.Error{
24726 Code: res.StatusCode,
24727 Header: res.Header,
24728 })
24729 }
24730 if err != nil {
24731 return nil, err
24732 }
24733 defer googleapi.CloseBody(res)
24734 if err := googleapi.CheckResponse(res); err != nil {
24735 return nil, gensupport.WrapError(err)
24736 }
24737 ret := &LiasettingsListPosDataProvidersResponse{
24738 ServerResponse: googleapi.ServerResponse{
24739 Header: res.Header,
24740 HTTPStatusCode: res.StatusCode,
24741 },
24742 }
24743 target := &ret
24744 if err := gensupport.DecodeResponse(target, res); err != nil {
24745 return nil, err
24746 }
24747 return ret, nil
24748 }
24749
24750 type LiasettingsRequestgmbaccessCall struct {
24751 s *APIService
24752 merchantId uint64
24753 accountId uint64
24754 urlParams_ gensupport.URLParams
24755 ctx_ context.Context
24756 header_ http.Header
24757 }
24758
24759
24760
24761
24762
24763
24764
24765
24766
24767 func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint64, gmbEmail string) *LiasettingsRequestgmbaccessCall {
24768 c := &LiasettingsRequestgmbaccessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24769 c.merchantId = merchantId
24770 c.accountId = accountId
24771 c.urlParams_.Set("gmbEmail", gmbEmail)
24772 return c
24773 }
24774
24775
24776
24777
24778 func (c *LiasettingsRequestgmbaccessCall) Fields(s ...googleapi.Field) *LiasettingsRequestgmbaccessCall {
24779 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24780 return c
24781 }
24782
24783
24784 func (c *LiasettingsRequestgmbaccessCall) Context(ctx context.Context) *LiasettingsRequestgmbaccessCall {
24785 c.ctx_ = ctx
24786 return c
24787 }
24788
24789
24790
24791 func (c *LiasettingsRequestgmbaccessCall) Header() http.Header {
24792 if c.header_ == nil {
24793 c.header_ = make(http.Header)
24794 }
24795 return c.header_
24796 }
24797
24798 func (c *LiasettingsRequestgmbaccessCall) doRequest(alt string) (*http.Response, error) {
24799 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24800 var body io.Reader = nil
24801 c.urlParams_.Set("alt", alt)
24802 c.urlParams_.Set("prettyPrint", "false")
24803 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/requestgmbaccess")
24804 urls += "?" + c.urlParams_.Encode()
24805 req, err := http.NewRequest("POST", urls, body)
24806 if err != nil {
24807 return nil, err
24808 }
24809 req.Header = reqHeaders
24810 googleapi.Expand(req.URL, map[string]string{
24811 "merchantId": strconv.FormatUint(c.merchantId, 10),
24812 "accountId": strconv.FormatUint(c.accountId, 10),
24813 })
24814 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24815 }
24816
24817
24818
24819
24820
24821
24822
24823 func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestGmbAccessResponse, error) {
24824 gensupport.SetOptions(c.urlParams_, opts...)
24825 res, err := c.doRequest("json")
24826 if res != nil && res.StatusCode == http.StatusNotModified {
24827 if res.Body != nil {
24828 res.Body.Close()
24829 }
24830 return nil, gensupport.WrapError(&googleapi.Error{
24831 Code: res.StatusCode,
24832 Header: res.Header,
24833 })
24834 }
24835 if err != nil {
24836 return nil, err
24837 }
24838 defer googleapi.CloseBody(res)
24839 if err := googleapi.CheckResponse(res); err != nil {
24840 return nil, gensupport.WrapError(err)
24841 }
24842 ret := &LiasettingsRequestGmbAccessResponse{
24843 ServerResponse: googleapi.ServerResponse{
24844 Header: res.Header,
24845 HTTPStatusCode: res.StatusCode,
24846 },
24847 }
24848 target := &ret
24849 if err := gensupport.DecodeResponse(target, res); err != nil {
24850 return nil, err
24851 }
24852 return ret, nil
24853 }
24854
24855 type LiasettingsRequestinventoryverificationCall struct {
24856 s *APIService
24857 merchantId uint64
24858 accountId uint64
24859 country string
24860 urlParams_ gensupport.URLParams
24861 ctx_ context.Context
24862 header_ http.Header
24863 }
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874 func (r *LiasettingsService) Requestinventoryverification(merchantId uint64, accountId uint64, country string) *LiasettingsRequestinventoryverificationCall {
24875 c := &LiasettingsRequestinventoryverificationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24876 c.merchantId = merchantId
24877 c.accountId = accountId
24878 c.country = country
24879 return c
24880 }
24881
24882
24883
24884
24885 func (c *LiasettingsRequestinventoryverificationCall) Fields(s ...googleapi.Field) *LiasettingsRequestinventoryverificationCall {
24886 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24887 return c
24888 }
24889
24890
24891 func (c *LiasettingsRequestinventoryverificationCall) Context(ctx context.Context) *LiasettingsRequestinventoryverificationCall {
24892 c.ctx_ = ctx
24893 return c
24894 }
24895
24896
24897
24898 func (c *LiasettingsRequestinventoryverificationCall) Header() http.Header {
24899 if c.header_ == nil {
24900 c.header_ = make(http.Header)
24901 }
24902 return c.header_
24903 }
24904
24905 func (c *LiasettingsRequestinventoryverificationCall) doRequest(alt string) (*http.Response, error) {
24906 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24907 var body io.Reader = nil
24908 c.urlParams_.Set("alt", alt)
24909 c.urlParams_.Set("prettyPrint", "false")
24910 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}")
24911 urls += "?" + c.urlParams_.Encode()
24912 req, err := http.NewRequest("POST", urls, body)
24913 if err != nil {
24914 return nil, err
24915 }
24916 req.Header = reqHeaders
24917 googleapi.Expand(req.URL, map[string]string{
24918 "merchantId": strconv.FormatUint(c.merchantId, 10),
24919 "accountId": strconv.FormatUint(c.accountId, 10),
24920 "country": c.country,
24921 })
24922 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24923 }
24924
24925
24926
24927
24928
24929
24930
24931 func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestInventoryVerificationResponse, error) {
24932 gensupport.SetOptions(c.urlParams_, opts...)
24933 res, err := c.doRequest("json")
24934 if res != nil && res.StatusCode == http.StatusNotModified {
24935 if res.Body != nil {
24936 res.Body.Close()
24937 }
24938 return nil, gensupport.WrapError(&googleapi.Error{
24939 Code: res.StatusCode,
24940 Header: res.Header,
24941 })
24942 }
24943 if err != nil {
24944 return nil, err
24945 }
24946 defer googleapi.CloseBody(res)
24947 if err := googleapi.CheckResponse(res); err != nil {
24948 return nil, gensupport.WrapError(err)
24949 }
24950 ret := &LiasettingsRequestInventoryVerificationResponse{
24951 ServerResponse: googleapi.ServerResponse{
24952 Header: res.Header,
24953 HTTPStatusCode: res.StatusCode,
24954 },
24955 }
24956 target := &ret
24957 if err := gensupport.DecodeResponse(target, res); err != nil {
24958 return nil, err
24959 }
24960 return ret, nil
24961 }
24962
24963 type LiasettingsSetinventoryverificationcontactCall struct {
24964 s *APIService
24965 merchantId uint64
24966 accountId uint64
24967 urlParams_ gensupport.URLParams
24968 ctx_ context.Context
24969 header_ http.Header
24970 }
24971
24972
24973
24974
24975
24976
24977
24978
24979
24980
24981
24982
24983
24984 func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64, country string, language string, contactName string, contactEmail string) *LiasettingsSetinventoryverificationcontactCall {
24985 c := &LiasettingsSetinventoryverificationcontactCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24986 c.merchantId = merchantId
24987 c.accountId = accountId
24988 c.urlParams_.Set("country", country)
24989 c.urlParams_.Set("language", language)
24990 c.urlParams_.Set("contactName", contactName)
24991 c.urlParams_.Set("contactEmail", contactEmail)
24992 return c
24993 }
24994
24995
24996
24997
24998 func (c *LiasettingsSetinventoryverificationcontactCall) Fields(s ...googleapi.Field) *LiasettingsSetinventoryverificationcontactCall {
24999 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25000 return c
25001 }
25002
25003
25004 func (c *LiasettingsSetinventoryverificationcontactCall) Context(ctx context.Context) *LiasettingsSetinventoryverificationcontactCall {
25005 c.ctx_ = ctx
25006 return c
25007 }
25008
25009
25010
25011 func (c *LiasettingsSetinventoryverificationcontactCall) Header() http.Header {
25012 if c.header_ == nil {
25013 c.header_ = make(http.Header)
25014 }
25015 return c.header_
25016 }
25017
25018 func (c *LiasettingsSetinventoryverificationcontactCall) doRequest(alt string) (*http.Response, error) {
25019 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25020 var body io.Reader = nil
25021 c.urlParams_.Set("alt", alt)
25022 c.urlParams_.Set("prettyPrint", "false")
25023 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/setinventoryverificationcontact")
25024 urls += "?" + c.urlParams_.Encode()
25025 req, err := http.NewRequest("POST", urls, body)
25026 if err != nil {
25027 return nil, err
25028 }
25029 req.Header = reqHeaders
25030 googleapi.Expand(req.URL, map[string]string{
25031 "merchantId": strconv.FormatUint(c.merchantId, 10),
25032 "accountId": strconv.FormatUint(c.accountId, 10),
25033 })
25034 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25035 }
25036
25037
25038
25039
25040
25041
25042
25043 func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetInventoryVerificationContactResponse, error) {
25044 gensupport.SetOptions(c.urlParams_, opts...)
25045 res, err := c.doRequest("json")
25046 if res != nil && res.StatusCode == http.StatusNotModified {
25047 if res.Body != nil {
25048 res.Body.Close()
25049 }
25050 return nil, gensupport.WrapError(&googleapi.Error{
25051 Code: res.StatusCode,
25052 Header: res.Header,
25053 })
25054 }
25055 if err != nil {
25056 return nil, err
25057 }
25058 defer googleapi.CloseBody(res)
25059 if err := googleapi.CheckResponse(res); err != nil {
25060 return nil, gensupport.WrapError(err)
25061 }
25062 ret := &LiasettingsSetInventoryVerificationContactResponse{
25063 ServerResponse: googleapi.ServerResponse{
25064 Header: res.Header,
25065 HTTPStatusCode: res.StatusCode,
25066 },
25067 }
25068 target := &ret
25069 if err := gensupport.DecodeResponse(target, res); err != nil {
25070 return nil, err
25071 }
25072 return ret, nil
25073 }
25074
25075 type LiasettingsSetomnichannelexperienceCall struct {
25076 s *APIService
25077 merchantId uint64
25078 accountId uint64
25079 urlParams_ gensupport.URLParams
25080 ctx_ context.Context
25081 header_ http.Header
25082 }
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096 func (r *LiasettingsService) Setomnichannelexperience(merchantId uint64, accountId uint64) *LiasettingsSetomnichannelexperienceCall {
25097 c := &LiasettingsSetomnichannelexperienceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25098 c.merchantId = merchantId
25099 c.accountId = accountId
25100 return c
25101 }
25102
25103
25104
25105 func (c *LiasettingsSetomnichannelexperienceCall) Country(country string) *LiasettingsSetomnichannelexperienceCall {
25106 c.urlParams_.Set("country", country)
25107 return c
25108 }
25109
25110
25111
25112
25113
25114
25115 func (c *LiasettingsSetomnichannelexperienceCall) LsfType(lsfType string) *LiasettingsSetomnichannelexperienceCall {
25116 c.urlParams_.Set("lsfType", lsfType)
25117 return c
25118 }
25119
25120
25121
25122 func (c *LiasettingsSetomnichannelexperienceCall) PickupTypes(pickupTypes ...string) *LiasettingsSetomnichannelexperienceCall {
25123 c.urlParams_.SetMulti("pickupTypes", append([]string{}, pickupTypes...))
25124 return c
25125 }
25126
25127
25128
25129
25130 func (c *LiasettingsSetomnichannelexperienceCall) Fields(s ...googleapi.Field) *LiasettingsSetomnichannelexperienceCall {
25131 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25132 return c
25133 }
25134
25135
25136 func (c *LiasettingsSetomnichannelexperienceCall) Context(ctx context.Context) *LiasettingsSetomnichannelexperienceCall {
25137 c.ctx_ = ctx
25138 return c
25139 }
25140
25141
25142
25143 func (c *LiasettingsSetomnichannelexperienceCall) Header() http.Header {
25144 if c.header_ == nil {
25145 c.header_ = make(http.Header)
25146 }
25147 return c.header_
25148 }
25149
25150 func (c *LiasettingsSetomnichannelexperienceCall) doRequest(alt string) (*http.Response, error) {
25151 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25152 var body io.Reader = nil
25153 c.urlParams_.Set("alt", alt)
25154 c.urlParams_.Set("prettyPrint", "false")
25155 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/setomnichannelexperience")
25156 urls += "?" + c.urlParams_.Encode()
25157 req, err := http.NewRequest("POST", urls, body)
25158 if err != nil {
25159 return nil, err
25160 }
25161 req.Header = reqHeaders
25162 googleapi.Expand(req.URL, map[string]string{
25163 "merchantId": strconv.FormatUint(c.merchantId, 10),
25164 "accountId": strconv.FormatUint(c.accountId, 10),
25165 })
25166 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25167 }
25168
25169
25170
25171
25172
25173
25174
25175 func (c *LiasettingsSetomnichannelexperienceCall) Do(opts ...googleapi.CallOption) (*LiaOmnichannelExperience, error) {
25176 gensupport.SetOptions(c.urlParams_, opts...)
25177 res, err := c.doRequest("json")
25178 if res != nil && res.StatusCode == http.StatusNotModified {
25179 if res.Body != nil {
25180 res.Body.Close()
25181 }
25182 return nil, gensupport.WrapError(&googleapi.Error{
25183 Code: res.StatusCode,
25184 Header: res.Header,
25185 })
25186 }
25187 if err != nil {
25188 return nil, err
25189 }
25190 defer googleapi.CloseBody(res)
25191 if err := googleapi.CheckResponse(res); err != nil {
25192 return nil, gensupport.WrapError(err)
25193 }
25194 ret := &LiaOmnichannelExperience{
25195 ServerResponse: googleapi.ServerResponse{
25196 Header: res.Header,
25197 HTTPStatusCode: res.StatusCode,
25198 },
25199 }
25200 target := &ret
25201 if err := gensupport.DecodeResponse(target, res); err != nil {
25202 return nil, err
25203 }
25204 return ret, nil
25205 }
25206
25207 type LiasettingsSetposdataproviderCall struct {
25208 s *APIService
25209 merchantId uint64
25210 accountId uint64
25211 urlParams_ gensupport.URLParams
25212 ctx_ context.Context
25213 header_ http.Header
25214 }
25215
25216
25217
25218
25219
25220
25221
25222
25223
25224 func (r *LiasettingsService) Setposdataprovider(merchantId uint64, accountId uint64, country string) *LiasettingsSetposdataproviderCall {
25225 c := &LiasettingsSetposdataproviderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25226 c.merchantId = merchantId
25227 c.accountId = accountId
25228 c.urlParams_.Set("country", country)
25229 return c
25230 }
25231
25232
25233
25234 func (c *LiasettingsSetposdataproviderCall) PosDataProviderId(posDataProviderId uint64) *LiasettingsSetposdataproviderCall {
25235 c.urlParams_.Set("posDataProviderId", fmt.Sprint(posDataProviderId))
25236 return c
25237 }
25238
25239
25240
25241 func (c *LiasettingsSetposdataproviderCall) PosExternalAccountId(posExternalAccountId string) *LiasettingsSetposdataproviderCall {
25242 c.urlParams_.Set("posExternalAccountId", posExternalAccountId)
25243 return c
25244 }
25245
25246
25247
25248
25249 func (c *LiasettingsSetposdataproviderCall) Fields(s ...googleapi.Field) *LiasettingsSetposdataproviderCall {
25250 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25251 return c
25252 }
25253
25254
25255 func (c *LiasettingsSetposdataproviderCall) Context(ctx context.Context) *LiasettingsSetposdataproviderCall {
25256 c.ctx_ = ctx
25257 return c
25258 }
25259
25260
25261
25262 func (c *LiasettingsSetposdataproviderCall) Header() http.Header {
25263 if c.header_ == nil {
25264 c.header_ = make(http.Header)
25265 }
25266 return c.header_
25267 }
25268
25269 func (c *LiasettingsSetposdataproviderCall) doRequest(alt string) (*http.Response, error) {
25270 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25271 var body io.Reader = nil
25272 c.urlParams_.Set("alt", alt)
25273 c.urlParams_.Set("prettyPrint", "false")
25274 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/setposdataprovider")
25275 urls += "?" + c.urlParams_.Encode()
25276 req, err := http.NewRequest("POST", urls, body)
25277 if err != nil {
25278 return nil, err
25279 }
25280 req.Header = reqHeaders
25281 googleapi.Expand(req.URL, map[string]string{
25282 "merchantId": strconv.FormatUint(c.merchantId, 10),
25283 "accountId": strconv.FormatUint(c.accountId, 10),
25284 })
25285 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25286 }
25287
25288
25289
25290
25291
25292
25293
25294 func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetPosDataProviderResponse, error) {
25295 gensupport.SetOptions(c.urlParams_, opts...)
25296 res, err := c.doRequest("json")
25297 if res != nil && res.StatusCode == http.StatusNotModified {
25298 if res.Body != nil {
25299 res.Body.Close()
25300 }
25301 return nil, gensupport.WrapError(&googleapi.Error{
25302 Code: res.StatusCode,
25303 Header: res.Header,
25304 })
25305 }
25306 if err != nil {
25307 return nil, err
25308 }
25309 defer googleapi.CloseBody(res)
25310 if err := googleapi.CheckResponse(res); err != nil {
25311 return nil, gensupport.WrapError(err)
25312 }
25313 ret := &LiasettingsSetPosDataProviderResponse{
25314 ServerResponse: googleapi.ServerResponse{
25315 Header: res.Header,
25316 HTTPStatusCode: res.StatusCode,
25317 },
25318 }
25319 target := &ret
25320 if err := gensupport.DecodeResponse(target, res); err != nil {
25321 return nil, err
25322 }
25323 return ret, nil
25324 }
25325
25326 type LiasettingsUpdateCall struct {
25327 s *APIService
25328 merchantId uint64
25329 accountId uint64
25330 liasettings *LiaSettings
25331 urlParams_ gensupport.URLParams
25332 ctx_ context.Context
25333 header_ http.Header
25334 }
25335
25336
25337
25338
25339
25340
25341
25342
25343 func (r *LiasettingsService) Update(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsUpdateCall {
25344 c := &LiasettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25345 c.merchantId = merchantId
25346 c.accountId = accountId
25347 c.liasettings = liasettings
25348 return c
25349 }
25350
25351
25352
25353
25354 func (c *LiasettingsUpdateCall) Fields(s ...googleapi.Field) *LiasettingsUpdateCall {
25355 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25356 return c
25357 }
25358
25359
25360 func (c *LiasettingsUpdateCall) Context(ctx context.Context) *LiasettingsUpdateCall {
25361 c.ctx_ = ctx
25362 return c
25363 }
25364
25365
25366
25367 func (c *LiasettingsUpdateCall) Header() http.Header {
25368 if c.header_ == nil {
25369 c.header_ = make(http.Header)
25370 }
25371 return c.header_
25372 }
25373
25374 func (c *LiasettingsUpdateCall) doRequest(alt string) (*http.Response, error) {
25375 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25376 var body io.Reader = nil
25377 body, err := googleapi.WithoutDataWrapper.JSONReader(c.liasettings)
25378 if err != nil {
25379 return nil, err
25380 }
25381 c.urlParams_.Set("alt", alt)
25382 c.urlParams_.Set("prettyPrint", "false")
25383 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}")
25384 urls += "?" + c.urlParams_.Encode()
25385 req, err := http.NewRequest("PUT", urls, body)
25386 if err != nil {
25387 return nil, err
25388 }
25389 req.Header = reqHeaders
25390 googleapi.Expand(req.URL, map[string]string{
25391 "merchantId": strconv.FormatUint(c.merchantId, 10),
25392 "accountId": strconv.FormatUint(c.accountId, 10),
25393 })
25394 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25395 }
25396
25397
25398
25399
25400
25401
25402 func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error) {
25403 gensupport.SetOptions(c.urlParams_, opts...)
25404 res, err := c.doRequest("json")
25405 if res != nil && res.StatusCode == http.StatusNotModified {
25406 if res.Body != nil {
25407 res.Body.Close()
25408 }
25409 return nil, gensupport.WrapError(&googleapi.Error{
25410 Code: res.StatusCode,
25411 Header: res.Header,
25412 })
25413 }
25414 if err != nil {
25415 return nil, err
25416 }
25417 defer googleapi.CloseBody(res)
25418 if err := googleapi.CheckResponse(res); err != nil {
25419 return nil, gensupport.WrapError(err)
25420 }
25421 ret := &LiaSettings{
25422 ServerResponse: googleapi.ServerResponse{
25423 Header: res.Header,
25424 HTTPStatusCode: res.StatusCode,
25425 },
25426 }
25427 target := &ret
25428 if err := gensupport.DecodeResponse(target, res); err != nil {
25429 return nil, err
25430 }
25431 return ret, nil
25432 }
25433
25434 type LocalinventoryCustombatchCall struct {
25435 s *APIService
25436 localinventorycustombatchrequest *LocalinventoryCustomBatchRequest
25437 urlParams_ gensupport.URLParams
25438 ctx_ context.Context
25439 header_ http.Header
25440 }
25441
25442
25443
25444 func (r *LocalinventoryService) Custombatch(localinventorycustombatchrequest *LocalinventoryCustomBatchRequest) *LocalinventoryCustombatchCall {
25445 c := &LocalinventoryCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25446 c.localinventorycustombatchrequest = localinventorycustombatchrequest
25447 return c
25448 }
25449
25450
25451
25452
25453 func (c *LocalinventoryCustombatchCall) Fields(s ...googleapi.Field) *LocalinventoryCustombatchCall {
25454 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25455 return c
25456 }
25457
25458
25459 func (c *LocalinventoryCustombatchCall) Context(ctx context.Context) *LocalinventoryCustombatchCall {
25460 c.ctx_ = ctx
25461 return c
25462 }
25463
25464
25465
25466 func (c *LocalinventoryCustombatchCall) Header() http.Header {
25467 if c.header_ == nil {
25468 c.header_ = make(http.Header)
25469 }
25470 return c.header_
25471 }
25472
25473 func (c *LocalinventoryCustombatchCall) doRequest(alt string) (*http.Response, error) {
25474 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25475 var body io.Reader = nil
25476 body, err := googleapi.WithoutDataWrapper.JSONReader(c.localinventorycustombatchrequest)
25477 if err != nil {
25478 return nil, err
25479 }
25480 c.urlParams_.Set("alt", alt)
25481 c.urlParams_.Set("prettyPrint", "false")
25482 urls := googleapi.ResolveRelative(c.s.BasePath, "localinventory/batch")
25483 urls += "?" + c.urlParams_.Encode()
25484 req, err := http.NewRequest("POST", urls, body)
25485 if err != nil {
25486 return nil, err
25487 }
25488 req.Header = reqHeaders
25489 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25490 }
25491
25492
25493
25494
25495
25496
25497
25498 func (c *LocalinventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*LocalinventoryCustomBatchResponse, error) {
25499 gensupport.SetOptions(c.urlParams_, opts...)
25500 res, err := c.doRequest("json")
25501 if res != nil && res.StatusCode == http.StatusNotModified {
25502 if res.Body != nil {
25503 res.Body.Close()
25504 }
25505 return nil, gensupport.WrapError(&googleapi.Error{
25506 Code: res.StatusCode,
25507 Header: res.Header,
25508 })
25509 }
25510 if err != nil {
25511 return nil, err
25512 }
25513 defer googleapi.CloseBody(res)
25514 if err := googleapi.CheckResponse(res); err != nil {
25515 return nil, gensupport.WrapError(err)
25516 }
25517 ret := &LocalinventoryCustomBatchResponse{
25518 ServerResponse: googleapi.ServerResponse{
25519 Header: res.Header,
25520 HTTPStatusCode: res.StatusCode,
25521 },
25522 }
25523 target := &ret
25524 if err := gensupport.DecodeResponse(target, res); err != nil {
25525 return nil, err
25526 }
25527 return ret, nil
25528 }
25529
25530 type LocalinventoryInsertCall struct {
25531 s *APIService
25532 merchantId uint64
25533 productId string
25534 localinventory *LocalInventory
25535 urlParams_ gensupport.URLParams
25536 ctx_ context.Context
25537 header_ http.Header
25538 }
25539
25540
25541
25542
25543
25544
25545
25546 func (r *LocalinventoryService) Insert(merchantId uint64, productId string, localinventory *LocalInventory) *LocalinventoryInsertCall {
25547 c := &LocalinventoryInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25548 c.merchantId = merchantId
25549 c.productId = productId
25550 c.localinventory = localinventory
25551 return c
25552 }
25553
25554
25555
25556
25557 func (c *LocalinventoryInsertCall) Fields(s ...googleapi.Field) *LocalinventoryInsertCall {
25558 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25559 return c
25560 }
25561
25562
25563 func (c *LocalinventoryInsertCall) Context(ctx context.Context) *LocalinventoryInsertCall {
25564 c.ctx_ = ctx
25565 return c
25566 }
25567
25568
25569
25570 func (c *LocalinventoryInsertCall) Header() http.Header {
25571 if c.header_ == nil {
25572 c.header_ = make(http.Header)
25573 }
25574 return c.header_
25575 }
25576
25577 func (c *LocalinventoryInsertCall) doRequest(alt string) (*http.Response, error) {
25578 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25579 var body io.Reader = nil
25580 body, err := googleapi.WithoutDataWrapper.JSONReader(c.localinventory)
25581 if err != nil {
25582 return nil, err
25583 }
25584 c.urlParams_.Set("alt", alt)
25585 c.urlParams_.Set("prettyPrint", "false")
25586 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}/localinventory")
25587 urls += "?" + c.urlParams_.Encode()
25588 req, err := http.NewRequest("POST", urls, body)
25589 if err != nil {
25590 return nil, err
25591 }
25592 req.Header = reqHeaders
25593 googleapi.Expand(req.URL, map[string]string{
25594 "merchantId": strconv.FormatUint(c.merchantId, 10),
25595 "productId": c.productId,
25596 })
25597 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25598 }
25599
25600
25601
25602
25603
25604
25605 func (c *LocalinventoryInsertCall) Do(opts ...googleapi.CallOption) (*LocalInventory, error) {
25606 gensupport.SetOptions(c.urlParams_, opts...)
25607 res, err := c.doRequest("json")
25608 if res != nil && res.StatusCode == http.StatusNotModified {
25609 if res.Body != nil {
25610 res.Body.Close()
25611 }
25612 return nil, gensupport.WrapError(&googleapi.Error{
25613 Code: res.StatusCode,
25614 Header: res.Header,
25615 })
25616 }
25617 if err != nil {
25618 return nil, err
25619 }
25620 defer googleapi.CloseBody(res)
25621 if err := googleapi.CheckResponse(res); err != nil {
25622 return nil, gensupport.WrapError(err)
25623 }
25624 ret := &LocalInventory{
25625 ServerResponse: googleapi.ServerResponse{
25626 Header: res.Header,
25627 HTTPStatusCode: res.StatusCode,
25628 },
25629 }
25630 target := &ret
25631 if err := gensupport.DecodeResponse(target, res); err != nil {
25632 return nil, err
25633 }
25634 return ret, nil
25635 }
25636
25637 type MerchantsupportRenderaccountissuesCall struct {
25638 s *APIService
25639 merchantId int64
25640 renderaccountissuesrequestpayload *RenderAccountIssuesRequestPayload
25641 urlParams_ gensupport.URLParams
25642 ctx_ context.Context
25643 header_ http.Header
25644 }
25645
25646
25647
25648
25649
25650
25651 func (r *MerchantsupportService) Renderaccountissues(merchantId int64, renderaccountissuesrequestpayload *RenderAccountIssuesRequestPayload) *MerchantsupportRenderaccountissuesCall {
25652 c := &MerchantsupportRenderaccountissuesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25653 c.merchantId = merchantId
25654 c.renderaccountissuesrequestpayload = renderaccountissuesrequestpayload
25655 return c
25656 }
25657
25658
25659
25660
25661 func (c *MerchantsupportRenderaccountissuesCall) LanguageCode(languageCode string) *MerchantsupportRenderaccountissuesCall {
25662 c.urlParams_.Set("languageCode", languageCode)
25663 return c
25664 }
25665
25666
25667
25668
25669
25670 func (c *MerchantsupportRenderaccountissuesCall) TimeZone(timeZone string) *MerchantsupportRenderaccountissuesCall {
25671 c.urlParams_.Set("timeZone", timeZone)
25672 return c
25673 }
25674
25675
25676
25677
25678 func (c *MerchantsupportRenderaccountissuesCall) Fields(s ...googleapi.Field) *MerchantsupportRenderaccountissuesCall {
25679 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25680 return c
25681 }
25682
25683
25684 func (c *MerchantsupportRenderaccountissuesCall) Context(ctx context.Context) *MerchantsupportRenderaccountissuesCall {
25685 c.ctx_ = ctx
25686 return c
25687 }
25688
25689
25690
25691 func (c *MerchantsupportRenderaccountissuesCall) Header() http.Header {
25692 if c.header_ == nil {
25693 c.header_ = make(http.Header)
25694 }
25695 return c.header_
25696 }
25697
25698 func (c *MerchantsupportRenderaccountissuesCall) doRequest(alt string) (*http.Response, error) {
25699 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25700 var body io.Reader = nil
25701 body, err := googleapi.WithoutDataWrapper.JSONReader(c.renderaccountissuesrequestpayload)
25702 if err != nil {
25703 return nil, err
25704 }
25705 c.urlParams_.Set("alt", alt)
25706 c.urlParams_.Set("prettyPrint", "false")
25707 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/merchantsupport/renderaccountissues")
25708 urls += "?" + c.urlParams_.Encode()
25709 req, err := http.NewRequest("POST", urls, body)
25710 if err != nil {
25711 return nil, err
25712 }
25713 req.Header = reqHeaders
25714 googleapi.Expand(req.URL, map[string]string{
25715 "merchantId": strconv.FormatInt(c.merchantId, 10),
25716 })
25717 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25718 }
25719
25720
25721
25722
25723
25724
25725
25726 func (c *MerchantsupportRenderaccountissuesCall) Do(opts ...googleapi.CallOption) (*RenderAccountIssuesResponse, error) {
25727 gensupport.SetOptions(c.urlParams_, opts...)
25728 res, err := c.doRequest("json")
25729 if res != nil && res.StatusCode == http.StatusNotModified {
25730 if res.Body != nil {
25731 res.Body.Close()
25732 }
25733 return nil, gensupport.WrapError(&googleapi.Error{
25734 Code: res.StatusCode,
25735 Header: res.Header,
25736 })
25737 }
25738 if err != nil {
25739 return nil, err
25740 }
25741 defer googleapi.CloseBody(res)
25742 if err := googleapi.CheckResponse(res); err != nil {
25743 return nil, gensupport.WrapError(err)
25744 }
25745 ret := &RenderAccountIssuesResponse{
25746 ServerResponse: googleapi.ServerResponse{
25747 Header: res.Header,
25748 HTTPStatusCode: res.StatusCode,
25749 },
25750 }
25751 target := &ret
25752 if err := gensupport.DecodeResponse(target, res); err != nil {
25753 return nil, err
25754 }
25755 return ret, nil
25756 }
25757
25758 type MerchantsupportRenderproductissuesCall struct {
25759 s *APIService
25760 merchantId int64
25761 productId string
25762 renderproductissuesrequestpayload *RenderProductIssuesRequestPayload
25763 urlParams_ gensupport.URLParams
25764 ctx_ context.Context
25765 header_ http.Header
25766 }
25767
25768
25769
25770
25771
25772
25773
25774
25775
25776 func (r *MerchantsupportService) Renderproductissues(merchantId int64, productId string, renderproductissuesrequestpayload *RenderProductIssuesRequestPayload) *MerchantsupportRenderproductissuesCall {
25777 c := &MerchantsupportRenderproductissuesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25778 c.merchantId = merchantId
25779 c.productId = productId
25780 c.renderproductissuesrequestpayload = renderproductissuesrequestpayload
25781 return c
25782 }
25783
25784
25785
25786
25787 func (c *MerchantsupportRenderproductissuesCall) LanguageCode(languageCode string) *MerchantsupportRenderproductissuesCall {
25788 c.urlParams_.Set("languageCode", languageCode)
25789 return c
25790 }
25791
25792
25793
25794
25795
25796 func (c *MerchantsupportRenderproductissuesCall) TimeZone(timeZone string) *MerchantsupportRenderproductissuesCall {
25797 c.urlParams_.Set("timeZone", timeZone)
25798 return c
25799 }
25800
25801
25802
25803
25804 func (c *MerchantsupportRenderproductissuesCall) Fields(s ...googleapi.Field) *MerchantsupportRenderproductissuesCall {
25805 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25806 return c
25807 }
25808
25809
25810 func (c *MerchantsupportRenderproductissuesCall) Context(ctx context.Context) *MerchantsupportRenderproductissuesCall {
25811 c.ctx_ = ctx
25812 return c
25813 }
25814
25815
25816
25817 func (c *MerchantsupportRenderproductissuesCall) Header() http.Header {
25818 if c.header_ == nil {
25819 c.header_ = make(http.Header)
25820 }
25821 return c.header_
25822 }
25823
25824 func (c *MerchantsupportRenderproductissuesCall) doRequest(alt string) (*http.Response, error) {
25825 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25826 var body io.Reader = nil
25827 body, err := googleapi.WithoutDataWrapper.JSONReader(c.renderproductissuesrequestpayload)
25828 if err != nil {
25829 return nil, err
25830 }
25831 c.urlParams_.Set("alt", alt)
25832 c.urlParams_.Set("prettyPrint", "false")
25833 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/merchantsupport/renderproductissues/{productId}")
25834 urls += "?" + c.urlParams_.Encode()
25835 req, err := http.NewRequest("POST", urls, body)
25836 if err != nil {
25837 return nil, err
25838 }
25839 req.Header = reqHeaders
25840 googleapi.Expand(req.URL, map[string]string{
25841 "merchantId": strconv.FormatInt(c.merchantId, 10),
25842 "productId": c.productId,
25843 })
25844 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25845 }
25846
25847
25848
25849
25850
25851
25852
25853 func (c *MerchantsupportRenderproductissuesCall) Do(opts ...googleapi.CallOption) (*RenderProductIssuesResponse, error) {
25854 gensupport.SetOptions(c.urlParams_, opts...)
25855 res, err := c.doRequest("json")
25856 if res != nil && res.StatusCode == http.StatusNotModified {
25857 if res.Body != nil {
25858 res.Body.Close()
25859 }
25860 return nil, gensupport.WrapError(&googleapi.Error{
25861 Code: res.StatusCode,
25862 Header: res.Header,
25863 })
25864 }
25865 if err != nil {
25866 return nil, err
25867 }
25868 defer googleapi.CloseBody(res)
25869 if err := googleapi.CheckResponse(res); err != nil {
25870 return nil, gensupport.WrapError(err)
25871 }
25872 ret := &RenderProductIssuesResponse{
25873 ServerResponse: googleapi.ServerResponse{
25874 Header: res.Header,
25875 HTTPStatusCode: res.StatusCode,
25876 },
25877 }
25878 target := &ret
25879 if err := gensupport.DecodeResponse(target, res); err != nil {
25880 return nil, err
25881 }
25882 return ret, nil
25883 }
25884
25885 type MerchantsupportTriggeractionCall struct {
25886 s *APIService
25887 merchantId int64
25888 triggeractionpayload *TriggerActionPayload
25889 urlParams_ gensupport.URLParams
25890 ctx_ context.Context
25891 header_ http.Header
25892 }
25893
25894
25895
25896
25897
25898
25899
25900
25901
25902
25903
25904 func (r *MerchantsupportService) Triggeraction(merchantId int64, triggeractionpayload *TriggerActionPayload) *MerchantsupportTriggeractionCall {
25905 c := &MerchantsupportTriggeractionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25906 c.merchantId = merchantId
25907 c.triggeractionpayload = triggeractionpayload
25908 return c
25909 }
25910
25911
25912
25913
25914 func (c *MerchantsupportTriggeractionCall) LanguageCode(languageCode string) *MerchantsupportTriggeractionCall {
25915 c.urlParams_.Set("languageCode", languageCode)
25916 return c
25917 }
25918
25919
25920
25921
25922 func (c *MerchantsupportTriggeractionCall) Fields(s ...googleapi.Field) *MerchantsupportTriggeractionCall {
25923 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25924 return c
25925 }
25926
25927
25928 func (c *MerchantsupportTriggeractionCall) Context(ctx context.Context) *MerchantsupportTriggeractionCall {
25929 c.ctx_ = ctx
25930 return c
25931 }
25932
25933
25934
25935 func (c *MerchantsupportTriggeractionCall) Header() http.Header {
25936 if c.header_ == nil {
25937 c.header_ = make(http.Header)
25938 }
25939 return c.header_
25940 }
25941
25942 func (c *MerchantsupportTriggeractionCall) doRequest(alt string) (*http.Response, error) {
25943 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25944 var body io.Reader = nil
25945 body, err := googleapi.WithoutDataWrapper.JSONReader(c.triggeractionpayload)
25946 if err != nil {
25947 return nil, err
25948 }
25949 c.urlParams_.Set("alt", alt)
25950 c.urlParams_.Set("prettyPrint", "false")
25951 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/merchantsupport/triggeraction")
25952 urls += "?" + c.urlParams_.Encode()
25953 req, err := http.NewRequest("POST", urls, body)
25954 if err != nil {
25955 return nil, err
25956 }
25957 req.Header = reqHeaders
25958 googleapi.Expand(req.URL, map[string]string{
25959 "merchantId": strconv.FormatInt(c.merchantId, 10),
25960 })
25961 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25962 }
25963
25964
25965
25966
25967
25968
25969
25970 func (c *MerchantsupportTriggeractionCall) Do(opts ...googleapi.CallOption) (*TriggerActionResponse, error) {
25971 gensupport.SetOptions(c.urlParams_, opts...)
25972 res, err := c.doRequest("json")
25973 if res != nil && res.StatusCode == http.StatusNotModified {
25974 if res.Body != nil {
25975 res.Body.Close()
25976 }
25977 return nil, gensupport.WrapError(&googleapi.Error{
25978 Code: res.StatusCode,
25979 Header: res.Header,
25980 })
25981 }
25982 if err != nil {
25983 return nil, err
25984 }
25985 defer googleapi.CloseBody(res)
25986 if err := googleapi.CheckResponse(res); err != nil {
25987 return nil, gensupport.WrapError(err)
25988 }
25989 ret := &TriggerActionResponse{
25990 ServerResponse: googleapi.ServerResponse{
25991 Header: res.Header,
25992 HTTPStatusCode: res.StatusCode,
25993 },
25994 }
25995 target := &ret
25996 if err := gensupport.DecodeResponse(target, res); err != nil {
25997 return nil, err
25998 }
25999 return ret, nil
26000 }
26001
26002 type OrderinvoicesCreatechargeinvoiceCall struct {
26003 s *APIService
26004 merchantId uint64
26005 orderId string
26006 orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest
26007 urlParams_ gensupport.URLParams
26008 ctx_ context.Context
26009 header_ http.Header
26010 }
26011
26012
26013
26014
26015
26016
26017
26018 func (r *OrderinvoicesService) Createchargeinvoice(merchantId uint64, orderId string, orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest) *OrderinvoicesCreatechargeinvoiceCall {
26019 c := &OrderinvoicesCreatechargeinvoiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26020 c.merchantId = merchantId
26021 c.orderId = orderId
26022 c.orderinvoicescreatechargeinvoicerequest = orderinvoicescreatechargeinvoicerequest
26023 return c
26024 }
26025
26026
26027
26028
26029 func (c *OrderinvoicesCreatechargeinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreatechargeinvoiceCall {
26030 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26031 return c
26032 }
26033
26034
26035 func (c *OrderinvoicesCreatechargeinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreatechargeinvoiceCall {
26036 c.ctx_ = ctx
26037 return c
26038 }
26039
26040
26041
26042 func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header {
26043 if c.header_ == nil {
26044 c.header_ = make(http.Header)
26045 }
26046 return c.header_
26047 }
26048
26049 func (c *OrderinvoicesCreatechargeinvoiceCall) doRequest(alt string) (*http.Response, error) {
26050 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26051 var body io.Reader = nil
26052 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderinvoicescreatechargeinvoicerequest)
26053 if err != nil {
26054 return nil, err
26055 }
26056 c.urlParams_.Set("alt", alt)
26057 c.urlParams_.Set("prettyPrint", "false")
26058 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createChargeInvoice")
26059 urls += "?" + c.urlParams_.Encode()
26060 req, err := http.NewRequest("POST", urls, body)
26061 if err != nil {
26062 return nil, err
26063 }
26064 req.Header = reqHeaders
26065 googleapi.Expand(req.URL, map[string]string{
26066 "merchantId": strconv.FormatUint(c.merchantId, 10),
26067 "orderId": c.orderId,
26068 })
26069 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26070 }
26071
26072
26073
26074
26075
26076
26077
26078 func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateChargeInvoiceResponse, error) {
26079 gensupport.SetOptions(c.urlParams_, opts...)
26080 res, err := c.doRequest("json")
26081 if res != nil && res.StatusCode == http.StatusNotModified {
26082 if res.Body != nil {
26083 res.Body.Close()
26084 }
26085 return nil, gensupport.WrapError(&googleapi.Error{
26086 Code: res.StatusCode,
26087 Header: res.Header,
26088 })
26089 }
26090 if err != nil {
26091 return nil, err
26092 }
26093 defer googleapi.CloseBody(res)
26094 if err := googleapi.CheckResponse(res); err != nil {
26095 return nil, gensupport.WrapError(err)
26096 }
26097 ret := &OrderinvoicesCreateChargeInvoiceResponse{
26098 ServerResponse: googleapi.ServerResponse{
26099 Header: res.Header,
26100 HTTPStatusCode: res.StatusCode,
26101 },
26102 }
26103 target := &ret
26104 if err := gensupport.DecodeResponse(target, res); err != nil {
26105 return nil, err
26106 }
26107 return ret, nil
26108 }
26109
26110 type OrderinvoicesCreaterefundinvoiceCall struct {
26111 s *APIService
26112 merchantId uint64
26113 orderId string
26114 orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest
26115 urlParams_ gensupport.URLParams
26116 ctx_ context.Context
26117 header_ http.Header
26118 }
26119
26120
26121
26122
26123
26124
26125
26126
26127
26128
26129 func (r *OrderinvoicesService) Createrefundinvoice(merchantId uint64, orderId string, orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest) *OrderinvoicesCreaterefundinvoiceCall {
26130 c := &OrderinvoicesCreaterefundinvoiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26131 c.merchantId = merchantId
26132 c.orderId = orderId
26133 c.orderinvoicescreaterefundinvoicerequest = orderinvoicescreaterefundinvoicerequest
26134 return c
26135 }
26136
26137
26138
26139
26140 func (c *OrderinvoicesCreaterefundinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreaterefundinvoiceCall {
26141 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26142 return c
26143 }
26144
26145
26146 func (c *OrderinvoicesCreaterefundinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreaterefundinvoiceCall {
26147 c.ctx_ = ctx
26148 return c
26149 }
26150
26151
26152
26153 func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header {
26154 if c.header_ == nil {
26155 c.header_ = make(http.Header)
26156 }
26157 return c.header_
26158 }
26159
26160 func (c *OrderinvoicesCreaterefundinvoiceCall) doRequest(alt string) (*http.Response, error) {
26161 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26162 var body io.Reader = nil
26163 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderinvoicescreaterefundinvoicerequest)
26164 if err != nil {
26165 return nil, err
26166 }
26167 c.urlParams_.Set("alt", alt)
26168 c.urlParams_.Set("prettyPrint", "false")
26169 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createRefundInvoice")
26170 urls += "?" + c.urlParams_.Encode()
26171 req, err := http.NewRequest("POST", urls, body)
26172 if err != nil {
26173 return nil, err
26174 }
26175 req.Header = reqHeaders
26176 googleapi.Expand(req.URL, map[string]string{
26177 "merchantId": strconv.FormatUint(c.merchantId, 10),
26178 "orderId": c.orderId,
26179 })
26180 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26181 }
26182
26183
26184
26185
26186
26187
26188
26189 func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateRefundInvoiceResponse, error) {
26190 gensupport.SetOptions(c.urlParams_, opts...)
26191 res, err := c.doRequest("json")
26192 if res != nil && res.StatusCode == http.StatusNotModified {
26193 if res.Body != nil {
26194 res.Body.Close()
26195 }
26196 return nil, gensupport.WrapError(&googleapi.Error{
26197 Code: res.StatusCode,
26198 Header: res.Header,
26199 })
26200 }
26201 if err != nil {
26202 return nil, err
26203 }
26204 defer googleapi.CloseBody(res)
26205 if err := googleapi.CheckResponse(res); err != nil {
26206 return nil, gensupport.WrapError(err)
26207 }
26208 ret := &OrderinvoicesCreateRefundInvoiceResponse{
26209 ServerResponse: googleapi.ServerResponse{
26210 Header: res.Header,
26211 HTTPStatusCode: res.StatusCode,
26212 },
26213 }
26214 target := &ret
26215 if err := gensupport.DecodeResponse(target, res); err != nil {
26216 return nil, err
26217 }
26218 return ret, nil
26219 }
26220
26221 type OrderreportsListdisbursementsCall struct {
26222 s *APIService
26223 merchantId uint64
26224 urlParams_ gensupport.URLParams
26225 ifNoneMatch_ string
26226 ctx_ context.Context
26227 header_ http.Header
26228 }
26229
26230
26231
26232
26233
26234
26235 func (r *OrderreportsService) Listdisbursements(merchantId uint64) *OrderreportsListdisbursementsCall {
26236 c := &OrderreportsListdisbursementsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26237 c.merchantId = merchantId
26238 return c
26239 }
26240
26241
26242
26243
26244 func (c *OrderreportsListdisbursementsCall) DisbursementEndDate(disbursementEndDate string) *OrderreportsListdisbursementsCall {
26245 c.urlParams_.Set("disbursementEndDate", disbursementEndDate)
26246 return c
26247 }
26248
26249
26250
26251 func (c *OrderreportsListdisbursementsCall) DisbursementStartDate(disbursementStartDate string) *OrderreportsListdisbursementsCall {
26252 c.urlParams_.Set("disbursementStartDate", disbursementStartDate)
26253 return c
26254 }
26255
26256
26257
26258 func (c *OrderreportsListdisbursementsCall) MaxResults(maxResults int64) *OrderreportsListdisbursementsCall {
26259 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
26260 return c
26261 }
26262
26263
26264
26265 func (c *OrderreportsListdisbursementsCall) PageToken(pageToken string) *OrderreportsListdisbursementsCall {
26266 c.urlParams_.Set("pageToken", pageToken)
26267 return c
26268 }
26269
26270
26271
26272
26273 func (c *OrderreportsListdisbursementsCall) Fields(s ...googleapi.Field) *OrderreportsListdisbursementsCall {
26274 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26275 return c
26276 }
26277
26278
26279
26280
26281 func (c *OrderreportsListdisbursementsCall) IfNoneMatch(entityTag string) *OrderreportsListdisbursementsCall {
26282 c.ifNoneMatch_ = entityTag
26283 return c
26284 }
26285
26286
26287 func (c *OrderreportsListdisbursementsCall) Context(ctx context.Context) *OrderreportsListdisbursementsCall {
26288 c.ctx_ = ctx
26289 return c
26290 }
26291
26292
26293
26294 func (c *OrderreportsListdisbursementsCall) Header() http.Header {
26295 if c.header_ == nil {
26296 c.header_ = make(http.Header)
26297 }
26298 return c.header_
26299 }
26300
26301 func (c *OrderreportsListdisbursementsCall) doRequest(alt string) (*http.Response, error) {
26302 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26303 if c.ifNoneMatch_ != "" {
26304 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26305 }
26306 var body io.Reader = nil
26307 c.urlParams_.Set("alt", alt)
26308 c.urlParams_.Set("prettyPrint", "false")
26309 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreports/disbursements")
26310 urls += "?" + c.urlParams_.Encode()
26311 req, err := http.NewRequest("GET", urls, body)
26312 if err != nil {
26313 return nil, err
26314 }
26315 req.Header = reqHeaders
26316 googleapi.Expand(req.URL, map[string]string{
26317 "merchantId": strconv.FormatUint(c.merchantId, 10),
26318 })
26319 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26320 }
26321
26322
26323
26324
26325
26326
26327
26328 func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*OrderreportsListDisbursementsResponse, error) {
26329 gensupport.SetOptions(c.urlParams_, opts...)
26330 res, err := c.doRequest("json")
26331 if res != nil && res.StatusCode == http.StatusNotModified {
26332 if res.Body != nil {
26333 res.Body.Close()
26334 }
26335 return nil, gensupport.WrapError(&googleapi.Error{
26336 Code: res.StatusCode,
26337 Header: res.Header,
26338 })
26339 }
26340 if err != nil {
26341 return nil, err
26342 }
26343 defer googleapi.CloseBody(res)
26344 if err := googleapi.CheckResponse(res); err != nil {
26345 return nil, gensupport.WrapError(err)
26346 }
26347 ret := &OrderreportsListDisbursementsResponse{
26348 ServerResponse: googleapi.ServerResponse{
26349 Header: res.Header,
26350 HTTPStatusCode: res.StatusCode,
26351 },
26352 }
26353 target := &ret
26354 if err := gensupport.DecodeResponse(target, res); err != nil {
26355 return nil, err
26356 }
26357 return ret, nil
26358 }
26359
26360
26361
26362
26363 func (c *OrderreportsListdisbursementsCall) Pages(ctx context.Context, f func(*OrderreportsListDisbursementsResponse) error) error {
26364 c.ctx_ = ctx
26365 defer c.PageToken(c.urlParams_.Get("pageToken"))
26366 for {
26367 x, err := c.Do()
26368 if err != nil {
26369 return err
26370 }
26371 if err := f(x); err != nil {
26372 return err
26373 }
26374 if x.NextPageToken == "" {
26375 return nil
26376 }
26377 c.PageToken(x.NextPageToken)
26378 }
26379 }
26380
26381 type OrderreportsListtransactionsCall struct {
26382 s *APIService
26383 merchantId uint64
26384 disbursementId string
26385 urlParams_ gensupport.URLParams
26386 ifNoneMatch_ string
26387 ctx_ context.Context
26388 header_ http.Header
26389 }
26390
26391
26392
26393
26394
26395
26396
26397
26398 func (r *OrderreportsService) Listtransactions(merchantId uint64, disbursementId string) *OrderreportsListtransactionsCall {
26399 c := &OrderreportsListtransactionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26400 c.merchantId = merchantId
26401 c.disbursementId = disbursementId
26402 return c
26403 }
26404
26405
26406
26407 func (c *OrderreportsListtransactionsCall) MaxResults(maxResults int64) *OrderreportsListtransactionsCall {
26408 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
26409 return c
26410 }
26411
26412
26413
26414 func (c *OrderreportsListtransactionsCall) PageToken(pageToken string) *OrderreportsListtransactionsCall {
26415 c.urlParams_.Set("pageToken", pageToken)
26416 return c
26417 }
26418
26419
26420
26421
26422 func (c *OrderreportsListtransactionsCall) TransactionEndDate(transactionEndDate string) *OrderreportsListtransactionsCall {
26423 c.urlParams_.Set("transactionEndDate", transactionEndDate)
26424 return c
26425 }
26426
26427
26428
26429 func (c *OrderreportsListtransactionsCall) TransactionStartDate(transactionStartDate string) *OrderreportsListtransactionsCall {
26430 c.urlParams_.Set("transactionStartDate", transactionStartDate)
26431 return c
26432 }
26433
26434
26435
26436
26437 func (c *OrderreportsListtransactionsCall) Fields(s ...googleapi.Field) *OrderreportsListtransactionsCall {
26438 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26439 return c
26440 }
26441
26442
26443
26444
26445 func (c *OrderreportsListtransactionsCall) IfNoneMatch(entityTag string) *OrderreportsListtransactionsCall {
26446 c.ifNoneMatch_ = entityTag
26447 return c
26448 }
26449
26450
26451 func (c *OrderreportsListtransactionsCall) Context(ctx context.Context) *OrderreportsListtransactionsCall {
26452 c.ctx_ = ctx
26453 return c
26454 }
26455
26456
26457
26458 func (c *OrderreportsListtransactionsCall) Header() http.Header {
26459 if c.header_ == nil {
26460 c.header_ = make(http.Header)
26461 }
26462 return c.header_
26463 }
26464
26465 func (c *OrderreportsListtransactionsCall) doRequest(alt string) (*http.Response, error) {
26466 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26467 if c.ifNoneMatch_ != "" {
26468 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26469 }
26470 var body io.Reader = nil
26471 c.urlParams_.Set("alt", alt)
26472 c.urlParams_.Set("prettyPrint", "false")
26473 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreports/disbursements/{disbursementId}/transactions")
26474 urls += "?" + c.urlParams_.Encode()
26475 req, err := http.NewRequest("GET", urls, body)
26476 if err != nil {
26477 return nil, err
26478 }
26479 req.Header = reqHeaders
26480 googleapi.Expand(req.URL, map[string]string{
26481 "merchantId": strconv.FormatUint(c.merchantId, 10),
26482 "disbursementId": c.disbursementId,
26483 })
26484 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26485 }
26486
26487
26488
26489
26490
26491
26492
26493 func (c *OrderreportsListtransactionsCall) Do(opts ...googleapi.CallOption) (*OrderreportsListTransactionsResponse, error) {
26494 gensupport.SetOptions(c.urlParams_, opts...)
26495 res, err := c.doRequest("json")
26496 if res != nil && res.StatusCode == http.StatusNotModified {
26497 if res.Body != nil {
26498 res.Body.Close()
26499 }
26500 return nil, gensupport.WrapError(&googleapi.Error{
26501 Code: res.StatusCode,
26502 Header: res.Header,
26503 })
26504 }
26505 if err != nil {
26506 return nil, err
26507 }
26508 defer googleapi.CloseBody(res)
26509 if err := googleapi.CheckResponse(res); err != nil {
26510 return nil, gensupport.WrapError(err)
26511 }
26512 ret := &OrderreportsListTransactionsResponse{
26513 ServerResponse: googleapi.ServerResponse{
26514 Header: res.Header,
26515 HTTPStatusCode: res.StatusCode,
26516 },
26517 }
26518 target := &ret
26519 if err := gensupport.DecodeResponse(target, res); err != nil {
26520 return nil, err
26521 }
26522 return ret, nil
26523 }
26524
26525
26526
26527
26528 func (c *OrderreportsListtransactionsCall) Pages(ctx context.Context, f func(*OrderreportsListTransactionsResponse) error) error {
26529 c.ctx_ = ctx
26530 defer c.PageToken(c.urlParams_.Get("pageToken"))
26531 for {
26532 x, err := c.Do()
26533 if err != nil {
26534 return err
26535 }
26536 if err := f(x); err != nil {
26537 return err
26538 }
26539 if x.NextPageToken == "" {
26540 return nil
26541 }
26542 c.PageToken(x.NextPageToken)
26543 }
26544 }
26545
26546 type OrderreturnsAcknowledgeCall struct {
26547 s *APIService
26548 merchantId uint64
26549 returnId string
26550 orderreturnsacknowledgerequest *OrderreturnsAcknowledgeRequest
26551 urlParams_ gensupport.URLParams
26552 ctx_ context.Context
26553 header_ http.Header
26554 }
26555
26556
26557
26558
26559
26560
26561 func (r *OrderreturnsService) Acknowledge(merchantId uint64, returnId string, orderreturnsacknowledgerequest *OrderreturnsAcknowledgeRequest) *OrderreturnsAcknowledgeCall {
26562 c := &OrderreturnsAcknowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26563 c.merchantId = merchantId
26564 c.returnId = returnId
26565 c.orderreturnsacknowledgerequest = orderreturnsacknowledgerequest
26566 return c
26567 }
26568
26569
26570
26571
26572 func (c *OrderreturnsAcknowledgeCall) Fields(s ...googleapi.Field) *OrderreturnsAcknowledgeCall {
26573 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26574 return c
26575 }
26576
26577
26578 func (c *OrderreturnsAcknowledgeCall) Context(ctx context.Context) *OrderreturnsAcknowledgeCall {
26579 c.ctx_ = ctx
26580 return c
26581 }
26582
26583
26584
26585 func (c *OrderreturnsAcknowledgeCall) Header() http.Header {
26586 if c.header_ == nil {
26587 c.header_ = make(http.Header)
26588 }
26589 return c.header_
26590 }
26591
26592 func (c *OrderreturnsAcknowledgeCall) doRequest(alt string) (*http.Response, error) {
26593 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26594 var body io.Reader = nil
26595 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderreturnsacknowledgerequest)
26596 if err != nil {
26597 return nil, err
26598 }
26599 c.urlParams_.Set("alt", alt)
26600 c.urlParams_.Set("prettyPrint", "false")
26601 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/{returnId}/acknowledge")
26602 urls += "?" + c.urlParams_.Encode()
26603 req, err := http.NewRequest("POST", urls, body)
26604 if err != nil {
26605 return nil, err
26606 }
26607 req.Header = reqHeaders
26608 googleapi.Expand(req.URL, map[string]string{
26609 "merchantId": strconv.FormatUint(c.merchantId, 10),
26610 "returnId": c.returnId,
26611 })
26612 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26613 }
26614
26615
26616
26617
26618
26619
26620
26621 func (c *OrderreturnsAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrderreturnsAcknowledgeResponse, error) {
26622 gensupport.SetOptions(c.urlParams_, opts...)
26623 res, err := c.doRequest("json")
26624 if res != nil && res.StatusCode == http.StatusNotModified {
26625 if res.Body != nil {
26626 res.Body.Close()
26627 }
26628 return nil, gensupport.WrapError(&googleapi.Error{
26629 Code: res.StatusCode,
26630 Header: res.Header,
26631 })
26632 }
26633 if err != nil {
26634 return nil, err
26635 }
26636 defer googleapi.CloseBody(res)
26637 if err := googleapi.CheckResponse(res); err != nil {
26638 return nil, gensupport.WrapError(err)
26639 }
26640 ret := &OrderreturnsAcknowledgeResponse{
26641 ServerResponse: googleapi.ServerResponse{
26642 Header: res.Header,
26643 HTTPStatusCode: res.StatusCode,
26644 },
26645 }
26646 target := &ret
26647 if err := gensupport.DecodeResponse(target, res); err != nil {
26648 return nil, err
26649 }
26650 return ret, nil
26651 }
26652
26653 type OrderreturnsCreateorderreturnCall struct {
26654 s *APIService
26655 merchantId uint64
26656 orderreturnscreateorderreturnrequest *OrderreturnsCreateOrderReturnRequest
26657 urlParams_ gensupport.URLParams
26658 ctx_ context.Context
26659 header_ http.Header
26660 }
26661
26662
26663
26664
26665
26666 func (r *OrderreturnsService) Createorderreturn(merchantId uint64, orderreturnscreateorderreturnrequest *OrderreturnsCreateOrderReturnRequest) *OrderreturnsCreateorderreturnCall {
26667 c := &OrderreturnsCreateorderreturnCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26668 c.merchantId = merchantId
26669 c.orderreturnscreateorderreturnrequest = orderreturnscreateorderreturnrequest
26670 return c
26671 }
26672
26673
26674
26675
26676 func (c *OrderreturnsCreateorderreturnCall) Fields(s ...googleapi.Field) *OrderreturnsCreateorderreturnCall {
26677 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26678 return c
26679 }
26680
26681
26682 func (c *OrderreturnsCreateorderreturnCall) Context(ctx context.Context) *OrderreturnsCreateorderreturnCall {
26683 c.ctx_ = ctx
26684 return c
26685 }
26686
26687
26688
26689 func (c *OrderreturnsCreateorderreturnCall) Header() http.Header {
26690 if c.header_ == nil {
26691 c.header_ = make(http.Header)
26692 }
26693 return c.header_
26694 }
26695
26696 func (c *OrderreturnsCreateorderreturnCall) doRequest(alt string) (*http.Response, error) {
26697 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26698 var body io.Reader = nil
26699 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderreturnscreateorderreturnrequest)
26700 if err != nil {
26701 return nil, err
26702 }
26703 c.urlParams_.Set("alt", alt)
26704 c.urlParams_.Set("prettyPrint", "false")
26705 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/createOrderReturn")
26706 urls += "?" + c.urlParams_.Encode()
26707 req, err := http.NewRequest("POST", urls, body)
26708 if err != nil {
26709 return nil, err
26710 }
26711 req.Header = reqHeaders
26712 googleapi.Expand(req.URL, map[string]string{
26713 "merchantId": strconv.FormatUint(c.merchantId, 10),
26714 })
26715 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26716 }
26717
26718
26719
26720
26721
26722
26723
26724 func (c *OrderreturnsCreateorderreturnCall) Do(opts ...googleapi.CallOption) (*OrderreturnsCreateOrderReturnResponse, error) {
26725 gensupport.SetOptions(c.urlParams_, opts...)
26726 res, err := c.doRequest("json")
26727 if res != nil && res.StatusCode == http.StatusNotModified {
26728 if res.Body != nil {
26729 res.Body.Close()
26730 }
26731 return nil, gensupport.WrapError(&googleapi.Error{
26732 Code: res.StatusCode,
26733 Header: res.Header,
26734 })
26735 }
26736 if err != nil {
26737 return nil, err
26738 }
26739 defer googleapi.CloseBody(res)
26740 if err := googleapi.CheckResponse(res); err != nil {
26741 return nil, gensupport.WrapError(err)
26742 }
26743 ret := &OrderreturnsCreateOrderReturnResponse{
26744 ServerResponse: googleapi.ServerResponse{
26745 Header: res.Header,
26746 HTTPStatusCode: res.StatusCode,
26747 },
26748 }
26749 target := &ret
26750 if err := gensupport.DecodeResponse(target, res); err != nil {
26751 return nil, err
26752 }
26753 return ret, nil
26754 }
26755
26756 type OrderreturnsGetCall struct {
26757 s *APIService
26758 merchantId uint64
26759 returnId string
26760 urlParams_ gensupport.URLParams
26761 ifNoneMatch_ string
26762 ctx_ context.Context
26763 header_ http.Header
26764 }
26765
26766
26767
26768
26769
26770
26771 func (r *OrderreturnsService) Get(merchantId uint64, returnId string) *OrderreturnsGetCall {
26772 c := &OrderreturnsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26773 c.merchantId = merchantId
26774 c.returnId = returnId
26775 return c
26776 }
26777
26778
26779
26780
26781 func (c *OrderreturnsGetCall) Fields(s ...googleapi.Field) *OrderreturnsGetCall {
26782 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26783 return c
26784 }
26785
26786
26787
26788
26789 func (c *OrderreturnsGetCall) IfNoneMatch(entityTag string) *OrderreturnsGetCall {
26790 c.ifNoneMatch_ = entityTag
26791 return c
26792 }
26793
26794
26795 func (c *OrderreturnsGetCall) Context(ctx context.Context) *OrderreturnsGetCall {
26796 c.ctx_ = ctx
26797 return c
26798 }
26799
26800
26801
26802 func (c *OrderreturnsGetCall) Header() http.Header {
26803 if c.header_ == nil {
26804 c.header_ = make(http.Header)
26805 }
26806 return c.header_
26807 }
26808
26809 func (c *OrderreturnsGetCall) doRequest(alt string) (*http.Response, error) {
26810 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26811 if c.ifNoneMatch_ != "" {
26812 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26813 }
26814 var body io.Reader = nil
26815 c.urlParams_.Set("alt", alt)
26816 c.urlParams_.Set("prettyPrint", "false")
26817 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/{returnId}")
26818 urls += "?" + c.urlParams_.Encode()
26819 req, err := http.NewRequest("GET", urls, body)
26820 if err != nil {
26821 return nil, err
26822 }
26823 req.Header = reqHeaders
26824 googleapi.Expand(req.URL, map[string]string{
26825 "merchantId": strconv.FormatUint(c.merchantId, 10),
26826 "returnId": c.returnId,
26827 })
26828 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26829 }
26830
26831
26832
26833
26834
26835
26836
26837 func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderReturn, error) {
26838 gensupport.SetOptions(c.urlParams_, opts...)
26839 res, err := c.doRequest("json")
26840 if res != nil && res.StatusCode == http.StatusNotModified {
26841 if res.Body != nil {
26842 res.Body.Close()
26843 }
26844 return nil, gensupport.WrapError(&googleapi.Error{
26845 Code: res.StatusCode,
26846 Header: res.Header,
26847 })
26848 }
26849 if err != nil {
26850 return nil, err
26851 }
26852 defer googleapi.CloseBody(res)
26853 if err := googleapi.CheckResponse(res); err != nil {
26854 return nil, gensupport.WrapError(err)
26855 }
26856 ret := &MerchantOrderReturn{
26857 ServerResponse: googleapi.ServerResponse{
26858 Header: res.Header,
26859 HTTPStatusCode: res.StatusCode,
26860 },
26861 }
26862 target := &ret
26863 if err := gensupport.DecodeResponse(target, res); err != nil {
26864 return nil, err
26865 }
26866 return ret, nil
26867 }
26868
26869 type OrderreturnsListCall struct {
26870 s *APIService
26871 merchantId uint64
26872 urlParams_ gensupport.URLParams
26873 ifNoneMatch_ string
26874 ctx_ context.Context
26875 header_ http.Header
26876 }
26877
26878
26879
26880
26881
26882 func (r *OrderreturnsService) List(merchantId uint64) *OrderreturnsListCall {
26883 c := &OrderreturnsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26884 c.merchantId = merchantId
26885 return c
26886 }
26887
26888
26889
26890
26891
26892
26893
26894
26895 func (c *OrderreturnsListCall) Acknowledged(acknowledged bool) *OrderreturnsListCall {
26896 c.urlParams_.Set("acknowledged", fmt.Sprint(acknowledged))
26897 return c
26898 }
26899
26900
26901
26902 func (c *OrderreturnsListCall) CreatedEndDate(createdEndDate string) *OrderreturnsListCall {
26903 c.urlParams_.Set("createdEndDate", createdEndDate)
26904 return c
26905 }
26906
26907
26908
26909 func (c *OrderreturnsListCall) CreatedStartDate(createdStartDate string) *OrderreturnsListCall {
26910 c.urlParams_.Set("createdStartDate", createdStartDate)
26911 return c
26912 }
26913
26914
26915
26916
26917
26918
26919
26920
26921 func (c *OrderreturnsListCall) GoogleOrderIds(googleOrderIds ...string) *OrderreturnsListCall {
26922 c.urlParams_.SetMulti("googleOrderIds", append([]string{}, googleOrderIds...))
26923 return c
26924 }
26925
26926
26927
26928
26929
26930 func (c *OrderreturnsListCall) MaxResults(maxResults int64) *OrderreturnsListCall {
26931 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
26932 return c
26933 }
26934
26935
26936
26937
26938
26939
26940
26941
26942 func (c *OrderreturnsListCall) OrderBy(orderBy string) *OrderreturnsListCall {
26943 c.urlParams_.Set("orderBy", orderBy)
26944 return c
26945 }
26946
26947
26948
26949 func (c *OrderreturnsListCall) PageToken(pageToken string) *OrderreturnsListCall {
26950 c.urlParams_.Set("pageToken", pageToken)
26951 return c
26952 }
26953
26954
26955
26956
26957
26958
26959
26960
26961
26962
26963
26964
26965
26966 func (c *OrderreturnsListCall) ShipmentStates(shipmentStates ...string) *OrderreturnsListCall {
26967 c.urlParams_.SetMulti("shipmentStates", append([]string{}, shipmentStates...))
26968 return c
26969 }
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981 func (c *OrderreturnsListCall) ShipmentStatus(shipmentStatus ...string) *OrderreturnsListCall {
26982 c.urlParams_.SetMulti("shipmentStatus", append([]string{}, shipmentStatus...))
26983 return c
26984 }
26985
26986
26987
26988
26989
26990
26991
26992
26993 func (c *OrderreturnsListCall) ShipmentTrackingNumbers(shipmentTrackingNumbers ...string) *OrderreturnsListCall {
26994 c.urlParams_.SetMulti("shipmentTrackingNumbers", append([]string{}, shipmentTrackingNumbers...))
26995 return c
26996 }
26997
26998
26999
27000
27001
27002
27003
27004
27005
27006
27007
27008
27009
27010 func (c *OrderreturnsListCall) ShipmentTypes(shipmentTypes ...string) *OrderreturnsListCall {
27011 c.urlParams_.SetMulti("shipmentTypes", append([]string{}, shipmentTypes...))
27012 return c
27013 }
27014
27015
27016
27017
27018 func (c *OrderreturnsListCall) Fields(s ...googleapi.Field) *OrderreturnsListCall {
27019 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27020 return c
27021 }
27022
27023
27024
27025
27026 func (c *OrderreturnsListCall) IfNoneMatch(entityTag string) *OrderreturnsListCall {
27027 c.ifNoneMatch_ = entityTag
27028 return c
27029 }
27030
27031
27032 func (c *OrderreturnsListCall) Context(ctx context.Context) *OrderreturnsListCall {
27033 c.ctx_ = ctx
27034 return c
27035 }
27036
27037
27038
27039 func (c *OrderreturnsListCall) Header() http.Header {
27040 if c.header_ == nil {
27041 c.header_ = make(http.Header)
27042 }
27043 return c.header_
27044 }
27045
27046 func (c *OrderreturnsListCall) doRequest(alt string) (*http.Response, error) {
27047 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27048 if c.ifNoneMatch_ != "" {
27049 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27050 }
27051 var body io.Reader = nil
27052 c.urlParams_.Set("alt", alt)
27053 c.urlParams_.Set("prettyPrint", "false")
27054 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns")
27055 urls += "?" + c.urlParams_.Encode()
27056 req, err := http.NewRequest("GET", urls, body)
27057 if err != nil {
27058 return nil, err
27059 }
27060 req.Header = reqHeaders
27061 googleapi.Expand(req.URL, map[string]string{
27062 "merchantId": strconv.FormatUint(c.merchantId, 10),
27063 })
27064 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27065 }
27066
27067
27068
27069
27070
27071
27072
27073 func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsListResponse, error) {
27074 gensupport.SetOptions(c.urlParams_, opts...)
27075 res, err := c.doRequest("json")
27076 if res != nil && res.StatusCode == http.StatusNotModified {
27077 if res.Body != nil {
27078 res.Body.Close()
27079 }
27080 return nil, gensupport.WrapError(&googleapi.Error{
27081 Code: res.StatusCode,
27082 Header: res.Header,
27083 })
27084 }
27085 if err != nil {
27086 return nil, err
27087 }
27088 defer googleapi.CloseBody(res)
27089 if err := googleapi.CheckResponse(res); err != nil {
27090 return nil, gensupport.WrapError(err)
27091 }
27092 ret := &OrderreturnsListResponse{
27093 ServerResponse: googleapi.ServerResponse{
27094 Header: res.Header,
27095 HTTPStatusCode: res.StatusCode,
27096 },
27097 }
27098 target := &ret
27099 if err := gensupport.DecodeResponse(target, res); err != nil {
27100 return nil, err
27101 }
27102 return ret, nil
27103 }
27104
27105
27106
27107
27108 func (c *OrderreturnsListCall) Pages(ctx context.Context, f func(*OrderreturnsListResponse) error) error {
27109 c.ctx_ = ctx
27110 defer c.PageToken(c.urlParams_.Get("pageToken"))
27111 for {
27112 x, err := c.Do()
27113 if err != nil {
27114 return err
27115 }
27116 if err := f(x); err != nil {
27117 return err
27118 }
27119 if x.NextPageToken == "" {
27120 return nil
27121 }
27122 c.PageToken(x.NextPageToken)
27123 }
27124 }
27125
27126 type OrderreturnsProcessCall struct {
27127 s *APIService
27128 merchantId uint64
27129 returnId string
27130 orderreturnsprocessrequest *OrderreturnsProcessRequest
27131 urlParams_ gensupport.URLParams
27132 ctx_ context.Context
27133 header_ http.Header
27134 }
27135
27136
27137
27138
27139
27140
27141 func (r *OrderreturnsService) Process(merchantId uint64, returnId string, orderreturnsprocessrequest *OrderreturnsProcessRequest) *OrderreturnsProcessCall {
27142 c := &OrderreturnsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27143 c.merchantId = merchantId
27144 c.returnId = returnId
27145 c.orderreturnsprocessrequest = orderreturnsprocessrequest
27146 return c
27147 }
27148
27149
27150
27151
27152 func (c *OrderreturnsProcessCall) Fields(s ...googleapi.Field) *OrderreturnsProcessCall {
27153 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27154 return c
27155 }
27156
27157
27158 func (c *OrderreturnsProcessCall) Context(ctx context.Context) *OrderreturnsProcessCall {
27159 c.ctx_ = ctx
27160 return c
27161 }
27162
27163
27164
27165 func (c *OrderreturnsProcessCall) Header() http.Header {
27166 if c.header_ == nil {
27167 c.header_ = make(http.Header)
27168 }
27169 return c.header_
27170 }
27171
27172 func (c *OrderreturnsProcessCall) doRequest(alt string) (*http.Response, error) {
27173 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27174 var body io.Reader = nil
27175 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderreturnsprocessrequest)
27176 if err != nil {
27177 return nil, err
27178 }
27179 c.urlParams_.Set("alt", alt)
27180 c.urlParams_.Set("prettyPrint", "false")
27181 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/{returnId}/process")
27182 urls += "?" + c.urlParams_.Encode()
27183 req, err := http.NewRequest("POST", urls, body)
27184 if err != nil {
27185 return nil, err
27186 }
27187 req.Header = reqHeaders
27188 googleapi.Expand(req.URL, map[string]string{
27189 "merchantId": strconv.FormatUint(c.merchantId, 10),
27190 "returnId": c.returnId,
27191 })
27192 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27193 }
27194
27195
27196
27197
27198
27199
27200
27201 func (c *OrderreturnsProcessCall) Do(opts ...googleapi.CallOption) (*OrderreturnsProcessResponse, error) {
27202 gensupport.SetOptions(c.urlParams_, opts...)
27203 res, err := c.doRequest("json")
27204 if res != nil && res.StatusCode == http.StatusNotModified {
27205 if res.Body != nil {
27206 res.Body.Close()
27207 }
27208 return nil, gensupport.WrapError(&googleapi.Error{
27209 Code: res.StatusCode,
27210 Header: res.Header,
27211 })
27212 }
27213 if err != nil {
27214 return nil, err
27215 }
27216 defer googleapi.CloseBody(res)
27217 if err := googleapi.CheckResponse(res); err != nil {
27218 return nil, gensupport.WrapError(err)
27219 }
27220 ret := &OrderreturnsProcessResponse{
27221 ServerResponse: googleapi.ServerResponse{
27222 Header: res.Header,
27223 HTTPStatusCode: res.StatusCode,
27224 },
27225 }
27226 target := &ret
27227 if err := gensupport.DecodeResponse(target, res); err != nil {
27228 return nil, err
27229 }
27230 return ret, nil
27231 }
27232
27233 type OrderreturnsLabelsCreateCall struct {
27234 s *APIService
27235 merchantId int64
27236 returnId string
27237 returnshippinglabel *ReturnShippingLabel
27238 urlParams_ gensupport.URLParams
27239 ctx_ context.Context
27240 header_ http.Header
27241 }
27242
27243
27244
27245
27246
27247
27248
27249
27250
27251 func (r *OrderreturnsLabelsService) Create(merchantId int64, returnId string, returnshippinglabel *ReturnShippingLabel) *OrderreturnsLabelsCreateCall {
27252 c := &OrderreturnsLabelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27253 c.merchantId = merchantId
27254 c.returnId = returnId
27255 c.returnshippinglabel = returnshippinglabel
27256 return c
27257 }
27258
27259
27260
27261
27262 func (c *OrderreturnsLabelsCreateCall) Fields(s ...googleapi.Field) *OrderreturnsLabelsCreateCall {
27263 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27264 return c
27265 }
27266
27267
27268 func (c *OrderreturnsLabelsCreateCall) Context(ctx context.Context) *OrderreturnsLabelsCreateCall {
27269 c.ctx_ = ctx
27270 return c
27271 }
27272
27273
27274
27275 func (c *OrderreturnsLabelsCreateCall) Header() http.Header {
27276 if c.header_ == nil {
27277 c.header_ = make(http.Header)
27278 }
27279 return c.header_
27280 }
27281
27282 func (c *OrderreturnsLabelsCreateCall) doRequest(alt string) (*http.Response, error) {
27283 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27284 var body io.Reader = nil
27285 body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnshippinglabel)
27286 if err != nil {
27287 return nil, err
27288 }
27289 c.urlParams_.Set("alt", alt)
27290 c.urlParams_.Set("prettyPrint", "false")
27291 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/{returnId}/labels")
27292 urls += "?" + c.urlParams_.Encode()
27293 req, err := http.NewRequest("POST", urls, body)
27294 if err != nil {
27295 return nil, err
27296 }
27297 req.Header = reqHeaders
27298 googleapi.Expand(req.URL, map[string]string{
27299 "merchantId": strconv.FormatInt(c.merchantId, 10),
27300 "returnId": c.returnId,
27301 })
27302 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27303 }
27304
27305
27306
27307
27308
27309
27310
27311 func (c *OrderreturnsLabelsCreateCall) Do(opts ...googleapi.CallOption) (*ReturnShippingLabel, error) {
27312 gensupport.SetOptions(c.urlParams_, opts...)
27313 res, err := c.doRequest("json")
27314 if res != nil && res.StatusCode == http.StatusNotModified {
27315 if res.Body != nil {
27316 res.Body.Close()
27317 }
27318 return nil, gensupport.WrapError(&googleapi.Error{
27319 Code: res.StatusCode,
27320 Header: res.Header,
27321 })
27322 }
27323 if err != nil {
27324 return nil, err
27325 }
27326 defer googleapi.CloseBody(res)
27327 if err := googleapi.CheckResponse(res); err != nil {
27328 return nil, gensupport.WrapError(err)
27329 }
27330 ret := &ReturnShippingLabel{
27331 ServerResponse: googleapi.ServerResponse{
27332 Header: res.Header,
27333 HTTPStatusCode: res.StatusCode,
27334 },
27335 }
27336 target := &ret
27337 if err := gensupport.DecodeResponse(target, res); err != nil {
27338 return nil, err
27339 }
27340 return ret, nil
27341 }
27342
27343 type OrdersAcknowledgeCall struct {
27344 s *APIService
27345 merchantId uint64
27346 orderId string
27347 ordersacknowledgerequest *OrdersAcknowledgeRequest
27348 urlParams_ gensupport.URLParams
27349 ctx_ context.Context
27350 header_ http.Header
27351 }
27352
27353
27354
27355
27356
27357
27358 func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ordersacknowledgerequest *OrdersAcknowledgeRequest) *OrdersAcknowledgeCall {
27359 c := &OrdersAcknowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27360 c.merchantId = merchantId
27361 c.orderId = orderId
27362 c.ordersacknowledgerequest = ordersacknowledgerequest
27363 return c
27364 }
27365
27366
27367
27368
27369 func (c *OrdersAcknowledgeCall) Fields(s ...googleapi.Field) *OrdersAcknowledgeCall {
27370 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27371 return c
27372 }
27373
27374
27375 func (c *OrdersAcknowledgeCall) Context(ctx context.Context) *OrdersAcknowledgeCall {
27376 c.ctx_ = ctx
27377 return c
27378 }
27379
27380
27381
27382 func (c *OrdersAcknowledgeCall) Header() http.Header {
27383 if c.header_ == nil {
27384 c.header_ = make(http.Header)
27385 }
27386 return c.header_
27387 }
27388
27389 func (c *OrdersAcknowledgeCall) doRequest(alt string) (*http.Response, error) {
27390 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27391 var body io.Reader = nil
27392 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersacknowledgerequest)
27393 if err != nil {
27394 return nil, err
27395 }
27396 c.urlParams_.Set("alt", alt)
27397 c.urlParams_.Set("prettyPrint", "false")
27398 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/acknowledge")
27399 urls += "?" + c.urlParams_.Encode()
27400 req, err := http.NewRequest("POST", urls, body)
27401 if err != nil {
27402 return nil, err
27403 }
27404 req.Header = reqHeaders
27405 googleapi.Expand(req.URL, map[string]string{
27406 "merchantId": strconv.FormatUint(c.merchantId, 10),
27407 "orderId": c.orderId,
27408 })
27409 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27410 }
27411
27412
27413
27414
27415
27416
27417
27418 func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowledgeResponse, error) {
27419 gensupport.SetOptions(c.urlParams_, opts...)
27420 res, err := c.doRequest("json")
27421 if res != nil && res.StatusCode == http.StatusNotModified {
27422 if res.Body != nil {
27423 res.Body.Close()
27424 }
27425 return nil, gensupport.WrapError(&googleapi.Error{
27426 Code: res.StatusCode,
27427 Header: res.Header,
27428 })
27429 }
27430 if err != nil {
27431 return nil, err
27432 }
27433 defer googleapi.CloseBody(res)
27434 if err := googleapi.CheckResponse(res); err != nil {
27435 return nil, gensupport.WrapError(err)
27436 }
27437 ret := &OrdersAcknowledgeResponse{
27438 ServerResponse: googleapi.ServerResponse{
27439 Header: res.Header,
27440 HTTPStatusCode: res.StatusCode,
27441 },
27442 }
27443 target := &ret
27444 if err := gensupport.DecodeResponse(target, res); err != nil {
27445 return nil, err
27446 }
27447 return ret, nil
27448 }
27449
27450 type OrdersAdvancetestorderCall struct {
27451 s *APIService
27452 merchantId uint64
27453 orderId string
27454 urlParams_ gensupport.URLParams
27455 ctx_ context.Context
27456 header_ http.Header
27457 }
27458
27459
27460
27461
27462
27463
27464
27465 func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *OrdersAdvancetestorderCall {
27466 c := &OrdersAdvancetestorderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27467 c.merchantId = merchantId
27468 c.orderId = orderId
27469 return c
27470 }
27471
27472
27473
27474
27475 func (c *OrdersAdvancetestorderCall) Fields(s ...googleapi.Field) *OrdersAdvancetestorderCall {
27476 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27477 return c
27478 }
27479
27480
27481 func (c *OrdersAdvancetestorderCall) Context(ctx context.Context) *OrdersAdvancetestorderCall {
27482 c.ctx_ = ctx
27483 return c
27484 }
27485
27486
27487
27488 func (c *OrdersAdvancetestorderCall) Header() http.Header {
27489 if c.header_ == nil {
27490 c.header_ = make(http.Header)
27491 }
27492 return c.header_
27493 }
27494
27495 func (c *OrdersAdvancetestorderCall) doRequest(alt string) (*http.Response, error) {
27496 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27497 var body io.Reader = nil
27498 c.urlParams_.Set("alt", alt)
27499 c.urlParams_.Set("prettyPrint", "false")
27500 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders/{orderId}/advance")
27501 urls += "?" + c.urlParams_.Encode()
27502 req, err := http.NewRequest("POST", urls, body)
27503 if err != nil {
27504 return nil, err
27505 }
27506 req.Header = reqHeaders
27507 googleapi.Expand(req.URL, map[string]string{
27508 "merchantId": strconv.FormatUint(c.merchantId, 10),
27509 "orderId": c.orderId,
27510 })
27511 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27512 }
27513
27514
27515
27516
27517
27518
27519
27520 func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAdvanceTestOrderResponse, error) {
27521 gensupport.SetOptions(c.urlParams_, opts...)
27522 res, err := c.doRequest("json")
27523 if res != nil && res.StatusCode == http.StatusNotModified {
27524 if res.Body != nil {
27525 res.Body.Close()
27526 }
27527 return nil, gensupport.WrapError(&googleapi.Error{
27528 Code: res.StatusCode,
27529 Header: res.Header,
27530 })
27531 }
27532 if err != nil {
27533 return nil, err
27534 }
27535 defer googleapi.CloseBody(res)
27536 if err := googleapi.CheckResponse(res); err != nil {
27537 return nil, gensupport.WrapError(err)
27538 }
27539 ret := &OrdersAdvanceTestOrderResponse{
27540 ServerResponse: googleapi.ServerResponse{
27541 Header: res.Header,
27542 HTTPStatusCode: res.StatusCode,
27543 },
27544 }
27545 target := &ret
27546 if err := gensupport.DecodeResponse(target, res); err != nil {
27547 return nil, err
27548 }
27549 return ret, nil
27550 }
27551
27552 type OrdersCancelCall struct {
27553 s *APIService
27554 merchantId uint64
27555 orderId string
27556 orderscancelrequest *OrdersCancelRequest
27557 urlParams_ gensupport.URLParams
27558 ctx_ context.Context
27559 header_ http.Header
27560 }
27561
27562
27563
27564
27565
27566
27567 func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall {
27568 c := &OrdersCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27569 c.merchantId = merchantId
27570 c.orderId = orderId
27571 c.orderscancelrequest = orderscancelrequest
27572 return c
27573 }
27574
27575
27576
27577
27578 func (c *OrdersCancelCall) Fields(s ...googleapi.Field) *OrdersCancelCall {
27579 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27580 return c
27581 }
27582
27583
27584 func (c *OrdersCancelCall) Context(ctx context.Context) *OrdersCancelCall {
27585 c.ctx_ = ctx
27586 return c
27587 }
27588
27589
27590
27591 func (c *OrdersCancelCall) Header() http.Header {
27592 if c.header_ == nil {
27593 c.header_ = make(http.Header)
27594 }
27595 return c.header_
27596 }
27597
27598 func (c *OrdersCancelCall) doRequest(alt string) (*http.Response, error) {
27599 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27600 var body io.Reader = nil
27601 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscancelrequest)
27602 if err != nil {
27603 return nil, err
27604 }
27605 c.urlParams_.Set("alt", alt)
27606 c.urlParams_.Set("prettyPrint", "false")
27607 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancel")
27608 urls += "?" + c.urlParams_.Encode()
27609 req, err := http.NewRequest("POST", urls, body)
27610 if err != nil {
27611 return nil, err
27612 }
27613 req.Header = reqHeaders
27614 googleapi.Expand(req.URL, map[string]string{
27615 "merchantId": strconv.FormatUint(c.merchantId, 10),
27616 "orderId": c.orderId,
27617 })
27618 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27619 }
27620
27621
27622
27623
27624
27625
27626
27627 func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelResponse, error) {
27628 gensupport.SetOptions(c.urlParams_, opts...)
27629 res, err := c.doRequest("json")
27630 if res != nil && res.StatusCode == http.StatusNotModified {
27631 if res.Body != nil {
27632 res.Body.Close()
27633 }
27634 return nil, gensupport.WrapError(&googleapi.Error{
27635 Code: res.StatusCode,
27636 Header: res.Header,
27637 })
27638 }
27639 if err != nil {
27640 return nil, err
27641 }
27642 defer googleapi.CloseBody(res)
27643 if err := googleapi.CheckResponse(res); err != nil {
27644 return nil, gensupport.WrapError(err)
27645 }
27646 ret := &OrdersCancelResponse{
27647 ServerResponse: googleapi.ServerResponse{
27648 Header: res.Header,
27649 HTTPStatusCode: res.StatusCode,
27650 },
27651 }
27652 target := &ret
27653 if err := gensupport.DecodeResponse(target, res); err != nil {
27654 return nil, err
27655 }
27656 return ret, nil
27657 }
27658
27659 type OrdersCancellineitemCall struct {
27660 s *APIService
27661 merchantId uint64
27662 orderId string
27663 orderscancellineitemrequest *OrdersCancelLineItemRequest
27664 urlParams_ gensupport.URLParams
27665 ctx_ context.Context
27666 header_ http.Header
27667 }
27668
27669
27670
27671
27672
27673
27674 func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orderscancellineitemrequest *OrdersCancelLineItemRequest) *OrdersCancellineitemCall {
27675 c := &OrdersCancellineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27676 c.merchantId = merchantId
27677 c.orderId = orderId
27678 c.orderscancellineitemrequest = orderscancellineitemrequest
27679 return c
27680 }
27681
27682
27683
27684
27685 func (c *OrdersCancellineitemCall) Fields(s ...googleapi.Field) *OrdersCancellineitemCall {
27686 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27687 return c
27688 }
27689
27690
27691 func (c *OrdersCancellineitemCall) Context(ctx context.Context) *OrdersCancellineitemCall {
27692 c.ctx_ = ctx
27693 return c
27694 }
27695
27696
27697
27698 func (c *OrdersCancellineitemCall) Header() http.Header {
27699 if c.header_ == nil {
27700 c.header_ = make(http.Header)
27701 }
27702 return c.header_
27703 }
27704
27705 func (c *OrdersCancellineitemCall) doRequest(alt string) (*http.Response, error) {
27706 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27707 var body io.Reader = nil
27708 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscancellineitemrequest)
27709 if err != nil {
27710 return nil, err
27711 }
27712 c.urlParams_.Set("alt", alt)
27713 c.urlParams_.Set("prettyPrint", "false")
27714 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancelLineItem")
27715 urls += "?" + c.urlParams_.Encode()
27716 req, err := http.NewRequest("POST", urls, body)
27717 if err != nil {
27718 return nil, err
27719 }
27720 req.Header = reqHeaders
27721 googleapi.Expand(req.URL, map[string]string{
27722 "merchantId": strconv.FormatUint(c.merchantId, 10),
27723 "orderId": c.orderId,
27724 })
27725 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27726 }
27727
27728
27729
27730
27731
27732
27733
27734 func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCancelLineItemResponse, error) {
27735 gensupport.SetOptions(c.urlParams_, opts...)
27736 res, err := c.doRequest("json")
27737 if res != nil && res.StatusCode == http.StatusNotModified {
27738 if res.Body != nil {
27739 res.Body.Close()
27740 }
27741 return nil, gensupport.WrapError(&googleapi.Error{
27742 Code: res.StatusCode,
27743 Header: res.Header,
27744 })
27745 }
27746 if err != nil {
27747 return nil, err
27748 }
27749 defer googleapi.CloseBody(res)
27750 if err := googleapi.CheckResponse(res); err != nil {
27751 return nil, gensupport.WrapError(err)
27752 }
27753 ret := &OrdersCancelLineItemResponse{
27754 ServerResponse: googleapi.ServerResponse{
27755 Header: res.Header,
27756 HTTPStatusCode: res.StatusCode,
27757 },
27758 }
27759 target := &ret
27760 if err := gensupport.DecodeResponse(target, res); err != nil {
27761 return nil, err
27762 }
27763 return ret, nil
27764 }
27765
27766 type OrdersCanceltestorderbycustomerCall struct {
27767 s *APIService
27768 merchantId uint64
27769 orderId string
27770 orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest
27771 urlParams_ gensupport.URLParams
27772 ctx_ context.Context
27773 header_ http.Header
27774 }
27775
27776
27777
27778
27779
27780
27781
27782 func (r *OrdersService) Canceltestorderbycustomer(merchantId uint64, orderId string, orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest) *OrdersCanceltestorderbycustomerCall {
27783 c := &OrdersCanceltestorderbycustomerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27784 c.merchantId = merchantId
27785 c.orderId = orderId
27786 c.orderscanceltestorderbycustomerrequest = orderscanceltestorderbycustomerrequest
27787 return c
27788 }
27789
27790
27791
27792
27793 func (c *OrdersCanceltestorderbycustomerCall) Fields(s ...googleapi.Field) *OrdersCanceltestorderbycustomerCall {
27794 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27795 return c
27796 }
27797
27798
27799 func (c *OrdersCanceltestorderbycustomerCall) Context(ctx context.Context) *OrdersCanceltestorderbycustomerCall {
27800 c.ctx_ = ctx
27801 return c
27802 }
27803
27804
27805
27806 func (c *OrdersCanceltestorderbycustomerCall) Header() http.Header {
27807 if c.header_ == nil {
27808 c.header_ = make(http.Header)
27809 }
27810 return c.header_
27811 }
27812
27813 func (c *OrdersCanceltestorderbycustomerCall) doRequest(alt string) (*http.Response, error) {
27814 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27815 var body io.Reader = nil
27816 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscanceltestorderbycustomerrequest)
27817 if err != nil {
27818 return nil, err
27819 }
27820 c.urlParams_.Set("alt", alt)
27821 c.urlParams_.Set("prettyPrint", "false")
27822 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders/{orderId}/cancelByCustomer")
27823 urls += "?" + c.urlParams_.Encode()
27824 req, err := http.NewRequest("POST", urls, body)
27825 if err != nil {
27826 return nil, err
27827 }
27828 req.Header = reqHeaders
27829 googleapi.Expand(req.URL, map[string]string{
27830 "merchantId": strconv.FormatUint(c.merchantId, 10),
27831 "orderId": c.orderId,
27832 })
27833 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27834 }
27835
27836
27837
27838
27839
27840
27841
27842 func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) (*OrdersCancelTestOrderByCustomerResponse, error) {
27843 gensupport.SetOptions(c.urlParams_, opts...)
27844 res, err := c.doRequest("json")
27845 if res != nil && res.StatusCode == http.StatusNotModified {
27846 if res.Body != nil {
27847 res.Body.Close()
27848 }
27849 return nil, gensupport.WrapError(&googleapi.Error{
27850 Code: res.StatusCode,
27851 Header: res.Header,
27852 })
27853 }
27854 if err != nil {
27855 return nil, err
27856 }
27857 defer googleapi.CloseBody(res)
27858 if err := googleapi.CheckResponse(res); err != nil {
27859 return nil, gensupport.WrapError(err)
27860 }
27861 ret := &OrdersCancelTestOrderByCustomerResponse{
27862 ServerResponse: googleapi.ServerResponse{
27863 Header: res.Header,
27864 HTTPStatusCode: res.StatusCode,
27865 },
27866 }
27867 target := &ret
27868 if err := gensupport.DecodeResponse(target, res); err != nil {
27869 return nil, err
27870 }
27871 return ret, nil
27872 }
27873
27874 type OrdersCaptureOrderCall struct {
27875 s *APIService
27876 merchantId int64
27877 orderId string
27878 captureorderrequest *CaptureOrderRequest
27879 urlParams_ gensupport.URLParams
27880 ctx_ context.Context
27881 header_ http.Header
27882 }
27883
27884
27885
27886
27887
27888
27889
27890
27891
27892
27893
27894
27895
27896
27897
27898
27899
27900 func (r *OrdersService) CaptureOrder(merchantId int64, orderId string, captureorderrequest *CaptureOrderRequest) *OrdersCaptureOrderCall {
27901 c := &OrdersCaptureOrderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27902 c.merchantId = merchantId
27903 c.orderId = orderId
27904 c.captureorderrequest = captureorderrequest
27905 return c
27906 }
27907
27908
27909
27910
27911 func (c *OrdersCaptureOrderCall) Fields(s ...googleapi.Field) *OrdersCaptureOrderCall {
27912 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27913 return c
27914 }
27915
27916
27917 func (c *OrdersCaptureOrderCall) Context(ctx context.Context) *OrdersCaptureOrderCall {
27918 c.ctx_ = ctx
27919 return c
27920 }
27921
27922
27923
27924 func (c *OrdersCaptureOrderCall) Header() http.Header {
27925 if c.header_ == nil {
27926 c.header_ = make(http.Header)
27927 }
27928 return c.header_
27929 }
27930
27931 func (c *OrdersCaptureOrderCall) doRequest(alt string) (*http.Response, error) {
27932 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27933 var body io.Reader = nil
27934 body, err := googleapi.WithoutDataWrapper.JSONReader(c.captureorderrequest)
27935 if err != nil {
27936 return nil, err
27937 }
27938 c.urlParams_.Set("alt", alt)
27939 c.urlParams_.Set("prettyPrint", "false")
27940 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/captureOrder")
27941 urls += "?" + c.urlParams_.Encode()
27942 req, err := http.NewRequest("POST", urls, body)
27943 if err != nil {
27944 return nil, err
27945 }
27946 req.Header = reqHeaders
27947 googleapi.Expand(req.URL, map[string]string{
27948 "merchantId": strconv.FormatInt(c.merchantId, 10),
27949 "orderId": c.orderId,
27950 })
27951 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27952 }
27953
27954
27955
27956
27957
27958
27959
27960 func (c *OrdersCaptureOrderCall) Do(opts ...googleapi.CallOption) (*CaptureOrderResponse, error) {
27961 gensupport.SetOptions(c.urlParams_, opts...)
27962 res, err := c.doRequest("json")
27963 if res != nil && res.StatusCode == http.StatusNotModified {
27964 if res.Body != nil {
27965 res.Body.Close()
27966 }
27967 return nil, gensupport.WrapError(&googleapi.Error{
27968 Code: res.StatusCode,
27969 Header: res.Header,
27970 })
27971 }
27972 if err != nil {
27973 return nil, err
27974 }
27975 defer googleapi.CloseBody(res)
27976 if err := googleapi.CheckResponse(res); err != nil {
27977 return nil, gensupport.WrapError(err)
27978 }
27979 ret := &CaptureOrderResponse{
27980 ServerResponse: googleapi.ServerResponse{
27981 Header: res.Header,
27982 HTTPStatusCode: res.StatusCode,
27983 },
27984 }
27985 target := &ret
27986 if err := gensupport.DecodeResponse(target, res); err != nil {
27987 return nil, err
27988 }
27989 return ret, nil
27990 }
27991
27992 type OrdersCreatetestorderCall struct {
27993 s *APIService
27994 merchantId uint64
27995 orderscreatetestorderrequest *OrdersCreateTestOrderRequest
27996 urlParams_ gensupport.URLParams
27997 ctx_ context.Context
27998 header_ http.Header
27999 }
28000
28001
28002
28003
28004
28005 func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall {
28006 c := &OrdersCreatetestorderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28007 c.merchantId = merchantId
28008 c.orderscreatetestorderrequest = orderscreatetestorderrequest
28009 return c
28010 }
28011
28012
28013
28014
28015 func (c *OrdersCreatetestorderCall) Fields(s ...googleapi.Field) *OrdersCreatetestorderCall {
28016 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28017 return c
28018 }
28019
28020
28021 func (c *OrdersCreatetestorderCall) Context(ctx context.Context) *OrdersCreatetestorderCall {
28022 c.ctx_ = ctx
28023 return c
28024 }
28025
28026
28027
28028 func (c *OrdersCreatetestorderCall) Header() http.Header {
28029 if c.header_ == nil {
28030 c.header_ = make(http.Header)
28031 }
28032 return c.header_
28033 }
28034
28035 func (c *OrdersCreatetestorderCall) doRequest(alt string) (*http.Response, error) {
28036 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28037 var body io.Reader = nil
28038 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscreatetestorderrequest)
28039 if err != nil {
28040 return nil, err
28041 }
28042 c.urlParams_.Set("alt", alt)
28043 c.urlParams_.Set("prettyPrint", "false")
28044 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders")
28045 urls += "?" + c.urlParams_.Encode()
28046 req, err := http.NewRequest("POST", urls, body)
28047 if err != nil {
28048 return nil, err
28049 }
28050 req.Header = reqHeaders
28051 googleapi.Expand(req.URL, map[string]string{
28052 "merchantId": strconv.FormatUint(c.merchantId, 10),
28053 })
28054 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28055 }
28056
28057
28058
28059
28060
28061
28062
28063 func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestOrderResponse, error) {
28064 gensupport.SetOptions(c.urlParams_, opts...)
28065 res, err := c.doRequest("json")
28066 if res != nil && res.StatusCode == http.StatusNotModified {
28067 if res.Body != nil {
28068 res.Body.Close()
28069 }
28070 return nil, gensupport.WrapError(&googleapi.Error{
28071 Code: res.StatusCode,
28072 Header: res.Header,
28073 })
28074 }
28075 if err != nil {
28076 return nil, err
28077 }
28078 defer googleapi.CloseBody(res)
28079 if err := googleapi.CheckResponse(res); err != nil {
28080 return nil, gensupport.WrapError(err)
28081 }
28082 ret := &OrdersCreateTestOrderResponse{
28083 ServerResponse: googleapi.ServerResponse{
28084 Header: res.Header,
28085 HTTPStatusCode: res.StatusCode,
28086 },
28087 }
28088 target := &ret
28089 if err := gensupport.DecodeResponse(target, res); err != nil {
28090 return nil, err
28091 }
28092 return ret, nil
28093 }
28094
28095 type OrdersCreatetestreturnCall struct {
28096 s *APIService
28097 merchantId uint64
28098 orderId string
28099 orderscreatetestreturnrequest *OrdersCreateTestReturnRequest
28100 urlParams_ gensupport.URLParams
28101 ctx_ context.Context
28102 header_ http.Header
28103 }
28104
28105
28106
28107
28108
28109
28110 func (r *OrdersService) Createtestreturn(merchantId uint64, orderId string, orderscreatetestreturnrequest *OrdersCreateTestReturnRequest) *OrdersCreatetestreturnCall {
28111 c := &OrdersCreatetestreturnCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28112 c.merchantId = merchantId
28113 c.orderId = orderId
28114 c.orderscreatetestreturnrequest = orderscreatetestreturnrequest
28115 return c
28116 }
28117
28118
28119
28120
28121 func (c *OrdersCreatetestreturnCall) Fields(s ...googleapi.Field) *OrdersCreatetestreturnCall {
28122 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28123 return c
28124 }
28125
28126
28127 func (c *OrdersCreatetestreturnCall) Context(ctx context.Context) *OrdersCreatetestreturnCall {
28128 c.ctx_ = ctx
28129 return c
28130 }
28131
28132
28133
28134 func (c *OrdersCreatetestreturnCall) Header() http.Header {
28135 if c.header_ == nil {
28136 c.header_ = make(http.Header)
28137 }
28138 return c.header_
28139 }
28140
28141 func (c *OrdersCreatetestreturnCall) doRequest(alt string) (*http.Response, error) {
28142 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28143 var body io.Reader = nil
28144 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscreatetestreturnrequest)
28145 if err != nil {
28146 return nil, err
28147 }
28148 c.urlParams_.Set("alt", alt)
28149 c.urlParams_.Set("prettyPrint", "false")
28150 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/testreturn")
28151 urls += "?" + c.urlParams_.Encode()
28152 req, err := http.NewRequest("POST", urls, body)
28153 if err != nil {
28154 return nil, err
28155 }
28156 req.Header = reqHeaders
28157 googleapi.Expand(req.URL, map[string]string{
28158 "merchantId": strconv.FormatUint(c.merchantId, 10),
28159 "orderId": c.orderId,
28160 })
28161 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28162 }
28163
28164
28165
28166
28167
28168
28169
28170 func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestReturnResponse, error) {
28171 gensupport.SetOptions(c.urlParams_, opts...)
28172 res, err := c.doRequest("json")
28173 if res != nil && res.StatusCode == http.StatusNotModified {
28174 if res.Body != nil {
28175 res.Body.Close()
28176 }
28177 return nil, gensupport.WrapError(&googleapi.Error{
28178 Code: res.StatusCode,
28179 Header: res.Header,
28180 })
28181 }
28182 if err != nil {
28183 return nil, err
28184 }
28185 defer googleapi.CloseBody(res)
28186 if err := googleapi.CheckResponse(res); err != nil {
28187 return nil, gensupport.WrapError(err)
28188 }
28189 ret := &OrdersCreateTestReturnResponse{
28190 ServerResponse: googleapi.ServerResponse{
28191 Header: res.Header,
28192 HTTPStatusCode: res.StatusCode,
28193 },
28194 }
28195 target := &ret
28196 if err := gensupport.DecodeResponse(target, res); err != nil {
28197 return nil, err
28198 }
28199 return ret, nil
28200 }
28201
28202 type OrdersGetCall struct {
28203 s *APIService
28204 merchantId uint64
28205 orderId string
28206 urlParams_ gensupport.URLParams
28207 ifNoneMatch_ string
28208 ctx_ context.Context
28209 header_ http.Header
28210 }
28211
28212
28213
28214
28215
28216
28217 func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall {
28218 c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28219 c.merchantId = merchantId
28220 c.orderId = orderId
28221 return c
28222 }
28223
28224
28225
28226
28227 func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall {
28228 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28229 return c
28230 }
28231
28232
28233
28234
28235 func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall {
28236 c.ifNoneMatch_ = entityTag
28237 return c
28238 }
28239
28240
28241 func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall {
28242 c.ctx_ = ctx
28243 return c
28244 }
28245
28246
28247
28248 func (c *OrdersGetCall) Header() http.Header {
28249 if c.header_ == nil {
28250 c.header_ = make(http.Header)
28251 }
28252 return c.header_
28253 }
28254
28255 func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) {
28256 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28257 if c.ifNoneMatch_ != "" {
28258 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28259 }
28260 var body io.Reader = nil
28261 c.urlParams_.Set("alt", alt)
28262 c.urlParams_.Set("prettyPrint", "false")
28263 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}")
28264 urls += "?" + c.urlParams_.Encode()
28265 req, err := http.NewRequest("GET", urls, body)
28266 if err != nil {
28267 return nil, err
28268 }
28269 req.Header = reqHeaders
28270 googleapi.Expand(req.URL, map[string]string{
28271 "merchantId": strconv.FormatUint(c.merchantId, 10),
28272 "orderId": c.orderId,
28273 })
28274 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28275 }
28276
28277
28278
28279
28280
28281
28282 func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) {
28283 gensupport.SetOptions(c.urlParams_, opts...)
28284 res, err := c.doRequest("json")
28285 if res != nil && res.StatusCode == http.StatusNotModified {
28286 if res.Body != nil {
28287 res.Body.Close()
28288 }
28289 return nil, gensupport.WrapError(&googleapi.Error{
28290 Code: res.StatusCode,
28291 Header: res.Header,
28292 })
28293 }
28294 if err != nil {
28295 return nil, err
28296 }
28297 defer googleapi.CloseBody(res)
28298 if err := googleapi.CheckResponse(res); err != nil {
28299 return nil, gensupport.WrapError(err)
28300 }
28301 ret := &Order{
28302 ServerResponse: googleapi.ServerResponse{
28303 Header: res.Header,
28304 HTTPStatusCode: res.StatusCode,
28305 },
28306 }
28307 target := &ret
28308 if err := gensupport.DecodeResponse(target, res); err != nil {
28309 return nil, err
28310 }
28311 return ret, nil
28312 }
28313
28314 type OrdersGetbymerchantorderidCall struct {
28315 s *APIService
28316 merchantId uint64
28317 merchantOrderId string
28318 urlParams_ gensupport.URLParams
28319 ifNoneMatch_ string
28320 ctx_ context.Context
28321 header_ http.Header
28322 }
28323
28324
28325
28326
28327
28328
28329 func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall {
28330 c := &OrdersGetbymerchantorderidCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28331 c.merchantId = merchantId
28332 c.merchantOrderId = merchantOrderId
28333 return c
28334 }
28335
28336
28337
28338
28339 func (c *OrdersGetbymerchantorderidCall) Fields(s ...googleapi.Field) *OrdersGetbymerchantorderidCall {
28340 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28341 return c
28342 }
28343
28344
28345
28346
28347 func (c *OrdersGetbymerchantorderidCall) IfNoneMatch(entityTag string) *OrdersGetbymerchantorderidCall {
28348 c.ifNoneMatch_ = entityTag
28349 return c
28350 }
28351
28352
28353 func (c *OrdersGetbymerchantorderidCall) Context(ctx context.Context) *OrdersGetbymerchantorderidCall {
28354 c.ctx_ = ctx
28355 return c
28356 }
28357
28358
28359
28360 func (c *OrdersGetbymerchantorderidCall) Header() http.Header {
28361 if c.header_ == nil {
28362 c.header_ = make(http.Header)
28363 }
28364 return c.header_
28365 }
28366
28367 func (c *OrdersGetbymerchantorderidCall) doRequest(alt string) (*http.Response, error) {
28368 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28369 if c.ifNoneMatch_ != "" {
28370 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28371 }
28372 var body io.Reader = nil
28373 c.urlParams_.Set("alt", alt)
28374 c.urlParams_.Set("prettyPrint", "false")
28375 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/ordersbymerchantid/{merchantOrderId}")
28376 urls += "?" + c.urlParams_.Encode()
28377 req, err := http.NewRequest("GET", urls, body)
28378 if err != nil {
28379 return nil, err
28380 }
28381 req.Header = reqHeaders
28382 googleapi.Expand(req.URL, map[string]string{
28383 "merchantId": strconv.FormatUint(c.merchantId, 10),
28384 "merchantOrderId": c.merchantOrderId,
28385 })
28386 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28387 }
28388
28389
28390
28391
28392
28393
28394
28395 func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersGetByMerchantOrderIdResponse, error) {
28396 gensupport.SetOptions(c.urlParams_, opts...)
28397 res, err := c.doRequest("json")
28398 if res != nil && res.StatusCode == http.StatusNotModified {
28399 if res.Body != nil {
28400 res.Body.Close()
28401 }
28402 return nil, gensupport.WrapError(&googleapi.Error{
28403 Code: res.StatusCode,
28404 Header: res.Header,
28405 })
28406 }
28407 if err != nil {
28408 return nil, err
28409 }
28410 defer googleapi.CloseBody(res)
28411 if err := googleapi.CheckResponse(res); err != nil {
28412 return nil, gensupport.WrapError(err)
28413 }
28414 ret := &OrdersGetByMerchantOrderIdResponse{
28415 ServerResponse: googleapi.ServerResponse{
28416 Header: res.Header,
28417 HTTPStatusCode: res.StatusCode,
28418 },
28419 }
28420 target := &ret
28421 if err := gensupport.DecodeResponse(target, res); err != nil {
28422 return nil, err
28423 }
28424 return ret, nil
28425 }
28426
28427 type OrdersGettestordertemplateCall struct {
28428 s *APIService
28429 merchantId uint64
28430 templateName string
28431 urlParams_ gensupport.URLParams
28432 ifNoneMatch_ string
28433 ctx_ context.Context
28434 header_ http.Header
28435 }
28436
28437
28438
28439
28440
28441
28442
28443 func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName string) *OrdersGettestordertemplateCall {
28444 c := &OrdersGettestordertemplateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28445 c.merchantId = merchantId
28446 c.templateName = templateName
28447 return c
28448 }
28449
28450
28451
28452 func (c *OrdersGettestordertemplateCall) Country(country string) *OrdersGettestordertemplateCall {
28453 c.urlParams_.Set("country", country)
28454 return c
28455 }
28456
28457
28458
28459
28460 func (c *OrdersGettestordertemplateCall) Fields(s ...googleapi.Field) *OrdersGettestordertemplateCall {
28461 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28462 return c
28463 }
28464
28465
28466
28467
28468 func (c *OrdersGettestordertemplateCall) IfNoneMatch(entityTag string) *OrdersGettestordertemplateCall {
28469 c.ifNoneMatch_ = entityTag
28470 return c
28471 }
28472
28473
28474 func (c *OrdersGettestordertemplateCall) Context(ctx context.Context) *OrdersGettestordertemplateCall {
28475 c.ctx_ = ctx
28476 return c
28477 }
28478
28479
28480
28481 func (c *OrdersGettestordertemplateCall) Header() http.Header {
28482 if c.header_ == nil {
28483 c.header_ = make(http.Header)
28484 }
28485 return c.header_
28486 }
28487
28488 func (c *OrdersGettestordertemplateCall) doRequest(alt string) (*http.Response, error) {
28489 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28490 if c.ifNoneMatch_ != "" {
28491 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28492 }
28493 var body io.Reader = nil
28494 c.urlParams_.Set("alt", alt)
28495 c.urlParams_.Set("prettyPrint", "false")
28496 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testordertemplates/{templateName}")
28497 urls += "?" + c.urlParams_.Encode()
28498 req, err := http.NewRequest("GET", urls, body)
28499 if err != nil {
28500 return nil, err
28501 }
28502 req.Header = reqHeaders
28503 googleapi.Expand(req.URL, map[string]string{
28504 "merchantId": strconv.FormatUint(c.merchantId, 10),
28505 "templateName": c.templateName,
28506 })
28507 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28508 }
28509
28510
28511
28512
28513
28514
28515
28516 func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*OrdersGetTestOrderTemplateResponse, error) {
28517 gensupport.SetOptions(c.urlParams_, opts...)
28518 res, err := c.doRequest("json")
28519 if res != nil && res.StatusCode == http.StatusNotModified {
28520 if res.Body != nil {
28521 res.Body.Close()
28522 }
28523 return nil, gensupport.WrapError(&googleapi.Error{
28524 Code: res.StatusCode,
28525 Header: res.Header,
28526 })
28527 }
28528 if err != nil {
28529 return nil, err
28530 }
28531 defer googleapi.CloseBody(res)
28532 if err := googleapi.CheckResponse(res); err != nil {
28533 return nil, gensupport.WrapError(err)
28534 }
28535 ret := &OrdersGetTestOrderTemplateResponse{
28536 ServerResponse: googleapi.ServerResponse{
28537 Header: res.Header,
28538 HTTPStatusCode: res.StatusCode,
28539 },
28540 }
28541 target := &ret
28542 if err := gensupport.DecodeResponse(target, res); err != nil {
28543 return nil, err
28544 }
28545 return ret, nil
28546 }
28547
28548 type OrdersInstorerefundlineitemCall struct {
28549 s *APIService
28550 merchantId uint64
28551 orderId string
28552 ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest
28553 urlParams_ gensupport.URLParams
28554 ctx_ context.Context
28555 header_ http.Header
28556 }
28557
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571 func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest) *OrdersInstorerefundlineitemCall {
28572 c := &OrdersInstorerefundlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28573 c.merchantId = merchantId
28574 c.orderId = orderId
28575 c.ordersinstorerefundlineitemrequest = ordersinstorerefundlineitemrequest
28576 return c
28577 }
28578
28579
28580
28581
28582 func (c *OrdersInstorerefundlineitemCall) Fields(s ...googleapi.Field) *OrdersInstorerefundlineitemCall {
28583 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28584 return c
28585 }
28586
28587
28588 func (c *OrdersInstorerefundlineitemCall) Context(ctx context.Context) *OrdersInstorerefundlineitemCall {
28589 c.ctx_ = ctx
28590 return c
28591 }
28592
28593
28594
28595 func (c *OrdersInstorerefundlineitemCall) Header() http.Header {
28596 if c.header_ == nil {
28597 c.header_ = make(http.Header)
28598 }
28599 return c.header_
28600 }
28601
28602 func (c *OrdersInstorerefundlineitemCall) doRequest(alt string) (*http.Response, error) {
28603 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28604 var body io.Reader = nil
28605 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersinstorerefundlineitemrequest)
28606 if err != nil {
28607 return nil, err
28608 }
28609 c.urlParams_.Set("alt", alt)
28610 c.urlParams_.Set("prettyPrint", "false")
28611 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/inStoreRefundLineItem")
28612 urls += "?" + c.urlParams_.Encode()
28613 req, err := http.NewRequest("POST", urls, body)
28614 if err != nil {
28615 return nil, err
28616 }
28617 req.Header = reqHeaders
28618 googleapi.Expand(req.URL, map[string]string{
28619 "merchantId": strconv.FormatUint(c.merchantId, 10),
28620 "orderId": c.orderId,
28621 })
28622 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28623 }
28624
28625
28626
28627
28628
28629
28630
28631 func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersInStoreRefundLineItemResponse, error) {
28632 gensupport.SetOptions(c.urlParams_, opts...)
28633 res, err := c.doRequest("json")
28634 if res != nil && res.StatusCode == http.StatusNotModified {
28635 if res.Body != nil {
28636 res.Body.Close()
28637 }
28638 return nil, gensupport.WrapError(&googleapi.Error{
28639 Code: res.StatusCode,
28640 Header: res.Header,
28641 })
28642 }
28643 if err != nil {
28644 return nil, err
28645 }
28646 defer googleapi.CloseBody(res)
28647 if err := googleapi.CheckResponse(res); err != nil {
28648 return nil, gensupport.WrapError(err)
28649 }
28650 ret := &OrdersInStoreRefundLineItemResponse{
28651 ServerResponse: googleapi.ServerResponse{
28652 Header: res.Header,
28653 HTTPStatusCode: res.StatusCode,
28654 },
28655 }
28656 target := &ret
28657 if err := gensupport.DecodeResponse(target, res); err != nil {
28658 return nil, err
28659 }
28660 return ret, nil
28661 }
28662
28663 type OrdersListCall struct {
28664 s *APIService
28665 merchantId uint64
28666 urlParams_ gensupport.URLParams
28667 ifNoneMatch_ string
28668 ctx_ context.Context
28669 header_ http.Header
28670 }
28671
28672
28673
28674
28675
28676 func (r *OrdersService) List(merchantId uint64) *OrdersListCall {
28677 c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28678 c.merchantId = merchantId
28679 return c
28680 }
28681
28682
28683
28684
28685
28686
28687
28688 func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall {
28689 c.urlParams_.Set("acknowledged", fmt.Sprint(acknowledged))
28690 return c
28691 }
28692
28693
28694
28695
28696 func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall {
28697 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
28698 return c
28699 }
28700
28701
28702
28703
28704 func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall {
28705 c.urlParams_.Set("orderBy", orderBy)
28706 return c
28707 }
28708
28709
28710
28711 func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall {
28712 c.urlParams_.Set("pageToken", pageToken)
28713 return c
28714 }
28715
28716
28717
28718 func (c *OrdersListCall) PlacedDateEnd(placedDateEnd string) *OrdersListCall {
28719 c.urlParams_.Set("placedDateEnd", placedDateEnd)
28720 return c
28721 }
28722
28723
28724
28725 func (c *OrdersListCall) PlacedDateStart(placedDateStart string) *OrdersListCall {
28726 c.urlParams_.Set("placedDateStart", placedDateStart)
28727 return c
28728 }
28729
28730
28731
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741
28742
28743
28744
28745
28746
28747
28748
28749
28750
28751
28752
28753
28754
28755
28756 func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall {
28757 c.urlParams_.SetMulti("statuses", append([]string{}, statuses...))
28758 return c
28759 }
28760
28761
28762
28763
28764 func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall {
28765 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28766 return c
28767 }
28768
28769
28770
28771
28772 func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall {
28773 c.ifNoneMatch_ = entityTag
28774 return c
28775 }
28776
28777
28778 func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall {
28779 c.ctx_ = ctx
28780 return c
28781 }
28782
28783
28784
28785 func (c *OrdersListCall) Header() http.Header {
28786 if c.header_ == nil {
28787 c.header_ = make(http.Header)
28788 }
28789 return c.header_
28790 }
28791
28792 func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) {
28793 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28794 if c.ifNoneMatch_ != "" {
28795 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28796 }
28797 var body io.Reader = nil
28798 c.urlParams_.Set("alt", alt)
28799 c.urlParams_.Set("prettyPrint", "false")
28800 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders")
28801 urls += "?" + c.urlParams_.Encode()
28802 req, err := http.NewRequest("GET", urls, body)
28803 if err != nil {
28804 return nil, err
28805 }
28806 req.Header = reqHeaders
28807 googleapi.Expand(req.URL, map[string]string{
28808 "merchantId": strconv.FormatUint(c.merchantId, 10),
28809 })
28810 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28811 }
28812
28813
28814
28815
28816
28817
28818
28819 func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) {
28820 gensupport.SetOptions(c.urlParams_, opts...)
28821 res, err := c.doRequest("json")
28822 if res != nil && res.StatusCode == http.StatusNotModified {
28823 if res.Body != nil {
28824 res.Body.Close()
28825 }
28826 return nil, gensupport.WrapError(&googleapi.Error{
28827 Code: res.StatusCode,
28828 Header: res.Header,
28829 })
28830 }
28831 if err != nil {
28832 return nil, err
28833 }
28834 defer googleapi.CloseBody(res)
28835 if err := googleapi.CheckResponse(res); err != nil {
28836 return nil, gensupport.WrapError(err)
28837 }
28838 ret := &OrdersListResponse{
28839 ServerResponse: googleapi.ServerResponse{
28840 Header: res.Header,
28841 HTTPStatusCode: res.StatusCode,
28842 },
28843 }
28844 target := &ret
28845 if err := gensupport.DecodeResponse(target, res); err != nil {
28846 return nil, err
28847 }
28848 return ret, nil
28849 }
28850
28851
28852
28853
28854 func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error {
28855 c.ctx_ = ctx
28856 defer c.PageToken(c.urlParams_.Get("pageToken"))
28857 for {
28858 x, err := c.Do()
28859 if err != nil {
28860 return err
28861 }
28862 if err := f(x); err != nil {
28863 return err
28864 }
28865 if x.NextPageToken == "" {
28866 return nil
28867 }
28868 c.PageToken(x.NextPageToken)
28869 }
28870 }
28871
28872 type OrdersRefunditemCall struct {
28873 s *APIService
28874 merchantId uint64
28875 orderId string
28876 ordersrefunditemrequest *OrdersRefundItemRequest
28877 urlParams_ gensupport.URLParams
28878 ctx_ context.Context
28879 header_ http.Header
28880 }
28881
28882
28883
28884
28885
28886
28887 func (r *OrdersService) Refunditem(merchantId uint64, orderId string, ordersrefunditemrequest *OrdersRefundItemRequest) *OrdersRefunditemCall {
28888 c := &OrdersRefunditemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28889 c.merchantId = merchantId
28890 c.orderId = orderId
28891 c.ordersrefunditemrequest = ordersrefunditemrequest
28892 return c
28893 }
28894
28895
28896
28897
28898 func (c *OrdersRefunditemCall) Fields(s ...googleapi.Field) *OrdersRefunditemCall {
28899 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28900 return c
28901 }
28902
28903
28904 func (c *OrdersRefunditemCall) Context(ctx context.Context) *OrdersRefunditemCall {
28905 c.ctx_ = ctx
28906 return c
28907 }
28908
28909
28910
28911 func (c *OrdersRefunditemCall) Header() http.Header {
28912 if c.header_ == nil {
28913 c.header_ = make(http.Header)
28914 }
28915 return c.header_
28916 }
28917
28918 func (c *OrdersRefunditemCall) doRequest(alt string) (*http.Response, error) {
28919 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28920 var body io.Reader = nil
28921 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrefunditemrequest)
28922 if err != nil {
28923 return nil, err
28924 }
28925 c.urlParams_.Set("alt", alt)
28926 c.urlParams_.Set("prettyPrint", "false")
28927 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/refunditem")
28928 urls += "?" + c.urlParams_.Encode()
28929 req, err := http.NewRequest("POST", urls, body)
28930 if err != nil {
28931 return nil, err
28932 }
28933 req.Header = reqHeaders
28934 googleapi.Expand(req.URL, map[string]string{
28935 "merchantId": strconv.FormatUint(c.merchantId, 10),
28936 "orderId": c.orderId,
28937 })
28938 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28939 }
28940
28941
28942
28943
28944
28945
28946
28947 func (c *OrdersRefunditemCall) Do(opts ...googleapi.CallOption) (*OrdersRefundItemResponse, error) {
28948 gensupport.SetOptions(c.urlParams_, opts...)
28949 res, err := c.doRequest("json")
28950 if res != nil && res.StatusCode == http.StatusNotModified {
28951 if res.Body != nil {
28952 res.Body.Close()
28953 }
28954 return nil, gensupport.WrapError(&googleapi.Error{
28955 Code: res.StatusCode,
28956 Header: res.Header,
28957 })
28958 }
28959 if err != nil {
28960 return nil, err
28961 }
28962 defer googleapi.CloseBody(res)
28963 if err := googleapi.CheckResponse(res); err != nil {
28964 return nil, gensupport.WrapError(err)
28965 }
28966 ret := &OrdersRefundItemResponse{
28967 ServerResponse: googleapi.ServerResponse{
28968 Header: res.Header,
28969 HTTPStatusCode: res.StatusCode,
28970 },
28971 }
28972 target := &ret
28973 if err := gensupport.DecodeResponse(target, res); err != nil {
28974 return nil, err
28975 }
28976 return ret, nil
28977 }
28978
28979 type OrdersRefundorderCall struct {
28980 s *APIService
28981 merchantId uint64
28982 orderId string
28983 ordersrefundorderrequest *OrdersRefundOrderRequest
28984 urlParams_ gensupport.URLParams
28985 ctx_ context.Context
28986 header_ http.Header
28987 }
28988
28989
28990
28991
28992
28993
28994 func (r *OrdersService) Refundorder(merchantId uint64, orderId string, ordersrefundorderrequest *OrdersRefundOrderRequest) *OrdersRefundorderCall {
28995 c := &OrdersRefundorderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28996 c.merchantId = merchantId
28997 c.orderId = orderId
28998 c.ordersrefundorderrequest = ordersrefundorderrequest
28999 return c
29000 }
29001
29002
29003
29004
29005 func (c *OrdersRefundorderCall) Fields(s ...googleapi.Field) *OrdersRefundorderCall {
29006 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29007 return c
29008 }
29009
29010
29011 func (c *OrdersRefundorderCall) Context(ctx context.Context) *OrdersRefundorderCall {
29012 c.ctx_ = ctx
29013 return c
29014 }
29015
29016
29017
29018 func (c *OrdersRefundorderCall) Header() http.Header {
29019 if c.header_ == nil {
29020 c.header_ = make(http.Header)
29021 }
29022 return c.header_
29023 }
29024
29025 func (c *OrdersRefundorderCall) doRequest(alt string) (*http.Response, error) {
29026 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29027 var body io.Reader = nil
29028 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrefundorderrequest)
29029 if err != nil {
29030 return nil, err
29031 }
29032 c.urlParams_.Set("alt", alt)
29033 c.urlParams_.Set("prettyPrint", "false")
29034 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/refundorder")
29035 urls += "?" + c.urlParams_.Encode()
29036 req, err := http.NewRequest("POST", urls, body)
29037 if err != nil {
29038 return nil, err
29039 }
29040 req.Header = reqHeaders
29041 googleapi.Expand(req.URL, map[string]string{
29042 "merchantId": strconv.FormatUint(c.merchantId, 10),
29043 "orderId": c.orderId,
29044 })
29045 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29046 }
29047
29048
29049
29050
29051
29052
29053
29054 func (c *OrdersRefundorderCall) Do(opts ...googleapi.CallOption) (*OrdersRefundOrderResponse, error) {
29055 gensupport.SetOptions(c.urlParams_, opts...)
29056 res, err := c.doRequest("json")
29057 if res != nil && res.StatusCode == http.StatusNotModified {
29058 if res.Body != nil {
29059 res.Body.Close()
29060 }
29061 return nil, gensupport.WrapError(&googleapi.Error{
29062 Code: res.StatusCode,
29063 Header: res.Header,
29064 })
29065 }
29066 if err != nil {
29067 return nil, err
29068 }
29069 defer googleapi.CloseBody(res)
29070 if err := googleapi.CheckResponse(res); err != nil {
29071 return nil, gensupport.WrapError(err)
29072 }
29073 ret := &OrdersRefundOrderResponse{
29074 ServerResponse: googleapi.ServerResponse{
29075 Header: res.Header,
29076 HTTPStatusCode: res.StatusCode,
29077 },
29078 }
29079 target := &ret
29080 if err := gensupport.DecodeResponse(target, res); err != nil {
29081 return nil, err
29082 }
29083 return ret, nil
29084 }
29085
29086 type OrdersRejectreturnlineitemCall struct {
29087 s *APIService
29088 merchantId uint64
29089 orderId string
29090 ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest
29091 urlParams_ gensupport.URLParams
29092 ctx_ context.Context
29093 header_ http.Header
29094 }
29095
29096
29097
29098
29099
29100
29101 func (r *OrdersService) Rejectreturnlineitem(merchantId uint64, orderId string, ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest) *OrdersRejectreturnlineitemCall {
29102 c := &OrdersRejectreturnlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29103 c.merchantId = merchantId
29104 c.orderId = orderId
29105 c.ordersrejectreturnlineitemrequest = ordersrejectreturnlineitemrequest
29106 return c
29107 }
29108
29109
29110
29111
29112 func (c *OrdersRejectreturnlineitemCall) Fields(s ...googleapi.Field) *OrdersRejectreturnlineitemCall {
29113 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29114 return c
29115 }
29116
29117
29118 func (c *OrdersRejectreturnlineitemCall) Context(ctx context.Context) *OrdersRejectreturnlineitemCall {
29119 c.ctx_ = ctx
29120 return c
29121 }
29122
29123
29124
29125 func (c *OrdersRejectreturnlineitemCall) Header() http.Header {
29126 if c.header_ == nil {
29127 c.header_ = make(http.Header)
29128 }
29129 return c.header_
29130 }
29131
29132 func (c *OrdersRejectreturnlineitemCall) doRequest(alt string) (*http.Response, error) {
29133 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29134 var body io.Reader = nil
29135 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrejectreturnlineitemrequest)
29136 if err != nil {
29137 return nil, err
29138 }
29139 c.urlParams_.Set("alt", alt)
29140 c.urlParams_.Set("prettyPrint", "false")
29141 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/rejectReturnLineItem")
29142 urls += "?" + c.urlParams_.Encode()
29143 req, err := http.NewRequest("POST", urls, body)
29144 if err != nil {
29145 return nil, err
29146 }
29147 req.Header = reqHeaders
29148 googleapi.Expand(req.URL, map[string]string{
29149 "merchantId": strconv.FormatUint(c.merchantId, 10),
29150 "orderId": c.orderId,
29151 })
29152 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29153 }
29154
29155
29156
29157
29158
29159
29160
29161 func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRejectReturnLineItemResponse, error) {
29162 gensupport.SetOptions(c.urlParams_, opts...)
29163 res, err := c.doRequest("json")
29164 if res != nil && res.StatusCode == http.StatusNotModified {
29165 if res.Body != nil {
29166 res.Body.Close()
29167 }
29168 return nil, gensupport.WrapError(&googleapi.Error{
29169 Code: res.StatusCode,
29170 Header: res.Header,
29171 })
29172 }
29173 if err != nil {
29174 return nil, err
29175 }
29176 defer googleapi.CloseBody(res)
29177 if err := googleapi.CheckResponse(res); err != nil {
29178 return nil, gensupport.WrapError(err)
29179 }
29180 ret := &OrdersRejectReturnLineItemResponse{
29181 ServerResponse: googleapi.ServerResponse{
29182 Header: res.Header,
29183 HTTPStatusCode: res.StatusCode,
29184 },
29185 }
29186 target := &ret
29187 if err := gensupport.DecodeResponse(target, res); err != nil {
29188 return nil, err
29189 }
29190 return ret, nil
29191 }
29192
29193 type OrdersReturnrefundlineitemCall struct {
29194 s *APIService
29195 merchantId uint64
29196 orderId string
29197 ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest
29198 urlParams_ gensupport.URLParams
29199 ctx_ context.Context
29200 header_ http.Header
29201 }
29202
29203
29204
29205
29206
29207
29208
29209
29210
29211
29212
29213 func (r *OrdersService) Returnrefundlineitem(merchantId uint64, orderId string, ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest) *OrdersReturnrefundlineitemCall {
29214 c := &OrdersReturnrefundlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29215 c.merchantId = merchantId
29216 c.orderId = orderId
29217 c.ordersreturnrefundlineitemrequest = ordersreturnrefundlineitemrequest
29218 return c
29219 }
29220
29221
29222
29223
29224 func (c *OrdersReturnrefundlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnrefundlineitemCall {
29225 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29226 return c
29227 }
29228
29229
29230 func (c *OrdersReturnrefundlineitemCall) Context(ctx context.Context) *OrdersReturnrefundlineitemCall {
29231 c.ctx_ = ctx
29232 return c
29233 }
29234
29235
29236
29237 func (c *OrdersReturnrefundlineitemCall) Header() http.Header {
29238 if c.header_ == nil {
29239 c.header_ = make(http.Header)
29240 }
29241 return c.header_
29242 }
29243
29244 func (c *OrdersReturnrefundlineitemCall) doRequest(alt string) (*http.Response, error) {
29245 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29246 var body io.Reader = nil
29247 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersreturnrefundlineitemrequest)
29248 if err != nil {
29249 return nil, err
29250 }
29251 c.urlParams_.Set("alt", alt)
29252 c.urlParams_.Set("prettyPrint", "false")
29253 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/returnRefundLineItem")
29254 urls += "?" + c.urlParams_.Encode()
29255 req, err := http.NewRequest("POST", urls, body)
29256 if err != nil {
29257 return nil, err
29258 }
29259 req.Header = reqHeaders
29260 googleapi.Expand(req.URL, map[string]string{
29261 "merchantId": strconv.FormatUint(c.merchantId, 10),
29262 "orderId": c.orderId,
29263 })
29264 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29265 }
29266
29267
29268
29269
29270
29271
29272
29273 func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnRefundLineItemResponse, error) {
29274 gensupport.SetOptions(c.urlParams_, opts...)
29275 res, err := c.doRequest("json")
29276 if res != nil && res.StatusCode == http.StatusNotModified {
29277 if res.Body != nil {
29278 res.Body.Close()
29279 }
29280 return nil, gensupport.WrapError(&googleapi.Error{
29281 Code: res.StatusCode,
29282 Header: res.Header,
29283 })
29284 }
29285 if err != nil {
29286 return nil, err
29287 }
29288 defer googleapi.CloseBody(res)
29289 if err := googleapi.CheckResponse(res); err != nil {
29290 return nil, gensupport.WrapError(err)
29291 }
29292 ret := &OrdersReturnRefundLineItemResponse{
29293 ServerResponse: googleapi.ServerResponse{
29294 Header: res.Header,
29295 HTTPStatusCode: res.StatusCode,
29296 },
29297 }
29298 target := &ret
29299 if err := gensupport.DecodeResponse(target, res); err != nil {
29300 return nil, err
29301 }
29302 return ret, nil
29303 }
29304
29305 type OrdersSetlineitemmetadataCall struct {
29306 s *APIService
29307 merchantId uint64
29308 orderId string
29309 orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest
29310 urlParams_ gensupport.URLParams
29311 ctx_ context.Context
29312 header_ http.Header
29313 }
29314
29315
29316
29317
29318
29319
29320
29321
29322
29323
29324 func (r *OrdersService) Setlineitemmetadata(merchantId uint64, orderId string, orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest) *OrdersSetlineitemmetadataCall {
29325 c := &OrdersSetlineitemmetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29326 c.merchantId = merchantId
29327 c.orderId = orderId
29328 c.orderssetlineitemmetadatarequest = orderssetlineitemmetadatarequest
29329 return c
29330 }
29331
29332
29333
29334
29335 func (c *OrdersSetlineitemmetadataCall) Fields(s ...googleapi.Field) *OrdersSetlineitemmetadataCall {
29336 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29337 return c
29338 }
29339
29340
29341 func (c *OrdersSetlineitemmetadataCall) Context(ctx context.Context) *OrdersSetlineitemmetadataCall {
29342 c.ctx_ = ctx
29343 return c
29344 }
29345
29346
29347
29348 func (c *OrdersSetlineitemmetadataCall) Header() http.Header {
29349 if c.header_ == nil {
29350 c.header_ = make(http.Header)
29351 }
29352 return c.header_
29353 }
29354
29355 func (c *OrdersSetlineitemmetadataCall) doRequest(alt string) (*http.Response, error) {
29356 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29357 var body io.Reader = nil
29358 body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderssetlineitemmetadatarequest)
29359 if err != nil {
29360 return nil, err
29361 }
29362 c.urlParams_.Set("alt", alt)
29363 c.urlParams_.Set("prettyPrint", "false")
29364 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/setLineItemMetadata")
29365 urls += "?" + c.urlParams_.Encode()
29366 req, err := http.NewRequest("POST", urls, body)
29367 if err != nil {
29368 return nil, err
29369 }
29370 req.Header = reqHeaders
29371 googleapi.Expand(req.URL, map[string]string{
29372 "merchantId": strconv.FormatUint(c.merchantId, 10),
29373 "orderId": c.orderId,
29374 })
29375 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29376 }
29377
29378
29379
29380
29381
29382
29383
29384 func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*OrdersSetLineItemMetadataResponse, error) {
29385 gensupport.SetOptions(c.urlParams_, opts...)
29386 res, err := c.doRequest("json")
29387 if res != nil && res.StatusCode == http.StatusNotModified {
29388 if res.Body != nil {
29389 res.Body.Close()
29390 }
29391 return nil, gensupport.WrapError(&googleapi.Error{
29392 Code: res.StatusCode,
29393 Header: res.Header,
29394 })
29395 }
29396 if err != nil {
29397 return nil, err
29398 }
29399 defer googleapi.CloseBody(res)
29400 if err := googleapi.CheckResponse(res); err != nil {
29401 return nil, gensupport.WrapError(err)
29402 }
29403 ret := &OrdersSetLineItemMetadataResponse{
29404 ServerResponse: googleapi.ServerResponse{
29405 Header: res.Header,
29406 HTTPStatusCode: res.StatusCode,
29407 },
29408 }
29409 target := &ret
29410 if err := gensupport.DecodeResponse(target, res); err != nil {
29411 return nil, err
29412 }
29413 return ret, nil
29414 }
29415
29416 type OrdersShiplineitemsCall struct {
29417 s *APIService
29418 merchantId uint64
29419 orderId string
29420 ordersshiplineitemsrequest *OrdersShipLineItemsRequest
29421 urlParams_ gensupport.URLParams
29422 ctx_ context.Context
29423 header_ http.Header
29424 }
29425
29426
29427
29428
29429
29430
29431 func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ordersshiplineitemsrequest *OrdersShipLineItemsRequest) *OrdersShiplineitemsCall {
29432 c := &OrdersShiplineitemsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29433 c.merchantId = merchantId
29434 c.orderId = orderId
29435 c.ordersshiplineitemsrequest = ordersshiplineitemsrequest
29436 return c
29437 }
29438
29439
29440
29441
29442 func (c *OrdersShiplineitemsCall) Fields(s ...googleapi.Field) *OrdersShiplineitemsCall {
29443 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29444 return c
29445 }
29446
29447
29448 func (c *OrdersShiplineitemsCall) Context(ctx context.Context) *OrdersShiplineitemsCall {
29449 c.ctx_ = ctx
29450 return c
29451 }
29452
29453
29454
29455 func (c *OrdersShiplineitemsCall) Header() http.Header {
29456 if c.header_ == nil {
29457 c.header_ = make(http.Header)
29458 }
29459 return c.header_
29460 }
29461
29462 func (c *OrdersShiplineitemsCall) doRequest(alt string) (*http.Response, error) {
29463 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29464 var body io.Reader = nil
29465 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersshiplineitemsrequest)
29466 if err != nil {
29467 return nil, err
29468 }
29469 c.urlParams_.Set("alt", alt)
29470 c.urlParams_.Set("prettyPrint", "false")
29471 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/shipLineItems")
29472 urls += "?" + c.urlParams_.Encode()
29473 req, err := http.NewRequest("POST", urls, body)
29474 if err != nil {
29475 return nil, err
29476 }
29477 req.Header = reqHeaders
29478 googleapi.Expand(req.URL, map[string]string{
29479 "merchantId": strconv.FormatUint(c.merchantId, 10),
29480 "orderId": c.orderId,
29481 })
29482 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29483 }
29484
29485
29486
29487
29488
29489
29490
29491 func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipLineItemsResponse, error) {
29492 gensupport.SetOptions(c.urlParams_, opts...)
29493 res, err := c.doRequest("json")
29494 if res != nil && res.StatusCode == http.StatusNotModified {
29495 if res.Body != nil {
29496 res.Body.Close()
29497 }
29498 return nil, gensupport.WrapError(&googleapi.Error{
29499 Code: res.StatusCode,
29500 Header: res.Header,
29501 })
29502 }
29503 if err != nil {
29504 return nil, err
29505 }
29506 defer googleapi.CloseBody(res)
29507 if err := googleapi.CheckResponse(res); err != nil {
29508 return nil, gensupport.WrapError(err)
29509 }
29510 ret := &OrdersShipLineItemsResponse{
29511 ServerResponse: googleapi.ServerResponse{
29512 Header: res.Header,
29513 HTTPStatusCode: res.StatusCode,
29514 },
29515 }
29516 target := &ret
29517 if err := gensupport.DecodeResponse(target, res); err != nil {
29518 return nil, err
29519 }
29520 return ret, nil
29521 }
29522
29523 type OrdersUpdatelineitemshippingdetailsCall struct {
29524 s *APIService
29525 merchantId uint64
29526 orderId string
29527 ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest
29528 urlParams_ gensupport.URLParams
29529 ctx_ context.Context
29530 header_ http.Header
29531 }
29532
29533
29534
29535
29536
29537
29538
29539 func (r *OrdersService) Updatelineitemshippingdetails(merchantId uint64, orderId string, ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest) *OrdersUpdatelineitemshippingdetailsCall {
29540 c := &OrdersUpdatelineitemshippingdetailsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29541 c.merchantId = merchantId
29542 c.orderId = orderId
29543 c.ordersupdatelineitemshippingdetailsrequest = ordersupdatelineitemshippingdetailsrequest
29544 return c
29545 }
29546
29547
29548
29549
29550 func (c *OrdersUpdatelineitemshippingdetailsCall) Fields(s ...googleapi.Field) *OrdersUpdatelineitemshippingdetailsCall {
29551 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29552 return c
29553 }
29554
29555
29556 func (c *OrdersUpdatelineitemshippingdetailsCall) Context(ctx context.Context) *OrdersUpdatelineitemshippingdetailsCall {
29557 c.ctx_ = ctx
29558 return c
29559 }
29560
29561
29562
29563 func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header {
29564 if c.header_ == nil {
29565 c.header_ = make(http.Header)
29566 }
29567 return c.header_
29568 }
29569
29570 func (c *OrdersUpdatelineitemshippingdetailsCall) doRequest(alt string) (*http.Response, error) {
29571 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29572 var body io.Reader = nil
29573 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdatelineitemshippingdetailsrequest)
29574 if err != nil {
29575 return nil, err
29576 }
29577 c.urlParams_.Set("alt", alt)
29578 c.urlParams_.Set("prettyPrint", "false")
29579 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateLineItemShippingDetails")
29580 urls += "?" + c.urlParams_.Encode()
29581 req, err := http.NewRequest("POST", urls, body)
29582 if err != nil {
29583 return nil, err
29584 }
29585 req.Header = reqHeaders
29586 googleapi.Expand(req.URL, map[string]string{
29587 "merchantId": strconv.FormatUint(c.merchantId, 10),
29588 "orderId": c.orderId,
29589 })
29590 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29591 }
29592
29593
29594
29595
29596
29597
29598
29599 func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateLineItemShippingDetailsResponse, error) {
29600 gensupport.SetOptions(c.urlParams_, opts...)
29601 res, err := c.doRequest("json")
29602 if res != nil && res.StatusCode == http.StatusNotModified {
29603 if res.Body != nil {
29604 res.Body.Close()
29605 }
29606 return nil, gensupport.WrapError(&googleapi.Error{
29607 Code: res.StatusCode,
29608 Header: res.Header,
29609 })
29610 }
29611 if err != nil {
29612 return nil, err
29613 }
29614 defer googleapi.CloseBody(res)
29615 if err := googleapi.CheckResponse(res); err != nil {
29616 return nil, gensupport.WrapError(err)
29617 }
29618 ret := &OrdersUpdateLineItemShippingDetailsResponse{
29619 ServerResponse: googleapi.ServerResponse{
29620 Header: res.Header,
29621 HTTPStatusCode: res.StatusCode,
29622 },
29623 }
29624 target := &ret
29625 if err := gensupport.DecodeResponse(target, res); err != nil {
29626 return nil, err
29627 }
29628 return ret, nil
29629 }
29630
29631 type OrdersUpdatemerchantorderidCall struct {
29632 s *APIService
29633 merchantId uint64
29634 orderId string
29635 ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest
29636 urlParams_ gensupport.URLParams
29637 ctx_ context.Context
29638 header_ http.Header
29639 }
29640
29641
29642
29643
29644
29645
29646 func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest) *OrdersUpdatemerchantorderidCall {
29647 c := &OrdersUpdatemerchantorderidCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29648 c.merchantId = merchantId
29649 c.orderId = orderId
29650 c.ordersupdatemerchantorderidrequest = ordersupdatemerchantorderidrequest
29651 return c
29652 }
29653
29654
29655
29656
29657 func (c *OrdersUpdatemerchantorderidCall) Fields(s ...googleapi.Field) *OrdersUpdatemerchantorderidCall {
29658 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29659 return c
29660 }
29661
29662
29663 func (c *OrdersUpdatemerchantorderidCall) Context(ctx context.Context) *OrdersUpdatemerchantorderidCall {
29664 c.ctx_ = ctx
29665 return c
29666 }
29667
29668
29669
29670 func (c *OrdersUpdatemerchantorderidCall) Header() http.Header {
29671 if c.header_ == nil {
29672 c.header_ = make(http.Header)
29673 }
29674 return c.header_
29675 }
29676
29677 func (c *OrdersUpdatemerchantorderidCall) doRequest(alt string) (*http.Response, error) {
29678 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29679 var body io.Reader = nil
29680 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdatemerchantorderidrequest)
29681 if err != nil {
29682 return nil, err
29683 }
29684 c.urlParams_.Set("alt", alt)
29685 c.urlParams_.Set("prettyPrint", "false")
29686 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateMerchantOrderId")
29687 urls += "?" + c.urlParams_.Encode()
29688 req, err := http.NewRequest("POST", urls, body)
29689 if err != nil {
29690 return nil, err
29691 }
29692 req.Header = reqHeaders
29693 googleapi.Expand(req.URL, map[string]string{
29694 "merchantId": strconv.FormatUint(c.merchantId, 10),
29695 "orderId": c.orderId,
29696 })
29697 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29698 }
29699
29700
29701
29702
29703
29704
29705
29706 func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateMerchantOrderIdResponse, error) {
29707 gensupport.SetOptions(c.urlParams_, opts...)
29708 res, err := c.doRequest("json")
29709 if res != nil && res.StatusCode == http.StatusNotModified {
29710 if res.Body != nil {
29711 res.Body.Close()
29712 }
29713 return nil, gensupport.WrapError(&googleapi.Error{
29714 Code: res.StatusCode,
29715 Header: res.Header,
29716 })
29717 }
29718 if err != nil {
29719 return nil, err
29720 }
29721 defer googleapi.CloseBody(res)
29722 if err := googleapi.CheckResponse(res); err != nil {
29723 return nil, gensupport.WrapError(err)
29724 }
29725 ret := &OrdersUpdateMerchantOrderIdResponse{
29726 ServerResponse: googleapi.ServerResponse{
29727 Header: res.Header,
29728 HTTPStatusCode: res.StatusCode,
29729 },
29730 }
29731 target := &ret
29732 if err := gensupport.DecodeResponse(target, res); err != nil {
29733 return nil, err
29734 }
29735 return ret, nil
29736 }
29737
29738 type OrdersUpdateshipmentCall struct {
29739 s *APIService
29740 merchantId uint64
29741 orderId string
29742 ordersupdateshipmentrequest *OrdersUpdateShipmentRequest
29743 urlParams_ gensupport.URLParams
29744 ctx_ context.Context
29745 header_ http.Header
29746 }
29747
29748
29749
29750
29751
29752
29753 func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, ordersupdateshipmentrequest *OrdersUpdateShipmentRequest) *OrdersUpdateshipmentCall {
29754 c := &OrdersUpdateshipmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29755 c.merchantId = merchantId
29756 c.orderId = orderId
29757 c.ordersupdateshipmentrequest = ordersupdateshipmentrequest
29758 return c
29759 }
29760
29761
29762
29763
29764 func (c *OrdersUpdateshipmentCall) Fields(s ...googleapi.Field) *OrdersUpdateshipmentCall {
29765 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29766 return c
29767 }
29768
29769
29770 func (c *OrdersUpdateshipmentCall) Context(ctx context.Context) *OrdersUpdateshipmentCall {
29771 c.ctx_ = ctx
29772 return c
29773 }
29774
29775
29776
29777 func (c *OrdersUpdateshipmentCall) Header() http.Header {
29778 if c.header_ == nil {
29779 c.header_ = make(http.Header)
29780 }
29781 return c.header_
29782 }
29783
29784 func (c *OrdersUpdateshipmentCall) doRequest(alt string) (*http.Response, error) {
29785 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29786 var body io.Reader = nil
29787 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdateshipmentrequest)
29788 if err != nil {
29789 return nil, err
29790 }
29791 c.urlParams_.Set("alt", alt)
29792 c.urlParams_.Set("prettyPrint", "false")
29793 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateShipment")
29794 urls += "?" + c.urlParams_.Encode()
29795 req, err := http.NewRequest("POST", urls, body)
29796 if err != nil {
29797 return nil, err
29798 }
29799 req.Header = reqHeaders
29800 googleapi.Expand(req.URL, map[string]string{
29801 "merchantId": strconv.FormatUint(c.merchantId, 10),
29802 "orderId": c.orderId,
29803 })
29804 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29805 }
29806
29807
29808
29809
29810
29811
29812
29813 func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateShipmentResponse, error) {
29814 gensupport.SetOptions(c.urlParams_, opts...)
29815 res, err := c.doRequest("json")
29816 if res != nil && res.StatusCode == http.StatusNotModified {
29817 if res.Body != nil {
29818 res.Body.Close()
29819 }
29820 return nil, gensupport.WrapError(&googleapi.Error{
29821 Code: res.StatusCode,
29822 Header: res.Header,
29823 })
29824 }
29825 if err != nil {
29826 return nil, err
29827 }
29828 defer googleapi.CloseBody(res)
29829 if err := googleapi.CheckResponse(res); err != nil {
29830 return nil, gensupport.WrapError(err)
29831 }
29832 ret := &OrdersUpdateShipmentResponse{
29833 ServerResponse: googleapi.ServerResponse{
29834 Header: res.Header,
29835 HTTPStatusCode: res.StatusCode,
29836 },
29837 }
29838 target := &ret
29839 if err := gensupport.DecodeResponse(target, res); err != nil {
29840 return nil, err
29841 }
29842 return ret, nil
29843 }
29844
29845 type OrdertrackingsignalsCreateCall struct {
29846 s *APIService
29847 merchantId int64
29848 ordertrackingsignal *OrderTrackingSignal
29849 urlParams_ gensupport.URLParams
29850 ctx_ context.Context
29851 header_ http.Header
29852 }
29853
29854
29855
29856
29857 func (r *OrdertrackingsignalsService) Create(merchantId int64, ordertrackingsignal *OrderTrackingSignal) *OrdertrackingsignalsCreateCall {
29858 c := &OrdertrackingsignalsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29859 c.merchantId = merchantId
29860 c.ordertrackingsignal = ordertrackingsignal
29861 return c
29862 }
29863
29864
29865
29866
29867 func (c *OrdertrackingsignalsCreateCall) Fields(s ...googleapi.Field) *OrdertrackingsignalsCreateCall {
29868 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29869 return c
29870 }
29871
29872
29873 func (c *OrdertrackingsignalsCreateCall) Context(ctx context.Context) *OrdertrackingsignalsCreateCall {
29874 c.ctx_ = ctx
29875 return c
29876 }
29877
29878
29879
29880 func (c *OrdertrackingsignalsCreateCall) Header() http.Header {
29881 if c.header_ == nil {
29882 c.header_ = make(http.Header)
29883 }
29884 return c.header_
29885 }
29886
29887 func (c *OrdertrackingsignalsCreateCall) doRequest(alt string) (*http.Response, error) {
29888 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29889 var body io.Reader = nil
29890 body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordertrackingsignal)
29891 if err != nil {
29892 return nil, err
29893 }
29894 c.urlParams_.Set("alt", alt)
29895 c.urlParams_.Set("prettyPrint", "false")
29896 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/ordertrackingsignals")
29897 urls += "?" + c.urlParams_.Encode()
29898 req, err := http.NewRequest("POST", urls, body)
29899 if err != nil {
29900 return nil, err
29901 }
29902 req.Header = reqHeaders
29903 googleapi.Expand(req.URL, map[string]string{
29904 "merchantId": strconv.FormatInt(c.merchantId, 10),
29905 })
29906 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29907 }
29908
29909
29910
29911
29912
29913
29914
29915 func (c *OrdertrackingsignalsCreateCall) Do(opts ...googleapi.CallOption) (*OrderTrackingSignal, error) {
29916 gensupport.SetOptions(c.urlParams_, opts...)
29917 res, err := c.doRequest("json")
29918 if res != nil && res.StatusCode == http.StatusNotModified {
29919 if res.Body != nil {
29920 res.Body.Close()
29921 }
29922 return nil, gensupport.WrapError(&googleapi.Error{
29923 Code: res.StatusCode,
29924 Header: res.Header,
29925 })
29926 }
29927 if err != nil {
29928 return nil, err
29929 }
29930 defer googleapi.CloseBody(res)
29931 if err := googleapi.CheckResponse(res); err != nil {
29932 return nil, gensupport.WrapError(err)
29933 }
29934 ret := &OrderTrackingSignal{
29935 ServerResponse: googleapi.ServerResponse{
29936 Header: res.Header,
29937 HTTPStatusCode: res.StatusCode,
29938 },
29939 }
29940 target := &ret
29941 if err := gensupport.DecodeResponse(target, res); err != nil {
29942 return nil, err
29943 }
29944 return ret, nil
29945 }
29946
29947 type PosCustombatchCall struct {
29948 s *APIService
29949 poscustombatchrequest *PosCustomBatchRequest
29950 urlParams_ gensupport.URLParams
29951 ctx_ context.Context
29952 header_ http.Header
29953 }
29954
29955
29956 func (r *PosService) Custombatch(poscustombatchrequest *PosCustomBatchRequest) *PosCustombatchCall {
29957 c := &PosCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29958 c.poscustombatchrequest = poscustombatchrequest
29959 return c
29960 }
29961
29962
29963
29964
29965 func (c *PosCustombatchCall) Fields(s ...googleapi.Field) *PosCustombatchCall {
29966 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29967 return c
29968 }
29969
29970
29971 func (c *PosCustombatchCall) Context(ctx context.Context) *PosCustombatchCall {
29972 c.ctx_ = ctx
29973 return c
29974 }
29975
29976
29977
29978 func (c *PosCustombatchCall) Header() http.Header {
29979 if c.header_ == nil {
29980 c.header_ = make(http.Header)
29981 }
29982 return c.header_
29983 }
29984
29985 func (c *PosCustombatchCall) doRequest(alt string) (*http.Response, error) {
29986 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29987 var body io.Reader = nil
29988 body, err := googleapi.WithoutDataWrapper.JSONReader(c.poscustombatchrequest)
29989 if err != nil {
29990 return nil, err
29991 }
29992 c.urlParams_.Set("alt", alt)
29993 c.urlParams_.Set("prettyPrint", "false")
29994 urls := googleapi.ResolveRelative(c.s.BasePath, "pos/batch")
29995 urls += "?" + c.urlParams_.Encode()
29996 req, err := http.NewRequest("POST", urls, body)
29997 if err != nil {
29998 return nil, err
29999 }
30000 req.Header = reqHeaders
30001 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30002 }
30003
30004
30005
30006
30007
30008
30009
30010 func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchResponse, error) {
30011 gensupport.SetOptions(c.urlParams_, opts...)
30012 res, err := c.doRequest("json")
30013 if res != nil && res.StatusCode == http.StatusNotModified {
30014 if res.Body != nil {
30015 res.Body.Close()
30016 }
30017 return nil, gensupport.WrapError(&googleapi.Error{
30018 Code: res.StatusCode,
30019 Header: res.Header,
30020 })
30021 }
30022 if err != nil {
30023 return nil, err
30024 }
30025 defer googleapi.CloseBody(res)
30026 if err := googleapi.CheckResponse(res); err != nil {
30027 return nil, gensupport.WrapError(err)
30028 }
30029 ret := &PosCustomBatchResponse{
30030 ServerResponse: googleapi.ServerResponse{
30031 Header: res.Header,
30032 HTTPStatusCode: res.StatusCode,
30033 },
30034 }
30035 target := &ret
30036 if err := gensupport.DecodeResponse(target, res); err != nil {
30037 return nil, err
30038 }
30039 return ret, nil
30040 }
30041
30042 type PosDeleteCall struct {
30043 s *APIService
30044 merchantId uint64
30045 targetMerchantId uint64
30046 storeCode string
30047 urlParams_ gensupport.URLParams
30048 ctx_ context.Context
30049 header_ http.Header
30050 }
30051
30052
30053
30054
30055
30056
30057 func (r *PosService) Delete(merchantId uint64, targetMerchantId uint64, storeCode string) *PosDeleteCall {
30058 c := &PosDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30059 c.merchantId = merchantId
30060 c.targetMerchantId = targetMerchantId
30061 c.storeCode = storeCode
30062 return c
30063 }
30064
30065
30066
30067
30068 func (c *PosDeleteCall) Fields(s ...googleapi.Field) *PosDeleteCall {
30069 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30070 return c
30071 }
30072
30073
30074 func (c *PosDeleteCall) Context(ctx context.Context) *PosDeleteCall {
30075 c.ctx_ = ctx
30076 return c
30077 }
30078
30079
30080
30081 func (c *PosDeleteCall) Header() http.Header {
30082 if c.header_ == nil {
30083 c.header_ = make(http.Header)
30084 }
30085 return c.header_
30086 }
30087
30088 func (c *PosDeleteCall) doRequest(alt string) (*http.Response, error) {
30089 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30090 var body io.Reader = nil
30091 c.urlParams_.Set("alt", alt)
30092 c.urlParams_.Set("prettyPrint", "false")
30093 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store/{storeCode}")
30094 urls += "?" + c.urlParams_.Encode()
30095 req, err := http.NewRequest("DELETE", urls, body)
30096 if err != nil {
30097 return nil, err
30098 }
30099 req.Header = reqHeaders
30100 googleapi.Expand(req.URL, map[string]string{
30101 "merchantId": strconv.FormatUint(c.merchantId, 10),
30102 "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
30103 "storeCode": c.storeCode,
30104 })
30105 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30106 }
30107
30108
30109 func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error {
30110 gensupport.SetOptions(c.urlParams_, opts...)
30111 res, err := c.doRequest("json")
30112 if err != nil {
30113 return err
30114 }
30115 defer googleapi.CloseBody(res)
30116 if err := googleapi.CheckResponse(res); err != nil {
30117 return gensupport.WrapError(err)
30118 }
30119 return nil
30120 }
30121
30122 type PosGetCall struct {
30123 s *APIService
30124 merchantId uint64
30125 targetMerchantId uint64
30126 storeCode string
30127 urlParams_ gensupport.URLParams
30128 ifNoneMatch_ string
30129 ctx_ context.Context
30130 header_ http.Header
30131 }
30132
30133
30134
30135
30136
30137
30138 func (r *PosService) Get(merchantId uint64, targetMerchantId uint64, storeCode string) *PosGetCall {
30139 c := &PosGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30140 c.merchantId = merchantId
30141 c.targetMerchantId = targetMerchantId
30142 c.storeCode = storeCode
30143 return c
30144 }
30145
30146
30147
30148
30149 func (c *PosGetCall) Fields(s ...googleapi.Field) *PosGetCall {
30150 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30151 return c
30152 }
30153
30154
30155
30156
30157 func (c *PosGetCall) IfNoneMatch(entityTag string) *PosGetCall {
30158 c.ifNoneMatch_ = entityTag
30159 return c
30160 }
30161
30162
30163 func (c *PosGetCall) Context(ctx context.Context) *PosGetCall {
30164 c.ctx_ = ctx
30165 return c
30166 }
30167
30168
30169
30170 func (c *PosGetCall) Header() http.Header {
30171 if c.header_ == nil {
30172 c.header_ = make(http.Header)
30173 }
30174 return c.header_
30175 }
30176
30177 func (c *PosGetCall) doRequest(alt string) (*http.Response, error) {
30178 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30179 if c.ifNoneMatch_ != "" {
30180 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30181 }
30182 var body io.Reader = nil
30183 c.urlParams_.Set("alt", alt)
30184 c.urlParams_.Set("prettyPrint", "false")
30185 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store/{storeCode}")
30186 urls += "?" + c.urlParams_.Encode()
30187 req, err := http.NewRequest("GET", urls, body)
30188 if err != nil {
30189 return nil, err
30190 }
30191 req.Header = reqHeaders
30192 googleapi.Expand(req.URL, map[string]string{
30193 "merchantId": strconv.FormatUint(c.merchantId, 10),
30194 "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
30195 "storeCode": c.storeCode,
30196 })
30197 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30198 }
30199
30200
30201
30202
30203
30204
30205 func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) {
30206 gensupport.SetOptions(c.urlParams_, opts...)
30207 res, err := c.doRequest("json")
30208 if res != nil && res.StatusCode == http.StatusNotModified {
30209 if res.Body != nil {
30210 res.Body.Close()
30211 }
30212 return nil, gensupport.WrapError(&googleapi.Error{
30213 Code: res.StatusCode,
30214 Header: res.Header,
30215 })
30216 }
30217 if err != nil {
30218 return nil, err
30219 }
30220 defer googleapi.CloseBody(res)
30221 if err := googleapi.CheckResponse(res); err != nil {
30222 return nil, gensupport.WrapError(err)
30223 }
30224 ret := &PosStore{
30225 ServerResponse: googleapi.ServerResponse{
30226 Header: res.Header,
30227 HTTPStatusCode: res.StatusCode,
30228 },
30229 }
30230 target := &ret
30231 if err := gensupport.DecodeResponse(target, res); err != nil {
30232 return nil, err
30233 }
30234 return ret, nil
30235 }
30236
30237 type PosInsertCall struct {
30238 s *APIService
30239 merchantId uint64
30240 targetMerchantId uint64
30241 posstore *PosStore
30242 urlParams_ gensupport.URLParams
30243 ctx_ context.Context
30244 header_ http.Header
30245 }
30246
30247
30248
30249
30250
30251 func (r *PosService) Insert(merchantId uint64, targetMerchantId uint64, posstore *PosStore) *PosInsertCall {
30252 c := &PosInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30253 c.merchantId = merchantId
30254 c.targetMerchantId = targetMerchantId
30255 c.posstore = posstore
30256 return c
30257 }
30258
30259
30260
30261
30262 func (c *PosInsertCall) Fields(s ...googleapi.Field) *PosInsertCall {
30263 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30264 return c
30265 }
30266
30267
30268 func (c *PosInsertCall) Context(ctx context.Context) *PosInsertCall {
30269 c.ctx_ = ctx
30270 return c
30271 }
30272
30273
30274
30275 func (c *PosInsertCall) Header() http.Header {
30276 if c.header_ == nil {
30277 c.header_ = make(http.Header)
30278 }
30279 return c.header_
30280 }
30281
30282 func (c *PosInsertCall) doRequest(alt string) (*http.Response, error) {
30283 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30284 var body io.Reader = nil
30285 body, err := googleapi.WithoutDataWrapper.JSONReader(c.posstore)
30286 if err != nil {
30287 return nil, err
30288 }
30289 c.urlParams_.Set("alt", alt)
30290 c.urlParams_.Set("prettyPrint", "false")
30291 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store")
30292 urls += "?" + c.urlParams_.Encode()
30293 req, err := http.NewRequest("POST", urls, body)
30294 if err != nil {
30295 return nil, err
30296 }
30297 req.Header = reqHeaders
30298 googleapi.Expand(req.URL, map[string]string{
30299 "merchantId": strconv.FormatUint(c.merchantId, 10),
30300 "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
30301 })
30302 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30303 }
30304
30305
30306
30307
30308
30309
30310 func (c *PosInsertCall) Do(opts ...googleapi.CallOption) (*PosStore, error) {
30311 gensupport.SetOptions(c.urlParams_, opts...)
30312 res, err := c.doRequest("json")
30313 if res != nil && res.StatusCode == http.StatusNotModified {
30314 if res.Body != nil {
30315 res.Body.Close()
30316 }
30317 return nil, gensupport.WrapError(&googleapi.Error{
30318 Code: res.StatusCode,
30319 Header: res.Header,
30320 })
30321 }
30322 if err != nil {
30323 return nil, err
30324 }
30325 defer googleapi.CloseBody(res)
30326 if err := googleapi.CheckResponse(res); err != nil {
30327 return nil, gensupport.WrapError(err)
30328 }
30329 ret := &PosStore{
30330 ServerResponse: googleapi.ServerResponse{
30331 Header: res.Header,
30332 HTTPStatusCode: res.StatusCode,
30333 },
30334 }
30335 target := &ret
30336 if err := gensupport.DecodeResponse(target, res); err != nil {
30337 return nil, err
30338 }
30339 return ret, nil
30340 }
30341
30342 type PosInventoryCall struct {
30343 s *APIService
30344 merchantId uint64
30345 targetMerchantId uint64
30346 posinventoryrequest *PosInventoryRequest
30347 urlParams_ gensupport.URLParams
30348 ctx_ context.Context
30349 header_ http.Header
30350 }
30351
30352
30353
30354
30355
30356 func (r *PosService) Inventory(merchantId uint64, targetMerchantId uint64, posinventoryrequest *PosInventoryRequest) *PosInventoryCall {
30357 c := &PosInventoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30358 c.merchantId = merchantId
30359 c.targetMerchantId = targetMerchantId
30360 c.posinventoryrequest = posinventoryrequest
30361 return c
30362 }
30363
30364
30365
30366
30367 func (c *PosInventoryCall) Fields(s ...googleapi.Field) *PosInventoryCall {
30368 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30369 return c
30370 }
30371
30372
30373 func (c *PosInventoryCall) Context(ctx context.Context) *PosInventoryCall {
30374 c.ctx_ = ctx
30375 return c
30376 }
30377
30378
30379
30380 func (c *PosInventoryCall) Header() http.Header {
30381 if c.header_ == nil {
30382 c.header_ = make(http.Header)
30383 }
30384 return c.header_
30385 }
30386
30387 func (c *PosInventoryCall) doRequest(alt string) (*http.Response, error) {
30388 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30389 var body io.Reader = nil
30390 body, err := googleapi.WithoutDataWrapper.JSONReader(c.posinventoryrequest)
30391 if err != nil {
30392 return nil, err
30393 }
30394 c.urlParams_.Set("alt", alt)
30395 c.urlParams_.Set("prettyPrint", "false")
30396 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/inventory")
30397 urls += "?" + c.urlParams_.Encode()
30398 req, err := http.NewRequest("POST", urls, body)
30399 if err != nil {
30400 return nil, err
30401 }
30402 req.Header = reqHeaders
30403 googleapi.Expand(req.URL, map[string]string{
30404 "merchantId": strconv.FormatUint(c.merchantId, 10),
30405 "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
30406 })
30407 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30408 }
30409
30410
30411
30412
30413
30414
30415
30416 func (c *PosInventoryCall) Do(opts ...googleapi.CallOption) (*PosInventoryResponse, error) {
30417 gensupport.SetOptions(c.urlParams_, opts...)
30418 res, err := c.doRequest("json")
30419 if res != nil && res.StatusCode == http.StatusNotModified {
30420 if res.Body != nil {
30421 res.Body.Close()
30422 }
30423 return nil, gensupport.WrapError(&googleapi.Error{
30424 Code: res.StatusCode,
30425 Header: res.Header,
30426 })
30427 }
30428 if err != nil {
30429 return nil, err
30430 }
30431 defer googleapi.CloseBody(res)
30432 if err := googleapi.CheckResponse(res); err != nil {
30433 return nil, gensupport.WrapError(err)
30434 }
30435 ret := &PosInventoryResponse{
30436 ServerResponse: googleapi.ServerResponse{
30437 Header: res.Header,
30438 HTTPStatusCode: res.StatusCode,
30439 },
30440 }
30441 target := &ret
30442 if err := gensupport.DecodeResponse(target, res); err != nil {
30443 return nil, err
30444 }
30445 return ret, nil
30446 }
30447
30448 type PosListCall struct {
30449 s *APIService
30450 merchantId uint64
30451 targetMerchantId uint64
30452 urlParams_ gensupport.URLParams
30453 ifNoneMatch_ string
30454 ctx_ context.Context
30455 header_ http.Header
30456 }
30457
30458
30459
30460
30461
30462 func (r *PosService) List(merchantId uint64, targetMerchantId uint64) *PosListCall {
30463 c := &PosListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30464 c.merchantId = merchantId
30465 c.targetMerchantId = targetMerchantId
30466 return c
30467 }
30468
30469
30470
30471
30472 func (c *PosListCall) Fields(s ...googleapi.Field) *PosListCall {
30473 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30474 return c
30475 }
30476
30477
30478
30479
30480 func (c *PosListCall) IfNoneMatch(entityTag string) *PosListCall {
30481 c.ifNoneMatch_ = entityTag
30482 return c
30483 }
30484
30485
30486 func (c *PosListCall) Context(ctx context.Context) *PosListCall {
30487 c.ctx_ = ctx
30488 return c
30489 }
30490
30491
30492
30493 func (c *PosListCall) Header() http.Header {
30494 if c.header_ == nil {
30495 c.header_ = make(http.Header)
30496 }
30497 return c.header_
30498 }
30499
30500 func (c *PosListCall) doRequest(alt string) (*http.Response, error) {
30501 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30502 if c.ifNoneMatch_ != "" {
30503 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30504 }
30505 var body io.Reader = nil
30506 c.urlParams_.Set("alt", alt)
30507 c.urlParams_.Set("prettyPrint", "false")
30508 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store")
30509 urls += "?" + c.urlParams_.Encode()
30510 req, err := http.NewRequest("GET", urls, body)
30511 if err != nil {
30512 return nil, err
30513 }
30514 req.Header = reqHeaders
30515 googleapi.Expand(req.URL, map[string]string{
30516 "merchantId": strconv.FormatUint(c.merchantId, 10),
30517 "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
30518 })
30519 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30520 }
30521
30522
30523
30524
30525
30526
30527
30528 func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error) {
30529 gensupport.SetOptions(c.urlParams_, opts...)
30530 res, err := c.doRequest("json")
30531 if res != nil && res.StatusCode == http.StatusNotModified {
30532 if res.Body != nil {
30533 res.Body.Close()
30534 }
30535 return nil, gensupport.WrapError(&googleapi.Error{
30536 Code: res.StatusCode,
30537 Header: res.Header,
30538 })
30539 }
30540 if err != nil {
30541 return nil, err
30542 }
30543 defer googleapi.CloseBody(res)
30544 if err := googleapi.CheckResponse(res); err != nil {
30545 return nil, gensupport.WrapError(err)
30546 }
30547 ret := &PosListResponse{
30548 ServerResponse: googleapi.ServerResponse{
30549 Header: res.Header,
30550 HTTPStatusCode: res.StatusCode,
30551 },
30552 }
30553 target := &ret
30554 if err := gensupport.DecodeResponse(target, res); err != nil {
30555 return nil, err
30556 }
30557 return ret, nil
30558 }
30559
30560 type PosSaleCall struct {
30561 s *APIService
30562 merchantId uint64
30563 targetMerchantId uint64
30564 possalerequest *PosSaleRequest
30565 urlParams_ gensupport.URLParams
30566 ctx_ context.Context
30567 header_ http.Header
30568 }
30569
30570
30571
30572
30573
30574 func (r *PosService) Sale(merchantId uint64, targetMerchantId uint64, possalerequest *PosSaleRequest) *PosSaleCall {
30575 c := &PosSaleCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30576 c.merchantId = merchantId
30577 c.targetMerchantId = targetMerchantId
30578 c.possalerequest = possalerequest
30579 return c
30580 }
30581
30582
30583
30584
30585 func (c *PosSaleCall) Fields(s ...googleapi.Field) *PosSaleCall {
30586 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30587 return c
30588 }
30589
30590
30591 func (c *PosSaleCall) Context(ctx context.Context) *PosSaleCall {
30592 c.ctx_ = ctx
30593 return c
30594 }
30595
30596
30597
30598 func (c *PosSaleCall) Header() http.Header {
30599 if c.header_ == nil {
30600 c.header_ = make(http.Header)
30601 }
30602 return c.header_
30603 }
30604
30605 func (c *PosSaleCall) doRequest(alt string) (*http.Response, error) {
30606 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30607 var body io.Reader = nil
30608 body, err := googleapi.WithoutDataWrapper.JSONReader(c.possalerequest)
30609 if err != nil {
30610 return nil, err
30611 }
30612 c.urlParams_.Set("alt", alt)
30613 c.urlParams_.Set("prettyPrint", "false")
30614 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/sale")
30615 urls += "?" + c.urlParams_.Encode()
30616 req, err := http.NewRequest("POST", urls, body)
30617 if err != nil {
30618 return nil, err
30619 }
30620 req.Header = reqHeaders
30621 googleapi.Expand(req.URL, map[string]string{
30622 "merchantId": strconv.FormatUint(c.merchantId, 10),
30623 "targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
30624 })
30625 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30626 }
30627
30628
30629
30630
30631
30632
30633
30634 func (c *PosSaleCall) Do(opts ...googleapi.CallOption) (*PosSaleResponse, error) {
30635 gensupport.SetOptions(c.urlParams_, opts...)
30636 res, err := c.doRequest("json")
30637 if res != nil && res.StatusCode == http.StatusNotModified {
30638 if res.Body != nil {
30639 res.Body.Close()
30640 }
30641 return nil, gensupport.WrapError(&googleapi.Error{
30642 Code: res.StatusCode,
30643 Header: res.Header,
30644 })
30645 }
30646 if err != nil {
30647 return nil, err
30648 }
30649 defer googleapi.CloseBody(res)
30650 if err := googleapi.CheckResponse(res); err != nil {
30651 return nil, gensupport.WrapError(err)
30652 }
30653 ret := &PosSaleResponse{
30654 ServerResponse: googleapi.ServerResponse{
30655 Header: res.Header,
30656 HTTPStatusCode: res.StatusCode,
30657 },
30658 }
30659 target := &ret
30660 if err := gensupport.DecodeResponse(target, res); err != nil {
30661 return nil, err
30662 }
30663 return ret, nil
30664 }
30665
30666 type ProductdeliverytimeCreateCall struct {
30667 s *APIService
30668 merchantId int64
30669 productdeliverytime *ProductDeliveryTime
30670 urlParams_ gensupport.URLParams
30671 ctx_ context.Context
30672 header_ http.Header
30673 }
30674
30675
30676
30677
30678
30679 func (r *ProductdeliverytimeService) Create(merchantId int64, productdeliverytime *ProductDeliveryTime) *ProductdeliverytimeCreateCall {
30680 c := &ProductdeliverytimeCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30681 c.merchantId = merchantId
30682 c.productdeliverytime = productdeliverytime
30683 return c
30684 }
30685
30686
30687
30688
30689 func (c *ProductdeliverytimeCreateCall) Fields(s ...googleapi.Field) *ProductdeliverytimeCreateCall {
30690 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30691 return c
30692 }
30693
30694
30695 func (c *ProductdeliverytimeCreateCall) Context(ctx context.Context) *ProductdeliverytimeCreateCall {
30696 c.ctx_ = ctx
30697 return c
30698 }
30699
30700
30701
30702 func (c *ProductdeliverytimeCreateCall) Header() http.Header {
30703 if c.header_ == nil {
30704 c.header_ = make(http.Header)
30705 }
30706 return c.header_
30707 }
30708
30709 func (c *ProductdeliverytimeCreateCall) doRequest(alt string) (*http.Response, error) {
30710 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30711 var body io.Reader = nil
30712 body, err := googleapi.WithoutDataWrapper.JSONReader(c.productdeliverytime)
30713 if err != nil {
30714 return nil, err
30715 }
30716 c.urlParams_.Set("alt", alt)
30717 c.urlParams_.Set("prettyPrint", "false")
30718 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productdeliverytime")
30719 urls += "?" + c.urlParams_.Encode()
30720 req, err := http.NewRequest("POST", urls, body)
30721 if err != nil {
30722 return nil, err
30723 }
30724 req.Header = reqHeaders
30725 googleapi.Expand(req.URL, map[string]string{
30726 "merchantId": strconv.FormatInt(c.merchantId, 10),
30727 })
30728 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30729 }
30730
30731
30732
30733
30734
30735
30736
30737 func (c *ProductdeliverytimeCreateCall) Do(opts ...googleapi.CallOption) (*ProductDeliveryTime, error) {
30738 gensupport.SetOptions(c.urlParams_, opts...)
30739 res, err := c.doRequest("json")
30740 if res != nil && res.StatusCode == http.StatusNotModified {
30741 if res.Body != nil {
30742 res.Body.Close()
30743 }
30744 return nil, gensupport.WrapError(&googleapi.Error{
30745 Code: res.StatusCode,
30746 Header: res.Header,
30747 })
30748 }
30749 if err != nil {
30750 return nil, err
30751 }
30752 defer googleapi.CloseBody(res)
30753 if err := googleapi.CheckResponse(res); err != nil {
30754 return nil, gensupport.WrapError(err)
30755 }
30756 ret := &ProductDeliveryTime{
30757 ServerResponse: googleapi.ServerResponse{
30758 Header: res.Header,
30759 HTTPStatusCode: res.StatusCode,
30760 },
30761 }
30762 target := &ret
30763 if err := gensupport.DecodeResponse(target, res); err != nil {
30764 return nil, err
30765 }
30766 return ret, nil
30767 }
30768
30769 type ProductdeliverytimeDeleteCall struct {
30770 s *APIService
30771 merchantId int64
30772 productId string
30773 urlParams_ gensupport.URLParams
30774 ctx_ context.Context
30775 header_ http.Header
30776 }
30777
30778
30779
30780
30781
30782
30783
30784 func (r *ProductdeliverytimeService) Delete(merchantId int64, productId string) *ProductdeliverytimeDeleteCall {
30785 c := &ProductdeliverytimeDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30786 c.merchantId = merchantId
30787 c.productId = productId
30788 return c
30789 }
30790
30791
30792
30793
30794 func (c *ProductdeliverytimeDeleteCall) Fields(s ...googleapi.Field) *ProductdeliverytimeDeleteCall {
30795 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30796 return c
30797 }
30798
30799
30800 func (c *ProductdeliverytimeDeleteCall) Context(ctx context.Context) *ProductdeliverytimeDeleteCall {
30801 c.ctx_ = ctx
30802 return c
30803 }
30804
30805
30806
30807 func (c *ProductdeliverytimeDeleteCall) Header() http.Header {
30808 if c.header_ == nil {
30809 c.header_ = make(http.Header)
30810 }
30811 return c.header_
30812 }
30813
30814 func (c *ProductdeliverytimeDeleteCall) doRequest(alt string) (*http.Response, error) {
30815 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30816 var body io.Reader = nil
30817 c.urlParams_.Set("alt", alt)
30818 c.urlParams_.Set("prettyPrint", "false")
30819 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productdeliverytime/{productId}")
30820 urls += "?" + c.urlParams_.Encode()
30821 req, err := http.NewRequest("DELETE", urls, body)
30822 if err != nil {
30823 return nil, err
30824 }
30825 req.Header = reqHeaders
30826 googleapi.Expand(req.URL, map[string]string{
30827 "merchantId": strconv.FormatInt(c.merchantId, 10),
30828 "productId": c.productId,
30829 })
30830 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30831 }
30832
30833
30834 func (c *ProductdeliverytimeDeleteCall) Do(opts ...googleapi.CallOption) error {
30835 gensupport.SetOptions(c.urlParams_, opts...)
30836 res, err := c.doRequest("json")
30837 if err != nil {
30838 return err
30839 }
30840 defer googleapi.CloseBody(res)
30841 if err := googleapi.CheckResponse(res); err != nil {
30842 return gensupport.WrapError(err)
30843 }
30844 return nil
30845 }
30846
30847 type ProductdeliverytimeGetCall struct {
30848 s *APIService
30849 merchantId int64
30850 productId string
30851 urlParams_ gensupport.URLParams
30852 ifNoneMatch_ string
30853 ctx_ context.Context
30854 header_ http.Header
30855 }
30856
30857
30858
30859
30860
30861
30862
30863 func (r *ProductdeliverytimeService) Get(merchantId int64, productId string) *ProductdeliverytimeGetCall {
30864 c := &ProductdeliverytimeGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30865 c.merchantId = merchantId
30866 c.productId = productId
30867 return c
30868 }
30869
30870
30871
30872
30873 func (c *ProductdeliverytimeGetCall) Fields(s ...googleapi.Field) *ProductdeliverytimeGetCall {
30874 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30875 return c
30876 }
30877
30878
30879
30880
30881 func (c *ProductdeliverytimeGetCall) IfNoneMatch(entityTag string) *ProductdeliverytimeGetCall {
30882 c.ifNoneMatch_ = entityTag
30883 return c
30884 }
30885
30886
30887 func (c *ProductdeliverytimeGetCall) Context(ctx context.Context) *ProductdeliverytimeGetCall {
30888 c.ctx_ = ctx
30889 return c
30890 }
30891
30892
30893
30894 func (c *ProductdeliverytimeGetCall) Header() http.Header {
30895 if c.header_ == nil {
30896 c.header_ = make(http.Header)
30897 }
30898 return c.header_
30899 }
30900
30901 func (c *ProductdeliverytimeGetCall) doRequest(alt string) (*http.Response, error) {
30902 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30903 if c.ifNoneMatch_ != "" {
30904 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30905 }
30906 var body io.Reader = nil
30907 c.urlParams_.Set("alt", alt)
30908 c.urlParams_.Set("prettyPrint", "false")
30909 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productdeliverytime/{productId}")
30910 urls += "?" + c.urlParams_.Encode()
30911 req, err := http.NewRequest("GET", urls, body)
30912 if err != nil {
30913 return nil, err
30914 }
30915 req.Header = reqHeaders
30916 googleapi.Expand(req.URL, map[string]string{
30917 "merchantId": strconv.FormatInt(c.merchantId, 10),
30918 "productId": c.productId,
30919 })
30920 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30921 }
30922
30923
30924
30925
30926
30927
30928
30929 func (c *ProductdeliverytimeGetCall) Do(opts ...googleapi.CallOption) (*ProductDeliveryTime, error) {
30930 gensupport.SetOptions(c.urlParams_, opts...)
30931 res, err := c.doRequest("json")
30932 if res != nil && res.StatusCode == http.StatusNotModified {
30933 if res.Body != nil {
30934 res.Body.Close()
30935 }
30936 return nil, gensupport.WrapError(&googleapi.Error{
30937 Code: res.StatusCode,
30938 Header: res.Header,
30939 })
30940 }
30941 if err != nil {
30942 return nil, err
30943 }
30944 defer googleapi.CloseBody(res)
30945 if err := googleapi.CheckResponse(res); err != nil {
30946 return nil, gensupport.WrapError(err)
30947 }
30948 ret := &ProductDeliveryTime{
30949 ServerResponse: googleapi.ServerResponse{
30950 Header: res.Header,
30951 HTTPStatusCode: res.StatusCode,
30952 },
30953 }
30954 target := &ret
30955 if err := gensupport.DecodeResponse(target, res); err != nil {
30956 return nil, err
30957 }
30958 return ret, nil
30959 }
30960
30961 type ProductsCustombatchCall struct {
30962 s *APIService
30963 productscustombatchrequest *ProductsCustomBatchRequest
30964 urlParams_ gensupport.URLParams
30965 ctx_ context.Context
30966 header_ http.Header
30967 }
30968
30969
30970
30971 func (r *ProductsService) Custombatch(productscustombatchrequest *ProductsCustomBatchRequest) *ProductsCustombatchCall {
30972 c := &ProductsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30973 c.productscustombatchrequest = productscustombatchrequest
30974 return c
30975 }
30976
30977
30978
30979
30980 func (c *ProductsCustombatchCall) Fields(s ...googleapi.Field) *ProductsCustombatchCall {
30981 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30982 return c
30983 }
30984
30985
30986 func (c *ProductsCustombatchCall) Context(ctx context.Context) *ProductsCustombatchCall {
30987 c.ctx_ = ctx
30988 return c
30989 }
30990
30991
30992
30993 func (c *ProductsCustombatchCall) Header() http.Header {
30994 if c.header_ == nil {
30995 c.header_ = make(http.Header)
30996 }
30997 return c.header_
30998 }
30999
31000 func (c *ProductsCustombatchCall) doRequest(alt string) (*http.Response, error) {
31001 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31002 var body io.Reader = nil
31003 body, err := googleapi.WithoutDataWrapper.JSONReader(c.productscustombatchrequest)
31004 if err != nil {
31005 return nil, err
31006 }
31007 c.urlParams_.Set("alt", alt)
31008 c.urlParams_.Set("prettyPrint", "false")
31009 urls := googleapi.ResolveRelative(c.s.BasePath, "products/batch")
31010 urls += "?" + c.urlParams_.Encode()
31011 req, err := http.NewRequest("POST", urls, body)
31012 if err != nil {
31013 return nil, err
31014 }
31015 req.Header = reqHeaders
31016 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31017 }
31018
31019
31020
31021
31022
31023
31024
31025 func (c *ProductsCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductsCustomBatchResponse, error) {
31026 gensupport.SetOptions(c.urlParams_, opts...)
31027 res, err := c.doRequest("json")
31028 if res != nil && res.StatusCode == http.StatusNotModified {
31029 if res.Body != nil {
31030 res.Body.Close()
31031 }
31032 return nil, gensupport.WrapError(&googleapi.Error{
31033 Code: res.StatusCode,
31034 Header: res.Header,
31035 })
31036 }
31037 if err != nil {
31038 return nil, err
31039 }
31040 defer googleapi.CloseBody(res)
31041 if err := googleapi.CheckResponse(res); err != nil {
31042 return nil, gensupport.WrapError(err)
31043 }
31044 ret := &ProductsCustomBatchResponse{
31045 ServerResponse: googleapi.ServerResponse{
31046 Header: res.Header,
31047 HTTPStatusCode: res.StatusCode,
31048 },
31049 }
31050 target := &ret
31051 if err := gensupport.DecodeResponse(target, res); err != nil {
31052 return nil, err
31053 }
31054 return ret, nil
31055 }
31056
31057 type ProductsDeleteCall struct {
31058 s *APIService
31059 merchantId uint64
31060 productId string
31061 urlParams_ gensupport.URLParams
31062 ctx_ context.Context
31063 header_ http.Header
31064 }
31065
31066
31067
31068
31069
31070
31071 func (r *ProductsService) Delete(merchantId uint64, productId string) *ProductsDeleteCall {
31072 c := &ProductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31073 c.merchantId = merchantId
31074 c.productId = productId
31075 return c
31076 }
31077
31078
31079
31080
31081 func (c *ProductsDeleteCall) FeedId(feedId uint64) *ProductsDeleteCall {
31082 c.urlParams_.Set("feedId", fmt.Sprint(feedId))
31083 return c
31084 }
31085
31086
31087
31088
31089 func (c *ProductsDeleteCall) Fields(s ...googleapi.Field) *ProductsDeleteCall {
31090 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31091 return c
31092 }
31093
31094
31095 func (c *ProductsDeleteCall) Context(ctx context.Context) *ProductsDeleteCall {
31096 c.ctx_ = ctx
31097 return c
31098 }
31099
31100
31101
31102 func (c *ProductsDeleteCall) Header() http.Header {
31103 if c.header_ == nil {
31104 c.header_ = make(http.Header)
31105 }
31106 return c.header_
31107 }
31108
31109 func (c *ProductsDeleteCall) doRequest(alt string) (*http.Response, error) {
31110 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31111 var body io.Reader = nil
31112 c.urlParams_.Set("alt", alt)
31113 c.urlParams_.Set("prettyPrint", "false")
31114 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}")
31115 urls += "?" + c.urlParams_.Encode()
31116 req, err := http.NewRequest("DELETE", urls, body)
31117 if err != nil {
31118 return nil, err
31119 }
31120 req.Header = reqHeaders
31121 googleapi.Expand(req.URL, map[string]string{
31122 "merchantId": strconv.FormatUint(c.merchantId, 10),
31123 "productId": c.productId,
31124 })
31125 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31126 }
31127
31128
31129 func (c *ProductsDeleteCall) Do(opts ...googleapi.CallOption) error {
31130 gensupport.SetOptions(c.urlParams_, opts...)
31131 res, err := c.doRequest("json")
31132 if err != nil {
31133 return err
31134 }
31135 defer googleapi.CloseBody(res)
31136 if err := googleapi.CheckResponse(res); err != nil {
31137 return gensupport.WrapError(err)
31138 }
31139 return nil
31140 }
31141
31142 type ProductsGetCall struct {
31143 s *APIService
31144 merchantId uint64
31145 productId string
31146 urlParams_ gensupport.URLParams
31147 ifNoneMatch_ string
31148 ctx_ context.Context
31149 header_ http.Header
31150 }
31151
31152
31153
31154
31155
31156
31157 func (r *ProductsService) Get(merchantId uint64, productId string) *ProductsGetCall {
31158 c := &ProductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31159 c.merchantId = merchantId
31160 c.productId = productId
31161 return c
31162 }
31163
31164
31165
31166
31167 func (c *ProductsGetCall) Fields(s ...googleapi.Field) *ProductsGetCall {
31168 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31169 return c
31170 }
31171
31172
31173
31174
31175 func (c *ProductsGetCall) IfNoneMatch(entityTag string) *ProductsGetCall {
31176 c.ifNoneMatch_ = entityTag
31177 return c
31178 }
31179
31180
31181 func (c *ProductsGetCall) Context(ctx context.Context) *ProductsGetCall {
31182 c.ctx_ = ctx
31183 return c
31184 }
31185
31186
31187
31188 func (c *ProductsGetCall) Header() http.Header {
31189 if c.header_ == nil {
31190 c.header_ = make(http.Header)
31191 }
31192 return c.header_
31193 }
31194
31195 func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) {
31196 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31197 if c.ifNoneMatch_ != "" {
31198 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31199 }
31200 var body io.Reader = nil
31201 c.urlParams_.Set("alt", alt)
31202 c.urlParams_.Set("prettyPrint", "false")
31203 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}")
31204 urls += "?" + c.urlParams_.Encode()
31205 req, err := http.NewRequest("GET", urls, body)
31206 if err != nil {
31207 return nil, err
31208 }
31209 req.Header = reqHeaders
31210 googleapi.Expand(req.URL, map[string]string{
31211 "merchantId": strconv.FormatUint(c.merchantId, 10),
31212 "productId": c.productId,
31213 })
31214 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31215 }
31216
31217
31218
31219
31220
31221
31222 func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) {
31223 gensupport.SetOptions(c.urlParams_, opts...)
31224 res, err := c.doRequest("json")
31225 if res != nil && res.StatusCode == http.StatusNotModified {
31226 if res.Body != nil {
31227 res.Body.Close()
31228 }
31229 return nil, gensupport.WrapError(&googleapi.Error{
31230 Code: res.StatusCode,
31231 Header: res.Header,
31232 })
31233 }
31234 if err != nil {
31235 return nil, err
31236 }
31237 defer googleapi.CloseBody(res)
31238 if err := googleapi.CheckResponse(res); err != nil {
31239 return nil, gensupport.WrapError(err)
31240 }
31241 ret := &Product{
31242 ServerResponse: googleapi.ServerResponse{
31243 Header: res.Header,
31244 HTTPStatusCode: res.StatusCode,
31245 },
31246 }
31247 target := &ret
31248 if err := gensupport.DecodeResponse(target, res); err != nil {
31249 return nil, err
31250 }
31251 return ret, nil
31252 }
31253
31254 type ProductsInsertCall struct {
31255 s *APIService
31256 merchantId uint64
31257 product *Product
31258 urlParams_ gensupport.URLParams
31259 ctx_ context.Context
31260 header_ http.Header
31261 }
31262
31263
31264
31265
31266
31267
31268
31269 func (r *ProductsService) Insert(merchantId uint64, product *Product) *ProductsInsertCall {
31270 c := &ProductsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31271 c.merchantId = merchantId
31272 c.product = product
31273 return c
31274 }
31275
31276
31277
31278
31279 func (c *ProductsInsertCall) FeedId(feedId uint64) *ProductsInsertCall {
31280 c.urlParams_.Set("feedId", fmt.Sprint(feedId))
31281 return c
31282 }
31283
31284
31285
31286
31287 func (c *ProductsInsertCall) Fields(s ...googleapi.Field) *ProductsInsertCall {
31288 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31289 return c
31290 }
31291
31292
31293 func (c *ProductsInsertCall) Context(ctx context.Context) *ProductsInsertCall {
31294 c.ctx_ = ctx
31295 return c
31296 }
31297
31298
31299
31300 func (c *ProductsInsertCall) Header() http.Header {
31301 if c.header_ == nil {
31302 c.header_ = make(http.Header)
31303 }
31304 return c.header_
31305 }
31306
31307 func (c *ProductsInsertCall) doRequest(alt string) (*http.Response, error) {
31308 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31309 var body io.Reader = nil
31310 body, err := googleapi.WithoutDataWrapper.JSONReader(c.product)
31311 if err != nil {
31312 return nil, err
31313 }
31314 c.urlParams_.Set("alt", alt)
31315 c.urlParams_.Set("prettyPrint", "false")
31316 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products")
31317 urls += "?" + c.urlParams_.Encode()
31318 req, err := http.NewRequest("POST", urls, body)
31319 if err != nil {
31320 return nil, err
31321 }
31322 req.Header = reqHeaders
31323 googleapi.Expand(req.URL, map[string]string{
31324 "merchantId": strconv.FormatUint(c.merchantId, 10),
31325 })
31326 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31327 }
31328
31329
31330
31331
31332
31333
31334 func (c *ProductsInsertCall) Do(opts ...googleapi.CallOption) (*Product, error) {
31335 gensupport.SetOptions(c.urlParams_, opts...)
31336 res, err := c.doRequest("json")
31337 if res != nil && res.StatusCode == http.StatusNotModified {
31338 if res.Body != nil {
31339 res.Body.Close()
31340 }
31341 return nil, gensupport.WrapError(&googleapi.Error{
31342 Code: res.StatusCode,
31343 Header: res.Header,
31344 })
31345 }
31346 if err != nil {
31347 return nil, err
31348 }
31349 defer googleapi.CloseBody(res)
31350 if err := googleapi.CheckResponse(res); err != nil {
31351 return nil, gensupport.WrapError(err)
31352 }
31353 ret := &Product{
31354 ServerResponse: googleapi.ServerResponse{
31355 Header: res.Header,
31356 HTTPStatusCode: res.StatusCode,
31357 },
31358 }
31359 target := &ret
31360 if err := gensupport.DecodeResponse(target, res); err != nil {
31361 return nil, err
31362 }
31363 return ret, nil
31364 }
31365
31366 type ProductsListCall struct {
31367 s *APIService
31368 merchantId uint64
31369 urlParams_ gensupport.URLParams
31370 ifNoneMatch_ string
31371 ctx_ context.Context
31372 header_ http.Header
31373 }
31374
31375
31376
31377
31378
31379
31380
31381 func (r *ProductsService) List(merchantId uint64) *ProductsListCall {
31382 c := &ProductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31383 c.merchantId = merchantId
31384 return c
31385 }
31386
31387
31388
31389
31390 func (c *ProductsListCall) MaxResults(maxResults int64) *ProductsListCall {
31391 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
31392 return c
31393 }
31394
31395
31396
31397 func (c *ProductsListCall) PageToken(pageToken string) *ProductsListCall {
31398 c.urlParams_.Set("pageToken", pageToken)
31399 return c
31400 }
31401
31402
31403
31404
31405 func (c *ProductsListCall) Fields(s ...googleapi.Field) *ProductsListCall {
31406 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31407 return c
31408 }
31409
31410
31411
31412
31413 func (c *ProductsListCall) IfNoneMatch(entityTag string) *ProductsListCall {
31414 c.ifNoneMatch_ = entityTag
31415 return c
31416 }
31417
31418
31419 func (c *ProductsListCall) Context(ctx context.Context) *ProductsListCall {
31420 c.ctx_ = ctx
31421 return c
31422 }
31423
31424
31425
31426 func (c *ProductsListCall) Header() http.Header {
31427 if c.header_ == nil {
31428 c.header_ = make(http.Header)
31429 }
31430 return c.header_
31431 }
31432
31433 func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) {
31434 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31435 if c.ifNoneMatch_ != "" {
31436 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31437 }
31438 var body io.Reader = nil
31439 c.urlParams_.Set("alt", alt)
31440 c.urlParams_.Set("prettyPrint", "false")
31441 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products")
31442 urls += "?" + c.urlParams_.Encode()
31443 req, err := http.NewRequest("GET", urls, body)
31444 if err != nil {
31445 return nil, err
31446 }
31447 req.Header = reqHeaders
31448 googleapi.Expand(req.URL, map[string]string{
31449 "merchantId": strconv.FormatUint(c.merchantId, 10),
31450 })
31451 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31452 }
31453
31454
31455
31456
31457
31458
31459
31460 func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListResponse, error) {
31461 gensupport.SetOptions(c.urlParams_, opts...)
31462 res, err := c.doRequest("json")
31463 if res != nil && res.StatusCode == http.StatusNotModified {
31464 if res.Body != nil {
31465 res.Body.Close()
31466 }
31467 return nil, gensupport.WrapError(&googleapi.Error{
31468 Code: res.StatusCode,
31469 Header: res.Header,
31470 })
31471 }
31472 if err != nil {
31473 return nil, err
31474 }
31475 defer googleapi.CloseBody(res)
31476 if err := googleapi.CheckResponse(res); err != nil {
31477 return nil, gensupport.WrapError(err)
31478 }
31479 ret := &ProductsListResponse{
31480 ServerResponse: googleapi.ServerResponse{
31481 Header: res.Header,
31482 HTTPStatusCode: res.StatusCode,
31483 },
31484 }
31485 target := &ret
31486 if err := gensupport.DecodeResponse(target, res); err != nil {
31487 return nil, err
31488 }
31489 return ret, nil
31490 }
31491
31492
31493
31494
31495 func (c *ProductsListCall) Pages(ctx context.Context, f func(*ProductsListResponse) error) error {
31496 c.ctx_ = ctx
31497 defer c.PageToken(c.urlParams_.Get("pageToken"))
31498 for {
31499 x, err := c.Do()
31500 if err != nil {
31501 return err
31502 }
31503 if err := f(x); err != nil {
31504 return err
31505 }
31506 if x.NextPageToken == "" {
31507 return nil
31508 }
31509 c.PageToken(x.NextPageToken)
31510 }
31511 }
31512
31513 type ProductsUpdateCall struct {
31514 s *APIService
31515 merchantId uint64
31516 productId string
31517 product *Product
31518 urlParams_ gensupport.URLParams
31519 ctx_ context.Context
31520 header_ http.Header
31521 }
31522
31523
31524
31525
31526
31527
31528
31529 func (r *ProductsService) Update(merchantId uint64, productId string, product *Product) *ProductsUpdateCall {
31530 c := &ProductsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31531 c.merchantId = merchantId
31532 c.productId = productId
31533 c.product = product
31534 return c
31535 }
31536
31537
31538
31539
31540
31541
31542
31543
31544 func (c *ProductsUpdateCall) UpdateMask(updateMask string) *ProductsUpdateCall {
31545 c.urlParams_.Set("updateMask", updateMask)
31546 return c
31547 }
31548
31549
31550
31551
31552 func (c *ProductsUpdateCall) Fields(s ...googleapi.Field) *ProductsUpdateCall {
31553 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31554 return c
31555 }
31556
31557
31558 func (c *ProductsUpdateCall) Context(ctx context.Context) *ProductsUpdateCall {
31559 c.ctx_ = ctx
31560 return c
31561 }
31562
31563
31564
31565 func (c *ProductsUpdateCall) Header() http.Header {
31566 if c.header_ == nil {
31567 c.header_ = make(http.Header)
31568 }
31569 return c.header_
31570 }
31571
31572 func (c *ProductsUpdateCall) doRequest(alt string) (*http.Response, error) {
31573 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31574 var body io.Reader = nil
31575 body, err := googleapi.WithoutDataWrapper.JSONReader(c.product)
31576 if err != nil {
31577 return nil, err
31578 }
31579 c.urlParams_.Set("alt", alt)
31580 c.urlParams_.Set("prettyPrint", "false")
31581 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}")
31582 urls += "?" + c.urlParams_.Encode()
31583 req, err := http.NewRequest("PATCH", urls, body)
31584 if err != nil {
31585 return nil, err
31586 }
31587 req.Header = reqHeaders
31588 googleapi.Expand(req.URL, map[string]string{
31589 "merchantId": strconv.FormatUint(c.merchantId, 10),
31590 "productId": c.productId,
31591 })
31592 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31593 }
31594
31595
31596
31597
31598
31599
31600 func (c *ProductsUpdateCall) Do(opts ...googleapi.CallOption) (*Product, error) {
31601 gensupport.SetOptions(c.urlParams_, opts...)
31602 res, err := c.doRequest("json")
31603 if res != nil && res.StatusCode == http.StatusNotModified {
31604 if res.Body != nil {
31605 res.Body.Close()
31606 }
31607 return nil, gensupport.WrapError(&googleapi.Error{
31608 Code: res.StatusCode,
31609 Header: res.Header,
31610 })
31611 }
31612 if err != nil {
31613 return nil, err
31614 }
31615 defer googleapi.CloseBody(res)
31616 if err := googleapi.CheckResponse(res); err != nil {
31617 return nil, gensupport.WrapError(err)
31618 }
31619 ret := &Product{
31620 ServerResponse: googleapi.ServerResponse{
31621 Header: res.Header,
31622 HTTPStatusCode: res.StatusCode,
31623 },
31624 }
31625 target := &ret
31626 if err := gensupport.DecodeResponse(target, res); err != nil {
31627 return nil, err
31628 }
31629 return ret, nil
31630 }
31631
31632 type ProductstatusesCustombatchCall struct {
31633 s *APIService
31634 productstatusescustombatchrequest *ProductstatusesCustomBatchRequest
31635 urlParams_ gensupport.URLParams
31636 ctx_ context.Context
31637 header_ http.Header
31638 }
31639
31640
31641 func (r *ProductstatusesService) Custombatch(productstatusescustombatchrequest *ProductstatusesCustomBatchRequest) *ProductstatusesCustombatchCall {
31642 c := &ProductstatusesCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31643 c.productstatusescustombatchrequest = productstatusescustombatchrequest
31644 return c
31645 }
31646
31647
31648
31649
31650 func (c *ProductstatusesCustombatchCall) Fields(s ...googleapi.Field) *ProductstatusesCustombatchCall {
31651 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31652 return c
31653 }
31654
31655
31656 func (c *ProductstatusesCustombatchCall) Context(ctx context.Context) *ProductstatusesCustombatchCall {
31657 c.ctx_ = ctx
31658 return c
31659 }
31660
31661
31662
31663 func (c *ProductstatusesCustombatchCall) Header() http.Header {
31664 if c.header_ == nil {
31665 c.header_ = make(http.Header)
31666 }
31667 return c.header_
31668 }
31669
31670 func (c *ProductstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) {
31671 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31672 var body io.Reader = nil
31673 body, err := googleapi.WithoutDataWrapper.JSONReader(c.productstatusescustombatchrequest)
31674 if err != nil {
31675 return nil, err
31676 }
31677 c.urlParams_.Set("alt", alt)
31678 c.urlParams_.Set("prettyPrint", "false")
31679 urls := googleapi.ResolveRelative(c.s.BasePath, "productstatuses/batch")
31680 urls += "?" + c.urlParams_.Encode()
31681 req, err := http.NewRequest("POST", urls, body)
31682 if err != nil {
31683 return nil, err
31684 }
31685 req.Header = reqHeaders
31686 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31687 }
31688
31689
31690
31691
31692
31693
31694
31695 func (c *ProductstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductstatusesCustomBatchResponse, error) {
31696 gensupport.SetOptions(c.urlParams_, opts...)
31697 res, err := c.doRequest("json")
31698 if res != nil && res.StatusCode == http.StatusNotModified {
31699 if res.Body != nil {
31700 res.Body.Close()
31701 }
31702 return nil, gensupport.WrapError(&googleapi.Error{
31703 Code: res.StatusCode,
31704 Header: res.Header,
31705 })
31706 }
31707 if err != nil {
31708 return nil, err
31709 }
31710 defer googleapi.CloseBody(res)
31711 if err := googleapi.CheckResponse(res); err != nil {
31712 return nil, gensupport.WrapError(err)
31713 }
31714 ret := &ProductstatusesCustomBatchResponse{
31715 ServerResponse: googleapi.ServerResponse{
31716 Header: res.Header,
31717 HTTPStatusCode: res.StatusCode,
31718 },
31719 }
31720 target := &ret
31721 if err := gensupport.DecodeResponse(target, res); err != nil {
31722 return nil, err
31723 }
31724 return ret, nil
31725 }
31726
31727 type ProductstatusesGetCall struct {
31728 s *APIService
31729 merchantId uint64
31730 productId string
31731 urlParams_ gensupport.URLParams
31732 ifNoneMatch_ string
31733 ctx_ context.Context
31734 header_ http.Header
31735 }
31736
31737
31738
31739
31740
31741
31742 func (r *ProductstatusesService) Get(merchantId uint64, productId string) *ProductstatusesGetCall {
31743 c := &ProductstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31744 c.merchantId = merchantId
31745 c.productId = productId
31746 return c
31747 }
31748
31749
31750
31751
31752 func (c *ProductstatusesGetCall) Destinations(destinations ...string) *ProductstatusesGetCall {
31753 c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
31754 return c
31755 }
31756
31757
31758
31759
31760 func (c *ProductstatusesGetCall) Fields(s ...googleapi.Field) *ProductstatusesGetCall {
31761 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31762 return c
31763 }
31764
31765
31766
31767
31768 func (c *ProductstatusesGetCall) IfNoneMatch(entityTag string) *ProductstatusesGetCall {
31769 c.ifNoneMatch_ = entityTag
31770 return c
31771 }
31772
31773
31774 func (c *ProductstatusesGetCall) Context(ctx context.Context) *ProductstatusesGetCall {
31775 c.ctx_ = ctx
31776 return c
31777 }
31778
31779
31780
31781 func (c *ProductstatusesGetCall) Header() http.Header {
31782 if c.header_ == nil {
31783 c.header_ = make(http.Header)
31784 }
31785 return c.header_
31786 }
31787
31788 func (c *ProductstatusesGetCall) doRequest(alt string) (*http.Response, error) {
31789 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31790 if c.ifNoneMatch_ != "" {
31791 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31792 }
31793 var body io.Reader = nil
31794 c.urlParams_.Set("alt", alt)
31795 c.urlParams_.Set("prettyPrint", "false")
31796 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productstatuses/{productId}")
31797 urls += "?" + c.urlParams_.Encode()
31798 req, err := http.NewRequest("GET", urls, body)
31799 if err != nil {
31800 return nil, err
31801 }
31802 req.Header = reqHeaders
31803 googleapi.Expand(req.URL, map[string]string{
31804 "merchantId": strconv.FormatUint(c.merchantId, 10),
31805 "productId": c.productId,
31806 })
31807 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31808 }
31809
31810
31811
31812
31813
31814
31815 func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatus, error) {
31816 gensupport.SetOptions(c.urlParams_, opts...)
31817 res, err := c.doRequest("json")
31818 if res != nil && res.StatusCode == http.StatusNotModified {
31819 if res.Body != nil {
31820 res.Body.Close()
31821 }
31822 return nil, gensupport.WrapError(&googleapi.Error{
31823 Code: res.StatusCode,
31824 Header: res.Header,
31825 })
31826 }
31827 if err != nil {
31828 return nil, err
31829 }
31830 defer googleapi.CloseBody(res)
31831 if err := googleapi.CheckResponse(res); err != nil {
31832 return nil, gensupport.WrapError(err)
31833 }
31834 ret := &ProductStatus{
31835 ServerResponse: googleapi.ServerResponse{
31836 Header: res.Header,
31837 HTTPStatusCode: res.StatusCode,
31838 },
31839 }
31840 target := &ret
31841 if err := gensupport.DecodeResponse(target, res); err != nil {
31842 return nil, err
31843 }
31844 return ret, nil
31845 }
31846
31847 type ProductstatusesListCall struct {
31848 s *APIService
31849 merchantId uint64
31850 urlParams_ gensupport.URLParams
31851 ifNoneMatch_ string
31852 ctx_ context.Context
31853 header_ http.Header
31854 }
31855
31856
31857
31858
31859
31860 func (r *ProductstatusesService) List(merchantId uint64) *ProductstatusesListCall {
31861 c := &ProductstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31862 c.merchantId = merchantId
31863 return c
31864 }
31865
31866
31867
31868
31869 func (c *ProductstatusesListCall) Destinations(destinations ...string) *ProductstatusesListCall {
31870 c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
31871 return c
31872 }
31873
31874
31875
31876
31877 func (c *ProductstatusesListCall) MaxResults(maxResults int64) *ProductstatusesListCall {
31878 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
31879 return c
31880 }
31881
31882
31883
31884 func (c *ProductstatusesListCall) PageToken(pageToken string) *ProductstatusesListCall {
31885 c.urlParams_.Set("pageToken", pageToken)
31886 return c
31887 }
31888
31889
31890
31891
31892 func (c *ProductstatusesListCall) Fields(s ...googleapi.Field) *ProductstatusesListCall {
31893 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31894 return c
31895 }
31896
31897
31898
31899
31900 func (c *ProductstatusesListCall) IfNoneMatch(entityTag string) *ProductstatusesListCall {
31901 c.ifNoneMatch_ = entityTag
31902 return c
31903 }
31904
31905
31906 func (c *ProductstatusesListCall) Context(ctx context.Context) *ProductstatusesListCall {
31907 c.ctx_ = ctx
31908 return c
31909 }
31910
31911
31912
31913 func (c *ProductstatusesListCall) Header() http.Header {
31914 if c.header_ == nil {
31915 c.header_ = make(http.Header)
31916 }
31917 return c.header_
31918 }
31919
31920 func (c *ProductstatusesListCall) doRequest(alt string) (*http.Response, error) {
31921 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31922 if c.ifNoneMatch_ != "" {
31923 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31924 }
31925 var body io.Reader = nil
31926 c.urlParams_.Set("alt", alt)
31927 c.urlParams_.Set("prettyPrint", "false")
31928 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productstatuses")
31929 urls += "?" + c.urlParams_.Encode()
31930 req, err := http.NewRequest("GET", urls, body)
31931 if err != nil {
31932 return nil, err
31933 }
31934 req.Header = reqHeaders
31935 googleapi.Expand(req.URL, map[string]string{
31936 "merchantId": strconv.FormatUint(c.merchantId, 10),
31937 })
31938 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31939 }
31940
31941
31942
31943
31944
31945
31946
31947 func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*ProductstatusesListResponse, error) {
31948 gensupport.SetOptions(c.urlParams_, opts...)
31949 res, err := c.doRequest("json")
31950 if res != nil && res.StatusCode == http.StatusNotModified {
31951 if res.Body != nil {
31952 res.Body.Close()
31953 }
31954 return nil, gensupport.WrapError(&googleapi.Error{
31955 Code: res.StatusCode,
31956 Header: res.Header,
31957 })
31958 }
31959 if err != nil {
31960 return nil, err
31961 }
31962 defer googleapi.CloseBody(res)
31963 if err := googleapi.CheckResponse(res); err != nil {
31964 return nil, gensupport.WrapError(err)
31965 }
31966 ret := &ProductstatusesListResponse{
31967 ServerResponse: googleapi.ServerResponse{
31968 Header: res.Header,
31969 HTTPStatusCode: res.StatusCode,
31970 },
31971 }
31972 target := &ret
31973 if err := gensupport.DecodeResponse(target, res); err != nil {
31974 return nil, err
31975 }
31976 return ret, nil
31977 }
31978
31979
31980
31981
31982 func (c *ProductstatusesListCall) Pages(ctx context.Context, f func(*ProductstatusesListResponse) error) error {
31983 c.ctx_ = ctx
31984 defer c.PageToken(c.urlParams_.Get("pageToken"))
31985 for {
31986 x, err := c.Do()
31987 if err != nil {
31988 return err
31989 }
31990 if err := f(x); err != nil {
31991 return err
31992 }
31993 if x.NextPageToken == "" {
31994 return nil
31995 }
31996 c.PageToken(x.NextPageToken)
31997 }
31998 }
31999
32000 type PromotionsCreateCall struct {
32001 s *APIService
32002 merchantId int64
32003 promotion *Promotion
32004 urlParams_ gensupport.URLParams
32005 ctx_ context.Context
32006 header_ http.Header
32007 }
32008
32009
32010
32011
32012
32013
32014
32015
32016
32017 func (r *PromotionsService) Create(merchantId int64, promotion *Promotion) *PromotionsCreateCall {
32018 c := &PromotionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32019 c.merchantId = merchantId
32020 c.promotion = promotion
32021 return c
32022 }
32023
32024
32025
32026
32027 func (c *PromotionsCreateCall) Fields(s ...googleapi.Field) *PromotionsCreateCall {
32028 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32029 return c
32030 }
32031
32032
32033 func (c *PromotionsCreateCall) Context(ctx context.Context) *PromotionsCreateCall {
32034 c.ctx_ = ctx
32035 return c
32036 }
32037
32038
32039
32040 func (c *PromotionsCreateCall) Header() http.Header {
32041 if c.header_ == nil {
32042 c.header_ = make(http.Header)
32043 }
32044 return c.header_
32045 }
32046
32047 func (c *PromotionsCreateCall) doRequest(alt string) (*http.Response, error) {
32048 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32049 var body io.Reader = nil
32050 body, err := googleapi.WithoutDataWrapper.JSONReader(c.promotion)
32051 if err != nil {
32052 return nil, err
32053 }
32054 c.urlParams_.Set("alt", alt)
32055 c.urlParams_.Set("prettyPrint", "false")
32056 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/promotions")
32057 urls += "?" + c.urlParams_.Encode()
32058 req, err := http.NewRequest("POST", urls, body)
32059 if err != nil {
32060 return nil, err
32061 }
32062 req.Header = reqHeaders
32063 googleapi.Expand(req.URL, map[string]string{
32064 "merchantId": strconv.FormatInt(c.merchantId, 10),
32065 })
32066 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32067 }
32068
32069
32070
32071
32072
32073
32074 func (c *PromotionsCreateCall) Do(opts ...googleapi.CallOption) (*Promotion, error) {
32075 gensupport.SetOptions(c.urlParams_, opts...)
32076 res, err := c.doRequest("json")
32077 if res != nil && res.StatusCode == http.StatusNotModified {
32078 if res.Body != nil {
32079 res.Body.Close()
32080 }
32081 return nil, gensupport.WrapError(&googleapi.Error{
32082 Code: res.StatusCode,
32083 Header: res.Header,
32084 })
32085 }
32086 if err != nil {
32087 return nil, err
32088 }
32089 defer googleapi.CloseBody(res)
32090 if err := googleapi.CheckResponse(res); err != nil {
32091 return nil, gensupport.WrapError(err)
32092 }
32093 ret := &Promotion{
32094 ServerResponse: googleapi.ServerResponse{
32095 Header: res.Header,
32096 HTTPStatusCode: res.StatusCode,
32097 },
32098 }
32099 target := &ret
32100 if err := gensupport.DecodeResponse(target, res); err != nil {
32101 return nil, err
32102 }
32103 return ret, nil
32104 }
32105
32106 type PromotionsGetCall struct {
32107 s *APIService
32108 merchantId int64
32109 id string
32110 urlParams_ gensupport.URLParams
32111 ifNoneMatch_ string
32112 ctx_ context.Context
32113 header_ http.Header
32114 }
32115
32116
32117
32118
32119
32120 func (r *PromotionsService) Get(merchantId int64, id string) *PromotionsGetCall {
32121 c := &PromotionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32122 c.merchantId = merchantId
32123 c.id = id
32124 return c
32125 }
32126
32127
32128
32129
32130 func (c *PromotionsGetCall) Fields(s ...googleapi.Field) *PromotionsGetCall {
32131 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32132 return c
32133 }
32134
32135
32136
32137
32138 func (c *PromotionsGetCall) IfNoneMatch(entityTag string) *PromotionsGetCall {
32139 c.ifNoneMatch_ = entityTag
32140 return c
32141 }
32142
32143
32144 func (c *PromotionsGetCall) Context(ctx context.Context) *PromotionsGetCall {
32145 c.ctx_ = ctx
32146 return c
32147 }
32148
32149
32150
32151 func (c *PromotionsGetCall) Header() http.Header {
32152 if c.header_ == nil {
32153 c.header_ = make(http.Header)
32154 }
32155 return c.header_
32156 }
32157
32158 func (c *PromotionsGetCall) doRequest(alt string) (*http.Response, error) {
32159 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32160 if c.ifNoneMatch_ != "" {
32161 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32162 }
32163 var body io.Reader = nil
32164 c.urlParams_.Set("alt", alt)
32165 c.urlParams_.Set("prettyPrint", "false")
32166 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/promotions/{id}")
32167 urls += "?" + c.urlParams_.Encode()
32168 req, err := http.NewRequest("GET", urls, body)
32169 if err != nil {
32170 return nil, err
32171 }
32172 req.Header = reqHeaders
32173 googleapi.Expand(req.URL, map[string]string{
32174 "merchantId": strconv.FormatInt(c.merchantId, 10),
32175 "id": c.id,
32176 })
32177 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32178 }
32179
32180
32181
32182
32183
32184
32185 func (c *PromotionsGetCall) Do(opts ...googleapi.CallOption) (*Promotion, error) {
32186 gensupport.SetOptions(c.urlParams_, opts...)
32187 res, err := c.doRequest("json")
32188 if res != nil && res.StatusCode == http.StatusNotModified {
32189 if res.Body != nil {
32190 res.Body.Close()
32191 }
32192 return nil, gensupport.WrapError(&googleapi.Error{
32193 Code: res.StatusCode,
32194 Header: res.Header,
32195 })
32196 }
32197 if err != nil {
32198 return nil, err
32199 }
32200 defer googleapi.CloseBody(res)
32201 if err := googleapi.CheckResponse(res); err != nil {
32202 return nil, gensupport.WrapError(err)
32203 }
32204 ret := &Promotion{
32205 ServerResponse: googleapi.ServerResponse{
32206 Header: res.Header,
32207 HTTPStatusCode: res.StatusCode,
32208 },
32209 }
32210 target := &ret
32211 if err := gensupport.DecodeResponse(target, res); err != nil {
32212 return nil, err
32213 }
32214 return ret, nil
32215 }
32216
32217 type PromotionsListCall struct {
32218 s *APIService
32219 merchantId int64
32220 urlParams_ gensupport.URLParams
32221 ifNoneMatch_ string
32222 ctx_ context.Context
32223 header_ http.Header
32224 }
32225
32226
32227
32228
32229 func (r *PromotionsService) List(merchantId int64) *PromotionsListCall {
32230 c := &PromotionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32231 c.merchantId = merchantId
32232 return c
32233 }
32234
32235
32236
32237
32238 func (c *PromotionsListCall) CountryCode(countryCode string) *PromotionsListCall {
32239 c.urlParams_.Set("countryCode", countryCode)
32240 return c
32241 }
32242
32243
32244
32245 func (c *PromotionsListCall) LanguageCode(languageCode string) *PromotionsListCall {
32246 c.urlParams_.Set("languageCode", languageCode)
32247 return c
32248 }
32249
32250
32251
32252
32253
32254 func (c *PromotionsListCall) PageSize(pageSize int64) *PromotionsListCall {
32255 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32256 return c
32257 }
32258
32259
32260
32261
32262
32263 func (c *PromotionsListCall) PageToken(pageToken string) *PromotionsListCall {
32264 c.urlParams_.Set("pageToken", pageToken)
32265 return c
32266 }
32267
32268
32269
32270
32271 func (c *PromotionsListCall) Fields(s ...googleapi.Field) *PromotionsListCall {
32272 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32273 return c
32274 }
32275
32276
32277
32278
32279 func (c *PromotionsListCall) IfNoneMatch(entityTag string) *PromotionsListCall {
32280 c.ifNoneMatch_ = entityTag
32281 return c
32282 }
32283
32284
32285 func (c *PromotionsListCall) Context(ctx context.Context) *PromotionsListCall {
32286 c.ctx_ = ctx
32287 return c
32288 }
32289
32290
32291
32292 func (c *PromotionsListCall) Header() http.Header {
32293 if c.header_ == nil {
32294 c.header_ = make(http.Header)
32295 }
32296 return c.header_
32297 }
32298
32299 func (c *PromotionsListCall) doRequest(alt string) (*http.Response, error) {
32300 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32301 if c.ifNoneMatch_ != "" {
32302 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32303 }
32304 var body io.Reader = nil
32305 c.urlParams_.Set("alt", alt)
32306 c.urlParams_.Set("prettyPrint", "false")
32307 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/promotions")
32308 urls += "?" + c.urlParams_.Encode()
32309 req, err := http.NewRequest("GET", urls, body)
32310 if err != nil {
32311 return nil, err
32312 }
32313 req.Header = reqHeaders
32314 googleapi.Expand(req.URL, map[string]string{
32315 "merchantId": strconv.FormatInt(c.merchantId, 10),
32316 })
32317 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32318 }
32319
32320
32321
32322
32323
32324
32325
32326 func (c *PromotionsListCall) Do(opts ...googleapi.CallOption) (*ListPromotionResponse, error) {
32327 gensupport.SetOptions(c.urlParams_, opts...)
32328 res, err := c.doRequest("json")
32329 if res != nil && res.StatusCode == http.StatusNotModified {
32330 if res.Body != nil {
32331 res.Body.Close()
32332 }
32333 return nil, gensupport.WrapError(&googleapi.Error{
32334 Code: res.StatusCode,
32335 Header: res.Header,
32336 })
32337 }
32338 if err != nil {
32339 return nil, err
32340 }
32341 defer googleapi.CloseBody(res)
32342 if err := googleapi.CheckResponse(res); err != nil {
32343 return nil, gensupport.WrapError(err)
32344 }
32345 ret := &ListPromotionResponse{
32346 ServerResponse: googleapi.ServerResponse{
32347 Header: res.Header,
32348 HTTPStatusCode: res.StatusCode,
32349 },
32350 }
32351 target := &ret
32352 if err := gensupport.DecodeResponse(target, res); err != nil {
32353 return nil, err
32354 }
32355 return ret, nil
32356 }
32357
32358
32359
32360
32361 func (c *PromotionsListCall) Pages(ctx context.Context, f func(*ListPromotionResponse) error) error {
32362 c.ctx_ = ctx
32363 defer c.PageToken(c.urlParams_.Get("pageToken"))
32364 for {
32365 x, err := c.Do()
32366 if err != nil {
32367 return err
32368 }
32369 if err := f(x); err != nil {
32370 return err
32371 }
32372 if x.NextPageToken == "" {
32373 return nil
32374 }
32375 c.PageToken(x.NextPageToken)
32376 }
32377 }
32378
32379 type PubsubnotificationsettingsGetCall struct {
32380 s *APIService
32381 merchantId uint64
32382 urlParams_ gensupport.URLParams
32383 ifNoneMatch_ string
32384 ctx_ context.Context
32385 header_ http.Header
32386 }
32387
32388
32389
32390
32391
32392 func (r *PubsubnotificationsettingsService) Get(merchantId uint64) *PubsubnotificationsettingsGetCall {
32393 c := &PubsubnotificationsettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32394 c.merchantId = merchantId
32395 return c
32396 }
32397
32398
32399
32400
32401 func (c *PubsubnotificationsettingsGetCall) Fields(s ...googleapi.Field) *PubsubnotificationsettingsGetCall {
32402 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32403 return c
32404 }
32405
32406
32407
32408
32409 func (c *PubsubnotificationsettingsGetCall) IfNoneMatch(entityTag string) *PubsubnotificationsettingsGetCall {
32410 c.ifNoneMatch_ = entityTag
32411 return c
32412 }
32413
32414
32415 func (c *PubsubnotificationsettingsGetCall) Context(ctx context.Context) *PubsubnotificationsettingsGetCall {
32416 c.ctx_ = ctx
32417 return c
32418 }
32419
32420
32421
32422 func (c *PubsubnotificationsettingsGetCall) Header() http.Header {
32423 if c.header_ == nil {
32424 c.header_ = make(http.Header)
32425 }
32426 return c.header_
32427 }
32428
32429 func (c *PubsubnotificationsettingsGetCall) doRequest(alt string) (*http.Response, error) {
32430 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32431 if c.ifNoneMatch_ != "" {
32432 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32433 }
32434 var body io.Reader = nil
32435 c.urlParams_.Set("alt", alt)
32436 c.urlParams_.Set("prettyPrint", "false")
32437 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pubsubnotificationsettings")
32438 urls += "?" + c.urlParams_.Encode()
32439 req, err := http.NewRequest("GET", urls, body)
32440 if err != nil {
32441 return nil, err
32442 }
32443 req.Header = reqHeaders
32444 googleapi.Expand(req.URL, map[string]string{
32445 "merchantId": strconv.FormatUint(c.merchantId, 10),
32446 })
32447 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32448 }
32449
32450
32451
32452
32453
32454
32455
32456 func (c *PubsubnotificationsettingsGetCall) Do(opts ...googleapi.CallOption) (*PubsubNotificationSettings, error) {
32457 gensupport.SetOptions(c.urlParams_, opts...)
32458 res, err := c.doRequest("json")
32459 if res != nil && res.StatusCode == http.StatusNotModified {
32460 if res.Body != nil {
32461 res.Body.Close()
32462 }
32463 return nil, gensupport.WrapError(&googleapi.Error{
32464 Code: res.StatusCode,
32465 Header: res.Header,
32466 })
32467 }
32468 if err != nil {
32469 return nil, err
32470 }
32471 defer googleapi.CloseBody(res)
32472 if err := googleapi.CheckResponse(res); err != nil {
32473 return nil, gensupport.WrapError(err)
32474 }
32475 ret := &PubsubNotificationSettings{
32476 ServerResponse: googleapi.ServerResponse{
32477 Header: res.Header,
32478 HTTPStatusCode: res.StatusCode,
32479 },
32480 }
32481 target := &ret
32482 if err := gensupport.DecodeResponse(target, res); err != nil {
32483 return nil, err
32484 }
32485 return ret, nil
32486 }
32487
32488 type PubsubnotificationsettingsUpdateCall struct {
32489 s *APIService
32490 merchantId uint64
32491 pubsubnotificationsettings *PubsubNotificationSettings
32492 urlParams_ gensupport.URLParams
32493 ctx_ context.Context
32494 header_ http.Header
32495 }
32496
32497
32498
32499
32500
32501 func (r *PubsubnotificationsettingsService) Update(merchantId uint64, pubsubnotificationsettings *PubsubNotificationSettings) *PubsubnotificationsettingsUpdateCall {
32502 c := &PubsubnotificationsettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32503 c.merchantId = merchantId
32504 c.pubsubnotificationsettings = pubsubnotificationsettings
32505 return c
32506 }
32507
32508
32509
32510
32511 func (c *PubsubnotificationsettingsUpdateCall) Fields(s ...googleapi.Field) *PubsubnotificationsettingsUpdateCall {
32512 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32513 return c
32514 }
32515
32516
32517 func (c *PubsubnotificationsettingsUpdateCall) Context(ctx context.Context) *PubsubnotificationsettingsUpdateCall {
32518 c.ctx_ = ctx
32519 return c
32520 }
32521
32522
32523
32524 func (c *PubsubnotificationsettingsUpdateCall) Header() http.Header {
32525 if c.header_ == nil {
32526 c.header_ = make(http.Header)
32527 }
32528 return c.header_
32529 }
32530
32531 func (c *PubsubnotificationsettingsUpdateCall) doRequest(alt string) (*http.Response, error) {
32532 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32533 var body io.Reader = nil
32534 body, err := googleapi.WithoutDataWrapper.JSONReader(c.pubsubnotificationsettings)
32535 if err != nil {
32536 return nil, err
32537 }
32538 c.urlParams_.Set("alt", alt)
32539 c.urlParams_.Set("prettyPrint", "false")
32540 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pubsubnotificationsettings")
32541 urls += "?" + c.urlParams_.Encode()
32542 req, err := http.NewRequest("PUT", urls, body)
32543 if err != nil {
32544 return nil, err
32545 }
32546 req.Header = reqHeaders
32547 googleapi.Expand(req.URL, map[string]string{
32548 "merchantId": strconv.FormatUint(c.merchantId, 10),
32549 })
32550 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32551 }
32552
32553
32554
32555
32556
32557
32558
32559 func (c *PubsubnotificationsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*PubsubNotificationSettings, error) {
32560 gensupport.SetOptions(c.urlParams_, opts...)
32561 res, err := c.doRequest("json")
32562 if res != nil && res.StatusCode == http.StatusNotModified {
32563 if res.Body != nil {
32564 res.Body.Close()
32565 }
32566 return nil, gensupport.WrapError(&googleapi.Error{
32567 Code: res.StatusCode,
32568 Header: res.Header,
32569 })
32570 }
32571 if err != nil {
32572 return nil, err
32573 }
32574 defer googleapi.CloseBody(res)
32575 if err := googleapi.CheckResponse(res); err != nil {
32576 return nil, gensupport.WrapError(err)
32577 }
32578 ret := &PubsubNotificationSettings{
32579 ServerResponse: googleapi.ServerResponse{
32580 Header: res.Header,
32581 HTTPStatusCode: res.StatusCode,
32582 },
32583 }
32584 target := &ret
32585 if err := gensupport.DecodeResponse(target, res); err != nil {
32586 return nil, err
32587 }
32588 return ret, nil
32589 }
32590
32591 type QuotasListCall struct {
32592 s *APIService
32593 merchantId int64
32594 urlParams_ gensupport.URLParams
32595 ifNoneMatch_ string
32596 ctx_ context.Context
32597 header_ http.Header
32598 }
32599
32600
32601
32602
32603
32604
32605 func (r *QuotasService) List(merchantId int64) *QuotasListCall {
32606 c := &QuotasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32607 c.merchantId = merchantId
32608 return c
32609 }
32610
32611
32612
32613
32614 func (c *QuotasListCall) PageSize(pageSize int64) *QuotasListCall {
32615 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32616 return c
32617 }
32618
32619
32620
32621
32622 func (c *QuotasListCall) PageToken(pageToken string) *QuotasListCall {
32623 c.urlParams_.Set("pageToken", pageToken)
32624 return c
32625 }
32626
32627
32628
32629
32630 func (c *QuotasListCall) Fields(s ...googleapi.Field) *QuotasListCall {
32631 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32632 return c
32633 }
32634
32635
32636
32637
32638 func (c *QuotasListCall) IfNoneMatch(entityTag string) *QuotasListCall {
32639 c.ifNoneMatch_ = entityTag
32640 return c
32641 }
32642
32643
32644 func (c *QuotasListCall) Context(ctx context.Context) *QuotasListCall {
32645 c.ctx_ = ctx
32646 return c
32647 }
32648
32649
32650
32651 func (c *QuotasListCall) Header() http.Header {
32652 if c.header_ == nil {
32653 c.header_ = make(http.Header)
32654 }
32655 return c.header_
32656 }
32657
32658 func (c *QuotasListCall) doRequest(alt string) (*http.Response, error) {
32659 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32660 if c.ifNoneMatch_ != "" {
32661 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32662 }
32663 var body io.Reader = nil
32664 c.urlParams_.Set("alt", alt)
32665 c.urlParams_.Set("prettyPrint", "false")
32666 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/quotas")
32667 urls += "?" + c.urlParams_.Encode()
32668 req, err := http.NewRequest("GET", urls, body)
32669 if err != nil {
32670 return nil, err
32671 }
32672 req.Header = reqHeaders
32673 googleapi.Expand(req.URL, map[string]string{
32674 "merchantId": strconv.FormatInt(c.merchantId, 10),
32675 })
32676 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32677 }
32678
32679
32680
32681
32682
32683
32684
32685 func (c *QuotasListCall) Do(opts ...googleapi.CallOption) (*ListMethodQuotasResponse, error) {
32686 gensupport.SetOptions(c.urlParams_, opts...)
32687 res, err := c.doRequest("json")
32688 if res != nil && res.StatusCode == http.StatusNotModified {
32689 if res.Body != nil {
32690 res.Body.Close()
32691 }
32692 return nil, gensupport.WrapError(&googleapi.Error{
32693 Code: res.StatusCode,
32694 Header: res.Header,
32695 })
32696 }
32697 if err != nil {
32698 return nil, err
32699 }
32700 defer googleapi.CloseBody(res)
32701 if err := googleapi.CheckResponse(res); err != nil {
32702 return nil, gensupport.WrapError(err)
32703 }
32704 ret := &ListMethodQuotasResponse{
32705 ServerResponse: googleapi.ServerResponse{
32706 Header: res.Header,
32707 HTTPStatusCode: res.StatusCode,
32708 },
32709 }
32710 target := &ret
32711 if err := gensupport.DecodeResponse(target, res); err != nil {
32712 return nil, err
32713 }
32714 return ret, nil
32715 }
32716
32717
32718
32719
32720 func (c *QuotasListCall) Pages(ctx context.Context, f func(*ListMethodQuotasResponse) error) error {
32721 c.ctx_ = ctx
32722 defer c.PageToken(c.urlParams_.Get("pageToken"))
32723 for {
32724 x, err := c.Do()
32725 if err != nil {
32726 return err
32727 }
32728 if err := f(x); err != nil {
32729 return err
32730 }
32731 if x.NextPageToken == "" {
32732 return nil
32733 }
32734 c.PageToken(x.NextPageToken)
32735 }
32736 }
32737
32738 type RecommendationsGenerateCall struct {
32739 s *APIService
32740 merchantId int64
32741 urlParams_ gensupport.URLParams
32742 ifNoneMatch_ string
32743 ctx_ context.Context
32744 header_ http.Header
32745 }
32746
32747
32748
32749
32750 func (r *RecommendationsService) Generate(merchantId int64) *RecommendationsGenerateCall {
32751 c := &RecommendationsGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32752 c.merchantId = merchantId
32753 return c
32754 }
32755
32756
32757
32758
32759
32760
32761 func (c *RecommendationsGenerateCall) AllowedTag(allowedTag ...string) *RecommendationsGenerateCall {
32762 c.urlParams_.SetMulti("allowedTag", append([]string{}, allowedTag...))
32763 return c
32764 }
32765
32766
32767
32768
32769
32770
32771
32772 func (c *RecommendationsGenerateCall) LanguageCode(languageCode string) *RecommendationsGenerateCall {
32773 c.urlParams_.Set("languageCode", languageCode)
32774 return c
32775 }
32776
32777
32778
32779
32780 func (c *RecommendationsGenerateCall) Fields(s ...googleapi.Field) *RecommendationsGenerateCall {
32781 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32782 return c
32783 }
32784
32785
32786
32787
32788 func (c *RecommendationsGenerateCall) IfNoneMatch(entityTag string) *RecommendationsGenerateCall {
32789 c.ifNoneMatch_ = entityTag
32790 return c
32791 }
32792
32793
32794 func (c *RecommendationsGenerateCall) Context(ctx context.Context) *RecommendationsGenerateCall {
32795 c.ctx_ = ctx
32796 return c
32797 }
32798
32799
32800
32801 func (c *RecommendationsGenerateCall) Header() http.Header {
32802 if c.header_ == nil {
32803 c.header_ = make(http.Header)
32804 }
32805 return c.header_
32806 }
32807
32808 func (c *RecommendationsGenerateCall) doRequest(alt string) (*http.Response, error) {
32809 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32810 if c.ifNoneMatch_ != "" {
32811 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32812 }
32813 var body io.Reader = nil
32814 c.urlParams_.Set("alt", alt)
32815 c.urlParams_.Set("prettyPrint", "false")
32816 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/recommendations/generate")
32817 urls += "?" + c.urlParams_.Encode()
32818 req, err := http.NewRequest("GET", urls, body)
32819 if err != nil {
32820 return nil, err
32821 }
32822 req.Header = reqHeaders
32823 googleapi.Expand(req.URL, map[string]string{
32824 "merchantId": strconv.FormatInt(c.merchantId, 10),
32825 })
32826 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32827 }
32828
32829
32830
32831
32832
32833
32834
32835 func (c *RecommendationsGenerateCall) Do(opts ...googleapi.CallOption) (*GenerateRecommendationsResponse, error) {
32836 gensupport.SetOptions(c.urlParams_, opts...)
32837 res, err := c.doRequest("json")
32838 if res != nil && res.StatusCode == http.StatusNotModified {
32839 if res.Body != nil {
32840 res.Body.Close()
32841 }
32842 return nil, gensupport.WrapError(&googleapi.Error{
32843 Code: res.StatusCode,
32844 Header: res.Header,
32845 })
32846 }
32847 if err != nil {
32848 return nil, err
32849 }
32850 defer googleapi.CloseBody(res)
32851 if err := googleapi.CheckResponse(res); err != nil {
32852 return nil, gensupport.WrapError(err)
32853 }
32854 ret := &GenerateRecommendationsResponse{
32855 ServerResponse: googleapi.ServerResponse{
32856 Header: res.Header,
32857 HTTPStatusCode: res.StatusCode,
32858 },
32859 }
32860 target := &ret
32861 if err := gensupport.DecodeResponse(target, res); err != nil {
32862 return nil, err
32863 }
32864 return ret, nil
32865 }
32866
32867 type RecommendationsReportInteractionCall struct {
32868 s *APIService
32869 merchantId int64
32870 reportinteractionrequest *ReportInteractionRequest
32871 urlParams_ gensupport.URLParams
32872 ctx_ context.Context
32873 header_ http.Header
32874 }
32875
32876
32877
32878
32879
32880 func (r *RecommendationsService) ReportInteraction(merchantId int64, reportinteractionrequest *ReportInteractionRequest) *RecommendationsReportInteractionCall {
32881 c := &RecommendationsReportInteractionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32882 c.merchantId = merchantId
32883 c.reportinteractionrequest = reportinteractionrequest
32884 return c
32885 }
32886
32887
32888
32889
32890 func (c *RecommendationsReportInteractionCall) Fields(s ...googleapi.Field) *RecommendationsReportInteractionCall {
32891 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32892 return c
32893 }
32894
32895
32896 func (c *RecommendationsReportInteractionCall) Context(ctx context.Context) *RecommendationsReportInteractionCall {
32897 c.ctx_ = ctx
32898 return c
32899 }
32900
32901
32902
32903 func (c *RecommendationsReportInteractionCall) Header() http.Header {
32904 if c.header_ == nil {
32905 c.header_ = make(http.Header)
32906 }
32907 return c.header_
32908 }
32909
32910 func (c *RecommendationsReportInteractionCall) doRequest(alt string) (*http.Response, error) {
32911 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32912 var body io.Reader = nil
32913 body, err := googleapi.WithoutDataWrapper.JSONReader(c.reportinteractionrequest)
32914 if err != nil {
32915 return nil, err
32916 }
32917 c.urlParams_.Set("alt", alt)
32918 c.urlParams_.Set("prettyPrint", "false")
32919 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/recommendations/reportInteraction")
32920 urls += "?" + c.urlParams_.Encode()
32921 req, err := http.NewRequest("POST", urls, body)
32922 if err != nil {
32923 return nil, err
32924 }
32925 req.Header = reqHeaders
32926 googleapi.Expand(req.URL, map[string]string{
32927 "merchantId": strconv.FormatInt(c.merchantId, 10),
32928 })
32929 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32930 }
32931
32932
32933 func (c *RecommendationsReportInteractionCall) Do(opts ...googleapi.CallOption) error {
32934 gensupport.SetOptions(c.urlParams_, opts...)
32935 res, err := c.doRequest("json")
32936 if err != nil {
32937 return err
32938 }
32939 defer googleapi.CloseBody(res)
32940 if err := googleapi.CheckResponse(res); err != nil {
32941 return gensupport.WrapError(err)
32942 }
32943 return nil
32944 }
32945
32946 type RegionalinventoryCustombatchCall struct {
32947 s *APIService
32948 regionalinventorycustombatchrequest *RegionalinventoryCustomBatchRequest
32949 urlParams_ gensupport.URLParams
32950 ctx_ context.Context
32951 header_ http.Header
32952 }
32953
32954
32955
32956 func (r *RegionalinventoryService) Custombatch(regionalinventorycustombatchrequest *RegionalinventoryCustomBatchRequest) *RegionalinventoryCustombatchCall {
32957 c := &RegionalinventoryCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32958 c.regionalinventorycustombatchrequest = regionalinventorycustombatchrequest
32959 return c
32960 }
32961
32962
32963
32964
32965 func (c *RegionalinventoryCustombatchCall) Fields(s ...googleapi.Field) *RegionalinventoryCustombatchCall {
32966 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32967 return c
32968 }
32969
32970
32971 func (c *RegionalinventoryCustombatchCall) Context(ctx context.Context) *RegionalinventoryCustombatchCall {
32972 c.ctx_ = ctx
32973 return c
32974 }
32975
32976
32977
32978 func (c *RegionalinventoryCustombatchCall) Header() http.Header {
32979 if c.header_ == nil {
32980 c.header_ = make(http.Header)
32981 }
32982 return c.header_
32983 }
32984
32985 func (c *RegionalinventoryCustombatchCall) doRequest(alt string) (*http.Response, error) {
32986 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32987 var body io.Reader = nil
32988 body, err := googleapi.WithoutDataWrapper.JSONReader(c.regionalinventorycustombatchrequest)
32989 if err != nil {
32990 return nil, err
32991 }
32992 c.urlParams_.Set("alt", alt)
32993 c.urlParams_.Set("prettyPrint", "false")
32994 urls := googleapi.ResolveRelative(c.s.BasePath, "regionalinventory/batch")
32995 urls += "?" + c.urlParams_.Encode()
32996 req, err := http.NewRequest("POST", urls, body)
32997 if err != nil {
32998 return nil, err
32999 }
33000 req.Header = reqHeaders
33001 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33002 }
33003
33004
33005
33006
33007
33008
33009
33010 func (c *RegionalinventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*RegionalinventoryCustomBatchResponse, error) {
33011 gensupport.SetOptions(c.urlParams_, opts...)
33012 res, err := c.doRequest("json")
33013 if res != nil && res.StatusCode == http.StatusNotModified {
33014 if res.Body != nil {
33015 res.Body.Close()
33016 }
33017 return nil, gensupport.WrapError(&googleapi.Error{
33018 Code: res.StatusCode,
33019 Header: res.Header,
33020 })
33021 }
33022 if err != nil {
33023 return nil, err
33024 }
33025 defer googleapi.CloseBody(res)
33026 if err := googleapi.CheckResponse(res); err != nil {
33027 return nil, gensupport.WrapError(err)
33028 }
33029 ret := &RegionalinventoryCustomBatchResponse{
33030 ServerResponse: googleapi.ServerResponse{
33031 Header: res.Header,
33032 HTTPStatusCode: res.StatusCode,
33033 },
33034 }
33035 target := &ret
33036 if err := gensupport.DecodeResponse(target, res); err != nil {
33037 return nil, err
33038 }
33039 return ret, nil
33040 }
33041
33042 type RegionalinventoryInsertCall struct {
33043 s *APIService
33044 merchantId uint64
33045 productId string
33046 regionalinventory *RegionalInventory
33047 urlParams_ gensupport.URLParams
33048 ctx_ context.Context
33049 header_ http.Header
33050 }
33051
33052
33053
33054
33055
33056
33057
33058
33059
33060 func (r *RegionalinventoryService) Insert(merchantId uint64, productId string, regionalinventory *RegionalInventory) *RegionalinventoryInsertCall {
33061 c := &RegionalinventoryInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33062 c.merchantId = merchantId
33063 c.productId = productId
33064 c.regionalinventory = regionalinventory
33065 return c
33066 }
33067
33068
33069
33070
33071 func (c *RegionalinventoryInsertCall) Fields(s ...googleapi.Field) *RegionalinventoryInsertCall {
33072 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33073 return c
33074 }
33075
33076
33077 func (c *RegionalinventoryInsertCall) Context(ctx context.Context) *RegionalinventoryInsertCall {
33078 c.ctx_ = ctx
33079 return c
33080 }
33081
33082
33083
33084 func (c *RegionalinventoryInsertCall) Header() http.Header {
33085 if c.header_ == nil {
33086 c.header_ = make(http.Header)
33087 }
33088 return c.header_
33089 }
33090
33091 func (c *RegionalinventoryInsertCall) doRequest(alt string) (*http.Response, error) {
33092 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33093 var body io.Reader = nil
33094 body, err := googleapi.WithoutDataWrapper.JSONReader(c.regionalinventory)
33095 if err != nil {
33096 return nil, err
33097 }
33098 c.urlParams_.Set("alt", alt)
33099 c.urlParams_.Set("prettyPrint", "false")
33100 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}/regionalinventory")
33101 urls += "?" + c.urlParams_.Encode()
33102 req, err := http.NewRequest("POST", urls, body)
33103 if err != nil {
33104 return nil, err
33105 }
33106 req.Header = reqHeaders
33107 googleapi.Expand(req.URL, map[string]string{
33108 "merchantId": strconv.FormatUint(c.merchantId, 10),
33109 "productId": c.productId,
33110 })
33111 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33112 }
33113
33114
33115
33116
33117
33118
33119
33120 func (c *RegionalinventoryInsertCall) Do(opts ...googleapi.CallOption) (*RegionalInventory, error) {
33121 gensupport.SetOptions(c.urlParams_, opts...)
33122 res, err := c.doRequest("json")
33123 if res != nil && res.StatusCode == http.StatusNotModified {
33124 if res.Body != nil {
33125 res.Body.Close()
33126 }
33127 return nil, gensupport.WrapError(&googleapi.Error{
33128 Code: res.StatusCode,
33129 Header: res.Header,
33130 })
33131 }
33132 if err != nil {
33133 return nil, err
33134 }
33135 defer googleapi.CloseBody(res)
33136 if err := googleapi.CheckResponse(res); err != nil {
33137 return nil, gensupport.WrapError(err)
33138 }
33139 ret := &RegionalInventory{
33140 ServerResponse: googleapi.ServerResponse{
33141 Header: res.Header,
33142 HTTPStatusCode: res.StatusCode,
33143 },
33144 }
33145 target := &ret
33146 if err := gensupport.DecodeResponse(target, res); err != nil {
33147 return nil, err
33148 }
33149 return ret, nil
33150 }
33151
33152 type RegionsCreateCall struct {
33153 s *APIService
33154 merchantId int64
33155 region *Region
33156 urlParams_ gensupport.URLParams
33157 ctx_ context.Context
33158 header_ http.Header
33159 }
33160
33161
33162
33163
33164 func (r *RegionsService) Create(merchantId int64, region *Region) *RegionsCreateCall {
33165 c := &RegionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33166 c.merchantId = merchantId
33167 c.region = region
33168 return c
33169 }
33170
33171
33172
33173 func (c *RegionsCreateCall) RegionId(regionId string) *RegionsCreateCall {
33174 c.urlParams_.Set("regionId", regionId)
33175 return c
33176 }
33177
33178
33179
33180
33181 func (c *RegionsCreateCall) Fields(s ...googleapi.Field) *RegionsCreateCall {
33182 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33183 return c
33184 }
33185
33186
33187 func (c *RegionsCreateCall) Context(ctx context.Context) *RegionsCreateCall {
33188 c.ctx_ = ctx
33189 return c
33190 }
33191
33192
33193
33194 func (c *RegionsCreateCall) Header() http.Header {
33195 if c.header_ == nil {
33196 c.header_ = make(http.Header)
33197 }
33198 return c.header_
33199 }
33200
33201 func (c *RegionsCreateCall) doRequest(alt string) (*http.Response, error) {
33202 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33203 var body io.Reader = nil
33204 body, err := googleapi.WithoutDataWrapper.JSONReader(c.region)
33205 if err != nil {
33206 return nil, err
33207 }
33208 c.urlParams_.Set("alt", alt)
33209 c.urlParams_.Set("prettyPrint", "false")
33210 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/regions")
33211 urls += "?" + c.urlParams_.Encode()
33212 req, err := http.NewRequest("POST", urls, body)
33213 if err != nil {
33214 return nil, err
33215 }
33216 req.Header = reqHeaders
33217 googleapi.Expand(req.URL, map[string]string{
33218 "merchantId": strconv.FormatInt(c.merchantId, 10),
33219 })
33220 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33221 }
33222
33223
33224
33225
33226
33227
33228 func (c *RegionsCreateCall) Do(opts ...googleapi.CallOption) (*Region, error) {
33229 gensupport.SetOptions(c.urlParams_, opts...)
33230 res, err := c.doRequest("json")
33231 if res != nil && res.StatusCode == http.StatusNotModified {
33232 if res.Body != nil {
33233 res.Body.Close()
33234 }
33235 return nil, gensupport.WrapError(&googleapi.Error{
33236 Code: res.StatusCode,
33237 Header: res.Header,
33238 })
33239 }
33240 if err != nil {
33241 return nil, err
33242 }
33243 defer googleapi.CloseBody(res)
33244 if err := googleapi.CheckResponse(res); err != nil {
33245 return nil, gensupport.WrapError(err)
33246 }
33247 ret := &Region{
33248 ServerResponse: googleapi.ServerResponse{
33249 Header: res.Header,
33250 HTTPStatusCode: res.StatusCode,
33251 },
33252 }
33253 target := &ret
33254 if err := gensupport.DecodeResponse(target, res); err != nil {
33255 return nil, err
33256 }
33257 return ret, nil
33258 }
33259
33260 type RegionsDeleteCall struct {
33261 s *APIService
33262 merchantId int64
33263 regionId string
33264 urlParams_ gensupport.URLParams
33265 ctx_ context.Context
33266 header_ http.Header
33267 }
33268
33269
33270
33271
33272
33273 func (r *RegionsService) Delete(merchantId int64, regionId string) *RegionsDeleteCall {
33274 c := &RegionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33275 c.merchantId = merchantId
33276 c.regionId = regionId
33277 return c
33278 }
33279
33280
33281
33282
33283 func (c *RegionsDeleteCall) Fields(s ...googleapi.Field) *RegionsDeleteCall {
33284 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33285 return c
33286 }
33287
33288
33289 func (c *RegionsDeleteCall) Context(ctx context.Context) *RegionsDeleteCall {
33290 c.ctx_ = ctx
33291 return c
33292 }
33293
33294
33295
33296 func (c *RegionsDeleteCall) Header() http.Header {
33297 if c.header_ == nil {
33298 c.header_ = make(http.Header)
33299 }
33300 return c.header_
33301 }
33302
33303 func (c *RegionsDeleteCall) doRequest(alt string) (*http.Response, error) {
33304 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33305 var body io.Reader = nil
33306 c.urlParams_.Set("alt", alt)
33307 c.urlParams_.Set("prettyPrint", "false")
33308 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/regions/{regionId}")
33309 urls += "?" + c.urlParams_.Encode()
33310 req, err := http.NewRequest("DELETE", urls, body)
33311 if err != nil {
33312 return nil, err
33313 }
33314 req.Header = reqHeaders
33315 googleapi.Expand(req.URL, map[string]string{
33316 "merchantId": strconv.FormatInt(c.merchantId, 10),
33317 "regionId": c.regionId,
33318 })
33319 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33320 }
33321
33322
33323 func (c *RegionsDeleteCall) Do(opts ...googleapi.CallOption) error {
33324 gensupport.SetOptions(c.urlParams_, opts...)
33325 res, err := c.doRequest("json")
33326 if err != nil {
33327 return err
33328 }
33329 defer googleapi.CloseBody(res)
33330 if err := googleapi.CheckResponse(res); err != nil {
33331 return gensupport.WrapError(err)
33332 }
33333 return nil
33334 }
33335
33336 type RegionsGetCall struct {
33337 s *APIService
33338 merchantId int64
33339 regionId string
33340 urlParams_ gensupport.URLParams
33341 ifNoneMatch_ string
33342 ctx_ context.Context
33343 header_ http.Header
33344 }
33345
33346
33347
33348
33349
33350
33351 func (r *RegionsService) Get(merchantId int64, regionId string) *RegionsGetCall {
33352 c := &RegionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33353 c.merchantId = merchantId
33354 c.regionId = regionId
33355 return c
33356 }
33357
33358
33359
33360
33361 func (c *RegionsGetCall) Fields(s ...googleapi.Field) *RegionsGetCall {
33362 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33363 return c
33364 }
33365
33366
33367
33368
33369 func (c *RegionsGetCall) IfNoneMatch(entityTag string) *RegionsGetCall {
33370 c.ifNoneMatch_ = entityTag
33371 return c
33372 }
33373
33374
33375 func (c *RegionsGetCall) Context(ctx context.Context) *RegionsGetCall {
33376 c.ctx_ = ctx
33377 return c
33378 }
33379
33380
33381
33382 func (c *RegionsGetCall) Header() http.Header {
33383 if c.header_ == nil {
33384 c.header_ = make(http.Header)
33385 }
33386 return c.header_
33387 }
33388
33389 func (c *RegionsGetCall) doRequest(alt string) (*http.Response, error) {
33390 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33391 if c.ifNoneMatch_ != "" {
33392 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33393 }
33394 var body io.Reader = nil
33395 c.urlParams_.Set("alt", alt)
33396 c.urlParams_.Set("prettyPrint", "false")
33397 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/regions/{regionId}")
33398 urls += "?" + c.urlParams_.Encode()
33399 req, err := http.NewRequest("GET", urls, body)
33400 if err != nil {
33401 return nil, err
33402 }
33403 req.Header = reqHeaders
33404 googleapi.Expand(req.URL, map[string]string{
33405 "merchantId": strconv.FormatInt(c.merchantId, 10),
33406 "regionId": c.regionId,
33407 })
33408 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33409 }
33410
33411
33412
33413
33414
33415
33416 func (c *RegionsGetCall) Do(opts ...googleapi.CallOption) (*Region, error) {
33417 gensupport.SetOptions(c.urlParams_, opts...)
33418 res, err := c.doRequest("json")
33419 if res != nil && res.StatusCode == http.StatusNotModified {
33420 if res.Body != nil {
33421 res.Body.Close()
33422 }
33423 return nil, gensupport.WrapError(&googleapi.Error{
33424 Code: res.StatusCode,
33425 Header: res.Header,
33426 })
33427 }
33428 if err != nil {
33429 return nil, err
33430 }
33431 defer googleapi.CloseBody(res)
33432 if err := googleapi.CheckResponse(res); err != nil {
33433 return nil, gensupport.WrapError(err)
33434 }
33435 ret := &Region{
33436 ServerResponse: googleapi.ServerResponse{
33437 Header: res.Header,
33438 HTTPStatusCode: res.StatusCode,
33439 },
33440 }
33441 target := &ret
33442 if err := gensupport.DecodeResponse(target, res); err != nil {
33443 return nil, err
33444 }
33445 return ret, nil
33446 }
33447
33448 type RegionsListCall struct {
33449 s *APIService
33450 merchantId int64
33451 urlParams_ gensupport.URLParams
33452 ifNoneMatch_ string
33453 ctx_ context.Context
33454 header_ http.Header
33455 }
33456
33457
33458
33459
33460 func (r *RegionsService) List(merchantId int64) *RegionsListCall {
33461 c := &RegionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33462 c.merchantId = merchantId
33463 return c
33464 }
33465
33466
33467
33468
33469
33470 func (c *RegionsListCall) PageSize(pageSize int64) *RegionsListCall {
33471 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33472 return c
33473 }
33474
33475
33476
33477
33478
33479 func (c *RegionsListCall) PageToken(pageToken string) *RegionsListCall {
33480 c.urlParams_.Set("pageToken", pageToken)
33481 return c
33482 }
33483
33484
33485
33486
33487 func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall {
33488 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33489 return c
33490 }
33491
33492
33493
33494
33495 func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall {
33496 c.ifNoneMatch_ = entityTag
33497 return c
33498 }
33499
33500
33501 func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall {
33502 c.ctx_ = ctx
33503 return c
33504 }
33505
33506
33507
33508 func (c *RegionsListCall) Header() http.Header {
33509 if c.header_ == nil {
33510 c.header_ = make(http.Header)
33511 }
33512 return c.header_
33513 }
33514
33515 func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) {
33516 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33517 if c.ifNoneMatch_ != "" {
33518 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33519 }
33520 var body io.Reader = nil
33521 c.urlParams_.Set("alt", alt)
33522 c.urlParams_.Set("prettyPrint", "false")
33523 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/regions")
33524 urls += "?" + c.urlParams_.Encode()
33525 req, err := http.NewRequest("GET", urls, body)
33526 if err != nil {
33527 return nil, err
33528 }
33529 req.Header = reqHeaders
33530 googleapi.Expand(req.URL, map[string]string{
33531 "merchantId": strconv.FormatInt(c.merchantId, 10),
33532 })
33533 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33534 }
33535
33536
33537
33538
33539
33540
33541
33542 func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*ListRegionsResponse, error) {
33543 gensupport.SetOptions(c.urlParams_, opts...)
33544 res, err := c.doRequest("json")
33545 if res != nil && res.StatusCode == http.StatusNotModified {
33546 if res.Body != nil {
33547 res.Body.Close()
33548 }
33549 return nil, gensupport.WrapError(&googleapi.Error{
33550 Code: res.StatusCode,
33551 Header: res.Header,
33552 })
33553 }
33554 if err != nil {
33555 return nil, err
33556 }
33557 defer googleapi.CloseBody(res)
33558 if err := googleapi.CheckResponse(res); err != nil {
33559 return nil, gensupport.WrapError(err)
33560 }
33561 ret := &ListRegionsResponse{
33562 ServerResponse: googleapi.ServerResponse{
33563 Header: res.Header,
33564 HTTPStatusCode: res.StatusCode,
33565 },
33566 }
33567 target := &ret
33568 if err := gensupport.DecodeResponse(target, res); err != nil {
33569 return nil, err
33570 }
33571 return ret, nil
33572 }
33573
33574
33575
33576
33577 func (c *RegionsListCall) Pages(ctx context.Context, f func(*ListRegionsResponse) error) error {
33578 c.ctx_ = ctx
33579 defer c.PageToken(c.urlParams_.Get("pageToken"))
33580 for {
33581 x, err := c.Do()
33582 if err != nil {
33583 return err
33584 }
33585 if err := f(x); err != nil {
33586 return err
33587 }
33588 if x.NextPageToken == "" {
33589 return nil
33590 }
33591 c.PageToken(x.NextPageToken)
33592 }
33593 }
33594
33595 type RegionsPatchCall struct {
33596 s *APIService
33597 merchantId int64
33598 regionId string
33599 region *Region
33600 urlParams_ gensupport.URLParams
33601 ctx_ context.Context
33602 header_ http.Header
33603 }
33604
33605
33606
33607
33608
33609 func (r *RegionsService) Patch(merchantId int64, regionId string, region *Region) *RegionsPatchCall {
33610 c := &RegionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33611 c.merchantId = merchantId
33612 c.regionId = regionId
33613 c.region = region
33614 return c
33615 }
33616
33617
33618
33619
33620 func (c *RegionsPatchCall) UpdateMask(updateMask string) *RegionsPatchCall {
33621 c.urlParams_.Set("updateMask", updateMask)
33622 return c
33623 }
33624
33625
33626
33627
33628 func (c *RegionsPatchCall) Fields(s ...googleapi.Field) *RegionsPatchCall {
33629 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33630 return c
33631 }
33632
33633
33634 func (c *RegionsPatchCall) Context(ctx context.Context) *RegionsPatchCall {
33635 c.ctx_ = ctx
33636 return c
33637 }
33638
33639
33640
33641 func (c *RegionsPatchCall) Header() http.Header {
33642 if c.header_ == nil {
33643 c.header_ = make(http.Header)
33644 }
33645 return c.header_
33646 }
33647
33648 func (c *RegionsPatchCall) doRequest(alt string) (*http.Response, error) {
33649 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33650 var body io.Reader = nil
33651 body, err := googleapi.WithoutDataWrapper.JSONReader(c.region)
33652 if err != nil {
33653 return nil, err
33654 }
33655 c.urlParams_.Set("alt", alt)
33656 c.urlParams_.Set("prettyPrint", "false")
33657 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/regions/{regionId}")
33658 urls += "?" + c.urlParams_.Encode()
33659 req, err := http.NewRequest("PATCH", urls, body)
33660 if err != nil {
33661 return nil, err
33662 }
33663 req.Header = reqHeaders
33664 googleapi.Expand(req.URL, map[string]string{
33665 "merchantId": strconv.FormatInt(c.merchantId, 10),
33666 "regionId": c.regionId,
33667 })
33668 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33669 }
33670
33671
33672
33673
33674
33675
33676 func (c *RegionsPatchCall) Do(opts ...googleapi.CallOption) (*Region, error) {
33677 gensupport.SetOptions(c.urlParams_, opts...)
33678 res, err := c.doRequest("json")
33679 if res != nil && res.StatusCode == http.StatusNotModified {
33680 if res.Body != nil {
33681 res.Body.Close()
33682 }
33683 return nil, gensupport.WrapError(&googleapi.Error{
33684 Code: res.StatusCode,
33685 Header: res.Header,
33686 })
33687 }
33688 if err != nil {
33689 return nil, err
33690 }
33691 defer googleapi.CloseBody(res)
33692 if err := googleapi.CheckResponse(res); err != nil {
33693 return nil, gensupport.WrapError(err)
33694 }
33695 ret := &Region{
33696 ServerResponse: googleapi.ServerResponse{
33697 Header: res.Header,
33698 HTTPStatusCode: res.StatusCode,
33699 },
33700 }
33701 target := &ret
33702 if err := gensupport.DecodeResponse(target, res); err != nil {
33703 return nil, err
33704 }
33705 return ret, nil
33706 }
33707
33708 type ReportsSearchCall struct {
33709 s *APIService
33710 merchantId int64
33711 searchrequest *SearchRequest
33712 urlParams_ gensupport.URLParams
33713 ctx_ context.Context
33714 header_ http.Header
33715 }
33716
33717
33718
33719
33720
33721
33722 func (r *ReportsService) Search(merchantId int64, searchrequest *SearchRequest) *ReportsSearchCall {
33723 c := &ReportsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33724 c.merchantId = merchantId
33725 c.searchrequest = searchrequest
33726 return c
33727 }
33728
33729
33730
33731
33732 func (c *ReportsSearchCall) Fields(s ...googleapi.Field) *ReportsSearchCall {
33733 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33734 return c
33735 }
33736
33737
33738 func (c *ReportsSearchCall) Context(ctx context.Context) *ReportsSearchCall {
33739 c.ctx_ = ctx
33740 return c
33741 }
33742
33743
33744
33745 func (c *ReportsSearchCall) Header() http.Header {
33746 if c.header_ == nil {
33747 c.header_ = make(http.Header)
33748 }
33749 return c.header_
33750 }
33751
33752 func (c *ReportsSearchCall) doRequest(alt string) (*http.Response, error) {
33753 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33754 var body io.Reader = nil
33755 body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchrequest)
33756 if err != nil {
33757 return nil, err
33758 }
33759 c.urlParams_.Set("alt", alt)
33760 c.urlParams_.Set("prettyPrint", "false")
33761 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/reports/search")
33762 urls += "?" + c.urlParams_.Encode()
33763 req, err := http.NewRequest("POST", urls, body)
33764 if err != nil {
33765 return nil, err
33766 }
33767 req.Header = reqHeaders
33768 googleapi.Expand(req.URL, map[string]string{
33769 "merchantId": strconv.FormatInt(c.merchantId, 10),
33770 })
33771 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33772 }
33773
33774
33775
33776
33777
33778
33779 func (c *ReportsSearchCall) Do(opts ...googleapi.CallOption) (*SearchResponse, error) {
33780 gensupport.SetOptions(c.urlParams_, opts...)
33781 res, err := c.doRequest("json")
33782 if res != nil && res.StatusCode == http.StatusNotModified {
33783 if res.Body != nil {
33784 res.Body.Close()
33785 }
33786 return nil, gensupport.WrapError(&googleapi.Error{
33787 Code: res.StatusCode,
33788 Header: res.Header,
33789 })
33790 }
33791 if err != nil {
33792 return nil, err
33793 }
33794 defer googleapi.CloseBody(res)
33795 if err := googleapi.CheckResponse(res); err != nil {
33796 return nil, gensupport.WrapError(err)
33797 }
33798 ret := &SearchResponse{
33799 ServerResponse: googleapi.ServerResponse{
33800 Header: res.Header,
33801 HTTPStatusCode: res.StatusCode,
33802 },
33803 }
33804 target := &ret
33805 if err := gensupport.DecodeResponse(target, res); err != nil {
33806 return nil, err
33807 }
33808 return ret, nil
33809 }
33810
33811
33812
33813
33814 func (c *ReportsSearchCall) Pages(ctx context.Context, f func(*SearchResponse) error) error {
33815 c.ctx_ = ctx
33816 defer func(pt string) { c.searchrequest.PageToken = pt }(c.searchrequest.PageToken)
33817 for {
33818 x, err := c.Do()
33819 if err != nil {
33820 return err
33821 }
33822 if err := f(x); err != nil {
33823 return err
33824 }
33825 if x.NextPageToken == "" {
33826 return nil
33827 }
33828 c.searchrequest.PageToken = x.NextPageToken
33829 }
33830 }
33831
33832 type ReturnaddressCustombatchCall struct {
33833 s *APIService
33834 returnaddresscustombatchrequest *ReturnaddressCustomBatchRequest
33835 urlParams_ gensupport.URLParams
33836 ctx_ context.Context
33837 header_ http.Header
33838 }
33839
33840
33841
33842 func (r *ReturnaddressService) Custombatch(returnaddresscustombatchrequest *ReturnaddressCustomBatchRequest) *ReturnaddressCustombatchCall {
33843 c := &ReturnaddressCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33844 c.returnaddresscustombatchrequest = returnaddresscustombatchrequest
33845 return c
33846 }
33847
33848
33849
33850
33851 func (c *ReturnaddressCustombatchCall) Fields(s ...googleapi.Field) *ReturnaddressCustombatchCall {
33852 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33853 return c
33854 }
33855
33856
33857 func (c *ReturnaddressCustombatchCall) Context(ctx context.Context) *ReturnaddressCustombatchCall {
33858 c.ctx_ = ctx
33859 return c
33860 }
33861
33862
33863
33864 func (c *ReturnaddressCustombatchCall) Header() http.Header {
33865 if c.header_ == nil {
33866 c.header_ = make(http.Header)
33867 }
33868 return c.header_
33869 }
33870
33871 func (c *ReturnaddressCustombatchCall) doRequest(alt string) (*http.Response, error) {
33872 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33873 var body io.Reader = nil
33874 body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnaddresscustombatchrequest)
33875 if err != nil {
33876 return nil, err
33877 }
33878 c.urlParams_.Set("alt", alt)
33879 c.urlParams_.Set("prettyPrint", "false")
33880 urls := googleapi.ResolveRelative(c.s.BasePath, "returnaddress/batch")
33881 urls += "?" + c.urlParams_.Encode()
33882 req, err := http.NewRequest("POST", urls, body)
33883 if err != nil {
33884 return nil, err
33885 }
33886 req.Header = reqHeaders
33887 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33888 }
33889
33890
33891
33892
33893
33894
33895
33896 func (c *ReturnaddressCustombatchCall) Do(opts ...googleapi.CallOption) (*ReturnaddressCustomBatchResponse, error) {
33897 gensupport.SetOptions(c.urlParams_, opts...)
33898 res, err := c.doRequest("json")
33899 if res != nil && res.StatusCode == http.StatusNotModified {
33900 if res.Body != nil {
33901 res.Body.Close()
33902 }
33903 return nil, gensupport.WrapError(&googleapi.Error{
33904 Code: res.StatusCode,
33905 Header: res.Header,
33906 })
33907 }
33908 if err != nil {
33909 return nil, err
33910 }
33911 defer googleapi.CloseBody(res)
33912 if err := googleapi.CheckResponse(res); err != nil {
33913 return nil, gensupport.WrapError(err)
33914 }
33915 ret := &ReturnaddressCustomBatchResponse{
33916 ServerResponse: googleapi.ServerResponse{
33917 Header: res.Header,
33918 HTTPStatusCode: res.StatusCode,
33919 },
33920 }
33921 target := &ret
33922 if err := gensupport.DecodeResponse(target, res); err != nil {
33923 return nil, err
33924 }
33925 return ret, nil
33926 }
33927
33928 type ReturnaddressDeleteCall struct {
33929 s *APIService
33930 merchantId uint64
33931 returnAddressId string
33932 urlParams_ gensupport.URLParams
33933 ctx_ context.Context
33934 header_ http.Header
33935 }
33936
33937
33938
33939
33940
33941
33942 func (r *ReturnaddressService) Delete(merchantId uint64, returnAddressId string) *ReturnaddressDeleteCall {
33943 c := &ReturnaddressDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33944 c.merchantId = merchantId
33945 c.returnAddressId = returnAddressId
33946 return c
33947 }
33948
33949
33950
33951
33952 func (c *ReturnaddressDeleteCall) Fields(s ...googleapi.Field) *ReturnaddressDeleteCall {
33953 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33954 return c
33955 }
33956
33957
33958 func (c *ReturnaddressDeleteCall) Context(ctx context.Context) *ReturnaddressDeleteCall {
33959 c.ctx_ = ctx
33960 return c
33961 }
33962
33963
33964
33965 func (c *ReturnaddressDeleteCall) Header() http.Header {
33966 if c.header_ == nil {
33967 c.header_ = make(http.Header)
33968 }
33969 return c.header_
33970 }
33971
33972 func (c *ReturnaddressDeleteCall) doRequest(alt string) (*http.Response, error) {
33973 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33974 var body io.Reader = nil
33975 c.urlParams_.Set("alt", alt)
33976 c.urlParams_.Set("prettyPrint", "false")
33977 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnaddress/{returnAddressId}")
33978 urls += "?" + c.urlParams_.Encode()
33979 req, err := http.NewRequest("DELETE", urls, body)
33980 if err != nil {
33981 return nil, err
33982 }
33983 req.Header = reqHeaders
33984 googleapi.Expand(req.URL, map[string]string{
33985 "merchantId": strconv.FormatUint(c.merchantId, 10),
33986 "returnAddressId": c.returnAddressId,
33987 })
33988 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33989 }
33990
33991
33992 func (c *ReturnaddressDeleteCall) Do(opts ...googleapi.CallOption) error {
33993 gensupport.SetOptions(c.urlParams_, opts...)
33994 res, err := c.doRequest("json")
33995 if err != nil {
33996 return err
33997 }
33998 defer googleapi.CloseBody(res)
33999 if err := googleapi.CheckResponse(res); err != nil {
34000 return gensupport.WrapError(err)
34001 }
34002 return nil
34003 }
34004
34005 type ReturnaddressGetCall struct {
34006 s *APIService
34007 merchantId uint64
34008 returnAddressId string
34009 urlParams_ gensupport.URLParams
34010 ifNoneMatch_ string
34011 ctx_ context.Context
34012 header_ http.Header
34013 }
34014
34015
34016
34017
34018
34019 func (r *ReturnaddressService) Get(merchantId uint64, returnAddressId string) *ReturnaddressGetCall {
34020 c := &ReturnaddressGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34021 c.merchantId = merchantId
34022 c.returnAddressId = returnAddressId
34023 return c
34024 }
34025
34026
34027
34028
34029 func (c *ReturnaddressGetCall) Fields(s ...googleapi.Field) *ReturnaddressGetCall {
34030 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34031 return c
34032 }
34033
34034
34035
34036
34037 func (c *ReturnaddressGetCall) IfNoneMatch(entityTag string) *ReturnaddressGetCall {
34038 c.ifNoneMatch_ = entityTag
34039 return c
34040 }
34041
34042
34043 func (c *ReturnaddressGetCall) Context(ctx context.Context) *ReturnaddressGetCall {
34044 c.ctx_ = ctx
34045 return c
34046 }
34047
34048
34049
34050 func (c *ReturnaddressGetCall) Header() http.Header {
34051 if c.header_ == nil {
34052 c.header_ = make(http.Header)
34053 }
34054 return c.header_
34055 }
34056
34057 func (c *ReturnaddressGetCall) doRequest(alt string) (*http.Response, error) {
34058 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34059 if c.ifNoneMatch_ != "" {
34060 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34061 }
34062 var body io.Reader = nil
34063 c.urlParams_.Set("alt", alt)
34064 c.urlParams_.Set("prettyPrint", "false")
34065 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnaddress/{returnAddressId}")
34066 urls += "?" + c.urlParams_.Encode()
34067 req, err := http.NewRequest("GET", urls, body)
34068 if err != nil {
34069 return nil, err
34070 }
34071 req.Header = reqHeaders
34072 googleapi.Expand(req.URL, map[string]string{
34073 "merchantId": strconv.FormatUint(c.merchantId, 10),
34074 "returnAddressId": c.returnAddressId,
34075 })
34076 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34077 }
34078
34079
34080
34081
34082
34083
34084 func (c *ReturnaddressGetCall) Do(opts ...googleapi.CallOption) (*ReturnAddress, error) {
34085 gensupport.SetOptions(c.urlParams_, opts...)
34086 res, err := c.doRequest("json")
34087 if res != nil && res.StatusCode == http.StatusNotModified {
34088 if res.Body != nil {
34089 res.Body.Close()
34090 }
34091 return nil, gensupport.WrapError(&googleapi.Error{
34092 Code: res.StatusCode,
34093 Header: res.Header,
34094 })
34095 }
34096 if err != nil {
34097 return nil, err
34098 }
34099 defer googleapi.CloseBody(res)
34100 if err := googleapi.CheckResponse(res); err != nil {
34101 return nil, gensupport.WrapError(err)
34102 }
34103 ret := &ReturnAddress{
34104 ServerResponse: googleapi.ServerResponse{
34105 Header: res.Header,
34106 HTTPStatusCode: res.StatusCode,
34107 },
34108 }
34109 target := &ret
34110 if err := gensupport.DecodeResponse(target, res); err != nil {
34111 return nil, err
34112 }
34113 return ret, nil
34114 }
34115
34116 type ReturnaddressInsertCall struct {
34117 s *APIService
34118 merchantId uint64
34119 returnaddress *ReturnAddress
34120 urlParams_ gensupport.URLParams
34121 ctx_ context.Context
34122 header_ http.Header
34123 }
34124
34125
34126
34127
34128 func (r *ReturnaddressService) Insert(merchantId uint64, returnaddress *ReturnAddress) *ReturnaddressInsertCall {
34129 c := &ReturnaddressInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34130 c.merchantId = merchantId
34131 c.returnaddress = returnaddress
34132 return c
34133 }
34134
34135
34136
34137
34138 func (c *ReturnaddressInsertCall) Fields(s ...googleapi.Field) *ReturnaddressInsertCall {
34139 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34140 return c
34141 }
34142
34143
34144 func (c *ReturnaddressInsertCall) Context(ctx context.Context) *ReturnaddressInsertCall {
34145 c.ctx_ = ctx
34146 return c
34147 }
34148
34149
34150
34151 func (c *ReturnaddressInsertCall) Header() http.Header {
34152 if c.header_ == nil {
34153 c.header_ = make(http.Header)
34154 }
34155 return c.header_
34156 }
34157
34158 func (c *ReturnaddressInsertCall) doRequest(alt string) (*http.Response, error) {
34159 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34160 var body io.Reader = nil
34161 body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnaddress)
34162 if err != nil {
34163 return nil, err
34164 }
34165 c.urlParams_.Set("alt", alt)
34166 c.urlParams_.Set("prettyPrint", "false")
34167 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnaddress")
34168 urls += "?" + c.urlParams_.Encode()
34169 req, err := http.NewRequest("POST", urls, body)
34170 if err != nil {
34171 return nil, err
34172 }
34173 req.Header = reqHeaders
34174 googleapi.Expand(req.URL, map[string]string{
34175 "merchantId": strconv.FormatUint(c.merchantId, 10),
34176 })
34177 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34178 }
34179
34180
34181
34182
34183
34184
34185 func (c *ReturnaddressInsertCall) Do(opts ...googleapi.CallOption) (*ReturnAddress, error) {
34186 gensupport.SetOptions(c.urlParams_, opts...)
34187 res, err := c.doRequest("json")
34188 if res != nil && res.StatusCode == http.StatusNotModified {
34189 if res.Body != nil {
34190 res.Body.Close()
34191 }
34192 return nil, gensupport.WrapError(&googleapi.Error{
34193 Code: res.StatusCode,
34194 Header: res.Header,
34195 })
34196 }
34197 if err != nil {
34198 return nil, err
34199 }
34200 defer googleapi.CloseBody(res)
34201 if err := googleapi.CheckResponse(res); err != nil {
34202 return nil, gensupport.WrapError(err)
34203 }
34204 ret := &ReturnAddress{
34205 ServerResponse: googleapi.ServerResponse{
34206 Header: res.Header,
34207 HTTPStatusCode: res.StatusCode,
34208 },
34209 }
34210 target := &ret
34211 if err := gensupport.DecodeResponse(target, res); err != nil {
34212 return nil, err
34213 }
34214 return ret, nil
34215 }
34216
34217 type ReturnaddressListCall struct {
34218 s *APIService
34219 merchantId uint64
34220 urlParams_ gensupport.URLParams
34221 ifNoneMatch_ string
34222 ctx_ context.Context
34223 header_ http.Header
34224 }
34225
34226
34227
34228
34229 func (r *ReturnaddressService) List(merchantId uint64) *ReturnaddressListCall {
34230 c := &ReturnaddressListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34231 c.merchantId = merchantId
34232 return c
34233 }
34234
34235
34236
34237
34238 func (c *ReturnaddressListCall) Country(country string) *ReturnaddressListCall {
34239 c.urlParams_.Set("country", country)
34240 return c
34241 }
34242
34243
34244
34245 func (c *ReturnaddressListCall) MaxResults(maxResults int64) *ReturnaddressListCall {
34246 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
34247 return c
34248 }
34249
34250
34251
34252 func (c *ReturnaddressListCall) PageToken(pageToken string) *ReturnaddressListCall {
34253 c.urlParams_.Set("pageToken", pageToken)
34254 return c
34255 }
34256
34257
34258
34259
34260 func (c *ReturnaddressListCall) Fields(s ...googleapi.Field) *ReturnaddressListCall {
34261 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34262 return c
34263 }
34264
34265
34266
34267
34268 func (c *ReturnaddressListCall) IfNoneMatch(entityTag string) *ReturnaddressListCall {
34269 c.ifNoneMatch_ = entityTag
34270 return c
34271 }
34272
34273
34274 func (c *ReturnaddressListCall) Context(ctx context.Context) *ReturnaddressListCall {
34275 c.ctx_ = ctx
34276 return c
34277 }
34278
34279
34280
34281 func (c *ReturnaddressListCall) Header() http.Header {
34282 if c.header_ == nil {
34283 c.header_ = make(http.Header)
34284 }
34285 return c.header_
34286 }
34287
34288 func (c *ReturnaddressListCall) doRequest(alt string) (*http.Response, error) {
34289 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34290 if c.ifNoneMatch_ != "" {
34291 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34292 }
34293 var body io.Reader = nil
34294 c.urlParams_.Set("alt", alt)
34295 c.urlParams_.Set("prettyPrint", "false")
34296 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnaddress")
34297 urls += "?" + c.urlParams_.Encode()
34298 req, err := http.NewRequest("GET", urls, body)
34299 if err != nil {
34300 return nil, err
34301 }
34302 req.Header = reqHeaders
34303 googleapi.Expand(req.URL, map[string]string{
34304 "merchantId": strconv.FormatUint(c.merchantId, 10),
34305 })
34306 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34307 }
34308
34309
34310
34311
34312
34313
34314
34315 func (c *ReturnaddressListCall) Do(opts ...googleapi.CallOption) (*ReturnaddressListResponse, error) {
34316 gensupport.SetOptions(c.urlParams_, opts...)
34317 res, err := c.doRequest("json")
34318 if res != nil && res.StatusCode == http.StatusNotModified {
34319 if res.Body != nil {
34320 res.Body.Close()
34321 }
34322 return nil, gensupport.WrapError(&googleapi.Error{
34323 Code: res.StatusCode,
34324 Header: res.Header,
34325 })
34326 }
34327 if err != nil {
34328 return nil, err
34329 }
34330 defer googleapi.CloseBody(res)
34331 if err := googleapi.CheckResponse(res); err != nil {
34332 return nil, gensupport.WrapError(err)
34333 }
34334 ret := &ReturnaddressListResponse{
34335 ServerResponse: googleapi.ServerResponse{
34336 Header: res.Header,
34337 HTTPStatusCode: res.StatusCode,
34338 },
34339 }
34340 target := &ret
34341 if err := gensupport.DecodeResponse(target, res); err != nil {
34342 return nil, err
34343 }
34344 return ret, nil
34345 }
34346
34347
34348
34349
34350 func (c *ReturnaddressListCall) Pages(ctx context.Context, f func(*ReturnaddressListResponse) error) error {
34351 c.ctx_ = ctx
34352 defer c.PageToken(c.urlParams_.Get("pageToken"))
34353 for {
34354 x, err := c.Do()
34355 if err != nil {
34356 return err
34357 }
34358 if err := f(x); err != nil {
34359 return err
34360 }
34361 if x.NextPageToken == "" {
34362 return nil
34363 }
34364 c.PageToken(x.NextPageToken)
34365 }
34366 }
34367
34368 type ReturnpolicyCustombatchCall struct {
34369 s *APIService
34370 returnpolicycustombatchrequest *ReturnpolicyCustomBatchRequest
34371 urlParams_ gensupport.URLParams
34372 ctx_ context.Context
34373 header_ http.Header
34374 }
34375
34376
34377
34378 func (r *ReturnpolicyService) Custombatch(returnpolicycustombatchrequest *ReturnpolicyCustomBatchRequest) *ReturnpolicyCustombatchCall {
34379 c := &ReturnpolicyCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34380 c.returnpolicycustombatchrequest = returnpolicycustombatchrequest
34381 return c
34382 }
34383
34384
34385
34386
34387 func (c *ReturnpolicyCustombatchCall) Fields(s ...googleapi.Field) *ReturnpolicyCustombatchCall {
34388 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34389 return c
34390 }
34391
34392
34393 func (c *ReturnpolicyCustombatchCall) Context(ctx context.Context) *ReturnpolicyCustombatchCall {
34394 c.ctx_ = ctx
34395 return c
34396 }
34397
34398
34399
34400 func (c *ReturnpolicyCustombatchCall) Header() http.Header {
34401 if c.header_ == nil {
34402 c.header_ = make(http.Header)
34403 }
34404 return c.header_
34405 }
34406
34407 func (c *ReturnpolicyCustombatchCall) doRequest(alt string) (*http.Response, error) {
34408 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34409 var body io.Reader = nil
34410 body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnpolicycustombatchrequest)
34411 if err != nil {
34412 return nil, err
34413 }
34414 c.urlParams_.Set("alt", alt)
34415 c.urlParams_.Set("prettyPrint", "false")
34416 urls := googleapi.ResolveRelative(c.s.BasePath, "returnpolicy/batch")
34417 urls += "?" + c.urlParams_.Encode()
34418 req, err := http.NewRequest("POST", urls, body)
34419 if err != nil {
34420 return nil, err
34421 }
34422 req.Header = reqHeaders
34423 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34424 }
34425
34426
34427
34428
34429
34430
34431
34432 func (c *ReturnpolicyCustombatchCall) Do(opts ...googleapi.CallOption) (*ReturnpolicyCustomBatchResponse, error) {
34433 gensupport.SetOptions(c.urlParams_, opts...)
34434 res, err := c.doRequest("json")
34435 if res != nil && res.StatusCode == http.StatusNotModified {
34436 if res.Body != nil {
34437 res.Body.Close()
34438 }
34439 return nil, gensupport.WrapError(&googleapi.Error{
34440 Code: res.StatusCode,
34441 Header: res.Header,
34442 })
34443 }
34444 if err != nil {
34445 return nil, err
34446 }
34447 defer googleapi.CloseBody(res)
34448 if err := googleapi.CheckResponse(res); err != nil {
34449 return nil, gensupport.WrapError(err)
34450 }
34451 ret := &ReturnpolicyCustomBatchResponse{
34452 ServerResponse: googleapi.ServerResponse{
34453 Header: res.Header,
34454 HTTPStatusCode: res.StatusCode,
34455 },
34456 }
34457 target := &ret
34458 if err := gensupport.DecodeResponse(target, res); err != nil {
34459 return nil, err
34460 }
34461 return ret, nil
34462 }
34463
34464 type ReturnpolicyDeleteCall struct {
34465 s *APIService
34466 merchantId uint64
34467 returnPolicyId string
34468 urlParams_ gensupport.URLParams
34469 ctx_ context.Context
34470 header_ http.Header
34471 }
34472
34473
34474
34475
34476
34477
34478 func (r *ReturnpolicyService) Delete(merchantId uint64, returnPolicyId string) *ReturnpolicyDeleteCall {
34479 c := &ReturnpolicyDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34480 c.merchantId = merchantId
34481 c.returnPolicyId = returnPolicyId
34482 return c
34483 }
34484
34485
34486
34487
34488 func (c *ReturnpolicyDeleteCall) Fields(s ...googleapi.Field) *ReturnpolicyDeleteCall {
34489 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34490 return c
34491 }
34492
34493
34494 func (c *ReturnpolicyDeleteCall) Context(ctx context.Context) *ReturnpolicyDeleteCall {
34495 c.ctx_ = ctx
34496 return c
34497 }
34498
34499
34500
34501 func (c *ReturnpolicyDeleteCall) Header() http.Header {
34502 if c.header_ == nil {
34503 c.header_ = make(http.Header)
34504 }
34505 return c.header_
34506 }
34507
34508 func (c *ReturnpolicyDeleteCall) doRequest(alt string) (*http.Response, error) {
34509 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34510 var body io.Reader = nil
34511 c.urlParams_.Set("alt", alt)
34512 c.urlParams_.Set("prettyPrint", "false")
34513 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicy/{returnPolicyId}")
34514 urls += "?" + c.urlParams_.Encode()
34515 req, err := http.NewRequest("DELETE", urls, body)
34516 if err != nil {
34517 return nil, err
34518 }
34519 req.Header = reqHeaders
34520 googleapi.Expand(req.URL, map[string]string{
34521 "merchantId": strconv.FormatUint(c.merchantId, 10),
34522 "returnPolicyId": c.returnPolicyId,
34523 })
34524 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34525 }
34526
34527
34528 func (c *ReturnpolicyDeleteCall) Do(opts ...googleapi.CallOption) error {
34529 gensupport.SetOptions(c.urlParams_, opts...)
34530 res, err := c.doRequest("json")
34531 if err != nil {
34532 return err
34533 }
34534 defer googleapi.CloseBody(res)
34535 if err := googleapi.CheckResponse(res); err != nil {
34536 return gensupport.WrapError(err)
34537 }
34538 return nil
34539 }
34540
34541 type ReturnpolicyGetCall struct {
34542 s *APIService
34543 merchantId uint64
34544 returnPolicyId string
34545 urlParams_ gensupport.URLParams
34546 ifNoneMatch_ string
34547 ctx_ context.Context
34548 header_ http.Header
34549 }
34550
34551
34552
34553
34554
34555 func (r *ReturnpolicyService) Get(merchantId uint64, returnPolicyId string) *ReturnpolicyGetCall {
34556 c := &ReturnpolicyGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34557 c.merchantId = merchantId
34558 c.returnPolicyId = returnPolicyId
34559 return c
34560 }
34561
34562
34563
34564
34565 func (c *ReturnpolicyGetCall) Fields(s ...googleapi.Field) *ReturnpolicyGetCall {
34566 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34567 return c
34568 }
34569
34570
34571
34572
34573 func (c *ReturnpolicyGetCall) IfNoneMatch(entityTag string) *ReturnpolicyGetCall {
34574 c.ifNoneMatch_ = entityTag
34575 return c
34576 }
34577
34578
34579 func (c *ReturnpolicyGetCall) Context(ctx context.Context) *ReturnpolicyGetCall {
34580 c.ctx_ = ctx
34581 return c
34582 }
34583
34584
34585
34586 func (c *ReturnpolicyGetCall) Header() http.Header {
34587 if c.header_ == nil {
34588 c.header_ = make(http.Header)
34589 }
34590 return c.header_
34591 }
34592
34593 func (c *ReturnpolicyGetCall) doRequest(alt string) (*http.Response, error) {
34594 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34595 if c.ifNoneMatch_ != "" {
34596 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34597 }
34598 var body io.Reader = nil
34599 c.urlParams_.Set("alt", alt)
34600 c.urlParams_.Set("prettyPrint", "false")
34601 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicy/{returnPolicyId}")
34602 urls += "?" + c.urlParams_.Encode()
34603 req, err := http.NewRequest("GET", urls, body)
34604 if err != nil {
34605 return nil, err
34606 }
34607 req.Header = reqHeaders
34608 googleapi.Expand(req.URL, map[string]string{
34609 "merchantId": strconv.FormatUint(c.merchantId, 10),
34610 "returnPolicyId": c.returnPolicyId,
34611 })
34612 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34613 }
34614
34615
34616
34617
34618
34619
34620 func (c *ReturnpolicyGetCall) Do(opts ...googleapi.CallOption) (*ReturnPolicy, error) {
34621 gensupport.SetOptions(c.urlParams_, opts...)
34622 res, err := c.doRequest("json")
34623 if res != nil && res.StatusCode == http.StatusNotModified {
34624 if res.Body != nil {
34625 res.Body.Close()
34626 }
34627 return nil, gensupport.WrapError(&googleapi.Error{
34628 Code: res.StatusCode,
34629 Header: res.Header,
34630 })
34631 }
34632 if err != nil {
34633 return nil, err
34634 }
34635 defer googleapi.CloseBody(res)
34636 if err := googleapi.CheckResponse(res); err != nil {
34637 return nil, gensupport.WrapError(err)
34638 }
34639 ret := &ReturnPolicy{
34640 ServerResponse: googleapi.ServerResponse{
34641 Header: res.Header,
34642 HTTPStatusCode: res.StatusCode,
34643 },
34644 }
34645 target := &ret
34646 if err := gensupport.DecodeResponse(target, res); err != nil {
34647 return nil, err
34648 }
34649 return ret, nil
34650 }
34651
34652 type ReturnpolicyInsertCall struct {
34653 s *APIService
34654 merchantId uint64
34655 returnpolicy *ReturnPolicy
34656 urlParams_ gensupport.URLParams
34657 ctx_ context.Context
34658 header_ http.Header
34659 }
34660
34661
34662
34663
34664 func (r *ReturnpolicyService) Insert(merchantId uint64, returnpolicy *ReturnPolicy) *ReturnpolicyInsertCall {
34665 c := &ReturnpolicyInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34666 c.merchantId = merchantId
34667 c.returnpolicy = returnpolicy
34668 return c
34669 }
34670
34671
34672
34673
34674 func (c *ReturnpolicyInsertCall) Fields(s ...googleapi.Field) *ReturnpolicyInsertCall {
34675 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34676 return c
34677 }
34678
34679
34680 func (c *ReturnpolicyInsertCall) Context(ctx context.Context) *ReturnpolicyInsertCall {
34681 c.ctx_ = ctx
34682 return c
34683 }
34684
34685
34686
34687 func (c *ReturnpolicyInsertCall) Header() http.Header {
34688 if c.header_ == nil {
34689 c.header_ = make(http.Header)
34690 }
34691 return c.header_
34692 }
34693
34694 func (c *ReturnpolicyInsertCall) doRequest(alt string) (*http.Response, error) {
34695 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34696 var body io.Reader = nil
34697 body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnpolicy)
34698 if err != nil {
34699 return nil, err
34700 }
34701 c.urlParams_.Set("alt", alt)
34702 c.urlParams_.Set("prettyPrint", "false")
34703 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicy")
34704 urls += "?" + c.urlParams_.Encode()
34705 req, err := http.NewRequest("POST", urls, body)
34706 if err != nil {
34707 return nil, err
34708 }
34709 req.Header = reqHeaders
34710 googleapi.Expand(req.URL, map[string]string{
34711 "merchantId": strconv.FormatUint(c.merchantId, 10),
34712 })
34713 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34714 }
34715
34716
34717
34718
34719
34720
34721 func (c *ReturnpolicyInsertCall) Do(opts ...googleapi.CallOption) (*ReturnPolicy, error) {
34722 gensupport.SetOptions(c.urlParams_, opts...)
34723 res, err := c.doRequest("json")
34724 if res != nil && res.StatusCode == http.StatusNotModified {
34725 if res.Body != nil {
34726 res.Body.Close()
34727 }
34728 return nil, gensupport.WrapError(&googleapi.Error{
34729 Code: res.StatusCode,
34730 Header: res.Header,
34731 })
34732 }
34733 if err != nil {
34734 return nil, err
34735 }
34736 defer googleapi.CloseBody(res)
34737 if err := googleapi.CheckResponse(res); err != nil {
34738 return nil, gensupport.WrapError(err)
34739 }
34740 ret := &ReturnPolicy{
34741 ServerResponse: googleapi.ServerResponse{
34742 Header: res.Header,
34743 HTTPStatusCode: res.StatusCode,
34744 },
34745 }
34746 target := &ret
34747 if err := gensupport.DecodeResponse(target, res); err != nil {
34748 return nil, err
34749 }
34750 return ret, nil
34751 }
34752
34753 type ReturnpolicyListCall struct {
34754 s *APIService
34755 merchantId uint64
34756 urlParams_ gensupport.URLParams
34757 ifNoneMatch_ string
34758 ctx_ context.Context
34759 header_ http.Header
34760 }
34761
34762
34763
34764
34765 func (r *ReturnpolicyService) List(merchantId uint64) *ReturnpolicyListCall {
34766 c := &ReturnpolicyListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34767 c.merchantId = merchantId
34768 return c
34769 }
34770
34771
34772
34773
34774 func (c *ReturnpolicyListCall) Fields(s ...googleapi.Field) *ReturnpolicyListCall {
34775 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34776 return c
34777 }
34778
34779
34780
34781
34782 func (c *ReturnpolicyListCall) IfNoneMatch(entityTag string) *ReturnpolicyListCall {
34783 c.ifNoneMatch_ = entityTag
34784 return c
34785 }
34786
34787
34788 func (c *ReturnpolicyListCall) Context(ctx context.Context) *ReturnpolicyListCall {
34789 c.ctx_ = ctx
34790 return c
34791 }
34792
34793
34794
34795 func (c *ReturnpolicyListCall) Header() http.Header {
34796 if c.header_ == nil {
34797 c.header_ = make(http.Header)
34798 }
34799 return c.header_
34800 }
34801
34802 func (c *ReturnpolicyListCall) doRequest(alt string) (*http.Response, error) {
34803 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34804 if c.ifNoneMatch_ != "" {
34805 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34806 }
34807 var body io.Reader = nil
34808 c.urlParams_.Set("alt", alt)
34809 c.urlParams_.Set("prettyPrint", "false")
34810 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicy")
34811 urls += "?" + c.urlParams_.Encode()
34812 req, err := http.NewRequest("GET", urls, body)
34813 if err != nil {
34814 return nil, err
34815 }
34816 req.Header = reqHeaders
34817 googleapi.Expand(req.URL, map[string]string{
34818 "merchantId": strconv.FormatUint(c.merchantId, 10),
34819 })
34820 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34821 }
34822
34823
34824
34825
34826
34827
34828
34829 func (c *ReturnpolicyListCall) Do(opts ...googleapi.CallOption) (*ReturnpolicyListResponse, error) {
34830 gensupport.SetOptions(c.urlParams_, opts...)
34831 res, err := c.doRequest("json")
34832 if res != nil && res.StatusCode == http.StatusNotModified {
34833 if res.Body != nil {
34834 res.Body.Close()
34835 }
34836 return nil, gensupport.WrapError(&googleapi.Error{
34837 Code: res.StatusCode,
34838 Header: res.Header,
34839 })
34840 }
34841 if err != nil {
34842 return nil, err
34843 }
34844 defer googleapi.CloseBody(res)
34845 if err := googleapi.CheckResponse(res); err != nil {
34846 return nil, gensupport.WrapError(err)
34847 }
34848 ret := &ReturnpolicyListResponse{
34849 ServerResponse: googleapi.ServerResponse{
34850 Header: res.Header,
34851 HTTPStatusCode: res.StatusCode,
34852 },
34853 }
34854 target := &ret
34855 if err := gensupport.DecodeResponse(target, res); err != nil {
34856 return nil, err
34857 }
34858 return ret, nil
34859 }
34860
34861 type ReturnpolicyonlineCreateCall struct {
34862 s *APIService
34863 merchantId int64
34864 returnpolicyonline *ReturnPolicyOnline
34865 urlParams_ gensupport.URLParams
34866 ctx_ context.Context
34867 header_ http.Header
34868 }
34869
34870
34871
34872
34873
34874 func (r *ReturnpolicyonlineService) Create(merchantId int64, returnpolicyonline *ReturnPolicyOnline) *ReturnpolicyonlineCreateCall {
34875 c := &ReturnpolicyonlineCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34876 c.merchantId = merchantId
34877 c.returnpolicyonline = returnpolicyonline
34878 return c
34879 }
34880
34881
34882
34883
34884 func (c *ReturnpolicyonlineCreateCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineCreateCall {
34885 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34886 return c
34887 }
34888
34889
34890 func (c *ReturnpolicyonlineCreateCall) Context(ctx context.Context) *ReturnpolicyonlineCreateCall {
34891 c.ctx_ = ctx
34892 return c
34893 }
34894
34895
34896
34897 func (c *ReturnpolicyonlineCreateCall) Header() http.Header {
34898 if c.header_ == nil {
34899 c.header_ = make(http.Header)
34900 }
34901 return c.header_
34902 }
34903
34904 func (c *ReturnpolicyonlineCreateCall) doRequest(alt string) (*http.Response, error) {
34905 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34906 var body io.Reader = nil
34907 body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnpolicyonline)
34908 if err != nil {
34909 return nil, err
34910 }
34911 c.urlParams_.Set("alt", alt)
34912 c.urlParams_.Set("prettyPrint", "false")
34913 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicyonline")
34914 urls += "?" + c.urlParams_.Encode()
34915 req, err := http.NewRequest("POST", urls, body)
34916 if err != nil {
34917 return nil, err
34918 }
34919 req.Header = reqHeaders
34920 googleapi.Expand(req.URL, map[string]string{
34921 "merchantId": strconv.FormatInt(c.merchantId, 10),
34922 })
34923 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34924 }
34925
34926
34927
34928
34929
34930
34931
34932 func (c *ReturnpolicyonlineCreateCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error) {
34933 gensupport.SetOptions(c.urlParams_, opts...)
34934 res, err := c.doRequest("json")
34935 if res != nil && res.StatusCode == http.StatusNotModified {
34936 if res.Body != nil {
34937 res.Body.Close()
34938 }
34939 return nil, gensupport.WrapError(&googleapi.Error{
34940 Code: res.StatusCode,
34941 Header: res.Header,
34942 })
34943 }
34944 if err != nil {
34945 return nil, err
34946 }
34947 defer googleapi.CloseBody(res)
34948 if err := googleapi.CheckResponse(res); err != nil {
34949 return nil, gensupport.WrapError(err)
34950 }
34951 ret := &ReturnPolicyOnline{
34952 ServerResponse: googleapi.ServerResponse{
34953 Header: res.Header,
34954 HTTPStatusCode: res.StatusCode,
34955 },
34956 }
34957 target := &ret
34958 if err := gensupport.DecodeResponse(target, res); err != nil {
34959 return nil, err
34960 }
34961 return ret, nil
34962 }
34963
34964 type ReturnpolicyonlineDeleteCall struct {
34965 s *APIService
34966 merchantId int64
34967 returnPolicyId string
34968 urlParams_ gensupport.URLParams
34969 ctx_ context.Context
34970 header_ http.Header
34971 }
34972
34973
34974
34975
34976
34977
34978 func (r *ReturnpolicyonlineService) Delete(merchantId int64, returnPolicyId string) *ReturnpolicyonlineDeleteCall {
34979 c := &ReturnpolicyonlineDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34980 c.merchantId = merchantId
34981 c.returnPolicyId = returnPolicyId
34982 return c
34983 }
34984
34985
34986
34987
34988 func (c *ReturnpolicyonlineDeleteCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineDeleteCall {
34989 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34990 return c
34991 }
34992
34993
34994 func (c *ReturnpolicyonlineDeleteCall) Context(ctx context.Context) *ReturnpolicyonlineDeleteCall {
34995 c.ctx_ = ctx
34996 return c
34997 }
34998
34999
35000
35001 func (c *ReturnpolicyonlineDeleteCall) Header() http.Header {
35002 if c.header_ == nil {
35003 c.header_ = make(http.Header)
35004 }
35005 return c.header_
35006 }
35007
35008 func (c *ReturnpolicyonlineDeleteCall) doRequest(alt string) (*http.Response, error) {
35009 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35010 var body io.Reader = nil
35011 c.urlParams_.Set("alt", alt)
35012 c.urlParams_.Set("prettyPrint", "false")
35013 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicyonline/{returnPolicyId}")
35014 urls += "?" + c.urlParams_.Encode()
35015 req, err := http.NewRequest("DELETE", urls, body)
35016 if err != nil {
35017 return nil, err
35018 }
35019 req.Header = reqHeaders
35020 googleapi.Expand(req.URL, map[string]string{
35021 "merchantId": strconv.FormatInt(c.merchantId, 10),
35022 "returnPolicyId": c.returnPolicyId,
35023 })
35024 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35025 }
35026
35027
35028 func (c *ReturnpolicyonlineDeleteCall) Do(opts ...googleapi.CallOption) error {
35029 gensupport.SetOptions(c.urlParams_, opts...)
35030 res, err := c.doRequest("json")
35031 if err != nil {
35032 return err
35033 }
35034 defer googleapi.CloseBody(res)
35035 if err := googleapi.CheckResponse(res); err != nil {
35036 return gensupport.WrapError(err)
35037 }
35038 return nil
35039 }
35040
35041 type ReturnpolicyonlineGetCall struct {
35042 s *APIService
35043 merchantId int64
35044 returnPolicyId string
35045 urlParams_ gensupport.URLParams
35046 ifNoneMatch_ string
35047 ctx_ context.Context
35048 header_ http.Header
35049 }
35050
35051
35052
35053
35054
35055
35056 func (r *ReturnpolicyonlineService) Get(merchantId int64, returnPolicyId string) *ReturnpolicyonlineGetCall {
35057 c := &ReturnpolicyonlineGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35058 c.merchantId = merchantId
35059 c.returnPolicyId = returnPolicyId
35060 return c
35061 }
35062
35063
35064
35065
35066 func (c *ReturnpolicyonlineGetCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineGetCall {
35067 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35068 return c
35069 }
35070
35071
35072
35073
35074 func (c *ReturnpolicyonlineGetCall) IfNoneMatch(entityTag string) *ReturnpolicyonlineGetCall {
35075 c.ifNoneMatch_ = entityTag
35076 return c
35077 }
35078
35079
35080 func (c *ReturnpolicyonlineGetCall) Context(ctx context.Context) *ReturnpolicyonlineGetCall {
35081 c.ctx_ = ctx
35082 return c
35083 }
35084
35085
35086
35087 func (c *ReturnpolicyonlineGetCall) Header() http.Header {
35088 if c.header_ == nil {
35089 c.header_ = make(http.Header)
35090 }
35091 return c.header_
35092 }
35093
35094 func (c *ReturnpolicyonlineGetCall) doRequest(alt string) (*http.Response, error) {
35095 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35096 if c.ifNoneMatch_ != "" {
35097 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35098 }
35099 var body io.Reader = nil
35100 c.urlParams_.Set("alt", alt)
35101 c.urlParams_.Set("prettyPrint", "false")
35102 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicyonline/{returnPolicyId}")
35103 urls += "?" + c.urlParams_.Encode()
35104 req, err := http.NewRequest("GET", urls, body)
35105 if err != nil {
35106 return nil, err
35107 }
35108 req.Header = reqHeaders
35109 googleapi.Expand(req.URL, map[string]string{
35110 "merchantId": strconv.FormatInt(c.merchantId, 10),
35111 "returnPolicyId": c.returnPolicyId,
35112 })
35113 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35114 }
35115
35116
35117
35118
35119
35120
35121
35122 func (c *ReturnpolicyonlineGetCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error) {
35123 gensupport.SetOptions(c.urlParams_, opts...)
35124 res, err := c.doRequest("json")
35125 if res != nil && res.StatusCode == http.StatusNotModified {
35126 if res.Body != nil {
35127 res.Body.Close()
35128 }
35129 return nil, gensupport.WrapError(&googleapi.Error{
35130 Code: res.StatusCode,
35131 Header: res.Header,
35132 })
35133 }
35134 if err != nil {
35135 return nil, err
35136 }
35137 defer googleapi.CloseBody(res)
35138 if err := googleapi.CheckResponse(res); err != nil {
35139 return nil, gensupport.WrapError(err)
35140 }
35141 ret := &ReturnPolicyOnline{
35142 ServerResponse: googleapi.ServerResponse{
35143 Header: res.Header,
35144 HTTPStatusCode: res.StatusCode,
35145 },
35146 }
35147 target := &ret
35148 if err := gensupport.DecodeResponse(target, res); err != nil {
35149 return nil, err
35150 }
35151 return ret, nil
35152 }
35153
35154 type ReturnpolicyonlineListCall struct {
35155 s *APIService
35156 merchantId int64
35157 urlParams_ gensupport.URLParams
35158 ifNoneMatch_ string
35159 ctx_ context.Context
35160 header_ http.Header
35161 }
35162
35163
35164
35165
35166
35167 func (r *ReturnpolicyonlineService) List(merchantId int64) *ReturnpolicyonlineListCall {
35168 c := &ReturnpolicyonlineListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35169 c.merchantId = merchantId
35170 return c
35171 }
35172
35173
35174
35175
35176 func (c *ReturnpolicyonlineListCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineListCall {
35177 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35178 return c
35179 }
35180
35181
35182
35183
35184 func (c *ReturnpolicyonlineListCall) IfNoneMatch(entityTag string) *ReturnpolicyonlineListCall {
35185 c.ifNoneMatch_ = entityTag
35186 return c
35187 }
35188
35189
35190 func (c *ReturnpolicyonlineListCall) Context(ctx context.Context) *ReturnpolicyonlineListCall {
35191 c.ctx_ = ctx
35192 return c
35193 }
35194
35195
35196
35197 func (c *ReturnpolicyonlineListCall) Header() http.Header {
35198 if c.header_ == nil {
35199 c.header_ = make(http.Header)
35200 }
35201 return c.header_
35202 }
35203
35204 func (c *ReturnpolicyonlineListCall) doRequest(alt string) (*http.Response, error) {
35205 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35206 if c.ifNoneMatch_ != "" {
35207 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35208 }
35209 var body io.Reader = nil
35210 c.urlParams_.Set("alt", alt)
35211 c.urlParams_.Set("prettyPrint", "false")
35212 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicyonline")
35213 urls += "?" + c.urlParams_.Encode()
35214 req, err := http.NewRequest("GET", urls, body)
35215 if err != nil {
35216 return nil, err
35217 }
35218 req.Header = reqHeaders
35219 googleapi.Expand(req.URL, map[string]string{
35220 "merchantId": strconv.FormatInt(c.merchantId, 10),
35221 })
35222 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35223 }
35224
35225
35226
35227
35228
35229
35230
35231 func (c *ReturnpolicyonlineListCall) Do(opts ...googleapi.CallOption) (*ListReturnPolicyOnlineResponse, error) {
35232 gensupport.SetOptions(c.urlParams_, opts...)
35233 res, err := c.doRequest("json")
35234 if res != nil && res.StatusCode == http.StatusNotModified {
35235 if res.Body != nil {
35236 res.Body.Close()
35237 }
35238 return nil, gensupport.WrapError(&googleapi.Error{
35239 Code: res.StatusCode,
35240 Header: res.Header,
35241 })
35242 }
35243 if err != nil {
35244 return nil, err
35245 }
35246 defer googleapi.CloseBody(res)
35247 if err := googleapi.CheckResponse(res); err != nil {
35248 return nil, gensupport.WrapError(err)
35249 }
35250 ret := &ListReturnPolicyOnlineResponse{
35251 ServerResponse: googleapi.ServerResponse{
35252 Header: res.Header,
35253 HTTPStatusCode: res.StatusCode,
35254 },
35255 }
35256 target := &ret
35257 if err := gensupport.DecodeResponse(target, res); err != nil {
35258 return nil, err
35259 }
35260 return ret, nil
35261 }
35262
35263 type ReturnpolicyonlinePatchCall struct {
35264 s *APIService
35265 merchantId int64
35266 returnPolicyId string
35267 returnpolicyonline *ReturnPolicyOnline
35268 urlParams_ gensupport.URLParams
35269 ctx_ context.Context
35270 header_ http.Header
35271 }
35272
35273
35274
35275
35276
35277
35278 func (r *ReturnpolicyonlineService) Patch(merchantId int64, returnPolicyId string, returnpolicyonline *ReturnPolicyOnline) *ReturnpolicyonlinePatchCall {
35279 c := &ReturnpolicyonlinePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35280 c.merchantId = merchantId
35281 c.returnPolicyId = returnPolicyId
35282 c.returnpolicyonline = returnpolicyonline
35283 return c
35284 }
35285
35286
35287
35288
35289 func (c *ReturnpolicyonlinePatchCall) Fields(s ...googleapi.Field) *ReturnpolicyonlinePatchCall {
35290 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35291 return c
35292 }
35293
35294
35295 func (c *ReturnpolicyonlinePatchCall) Context(ctx context.Context) *ReturnpolicyonlinePatchCall {
35296 c.ctx_ = ctx
35297 return c
35298 }
35299
35300
35301
35302 func (c *ReturnpolicyonlinePatchCall) Header() http.Header {
35303 if c.header_ == nil {
35304 c.header_ = make(http.Header)
35305 }
35306 return c.header_
35307 }
35308
35309 func (c *ReturnpolicyonlinePatchCall) doRequest(alt string) (*http.Response, error) {
35310 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35311 var body io.Reader = nil
35312 body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnpolicyonline)
35313 if err != nil {
35314 return nil, err
35315 }
35316 c.urlParams_.Set("alt", alt)
35317 c.urlParams_.Set("prettyPrint", "false")
35318 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicyonline/{returnPolicyId}")
35319 urls += "?" + c.urlParams_.Encode()
35320 req, err := http.NewRequest("PATCH", urls, body)
35321 if err != nil {
35322 return nil, err
35323 }
35324 req.Header = reqHeaders
35325 googleapi.Expand(req.URL, map[string]string{
35326 "merchantId": strconv.FormatInt(c.merchantId, 10),
35327 "returnPolicyId": c.returnPolicyId,
35328 })
35329 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35330 }
35331
35332
35333
35334
35335
35336
35337
35338 func (c *ReturnpolicyonlinePatchCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error) {
35339 gensupport.SetOptions(c.urlParams_, opts...)
35340 res, err := c.doRequest("json")
35341 if res != nil && res.StatusCode == http.StatusNotModified {
35342 if res.Body != nil {
35343 res.Body.Close()
35344 }
35345 return nil, gensupport.WrapError(&googleapi.Error{
35346 Code: res.StatusCode,
35347 Header: res.Header,
35348 })
35349 }
35350 if err != nil {
35351 return nil, err
35352 }
35353 defer googleapi.CloseBody(res)
35354 if err := googleapi.CheckResponse(res); err != nil {
35355 return nil, gensupport.WrapError(err)
35356 }
35357 ret := &ReturnPolicyOnline{
35358 ServerResponse: googleapi.ServerResponse{
35359 Header: res.Header,
35360 HTTPStatusCode: res.StatusCode,
35361 },
35362 }
35363 target := &ret
35364 if err := gensupport.DecodeResponse(target, res); err != nil {
35365 return nil, err
35366 }
35367 return ret, nil
35368 }
35369
35370 type SettlementreportsGetCall struct {
35371 s *APIService
35372 merchantId uint64
35373 settlementId string
35374 urlParams_ gensupport.URLParams
35375 ifNoneMatch_ string
35376 ctx_ context.Context
35377 header_ http.Header
35378 }
35379
35380
35381
35382
35383
35384 func (r *SettlementreportsService) Get(merchantId uint64, settlementId string) *SettlementreportsGetCall {
35385 c := &SettlementreportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35386 c.merchantId = merchantId
35387 c.settlementId = settlementId
35388 return c
35389 }
35390
35391
35392
35393
35394 func (c *SettlementreportsGetCall) Fields(s ...googleapi.Field) *SettlementreportsGetCall {
35395 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35396 return c
35397 }
35398
35399
35400
35401
35402 func (c *SettlementreportsGetCall) IfNoneMatch(entityTag string) *SettlementreportsGetCall {
35403 c.ifNoneMatch_ = entityTag
35404 return c
35405 }
35406
35407
35408 func (c *SettlementreportsGetCall) Context(ctx context.Context) *SettlementreportsGetCall {
35409 c.ctx_ = ctx
35410 return c
35411 }
35412
35413
35414
35415 func (c *SettlementreportsGetCall) Header() http.Header {
35416 if c.header_ == nil {
35417 c.header_ = make(http.Header)
35418 }
35419 return c.header_
35420 }
35421
35422 func (c *SettlementreportsGetCall) doRequest(alt string) (*http.Response, error) {
35423 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35424 if c.ifNoneMatch_ != "" {
35425 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35426 }
35427 var body io.Reader = nil
35428 c.urlParams_.Set("alt", alt)
35429 c.urlParams_.Set("prettyPrint", "false")
35430 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/settlementreports/{settlementId}")
35431 urls += "?" + c.urlParams_.Encode()
35432 req, err := http.NewRequest("GET", urls, body)
35433 if err != nil {
35434 return nil, err
35435 }
35436 req.Header = reqHeaders
35437 googleapi.Expand(req.URL, map[string]string{
35438 "merchantId": strconv.FormatUint(c.merchantId, 10),
35439 "settlementId": c.settlementId,
35440 })
35441 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35442 }
35443
35444
35445
35446
35447
35448
35449
35450 func (c *SettlementreportsGetCall) Do(opts ...googleapi.CallOption) (*SettlementReport, error) {
35451 gensupport.SetOptions(c.urlParams_, opts...)
35452 res, err := c.doRequest("json")
35453 if res != nil && res.StatusCode == http.StatusNotModified {
35454 if res.Body != nil {
35455 res.Body.Close()
35456 }
35457 return nil, gensupport.WrapError(&googleapi.Error{
35458 Code: res.StatusCode,
35459 Header: res.Header,
35460 })
35461 }
35462 if err != nil {
35463 return nil, err
35464 }
35465 defer googleapi.CloseBody(res)
35466 if err := googleapi.CheckResponse(res); err != nil {
35467 return nil, gensupport.WrapError(err)
35468 }
35469 ret := &SettlementReport{
35470 ServerResponse: googleapi.ServerResponse{
35471 Header: res.Header,
35472 HTTPStatusCode: res.StatusCode,
35473 },
35474 }
35475 target := &ret
35476 if err := gensupport.DecodeResponse(target, res); err != nil {
35477 return nil, err
35478 }
35479 return ret, nil
35480 }
35481
35482 type SettlementreportsListCall struct {
35483 s *APIService
35484 merchantId uint64
35485 urlParams_ gensupport.URLParams
35486 ifNoneMatch_ string
35487 ctx_ context.Context
35488 header_ http.Header
35489 }
35490
35491
35492
35493
35494
35495 func (r *SettlementreportsService) List(merchantId uint64) *SettlementreportsListCall {
35496 c := &SettlementreportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35497 c.merchantId = merchantId
35498 return c
35499 }
35500
35501
35502
35503
35504
35505 func (c *SettlementreportsListCall) MaxResults(maxResults int64) *SettlementreportsListCall {
35506 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
35507 return c
35508 }
35509
35510
35511
35512 func (c *SettlementreportsListCall) PageToken(pageToken string) *SettlementreportsListCall {
35513 c.urlParams_.Set("pageToken", pageToken)
35514 return c
35515 }
35516
35517
35518
35519
35520 func (c *SettlementreportsListCall) TransferEndDate(transferEndDate string) *SettlementreportsListCall {
35521 c.urlParams_.Set("transferEndDate", transferEndDate)
35522 return c
35523 }
35524
35525
35526
35527
35528 func (c *SettlementreportsListCall) TransferStartDate(transferStartDate string) *SettlementreportsListCall {
35529 c.urlParams_.Set("transferStartDate", transferStartDate)
35530 return c
35531 }
35532
35533
35534
35535
35536 func (c *SettlementreportsListCall) Fields(s ...googleapi.Field) *SettlementreportsListCall {
35537 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35538 return c
35539 }
35540
35541
35542
35543
35544 func (c *SettlementreportsListCall) IfNoneMatch(entityTag string) *SettlementreportsListCall {
35545 c.ifNoneMatch_ = entityTag
35546 return c
35547 }
35548
35549
35550 func (c *SettlementreportsListCall) Context(ctx context.Context) *SettlementreportsListCall {
35551 c.ctx_ = ctx
35552 return c
35553 }
35554
35555
35556
35557 func (c *SettlementreportsListCall) Header() http.Header {
35558 if c.header_ == nil {
35559 c.header_ = make(http.Header)
35560 }
35561 return c.header_
35562 }
35563
35564 func (c *SettlementreportsListCall) doRequest(alt string) (*http.Response, error) {
35565 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35566 if c.ifNoneMatch_ != "" {
35567 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35568 }
35569 var body io.Reader = nil
35570 c.urlParams_.Set("alt", alt)
35571 c.urlParams_.Set("prettyPrint", "false")
35572 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/settlementreports")
35573 urls += "?" + c.urlParams_.Encode()
35574 req, err := http.NewRequest("GET", urls, body)
35575 if err != nil {
35576 return nil, err
35577 }
35578 req.Header = reqHeaders
35579 googleapi.Expand(req.URL, map[string]string{
35580 "merchantId": strconv.FormatUint(c.merchantId, 10),
35581 })
35582 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35583 }
35584
35585
35586
35587
35588
35589
35590
35591 func (c *SettlementreportsListCall) Do(opts ...googleapi.CallOption) (*SettlementreportsListResponse, error) {
35592 gensupport.SetOptions(c.urlParams_, opts...)
35593 res, err := c.doRequest("json")
35594 if res != nil && res.StatusCode == http.StatusNotModified {
35595 if res.Body != nil {
35596 res.Body.Close()
35597 }
35598 return nil, gensupport.WrapError(&googleapi.Error{
35599 Code: res.StatusCode,
35600 Header: res.Header,
35601 })
35602 }
35603 if err != nil {
35604 return nil, err
35605 }
35606 defer googleapi.CloseBody(res)
35607 if err := googleapi.CheckResponse(res); err != nil {
35608 return nil, gensupport.WrapError(err)
35609 }
35610 ret := &SettlementreportsListResponse{
35611 ServerResponse: googleapi.ServerResponse{
35612 Header: res.Header,
35613 HTTPStatusCode: res.StatusCode,
35614 },
35615 }
35616 target := &ret
35617 if err := gensupport.DecodeResponse(target, res); err != nil {
35618 return nil, err
35619 }
35620 return ret, nil
35621 }
35622
35623
35624
35625
35626 func (c *SettlementreportsListCall) Pages(ctx context.Context, f func(*SettlementreportsListResponse) error) error {
35627 c.ctx_ = ctx
35628 defer c.PageToken(c.urlParams_.Get("pageToken"))
35629 for {
35630 x, err := c.Do()
35631 if err != nil {
35632 return err
35633 }
35634 if err := f(x); err != nil {
35635 return err
35636 }
35637 if x.NextPageToken == "" {
35638 return nil
35639 }
35640 c.PageToken(x.NextPageToken)
35641 }
35642 }
35643
35644 type SettlementtransactionsListCall struct {
35645 s *APIService
35646 merchantId uint64
35647 settlementId string
35648 urlParams_ gensupport.URLParams
35649 ifNoneMatch_ string
35650 ctx_ context.Context
35651 header_ http.Header
35652 }
35653
35654
35655
35656
35657
35658 func (r *SettlementtransactionsService) List(merchantId uint64, settlementId string) *SettlementtransactionsListCall {
35659 c := &SettlementtransactionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35660 c.merchantId = merchantId
35661 c.settlementId = settlementId
35662 return c
35663 }
35664
35665
35666
35667
35668
35669 func (c *SettlementtransactionsListCall) MaxResults(maxResults int64) *SettlementtransactionsListCall {
35670 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
35671 return c
35672 }
35673
35674
35675
35676 func (c *SettlementtransactionsListCall) PageToken(pageToken string) *SettlementtransactionsListCall {
35677 c.urlParams_.Set("pageToken", pageToken)
35678 return c
35679 }
35680
35681
35682
35683 func (c *SettlementtransactionsListCall) TransactionIds(transactionIds ...string) *SettlementtransactionsListCall {
35684 c.urlParams_.SetMulti("transactionIds", append([]string{}, transactionIds...))
35685 return c
35686 }
35687
35688
35689
35690
35691 func (c *SettlementtransactionsListCall) Fields(s ...googleapi.Field) *SettlementtransactionsListCall {
35692 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35693 return c
35694 }
35695
35696
35697
35698
35699 func (c *SettlementtransactionsListCall) IfNoneMatch(entityTag string) *SettlementtransactionsListCall {
35700 c.ifNoneMatch_ = entityTag
35701 return c
35702 }
35703
35704
35705 func (c *SettlementtransactionsListCall) Context(ctx context.Context) *SettlementtransactionsListCall {
35706 c.ctx_ = ctx
35707 return c
35708 }
35709
35710
35711
35712 func (c *SettlementtransactionsListCall) Header() http.Header {
35713 if c.header_ == nil {
35714 c.header_ = make(http.Header)
35715 }
35716 return c.header_
35717 }
35718
35719 func (c *SettlementtransactionsListCall) doRequest(alt string) (*http.Response, error) {
35720 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35721 if c.ifNoneMatch_ != "" {
35722 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35723 }
35724 var body io.Reader = nil
35725 c.urlParams_.Set("alt", alt)
35726 c.urlParams_.Set("prettyPrint", "false")
35727 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/settlementreports/{settlementId}/transactions")
35728 urls += "?" + c.urlParams_.Encode()
35729 req, err := http.NewRequest("GET", urls, body)
35730 if err != nil {
35731 return nil, err
35732 }
35733 req.Header = reqHeaders
35734 googleapi.Expand(req.URL, map[string]string{
35735 "merchantId": strconv.FormatUint(c.merchantId, 10),
35736 "settlementId": c.settlementId,
35737 })
35738 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35739 }
35740
35741
35742
35743
35744
35745
35746
35747 func (c *SettlementtransactionsListCall) Do(opts ...googleapi.CallOption) (*SettlementtransactionsListResponse, error) {
35748 gensupport.SetOptions(c.urlParams_, opts...)
35749 res, err := c.doRequest("json")
35750 if res != nil && res.StatusCode == http.StatusNotModified {
35751 if res.Body != nil {
35752 res.Body.Close()
35753 }
35754 return nil, gensupport.WrapError(&googleapi.Error{
35755 Code: res.StatusCode,
35756 Header: res.Header,
35757 })
35758 }
35759 if err != nil {
35760 return nil, err
35761 }
35762 defer googleapi.CloseBody(res)
35763 if err := googleapi.CheckResponse(res); err != nil {
35764 return nil, gensupport.WrapError(err)
35765 }
35766 ret := &SettlementtransactionsListResponse{
35767 ServerResponse: googleapi.ServerResponse{
35768 Header: res.Header,
35769 HTTPStatusCode: res.StatusCode,
35770 },
35771 }
35772 target := &ret
35773 if err := gensupport.DecodeResponse(target, res); err != nil {
35774 return nil, err
35775 }
35776 return ret, nil
35777 }
35778
35779
35780
35781
35782 func (c *SettlementtransactionsListCall) Pages(ctx context.Context, f func(*SettlementtransactionsListResponse) error) error {
35783 c.ctx_ = ctx
35784 defer c.PageToken(c.urlParams_.Get("pageToken"))
35785 for {
35786 x, err := c.Do()
35787 if err != nil {
35788 return err
35789 }
35790 if err := f(x); err != nil {
35791 return err
35792 }
35793 if x.NextPageToken == "" {
35794 return nil
35795 }
35796 c.PageToken(x.NextPageToken)
35797 }
35798 }
35799
35800 type ShippingsettingsCustombatchCall struct {
35801 s *APIService
35802 shippingsettingscustombatchrequest *ShippingsettingsCustomBatchRequest
35803 urlParams_ gensupport.URLParams
35804 ctx_ context.Context
35805 header_ http.Header
35806 }
35807
35808
35809
35810 func (r *ShippingsettingsService) Custombatch(shippingsettingscustombatchrequest *ShippingsettingsCustomBatchRequest) *ShippingsettingsCustombatchCall {
35811 c := &ShippingsettingsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35812 c.shippingsettingscustombatchrequest = shippingsettingscustombatchrequest
35813 return c
35814 }
35815
35816
35817
35818
35819 func (c *ShippingsettingsCustombatchCall) Fields(s ...googleapi.Field) *ShippingsettingsCustombatchCall {
35820 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35821 return c
35822 }
35823
35824
35825 func (c *ShippingsettingsCustombatchCall) Context(ctx context.Context) *ShippingsettingsCustombatchCall {
35826 c.ctx_ = ctx
35827 return c
35828 }
35829
35830
35831
35832 func (c *ShippingsettingsCustombatchCall) Header() http.Header {
35833 if c.header_ == nil {
35834 c.header_ = make(http.Header)
35835 }
35836 return c.header_
35837 }
35838
35839 func (c *ShippingsettingsCustombatchCall) doRequest(alt string) (*http.Response, error) {
35840 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35841 var body io.Reader = nil
35842 body, err := googleapi.WithoutDataWrapper.JSONReader(c.shippingsettingscustombatchrequest)
35843 if err != nil {
35844 return nil, err
35845 }
35846 c.urlParams_.Set("alt", alt)
35847 c.urlParams_.Set("prettyPrint", "false")
35848 urls := googleapi.ResolveRelative(c.s.BasePath, "shippingsettings/batch")
35849 urls += "?" + c.urlParams_.Encode()
35850 req, err := http.NewRequest("POST", urls, body)
35851 if err != nil {
35852 return nil, err
35853 }
35854 req.Header = reqHeaders
35855 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35856 }
35857
35858
35859
35860
35861
35862
35863
35864 func (c *ShippingsettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsCustomBatchResponse, error) {
35865 gensupport.SetOptions(c.urlParams_, opts...)
35866 res, err := c.doRequest("json")
35867 if res != nil && res.StatusCode == http.StatusNotModified {
35868 if res.Body != nil {
35869 res.Body.Close()
35870 }
35871 return nil, gensupport.WrapError(&googleapi.Error{
35872 Code: res.StatusCode,
35873 Header: res.Header,
35874 })
35875 }
35876 if err != nil {
35877 return nil, err
35878 }
35879 defer googleapi.CloseBody(res)
35880 if err := googleapi.CheckResponse(res); err != nil {
35881 return nil, gensupport.WrapError(err)
35882 }
35883 ret := &ShippingsettingsCustomBatchResponse{
35884 ServerResponse: googleapi.ServerResponse{
35885 Header: res.Header,
35886 HTTPStatusCode: res.StatusCode,
35887 },
35888 }
35889 target := &ret
35890 if err := gensupport.DecodeResponse(target, res); err != nil {
35891 return nil, err
35892 }
35893 return ret, nil
35894 }
35895
35896 type ShippingsettingsGetCall struct {
35897 s *APIService
35898 merchantId uint64
35899 accountId uint64
35900 urlParams_ gensupport.URLParams
35901 ifNoneMatch_ string
35902 ctx_ context.Context
35903 header_ http.Header
35904 }
35905
35906
35907
35908
35909
35910
35911
35912
35913 func (r *ShippingsettingsService) Get(merchantId uint64, accountId uint64) *ShippingsettingsGetCall {
35914 c := &ShippingsettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35915 c.merchantId = merchantId
35916 c.accountId = accountId
35917 return c
35918 }
35919
35920
35921
35922
35923 func (c *ShippingsettingsGetCall) Fields(s ...googleapi.Field) *ShippingsettingsGetCall {
35924 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35925 return c
35926 }
35927
35928
35929
35930
35931 func (c *ShippingsettingsGetCall) IfNoneMatch(entityTag string) *ShippingsettingsGetCall {
35932 c.ifNoneMatch_ = entityTag
35933 return c
35934 }
35935
35936
35937 func (c *ShippingsettingsGetCall) Context(ctx context.Context) *ShippingsettingsGetCall {
35938 c.ctx_ = ctx
35939 return c
35940 }
35941
35942
35943
35944 func (c *ShippingsettingsGetCall) Header() http.Header {
35945 if c.header_ == nil {
35946 c.header_ = make(http.Header)
35947 }
35948 return c.header_
35949 }
35950
35951 func (c *ShippingsettingsGetCall) doRequest(alt string) (*http.Response, error) {
35952 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35953 if c.ifNoneMatch_ != "" {
35954 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35955 }
35956 var body io.Reader = nil
35957 c.urlParams_.Set("alt", alt)
35958 c.urlParams_.Set("prettyPrint", "false")
35959 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shippingsettings/{accountId}")
35960 urls += "?" + c.urlParams_.Encode()
35961 req, err := http.NewRequest("GET", urls, body)
35962 if err != nil {
35963 return nil, err
35964 }
35965 req.Header = reqHeaders
35966 googleapi.Expand(req.URL, map[string]string{
35967 "merchantId": strconv.FormatUint(c.merchantId, 10),
35968 "accountId": strconv.FormatUint(c.accountId, 10),
35969 })
35970 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35971 }
35972
35973
35974
35975
35976
35977
35978
35979 func (c *ShippingsettingsGetCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error) {
35980 gensupport.SetOptions(c.urlParams_, opts...)
35981 res, err := c.doRequest("json")
35982 if res != nil && res.StatusCode == http.StatusNotModified {
35983 if res.Body != nil {
35984 res.Body.Close()
35985 }
35986 return nil, gensupport.WrapError(&googleapi.Error{
35987 Code: res.StatusCode,
35988 Header: res.Header,
35989 })
35990 }
35991 if err != nil {
35992 return nil, err
35993 }
35994 defer googleapi.CloseBody(res)
35995 if err := googleapi.CheckResponse(res); err != nil {
35996 return nil, gensupport.WrapError(err)
35997 }
35998 ret := &ShippingSettings{
35999 ServerResponse: googleapi.ServerResponse{
36000 Header: res.Header,
36001 HTTPStatusCode: res.StatusCode,
36002 },
36003 }
36004 target := &ret
36005 if err := gensupport.DecodeResponse(target, res); err != nil {
36006 return nil, err
36007 }
36008 return ret, nil
36009 }
36010
36011 type ShippingsettingsGetsupportedcarriersCall struct {
36012 s *APIService
36013 merchantId uint64
36014 urlParams_ gensupport.URLParams
36015 ifNoneMatch_ string
36016 ctx_ context.Context
36017 header_ http.Header
36018 }
36019
36020
36021
36022
36023
36024
36025 func (r *ShippingsettingsService) Getsupportedcarriers(merchantId uint64) *ShippingsettingsGetsupportedcarriersCall {
36026 c := &ShippingsettingsGetsupportedcarriersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36027 c.merchantId = merchantId
36028 return c
36029 }
36030
36031
36032
36033
36034 func (c *ShippingsettingsGetsupportedcarriersCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedcarriersCall {
36035 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36036 return c
36037 }
36038
36039
36040
36041
36042 func (c *ShippingsettingsGetsupportedcarriersCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedcarriersCall {
36043 c.ifNoneMatch_ = entityTag
36044 return c
36045 }
36046
36047
36048 func (c *ShippingsettingsGetsupportedcarriersCall) Context(ctx context.Context) *ShippingsettingsGetsupportedcarriersCall {
36049 c.ctx_ = ctx
36050 return c
36051 }
36052
36053
36054
36055 func (c *ShippingsettingsGetsupportedcarriersCall) Header() http.Header {
36056 if c.header_ == nil {
36057 c.header_ = make(http.Header)
36058 }
36059 return c.header_
36060 }
36061
36062 func (c *ShippingsettingsGetsupportedcarriersCall) doRequest(alt string) (*http.Response, error) {
36063 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36064 if c.ifNoneMatch_ != "" {
36065 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36066 }
36067 var body io.Reader = nil
36068 c.urlParams_.Set("alt", alt)
36069 c.urlParams_.Set("prettyPrint", "false")
36070 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/supportedCarriers")
36071 urls += "?" + c.urlParams_.Encode()
36072 req, err := http.NewRequest("GET", urls, body)
36073 if err != nil {
36074 return nil, err
36075 }
36076 req.Header = reqHeaders
36077 googleapi.Expand(req.URL, map[string]string{
36078 "merchantId": strconv.FormatUint(c.merchantId, 10),
36079 })
36080 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36081 }
36082
36083
36084
36085
36086
36087
36088
36089 func (c *ShippingsettingsGetsupportedcarriersCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedCarriersResponse, error) {
36090 gensupport.SetOptions(c.urlParams_, opts...)
36091 res, err := c.doRequest("json")
36092 if res != nil && res.StatusCode == http.StatusNotModified {
36093 if res.Body != nil {
36094 res.Body.Close()
36095 }
36096 return nil, gensupport.WrapError(&googleapi.Error{
36097 Code: res.StatusCode,
36098 Header: res.Header,
36099 })
36100 }
36101 if err != nil {
36102 return nil, err
36103 }
36104 defer googleapi.CloseBody(res)
36105 if err := googleapi.CheckResponse(res); err != nil {
36106 return nil, gensupport.WrapError(err)
36107 }
36108 ret := &ShippingsettingsGetSupportedCarriersResponse{
36109 ServerResponse: googleapi.ServerResponse{
36110 Header: res.Header,
36111 HTTPStatusCode: res.StatusCode,
36112 },
36113 }
36114 target := &ret
36115 if err := gensupport.DecodeResponse(target, res); err != nil {
36116 return nil, err
36117 }
36118 return ret, nil
36119 }
36120
36121 type ShippingsettingsGetsupportedholidaysCall struct {
36122 s *APIService
36123 merchantId uint64
36124 urlParams_ gensupport.URLParams
36125 ifNoneMatch_ string
36126 ctx_ context.Context
36127 header_ http.Header
36128 }
36129
36130
36131
36132
36133
36134 func (r *ShippingsettingsService) Getsupportedholidays(merchantId uint64) *ShippingsettingsGetsupportedholidaysCall {
36135 c := &ShippingsettingsGetsupportedholidaysCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36136 c.merchantId = merchantId
36137 return c
36138 }
36139
36140
36141
36142
36143 func (c *ShippingsettingsGetsupportedholidaysCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedholidaysCall {
36144 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36145 return c
36146 }
36147
36148
36149
36150
36151 func (c *ShippingsettingsGetsupportedholidaysCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedholidaysCall {
36152 c.ifNoneMatch_ = entityTag
36153 return c
36154 }
36155
36156
36157 func (c *ShippingsettingsGetsupportedholidaysCall) Context(ctx context.Context) *ShippingsettingsGetsupportedholidaysCall {
36158 c.ctx_ = ctx
36159 return c
36160 }
36161
36162
36163
36164 func (c *ShippingsettingsGetsupportedholidaysCall) Header() http.Header {
36165 if c.header_ == nil {
36166 c.header_ = make(http.Header)
36167 }
36168 return c.header_
36169 }
36170
36171 func (c *ShippingsettingsGetsupportedholidaysCall) doRequest(alt string) (*http.Response, error) {
36172 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36173 if c.ifNoneMatch_ != "" {
36174 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36175 }
36176 var body io.Reader = nil
36177 c.urlParams_.Set("alt", alt)
36178 c.urlParams_.Set("prettyPrint", "false")
36179 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/supportedHolidays")
36180 urls += "?" + c.urlParams_.Encode()
36181 req, err := http.NewRequest("GET", urls, body)
36182 if err != nil {
36183 return nil, err
36184 }
36185 req.Header = reqHeaders
36186 googleapi.Expand(req.URL, map[string]string{
36187 "merchantId": strconv.FormatUint(c.merchantId, 10),
36188 })
36189 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36190 }
36191
36192
36193
36194
36195
36196
36197
36198 func (c *ShippingsettingsGetsupportedholidaysCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedHolidaysResponse, error) {
36199 gensupport.SetOptions(c.urlParams_, opts...)
36200 res, err := c.doRequest("json")
36201 if res != nil && res.StatusCode == http.StatusNotModified {
36202 if res.Body != nil {
36203 res.Body.Close()
36204 }
36205 return nil, gensupport.WrapError(&googleapi.Error{
36206 Code: res.StatusCode,
36207 Header: res.Header,
36208 })
36209 }
36210 if err != nil {
36211 return nil, err
36212 }
36213 defer googleapi.CloseBody(res)
36214 if err := googleapi.CheckResponse(res); err != nil {
36215 return nil, gensupport.WrapError(err)
36216 }
36217 ret := &ShippingsettingsGetSupportedHolidaysResponse{
36218 ServerResponse: googleapi.ServerResponse{
36219 Header: res.Header,
36220 HTTPStatusCode: res.StatusCode,
36221 },
36222 }
36223 target := &ret
36224 if err := gensupport.DecodeResponse(target, res); err != nil {
36225 return nil, err
36226 }
36227 return ret, nil
36228 }
36229
36230 type ShippingsettingsGetsupportedpickupservicesCall struct {
36231 s *APIService
36232 merchantId uint64
36233 urlParams_ gensupport.URLParams
36234 ifNoneMatch_ string
36235 ctx_ context.Context
36236 header_ http.Header
36237 }
36238
36239
36240
36241
36242
36243
36244 func (r *ShippingsettingsService) Getsupportedpickupservices(merchantId uint64) *ShippingsettingsGetsupportedpickupservicesCall {
36245 c := &ShippingsettingsGetsupportedpickupservicesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36246 c.merchantId = merchantId
36247 return c
36248 }
36249
36250
36251
36252
36253 func (c *ShippingsettingsGetsupportedpickupservicesCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedpickupservicesCall {
36254 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36255 return c
36256 }
36257
36258
36259
36260
36261 func (c *ShippingsettingsGetsupportedpickupservicesCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedpickupservicesCall {
36262 c.ifNoneMatch_ = entityTag
36263 return c
36264 }
36265
36266
36267 func (c *ShippingsettingsGetsupportedpickupservicesCall) Context(ctx context.Context) *ShippingsettingsGetsupportedpickupservicesCall {
36268 c.ctx_ = ctx
36269 return c
36270 }
36271
36272
36273
36274 func (c *ShippingsettingsGetsupportedpickupservicesCall) Header() http.Header {
36275 if c.header_ == nil {
36276 c.header_ = make(http.Header)
36277 }
36278 return c.header_
36279 }
36280
36281 func (c *ShippingsettingsGetsupportedpickupservicesCall) doRequest(alt string) (*http.Response, error) {
36282 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36283 if c.ifNoneMatch_ != "" {
36284 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36285 }
36286 var body io.Reader = nil
36287 c.urlParams_.Set("alt", alt)
36288 c.urlParams_.Set("prettyPrint", "false")
36289 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/supportedPickupServices")
36290 urls += "?" + c.urlParams_.Encode()
36291 req, err := http.NewRequest("GET", urls, body)
36292 if err != nil {
36293 return nil, err
36294 }
36295 req.Header = reqHeaders
36296 googleapi.Expand(req.URL, map[string]string{
36297 "merchantId": strconv.FormatUint(c.merchantId, 10),
36298 })
36299 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36300 }
36301
36302
36303
36304
36305
36306
36307
36308 func (c *ShippingsettingsGetsupportedpickupservicesCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedPickupServicesResponse, error) {
36309 gensupport.SetOptions(c.urlParams_, opts...)
36310 res, err := c.doRequest("json")
36311 if res != nil && res.StatusCode == http.StatusNotModified {
36312 if res.Body != nil {
36313 res.Body.Close()
36314 }
36315 return nil, gensupport.WrapError(&googleapi.Error{
36316 Code: res.StatusCode,
36317 Header: res.Header,
36318 })
36319 }
36320 if err != nil {
36321 return nil, err
36322 }
36323 defer googleapi.CloseBody(res)
36324 if err := googleapi.CheckResponse(res); err != nil {
36325 return nil, gensupport.WrapError(err)
36326 }
36327 ret := &ShippingsettingsGetSupportedPickupServicesResponse{
36328 ServerResponse: googleapi.ServerResponse{
36329 Header: res.Header,
36330 HTTPStatusCode: res.StatusCode,
36331 },
36332 }
36333 target := &ret
36334 if err := gensupport.DecodeResponse(target, res); err != nil {
36335 return nil, err
36336 }
36337 return ret, nil
36338 }
36339
36340 type ShippingsettingsListCall struct {
36341 s *APIService
36342 merchantId uint64
36343 urlParams_ gensupport.URLParams
36344 ifNoneMatch_ string
36345 ctx_ context.Context
36346 header_ http.Header
36347 }
36348
36349
36350
36351
36352
36353
36354 func (r *ShippingsettingsService) List(merchantId uint64) *ShippingsettingsListCall {
36355 c := &ShippingsettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36356 c.merchantId = merchantId
36357 return c
36358 }
36359
36360
36361
36362 func (c *ShippingsettingsListCall) MaxResults(maxResults int64) *ShippingsettingsListCall {
36363 c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
36364 return c
36365 }
36366
36367
36368
36369 func (c *ShippingsettingsListCall) PageToken(pageToken string) *ShippingsettingsListCall {
36370 c.urlParams_.Set("pageToken", pageToken)
36371 return c
36372 }
36373
36374
36375
36376
36377 func (c *ShippingsettingsListCall) Fields(s ...googleapi.Field) *ShippingsettingsListCall {
36378 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36379 return c
36380 }
36381
36382
36383
36384
36385 func (c *ShippingsettingsListCall) IfNoneMatch(entityTag string) *ShippingsettingsListCall {
36386 c.ifNoneMatch_ = entityTag
36387 return c
36388 }
36389
36390
36391 func (c *ShippingsettingsListCall) Context(ctx context.Context) *ShippingsettingsListCall {
36392 c.ctx_ = ctx
36393 return c
36394 }
36395
36396
36397
36398 func (c *ShippingsettingsListCall) Header() http.Header {
36399 if c.header_ == nil {
36400 c.header_ = make(http.Header)
36401 }
36402 return c.header_
36403 }
36404
36405 func (c *ShippingsettingsListCall) doRequest(alt string) (*http.Response, error) {
36406 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36407 if c.ifNoneMatch_ != "" {
36408 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36409 }
36410 var body io.Reader = nil
36411 c.urlParams_.Set("alt", alt)
36412 c.urlParams_.Set("prettyPrint", "false")
36413 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shippingsettings")
36414 urls += "?" + c.urlParams_.Encode()
36415 req, err := http.NewRequest("GET", urls, body)
36416 if err != nil {
36417 return nil, err
36418 }
36419 req.Header = reqHeaders
36420 googleapi.Expand(req.URL, map[string]string{
36421 "merchantId": strconv.FormatUint(c.merchantId, 10),
36422 })
36423 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36424 }
36425
36426
36427
36428
36429
36430
36431
36432 func (c *ShippingsettingsListCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsListResponse, error) {
36433 gensupport.SetOptions(c.urlParams_, opts...)
36434 res, err := c.doRequest("json")
36435 if res != nil && res.StatusCode == http.StatusNotModified {
36436 if res.Body != nil {
36437 res.Body.Close()
36438 }
36439 return nil, gensupport.WrapError(&googleapi.Error{
36440 Code: res.StatusCode,
36441 Header: res.Header,
36442 })
36443 }
36444 if err != nil {
36445 return nil, err
36446 }
36447 defer googleapi.CloseBody(res)
36448 if err := googleapi.CheckResponse(res); err != nil {
36449 return nil, gensupport.WrapError(err)
36450 }
36451 ret := &ShippingsettingsListResponse{
36452 ServerResponse: googleapi.ServerResponse{
36453 Header: res.Header,
36454 HTTPStatusCode: res.StatusCode,
36455 },
36456 }
36457 target := &ret
36458 if err := gensupport.DecodeResponse(target, res); err != nil {
36459 return nil, err
36460 }
36461 return ret, nil
36462 }
36463
36464
36465
36466
36467 func (c *ShippingsettingsListCall) Pages(ctx context.Context, f func(*ShippingsettingsListResponse) error) error {
36468 c.ctx_ = ctx
36469 defer c.PageToken(c.urlParams_.Get("pageToken"))
36470 for {
36471 x, err := c.Do()
36472 if err != nil {
36473 return err
36474 }
36475 if err := f(x); err != nil {
36476 return err
36477 }
36478 if x.NextPageToken == "" {
36479 return nil
36480 }
36481 c.PageToken(x.NextPageToken)
36482 }
36483 }
36484
36485 type ShippingsettingsUpdateCall struct {
36486 s *APIService
36487 merchantId uint64
36488 accountId uint64
36489 shippingsettings *ShippingSettings
36490 urlParams_ gensupport.URLParams
36491 ctx_ context.Context
36492 header_ http.Header
36493 }
36494
36495
36496
36497
36498
36499
36500
36501
36502
36503 func (r *ShippingsettingsService) Update(merchantId uint64, accountId uint64, shippingsettings *ShippingSettings) *ShippingsettingsUpdateCall {
36504 c := &ShippingsettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36505 c.merchantId = merchantId
36506 c.accountId = accountId
36507 c.shippingsettings = shippingsettings
36508 return c
36509 }
36510
36511
36512
36513
36514 func (c *ShippingsettingsUpdateCall) Fields(s ...googleapi.Field) *ShippingsettingsUpdateCall {
36515 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36516 return c
36517 }
36518
36519
36520 func (c *ShippingsettingsUpdateCall) Context(ctx context.Context) *ShippingsettingsUpdateCall {
36521 c.ctx_ = ctx
36522 return c
36523 }
36524
36525
36526
36527 func (c *ShippingsettingsUpdateCall) Header() http.Header {
36528 if c.header_ == nil {
36529 c.header_ = make(http.Header)
36530 }
36531 return c.header_
36532 }
36533
36534 func (c *ShippingsettingsUpdateCall) doRequest(alt string) (*http.Response, error) {
36535 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36536 var body io.Reader = nil
36537 body, err := googleapi.WithoutDataWrapper.JSONReader(c.shippingsettings)
36538 if err != nil {
36539 return nil, err
36540 }
36541 c.urlParams_.Set("alt", alt)
36542 c.urlParams_.Set("prettyPrint", "false")
36543 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shippingsettings/{accountId}")
36544 urls += "?" + c.urlParams_.Encode()
36545 req, err := http.NewRequest("PUT", urls, body)
36546 if err != nil {
36547 return nil, err
36548 }
36549 req.Header = reqHeaders
36550 googleapi.Expand(req.URL, map[string]string{
36551 "merchantId": strconv.FormatUint(c.merchantId, 10),
36552 "accountId": strconv.FormatUint(c.accountId, 10),
36553 })
36554 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36555 }
36556
36557
36558
36559
36560
36561
36562
36563 func (c *ShippingsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error) {
36564 gensupport.SetOptions(c.urlParams_, opts...)
36565 res, err := c.doRequest("json")
36566 if res != nil && res.StatusCode == http.StatusNotModified {
36567 if res.Body != nil {
36568 res.Body.Close()
36569 }
36570 return nil, gensupport.WrapError(&googleapi.Error{
36571 Code: res.StatusCode,
36572 Header: res.Header,
36573 })
36574 }
36575 if err != nil {
36576 return nil, err
36577 }
36578 defer googleapi.CloseBody(res)
36579 if err := googleapi.CheckResponse(res); err != nil {
36580 return nil, gensupport.WrapError(err)
36581 }
36582 ret := &ShippingSettings{
36583 ServerResponse: googleapi.ServerResponse{
36584 Header: res.Header,
36585 HTTPStatusCode: res.StatusCode,
36586 },
36587 }
36588 target := &ret
36589 if err := gensupport.DecodeResponse(target, res); err != nil {
36590 return nil, err
36591 }
36592 return ret, nil
36593 }
36594
36595 type ShoppingadsprogramGetCall struct {
36596 s *APIService
36597 merchantId int64
36598 urlParams_ gensupport.URLParams
36599 ifNoneMatch_ string
36600 ctx_ context.Context
36601 header_ http.Header
36602 }
36603
36604
36605
36606
36607
36608
36609
36610 func (r *ShoppingadsprogramService) Get(merchantId int64) *ShoppingadsprogramGetCall {
36611 c := &ShoppingadsprogramGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36612 c.merchantId = merchantId
36613 return c
36614 }
36615
36616
36617
36618
36619 func (c *ShoppingadsprogramGetCall) Fields(s ...googleapi.Field) *ShoppingadsprogramGetCall {
36620 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36621 return c
36622 }
36623
36624
36625
36626
36627 func (c *ShoppingadsprogramGetCall) IfNoneMatch(entityTag string) *ShoppingadsprogramGetCall {
36628 c.ifNoneMatch_ = entityTag
36629 return c
36630 }
36631
36632
36633 func (c *ShoppingadsprogramGetCall) Context(ctx context.Context) *ShoppingadsprogramGetCall {
36634 c.ctx_ = ctx
36635 return c
36636 }
36637
36638
36639
36640 func (c *ShoppingadsprogramGetCall) Header() http.Header {
36641 if c.header_ == nil {
36642 c.header_ = make(http.Header)
36643 }
36644 return c.header_
36645 }
36646
36647 func (c *ShoppingadsprogramGetCall) doRequest(alt string) (*http.Response, error) {
36648 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36649 if c.ifNoneMatch_ != "" {
36650 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36651 }
36652 var body io.Reader = nil
36653 c.urlParams_.Set("alt", alt)
36654 c.urlParams_.Set("prettyPrint", "false")
36655 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shoppingadsprogram")
36656 urls += "?" + c.urlParams_.Encode()
36657 req, err := http.NewRequest("GET", urls, body)
36658 if err != nil {
36659 return nil, err
36660 }
36661 req.Header = reqHeaders
36662 googleapi.Expand(req.URL, map[string]string{
36663 "merchantId": strconv.FormatInt(c.merchantId, 10),
36664 })
36665 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36666 }
36667
36668
36669
36670
36671
36672
36673
36674 func (c *ShoppingadsprogramGetCall) Do(opts ...googleapi.CallOption) (*ShoppingAdsProgramStatus, error) {
36675 gensupport.SetOptions(c.urlParams_, opts...)
36676 res, err := c.doRequest("json")
36677 if res != nil && res.StatusCode == http.StatusNotModified {
36678 if res.Body != nil {
36679 res.Body.Close()
36680 }
36681 return nil, gensupport.WrapError(&googleapi.Error{
36682 Code: res.StatusCode,
36683 Header: res.Header,
36684 })
36685 }
36686 if err != nil {
36687 return nil, err
36688 }
36689 defer googleapi.CloseBody(res)
36690 if err := googleapi.CheckResponse(res); err != nil {
36691 return nil, gensupport.WrapError(err)
36692 }
36693 ret := &ShoppingAdsProgramStatus{
36694 ServerResponse: googleapi.ServerResponse{
36695 Header: res.Header,
36696 HTTPStatusCode: res.StatusCode,
36697 },
36698 }
36699 target := &ret
36700 if err := gensupport.DecodeResponse(target, res); err != nil {
36701 return nil, err
36702 }
36703 return ret, nil
36704 }
36705
36706 type ShoppingadsprogramRequestreviewCall struct {
36707 s *APIService
36708 merchantId int64
36709 requestreviewshoppingadsrequest *RequestReviewShoppingAdsRequest
36710 urlParams_ gensupport.URLParams
36711 ctx_ context.Context
36712 header_ http.Header
36713 }
36714
36715
36716
36717
36718
36719
36720 func (r *ShoppingadsprogramService) Requestreview(merchantId int64, requestreviewshoppingadsrequest *RequestReviewShoppingAdsRequest) *ShoppingadsprogramRequestreviewCall {
36721 c := &ShoppingadsprogramRequestreviewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36722 c.merchantId = merchantId
36723 c.requestreviewshoppingadsrequest = requestreviewshoppingadsrequest
36724 return c
36725 }
36726
36727
36728
36729
36730 func (c *ShoppingadsprogramRequestreviewCall) Fields(s ...googleapi.Field) *ShoppingadsprogramRequestreviewCall {
36731 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36732 return c
36733 }
36734
36735
36736 func (c *ShoppingadsprogramRequestreviewCall) Context(ctx context.Context) *ShoppingadsprogramRequestreviewCall {
36737 c.ctx_ = ctx
36738 return c
36739 }
36740
36741
36742
36743 func (c *ShoppingadsprogramRequestreviewCall) Header() http.Header {
36744 if c.header_ == nil {
36745 c.header_ = make(http.Header)
36746 }
36747 return c.header_
36748 }
36749
36750 func (c *ShoppingadsprogramRequestreviewCall) doRequest(alt string) (*http.Response, error) {
36751 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36752 var body io.Reader = nil
36753 body, err := googleapi.WithoutDataWrapper.JSONReader(c.requestreviewshoppingadsrequest)
36754 if err != nil {
36755 return nil, err
36756 }
36757 c.urlParams_.Set("alt", alt)
36758 c.urlParams_.Set("prettyPrint", "false")
36759 urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shoppingadsprogram/requestreview")
36760 urls += "?" + c.urlParams_.Encode()
36761 req, err := http.NewRequest("POST", urls, body)
36762 if err != nil {
36763 return nil, err
36764 }
36765 req.Header = reqHeaders
36766 googleapi.Expand(req.URL, map[string]string{
36767 "merchantId": strconv.FormatInt(c.merchantId, 10),
36768 })
36769 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36770 }
36771
36772
36773 func (c *ShoppingadsprogramRequestreviewCall) Do(opts ...googleapi.CallOption) error {
36774 gensupport.SetOptions(c.urlParams_, opts...)
36775 res, err := c.doRequest("json")
36776 if err != nil {
36777 return err
36778 }
36779 defer googleapi.CloseBody(res)
36780 if err := googleapi.CheckResponse(res); err != nil {
36781 return gensupport.WrapError(err)
36782 }
36783 return nil
36784 }
36785
View as plain text