Class: PinterestSdkClient::UpdatableItemAttributes

Inherits:
ApiModelBase
  • Object
show all
Defined in:
lib/pinterest_sdk/models/updatable_item_attributes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ApiModelBase

_deserialize, #_to_hash, #to_body, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ UpdatableItemAttributes

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 657

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `PinterestSdkClient::UpdatableItemAttributes` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  acceptable_attribute_map = self.class.acceptable_attribute_map
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!acceptable_attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `PinterestSdkClient::UpdatableItemAttributes`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'ad_image_0_link')
    self.ad_image_0_link = attributes[:'ad_image_0_link']
  end

  if attributes.key?(:'ad_image_0_tag')
    self.ad_image_0_tag = attributes[:'ad_image_0_tag']
  end

  if attributes.key?(:'ad_image_10_link')
    self.ad_image_10_link = attributes[:'ad_image_10_link']
  end

  if attributes.key?(:'ad_image_10_tag')
    self.ad_image_10_tag = attributes[:'ad_image_10_tag']
  end

  if attributes.key?(:'ad_image_11_link')
    self.ad_image_11_link = attributes[:'ad_image_11_link']
  end

  if attributes.key?(:'ad_image_11_tag')
    self.ad_image_11_tag = attributes[:'ad_image_11_tag']
  end

  if attributes.key?(:'ad_image_12_link')
    self.ad_image_12_link = attributes[:'ad_image_12_link']
  end

  if attributes.key?(:'ad_image_12_tag')
    self.ad_image_12_tag = attributes[:'ad_image_12_tag']
  end

  if attributes.key?(:'ad_image_13_link')
    self.ad_image_13_link = attributes[:'ad_image_13_link']
  end

  if attributes.key?(:'ad_image_13_tag')
    self.ad_image_13_tag = attributes[:'ad_image_13_tag']
  end

  if attributes.key?(:'ad_image_14_link')
    self.ad_image_14_link = attributes[:'ad_image_14_link']
  end

  if attributes.key?(:'ad_image_14_tag')
    self.ad_image_14_tag = attributes[:'ad_image_14_tag']
  end

  if attributes.key?(:'ad_image_15_link')
    self.ad_image_15_link = attributes[:'ad_image_15_link']
  end

  if attributes.key?(:'ad_image_15_tag')
    self.ad_image_15_tag = attributes[:'ad_image_15_tag']
  end

  if attributes.key?(:'ad_image_16_link')
    self.ad_image_16_link = attributes[:'ad_image_16_link']
  end

  if attributes.key?(:'ad_image_16_tag')
    self.ad_image_16_tag = attributes[:'ad_image_16_tag']
  end

  if attributes.key?(:'ad_image_17_link')
    self.ad_image_17_link = attributes[:'ad_image_17_link']
  end

  if attributes.key?(:'ad_image_17_tag')
    self.ad_image_17_tag = attributes[:'ad_image_17_tag']
  end

  if attributes.key?(:'ad_image_18_link')
    self.ad_image_18_link = attributes[:'ad_image_18_link']
  end

  if attributes.key?(:'ad_image_18_tag')
    self.ad_image_18_tag = attributes[:'ad_image_18_tag']
  end

  if attributes.key?(:'ad_image_19_link')
    self.ad_image_19_link = attributes[:'ad_image_19_link']
  end

  if attributes.key?(:'ad_image_19_tag')
    self.ad_image_19_tag = attributes[:'ad_image_19_tag']
  end

  if attributes.key?(:'ad_image_1_link')
    self.ad_image_1_link = attributes[:'ad_image_1_link']
  end

  if attributes.key?(:'ad_image_1_tag')
    self.ad_image_1_tag = attributes[:'ad_image_1_tag']
  end

  if attributes.key?(:'ad_image_2_link')
    self.ad_image_2_link = attributes[:'ad_image_2_link']
  end

  if attributes.key?(:'ad_image_2_tag')
    self.ad_image_2_tag = attributes[:'ad_image_2_tag']
  end

  if attributes.key?(:'ad_image_3_link')
    self.ad_image_3_link = attributes[:'ad_image_3_link']
  end

  if attributes.key?(:'ad_image_3_tag')
    self.ad_image_3_tag = attributes[:'ad_image_3_tag']
  end

  if attributes.key?(:'ad_image_4_link')
    self.ad_image_4_link = attributes[:'ad_image_4_link']
  end

  if attributes.key?(:'ad_image_4_tag')
    self.ad_image_4_tag = attributes[:'ad_image_4_tag']
  end

  if attributes.key?(:'ad_image_5_link')
    self.ad_image_5_link = attributes[:'ad_image_5_link']
  end

  if attributes.key?(:'ad_image_5_tag')
    self.ad_image_5_tag = attributes[:'ad_image_5_tag']
  end

  if attributes.key?(:'ad_image_6_link')
    self.ad_image_6_link = attributes[:'ad_image_6_link']
  end

  if attributes.key?(:'ad_image_6_tag')
    self.ad_image_6_tag = attributes[:'ad_image_6_tag']
  end

  if attributes.key?(:'ad_image_7_link')
    self.ad_image_7_link = attributes[:'ad_image_7_link']
  end

  if attributes.key?(:'ad_image_7_tag')
    self.ad_image_7_tag = attributes[:'ad_image_7_tag']
  end

  if attributes.key?(:'ad_image_8_link')
    self.ad_image_8_link = attributes[:'ad_image_8_link']
  end

  if attributes.key?(:'ad_image_8_tag')
    self.ad_image_8_tag = attributes[:'ad_image_8_tag']
  end

  if attributes.key?(:'ad_image_9_link')
    self.ad_image_9_link = attributes[:'ad_image_9_link']
  end

  if attributes.key?(:'ad_image_9_tag')
    self.ad_image_9_tag = attributes[:'ad_image_9_tag']
  end

  if attributes.key?(:'ad_link')
    self.ad_link = attributes[:'ad_link']
  end

  if attributes.key?(:'ad_video_0_link')
    self.ad_video_0_link = attributes[:'ad_video_0_link']
  end

  if attributes.key?(:'ad_video_0_tag')
    self.ad_video_0_tag = attributes[:'ad_video_0_tag']
  end

  if attributes.key?(:'ad_video_1_link')
    self.ad_video_1_link = attributes[:'ad_video_1_link']
  end

  if attributes.key?(:'ad_video_1_tag')
    self.ad_video_1_tag = attributes[:'ad_video_1_tag']
  end

  if attributes.key?(:'ad_video_2_link')
    self.ad_video_2_link = attributes[:'ad_video_2_link']
  end

  if attributes.key?(:'ad_video_2_tag')
    self.ad_video_2_tag = attributes[:'ad_video_2_tag']
  end

  if attributes.key?(:'adult')
    self.adult = attributes[:'adult']
  end

  if attributes.key?(:'age_group')
    self.age_group = attributes[:'age_group']
  end

  if attributes.key?(:'android_deep_link')
    self.android_deep_link = attributes[:'android_deep_link']
  end

  if attributes.key?(:'availability')
    self.availability = attributes[:'availability']
  end

  if attributes.key?(:'average_review_rating')
    self.average_review_rating = attributes[:'average_review_rating']
  end

  if attributes.key?(:'brand')
    self.brand = attributes[:'brand']
  end

  if attributes.key?(:'checkout_enabled')
    self.checkout_enabled = attributes[:'checkout_enabled']
  end

  if attributes.key?(:'color')
    self.color = attributes[:'color']
  end

  if attributes.key?(:'condition')
    self.condition = attributes[:'condition']
  end

  if attributes.key?(:'custom_label_0')
    self.custom_label_0 = attributes[:'custom_label_0']
  end

  if attributes.key?(:'custom_label_1')
    self.custom_label_1 = attributes[:'custom_label_1']
  end

  if attributes.key?(:'custom_label_2')
    self.custom_label_2 = attributes[:'custom_label_2']
  end

  if attributes.key?(:'custom_label_3')
    self.custom_label_3 = attributes[:'custom_label_3']
  end

  if attributes.key?(:'custom_label_4')
    self.custom_label_4 = attributes[:'custom_label_4']
  end

  if attributes.key?(:'custom_number_0')
    self.custom_number_0 = attributes[:'custom_number_0']
  end

  if attributes.key?(:'custom_number_1')
    self.custom_number_1 = attributes[:'custom_number_1']
  end

  if attributes.key?(:'custom_number_2')
    self.custom_number_2 = attributes[:'custom_number_2']
  end

  if attributes.key?(:'custom_number_3')
    self.custom_number_3 = attributes[:'custom_number_3']
  end

  if attributes.key?(:'custom_number_4')
    self.custom_number_4 = attributes[:'custom_number_4']
  end

  if attributes.key?(:'description')
    self.description = attributes[:'description']
  end

  if attributes.key?(:'free_shipping_label')
    self.free_shipping_label = attributes[:'free_shipping_label']
  end

  if attributes.key?(:'free_shipping_limit')
    self.free_shipping_limit = attributes[:'free_shipping_limit']
  end

  if attributes.key?(:'gender')
    self.gender = attributes[:'gender']
  end

  if attributes.key?(:'google_product_category')
    self.google_product_category = attributes[:'google_product_category']
  end

  if attributes.key?(:'gtin')
    self.gtin = attributes[:'gtin']
  end

  if attributes.key?(:'id')
    self.id = attributes[:'id']
  end

  if attributes.key?(:'installment_price')
    self.installment_price = attributes[:'installment_price']
  end

  if attributes.key?(:'ios_deep_link')
    self.ios_deep_link = attributes[:'ios_deep_link']
  end

  if attributes.key?(:'item_group_id')
    self.item_group_id = attributes[:'item_group_id']
  end

  if attributes.key?(:'last_updated_time')
    self.last_updated_time = attributes[:'last_updated_time']
  end

  if attributes.key?(:'link')
    self.link = attributes[:'link']
  end

  if attributes.key?(:'material')
    self.material = attributes[:'material']
  end

  if attributes.key?(:'min_ad_price')
    self.min_ad_price = attributes[:'min_ad_price']
  end

  if attributes.key?(:'mobile_link')
    self.mobile_link = attributes[:'mobile_link']
  end

  if attributes.key?(:'mpn')
    self.mpn = attributes[:'mpn']
  end

  if attributes.key?(:'number_of_ratings')
    self.number_of_ratings = attributes[:'number_of_ratings']
  end

  if attributes.key?(:'number_of_reviews')
    self.number_of_reviews = attributes[:'number_of_reviews']
  end

  if attributes.key?(:'pattern')
    self.pattern = attributes[:'pattern']
  end

  if attributes.key?(:'price')
    self.price = attributes[:'price']
  end

  if attributes.key?(:'product_type')
    self.product_type = attributes[:'product_type']
  end

  if attributes.key?(:'promotion_id')
    self.promotion_id = attributes[:'promotion_id']
  end

  if attributes.key?(:'sale_price')
    self.sale_price = attributes[:'sale_price']
  end

  if attributes.key?(:'sale_price_effective_date')
    self.sale_price_effective_date = attributes[:'sale_price_effective_date']
  end

  if attributes.key?(:'shipping')
    self.shipping = attributes[:'shipping']
  end

  if attributes.key?(:'shipping_height')
    self.shipping_height = attributes[:'shipping_height']
  end

  if attributes.key?(:'shipping_weight')
    self.shipping_weight = attributes[:'shipping_weight']
  end

  if attributes.key?(:'shipping_width')
    self.shipping_width = attributes[:'shipping_width']
  end

  if attributes.key?(:'size')
    self.size = attributes[:'size']
  end

  if attributes.key?(:'size_system')
    self.size_system = attributes[:'size_system']
  end

  if attributes.key?(:'size_type')
    self.size_type = attributes[:'size_type']
  end

  if attributes.key?(:'tax')
    self.tax = attributes[:'tax']
  end

  if attributes.key?(:'title')
    self.title = attributes[:'title']
  end

  if attributes.key?(:'unit_pricing_base_measure')
    self.unit_pricing_base_measure = attributes[:'unit_pricing_base_measure']
  end

  if attributes.key?(:'unit_pricing_measure')
    self.unit_pricing_measure = attributes[:'unit_pricing_measure']
  end

  if attributes.key?(:'variant_names')
    if (value = attributes[:'variant_names']).is_a?(Array)
      self.variant_names = value
    end
  end

  if attributes.key?(:'variant_values')
    if (value = attributes[:'variant_values']).is_a?(Array)
      self.variant_values = value
    end
  end
