« blib/lib/WWW/Shopify/Model/APIPermission.pm
↑ Summary
blib/lib/WWW/Shopify/Model/EmailTemplate.pm »
| 1 | #!/usr/bin/perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | package WWW::Shopify::Tooltips; | ||
| 6 | use WWW::Shopify; | ||
| 7 | |||
| 8 | use Exporter qw(import); | ||
| 9 | |||
| 10 | my $tooltips = { | ||
| 11 | 'WWW::Shopify::Model::FulfillmentService' => { | ||
| 12 | 'inventory_management' => 'States if the fulfillment service tracks product inventory and provides updates to Shopify. Valid values are "true" and "false".', | ||
| 13 | 'credential1' => 'Login information of the customer (usually in the form of an email address).', | ||
| 14 | 'name' => 'The name of the fulfillment service as seen by merchants and their customers.', | ||
| 15 | 'callback_url' => 'States the URL endpoint that Shopify needs to retrieve inventory and tracking updates. This field is necessary if either inventory_management or tracking_support is set to "true".', | ||
| 16 | 'provider_id' => 'A unique identifier for the fulfillment service provider.', | ||
| 17 | 'requires_shipping_method' => 'States if the fulfillment service requires products to be physically shipped. Valid values are "true" and "false".', | ||
| 18 | 'tracking_support' => 'States if the fulfillment service provides tracking numbers for packages. Valid values are "true" and "false".', | ||
| 19 | 'credential2_exists' => 'States whether or not there is a password for the login information of the customer. Valid values are "true" or "false".', | ||
| 20 | 'format' => 'Specifies the format of the API output. Valid values are json and xml.', | ||
| 21 | 'handle' => 'A human-friendly unique string for the fulfillment service generated from its title.' | ||
| 22 | }, | ||
| 23 | 'WWW::Shopify::Model::Shop' => { | ||
| 24 | 'source' => '', | ||
| 25 | 'google_apps_domain' => 'Feature is present when a shop has a google app domain. It will be returned as a URL. If the shop does not have this feature enabled it will default to "null."', | ||
| 26 | 'country_code' => 'The two-letter country code corresponding to the shop\'s country.', | ||
| 27 | 'taxes_included' => 'The setting for whether applicable taxes are included in product prices. Valid values are: "true" or "null."', | ||
| 28 | 'money_format' => 'A string representing the way currency is formatted when the currency isn\'t specified.', | ||
| 29 | 'tax_shipping' => 'Specifies wether or not taxes were charged for shipping. Valid values are: "true" or "false."', | ||
| 30 | 'email' => 'The contact email address for the shop.', | ||
| 31 | 'currency' => 'The three-letter code for the currency that the shop accepts.', | ||
| 32 | 'domain' => 'The shop\'s domain.', | ||
| 33 | 'city' => 'The city in which the shop is located.', | ||
| 34 | 'created_at' => 'The date and time when the shop was created. The API returns this value in ISO 8601 format.', | ||
| 35 | 'latitude' => 'Geographic coordinate specifying the north/south location of a shop.', | ||
| 36 | 'public' => '', | ||
| 37 | 'myshopify_domain' => 'The shop\'s \'myshopify.com\' domain.', | ||
| 38 | 'google_apps_login_enabled' => 'Feature is present if a shop has google apps enabled. Those shops with this feature will be able to login to the google apps login. Shops without this feature enabled will default to "null."', | ||
| 39 | 'shop_owner' => 'The username of the shop owner.', | ||
| 40 | 'province_code' => 'The two-letter code for the shop\'s province or state.', | ||
| 41 | 'province' => 'The shop\'s normalized province or state name.', | ||
| 42 | 'id' => 'A unique numeric identifier for the shop.', | ||
| 43 | 'country' => 'The shop\'s country (by default equal to the two-letter country code).', | ||
| 44 | 'country_name' => 'The shop\'s normalized country name.', | ||
| 45 | 'longitude' => 'Geographic coordinate specifying the east/west location of a shop.', | ||
| 46 | 'timezone' => 'The name of the timezone the shop is in.', | ||
| 47 | 'customer_email' => 'The customer\'s email.', | ||
| 48 | 'name' => 'The name of the shop.', | ||
| 49 | 'display_plan_name' => 'The display name of the Shopify plan the shop is on.', | ||
| 50 | 'phone' => 'The contact phone number for the shop.', | ||
| 51 | 'money_with_currency_format' => 'A string representing the way currency is formatted when the currency is specified.', | ||
| 52 | 'zip' => 'The zip or postal code of the shop\'s address.', | ||
| 53 | 'plan_name' => 'The name of the Shopify plan the shop is on.', | ||
| 54 | 'address1' => 'The shop\'s street address.' | ||
| 55 | }, | ||
| 56 | 'WWW::Shopify::Model::Event' => { | ||
| 57 | 'subject_type' => 'The type of the resource that generated the event. This will be one of the following:<ul>', | ||
| 58 | 'message' => 'Human readable text that describes the event.', | ||
| 59 | 'body' => 'A text field containing information about the event.', | ||
| 60 | 'created_at' => 'The date and time when the event was created. The API returns this value in ISO 8601 format.', | ||
| 61 | 'subject_id' => 'The id of the resource that generated the event.', | ||
| 62 | 'verb' => 'The type of event that took place. Different resources generate different types of event; see Resources and their event verbs and messages (below) for details.', | ||
| 63 | 'arguments' => 'Refers to a certain event and its resources.', | ||
| 64 | 'id' => 'The unique numeric identifier for the event.' | ||
| 65 | }, | ||
| 66 | 'WWW::Shopify::Model::ProductSearchEngine' => {}, | ||
| 67 | 'WWW::Shopify::Model::Order::LineItem' => { | ||
| 68 | 'sku' => 'A unique identifier of the item in the fulfillment.', | ||
| 69 | 'fulfillment_service' => 'Service provider who is doing the fulfillment. Valid values are either "manual" or the name of the provider. eg: "amazon", "shipwire", etc.', | ||
| 70 | 'gift_card' => 'States wether or not the line_item is a gift card. If so, the item is not taxed or considered for shipping charges.', | ||
| 71 | 'product_id' => 'The unique numeric identifier for the product in the fulfillment. Can be null if the original product associated with the order is deleted at a later date', | ||
| 72 | 'id' => 'The id of the line item.', | ||
| 73 | 'grams' => 'The weight of the item in grams.', | ||
| 74 | 'tax_lines' => 'A list of <code>tax_line</code> objects, each of which details the taxes applicable to this line_item.', | ||
| 75 | 'quantity' => 'The number of products that were purchased.', | ||
| 76 | 'name' => 'The name of the product variant.', | ||
| 77 | 'taxable' => 'States whether or not the product was taxable. Values are: true or false.', | ||
| 78 | 'variant_title' => 'The title of the product variant.', | ||
| 79 | 'fulfillment_status' => 'How far along an order is in terms line items fulfilled. Valid values are: fulfilled, null or partial.', | ||
| 80 | 'variant_id' => 'The id of the product variant.', | ||
| 81 | 'price' => 'The price of the item.', | ||
| 82 | 'title' => 'The title of the product.', | ||
| 83 | 'requires_shipping' => 'States whether or not the fulfillment requires shipping. Values are: true or false.', | ||
| 84 | 'vendor' => 'The name of the supplier of the item.' | ||
| 85 | }, | ||
| 86 | 'WWW::Shopify::Model::Refund' => { | ||
| 87 | 'created_at' => 'The date and time when the refund was created. The API returns this value in ISO 8601 format.', | ||
| 88 | 'refund_line_items' => '', | ||
| 89 | 'transactions' => 'The list of transactions involved in the refund.', | ||
| 90 | 'restock' => 'Whether or not the line items were added back to the store inventory.', | ||
| 91 | 'user_id' => 'The unique identifier of the user who performed the refund.', | ||
| 92 | 'id' => 'The unique numeric identifier for the refund. This one is used for API purposes.', | ||
| 93 | 'note' => 'The optional note attached to a refund.' | ||
| 94 | }, | ||
| 95 | 'WWW::Shopify::Model::Page' => { | ||
| 96 | 'published_at' => 'This can have two different types of values, depending on whether the page has been published (i.e., made visible to the blog\'s readers).<ul>', | ||
| 97 | 'shop_id' => 'The id of the shop to which the page belongs.', | ||
| 98 | 'metafields' => '', | ||
| 99 | 'author' => 'The name of the person who created the page.', | ||
| 100 | 'template_suffix' => 'The suffix of the liquid template being used. By default, the original template is called page.liquid, without any suffix. Any additional templates will be: page.suffix.liquid.', | ||
| 101 | 'created_at' => 'The date and time when the page was created. The API returns this value in ISO 8601 format.', | ||
| 102 | 'handle' => 'A human-friendly unique string for the page automatically generated from its title. This is used in shop themes by the Liquid templating language to refer to the page.', | ||
| 103 | 'updated_at' => 'The date and time when the page was last updated. The API returns this value in ISO 8601 format.', | ||
| 104 | 'title' => 'The title of the page.', | ||
| 105 | 'body_html' => 'Text content of the page, complete with HTML markup.', | ||
| 106 | 'id' => 'The unique numeric identifier for the page.' | ||
| 107 | }, | ||
| 108 | 'WWW::Shopify::Model::Checkout::ShippingLine' => { | ||
| 109 | 'title' => '', | ||
| 110 | 'price' => 'The price of this shipping method.' | ||
| 111 | }, | ||
| 112 | 'WWW::Shopify::Model::SmartCollection' => { | ||
| 113 | 'published_at' => 'This can have two different types of values, depending on whether the smart collection has been published (i.e., made visible to customers):<ul>', | ||
| 114 | 'sort_order' => 'The order in which products in the smart collection appear. Valid values are:<ul>', | ||
| 115 | 'rules' => '', | ||
| 116 | 'published_scope' => 'The sales channels in which the smart collection is visible.', | ||
| 117 | 'image' => 'The collection image.', | ||
| 118 | 'template_suffix' => 'The suffix of the template you are using. By default, the original template is called product.liquid, without any suffix. Any additional templates will be: product.suffix.liquid.', | ||
| 119 | 'handle' => 'A human-friendly unique string for the smart collection automatically generated from its title. This is used in shop themes by the Liquid templating language to refer to the smart collection.', | ||
| 120 | 'updated_at' => 'The date and time when the smart collection was last modified. The API returns this value in ISO 8601 format.', | ||
| 121 | 'title' => 'The name of the smart collection.', | ||
| 122 | 'body_html' => 'The best selling ipod ever', | ||
| 123 | 'id' => 'The unique numeric identifier for the smart collection.' | ||
| 124 | }, | ||
| 125 | 'WWW::Shopify::Model::CustomerGroup' => { | ||
| 126 | 'created_at' => 'The date and time when the customer group was created. The API returns this value in ISO 8601 format.', | ||
| 127 | 'updated_at' => 'The date and time when the customer group was last modified. The API returns this value in ISO 8601 format.', | ||
| 128 | 'query' => 'The set of conditions that determines which customers will go into the customer group. Queries are covered in more detail in Customer group queries.', | ||
| 129 | 'name' => 'The name given by the shop owner to the customer group.', | ||
| 130 | 'id' => 'A unique numeric identifier for the customer group.' | ||
| 131 | }, | ||
| 132 | 'WWW::Shopify::Model::Order::ShippingLine' => { | ||
| 133 | 'source' => 'The source of the shipping method.', | ||
| 134 | 'tax_lines' => 'A list of <code>tax_line</code> objects, each of which details the taxes applicable to this shipping_line.', | ||
| 135 | 'title' => 'The title of the shipping method.', | ||
| 136 | 'price' => 'The price of this shipping method.', | ||
| 137 | 'code' => 'A reference to the shipping method.' | ||
| 138 | }, | ||
| 139 | 'WWW::Shopify::Model::Item' => {}, | ||
| 140 | 'WWW::Shopify::Model::Transaction' => { | ||
| 141 | 'test' => 'The option to use the transaction for testing purposes. Valid values are "true" or "false."', | ||
| 142 | 'status' => 'The status of the transaction. Valid values are: pending, failure, success or error.', | ||
| 143 | 'gateway' => 'The name of the gateway the transaction was issued through. A list of gateways can be found on Shopify\'s Payment Gateway page.', | ||
| 144 | 'order_id' => 'A unique numeric identifier for the order.', | ||
| 145 | 'authorization' => 'The authorization code associated with the transaction.', | ||
| 146 | 'device_id' => 'The unique identifier for the device.', | ||
| 147 | 'amount' => 'The amount of money that the transaction was for.', | ||
| 148 | 'created_at' => 'The date and time when the transaction was created. The API returns this value in ISO 8601 format.', | ||
| 149 | 'kind' => 'The kind of transaction:', | ||
| 150 | 'user_id' => 'The unique identifier for the user.', | ||
| 151 | 'id' => 'A unique numeric identifier for the transaction.', | ||
| 152 | 'receipt' => '' | ||
| 153 | }, | ||
| 154 | 'WWW::Shopify::Model::Order::PaymentDetails' => { | ||
| 155 | 'credit_card_company' => 'The name of the company who issued the customer\'s credit card.', | ||
| 156 | 'credit_card_bin' => 'The issuer identification number (IIN), formerly known as bank identification number (BIN) ] of the customer\'s credit card. This is made up of the first few digits of the credit card number.', | ||
| 157 | 'cvv_result_code' => 'The Response code from the credit card company indicating whether the customer entered the card security code, a.k.a. card verification value, correctly. The code is a single letter or empty string; see this chart for the codes and their definitions.', | ||
| 158 | 'credit_card_number' => 'The customer\'s credit card number, with most of the leading digits redacted with Xs.' | ||
| 159 | }, | ||
| 160 | 'WWW::Shopify::Model::Order::ClientDetails' => { | ||
| 161 | 'browser_ip' => 'The browser IP address.', | ||
| 162 | 'session_hash' => 'A hash of the session.', | ||
| 163 | 'user_agent' => '', | ||
| 164 | 'accept_language' => '' | ||
| 165 | }, | ||
| 166 | 'WWW::Shopify::Model::Transaction::Receipt' => { | ||
| 167 | 'authorization' => '', | ||
| 168 | 'testcase' => '' | ||
| 169 | }, | ||
| 170 | 'WWW::Shopify::Model::Order::Fulfillment::LineItem' => { | ||
| 171 | 'sku' => 'A unique identifier of the item in the fulfillment.', | ||
| 172 | 'product_exists' => 'States whether or not the product exists. Valid values are "true" or "false".', | ||
| 173 | 'fulfillment_service' => 'Service provider who is doing the fulfillment. Valid values are: manual, ', | ||
| 174 | 'product_id' => 'The unique numeric identifier for the product in the fulfillment.', | ||
| 175 | 'id' => 'The id of the <code>line_item</code> within the fulfillment.', | ||
| 176 | 'grams' => 'The weight of the item in grams.', | ||
| 177 | 'quantity' => 'The number of items in the fulfillment.', | ||
| 178 | 'name' => 'The name of the product variant.', | ||
| 179 | 'properties' => 'Returns additional properties associated with the line item.', | ||
| 180 | 'variant_title' => 'The title of the product variant being fulfilled.', | ||
| 181 | 'fulfillment_status' => 'Status of an order in terms of the <code>line_items</code> being fulfilled. Valid values are: fulfilled, null or partial.', | ||
| 182 | 'variant_id' => 'The id of the product variant being fulfilled.', | ||
| 183 | 'price' => 'The price of the item.', | ||
| 184 | 'title' => 'The title of the product.', | ||
| 185 | 'variant_inventory_management' => 'Returns the name of the inventory management system.', | ||
| 186 | 'requires_shipping' => 'Specifies whether or not a customer needs to provide a shipping address when placing an order for this product variant. Valid values are: "true" or "false."', | ||
| 187 | 'vendor' => 'The name of the supplier of the item.' | ||
| 188 | }, | ||
| 189 | 'WWW::Shopify::Model::Article' => { | ||
| 190 | 'summary_html' => 'The text of the summary of the article, complete with HTML markup.', | ||
| 191 | 'published_at' => 'The date and time when the article was published. The API returns this value in ISO 8601 format.', | ||
| 192 | 'metafields' => '', | ||
| 193 | 'author' => 'The name of the author of this article', | ||
| 194 | 'tags' => 'Tags are additional short descriptors formatted as a string of comma-separated values. For example, if an article has three tags: tag1, tag2, tag3.', | ||
| 195 | 'published' => 'States whether or not the article is visible. Valid values are "true" for published or "false" for hidden.', | ||
| 196 | 'created_at' => 'The date and time when the article was created. The API returns this value in ISO 8601 format.', | ||
| 197 | 'updated_at' => 'The date and time when the article was last updated. The API returns this value in ISO 8601 format.', | ||
| 198 | 'user_id' => 'A unique numeric identifier for the author of the article.', | ||
| 199 | 'title' => 'The title of the article.', | ||
| 200 | 'blog_id' => 'A unique numeric identifier for the blog containing the article.', | ||
| 201 | 'body_html' => 'The text of the body of the article, complete with HTML markup.', | ||
| 202 | 'id' => 'A unique numeric identifier for the article.' | ||
| 203 | }, | ||
| 204 | 'WWW::Shopify::Model::Checkout' => { | ||
| 205 | 'total_price' => 'The sum of all the prices of all the items in the order, taxes and discounts included.', | ||
| 206 | 'line_items' => '', | ||
| 207 | 'billing_address' => '', | ||
| 208 | 'discount_codes' => '', | ||
| 209 | 'shipping_lines' => '', | ||
| 210 | 'taxes_included' => '', | ||
| 211 | 'buyer_accepts_marketing' => 'Indicates whether or not the person who placed the order would like to receive email updates from the shop. This is set when checking the "I want to receive occasional emails about new products, promotions and other news" checkbox during checkout. Valid values are "true" and "false."', | ||
| 212 | 'abandoned_checkout_url' => 'The full recovery URL to be sent to a customer to recover their abandoned checkout.', | ||
| 213 | 'email' => 'The customer\'s email address.', | ||
| 214 | 'created_at' => 'The date and time when the order was created. The API returns this value in ISO 8601 format.', | ||
| 215 | 'id' => 'The unique numeric identifier for the order. This one is used for API purposes. This is different from the order_number property (see below), which is also a unique numeric identifier for the order, but used by the shop owner and customer.', | ||
| 216 | 'token' => 'Unique identifier for a particular order.', | ||
| 217 | 'total_discounts' => 'The total amount of the discounts to be applied to the price of the order.', | ||
| 218 | 'landing_site' => 'The URL for the page where the buyer landed when entering the shop.', | ||
| 219 | 'total_weight' => 'The sum of all the weights of the line items in the order, in grams.', | ||
| 220 | 'tax_lines' => '', | ||
| 221 | 'cart_token' => 'Unique identifier for a particular cart that is attached to a particular order.', | ||
| 222 | 'referring_site' => 'The website that the customer clicked on to come to the shop.', | ||
| 223 | 'note' => 'The text of an optional note that a shopowner can attach to the order.', | ||
| 224 | 'source_name' => 'Where the checkout originated from. Returned value will be "web" or "pos"', | ||
| 225 | 'total_line_items_price' => 'The sum of all the prices of all the items in the order.', | ||
| 226 | 'updated_at' => 'The date and time when the order was last modified. The API returns this value in ISO 8601 format.', | ||
| 227 | 'customer' => '', | ||
| 228 | 'shipping_address' => '', | ||
| 229 | 'subtotal_price' => 'Price of the order before shipping and taxes', | ||
| 230 | 'total_tax' => 'The sum of all the taxes applied to the line items in the order.' | ||
| 231 | }, | ||
| 232 | 'WWW::Shopify::Model::Comment' => { | ||
| 233 | 'published_at' => 'The date and time when the comment was published. In the case of comments, this is the date and time when the comment was created, meaning that it has the same value as created_at. The API returns this value in ISO 8601 format.', | ||
| 234 | 'article_id' => 'A unique numeric identifier for the article to which the comment belongs.', | ||
| 235 | 'user_agent' => 'The user agent string provided by the software (usually a browser) used to create the comment.', | ||
| 236 | 'status' => 'The status of the comment. The possible values are:<ul>', | ||
| 237 | 'ip' => 'The IP address from which the comment was posted.', | ||
| 238 | 'body' => 'The basic textile markup of a comment.', | ||
| 239 | 'email' => 'The email address of the author of the comment.', | ||
| 240 | 'created_at' => 'The date and time when the comment was created. The API returns this value in ISO 8601 format.', | ||
| 241 | 'updated_at' => 'The date and time when the comment was last modified. When the comment is first created, this is the date and time when the comment was created, meaning that it has the same value as created_at. If the blog requires comments to be approved, this value is updated to the date and time the comment was approved upon approval. The API returns this value in ISO 8601 format.', | ||
| 242 | 'blog_id' => 'A unique numeric identifier for the blog containing the article that the comment belongs to.', | ||
| 243 | 'body_html' => 'The text of the comment, complete with HTML markup.', | ||
| 244 | 'id' => 'A unique numeric identifier for the comment.' | ||
| 245 | }, | ||
| 246 | 'WWW::Shopify::Model::Blog' => { | ||
| 247 | 'feedburner_location' => 'URL to the feedburner location for blogs that have enabled feedburner through their store admin.', | ||
| 248 | 'metafields' => '', | ||
| 249 | 'feedburner' => 'Feedburner is a web feed management provider and can be enabled to provide custom RSS feeds for Shopify bloggers. This property will default to blank or "null" unless feedburner is enabled through the shop admin.', | ||
| 250 | 'tags' => 'Tags are additional short descriptors formatted as a string of comma-separated values. For example, if an article has three tags: tag1, tag2, tag3.', | ||
| 251 | 'template_suffix' => 'States the name of the template a blog is using if it is using an alternate template. If a blog is using the default blog.liquid template, the value returned is "null".', | ||
| 252 | 'created_at' => 'The date and time when the blog was created. The API returns this value in ISO 8601 format.', | ||
| 253 | 'handle' => 'A human-friendly unique string for a blog automatically generated from its title. This handle is used by the Liquid templating language to refer to the blog.', | ||
| 254 | 'updated_at' => 'The date and time when changes were last made to the blog\'s properties. Note that this is not updated when creating, modifying or deleting articles in the blog. The API returns this value in ISO 8601 format.', | ||
| 255 | 'title' => 'The title of the blog.', | ||
| 256 | 'id' => 'A unique numeric identifier for the blog.', | ||
| 257 | 'commentable' => 'Indicates whether readers can post comments to the blog and if comments are moderated or not. Possible values are:<ul>' | ||
| 258 | }, | ||
| 259 | 'WWW::Shopify::Model::Customer' => { | ||
| 260 | 'last_order_name' => 'The name of the customer\'s last order. This is directly related to the Order\'s name field.', | ||
| 261 | 'orders_count' => 'The number of orders associated with this customer.', | ||
| 262 | 'state' => 'The state of the customer in a shop. Customers start out as "disabled." They are invited by email to setup an account with a shop. The customer can then:', | ||
| 263 | 'last_name' => 'The customer\'s last name.', | ||
| 264 | 'email' => 'The email address of the customer.', | ||
| 265 | 'created_at' => 'The date and time when the customer was created. The API returns this value in ISO 8601 format.', | ||
| 266 | 'multipass_identifier' => 'The customer\'s identifier used with Multipass login', | ||
| 267 | 'verified_email' => 'States whether or not the email address has been verified.', | ||
| 268 | 'id' => 'A unique numeric identifier for the customer.', | ||
| 269 | 'last_order_id' => 'The id of the customer\'s last order.', | ||
| 270 | 'metafields' => '', | ||
| 271 | 'accepts_marketing' => 'Indicates whether the customer has consented to be sent marketing material via email. Valid values are "true" and "false."', | ||
| 272 | 'note' => 'A note about the customer.', | ||
| 273 | 'tags' => 'Tags are additional short descriptors formatted as a string of comma-separated values. For example, if an article has three tags: tag1, tag2, tag3.', | ||
| 274 | 'addresses' => '', | ||
| 275 | 'updated_at' => 'The date and time when the customer information was updated. The API returns this value in ISO 8601 format.', | ||
| 276 | 'default_address' => '', | ||
| 277 | 'total_spent' => 'The total amount of money that the customer has spent at the shop.', | ||
| 278 | 'first_name' => 'The customer\'s first name.' | ||
| 279 | }, | ||
| 280 | 'WWW::Shopify::Model::CarrierService' => { | ||
| 281 | 'name' => 'The name of the shipping service as seen by merchants and their customers.', | ||
| 282 | 'callback_url' => 'States the URL endpoint that shopify needs to retrieve shipping rates. This must be a public URL.', | ||
| 283 | 'active' => 'States whether or not this carrier service is active. Valid values are "true" and "false".', | ||
| 284 | 'service_discovery' => 'States if merchants are able to send dummy data to your service through the Shopify admin to see shipping rate examples. Valid values are "true" and "false"', | ||
| 285 | 'carrier_service_type' => 'Distinguishes between api or legacy carrier services.' | ||
| 286 | }, | ||
| 287 | 'WWW::Shopify::Model::ApplicationCharge' => { | ||
| 288 | 'test' => 'States whether or not the application charge is a test transaction. Valid values are "true" or "null".', | ||
| 289 | 'status' => 'The status of the application charge. Valid values are:<ul>', | ||
| 290 | 'name' => 'The name of the one-time application charge.', | ||
| 291 | 'return_url' => 'The URL the customer is sent to once they accept/decline a charge.', | ||
| 292 | 'confirmation_url' => 'The URL that the customer is taken to, to accept or decline the one-time application charge.', | ||
| 293 | 'created_at' => 'The date and time when the one-time application charge was created. The API returns this value in ISO 8601 format.', | ||
| 294 | 'updated_at' => 'The date and time when the charge was last updated. The API returns this value in ISO 8601 format.', | ||
| 295 | 'id' => 'A unique numeric identifier for the one-time application charge.', | ||
| 296 | 'price' => 'The price of the the one-time application charge.' | ||
| 297 | }, | ||
| 298 | 'WWW::Shopify::Model::Order::Fulfillment' => { | ||
| 299 | 'line_items' => '', | ||
| 300 | 'status' => 'The status of the fulfillment. Valid values are:<ul>', | ||
| 301 | 'order_id' => 'The unique numeric identifier for the order.', | ||
| 302 | 'created_at' => 'The date and time when the fulfillment was created. The API returns this value in ISO 8601 format.', | ||
| 303 | 'updated_at' => 'The date and time when the fulfillment was last modified. The API returns this value in ISO 8601 format.', | ||
| 304 | 'id' => 'A unique numeric identifier for the fulfillment.', | ||
| 305 | 'tracking_company' => 'The name of the shipping company.', | ||
| 306 | 'receipt' => '' | ||
| 307 | }, | ||
| 308 | 'WWW::Shopify::Model::Order' => { | ||
| 309 | 'total_price' => 'The sum of all the prices of all the items in the order, taxes and discounts included (must be positive).', | ||
| 310 | 'line_items' => '', | ||
| 311 | 'closed_at' => 'The date and time when the order was closed. If the order was closed, the API returns this value in ISO 8601 format. If the order was not closed, this value is null.', | ||
| 312 | 'billing_address' => '', | ||
| 313 | 'taxes_included' => 'States whether or not taxes are included in the order subtotal. Valid values are "true" or "false".', | ||
| 314 | 'email' => 'The customer\'s email address. Is required when a billing address is present.', | ||
| 315 | 'id' => 'The unique numeric identifier for the order. This one is used for API purposes. This is different from the order_number property (see below), which is also a unique numeric identifier for the order, but used by the shop owner and customer.', | ||
| 316 | 'payment_details' => '', | ||
| 317 | 'total_discounts' => 'The total amount of the discounts to be applied to the price of the order.', | ||
| 318 | 'order_number' => 'A unique numeric identifier for the order. This one is used by the shop owner and customer. This is different from the id property, which is also a unique numeric identifier for the order, but used for API purposes.', | ||
| 319 | 'financial_status' => '<ul>', | ||
| 320 | 'landing_site' => 'The URL for the page where the buyer landed when entering the shop.', | ||
| 321 | 'name' => 'The customer\'s order name as represented by a number.', | ||
| 322 | 'cart_token' => 'Unique identifier for a particular cart that is attached to a particular order.', | ||
| 323 | 'total_line_items_price' => 'The sum of all the prices of all the items in the order.', | ||
| 324 | 'note_attributes' => 'Extra information that is added to the order. Each array entry must contain a hash with "name" and "value" keys as shown above.', | ||
| 325 | 'updated_at' => 'The date and time when the order was last modified. The API returns this value in ISO 8601 format.', | ||
| 326 | 'shipping_address' => '', | ||
| 327 | 'fulfillment_status' => '<ul>', | ||
| 328 | 'subtotal_price' => 'Price of the order before shipping and taxes', | ||
| 329 | 'total_tax' => 'The sum of all the taxes applied to the order (must be positive).', | ||
| 330 | 'number' => 'Numerical identifier unique to the shop. A number is sequential and starts at 1000.', | ||
| 331 | 'discount_codes' => '', | ||
| 332 | 'gateway' => '<strong>Deprecated as of July 14, 2014. This information is instead available on <a href=\'=/api/transaction#properties\'>transactions</strong>', | ||
| 333 | 'shipping_lines' => '', | ||
| 334 | 'buyer_accepts_marketing' => 'Indicates whether or not the person who placed the order would like to receive email updates from the shop. This is set when checking the "I want to receive occasional emails about new products, promotions and other news" checkbox during checkout. Valid values are "true" and "false."', | ||
| 335 | 'cancel_reason' => 'The reason why the order was cancelled. If the order was not cancelled, this value is "null." If the order was cancelled, the value will be one of the following:', | ||
| 336 | 'currency' => 'The three letter code (ISO 4217) for the currency used for the payment.', | ||
| 337 | 'created_at' => 'The date and time when the order was created. The API returns this value in ISO 8601 format.', | ||
| 338 | 'token' => 'Unique identifier for a particular order.', | ||
| 339 | 'total_weight' => 'The sum of all the weights of the line items in the order, in grams.', | ||
| 340 | 'tax_lines' => '', | ||
| 341 | 'client_details' => '', | ||
| 342 | 'cancelled_at' => 'The date and time when the order was cancelled. If the order was cancelled, the API returns this value in ISO 8601 format. If the order was not cancelled, this value is "null."', | ||
| 343 | 'processing_method' => 'States the type of payment processing method. Valid values are: checkout, direct, manual, offsite or express.', | ||
| 344 | 'referring_site' => 'The website that the customer clicked on to come to the shop.', | ||
| 345 | 'tags' => 'Tags are additional short descriptors formatted as a string of comma-separated values. For example, if an order has three tags: tag1, tag2, tag3.', | ||
| 346 | 'note' => 'The text of an optional note that a shop owner can attach to the order.', | ||
| 347 | 'browser_ip' => 'The IP address of the browser used by the customer when placing the order.', | ||
| 348 | 'source_name' => 'Where the order originated from. Returned value will be "web" or "pos"', | ||
| 349 | 'customer' => '', | ||
| 350 | 'fulfillments' => '' | ||
| 351 | }, | ||
| 352 | 'WWW::Shopify::Model::CustomCollection::Collect' => { | ||
| 353 | 'position' => 'A number specifying the order in which the product appears in the custom collection, with 1 denoting the first item in the collection. This value applies only when the custom collection\'s sort-order property is set to manual.', | ||
| 354 | 'sort_value' => 'This is the same value as <tt>position</tt> but padded with leading zeroes to make it alphanumeric-sortable.', | ||
| 355 | 'created_at' => 'The date and time when the collect was created. The API returns this value in ISO 8601 format.', | ||
| 356 | 'featured' => 'States whether or not the collect is featured. Valid values are "true" or "false".', | ||
| 357 | 'product_id' => 'The unique numeric identifier for the product in the custom collection.', | ||
| 358 | 'updated_at' => 'The date and time when the collect was last updated. The API returns this value in ISO 8601 format.', | ||
| 359 | 'collection_id' => 'The id of the custom collection containing the product.', | ||
| 360 | 'id' => 'A unique numeric identifier for the collect.' | ||
| 361 | }, | ||
| 362 | 'WWW::Shopify::Model::RecurringApplicationCharge' => { | ||
| 363 | 'trial_days' => 'Number of days that the customer is eligible for a free trial.', | ||
| 364 | 'test' => 'States whether or not the application charge is a test transaction. Valid values are "true" or "null".', | ||
| 365 | 'name' => 'The name of the recurring application charge.', | ||
| 366 | 'cancelled_on' => 'The date and time when the customer cancelled their recurring application charge. The API returns this value in ISO 8601 format.<br/>Note: If the recurring application charge is not cancelled it will default to "null".', | ||
| 367 | 'trial_ends_on' => 'The date and time when the free trial ends. The API returns this value in ISO 8601 format.', | ||
| 368 | 'return_url' => 'The URL the customer is sent to once they accept/decline a charge.', | ||
| 369 | 'confirmation_url' => 'The URL that the customer is taken to, to accept or decline the recurring application charge.', | ||
| 370 | 'created_at' => 'The date and time when the recurring application charge was created. The API returns this value in ISO 8601 format.', | ||
| 371 | 'updated_at' => 'The date and time when the recurring application charge was last updated. The API returns this value in ISO 8601 format.', | ||
| 372 | 'activated_on' => 'The date and time when the customer activated the recurring application charge. The API returns this value in ISO 8601 format.<br/>Note: The recurring application charge must be activated or the returning value will be "null".', | ||
| 373 | 'id' => 'A unique numeric identifier for the recurring application charge.', | ||
| 374 | 'price' => 'The price of the the recurring application charge.', | ||
| 375 | 'billing_on' => 'The date and time when the customer will be billed. The API returns this value in ISO 8601 format.<br/>Note: The recurring application charge must be accepted or the returning value will be "null".' | ||
| 376 | }, | ||
| 377 | 'WWW::Shopify::Model::Location' => { | ||
| 378 | 'country' => 'The country the location is in', | ||
| 379 | 'location_type' => 'The location type', | ||
| 380 | 'name' => 'The name of the location', | ||
| 381 | 'phone' => 'The phone number of the location, can contain special chars like - and +', | ||
| 382 | 'address2' => 'The second line of the address', | ||
| 383 | 'created_at' => 'The date and time when the location was created. The API returns this value in ISO 8601 format.', | ||
| 384 | 'zip' => 'The zip or postal code', | ||
| 385 | 'city' => 'The city the location is in', | ||
| 386 | 'updated_at' => 'The date and time when the location was last updated. The API returns this value in ISO 8601 format.', | ||
| 387 | 'id' => 'A unique numeric identifier for the location.', | ||
| 388 | 'address1' => 'The first line of the address', | ||
| 389 | 'province' => 'The province the location is in' | ||
| 390 | }, | ||
| 391 | 'WWW::Shopify::Model::SmartCollection::Rule' => { | ||
| 392 | 'relation' => ' The relation between the identifier for the condition and the numeric amount.', | ||
| 393 | 'column' => '', | ||
| 394 | 'condition' => ' Select products for a collection using a condition.' | ||
| 395 | }, | ||
| 396 | 'WWW::Shopify::Model::Order::Risk' => {}, | ||
| 397 | 'WWW::Shopify::Model::Checkout::LineItem' => { | ||
| 398 | 'sku' => 'A unique identifier of the item in the fulfillment.', | ||
| 399 | 'grams' => 'The weight of the item in grams.', | ||
| 400 | 'fulfillment_service' => 'Service provider who is doing the fulfillment. Valid values are: manual, ', | ||
| 401 | 'quantity' => 'The number of products that were purchased.', | ||
| 402 | 'variant_title' => 'The title of the product variant.', | ||
| 403 | 'product_id' => 'The unique numeric identifier for the product in the fulfillment.', | ||
| 404 | 'variant_id' => 'The id of the product variant.', | ||
| 405 | 'price' => 'The price of the item.', | ||
| 406 | 'title' => 'The title of the product.', | ||
| 407 | 'vendor' => 'The name of the supplier of the item.', | ||
| 408 | 'requires_shipping' => 'States whether or not the fulfillment requires shipping. Values are: true or false.' | ||
| 409 | }, | ||
| 410 | 'WWW::Shopify::Model::Country::Province' => { | ||
| 411 | 'tax_percentage' => 'The tax value in percent format.', | ||
| 412 | 'tax_type' => 'A tax_type is applied for a compounded sales tax. For example, the Canadian HST is a compounded sales tax of both PST and GST.', | ||
| 413 | 'name' => 'The name of the province or state.', | ||
| 414 | 'tax_name' => 'The name of the tax as it is referred to in the applicable province/state. For example, in Ontario, Canada the tax is referred to as HST.', | ||
| 415 | 'tax' => 'The tax value in decimal format.', | ||
| 416 | 'id' => 'The unique numeric identifier for the particular province or state.', | ||
| 417 | 'code' => 'The two letter province or state code.' | ||
| 418 | }, | ||
| 419 | 'WWW::Shopify::Model::Checkout::TaxLine' => { | ||
| 420 | 'rate' => 'The rate of tax to be applied.', | ||
| 421 | 'title' => 'The name of the tax.', | ||
| 422 | 'price' => 'The amount of tax to be charged.' | ||
| 423 | }, | ||
| 424 | 'WWW::Shopify::Model::Address' => { | ||
| 425 | 'country_code' => 'The two-letter country code corresponding to the customer\'s country.', | ||
| 426 | 'last_name' => 'The customer\'s last name.', | ||
| 427 | 'city' => 'The customer\'s city.', | ||
| 428 | 'latitude' => 'The latitude of the billing address.', | ||
| 429 | 'id' => 'A unique numeric identifier for the address.', | ||
| 430 | 'province_code' => 'The two-letter pcode for the customer\'s province or state.', | ||
| 431 | 'province' => 'The customer\'s province or state name.', | ||
| 432 | 'company' => 'The customer\'s company.', | ||
| 433 | 'country' => 'The customer\'s country.', | ||
| 434 | 'longitude' => 'The longitude of the billing address.', | ||
| 435 | 'name' => 'The customer\'s name.', | ||
| 436 | 'phone' => 'The customer\'s phone number.', | ||
| 437 | 'address2' => 'An additional field for the customer\'s mailing address.', | ||
| 438 | 'zip' => 'The customer\'s zip or postal code.', | ||
| 439 | 'address1' => 'The customer\'s mailing address.', | ||
| 440 | 'first_name' => 'The customer\'s first name.' | ||
| 441 | }, | ||
| 442 | 'WWW::Shopify::Model::Asset' => { | ||
| 443 | 'attachment' => 'An asset attached to a store\'s theme.', | ||
| 444 | 'value' => 'The asset that you are adding.', | ||
| 445 | 'src' => 'Specifies the location of an asset.', | ||
| 446 | 'source_key' => 'The source key copies an asset.', | ||
| 447 | 'public_url' => 'The public facing URL of the asset.', | ||
| 448 | 'size' => 'The asset size in bytes.', | ||
| 449 | 'key' => 'The path to the asset within a shop. For example, the asset bg-body-green.gif is located in the assets folder.', | ||
| 450 | 'content_type' => 'MIME representation of the content, consisting of the type and subtype of the asset.', | ||
| 451 | 'created_at' => 'The date and time when the asset was created. The API returns this value in ISO 8601 format.', | ||
| 452 | 'updated_at' => 'The date and time when an asset was last updated. The API returns this value in ISO 8601 format.' | ||
| 453 | }, | ||
| 454 | 'WWW::Shopify::Model::Order::TaxLine' => { | ||
| 455 | 'rate' => 'The rate of tax to be applied.', | ||
| 456 | 'title' => 'The name of the tax.', | ||
| 457 | 'price' => 'The amount of tax to be charged.' | ||
| 458 | }, | ||
| 459 | 'WWW::Shopify::Model::CustomCollection' => { | ||
| 460 | 'published_at' => 'This can have two different types of values, depending on whether the custom collection has been published (i.e., made visible to customers):<ul>', | ||
| 461 | 'sort_order' => 'The order in which products in the custom collection appear. Valid values are:<ul>', | ||
| 462 | 'metafields' => '', | ||
| 463 | 'published_scope' => 'The sales channels in which the custom collection is visible.', | ||
| 464 | 'image' => '', | ||
| 465 | 'template_suffix' => 'The suffix of the liquid template being used. By default, the original template is called product.liquid, without any suffix. Any additional templates will be: product.suffix.liquid.', | ||
| 466 | 'published' => 'States whether the custom collection is visible. Valid values are "true" for visible and "false" for hidden.', | ||
| 467 | 'handle' => 'A human-friendly unique string for the custom collection automatically generated from its title. This is used in shop themes by the Liquid templating language to refer to the custom collection.', | ||
| 468 | 'updated_at' => 'The date and time when the custom collection was last modified. The API returns this value in ISO 8601 format.', | ||
| 469 | 'title' => 'The name of the custom collection.', | ||
| 470 | 'body_html' => 'The description of the custom collection, complete with HTML markup. Many templates display this on their custom collection pages.', | ||
| 471 | 'id' => 'The unique numeric identifier for the custom collection.' | ||
| 472 | }, | ||
| 473 | 'WWW::Shopify::Model::Cart' => {}, | ||
| 474 | 'WWW::Shopify::Model::Metafield' => { | ||
| 475 | 'namespace' => 'Container for a set of metadata. Namespaces help distinguish between metadata you created against metadata created by another individual with a similar namespace (maximum of 20 characters).', | ||
| 476 | 'value' => 'Information to be stored as metadata.', | ||
| 477 | 'description' => 'Additional information about the metafield. This property is optional.', | ||
| 478 | 'key' => 'Identifier for the metafield (maximum of 30 characters).', | ||
| 479 | 'value_type' => 'States whether the information in the value is stored as a \'string\' or \'integer.\'', | ||
| 480 | 'created_at' => 'The date and time when the metafield was created. The API returns this value in ISO 8601 format.', | ||
| 481 | 'updated_at' => 'The date and time when the metafield was published. The API returns this value in ISO 8601 format.', | ||
| 482 | 'id' => 'Unique numeric identifier for the metafield.', | ||
| 483 | 'owner_id' => 'A unique numeric identifier for the metafield\'s owner.', | ||
| 484 | 'owner_resource' => 'Unique id for that particular resource.' | ||
| 485 | }, | ||
| 486 | 'WWW::Shopify::Model::Refund::LineItem' => { | ||
| 487 | 'quantity' => 'The quantity of the associated line item that was returned.', | ||
| 488 | 'line_item' => 'The single line item being returned.', | ||
| 489 | 'id' => 'The unique identifier of the refund line item.', | ||
| 490 | 'line_item_id' => 'The id of the related line item.' | ||
| 491 | }, | ||
| 492 | 'WWW::Shopify::Model::Theme' => { | ||
| 493 | 'created_at' => 'The date and time when the theme was created. The API returns this value in ISO 8601 format.', | ||
| 494 | 'updated_at' => 'The date and time when the theme was last updated. The API returns this value in ISO 8601 format.', | ||
| 495 | 'name' => 'The name of the theme.', | ||
| 496 | 'id' => 'A unique numeric identifier for the theme.', | ||
| 497 | 'role' => 'Specifies how the theme is being used within the shop. Valid values are:' | ||
| 498 | }, | ||
| 499 | 'WWW::Shopify::Model::Country' => { | ||
| 500 | 'name' => 'The full name of the country, in English.', | ||
| 501 | 'tax' => 'The national sales tax rate to be applied to orders made by customers from that country.', | ||
| 502 | 'id' => 'The unique numeric identifier for the country. <br /> It is important to note that the id for a given country in one shop will not be the same as the id for the same country in another shop.', | ||
| 503 | 'provinces' => '', | ||
| 504 | 'code' => 'The ISO 3166-1 alpha-2 two-letter country code for the country. The code for a given country will be the same as the code for the same country in another shop.' | ||
| 505 | }, | ||
| 506 | 'WWW::Shopify::Model::Product' => { | ||
| 507 | 'published_at' => 'The date and time when the product was published. The API returns this value in ISO 8601 format.', | ||
| 508 | 'images' => 'A list of image objects, each one representing an image associated with the product.', | ||
| 509 | 'options' => 'Custom product property names like "Size", "Color", and "Material". products are based on permutations of these options. A product may have a maximum of 3 options.', | ||
| 510 | 'tags' => 'A categorization that a product can be tagged with, commonly used for filtering and searching.', | ||
| 511 | 'published_scope' => 'The sales channels in which the product is visible.', | ||
| 512 | 'variants' => 'A list of variant objects, each one representing a slightly different version of the product. For example, if a product comes in different sizes and colors, each size and color permutation (such as "small black", "medium black", "large blue"), would be a variant.', | ||
| 513 | 'template_suffix' => 'The suffix of the liquid template being used. By default, the original template is called product.liquid, without any suffix. Any additional templates will be: product.suffix.liquid.', | ||
| 514 | 'product_type' => 'A categorization that a product can be tagged with, commonly used for filtering and searching.', | ||
| 515 | 'created_at' => 'The date and time when the product was created. The API returns this value in ISO 8601 format.', | ||
| 516 | 'handle' => 'A human-friendly unique string for the Product automatically generated from its title. They are used by the Liquid templating language to refer to objects.', | ||
| 517 | 'updated_at' => 'The date and time when the product was last modified. The API returns this value in ISO 8601 format.', | ||
| 518 | 'title' => 'The name of the product. In a shop\'s catalog, clicking on a product\'s title takes you to that product\'s page. On a product\'s page, the product\'s title typically appears in a large font.', | ||
| 519 | 'body_html' => 'The description of the product, complete with HTML formatting.', | ||
| 520 | 'id' => 'The unique numeric identifier for the product. Product ids are unique across the entire Shopify system; no two products will have the same id, even if they\'re from different shops.', | ||
| 521 | 'vendor' => 'The name of the vendor of the product.' | ||
| 522 | }, | ||
| 523 | 'WWW::Shopify::Model::Redirect' => { | ||
| 524 | 'target' => 'The "after" path or URL to be redirected to. When the user visits the path specified by path, s/he will be redirected to this path or URL. This property can be set to any path on the shop\'s site, or any URL, even one on a completely different domain.', | ||
| 525 | 'path' => 'The "before" path to be redirected. When the user this path, s/he will be redirected to the path specified by target.', | ||
| 526 | 'id' => 'The unique numeric identifier for the redirect.' | ||
| 527 | }, | ||
| 528 | 'WWW::Shopify::Model::ScriptTag' => { | ||
| 529 | 'created_at' => 'The date and time when the ScriptTag was created. The API returns this value in ISO 8601 format.', | ||
| 530 | 'updated_at' => 'The date and time when the ScriptTag was last updated. The API returns this value in ISO 8601 format.', | ||
| 531 | 'src' => 'Specifies the location of the ScriptTag.', | ||
| 532 | 'id' => 'The unique numeric identifier for the ScriptTag.', | ||
| 533 | 'event' => 'DOM event which triggers the loading of the script. Valid values are: "onload."' | ||
| 534 | }, | ||
| 535 | 'WWW::Shopify::Model::Webhook' => { | ||
| 536 | 'topic' => 'The event that will trigger the webhook. Valid values are: orders/create, orders/delete, orders/updated, orders/paid, orders/cancelled, orders/fulfilled, orders/partially_fulfilled, carts/create, carts/update, checkouts/create, checkouts/update, checkouts/delete, refunds/create, products/create, products/update, products/delete, collections/create, collections/update, collections/delete, customer_groups/create, customer_groups/update, customer_groups/delete, customers/create, customers/enable, customers/disable, customers/update, customers/delete, fulfillments/create, fulfillments/update, shop/update, app/uninstalled', | ||
| 537 | 'created_at' => 'The date and time when the webhook was created. The API returns this value in ISO 8601 format.', | ||
| 538 | 'format' => 'The format in which the webhook should send the data. Valid values are json and xml.', | ||
| 539 | 'updated_at' => 'The date and time when the webhook was updated. The API returns this value in ISO 8601 format.', | ||
| 540 | 'id' => 'The unique numeric identifier for the webhook.', | ||
| 541 | 'address' => 'The URI where the webhook should send the POST request when the event occurs.' | ||
| 542 | }, | ||
| 543 | 'WWW::Shopify::Model::CustomCollection::Image' => { | ||
| 544 | 'attachment' => 'An image attached to a shop\'s theme returned as Base64-encoded binary data.', | ||
| 545 | 'src' => 'Source URL that specifies the location of the image.' | ||
| 546 | } | ||
| 547 | }; | ||
| 548 | |||
| 549 | |||
| 550 | our @EXPORT_OK = qw(get_tooltip); | ||
| 551 | |||
| 552 | sub get_tooltip { | ||
| 553 | my ($package, $field_name) = @_; | ||
| 554 | $package = WWW::Shopify->translate_model($package); | ||
| 555 | return undef unless exists $tooltips->{$package} && $tooltips->{$package}->{$field_name}; | ||
| 556 | return $tooltips->{$package}->{$field_name}; | ||
| 557 | } | ||
| 558 | |||
| 559 | |||
| 560 | 1; |