Class: PinterestSdkClient::ItemAttributesRequest
- Inherits:
-
ApiModelBase
- Object
- ApiModelBase
- PinterestSdkClient::ItemAttributesRequest
- Defined in:
- lib/pinterest_sdk/models/item_attributes_request.rb
Instance Attribute Summary collapse
-
#ad_image_0_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_0_tag ⇒ Object
Ad image tag.
-
#ad_image_10_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_10_tag ⇒ Object
Ad image tag.
-
#ad_image_11_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_11_tag ⇒ Object
Ad image tag.
-
#ad_image_12_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_12_tag ⇒ Object
Ad image tag.
-
#ad_image_13_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_13_tag ⇒ Object
Ad image tag.
-
#ad_image_14_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_14_tag ⇒ Object
Ad image tag.
-
#ad_image_15_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_15_tag ⇒ Object
Ad image tag.
-
#ad_image_16_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_16_tag ⇒ Object
Ad image tag.
-
#ad_image_17_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_17_tag ⇒ Object
Ad image tag.
-
#ad_image_18_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_18_tag ⇒ Object
Ad image tag.
-
#ad_image_19_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_19_tag ⇒ Object
Ad image tag.
-
#ad_image_1_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_1_tag ⇒ Object
Ad image tag.
-
#ad_image_2_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_2_tag ⇒ Object
Ad image tag.
-
#ad_image_3_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_3_tag ⇒ Object
Ad image tag.
-
#ad_image_4_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_4_tag ⇒ Object
Ad image tag.
-
#ad_image_5_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_5_tag ⇒ Object
Ad image tag.
-
#ad_image_6_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_6_tag ⇒ Object
Ad image tag.
-
#ad_image_7_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_7_tag ⇒ Object
Ad image tag.
-
#ad_image_8_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_8_tag ⇒ Object
Ad image tag.
-
#ad_image_9_link ⇒ Object
Ad image link that supplements main image for shopping campaigns.
-
#ad_image_9_tag ⇒ Object
Ad image tag.
-
#ad_link ⇒ Object
Allows advertisers to specify a separate URL that can be used to track traffic coming from Pinterest shopping ads.
-
#ad_video_0_link ⇒ Object
Restricted.
-
#ad_video_0_tag ⇒ Object
Restricted.
-
#ad_video_1_link ⇒ Object
Restricted.
-
#ad_video_1_tag ⇒ Object
Restricted.
-
#ad_video_2_link ⇒ Object
Restricted.
-
#ad_video_2_tag ⇒ Object
Restricted.
-
#additional_image_link ⇒ Object
<= 2000 characters The links to additional images for your product.
-
#adult ⇒ Object
Set this attribute to TRUE if you're submitting items that are considered "adult".
-
#age_group ⇒ Object
The age group to apply a demographic range to the product.
-
#ai_disclosures ⇒ Object
AI content disclosures for individual assets (image_link, additional_image_link, or video_link) on this item.
-
#android_deep_link ⇒ Object
The deep link to the product on the Android app.
-
#availability ⇒ Object
The availability of the product.
-
#average_review_rating ⇒ Object
Average reviews for the item.
-
#brand ⇒ Object
The brand of the product.
-
#checkout_enabled ⇒ Object
This attribute is not supported anymore.
-
#color ⇒ Object
The primary color of the product.
-
#condition ⇒ Object
The condition of the product.
-
#custom_label_0 ⇒ Object
<= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs.
-
#custom_label_1 ⇒ Object
<= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs.
-
#custom_label_2 ⇒ Object
<= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs.
-
#custom_label_3 ⇒ Object
<= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs.
-
#custom_label_4 ⇒ Object
<= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs.
-
#custom_number_0 ⇒ Object
An attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.
-
#custom_number_1 ⇒ Object
An attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.
-
#custom_number_2 ⇒ Object
An attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.
-
#custom_number_3 ⇒ Object
An attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.
-
#custom_number_4 ⇒ Object
An attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.
-
#description ⇒ Object
<= 10000 characters.
-
#free_shipping_label ⇒ Object
The item is free to ship.
-
#free_shipping_limit ⇒ Object
The minimum order purchase necessary for the customer to get free shipping.
-
#gender ⇒ Object
The gender associated with the product.
-
#google_product_category ⇒ Object
The categorization of the product based on the standardized Google Product Taxonomy.
-
#gtin ⇒ Object
Returns the value of attribute gtin.
-
#id ⇒ Object
<= 127 characters.
-
#image_link ⇒ Object
Returns the value of attribute image_link.
-
#installment_price ⇒ Object
Installment price of the product.
-
#ios_deep_link ⇒ Object
The deep link to the product on the iOS app.
-
#item_group_id ⇒ Object
<= 127 characters.
-
#last_updated_time ⇒ Object
The millisecond timestamp when the item was lastly modified by the merchant.
-
#link ⇒ Object
<= 511 characters.
-
#material ⇒ Object
The material used to make the product.
-
#min_ad_price ⇒ Object
The minimum advertised price of the product.
-
#mobile_link ⇒ Object
The mobile-optimized version of your landing page.
-
#mpn ⇒ Object
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.
-
#number_of_ratings ⇒ Object
The number of ratings for the item.
-
#number_of_reviews ⇒ Object
The number of reviews available for the item.
-
#pattern ⇒ Object
The description of the pattern used for the product.
-
#price ⇒ Object
The price of the product.
-
#product_type ⇒ Object
<= 1000 characters.
-
#promotion_id ⇒ Object
A unique identifier referencing the promotion associated with this catalog item.
-
#sale_price ⇒ Object
The discounted price of the product.
-
#sale_price_effective_date ⇒ Object
Sale price effective date.
-
#save_pin_disabled ⇒ Object
By default, product pins created from a catalog are able to be saved by Pinners.
-
#shipping ⇒ Object
Shipping consists of one group of up to four elements, country, region, service (all optional) and price (required).
-
#shipping_height ⇒ Object
The height of the package needed to ship the product.
-
#shipping_weight ⇒ Object
The weight of the product.
-
#shipping_width ⇒ Object
The width of the package needed to ship the product.
-
#size ⇒ Object
The size of the product.
-
#size_system ⇒ Object
Indicates the country's sizing system in which you are submitting your product.
-
#size_type ⇒ Object
Additional description for the size.
-
#tax ⇒ Object
Tax consists of one group of up to four elements, country, region, rate (all required) and tax_ship (optional).
-
#title ⇒ Object
<= 500 characters.
-
#unit_pricing_base_measure ⇒ Object
Unit pricing base measure of the product.
-
#unit_pricing_measure ⇒ Object
Unit pricing total measure of the product.
-
#variant_names ⇒ Object
Options for this variant.
-
#variant_values ⇒ Object
Option values for this variant.
-
#video_link ⇒ Object
<= 2,000 characters Hosted link to the product video.
Class Method Summary collapse
-
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about.
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ItemAttributesRequest
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Methods inherited from ApiModelBase
_deserialize, #_to_hash, #to_body, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ ItemAttributesRequest
Initializes the object
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 1087 1088 1089 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 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 683 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `PinterestSdkClient::ItemAttributesRequest` 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::ItemAttributesRequest`. 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?(:'additional_image_link') if (value = attributes[:'additional_image_link']).is_a?(Array) self.additional_image_link = value end 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?(:'ai_disclosures') if (value = attributes[:'ai_disclosures']).is_a?(Array) self.ai_disclosures = value end 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. = 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?(:'image_link') self.image_link = attributes[:'image_link'] 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. = 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?(:'save_pin_disabled') self.save_pin_disabled = attributes[:'save_pin_disabled'] else self.save_pin_disabled = false 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 if attributes.key?(:'video_link') self.video_link = attributes[:'video_link'] end end |
Instance Attribute Details
#ad_image_0_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
19 20 21 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 19 def ad_image_0_link @ad_image_0_link end |
#ad_image_0_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
22 23 24 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 22 def ad_image_0_tag @ad_image_0_tag end |
#ad_image_10_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
25 26 27 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 25 def ad_image_10_link @ad_image_10_link end |
#ad_image_10_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
28 29 30 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 28 def ad_image_10_tag @ad_image_10_tag end |
#ad_image_11_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
31 32 33 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 31 def ad_image_11_link @ad_image_11_link end |
#ad_image_11_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
34 35 36 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 34 def ad_image_11_tag @ad_image_11_tag end |
#ad_image_12_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
37 38 39 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 37 def ad_image_12_link @ad_image_12_link end |
#ad_image_12_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
40 41 42 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 40 def ad_image_12_tag @ad_image_12_tag end |
#ad_image_13_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
43 44 45 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 43 def ad_image_13_link @ad_image_13_link end |
#ad_image_13_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
46 47 48 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 46 def ad_image_13_tag @ad_image_13_tag end |
#ad_image_14_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
49 50 51 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 49 def ad_image_14_link @ad_image_14_link end |
#ad_image_14_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
52 53 54 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 52 def ad_image_14_tag @ad_image_14_tag end |
#ad_image_15_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
55 56 57 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 55 def ad_image_15_link @ad_image_15_link end |
#ad_image_15_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
58 59 60 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 58 def ad_image_15_tag @ad_image_15_tag end |
#ad_image_16_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
61 62 63 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 61 def ad_image_16_link @ad_image_16_link end |
#ad_image_16_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
64 65 66 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 64 def ad_image_16_tag @ad_image_16_tag end |
#ad_image_17_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
67 68 69 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 67 def ad_image_17_link @ad_image_17_link end |
#ad_image_17_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
70 71 72 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 70 def ad_image_17_tag @ad_image_17_tag end |
#ad_image_18_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
73 74 75 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 73 def ad_image_18_link @ad_image_18_link end |
#ad_image_18_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
76 77 78 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 76 def ad_image_18_tag @ad_image_18_tag end |
#ad_image_19_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
79 80 81 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 79 def ad_image_19_link @ad_image_19_link end |
#ad_image_19_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
82 83 84 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 82 def ad_image_19_tag @ad_image_19_tag end |
#ad_image_1_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
85 86 87 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 85 def ad_image_1_link @ad_image_1_link end |
#ad_image_1_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
88 89 90 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 88 def ad_image_1_tag @ad_image_1_tag end |
#ad_image_2_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
91 92 93 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 91 def ad_image_2_link @ad_image_2_link end |
#ad_image_2_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
94 95 96 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 94 def ad_image_2_tag @ad_image_2_tag end |
#ad_image_3_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
97 98 99 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 97 def ad_image_3_link @ad_image_3_link end |
#ad_image_3_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
100 101 102 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 100 def ad_image_3_tag @ad_image_3_tag end |
#ad_image_4_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
103 104 105 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 103 def ad_image_4_link @ad_image_4_link end |
#ad_image_4_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
106 107 108 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 106 def ad_image_4_tag @ad_image_4_tag end |
#ad_image_5_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
109 110 111 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 109 def ad_image_5_link @ad_image_5_link end |
#ad_image_5_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
112 113 114 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 112 def ad_image_5_tag @ad_image_5_tag end |
#ad_image_6_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
115 116 117 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 115 def ad_image_6_link @ad_image_6_link end |
#ad_image_6_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
118 119 120 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 118 def ad_image_6_tag @ad_image_6_tag end |
#ad_image_7_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
121 122 123 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 121 def ad_image_7_link @ad_image_7_link end |
#ad_image_7_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
124 125 126 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 124 def ad_image_7_tag @ad_image_7_tag end |
#ad_image_8_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
127 128 129 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 127 def ad_image_8_link @ad_image_8_link end |
#ad_image_8_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
130 131 132 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 130 def ad_image_8_tag @ad_image_8_tag end |
#ad_image_9_link ⇒ Object
Ad image link that supplements main image for shopping campaigns. Image format:- Pixel size at least 75 x 75 Link guidelines:- Include extension in file name - Do not include template or placeholder images in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
133 134 135 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 133 def ad_image_9_link @ad_image_9_link end |
#ad_image_9_tag ⇒ Object
Ad image tag. If you provide an ad_image_x_link, include the image tag with the corresponding ad_image_x_tag attribute.
136 137 138 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 136 def ad_image_9_tag @ad_image_9_tag end |
#ad_link ⇒ Object
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. Must begin with http:// or https://.
139 140 141 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 139 def ad_link @ad_link end |
#ad_video_0_link ⇒ Object
Restricted. Ad video link that supplements main video for shopping campaigns. Video format:- Pixel size between 75 x 75 and 9450 x 9450 - File size smaller than 2 GB - Time span between 4 seconds and 15 minutes - Accepted formats: .MP4, .MOV, .M4V Link guidelines:- Include extension in file name - Do not include template or placeholder videos in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
142 143 144 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 142 def ad_video_0_link @ad_video_0_link end |
#ad_video_0_tag ⇒ Object
Restricted. Ad video tag. If you provide an ad_video_x_link, include the video tag with the corresponding ad_video_x_tag attribute.
145 146 147 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 145 def ad_video_0_tag @ad_video_0_tag end |
#ad_video_1_link ⇒ Object
Restricted. Ad video link that supplements main video for shopping campaigns. Video format:- Pixel size between 75 x 75 and 9450 x 9450 - File size smaller than 2 GB - Time span between 4 seconds and 15 minutes - Accepted formats: .MP4, .MOV, .M4V Link guidelines:- Include extension in file name - Do not include template or placeholder videos in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
148 149 150 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 148 def ad_video_1_link @ad_video_1_link end |
#ad_video_1_tag ⇒ Object
Restricted. Ad video tag. If you provide an ad_video_x_link, include the video tag with the corresponding ad_video_x_tag attribute.
151 152 153 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 151 def ad_video_1_tag @ad_video_1_tag end |
#ad_video_2_link ⇒ Object
Restricted. Ad video link that supplements main video for shopping campaigns. Video format:- Pixel size between 75 x 75 and 9450 x 9450 - File size smaller than 2 GB - Time span between 4 seconds and 15 minutes - Accepted formats: .MP4, .MOV, .M4V Link guidelines:- Include extension in file name - Do not include template or placeholder videos in link - Make URL accessible to Pinterest user-agent - Must start with http:// or https://
154 155 156 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 154 def ad_video_2_link @ad_video_2_link end |
#ad_video_2_tag ⇒ Object
Restricted. Ad video tag. If you provide an ad_video_x_link, include the video tag with the corresponding ad_video_x_tag attribute.
157 158 159 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 157 def ad_video_2_tag @ad_video_2_tag end |
#additional_image_link ⇒ Object
<= 2000 characters The links to additional images for your product. Up to ten additional images can be used to show a product from different angles or to show different stages. Must begin with http:// or https://.
160 161 162 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 160 def additional_image_link @additional_image_link end |
#adult ⇒ Object
Set this attribute to TRUE if you're submitting items that are considered "adult". These will not be shown on Pinterest.
163 164 165 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 163 def adult @adult end |
#age_group ⇒ Object
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'.
166 167 168 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 166 def age_group @age_group end |
#ai_disclosures ⇒ Object
AI content disclosures for individual assets (image_link, additional_image_link, or video_link) on this item. Each entry declares which disclosure types apply to a single asset URL.
169 170 171 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 169 def ai_disclosures @ai_disclosures end |
#android_deep_link ⇒ Object
The deep link to the product on the Android app.
172 173 174 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 172 def android_deep_link @android_deep_link end |
#availability ⇒ Object
The availability of the product. Must be one of the following values (upper or lowercased): 'in stock', 'out of stock', 'preorder'.
175 176 177 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 175 def availability @availability end |
#average_review_rating ⇒ Object
Average reviews for the item. Can be a number from 1-5.
178 179 180 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 178 def @average_review_rating end |
#brand ⇒ Object
The brand of the product.
181 182 183 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 181 def brand @brand end |
#checkout_enabled ⇒ Object
This attribute is not supported anymore.
184 185 186 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 184 def checkout_enabled @checkout_enabled end |
#color ⇒ Object
The primary color of the product.
187 188 189 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 187 def color @color end |
#condition ⇒ Object
The condition of the product. Must be one of the following values (upper or lowercased): 'new', 'used', or 'refurbished'.
190 191 192 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 190 def condition @condition end |
#custom_label_0 ⇒ Object
<= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs. Custom grouping of products.
193 194 195 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 193 def custom_label_0 @custom_label_0 end |
#custom_label_1 ⇒ Object
<= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs. Custom grouping of products.
196 197 198 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 196 def custom_label_1 @custom_label_1 end |
#custom_label_2 ⇒ Object
<= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs. Custom grouping of products.
199 200 201 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 199 def custom_label_2 @custom_label_2 end |
#custom_label_3 ⇒ Object
<= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs. Custom grouping of products.
202 203 204 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 202 def custom_label_3 @custom_label_3 end |
#custom_label_4 ⇒ Object
<= 511 characters for retail and creative asset catalogs, <= 127 characters for hotel catalogs. Custom grouping of products.
205 206 207 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 205 def custom_label_4 @custom_label_4 end |
#custom_number_0 ⇒ Object
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/item_attributes_request.rb', line 208 def custom_number_0 @custom_number_0 end |
#custom_number_1 ⇒ Object
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/item_attributes_request.rb', line 211 def custom_number_1 @custom_number_1 end |
#custom_number_2 ⇒ Object
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/item_attributes_request.rb', line 214 def custom_number_2 @custom_number_2 end |
#custom_number_3 ⇒ Object
An attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.
217 218 219 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 217 def custom_number_3 @custom_number_3 end |
#custom_number_4 ⇒ Object
An attribute for any integer information ranging from 0 to 4,294,967,295, which can be used to group items.
220 221 222 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 220 def custom_number_4 @custom_number_4 end |
#description ⇒ Object
<= 10000 characters. The description of the product.
223 224 225 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 223 def description @description end |
#free_shipping_label ⇒ Object
The item is free to ship.
226 227 228 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 226 def free_shipping_label @free_shipping_label end |
#free_shipping_limit ⇒ Object
The minimum order purchase necessary for the customer to get free shipping. Only relevant if free shipping is offered.
229 230 231 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 229 def free_shipping_limit @free_shipping_limit end |
#gender ⇒ Object
The gender associated with the product. Must be one of the following values (upper or lowercased): 'male', 'female', or 'unisex'.
232 233 234 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 232 def gender @gender end |
#google_product_category ⇒ Object
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.
235 236 237 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 235 def google_product_category @google_product_category end |
#gtin ⇒ Object
Returns the value of attribute gtin.
237 238 239 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 237 def gtin @gtin end |
#id ⇒ Object
<= 127 characters. The user-created unique ID that represents the product. Only Unicode characters are accepted.
240 241 242 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 240 def id @id end |
#image_link ⇒ Object
Returns the value of attribute image_link.
242 243 244 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 242 def image_link @image_link end |
#installment_price ⇒ Object
Installment price of the product. Expected format: <payment_count>:<payment_amount>
245 246 247 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 245 def installment_price @installment_price end |
#ios_deep_link ⇒ Object
The deep link to the product on the iOS app.
248 249 250 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 248 def ios_deep_link @ios_deep_link end |
#item_group_id ⇒ Object
<= 127 characters. The parent ID of the product.
251 252 253 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 251 def item_group_id @item_group_id end |
#last_updated_time ⇒ Object
The millisecond timestamp when the item was lastly modified by the merchant.
254 255 256 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 254 def last_updated_time @last_updated_time end |
#link ⇒ Object
<= 511 characters. The landing page for the product.
257 258 259 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 257 def link @link end |
#material ⇒ Object
The material used to make the product.
260 261 262 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 260 def material @material end |
#min_ad_price ⇒ Object
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.
263 264 265 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 263 def min_ad_price @min_ad_price end |
#mobile_link ⇒ Object
The mobile-optimized version of your landing page. Must begin with http:// or https://.
266 267 268 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 266 def mobile_link @mobile_link end |
#mpn ⇒ Object
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.
269 270 271 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 269 def mpn @mpn end |
#number_of_ratings ⇒ Object
The number of ratings for the item.
272 273 274 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 272 def @number_of_ratings end |
#number_of_reviews ⇒ Object
The number of reviews available for the item.
275 276 277 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 275 def number_of_reviews @number_of_reviews end |
#pattern ⇒ Object
The description of the pattern used for the product.
278 279 280 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 278 def pattern @pattern end |
#price ⇒ Object
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.
281 282 283 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 281 def price @price end |
#product_type ⇒ Object
<= 1000 characters. The categorization of your product based on your custom product taxonomy. Subcategories must be sent separated by " > ".
284 285 286 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 284 def product_type @product_type end |
#promotion_id ⇒ Object
A unique identifier referencing the promotion associated with this catalog item.
287 288 289 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 287 def promotion_id @promotion_id end |
#sale_price ⇒ Object
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".
290 291 292 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 290 def sale_price @sale_price end |
#sale_price_effective_date ⇒ Object
Sale price effective date. Expected format: <start_date>/<end_date> (ISO 8601 format)
293 294 295 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 293 def sale_price_effective_date @sale_price_effective_date end |
#save_pin_disabled ⇒ Object
By default, product pins created from a catalog are able to be saved by Pinners. If you want to disable the save pin feature, set this attribute to true. This feature is only available for allowlisted merchants. Please contact your account manager to enable this feature.
296 297 298 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 296 def save_pin_disabled @save_pin_disabled end |
#shipping ⇒ Object
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.
299 300 301 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 299 def shipping @shipping end |
#shipping_height ⇒ Object
The height of the package needed to ship the product. Ensure there is a space between the numeric string and the metric.
302 303 304 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 302 def shipping_height @shipping_height end |
#shipping_weight ⇒ Object
The weight of the product. Ensure there is a space between the numeric string and the metric.
305 306 307 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 305 def shipping_weight @shipping_weight end |
#shipping_width ⇒ Object
The width of the package needed to ship the product. Ensure there is a space between the numeric string and the metric.
308 309 310 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 308 def shipping_width @shipping_width end |
#size ⇒ Object
The size of the product.
311 312 313 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 311 def size @size end |
#size_system ⇒ Object
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'.
314 315 316 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 314 def size_system @size_system end |
#size_type ⇒ Object
Additional description for the size. Must be one of the following values (upper or lowercased): 'regular', 'petite', 'plus', 'big_and_tall', or 'maternity'.
317 318 319 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 317 def size_type @size_type end |
#tax ⇒ Object
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.
320 321 322 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 320 def tax @tax end |
#title ⇒ Object
<= 500 characters. The name of the product.
323 324 325 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 323 def title @title end |
#unit_pricing_base_measure ⇒ Object
Unit pricing base measure of the product. Expected format: <base_measure> <unit_type>
326 327 328 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 326 def unit_pricing_base_measure @unit_pricing_base_measure end |
#unit_pricing_measure ⇒ Object
Unit pricing total measure of the product. Expected format: <total_units> <unit_type>
329 330 331 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 329 def unit_pricing_measure @unit_pricing_measure end |
#variant_names ⇒ Object
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.
332 333 334 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 332 def variant_names @variant_names end |
#variant_values ⇒ Object
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.
335 336 337 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 335 def variant_values @variant_values end |
#video_link ⇒ Object
<= 2,000 characters Hosted link to the product video. File types for linked videos must be .mp4, .mov or .m4v. File size cannot exceed 2GB.
338 339 340 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 338 def video_link @video_link end |
Class Method Details
.acceptable_attribute_map ⇒ Object
Returns attribute mapping this model knows about
455 456 457 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 455 def self.acceptable_attribute_map attribute_map end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
460 461 462 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 460 def self.acceptable_attributes acceptable_attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 341 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', :'additional_image_link' => :'additional_image_link', :'adult' => :'adult', :'age_group' => :'age_group', :'ai_disclosures' => :'ai_disclosures', :'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', :'image_link' => :'image_link', :'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', :'save_pin_disabled' => :'save_pin_disabled', :'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', :'video_link' => :'video_link' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 2050 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_nullable ⇒ Object
List of attributes with nullable: true
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 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 579 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', :'additional_image_link', :'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', :'video_link' ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
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 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 465 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', :'additional_image_link' => :'Array<String>', :'adult' => :'Boolean', :'age_group' => :'String', :'ai_disclosures' => :'Array<CatalogsAiContentDisclosure>', :'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', :'image_link' => :'ItemAttributesRequestImageLink', :'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', :'save_pin_disabled' => :'Boolean', :'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>', :'video_link' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 1922 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 && additional_image_link == o.additional_image_link && adult == o.adult && age_group == o.age_group && ai_disclosures == o.ai_disclosures && android_deep_link == o.android_deep_link && availability == o.availability && == o. && 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 && image_link == o.image_link && 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 && == o. && 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 && save_pin_disabled == o.save_pin_disabled && 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 && video_link == o.video_link end |
#eql?(o) ⇒ Boolean
2037 2038 2039 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 2037 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
2043 2044 2045 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 2043 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, additional_image_link, adult, age_group, ai_disclosures, android_deep_link, availability, , 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, image_link, installment_price, ios_deep_link, item_group_id, last_updated_time, link, material, min_ad_price, mobile_link, mpn, , number_of_reviews, pattern, price, product_type, promotion_id, sale_price, sale_price_effective_date, save_pin_disabled, 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, video_link].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 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 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 1142 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if !@ad_image_0_link.nil? && @ad_image_0_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_0_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_0_tag.nil? && @ad_image_0_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_0_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_10_link.nil? && @ad_image_10_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_10_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_10_tag.nil? && @ad_image_10_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_10_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_11_link.nil? && @ad_image_11_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_11_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_11_tag.nil? && @ad_image_11_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_11_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_12_link.nil? && @ad_image_12_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_12_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_12_tag.nil? && @ad_image_12_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_12_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_13_link.nil? && @ad_image_13_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_13_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_13_tag.nil? && @ad_image_13_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_13_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_14_link.nil? && @ad_image_14_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_14_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_14_tag.nil? && @ad_image_14_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_14_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_15_link.nil? && @ad_image_15_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_15_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_15_tag.nil? && @ad_image_15_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_15_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_16_link.nil? && @ad_image_16_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_16_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_16_tag.nil? && @ad_image_16_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_16_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_17_link.nil? && @ad_image_17_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_17_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_17_tag.nil? && @ad_image_17_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_17_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_18_link.nil? && @ad_image_18_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_18_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_18_tag.nil? && @ad_image_18_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_18_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_19_link.nil? && @ad_image_19_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_19_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_19_tag.nil? && @ad_image_19_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_19_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_1_link.nil? && @ad_image_1_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_1_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_1_tag.nil? && @ad_image_1_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_1_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_2_link.nil? && @ad_image_2_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_2_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_2_tag.nil? && @ad_image_2_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_2_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_3_link.nil? && @ad_image_3_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_3_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_3_tag.nil? && @ad_image_3_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_3_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_4_link.nil? && @ad_image_4_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_4_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_4_tag.nil? && @ad_image_4_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_4_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_5_link.nil? && @ad_image_5_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_5_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_5_tag.nil? && @ad_image_5_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_5_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_6_link.nil? && @ad_image_6_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_6_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_6_tag.nil? && @ad_image_6_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_6_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_7_link.nil? && @ad_image_7_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_7_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_7_tag.nil? && @ad_image_7_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_7_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_8_link.nil? && @ad_image_8_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_8_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_8_tag.nil? && @ad_image_8_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_8_tag", the character length must be smaller than or equal to 511.') end if !@ad_image_9_link.nil? && @ad_image_9_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_image_9_link", the character length must be smaller than or equal to 2000.') end if !@ad_image_9_tag.nil? && @ad_image_9_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_image_9_tag", the character length must be smaller than or equal to 511.') end if !@ad_video_0_link.nil? && @ad_video_0_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_video_0_link", the character length must be smaller than or equal to 2000.') end if !@ad_video_0_tag.nil? && @ad_video_0_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_video_0_tag", the character length must be smaller than or equal to 511.') end if !@ad_video_1_link.nil? && @ad_video_1_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_video_1_link", the character length must be smaller than or equal to 2000.') end if !@ad_video_1_tag.nil? && @ad_video_1_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_video_1_tag", the character length must be smaller than or equal to 511.') end if !@ad_video_2_link.nil? && @ad_video_2_link.to_s.length > 2000 invalid_properties.push('invalid value for "ad_video_2_link", the character length must be smaller than or equal to 2000.') end if !@ad_video_2_tag.nil? && @ad_video_2_tag.to_s.length > 511 invalid_properties.push('invalid value for "ad_video_2_tag", the character length must be smaller than or equal to 511.') end 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_hash ⇒ Hash
Returns the object in the form of hash
2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 2072 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
1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 |
# File 'lib/pinterest_sdk/models/item_attributes_request.rb', line 1354 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@ad_image_0_link.nil? && @ad_image_0_link.to_s.length > 2000 return false if !@ad_image_0_tag.nil? && @ad_image_0_tag.to_s.length > 511 return false if !@ad_image_10_link.nil? && @ad_image_10_link.to_s.length > 2000 return false if !@ad_image_10_tag.nil? && @ad_image_10_tag.to_s.length > 511 return false if !@ad_image_11_link.nil? && @ad_image_11_link.to_s.length > 2000 return false if !@ad_image_11_tag.nil? && @ad_image_11_tag.to_s.length > 511 return false if !@ad_image_12_link.nil? && @ad_image_12_link.to_s.length > 2000 return false if !@ad_image_12_tag.nil? && @ad_image_12_tag.to_s.length > 511 return false if !@ad_image_13_link.nil? && @ad_image_13_link.to_s.length > 2000 return false if !@ad_image_13_tag.nil? && @ad_image_13_tag.to_s.length > 511 return false if !@ad_image_14_link.nil? && @ad_image_14_link.to_s.length > 2000 return false if !@ad_image_14_tag.nil? && @ad_image_14_tag.to_s.length > 511 return false if !@ad_image_15_link.nil? && @ad_image_15_link.to_s.length > 2000 return false if !@ad_image_15_tag.nil? && @ad_image_15_tag.to_s.length > 511 return false if !@ad_image_16_link.nil? && @ad_image_16_link.to_s.length > 2000 return false if !@ad_image_16_tag.nil? && @ad_image_16_tag.to_s.length > 511 return false if !@ad_image_17_link.nil? && @ad_image_17_link.to_s.length > 2000 return false if !@ad_image_17_tag.nil? && @ad_image_17_tag.to_s.length > 511 return false if !@ad_image_18_link.nil? && @ad_image_18_link.to_s.length > 2000 return false if !@ad_image_18_tag.nil? && @ad_image_18_tag.to_s.length > 511 return false if !@ad_image_19_link.nil? && @ad_image_19_link.to_s.length > 2000 return false if !@ad_image_19_tag.nil? && @ad_image_19_tag.to_s.length > 511 return false if !@ad_image_1_link.nil? && @ad_image_1_link.to_s.length > 2000 return false if !@ad_image_1_tag.nil? && @ad_image_1_tag.to_s.length > 511 return false if !@ad_image_2_link.nil? && @ad_image_2_link.to_s.length > 2000 return false if !@ad_image_2_tag.nil? && @ad_image_2_tag.to_s.length > 511 return false if !@ad_image_3_link.nil? && @ad_image_3_link.to_s.length > 2000 return false if !@ad_image_3_tag.nil? && @ad_image_3_tag.to_s.length > 511 return false if !@ad_image_4_link.nil? && @ad_image_4_link.to_s.length > 2000 return false if !@ad_image_4_tag.nil? && @ad_image_4_tag.to_s.length > 511 return false if !@ad_image_5_link.nil? && @ad_image_5_link.to_s.length > 2000 return false if !@ad_image_5_tag.nil? && @ad_image_5_tag.to_s.length > 511 return false if !@ad_image_6_link.nil? && @ad_image_6_link.to_s.length > 2000 return false if !@ad_image_6_tag.nil? && @ad_image_6_tag.to_s.length > 511 return false if !@ad_image_7_link.nil? && @ad_image_7_link.to_s.length > 2000 return false if !@ad_image_7_tag.nil? && @ad_image_7_tag.to_s.length > 511 return false if !@ad_image_8_link.nil? && @ad_image_8_link.to_s.length > 2000 return false if !@ad_image_8_tag.nil? && @ad_image_8_tag.to_s.length > 511 return false if !@ad_image_9_link.nil? && @ad_image_9_link.to_s.length > 2000 return false if !@ad_image_9_tag.nil? && @ad_image_9_tag.to_s.length > 511 return false if !@ad_video_0_link.nil? && @ad_video_0_link.to_s.length > 2000 return false if !@ad_video_0_tag.nil? && @ad_video_0_tag.to_s.length > 511 return false if !@ad_video_1_link.nil? && @ad_video_1_link.to_s.length > 2000 return false if !@ad_video_1_tag.nil? && @ad_video_1_tag.to_s.length > 511 return false if !@ad_video_2_link.nil? && @ad_video_2_link.to_s.length > 2000 return false if !@ad_video_2_tag.nil? && @ad_video_2_tag.to_s.length > 511 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 |