end

Instance Attribute Details

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



19
20
21
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 19

def ad_image_0_link
  @ad_image_0_link
end

#ad_image_0_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



22
23
24
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 22

def ad_image_0_tag
  @ad_image_0_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



25
26
27
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 25

def ad_image_10_link
  @ad_image_10_link
end

#ad_image_10_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



28
29
30
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 28

def ad_image_10_tag
  @ad_image_10_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



31
32
33
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 31

def ad_image_11_link
  @ad_image_11_link
end

#ad_image_11_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



34
35
36
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 34

def ad_image_11_tag
  @ad_image_11_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



37
38
39
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 37

def ad_image_12_link
  @ad_image_12_link
end

#ad_image_12_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



40
41
42
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 40

def ad_image_12_tag
  @ad_image_12_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



43
44
45
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 43

def ad_image_13_link
  @ad_image_13_link
end

#ad_image_13_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



46
47
48
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 46

def ad_image_13_tag
  @ad_image_13_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



49
50
51
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 49

def ad_image_14_link
  @ad_image_14_link
end

#ad_image_14_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



52
53
54
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 52

def ad_image_14_tag
  @ad_image_14_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



55
56
57
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 55

def ad_image_15_link
  @ad_image_15_link
end

#ad_image_15_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



58
59
60
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 58

def ad_image_15_tag
  @ad_image_15_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



61
62
63
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 61

def ad_image_16_link
  @ad_image_16_link
end

#ad_image_16_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



64
65
66
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 64

def ad_image_16_tag
  @ad_image_16_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



67
68
69
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 67

def ad_image_17_link
  @ad_image_17_link
end

#ad_image_17_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



70
71
72
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 70

def ad_image_17_tag
  @ad_image_17_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



73
74
75
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 73

def ad_image_18_link
  @ad_image_18_link
end

#ad_image_18_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



76
77
78
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 76

def ad_image_18_tag
  @ad_image_18_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



79
80
81
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 79

def ad_image_19_link
  @ad_image_19_link
end

#ad_image_19_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



82
83
84
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 82

def ad_image_19_tag
  @ad_image_19_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



85
86
87
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 85

def ad_image_1_link
  @ad_image_1_link
end

#ad_image_1_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



88
89
90
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 88

def ad_image_1_tag
  @ad_image_1_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



91
92
93
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 91

def ad_image_2_link
  @ad_image_2_link
end

#ad_image_2_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



94
95
96
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 94

def ad_image_2_tag
  @ad_image_2_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



97
98
99
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 97

def ad_image_3_link
  @ad_image_3_link
end

#ad_image_3_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



100
101
102
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 100

def ad_image_3_tag
  @ad_image_3_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



103
104
105
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 103

def ad_image_4_link
  @ad_image_4_link
end

#ad_image_4_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



106
107
108
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 106

def ad_image_4_tag
  @ad_image_4_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



109
110
111
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 109

def ad_image_5_link
  @ad_image_5_link
end

#ad_image_5_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



112
113
114
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 112

def ad_image_5_tag
  @ad_image_5_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



115
116
117
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 115

def ad_image_6_link
  @ad_image_6_link
end

#ad_image_6_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



118
119
120
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 118

def ad_image_6_tag
  @ad_image_6_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



121
122
123
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 121

def ad_image_7_link
  @ad_image_7_link
end

#ad_image_7_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



124
125
126
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 124

def ad_image_7_tag
  @ad_image_7_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



127
128
129
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 127

def ad_image_8_link
  @ad_image_8_link
end

#ad_image_8_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



130
131
132
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 130

def ad_image_8_tag
  @ad_image_8_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad image link that supplements main image for shopping campaigns.</p> <p>Image format:</p> <ul> <li>Pixel size at least 75 x 75</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder images in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



133
134
135
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 133

def ad_image_9_link
  @ad_image_9_link
end

#ad_image_9_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.</p>



136
137
138
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 136

def ad_image_9_tag
  @ad_image_9_tag
end

Allows advertisers to specify a separate URL that can be used to track traffic coming from Pinterest shopping ads. Must send full URL including tracking—do not send tracking parameters only. At this time we do not support impression tracking. Must begin with http:// or https://.



139
140
141
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 139

def ad_link
  @ad_link
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad video link that supplements main video for shopping campaigns.</p> <p>Video format:</p> <ul> <li>Pixel size between 75 x 75 and 9450 x 9450</li> <li>File size smaller than 2 GB</li> <li>Time span between 4 seconds and 15 minutes</li> <li>Accepted formats: .MP4, .MOV, .M4V</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder videos in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



142
143
144
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 142

def ad_video_0_link
  @ad_video_0_link
end

#ad_video_0_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_video_x_link, include the video tag with the corresponding ad_video_x_tag attribute.</p>



145
146
147
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 145

def ad_video_0_tag
  @ad_video_0_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad video link that supplements main video for shopping campaigns.</p> <p>Video format:</p> <ul> <li>Pixel size between 75 x 75 and 9450 x 9450</li> <li>File size smaller than 2 GB</li> <li>Time span between 4 seconds and 15 minutes</li> <li>Accepted formats: .MP4, .MOV, .M4V</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder videos in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



148
149
150
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 148

def ad_video_1_link
  @ad_video_1_link
end

#ad_video_1_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_video_x_link, include the video tag with the corresponding ad_video_x_tag attribute.</p>



151
152
153
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 151

def ad_video_1_tag
  @ad_video_1_tag
end

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 2000 characters</p> <p>Ad video link that supplements main video for shopping campaigns.</p> <p>Video format:</p> <ul> <li>Pixel size between 75 x 75 and 9450 x 9450</li> <li>File size smaller than 2 GB</li> <li>Time span between 4 seconds and 15 minutes</li> <li>Accepted formats: .MP4, .MOV, .M4V</li> </ul> <p>Link guidelines:</p> <ul> <li>Include extension in file name</li> <li>Do not include template or placeholder videos in link</li> <li>Make URL accessible to Pinterest user-agent</li> <li>Must start with http:// or https://</li> </ul>



154
155
156
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 154

def ad_video_2_link
  @ad_video_2_link
end

#ad_video_2_tagObject

<a href="/docs/getting-started/using-beta-and-restricted-features/" target="blank" target="blank">Restricted</a> <p><= 511 characters</p> <p>If you provide an ad_video_x_link, include the video tag with the corresponding ad_video_x_tag attribute.</p>



157
158
159
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 157

def ad_video_2_tag
  @ad_video_2_tag
end

#adultObject

Set this attribute to TRUE if you’re submitting items that are considered “adult”. These will not be shown on Pinterest.



160
161
162
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 160

def adult
  @adult
end

#age_groupObject

The age group to apply a demographic range to the product. Must be one of the following values (upper or lowercased): ‘newborn’, ‘infant’, ‘toddler’, ‘kids’, or ‘adult’.



163
164
165
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 163

def age_group
  @age_group
end

The deep link to the product on the Android app.



166
167
168
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 166

def android_deep_link
  @android_deep_link
end

#availabilityObject

The availability of the product. Must be one of the following values (upper or lowercased): ‘in stock’, ‘out of stock’, ‘preorder’.



169
170
171
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 169

def availability
  @availability
end

#average_review_ratingObject

Average reviews for the item. Can be a number from 1-5.



172
173
174
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 172

def average_review_rating
  @average_review_rating
end

#brandObject

The brand of the product.



175
176
177
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 175

def brand
  @brand
end

#checkout_enabledObject

This attribute is not supported anymore.



178
179
180
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 178

def checkout_enabled
  @checkout_enabled
end

#colorObject

The primary color of the product.



181
182
183
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 181

def color
  @color
end

#conditionObject

The condition of the product. Must be one of the following values (upper or lowercased): ‘new’, ‘used’, or ‘refurbished’.



184
185
186
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 184

def condition
  @condition
end

#custom_label_0Object

<p><= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs</p> <p>Custom grouping of products.</p>



187
188
189
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 187

def custom_label_0
  @custom_label_0
end

#custom_label_1Object

<p><= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs</p> <p>Custom grouping of products.</p>



190
191
192
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 190

def custom_label_1
  @custom_label_1
end

#custom_label_2Object

<p><= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs</p> <p>Custom grouping of products.</p>



193
194
195
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 193

def custom_label_2
  @custom_label_2
end

#custom_label_3Object

<p><= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs</p> <p>Custom grouping of products.</p>



196
197
198
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 196

def custom_label_3
  @custom_label_3
end

#custom_label_4Object

<p><= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs</p> <p>Custom grouping of products.</p>



199
200
201
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 199

def custom_label_4
  @custom_label_4
end

#custom_number_0Object

an attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.



202
203
204
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 202

def custom_number_0
  @custom_number_0
end

#custom_number_1Object

an attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.



205
206
207
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 205

def custom_number_1
  @custom_number_1
end

#custom_number_2Object

an attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.



208
209
210
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 208

def custom_number_2
  @custom_number_2
end

#custom_number_3Object

an attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.



211
212
213
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 211

def custom_number_3
  @custom_number_3
end

#custom_number_4Object

an attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.



214
215
216
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 214

def custom_number_4
  @custom_number_4
end

#descriptionObject

<p><= 10000 characters</p> <p>The description of the product.</p>



217
218
219
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 217

def description
  @description
end

#free_shipping_labelObject

The item is free to ship.



220
221
222
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 220

def free_shipping_label
  @free_shipping_label
end

#free_shipping_limitObject

The minimum order purchase necessary for the customer to get free shipping. Only relevant if free shipping is offered.



223
224
225
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 223

def free_shipping_limit
  @free_shipping_limit
end

#genderObject

The gender associated with the product. Must be one of the following values (upper or lowercased): ‘male’, ‘female’, or ‘unisex’.



226
227
228
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 226

def gender
  @gender
end

#google_product_categoryObject

The categorization of the product based on the standardized Google Product Taxonomy. This is a set taxonomy. Both the text values and numeric codes are accepted.



229
230
231
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 229

def google_product_category
  @google_product_category
end

#gtinObject

Returns the value of attribute gtin.



231
232
233
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 231

def gtin
  @gtin
end

#idObject

<p><= 127 characters</p> <p>The user-created unique ID that represents the product. Only Unicode characters are accepted.</p>



234
235
236
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 234

def id
  @id
end

#installment_priceObject

Installment price of the product. This data will only be shown to pinners in the enabled countries. Expected format: <payment_count>:<payment_amount> <currency>



237
238
239
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 237

def installment_price
  @installment_price
end

The deep link to the product on the iOS app.



240
241
242
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 240

def ios_deep_link
  @ios_deep_link
end

#item_group_idObject

<p><= 127 characters</p> <p>The parent ID of the product.</p>



243
244
245
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 243

def item_group_id
  @item_group_id
end

#last_updated_timeObject

The millisecond timestamp when the item was lastly modified by the merchant.



246
247
248
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 246

def last_updated_time
  @last_updated_time
end

<p><= 511 characters</p> <p>The landing page for the product.</p>



249
250
251
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 249

def link
  @link
end

#materialObject

The material used to make the product.



252
253
254
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 252

def material
  @material
end

#min_ad_priceObject

The minimum advertised price of the product. It supports the following formats, "19.99 USD", "19.99USD" and "19.99". If the currency is not included, we default to US dollars.



255
256
257
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 255

def min_ad_price
  @min_ad_price
end

The mobile-optimized version of your landing page. Must begin with http:// or https://.



258
259
260
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 258

def mobile_link
  @mobile_link
end

#mpnObject

Manufacturer Part Number are alpha-numeric codes created by the manufacturer of a product to uniquely identify it among all products from the same manufacturer.



261
262
263
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 261

def mpn
  @mpn
end

#number_of_ratingsObject

The number of ratings for the item.



264
265
266
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 264

def number_of_ratings
  @number_of_ratings
end

#number_of_reviewsObject

The number of reviews available for the item.



267
268
269
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 267

def number_of_reviews
  @number_of_reviews
end

#patternObject

The description of the pattern used for the product.



270
271
272
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 270

def pattern
  @pattern
end

#priceObject

The price of the product. It supports the following formats, "24.99 USD", "24.99USD" and "24.99". If the currency is not included, we default to US dollars.



273
274
275
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 273

def price
  @price
end

#product_typeObject

<p><= 1000 characters</p> <p>The categorization of your product based on your custom product taxonomy. Subcategories must be sent separated by “ > “. The > must be wrapped by spaces. We do not recognize any other delimiters such as comma or pipe.</p>



276
277
278
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 276

def product_type
  @product_type
end

#promotion_idObject

A unique identifier referencing the promotion associated with this catalog item.



279
280
281
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 279

def promotion_id
  @promotion_id
end

#sale_priceObject

The discounted price of the product. The sale_price must be lower than the price. It supports the following formats, "14.99 USD", "14.99USD" and "14.99". If the currency is not included, we default to US dollars.



282
283
284
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 282

def sale_price
  @sale_price
end

#sale_price_effective_dateObject

Sale price effective date. Expected format: <start_date>/<end_date> (ISO 8601 format)



285
286
287
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 285

def sale_price_effective_date
  @sale_price_effective_date
end

#shippingObject

Shipping consists of one group of up to four elements, country, region, service (all optional) and price (required). All colons, even for blank values, are required.



288
289
290
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 288

def shipping
  @shipping
end

#shipping_heightObject

The height of the package needed to ship the product. Ensure there is a space between the numeric string and the metric.



291
292
293
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 291

def shipping_height
  @shipping_height
end

#shipping_weightObject

The weight of the product. Ensure there is a space between the numeric string and the metric.



294
295
296
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 294

def shipping_weight
  @shipping_weight
end

#shipping_widthObject

The width of the package needed to ship the product. Ensure there is a space between the numeric string and the metric.



297
298
299
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 297

def shipping_width
  @shipping_width
end

#sizeObject

The size of the product.



300
301
302
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 300

def size
  @size
end

#size_systemObject

Indicates the country’s sizing system in which you are submitting your product. Must be one of the following values (upper or lowercased): ‘US’, ‘UK’, ‘EU’, ‘DE’, ‘FR’, ‘JP’, ‘CN’, ‘IT’, ‘BR’, ‘MEX’, or ‘AU’.



303
304
305
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 303

def size_system
  @size_system
end

#size_typeObject

Additional description for the size. Must be one of the following values (upper or lowercased): ‘regular’, ‘petite’, ‘plus’, ‘big_and_tall’, or ‘maternity’.



306
307
308
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 306

def size_type
  @size_type
end

#taxObject

Tax consists of one group of up to four elements, country, region, rate (all required) and tax_ship (optional). All colons, even for blank values, are required.



309
310
311
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 309

def tax
  @tax
end

#titleObject

<p><= 500 characters</p> <p>The name of the product.</p>



312
313
314
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 312

def title
  @title
end

#unit_pricing_base_measureObject

Unit pricing base measure of the product. This data will only be shown to pinners in the enabled countries. Expected format: <base_measure> <unit_type>



315
316
317
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 315

def unit_pricing_base_measure
  @unit_pricing_base_measure
end

#unit_pricing_measureObject

Unit pricing total measure of the product. This data will only be shown to pinners in the enabled countries. Expected format: <total_units> <unit_type>



318
319
320
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 318

def unit_pricing_measure
  @unit_pricing_measure
end

#variant_namesObject

Options for this variant. People will see these options next to your Pin and can select the one they want. List them in the order you want them displayed.



321
322
323
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 321

def variant_names
  @variant_names
end

#variant_valuesObject

Option values for this variant. People will see these options next to your Pin and can select the one they want. List them in the order you want them displayed. The order of the variant values must be consistent with the order of the variant names.



324
325
326
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 324

def variant_values
  @variant_values
end

Class Method Details

.acceptable_attribute_mapObject

Returns attribute mapping this model knows about



436
437
438
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 436

def self.acceptable_attribute_map
  attribute_map
end

.acceptable_attributesObject

Returns all the JSON keys this model knows about



441
442
443
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 441

def self.acceptable_attributes
  acceptable_attribute_map.values
end

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 327

def self.attribute_map
  {
    :'ad_image_0_link' => :'ad_image_0_link',
    :'ad_image_0_tag' => :'ad_image_0_tag',
    :'ad_image_10_link' => :'ad_image_10_link',
    :'ad_image_10_tag' => :'ad_image_10_tag',
    :'ad_image_11_link' => :'ad_image_11_link',
    :'ad_image_11_tag' => :'ad_image_11_tag',
    :'ad_image_12_link' => :'ad_image_12_link',
    :'ad_image_12_tag' => :'ad_image_12_tag',
    :'ad_image_13_link' => :'ad_image_13_link',
    :'ad_image_13_tag' => :'ad_image_13_tag',
    :'ad_image_14_link' => :'ad_image_14_link',
    :'ad_image_14_tag' => :'ad_image_14_tag',
    :'ad_image_15_link' => :'ad_image_15_link',
    :'ad_image_15_tag' => :'ad_image_15_tag',
    :'ad_image_16_link' => :'ad_image_16_link',
    :'ad_image_16_tag' => :'ad_image_16_tag',
    :'ad_image_17_link' => :'ad_image_17_link',
    :'ad_image_17_tag' => :'ad_image_17_tag',
    :'ad_image_18_link' => :'ad_image_18_link',
    :'ad_image_18_tag' => :'ad_image_18_tag',
    :'ad_image_19_link' => :'ad_image_19_link',
    :'ad_image_19_tag' => :'ad_image_19_tag',
    :'ad_image_1_link' => :'ad_image_1_link',
    :'ad_image_1_tag' => :'ad_image_1_tag',
    :'ad_image_2_link' => :'ad_image_2_link',
    :'ad_image_2_tag' => :'ad_image_2_tag',
    :'ad_image_3_link' => :'ad_image_3_link',
    :'ad_image_3_tag' => :'ad_image_3_tag',
    :'ad_image_4_link' => :'ad_image_4_link',
    :'ad_image_4_tag' => :'ad_image_4_tag',
    :'ad_image_5_link' => :'ad_image_5_link',
    :'ad_image_5_tag' => :'ad_image_5_tag',
    :'ad_image_6_link' => :'ad_image_6_link',
    :'ad_image_6_tag' => :'ad_image_6_tag',
    :'ad_image_7_link' => :'ad_image_7_link',
    :'ad_image_7_tag' => :'ad_image_7_tag',
    :'ad_image_8_link' => :'ad_image_8_link',
    :'ad_image_8_tag' => :'ad_image_8_tag',
    :'ad_image_9_link' => :'ad_image_9_link',
    :'ad_image_9_tag' => :'ad_image_9_tag',
    :'ad_link' => :'ad_link',
    :'ad_video_0_link' => :'ad_video_0_link',
    :'ad_video_0_tag' => :'ad_video_0_tag',
    :'ad_video_1_link' => :'ad_video_1_link',
    :'ad_video_1_tag' => :'ad_video_1_tag',
    :'ad_video_2_link' => :'ad_video_2_link',
    :'ad_video_2_tag' => :'ad_video_2_tag',
    :'adult' => :'adult',
    :'age_group' => :'age_group',
    :'android_deep_link' => :'android_deep_link',
    :'availability' => :'availability',
    :'average_review_rating' => :'average_review_rating',
    :'brand' => :'brand',
    :'checkout_enabled' => :'checkout_enabled',
    :'color' => :'color',
    :'condition' => :'condition',
    :'custom_label_0' => :'custom_label_0',
    :'custom_label_1' => :'custom_label_1',
    :'custom_label_2' => :'custom_label_2',
    :'custom_label_3' => :'custom_label_3',
    :'custom_label_4' => :'custom_label_4',
    :'custom_number_0' => :'custom_number_0',
    :'custom_number_1' => :'custom_number_1',
    :'custom_number_2' => :'custom_number_2',
    :'custom_number_3' => :'custom_number_3',
    :'custom_number_4' => :'custom_number_4',
    :'description' => :'description',
    :'free_shipping_label' => :'free_shipping_label',
    :'free_shipping_limit' => :'free_shipping_limit',
    :'gender' => :'gender',
    :'google_product_category' => :'google_product_category',
    :'gtin' => :'gtin',
    :'id' => :'id',
    :'installment_price' => :'installment_price',
    :'ios_deep_link' => :'ios_deep_link',
    :'item_group_id' => :'item_group_id',
    :'last_updated_time' => :'last_updated_time',
    :'link' => :'link',
    :'material' => :'material',
    :'min_ad_price' => :'min_ad_price',
    :'mobile_link' => :'mobile_link',
    :'mpn' => :'mpn',
    :'number_of_ratings' => :'number_of_ratings',
    :'number_of_reviews' => :'number_of_reviews',
    :'pattern' => :'pattern',
    :'price' => :'price',
    :'product_type' => :'product_type',
    :'promotion_id' => :'promotion_id',
    :'sale_price' => :'sale_price',
    :'sale_price_effective_date' => :'sale_price_effective_date',
    :'shipping' => :'shipping',
    :'shipping_height' => :'shipping_height',
    :'shipping_weight' => :'shipping_weight',
    :'shipping_width' => :'shipping_width',
    :'size' => :'size',
    :'size_system' => :'size_system',
    :'size_type' => :'size_type',
    :'tax' => :'tax',
    :'title' => :'title',
    :'unit_pricing_base_measure' => :'unit_pricing_base_measure',
    :'unit_pricing_measure' => :'unit_pricing_measure',
    :'variant_names' => :'variant_names',
    :'variant_values' => :'variant_values'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 1303

def self.build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  attributes = attributes.transform_keys(&:to_sym)
  transformed_hash = {}
  openapi_types.each_pair do |key, type|
    if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = nil
    elsif type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[attribute_map[key]].is_a?(Array)
        transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
      end
    elsif !attributes[attribute_map[key]].nil?
      transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
    end
  end
  new(transformed_hash)
end

.openapi_nullableObject

List of attributes with nullable: true



555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 555

def self.openapi_nullable
  Set.new([
    :'ad_image_0_link',
    :'ad_image_0_tag',
    :'ad_image_10_link',
    :'ad_image_10_tag',
    :'ad_image_11_link',
    :'ad_image_11_tag',
    :'ad_image_12_link',
    :'ad_image_12_tag',
    :'ad_image_13_link',
    :'ad_image_13_tag',
    :'ad_image_14_link',
    :'ad_image_14_tag',
    :'ad_image_15_link',
    :'ad_image_15_tag',
    :'ad_image_16_link',
    :'ad_image_16_tag',
    :'ad_image_17_link',
    :'ad_image_17_tag',
    :'ad_image_18_link',
    :'ad_image_18_tag',
    :'ad_image_19_link',
    :'ad_image_19_tag',
    :'ad_image_1_link',
    :'ad_image_1_tag',
    :'ad_image_2_link',
    :'ad_image_2_tag',
    :'ad_image_3_link',
    :'ad_image_3_tag',
    :'ad_image_4_link',
    :'ad_image_4_tag',
    :'ad_image_5_link',
    :'ad_image_5_tag',
    :'ad_image_6_link',
    :'ad_image_6_tag',
    :'ad_image_7_link',
    :'ad_image_7_tag',
    :'ad_image_8_link',
    :'ad_image_8_tag',
    :'ad_image_9_link',
    :'ad_image_9_tag',
    :'ad_link',
    :'ad_video_0_link',
    :'ad_video_0_tag',
    :'ad_video_1_link',
    :'ad_video_1_tag',
    :'ad_video_2_link',
    :'ad_video_2_tag',
    :'adult',
    :'age_group',
    :'average_review_rating',
    :'brand',
    :'checkout_enabled',
    :'color',
    :'condition',
    :'custom_label_0',
    :'custom_label_1',
    :'custom_label_2',
    :'custom_label_3',
    :'custom_label_4',
    :'custom_number_0',
    :'custom_number_1',
    :'custom_number_2',
    :'custom_number_3',
    :'custom_number_4',
    :'free_shipping_label',
    :'free_shipping_limit',
    :'gender',
    :'google_product_category',
    :'gtin',
    :'installment_price',
    :'item_group_id',
    :'last_updated_time',
    :'material',
    :'min_ad_price',
    :'mobile_link',
    :'mpn',
    :'number_of_ratings',
    :'number_of_reviews',
    :'pattern',
    :'product_type',
    :'promotion_id',
    :'sale_price',
    :'sale_price_effective_date',
    :'shipping',
    :'shipping_height',
    :'shipping_weight',
    :'shipping_width',
    :'size',
    :'size_system',
    :'size_type',
    :'tax',
    :'unit_pricing_base_measure',
    :'unit_pricing_measure',
    :'variant_names',
    :'variant_values'
  ])
end

.openapi_typesObject

Attribute type mapping.



446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 446

def self.openapi_types
  {
    :'ad_image_0_link' => :'String',
    :'ad_image_0_tag' => :'String',
    :'ad_image_10_link' => :'String',
    :'ad_image_10_tag' => :'String',
    :'ad_image_11_link' => :'String',
    :'ad_image_11_tag' => :'String',
    :'ad_image_12_link' => :'String',
    :'ad_image_12_tag' => :'String',
    :'ad_image_13_link' => :'String',
    :'ad_image_13_tag' => :'String',
    :'ad_image_14_link' => :'String',
    :'ad_image_14_tag' => :'String',
    :'ad_image_15_link' => :'String',
    :'ad_image_15_tag' => :'String',
    :'ad_image_16_link' => :'String',
    :'ad_image_16_tag' => :'String',
    :'ad_image_17_link' => :'String',
    :'ad_image_17_tag' => :'String',
    :'ad_image_18_link' => :'String',
    :'ad_image_18_tag' => :'String',
    :'ad_image_19_link' => :'String',
    :'ad_image_19_tag' => :'String',
    :'ad_image_1_link' => :'String',
    :'ad_image_1_tag' => :'String',
    :'ad_image_2_link' => :'String',
    :'ad_image_2_tag' => :'String',
    :'ad_image_3_link' => :'String',
    :'ad_image_3_tag' => :'String',
    :'ad_image_4_link' => :'String',
    :'ad_image_4_tag' => :'String',
    :'ad_image_5_link' => :'String',
    :'ad_image_5_tag' => :'String',
    :'ad_image_6_link' => :'String',
    :'ad_image_6_tag' => :'String',
    :'ad_image_7_link' => :'String',
    :'ad_image_7_tag' => :'String',
    :'ad_image_8_link' => :'String',
    :'ad_image_8_tag' => :'String',
    :'ad_image_9_link' => :'String',
    :'ad_image_9_tag' => :'String',
    :'ad_link' => :'String',
    :'ad_video_0_link' => :'String',
    :'ad_video_0_tag' => :'String',
    :'ad_video_1_link' => :'String',
    :'ad_video_1_tag' => :'String',
    :'ad_video_2_link' => :'String',
    :'ad_video_2_tag' => :'String',
    :'adult' => :'Boolean',
    :'age_group' => :'String',
    :'android_deep_link' => :'String',
    :'availability' => :'String',
    :'average_review_rating' => :'Float',
    :'brand' => :'String',
    :'checkout_enabled' => :'Boolean',
    :'color' => :'String',
    :'condition' => :'String',
    :'custom_label_0' => :'String',
    :'custom_label_1' => :'String',
    :'custom_label_2' => :'String',
    :'custom_label_3' => :'String',
    :'custom_label_4' => :'String',
    :'custom_number_0' => :'Integer',
    :'custom_number_1' => :'Integer',
    :'custom_number_2' => :'Integer',
    :'custom_number_3' => :'Integer',
    :'custom_number_4' => :'Integer',
    :'description' => :'String',
    :'free_shipping_label' => :'Boolean',
    :'free_shipping_limit' => :'String',
    :'gender' => :'String',
    :'google_product_category' => :'String',
    :'gtin' => :'UpdatableItemAttributesGtin',
    :'id' => :'String',
    :'installment_price' => :'String',
    :'ios_deep_link' => :'String',
    :'item_group_id' => :'String',
    :'last_updated_time' => :'Integer',
    :'link' => :'String',
    :'material' => :'String',
    :'min_ad_price' => :'String',
    :'mobile_link' => :'String',
    :'mpn' => :'String',
    :'number_of_ratings' => :'Integer',
    :'number_of_reviews' => :'Integer',
    :'pattern' => :'String',
    :'price' => :'String',
    :'product_type' => :'String',
    :'promotion_id' => :'String',
    :'sale_price' => :'String',
    :'sale_price_effective_date' => :'String',
    :'shipping' => :'String',
    :'shipping_height' => :'String',
    :'shipping_weight' => :'String',
    :'shipping_width' => :'String',
    :'size' => :'String',
    :'size_system' => :'String',
    :'size_type' => :'String',
    :'tax' => :'String',
    :'title' => :'String',
    :'unit_pricing_base_measure' => :'String',
    :'unit_pricing_measure' => :'String',
    :'variant_names' => :'Array<String>',
    :'variant_values' => :'Array<String>'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
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
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 1180

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      ad_image_0_link == o.ad_image_0_link &&
      ad_image_0_tag == o.ad_image_0_tag &&
      ad_image_10_link == o.ad_image_10_link &&
      ad_image_10_tag == o.ad_image_10_tag &&
      ad_image_11_link == o.ad_image_11_link &&
      ad_image_11_tag == o.ad_image_11_tag &&
      ad_image_12_link == o.ad_image_12_link &&
      ad_image_12_tag == o.ad_image_12_tag &&
      ad_image_13_link == o.ad_image_13_link &&
      ad_image_13_tag == o.ad_image_13_tag &&
      ad_image_14_link == o.ad_image_14_link &&
      ad_image_14_tag == o.ad_image_14_tag &&
      ad_image_15_link == o.ad_image_15_link &&
      ad_image_15_tag == o.ad_image_15_tag &&
      ad_image_16_link == o.ad_image_16_link &&
      ad_image_16_tag == o.ad_image_16_tag &&
      ad_image_17_link == o.ad_image_17_link &&
      ad_image_17_tag == o.ad_image_17_tag &&
      ad_image_18_link == o.ad_image_18_link &&
      ad_image_18_tag == o.ad_image_18_tag &&
      ad_image_19_link == o.ad_image_19_link &&
      ad_image_19_tag == o.ad_image_19_tag &&
      ad_image_1_link == o.ad_image_1_link &&
      ad_image_1_tag == o.ad_image_1_tag &&
      ad_image_2_link == o.ad_image_2_link &&
      ad_image_2_tag == o.ad_image_2_tag &&
      ad_image_3_link == o.ad_image_3_link &&
      ad_image_3_tag == o.ad_image_3_tag &&
      ad_image_4_link == o.ad_image_4_link &&
      ad_image_4_tag == o.ad_image_4_tag &&
      ad_image_5_link == o.ad_image_5_link &&
      ad_image_5_tag == o.ad_image_5_tag &&
      ad_image_6_link == o.ad_image_6_link &&
      ad_image_6_tag == o.ad_image_6_tag &&
      ad_image_7_link == o.ad_image_7_link &&
      ad_image_7_tag == o.ad_image_7_tag &&
      ad_image_8_link == o.ad_image_8_link &&
      ad_image_8_tag == o.ad_image_8_tag &&
      ad_image_9_link == o.ad_image_9_link &&
      ad_image_9_tag == o.ad_image_9_tag &&
      ad_link == o.ad_link &&
      ad_video_0_link == o.ad_video_0_link &&
      ad_video_0_tag == o.ad_video_0_tag &&
      ad_video_1_link == o.ad_video_1_link &&
      ad_video_1_tag == o.ad_video_1_tag &&
      ad_video_2_link == o.ad_video_2_link &&
      ad_video_2_tag == o.ad_video_2_tag &&
      adult == o.adult &&
      age_group == o.age_group &&
      android_deep_link == o.android_deep_link &&
      availability == o.availability &&
      average_review_rating == o.average_review_rating &&
      brand == o.brand &&
      checkout_enabled == o.checkout_enabled &&
      color == o.color &&
      condition == o.condition &&
      custom_label_0 == o.custom_label_0 &&
      custom_label_1 == o.custom_label_1 &&
      custom_label_2 == o.custom_label_2 &&
      custom_label_3 == o.custom_label_3 &&
      custom_label_4 == o.custom_label_4 &&
      custom_number_0 == o.custom_number_0 &&
      custom_number_1 == o.custom_number_1 &&
      custom_number_2 == o.custom_number_2 &&
      custom_number_3 == o.custom_number_3 &&
      custom_number_4 == o.custom_number_4 &&
      description == o.description &&
      free_shipping_label == o.free_shipping_label &&
      free_shipping_limit == o.free_shipping_limit &&
      gender == o.gender &&
      google_product_category == o.google_product_category &&
      gtin == o.gtin &&
      id == o.id &&
      installment_price == o.installment_price &&
      ios_deep_link == o.ios_deep_link &&
      item_group_id == o.item_group_id &&
      last_updated_time == o.last_updated_time &&
      link == o.link &&
      material == o.material &&
      min_ad_price == o.min_ad_price &&
      mobile_link == o.mobile_link &&
      mpn == o.mpn &&
      number_of_ratings == o.number_of_ratings &&
      number_of_reviews == o.number_of_reviews &&
      pattern == o.pattern &&
      price == o.price &&
      product_type == o.product_type &&
      promotion_id == o.promotion_id &&
      sale_price == o.sale_price &&
      sale_price_effective_date == o.sale_price_effective_date &&
      shipping == o.shipping &&
      shipping_height == o.shipping_height &&
      shipping_weight == o.shipping_weight &&
      shipping_width == o.shipping_width &&
      size == o.size &&
      size_system == o.size_system &&
      size_type == o.size_type &&
      tax == o.tax &&
      title == o.title &&
      unit_pricing_base_measure == o.unit_pricing_base_measure &&
      unit_pricing_measure == o.unit_pricing_measure &&
      variant_names == o.variant_names &&
      variant_values == o.variant_values
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


1290
1291
1292
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 1290

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



1296
1297
1298
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 1296

def hash
  [ad_image_0_link, ad_image_0_tag, ad_image_10_link, ad_image_10_tag, ad_image_11_link, ad_image_11_tag, ad_image_12_link, ad_image_12_tag, ad_image_13_link, ad_image_13_tag, ad_image_14_link, ad_image_14_tag, ad_image_15_link, ad_image_15_tag, ad_image_16_link, ad_image_16_tag, ad_image_17_link, ad_image_17_tag, ad_image_18_link, ad_image_18_tag, ad_image_19_link, ad_image_19_tag, ad_image_1_link, ad_image_1_tag, ad_image_2_link, ad_image_2_tag, ad_image_3_link, ad_image_3_tag, ad_image_4_link, ad_image_4_tag, ad_image_5_link, ad_image_5_tag, ad_image_6_link, ad_image_6_tag, ad_image_7_link, ad_image_7_tag, ad_image_8_link, ad_image_8_tag, ad_image_9_link, ad_image_9_tag, ad_link, ad_video_0_link, ad_video_0_tag, ad_video_1_link, ad_video_1_tag, ad_video_2_link, ad_video_2_tag, adult, age_group, android_deep_link, availability, average_review_rating, brand, checkout_enabled, color, condition, custom_label_0, custom_label_1, custom_label_2, custom_label_3, custom_label_4, custom_number_0, custom_number_1, custom_number_2, custom_number_3, custom_number_4, description, free_shipping_label, free_shipping_limit, gender, google_product_category, gtin, id, installment_price, ios_deep_link, item_group_id, last_updated_time, link, material, min_ad_price, mobile_link, mpn, number_of_ratings, number_of_reviews, pattern, price, product_type, promotion_id, sale_price, sale_price_effective_date, shipping, shipping_height, shipping_weight, shipping_width, size, size_system, size_type, tax, title, unit_pricing_base_measure, unit_pricing_measure, variant_names, variant_values].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 1090

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if !@custom_label_0.nil? && @custom_label_0.to_s.length > 511
    invalid_properties.push('invalid value for "custom_label_0", the character length must be smaller than or equal to 511.')
  end

  if !@custom_label_1.nil? && @custom_label_1.to_s.length > 511
    invalid_properties.push('invalid value for "custom_label_1", the character length must be smaller than or equal to 511.')
  end

  if !@custom_label_2.nil? && @custom_label_2.to_s.length > 511
    invalid_properties.push('invalid value for "custom_label_2", the character length must be smaller than or equal to 511.')
  end

  if !@custom_label_3.nil? && @custom_label_3.to_s.length > 511
    invalid_properties.push('invalid value for "custom_label_3", the character length must be smaller than or equal to 511.')
  end

  if !@custom_label_4.nil? && @custom_label_4.to_s.length > 511
    invalid_properties.push('invalid value for "custom_label_4", the character length must be smaller than or equal to 511.')
  end

  invalid_properties
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 1325

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



1118
1119
1120
1121
1122
1123
1124
1125
1126
# File 'lib/pinterest_sdk/models/updatable_item_attributes.rb', line 1118

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if !@custom_label_0.nil? && @custom_label_0.to_s.length > 511
  return false if !@custom_label_1.nil? && @custom_label_1.to_s.length > 511
  return false if !@custom_label_2.nil? && @custom_label_2.to_s.length > 511
  return false if !@custom_label_3.nil? && @custom_label_3.to_s.length > 511
  return false if !@custom_label_4.nil? && @custom_label_4.to_s.length > 511
  true
end