printful_client 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +72 -0
- data/LICENSE +21 -0
- data/README.md +43 -0
- data/docs/AddFile200Response.md +20 -0
- data/docs/Address.md +42 -0
- data/docs/AddressInfo.md +28 -0
- data/docs/ApprovalSheet.md +18 -0
- data/docs/ApprovalSheetChanges.md +20 -0
- data/docs/ApprovalSheetChangesFilesInner.md +18 -0
- data/docs/ApprovalSheetWebhookFile.md +24 -0
- data/docs/ApprovalSheetsAPIClient.md +216 -0
- data/docs/ApproveDesign200Response.md +20 -0
- data/docs/ApproveDesign200ResponseAllOfResult.md +18 -0
- data/docs/AvailabilityStatus.md +20 -0
- data/docs/AvailableTechnique.md +22 -0
- data/docs/AverageFulfillmentTime.md +20 -0
- data/docs/CalculateShippingRates.md +24 -0
- data/docs/CalculateShippingRates200Response.md +20 -0
- data/docs/CalculateTaxRates200Response.md +20 -0
- data/docs/CatalogAPIClient.md +400 -0
- data/docs/CatalogFileOption.md +24 -0
- data/docs/Category.md +26 -0
- data/docs/ChangePackingSlip200Response.md +20 -0
- data/docs/ChangePackingSlip200ResponseResult.md +18 -0
- data/docs/Costs.md +38 -0
- data/docs/CostsByAmountInner.md +34 -0
- data/docs/CostsByProductInner.md +26 -0
- data/docs/CostsByVariantInner.md +28 -0
- data/docs/Country.md +24 -0
- data/docs/CountryStateCodeAPIClient.md +69 -0
- data/docs/CreateGenerationTask.md +32 -0
- data/docs/CreateGeneratorTask200Response.md +20 -0
- data/docs/CreateOrder200Response.md +20 -0
- data/docs/CreateSyncProduct200Response.md +20 -0
- data/docs/CreateSyncProduct400Response.md +22 -0
- data/docs/CreateSyncProduct400ResponseError.md +20 -0
- data/docs/CreateWebhookRequest.md +22 -0
- data/docs/DeleteProductTemplate200Response.md +20 -0
- data/docs/DeleteProductTemplate200ResponseAllOfResult.md +18 -0
- data/docs/DeleteSyncVariant200Response.md +20 -0
- data/docs/EcommercePlatformSyncAPIClient.md +459 -0
- data/docs/EstimateOrderCosts200Response.md +20 -0
- data/docs/EstimateOrderCosts200ResponseAllOfResult.md +20 -0
- data/docs/File.md +50 -0
- data/docs/FileLibraryAPIClient.md +220 -0
- data/docs/FileOption.md +20 -0
- data/docs/FileType.md +26 -0
- data/docs/GenerationTask.md +26 -0
- data/docs/GenerationTaskExtraMockup.md +24 -0
- data/docs/GenerationTaskFile.md +24 -0
- data/docs/GenerationTaskFilePosition.md +28 -0
- data/docs/GenerationTaskMockup.md +24 -0
- data/docs/GenerationTaskTemplateFile.md +22 -0
- data/docs/GetApprovalSheets200Response.md +20 -0
- data/docs/GetCategories200Response.md +20 -0
- data/docs/GetCategoryById200Response.md +20 -0
- data/docs/GetCountries200Response.md +20 -0
- data/docs/GetOrderByIdIdParameter.md +49 -0
- data/docs/GetOrders200Response.md +22 -0
- data/docs/GetPrintfiles200Response.md +20 -0
- data/docs/GetProductById200Response.md +20 -0
- data/docs/GetProductSizeGuideById200Response.md +20 -0
- data/docs/GetProductSizeGuideById404Response.md +22 -0
- data/docs/GetProductSizeGuideById404ResponseError.md +20 -0
- data/docs/GetProductTemplateById200Response.md +20 -0
- data/docs/GetProductTemplates200Response.md +22 -0
- data/docs/GetProducts200Response.md +20 -0
- data/docs/GetProducts401Response.md +22 -0
- data/docs/GetProducts401ResponseError.md +20 -0
- data/docs/GetScopes200Response.md +20 -0
- data/docs/GetScopes200ResponseAllOfResult.md +18 -0
- data/docs/GetScopes200ResponseAllOfResultScopesInner.md +20 -0
- data/docs/GetStatistics200Response.md +20 -0
- data/docs/GetStore200Response.md +20 -0
- data/docs/GetStoreSyncVariantById200Response.md +20 -0
- data/docs/GetStores200Response.md +22 -0
- data/docs/GetStores403Response.md +22 -0
- data/docs/GetStores403ResponseError.md +20 -0
- data/docs/GetSyncProductById200Response.md +20 -0
- data/docs/GetSyncProductByIdIdParameter.md +49 -0
- data/docs/GetSyncProducts200Response.md +22 -0
- data/docs/GetSyncVariantById200Response.md +20 -0
- data/docs/GetTaxCountries200Response.md +20 -0
- data/docs/GetTaxCountries200ResponseResultInner.md +24 -0
- data/docs/GetTaxCountries200ResponseResultInnerAllOfStatesInner.md +18 -0
- data/docs/GetTemplates200Response.md +20 -0
- data/docs/GetVariantById200Response.md +20 -0
- data/docs/GetWarehouseProduct200Response.md +20 -0
- data/docs/GetWarehouseProducts200Response.md +22 -0
- data/docs/GetWebhooks200Response.md +20 -0
- data/docs/Gift.md +20 -0
- data/docs/IncompleteItem.md +26 -0
- data/docs/Item.md +52 -0
- data/docs/ItemFilesInner.md +52 -0
- data/docs/ItemFilesInnerAllOfPosition.md +30 -0
- data/docs/ItemInfo.md +26 -0
- data/docs/ItemOption.md +20 -0
- data/docs/Material.md +20 -0
- data/docs/Measurement.md +22 -0
- data/docs/MeasurementValue.md +24 -0
- data/docs/MockupGeneratorAPIClient.md +313 -0
- data/docs/OAuthAPIClient.md +74 -0
- data/docs/Option.md +20 -0
- data/docs/OptionType.md +28 -0
- data/docs/Order.md +52 -0
- data/docs/OrderCosts.md +38 -0
- data/docs/OrderEstimateCosts.md +36 -0
- data/docs/OrderEstimateRetailCosts.md +30 -0
- data/docs/OrderEvent.md +52 -0
- data/docs/OrderShipmentItem.md +24 -0
- data/docs/OrdersAPIClient.md +535 -0
- data/docs/PackingSlip.md +28 -0
- data/docs/Paging.md +22 -0
- data/docs/PricingBreakdown.md +24 -0
- data/docs/Printfile.md +28 -0
- data/docs/PrintfileInfo.md +28 -0
- data/docs/PrintfulCosts.md +20 -0
- data/docs/Product.md +50 -0
- data/docs/Product1.md +20 -0
- data/docs/Product1SyncVariantsInner.md +46 -0
- data/docs/ProductInfo.md +20 -0
- data/docs/ProductSizeGuide.md +22 -0
- data/docs/ProductTemplate.md +26 -0
- data/docs/ProductTemplatesAPIClient.md +221 -0
- data/docs/ProductVariant.md +24 -0
- data/docs/ProductsAPIClient.md +679 -0
- data/docs/Profit.md +20 -0
- data/docs/README.md +410 -0
- data/docs/ReportsAPIClient.md +87 -0
- data/docs/Response200.md +18 -0
- data/docs/Response200Paginated.md +20 -0
- data/docs/RetailCosts.md +30 -0
- data/docs/SalesAndCostsInner.md +32 -0
- data/docs/SalesAndCostsSummaryInner.md +24 -0
- data/docs/Shipment.md +36 -0
- data/docs/ShippingInfo.md +32 -0
- data/docs/ShippingRateAPIClient.md +81 -0
- data/docs/SizeTable.md +28 -0
- data/docs/State.md +20 -0
- data/docs/Statistics.md +18 -0
- data/docs/Store.md +22 -0
- data/docs/StoreInformationAPIClient.md +218 -0
- data/docs/StoreStatistics.md +38 -0
- data/docs/SubmitApprovalSheetChanges200Response.md +20 -0
- data/docs/SyncProduct.md +32 -0
- data/docs/SyncProductDeleted.md +22 -0
- data/docs/SyncProductEvent.md +32 -0
- data/docs/SyncProductInfo.md +20 -0
- data/docs/SyncVariant.md +46 -0
- data/docs/SyncVariantInfo.md +20 -0
- data/docs/SyncVariantProduct.md +24 -0
- data/docs/TaxAddressInfo.md +24 -0
- data/docs/TaxInfo.md +22 -0
- data/docs/TaxRateAPIClient.md +134 -0
- data/docs/TaxRequest.md +18 -0
- data/docs/Template.md +42 -0
- data/docs/TemplateById.md +42 -0
- data/docs/TemplateByIdColorsInner.md +20 -0
- data/docs/TemplateByIdOptionDataInner.md +20 -0
- data/docs/TemplateByIdPlacementOptionDataInner.md +20 -0
- data/docs/TemplateByIdPlacementOptionDataInnerOptionsInner.md +20 -0
- data/docs/TemplateByIdPlacementsInner.md +24 -0
- data/docs/TemplatePlacementConflict.md +20 -0
- data/docs/TemplateVariantMapping.md +20 -0
- data/docs/TemplateVariantMappingItem.md +20 -0
- data/docs/Templates.md +18 -0
- data/docs/ThreadColors200Response.md +20 -0
- data/docs/ThreadColorsRequest.md +18 -0
- data/docs/TotalPaidOrders.md +20 -0
- data/docs/UpdateSyncProductRequest.md +20 -0
- data/docs/UpdateSyncProductRequestSyncVariantsInner.md +46 -0
- data/docs/UpdateSyncVariantRequest.md +46 -0
- data/docs/Variant.md +42 -0
- data/docs/VariantInfo.md +20 -0
- data/docs/VariantPrintfile.md +20 -0
- data/docs/WarehouseProduct.md +30 -0
- data/docs/WarehouseProductVariant.md +36 -0
- data/docs/WarehouseProductsAPIClient.md +159 -0
- data/docs/Webhook.md +24 -0
- data/docs/WebhookAPIClient.md +225 -0
- data/docs/WebhookInfo.md +22 -0
- data/generate.sh +53 -0
- data/lib/printful_client/api/approval_sheets_api_client.rb +238 -0
- data/lib/printful_client/api/catalog_api_client.rb +394 -0
- data/lib/printful_client/api/country_state_code_api_client.rb +79 -0
- data/lib/printful_client/api/ecommerce_platform_sync_api_client.rb +435 -0
- data/lib/printful_client/api/file_library_api_client.rb +227 -0
- data/lib/printful_client/api/mockup_generator_api_client.rb +318 -0
- data/lib/printful_client/api/o_auth_api_client.rb +79 -0
- data/lib/printful_client/api/orders_api_client.rb +514 -0
- data/lib/printful_client/api/product_templates_api_client.rb +211 -0
- data/lib/printful_client/api/products_api_client.rb +651 -0
- data/lib/printful_client/api/reports_api_client.rb +106 -0
- data/lib/printful_client/api/shipping_rate_api_client.rb +93 -0
- data/lib/printful_client/api/store_information_api_client.rb +209 -0
- data/lib/printful_client/api/tax_rate_api_client.rb +147 -0
- data/lib/printful_client/api/warehouse_products_api_client.rb +157 -0
- data/lib/printful_client/api/webhook_api_client.rb +213 -0
- data/lib/printful_client/api_client.rb +392 -0
- data/lib/printful_client/api_error.rb +58 -0
- data/lib/printful_client/configuration.rb +297 -0
- data/lib/printful_client/models/add_file200_response.rb +231 -0
- data/lib/printful_client/models/address.rb +336 -0
- data/lib/printful_client/models/address_info.rb +287 -0
- data/lib/printful_client/models/approval_sheet.rb +256 -0
- data/lib/printful_client/models/approval_sheet_changes.rb +242 -0
- data/lib/printful_client/models/approval_sheet_changes_files_inner.rb +222 -0
- data/lib/printful_client/models/approval_sheet_webhook_file.rb +241 -0
- data/lib/printful_client/models/approve_design200_response.rb +231 -0
- data/lib/printful_client/models/approve_design200_response_all_of_result.rb +214 -0
- data/lib/printful_client/models/availability_status.rb +225 -0
- data/lib/printful_client/models/available_technique.rb +235 -0
- data/lib/printful_client/models/average_fulfillment_time.rb +226 -0
- data/lib/printful_client/models/calculate_shipping_rates.rb +261 -0
- data/lib/printful_client/models/calculate_shipping_rates200_response.rb +226 -0
- data/lib/printful_client/models/calculate_tax_rates200_response.rb +224 -0
- data/lib/printful_client/models/catalog_file_option.rb +244 -0
- data/lib/printful_client/models/category.rb +290 -0
- data/lib/printful_client/models/change_packing_slip200_response.rb +224 -0
- data/lib/printful_client/models/change_packing_slip200_response_result.rb +215 -0
- data/lib/printful_client/models/costs.rb +316 -0
- data/lib/printful_client/models/costs_by_amount_inner.rb +295 -0
- data/lib/printful_client/models/costs_by_product_inner.rb +255 -0
- data/lib/printful_client/models/costs_by_variant_inner.rb +265 -0
- data/lib/printful_client/models/country.rb +246 -0
- data/lib/printful_client/models/create_generation_task.rb +329 -0
- data/lib/printful_client/models/create_generator_task200_response.rb +231 -0
- data/lib/printful_client/models/create_order200_response.rb +231 -0
- data/lib/printful_client/models/create_sync_product200_response.rb +231 -0
- data/lib/printful_client/models/create_sync_product400_response.rb +234 -0
- data/lib/printful_client/models/create_sync_product400_response_error.rb +223 -0
- data/lib/printful_client/models/create_webhook_request.rb +259 -0
- data/lib/printful_client/models/delete_product_template200_response.rb +231 -0
- data/lib/printful_client/models/delete_product_template200_response_all_of_result.rb +215 -0
- data/lib/printful_client/models/delete_sync_variant200_response.rb +234 -0
- data/lib/printful_client/models/estimate_order_costs200_response.rb +231 -0
- data/lib/printful_client/models/estimate_order_costs200_response_all_of_result.rb +223 -0
- data/lib/printful_client/models/file.rb +385 -0
- data/lib/printful_client/models/file_option.rb +240 -0
- data/lib/printful_client/models/file_type.rb +257 -0
- data/lib/printful_client/models/generation_task.rb +294 -0
- data/lib/printful_client/models/generation_task_extra_mockup.rb +246 -0
- data/lib/printful_client/models/generation_task_file.rb +247 -0
- data/lib/printful_client/models/generation_task_file_position.rb +268 -0
- data/lib/printful_client/models/generation_task_mockup.rb +250 -0
- data/lib/printful_client/models/generation_task_template_file.rb +238 -0
- data/lib/printful_client/models/get_approval_sheets200_response.rb +233 -0
- data/lib/printful_client/models/get_categories200_response.rb +233 -0
- data/lib/printful_client/models/get_category_by_id200_response.rb +231 -0
- data/lib/printful_client/models/get_countries200_response.rb +233 -0
- data/lib/printful_client/models/get_order_by_id_id_parameter.rb +105 -0
- data/lib/printful_client/models/get_orders200_response.rb +242 -0
- data/lib/printful_client/models/get_printfiles200_response.rb +231 -0
- data/lib/printful_client/models/get_product_by_id200_response.rb +231 -0
- data/lib/printful_client/models/get_product_size_guide_by_id200_response.rb +231 -0
- data/lib/printful_client/models/get_product_size_guide_by_id404_response.rb +234 -0
- data/lib/printful_client/models/get_product_size_guide_by_id404_response_error.rb +223 -0
- data/lib/printful_client/models/get_product_template_by_id200_response.rb +231 -0
- data/lib/printful_client/models/get_product_templates200_response.rb +240 -0
- data/lib/printful_client/models/get_products200_response.rb +233 -0
- data/lib/printful_client/models/get_products401_response.rb +234 -0
- data/lib/printful_client/models/get_products401_response_error.rb +223 -0
- data/lib/printful_client/models/get_scopes200_response.rb +231 -0
- data/lib/printful_client/models/get_scopes200_response_all_of_result.rb +216 -0
- data/lib/printful_client/models/get_scopes200_response_all_of_result_scopes_inner.rb +223 -0
- data/lib/printful_client/models/get_statistics200_response.rb +224 -0
- data/lib/printful_client/models/get_store200_response.rb +231 -0
- data/lib/printful_client/models/get_store_sync_variant_by_id200_response.rb +231 -0
- data/lib/printful_client/models/get_stores200_response.rb +242 -0
- data/lib/printful_client/models/get_stores403_response.rb +234 -0
- data/lib/printful_client/models/get_stores403_response_error.rb +223 -0
- data/lib/printful_client/models/get_sync_product_by_id200_response.rb +231 -0
- data/lib/printful_client/models/get_sync_product_by_id_id_parameter.rb +105 -0
- data/lib/printful_client/models/get_sync_products200_response.rb +243 -0
- data/lib/printful_client/models/get_sync_variant_by_id200_response.rb +224 -0
- data/lib/printful_client/models/get_tax_countries200_response.rb +226 -0
- data/lib/printful_client/models/get_tax_countries200_response_result_inner.rb +252 -0
- data/lib/printful_client/models/get_tax_countries200_response_result_inner_all_of_states_inner.rb +215 -0
- data/lib/printful_client/models/get_templates200_response.rb +231 -0
- data/lib/printful_client/models/get_variant_by_id200_response.rb +231 -0
- data/lib/printful_client/models/get_warehouse_product200_response.rb +231 -0
- data/lib/printful_client/models/get_warehouse_products200_response.rb +243 -0
- data/lib/printful_client/models/get_webhooks200_response.rb +231 -0
- data/lib/printful_client/models/gift.rb +264 -0
- data/lib/printful_client/models/incomplete_item.rb +256 -0
- data/lib/printful_client/models/item.rb +389 -0
- data/lib/printful_client/models/item_files_inner.rb +400 -0
- data/lib/printful_client/models/item_files_inner_all_of_position.rb +286 -0
- data/lib/printful_client/models/item_info.rb +263 -0
- data/lib/printful_client/models/item_option.rb +240 -0
- data/lib/printful_client/models/material.rb +225 -0
- data/lib/printful_client/models/measurement.rb +245 -0
- data/lib/printful_client/models/measurement_value.rb +253 -0
- data/lib/printful_client/models/option.rb +226 -0
- data/lib/printful_client/models/option_type.rb +269 -0
- data/lib/printful_client/models/order.rb +406 -0
- data/lib/printful_client/models/order_costs.rb +322 -0
- data/lib/printful_client/models/order_estimate_costs.rb +306 -0
- data/lib/printful_client/models/order_estimate_retail_costs.rb +282 -0
- data/lib/printful_client/models/order_event.rb +396 -0
- data/lib/printful_client/models/order_shipment_item.rb +292 -0
- data/lib/printful_client/models/packing_slip.rb +266 -0
- data/lib/printful_client/models/paging.rb +236 -0
- data/lib/printful_client/models/pricing_breakdown.rb +246 -0
- data/lib/printful_client/models/printfile.rb +300 -0
- data/lib/printful_client/models/printfile_info.rb +270 -0
- data/lib/printful_client/models/printful_costs.rb +226 -0
- data/lib/printful_client/models/product.rb +383 -0
- data/lib/printful_client/models/product1.rb +241 -0
- data/lib/printful_client/models/product1_sync_variants_inner.rb +379 -0
- data/lib/printful_client/models/product_info.rb +225 -0
- data/lib/printful_client/models/product_size_guide.rb +261 -0
- data/lib/printful_client/models/product_template.rb +262 -0
- data/lib/printful_client/models/product_variant.rb +246 -0
- data/lib/printful_client/models/profit.rb +226 -0
- data/lib/printful_client/models/response200.rb +215 -0
- data/lib/printful_client/models/response200_paginated.rb +231 -0
- data/lib/printful_client/models/retail_costs.rb +282 -0
- data/lib/printful_client/models/sales_and_costs_inner.rb +285 -0
- data/lib/printful_client/models/sales_and_costs_summary_inner.rb +245 -0
- data/lib/printful_client/models/shipment.rb +308 -0
- data/lib/printful_client/models/shipping_info.rb +286 -0
- data/lib/printful_client/models/size_table.rb +328 -0
- data/lib/printful_client/models/state.rb +225 -0
- data/lib/printful_client/models/statistics.rb +218 -0
- data/lib/printful_client/models/store.rb +236 -0
- data/lib/printful_client/models/store_statistics.rb +322 -0
- data/lib/printful_client/models/submit_approval_sheet_changes200_response.rb +231 -0
- data/lib/printful_client/models/sync_product.rb +312 -0
- data/lib/printful_client/models/sync_product_deleted.rb +257 -0
- data/lib/printful_client/models/sync_product_event.rb +293 -0
- data/lib/printful_client/models/sync_product_info.rb +226 -0
- data/lib/printful_client/models/sync_variant.rb +359 -0
- data/lib/printful_client/models/sync_variant_info.rb +223 -0
- data/lib/printful_client/models/sync_variant_product.rb +252 -0
- data/lib/printful_client/models/tax_address_info.rb +274 -0
- data/lib/printful_client/models/tax_info.rb +236 -0
- data/lib/printful_client/models/tax_request.rb +222 -0
- data/lib/printful_client/models/template.rb +372 -0
- data/lib/printful_client/models/template_by_id.rb +335 -0
- data/lib/printful_client/models/template_by_id_colors_inner.rb +223 -0
- data/lib/printful_client/models/template_by_id_option_data_inner.rb +225 -0
- data/lib/printful_client/models/template_by_id_placement_option_data_inner.rb +225 -0
- data/lib/printful_client/models/template_by_id_placement_option_data_inner_options_inner.rb +224 -0
- data/lib/printful_client/models/template_by_id_placements_inner.rb +241 -0
- data/lib/printful_client/models/template_placement_conflict.rb +228 -0
- data/lib/printful_client/models/template_variant_mapping.rb +228 -0
- data/lib/printful_client/models/template_variant_mapping_item.rb +226 -0
- data/lib/printful_client/models/templates.rb +217 -0
- data/lib/printful_client/models/thread_colors200_response.rb +233 -0
- data/lib/printful_client/models/thread_colors_request.rb +215 -0
- data/lib/printful_client/models/total_paid_orders.rb +226 -0
- data/lib/printful_client/models/update_sync_product_request.rb +226 -0
- data/lib/printful_client/models/update_sync_product_request_sync_variants_inner.rb +365 -0
- data/lib/printful_client/models/update_sync_variant_request.rb +365 -0
- data/lib/printful_client/models/variant.rb +341 -0
- data/lib/printful_client/models/variant_info.rb +223 -0
- data/lib/printful_client/models/variant_printfile.rb +224 -0
- data/lib/printful_client/models/warehouse_product.rb +312 -0
- data/lib/printful_client/models/warehouse_product_variant.rb +306 -0
- data/lib/printful_client/models/webhook.rb +245 -0
- data/lib/printful_client/models/webhook_info.rb +238 -0
- data/lib/printful_client/version.rb +15 -0
- data/lib/printful_client.rb +216 -0
- data/printful_client.gemspec +38 -0
- data/spec/api/approval_sheets_api_client_spec.rb +75 -0
- data/spec/api/catalog_api_client_spec.rb +107 -0
- data/spec/api/country_state_code_api_client_spec.rb +46 -0
- data/spec/api/ecommerce_platform_sync_api_client_spec.rb +117 -0
- data/spec/api/file_library_api_client_spec.rb +73 -0
- data/spec/api/mockup_generator_api_client_spec.rb +92 -0
- data/spec/api/o_auth_api_client_spec.rb +46 -0
- data/spec/api/orders_api_client_spec.rb +131 -0
- data/spec/api/product_templates_api_client_spec.rb +72 -0
- data/spec/api/products_api_client_spec.rb +155 -0
- data/spec/api/reports_api_client_spec.rb +51 -0
- data/spec/api/shipping_rate_api_client_spec.rb +48 -0
- data/spec/api/store_information_api_client_spec.rb +71 -0
- data/spec/api/tax_rate_api_client_spec.rb +58 -0
- data/spec/api/warehouse_products_api_client_spec.rb +63 -0
- data/spec/api/webhook_api_client_spec.rb +72 -0
- data/spec/api_client_spec.rb +228 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/add_file200_response_spec.rb +40 -0
- data/spec/models/address_info_spec.rb +64 -0
- data/spec/models/address_spec.rb +106 -0
- data/spec/models/approval_sheet_changes_files_inner_spec.rb +34 -0
- data/spec/models/approval_sheet_changes_spec.rb +40 -0
- data/spec/models/approval_sheet_spec.rb +38 -0
- data/spec/models/approval_sheet_webhook_file_spec.rb +52 -0
- data/spec/models/approve_design200_response_all_of_result_spec.rb +34 -0
- data/spec/models/approve_design200_response_spec.rb +40 -0
- data/spec/models/availability_status_spec.rb +40 -0
- data/spec/models/available_technique_spec.rb +46 -0
- data/spec/models/average_fulfillment_time_spec.rb +40 -0
- data/spec/models/calculate_shipping_rates200_response_spec.rb +40 -0
- data/spec/models/calculate_shipping_rates_spec.rb +52 -0
- data/spec/models/calculate_tax_rates200_response_spec.rb +40 -0
- data/spec/models/catalog_file_option_spec.rb +52 -0
- data/spec/models/category_spec.rb +62 -0
- data/spec/models/change_packing_slip200_response_result_spec.rb +34 -0
- data/spec/models/change_packing_slip200_response_spec.rb +40 -0
- data/spec/models/costs_by_amount_inner_spec.rb +82 -0
- data/spec/models/costs_by_product_inner_spec.rb +58 -0
- data/spec/models/costs_by_variant_inner_spec.rb +64 -0
- data/spec/models/costs_spec.rb +94 -0
- data/spec/models/country_spec.rb +52 -0
- data/spec/models/create_generation_task_spec.rb +80 -0
- data/spec/models/create_generator_task200_response_spec.rb +40 -0
- data/spec/models/create_order200_response_spec.rb +40 -0
- data/spec/models/create_sync_product200_response_spec.rb +40 -0
- data/spec/models/create_sync_product400_response_error_spec.rb +40 -0
- data/spec/models/create_sync_product400_response_spec.rb +46 -0
- data/spec/models/create_webhook_request_spec.rb +46 -0
- data/spec/models/delete_product_template200_response_all_of_result_spec.rb +34 -0
- data/spec/models/delete_product_template200_response_spec.rb +40 -0
- data/spec/models/delete_sync_variant200_response_spec.rb +40 -0
- data/spec/models/estimate_order_costs200_response_all_of_result_spec.rb +40 -0
- data/spec/models/estimate_order_costs200_response_spec.rb +40 -0
- data/spec/models/file_option_spec.rb +40 -0
- data/spec/models/file_spec.rb +130 -0
- data/spec/models/file_type_spec.rb +58 -0
- data/spec/models/generation_task_extra_mockup_spec.rb +52 -0
- data/spec/models/generation_task_file_position_spec.rb +64 -0
- data/spec/models/generation_task_file_spec.rb +52 -0
- data/spec/models/generation_task_mockup_spec.rb +52 -0
- data/spec/models/generation_task_spec.rb +62 -0
- data/spec/models/generation_task_template_file_spec.rb +46 -0
- data/spec/models/get_approval_sheets200_response_spec.rb +40 -0
- data/spec/models/get_categories200_response_spec.rb +40 -0
- data/spec/models/get_category_by_id200_response_spec.rb +40 -0
- data/spec/models/get_countries200_response_spec.rb +40 -0
- data/spec/models/get_order_by_id_id_parameter_spec.rb +31 -0
- data/spec/models/get_orders200_response_spec.rb +46 -0
- data/spec/models/get_printfiles200_response_spec.rb +40 -0
- data/spec/models/get_product_by_id200_response_spec.rb +40 -0
- data/spec/models/get_product_size_guide_by_id200_response_spec.rb +40 -0
- data/spec/models/get_product_size_guide_by_id404_response_error_spec.rb +40 -0
- data/spec/models/get_product_size_guide_by_id404_response_spec.rb +46 -0
- data/spec/models/get_product_template_by_id200_response_spec.rb +40 -0
- data/spec/models/get_product_templates200_response_spec.rb +46 -0
- data/spec/models/get_products200_response_spec.rb +40 -0
- data/spec/models/get_products401_response_error_spec.rb +40 -0
- data/spec/models/get_products401_response_spec.rb +46 -0
- data/spec/models/get_scopes200_response_all_of_result_scopes_inner_spec.rb +40 -0
- data/spec/models/get_scopes200_response_all_of_result_spec.rb +34 -0
- data/spec/models/get_scopes200_response_spec.rb +40 -0
- data/spec/models/get_statistics200_response_spec.rb +40 -0
- data/spec/models/get_store200_response_spec.rb +40 -0
- data/spec/models/get_store_sync_variant_by_id200_response_spec.rb +40 -0
- data/spec/models/get_stores200_response_spec.rb +46 -0
- data/spec/models/get_stores403_response_error_spec.rb +40 -0
- data/spec/models/get_stores403_response_spec.rb +46 -0
- data/spec/models/get_sync_product_by_id200_response_spec.rb +40 -0
- data/spec/models/get_sync_product_by_id_id_parameter_spec.rb +31 -0
- data/spec/models/get_sync_products200_response_spec.rb +46 -0
- data/spec/models/get_sync_variant_by_id200_response_spec.rb +40 -0
- data/spec/models/get_tax_countries200_response_result_inner_all_of_states_inner_spec.rb +34 -0
- data/spec/models/get_tax_countries200_response_result_inner_spec.rb +52 -0
- data/spec/models/get_tax_countries200_response_spec.rb +40 -0
- data/spec/models/get_templates200_response_spec.rb +40 -0
- data/spec/models/get_variant_by_id200_response_spec.rb +40 -0
- data/spec/models/get_warehouse_product200_response_spec.rb +40 -0
- data/spec/models/get_warehouse_products200_response_spec.rb +46 -0
- data/spec/models/get_webhooks200_response_spec.rb +40 -0
- data/spec/models/gift_spec.rb +40 -0
- data/spec/models/incomplete_item_spec.rb +58 -0
- data/spec/models/item_files_inner_all_of_position_spec.rb +70 -0
- data/spec/models/item_files_inner_spec.rb +136 -0
- data/spec/models/item_info_spec.rb +58 -0
- data/spec/models/item_option_spec.rb +40 -0
- data/spec/models/item_spec.rb +136 -0
- data/spec/models/material_spec.rb +40 -0
- data/spec/models/measurement_spec.rb +46 -0
- data/spec/models/measurement_value_spec.rb +52 -0
- data/spec/models/option_spec.rb +40 -0
- data/spec/models/option_type_spec.rb +64 -0
- data/spec/models/order_costs_spec.rb +94 -0
- data/spec/models/order_estimate_costs_spec.rb +88 -0
- data/spec/models/order_estimate_retail_costs_spec.rb +70 -0
- data/spec/models/order_event_spec.rb +136 -0
- data/spec/models/order_shipment_item_spec.rb +60 -0
- data/spec/models/order_spec.rb +136 -0
- data/spec/models/packing_slip_spec.rb +64 -0
- data/spec/models/paging_spec.rb +46 -0
- data/spec/models/pricing_breakdown_spec.rb +52 -0
- data/spec/models/printfile_info_spec.rb +64 -0
- data/spec/models/printfile_spec.rb +68 -0
- data/spec/models/printful_costs_spec.rb +40 -0
- data/spec/models/product1_spec.rb +40 -0
- data/spec/models/product1_sync_variants_inner_spec.rb +118 -0
- data/spec/models/product_info_spec.rb +40 -0
- data/spec/models/product_size_guide_spec.rb +46 -0
- data/spec/models/product_spec.rb +130 -0
- data/spec/models/product_template_spec.rb +58 -0
- data/spec/models/product_variant_spec.rb +52 -0
- data/spec/models/profit_spec.rb +40 -0
- data/spec/models/response200_paginated_spec.rb +40 -0
- data/spec/models/response200_spec.rb +34 -0
- data/spec/models/retail_costs_spec.rb +70 -0
- data/spec/models/sales_and_costs_inner_spec.rb +76 -0
- data/spec/models/sales_and_costs_summary_inner_spec.rb +52 -0
- data/spec/models/shipment_spec.rb +88 -0
- data/spec/models/shipping_info_spec.rb +76 -0
- data/spec/models/size_table_spec.rb +72 -0
- data/spec/models/state_spec.rb +40 -0
- data/spec/models/statistics_spec.rb +34 -0
- data/spec/models/store_spec.rb +46 -0
- data/spec/models/store_statistics_spec.rb +94 -0
- data/spec/models/submit_approval_sheet_changes200_response_spec.rb +40 -0
- data/spec/models/sync_product_deleted_spec.rb +46 -0
- data/spec/models/sync_product_event_spec.rb +76 -0
- data/spec/models/sync_product_info_spec.rb +40 -0
- data/spec/models/sync_product_spec.rb +76 -0
- data/spec/models/sync_variant_info_spec.rb +40 -0
- data/spec/models/sync_variant_product_spec.rb +52 -0
- data/spec/models/sync_variant_spec.rb +118 -0
- data/spec/models/tax_address_info_spec.rb +52 -0
- data/spec/models/tax_info_spec.rb +46 -0
- data/spec/models/tax_request_spec.rb +34 -0
- data/spec/models/template_by_id_colors_inner_spec.rb +40 -0
- data/spec/models/template_by_id_option_data_inner_spec.rb +40 -0
- data/spec/models/template_by_id_placement_option_data_inner_options_inner_spec.rb +40 -0
- data/spec/models/template_by_id_placement_option_data_inner_spec.rb +40 -0
- data/spec/models/template_by_id_placements_inner_spec.rb +52 -0
- data/spec/models/template_by_id_spec.rb +106 -0
- data/spec/models/template_placement_conflict_spec.rb +40 -0
- data/spec/models/template_spec.rb +110 -0
- data/spec/models/template_variant_mapping_item_spec.rb +40 -0
- data/spec/models/template_variant_mapping_spec.rb +40 -0
- data/spec/models/templates_spec.rb +34 -0
- data/spec/models/thread_colors200_response_spec.rb +40 -0
- data/spec/models/thread_colors_request_spec.rb +34 -0
- data/spec/models/total_paid_orders_spec.rb +40 -0
- data/spec/models/update_sync_product_request_spec.rb +40 -0
- data/spec/models/update_sync_product_request_sync_variants_inner_spec.rb +118 -0
- data/spec/models/update_sync_variant_request_spec.rb +118 -0
- data/spec/models/variant_info_spec.rb +40 -0
- data/spec/models/variant_printfile_spec.rb +40 -0
- data/spec/models/variant_spec.rb +106 -0
- data/spec/models/warehouse_product_spec.rb +74 -0
- data/spec/models/warehouse_product_variant_spec.rb +88 -0
- data/spec/models/webhook_info_spec.rb +46 -0
- data/spec/models/webhook_spec.rb +52 -0
- data/spec/spec_helper.rb +111 -0
- data/swagger.json +8318 -0
- metadata +812 -0
data/docs/Item.md
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
# Printful::Item
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | Line item ID | [optional] |
|
8
|
+
| **external_id** | **String** | Line item ID from the external system | [optional] |
|
9
|
+
| **variant_id** | **Integer** | Variant ID of the item ordered. See [Catalog API](#tag/Catalog-API) | [optional] |
|
10
|
+
| **sync_variant_id** | **Integer** | Sync variant ID of the item ordered. [Example](#section/Orders-API-examples/Using-a-sync-variant). | [optional] |
|
11
|
+
| **external_variant_id** | **String** | External variant ID of the item ordered. [Example](#section/Orders-API-examples/Using-sync-variant-with-external-ID). | [optional] |
|
12
|
+
| **warehouse_product_variant_id** | **Integer** | Warehousing product variant ID of the item ordered. See Warehouse Products API | [optional] |
|
13
|
+
| **product_template_id** | **Integer** | The ID of a Product Template to generate the printfiles from. The `variant_id` field must be passed as well. Can't be combined with following fields: `sync_variant_id`, `external_variant_id`, `warehouse_product_variant_id`, `files`, `options`, `external_product_id`. [Examples](#section/Orders-API-examples/Using-a-product-template). | [optional] |
|
14
|
+
| **external_product_id** | **String** | The External Product ID associated with a Product Template to generate the printfiles from. The `variant_id` field must be passed as well. Can't be combined with following fields: `sync_variant_id`, `external_variant_id`, `warehouse_product_variant_id`, `files`, `options`, `product_template_id`. [Examples](#section/Orders-API-examples/Using-a-product-template). | [optional] |
|
15
|
+
| **quantity** | **Integer** | Number of items ordered (Limited to 1000 for one item) | [optional] |
|
16
|
+
| **price** | **String** | Printful price of the item | [optional] |
|
17
|
+
| **retail_price** | **String** | Original retail price of the item to be displayed on the packing slip | [optional] |
|
18
|
+
| **name** | **String** | Display name of the item. If not given, a name from the Printful system will be displayed on the packing slip | [optional] |
|
19
|
+
| **product** | [**ProductVariant**](ProductVariant.md) | | [optional] |
|
20
|
+
| **files** | [**Array<ItemFilesInner>**](ItemFilesInner.md) | Array of attached printfiles / preview images | [optional] |
|
21
|
+
| **options** | [**Array<Option>**](Option.md) | Array of additional options for this product [See examples](#section/Options) | [optional] |
|
22
|
+
| **sku** | **String** | Product identifier (SKU) from the external system | [optional] |
|
23
|
+
| **discontinued** | **Boolean** | Whether the item belongs to discontinued product i.e. it's permanently unavailable | [optional] |
|
24
|
+
| **out_of_stock** | **Boolean** | Whether the item is out of stock i.e. temporarily unavailable | [optional] |
|
25
|
+
|
26
|
+
## Example
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'printful_client'
|
30
|
+
|
31
|
+
instance = Printful::Item.new(
|
32
|
+
id: 1,
|
33
|
+
external_id: item-1,
|
34
|
+
variant_id: 1,
|
35
|
+
sync_variant_id: 1,
|
36
|
+
external_variant_id: variant-1,
|
37
|
+
warehouse_product_variant_id: 1,
|
38
|
+
product_template_id: 1,
|
39
|
+
external_product_id: template-123,
|
40
|
+
quantity: 1,
|
41
|
+
price: 13.00,
|
42
|
+
retail_price: 13.00,
|
43
|
+
name: Enhanced Matte Paper Poster 18×24,
|
44
|
+
product: null,
|
45
|
+
files: null,
|
46
|
+
options: null,
|
47
|
+
sku: null,
|
48
|
+
discontinued: true,
|
49
|
+
out_of_stock: true
|
50
|
+
)
|
51
|
+
```
|
52
|
+
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# Printful::ItemFilesInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type** | **String** | Role of the file | [optional] |
|
8
|
+
| **id** | **Integer** | File ID | [optional][readonly] |
|
9
|
+
| **url** | **String** | Source URL where the file is downloaded from. The use of .ai .psd and .tiff files have been depreciated, if your application uses these file types or accepts these types from users you will need to add validation. | |
|
10
|
+
| **options** | [**Array<FileOption>**](FileOption.md) | Array of additional options for this file [See examples](#section/Options) | [optional] |
|
11
|
+
| **hash** | **String** | MD5 checksum of the file | [optional][readonly] |
|
12
|
+
| **filename** | **String** | File name | [optional] |
|
13
|
+
| **mime_type** | **String** | MIME type of the file | [optional][readonly] |
|
14
|
+
| **size** | **Integer** | Size in bytes | [optional][readonly] |
|
15
|
+
| **width** | **Integer** | Width in pixels | [optional][readonly] |
|
16
|
+
| **height** | **Integer** | Height in pixels | [optional][readonly] |
|
17
|
+
| **dpi** | **Integer** | Resolution DPI.<br>**Note:** for vector files this may be indicated as only 72dpi, but it doesn't affect print quality since the vector files are resolution independent. | [optional][readonly] |
|
18
|
+
| **status** | **String** | File processing status:<br>**ok** - file was processed successfuly<br>**waiting** - file is being processed<br>**failed** - file failed to be processed | [optional][readonly] |
|
19
|
+
| **created** | **Integer** | File creation timestamp | [optional][readonly] |
|
20
|
+
| **thumbnail_url** | **String** | Small thumbnail URL | [optional][readonly] |
|
21
|
+
| **preview_url** | **String** | Medium preview image URL | [optional][readonly] |
|
22
|
+
| **visible** | **Boolean** | Show file in the Printfile Library (default true) | [optional] |
|
23
|
+
| **is_temporary** | **Boolean** | Whether it is a temporary printfile. | [optional][readonly] |
|
24
|
+
| **position** | [**ItemFilesInnerAllOfPosition**](ItemFilesInnerAllOfPosition.md) | | [optional] |
|
25
|
+
|
26
|
+
## Example
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
require 'printful_client'
|
30
|
+
|
31
|
+
instance = Printful::ItemFilesInner.new(
|
32
|
+
type: default,
|
33
|
+
id: 10,
|
34
|
+
url: https://www.example.com/files/tshirts/example.png,
|
35
|
+
options: null,
|
36
|
+
hash: ea44330b887dfec278dbc4626a759547,
|
37
|
+
filename: shirt1.png,
|
38
|
+
mime_type: image/png,
|
39
|
+
size: 45582633,
|
40
|
+
width: 1000,
|
41
|
+
height: 1000,
|
42
|
+
dpi: 300,
|
43
|
+
status: ok,
|
44
|
+
created: 1590051937,
|
45
|
+
thumbnail_url: https://files.cdn.printful.com/files/ea4/ea44330b887dfec278dbc4626a759547_thumb.png,
|
46
|
+
preview_url: https://files.cdn.printful.com/files/ea4/ea44330b887dfec278dbc4626a759547_thumb.png,
|
47
|
+
visible: true,
|
48
|
+
is_temporary: false,
|
49
|
+
position: null
|
50
|
+
)
|
51
|
+
```
|
52
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# Printful::ItemFilesInnerAllOfPosition
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **area_width** | **Integer** | Positioning area width on print area in pixels | [optional] |
|
8
|
+
| **area_height** | **Integer** | Positioning area height on print area in pixels | [optional] |
|
9
|
+
| **width** | **Integer** | Width of the image in given area in pixels | [optional] |
|
10
|
+
| **height** | **Integer** | Height of the image in given area in pixels | [optional] |
|
11
|
+
| **top** | **Integer** | Image top offset in given area in pixels | [optional] |
|
12
|
+
| **left** | **Integer** | Image left offset in given area in pixels | [optional] |
|
13
|
+
| **limit_to_print_area** | **Boolean** | Should limit printfile to print area | [optional][default to true] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'printful_client'
|
19
|
+
|
20
|
+
instance = Printful::ItemFilesInnerAllOfPosition.new(
|
21
|
+
area_width: 1800,
|
22
|
+
area_height: 2400,
|
23
|
+
width: 1800,
|
24
|
+
height: 1800,
|
25
|
+
top: 300,
|
26
|
+
left: 0,
|
27
|
+
limit_to_print_area: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
data/docs/ItemInfo.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# Printful::ItemInfo
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **variant_id** | **String** | Catalog Variant ID of the item ordered. See [Catalog API](#tag/Catalog-API) <span style=\"color:red\">*Required if no other IDs given</span> | [optional] |
|
8
|
+
| **external_variant_id** | **String** | External Variant ID of the item ordered. See [Ecommerce Platform Sync API](#tag/Ecommerce-Platform-Sync-API). <span style=\"color:red\">*Required if no other IDs given</span> | [optional] |
|
9
|
+
| **warehouse_product_variant_id** | **String** | Warehouse product variant ID of the item ordered. See [Warehouse Products API](#tag/Warehouse-Products-API). <span style=\"color:red\">*Required if no other IDs given</span> | [optional] |
|
10
|
+
| **quantity** | **Integer** | Number of items ordered | |
|
11
|
+
| **value** | **String** | Item retail value - optional but can help to properly calculate | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'printful_client'
|
17
|
+
|
18
|
+
instance = Printful::ItemInfo.new(
|
19
|
+
variant_id: 202,
|
20
|
+
external_variant_id: 1001,
|
21
|
+
warehouse_product_variant_id: 2,
|
22
|
+
quantity: 10,
|
23
|
+
value: 2.99
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
data/docs/ItemOption.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Printful::ItemOption
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | Option id | |
|
8
|
+
| **value** | **String** | Option value | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'printful_client'
|
14
|
+
|
15
|
+
instance = Printful::ItemOption.new(
|
16
|
+
id: embroidery_type,
|
17
|
+
value: flat
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/Material.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Printful::Material
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | Material name | [optional] |
|
8
|
+
| **percentage** | **Float** | Percentage of the material in the product | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'printful_client'
|
14
|
+
|
15
|
+
instance = Printful::Material.new(
|
16
|
+
name: cotton,
|
17
|
+
percentage: 100
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
data/docs/Measurement.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Printful::Measurement
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **type_label** | **String** | Measurement type | [optional] |
|
8
|
+
| **unit** | **String** | The measurement unit if it's not defined on the size table level or is different | [optional] |
|
9
|
+
| **values** | [**Array<MeasurementValue>**](MeasurementValue.md) | The measurement values for each size | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'printful_client'
|
15
|
+
|
16
|
+
instance = Printful::Measurement.new(
|
17
|
+
type_label: Length,
|
18
|
+
unit: none,
|
19
|
+
values: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Printful::MeasurementValue
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **size** | **String** | The size with which the value is associated | |
|
8
|
+
| **value** | **String** | The single value associated with a size (whether this or `min_value` and `max_value` will be present) | [optional] |
|
9
|
+
| **min_value** | **String** | The lower boundary of the value range (whether this and `max_value` or `value` will be present) | [optional] |
|
10
|
+
| **max_value** | **String** | The upper boundary of the value range (whether this and `min_value` or `value` will be present) | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'printful_client'
|
16
|
+
|
17
|
+
instance = Printful::MeasurementValue.new(
|
18
|
+
size: S,
|
19
|
+
value: 23.5,
|
20
|
+
min_value: 20,
|
21
|
+
max_value: 20
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,313 @@
|
|
1
|
+
# Printful::MockupGeneratorAPIClient
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.printful.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_generator_task**](MockupGeneratorAPIClient.md#create_generator_task) | **POST** /mockup-generator/create-task/{id} | Create a mockup generation task |
|
8
|
+
| [**get_printfiles**](MockupGeneratorAPIClient.md#get_printfiles) | **GET** /mockup-generator/printfiles/{id} | Retrieve product variant printfiles |
|
9
|
+
| [**get_task**](MockupGeneratorAPIClient.md#get_task) | **GET** /mockup-generator/task | Mockup generation task result |
|
10
|
+
| [**get_templates**](MockupGeneratorAPIClient.md#get_templates) | **GET** /mockup-generator/templates/{id} | Layout templates |
|
11
|
+
|
12
|
+
|
13
|
+
## create_generator_task
|
14
|
+
|
15
|
+
> <CreateGeneratorTask200Response> create_generator_task(id, create_generation_task, opts)
|
16
|
+
|
17
|
+
Create a mockup generation task
|
18
|
+
|
19
|
+
Creates an asynchronous mockup generation task. Generation result can be retrieved using mockup generation task retrieval endpoint.<br> **Rate limiting**: Up to 10 requests per 60 seconds for established stores; 2 requests per 60 seconds for new stores. Currently available rate is returned in response headers. A 60 seconds lockout is applied if request count is exceeded. We also limit the number of files that may be generated to 20,000 files per account in a 24-hour period.
|
20
|
+
|
21
|
+
### Examples
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'time'
|
25
|
+
require 'printful_client'
|
26
|
+
# setup authorization
|
27
|
+
Printful.configure do |config|
|
28
|
+
# Configure OAuth2 access token for authorization: OAuth
|
29
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = Printful::MockupGeneratorAPIClient.new
|
33
|
+
id = 56 # Integer | Product ID.
|
34
|
+
create_generation_task = Printful::CreateGenerationTask.new # CreateGenerationTask | POST request body
|
35
|
+
opts = {
|
36
|
+
x_pf_store_id: 'x_pf_store_id_example' # String | Use this to specify which store you want to use (required only for account level token)
|
37
|
+
}
|
38
|
+
|
39
|
+
begin
|
40
|
+
# Create a mockup generation task
|
41
|
+
result = api_instance.create_generator_task(id, create_generation_task, opts)
|
42
|
+
p result
|
43
|
+
rescue Printful::ApiError => e
|
44
|
+
puts "Error when calling MockupGeneratorAPIClient->create_generator_task: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
#### Using the create_generator_task_with_http_info variant
|
49
|
+
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
51
|
+
|
52
|
+
> <Array(<CreateGeneratorTask200Response>, Integer, Hash)> create_generator_task_with_http_info(id, create_generation_task, opts)
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
begin
|
56
|
+
# Create a mockup generation task
|
57
|
+
data, status_code, headers = api_instance.create_generator_task_with_http_info(id, create_generation_task, opts)
|
58
|
+
p status_code # => 2xx
|
59
|
+
p headers # => { ... }
|
60
|
+
p data # => <CreateGeneratorTask200Response>
|
61
|
+
rescue Printful::ApiError => e
|
62
|
+
puts "Error when calling MockupGeneratorAPIClient->create_generator_task_with_http_info: #{e}"
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
### Parameters
|
67
|
+
|
68
|
+
| Name | Type | Description | Notes |
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
70
|
+
| **id** | **Integer** | Product ID. | |
|
71
|
+
| **create_generation_task** | [**CreateGenerationTask**](CreateGenerationTask.md) | POST request body | |
|
72
|
+
| **x_pf_store_id** | **String** | Use this to specify which store you want to use (required only for account level token) | [optional] |
|
73
|
+
|
74
|
+
### Return type
|
75
|
+
|
76
|
+
[**CreateGeneratorTask200Response**](CreateGeneratorTask200Response.md)
|
77
|
+
|
78
|
+
### Authorization
|
79
|
+
|
80
|
+
[OAuth](../README.md#OAuth)
|
81
|
+
|
82
|
+
### HTTP request headers
|
83
|
+
|
84
|
+
- **Content-Type**: application/json
|
85
|
+
- **Accept**: application/json
|
86
|
+
|
87
|
+
|
88
|
+
## get_printfiles
|
89
|
+
|
90
|
+
> <GetPrintfiles200Response> get_printfiles(id, opts)
|
91
|
+
|
92
|
+
Retrieve product variant printfiles
|
93
|
+
|
94
|
+
List of printfiles available for products variants. Printfile indicates what file resolution should be used to create a mockup or submit an order. <div class=\"alert alert-info\"> This endpoint uses DTG as a default printing technique for products with more than one technique available. For products with DTG and more techniques available please specify the correct technique in query by using the `technique` parameter. For more information read the <a href=\"#section/Mockup-Generator-API-examples\">examples</a>. </div>
|
95
|
+
|
96
|
+
### Examples
|
97
|
+
|
98
|
+
```ruby
|
99
|
+
require 'time'
|
100
|
+
require 'printful_client'
|
101
|
+
# setup authorization
|
102
|
+
Printful.configure do |config|
|
103
|
+
# Configure OAuth2 access token for authorization: OAuth
|
104
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
105
|
+
end
|
106
|
+
|
107
|
+
api_instance = Printful::MockupGeneratorAPIClient.new
|
108
|
+
id = 56 # Integer | Product ID.
|
109
|
+
opts = {
|
110
|
+
orientation: 'horizontal', # String |
|
111
|
+
technique: 'technique_example', # String |
|
112
|
+
x_pf_store_id: 'x_pf_store_id_example' # String | Use this to specify which store you want to use (required only for account level token)
|
113
|
+
}
|
114
|
+
|
115
|
+
begin
|
116
|
+
# Retrieve product variant printfiles
|
117
|
+
result = api_instance.get_printfiles(id, opts)
|
118
|
+
p result
|
119
|
+
rescue Printful::ApiError => e
|
120
|
+
puts "Error when calling MockupGeneratorAPIClient->get_printfiles: #{e}"
|
121
|
+
end
|
122
|
+
```
|
123
|
+
|
124
|
+
#### Using the get_printfiles_with_http_info variant
|
125
|
+
|
126
|
+
This returns an Array which contains the response data, status code and headers.
|
127
|
+
|
128
|
+
> <Array(<GetPrintfiles200Response>, Integer, Hash)> get_printfiles_with_http_info(id, opts)
|
129
|
+
|
130
|
+
```ruby
|
131
|
+
begin
|
132
|
+
# Retrieve product variant printfiles
|
133
|
+
data, status_code, headers = api_instance.get_printfiles_with_http_info(id, opts)
|
134
|
+
p status_code # => 2xx
|
135
|
+
p headers # => { ... }
|
136
|
+
p data # => <GetPrintfiles200Response>
|
137
|
+
rescue Printful::ApiError => e
|
138
|
+
puts "Error when calling MockupGeneratorAPIClient->get_printfiles_with_http_info: #{e}"
|
139
|
+
end
|
140
|
+
```
|
141
|
+
|
142
|
+
### Parameters
|
143
|
+
|
144
|
+
| Name | Type | Description | Notes |
|
145
|
+
| ---- | ---- | ----------- | ----- |
|
146
|
+
| **id** | **Integer** | Product ID. | |
|
147
|
+
| **orientation** | **String** | | [optional] |
|
148
|
+
| **technique** | **String** | | [optional] |
|
149
|
+
| **x_pf_store_id** | **String** | Use this to specify which store you want to use (required only for account level token) | [optional] |
|
150
|
+
|
151
|
+
### Return type
|
152
|
+
|
153
|
+
[**GetPrintfiles200Response**](GetPrintfiles200Response.md)
|
154
|
+
|
155
|
+
### Authorization
|
156
|
+
|
157
|
+
[OAuth](../README.md#OAuth)
|
158
|
+
|
159
|
+
### HTTP request headers
|
160
|
+
|
161
|
+
- **Content-Type**: Not defined
|
162
|
+
- **Accept**: application/json
|
163
|
+
|
164
|
+
|
165
|
+
## get_task
|
166
|
+
|
167
|
+
> <CreateGeneratorTask200Response> get_task(task_key, opts)
|
168
|
+
|
169
|
+
Mockup generation task result
|
170
|
+
|
171
|
+
Returns asynchronous mockup generation task result. If generation task is completed, it will contain a list of generated mockups.
|
172
|
+
|
173
|
+
### Examples
|
174
|
+
|
175
|
+
```ruby
|
176
|
+
require 'time'
|
177
|
+
require 'printful_client'
|
178
|
+
# setup authorization
|
179
|
+
Printful.configure do |config|
|
180
|
+
# Configure OAuth2 access token for authorization: OAuth
|
181
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
182
|
+
end
|
183
|
+
|
184
|
+
api_instance = Printful::MockupGeneratorAPIClient.new
|
185
|
+
task_key = 'task_key_example' # String | Task key retrieved when creating the generation task.
|
186
|
+
opts = {
|
187
|
+
x_pf_store_id: 'x_pf_store_id_example' # String | Use this to specify which store you want to use (required only for account level token)
|
188
|
+
}
|
189
|
+
|
190
|
+
begin
|
191
|
+
# Mockup generation task result
|
192
|
+
result = api_instance.get_task(task_key, opts)
|
193
|
+
p result
|
194
|
+
rescue Printful::ApiError => e
|
195
|
+
puts "Error when calling MockupGeneratorAPIClient->get_task: #{e}"
|
196
|
+
end
|
197
|
+
```
|
198
|
+
|
199
|
+
#### Using the get_task_with_http_info variant
|
200
|
+
|
201
|
+
This returns an Array which contains the response data, status code and headers.
|
202
|
+
|
203
|
+
> <Array(<CreateGeneratorTask200Response>, Integer, Hash)> get_task_with_http_info(task_key, opts)
|
204
|
+
|
205
|
+
```ruby
|
206
|
+
begin
|
207
|
+
# Mockup generation task result
|
208
|
+
data, status_code, headers = api_instance.get_task_with_http_info(task_key, opts)
|
209
|
+
p status_code # => 2xx
|
210
|
+
p headers # => { ... }
|
211
|
+
p data # => <CreateGeneratorTask200Response>
|
212
|
+
rescue Printful::ApiError => e
|
213
|
+
puts "Error when calling MockupGeneratorAPIClient->get_task_with_http_info: #{e}"
|
214
|
+
end
|
215
|
+
```
|
216
|
+
|
217
|
+
### Parameters
|
218
|
+
|
219
|
+
| Name | Type | Description | Notes |
|
220
|
+
| ---- | ---- | ----------- | ----- |
|
221
|
+
| **task_key** | **String** | Task key retrieved when creating the generation task. | |
|
222
|
+
| **x_pf_store_id** | **String** | Use this to specify which store you want to use (required only for account level token) | [optional] |
|
223
|
+
|
224
|
+
### Return type
|
225
|
+
|
226
|
+
[**CreateGeneratorTask200Response**](CreateGeneratorTask200Response.md)
|
227
|
+
|
228
|
+
### Authorization
|
229
|
+
|
230
|
+
[OAuth](../README.md#OAuth)
|
231
|
+
|
232
|
+
### HTTP request headers
|
233
|
+
|
234
|
+
- **Content-Type**: Not defined
|
235
|
+
- **Accept**: application/json
|
236
|
+
|
237
|
+
|
238
|
+
## get_templates
|
239
|
+
|
240
|
+
> <GetTemplates200Response> get_templates(id, opts)
|
241
|
+
|
242
|
+
Layout templates
|
243
|
+
|
244
|
+
Retrieve list of templates that can be used for client-side positioning. <div class=\"alert alert-info\"> This endpoint uses DTG as a default printing technique for product layouts with more than one technique available. For products with DTG and more techniques available please specify the correct technique in query by using the `technique` parameter. For more information read the <a href=\"#section/Mockup-Generator-API-examples\">examples</a>. </div>
|
245
|
+
|
246
|
+
### Examples
|
247
|
+
|
248
|
+
```ruby
|
249
|
+
require 'time'
|
250
|
+
require 'printful_client'
|
251
|
+
# setup authorization
|
252
|
+
Printful.configure do |config|
|
253
|
+
# Configure OAuth2 access token for authorization: OAuth
|
254
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
255
|
+
end
|
256
|
+
|
257
|
+
api_instance = Printful::MockupGeneratorAPIClient.new
|
258
|
+
id = 56 # Integer | Product ID.
|
259
|
+
opts = {
|
260
|
+
orientation: 'horizontal', # String |
|
261
|
+
technique: 'technique_example', # String |
|
262
|
+
x_pf_store_id: 'x_pf_store_id_example' # String | Use this to specify which store you want to use (required only for account level token)
|
263
|
+
}
|
264
|
+
|
265
|
+
begin
|
266
|
+
# Layout templates
|
267
|
+
result = api_instance.get_templates(id, opts)
|
268
|
+
p result
|
269
|
+
rescue Printful::ApiError => e
|
270
|
+
puts "Error when calling MockupGeneratorAPIClient->get_templates: #{e}"
|
271
|
+
end
|
272
|
+
```
|
273
|
+
|
274
|
+
#### Using the get_templates_with_http_info variant
|
275
|
+
|
276
|
+
This returns an Array which contains the response data, status code and headers.
|
277
|
+
|
278
|
+
> <Array(<GetTemplates200Response>, Integer, Hash)> get_templates_with_http_info(id, opts)
|
279
|
+
|
280
|
+
```ruby
|
281
|
+
begin
|
282
|
+
# Layout templates
|
283
|
+
data, status_code, headers = api_instance.get_templates_with_http_info(id, opts)
|
284
|
+
p status_code # => 2xx
|
285
|
+
p headers # => { ... }
|
286
|
+
p data # => <GetTemplates200Response>
|
287
|
+
rescue Printful::ApiError => e
|
288
|
+
puts "Error when calling MockupGeneratorAPIClient->get_templates_with_http_info: #{e}"
|
289
|
+
end
|
290
|
+
```
|
291
|
+
|
292
|
+
### Parameters
|
293
|
+
|
294
|
+
| Name | Type | Description | Notes |
|
295
|
+
| ---- | ---- | ----------- | ----- |
|
296
|
+
| **id** | **Integer** | Product ID. | |
|
297
|
+
| **orientation** | **String** | | [optional] |
|
298
|
+
| **technique** | **String** | | [optional] |
|
299
|
+
| **x_pf_store_id** | **String** | Use this to specify which store you want to use (required only for account level token) | [optional] |
|
300
|
+
|
301
|
+
### Return type
|
302
|
+
|
303
|
+
[**GetTemplates200Response**](GetTemplates200Response.md)
|
304
|
+
|
305
|
+
### Authorization
|
306
|
+
|
307
|
+
[OAuth](../README.md#OAuth)
|
308
|
+
|
309
|
+
### HTTP request headers
|
310
|
+
|
311
|
+
- **Content-Type**: Not defined
|
312
|
+
- **Accept**: application/json
|
313
|
+
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# Printful::OAuthAPIClient
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.printful.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_scopes**](OAuthAPIClient.md#get_scopes) | **GET** /oauth/scopes | Get scopes for token |
|
8
|
+
|
9
|
+
|
10
|
+
## get_scopes
|
11
|
+
|
12
|
+
> <GetScopes200Response> get_scopes
|
13
|
+
|
14
|
+
Get scopes for token
|
15
|
+
|
16
|
+
Returns a list of scopes associated with the token
|
17
|
+
|
18
|
+
### Examples
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'time'
|
22
|
+
require 'printful_client'
|
23
|
+
# setup authorization
|
24
|
+
Printful.configure do |config|
|
25
|
+
# Configure OAuth2 access token for authorization: OAuth
|
26
|
+
config.access_token = 'YOUR ACCESS TOKEN'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = Printful::OAuthAPIClient.new
|
30
|
+
|
31
|
+
begin
|
32
|
+
# Get scopes for token
|
33
|
+
result = api_instance.get_scopes
|
34
|
+
p result
|
35
|
+
rescue Printful::ApiError => e
|
36
|
+
puts "Error when calling OAuthAPIClient->get_scopes: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
#### Using the get_scopes_with_http_info variant
|
41
|
+
|
42
|
+
This returns an Array which contains the response data, status code and headers.
|
43
|
+
|
44
|
+
> <Array(<GetScopes200Response>, Integer, Hash)> get_scopes_with_http_info
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
begin
|
48
|
+
# Get scopes for token
|
49
|
+
data, status_code, headers = api_instance.get_scopes_with_http_info
|
50
|
+
p status_code # => 2xx
|
51
|
+
p headers # => { ... }
|
52
|
+
p data # => <GetScopes200Response>
|
53
|
+
rescue Printful::ApiError => e
|
54
|
+
puts "Error when calling OAuthAPIClient->get_scopes_with_http_info: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
### Parameters
|
59
|
+
|
60
|
+
This endpoint does not need any parameter.
|
61
|
+
|
62
|
+
### Return type
|
63
|
+
|
64
|
+
[**GetScopes200Response**](GetScopes200Response.md)
|
65
|
+
|
66
|
+
### Authorization
|
67
|
+
|
68
|
+
[OAuth](../README.md#OAuth)
|
69
|
+
|
70
|
+
### HTTP request headers
|
71
|
+
|
72
|
+
- **Content-Type**: Not defined
|
73
|
+
- **Accept**: application/json
|
74
|
+
|
data/docs/Option.md
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Printful::Option
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | Option ID | [optional] |
|
8
|
+
| **value** | **String** | Option value | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'printful_client'
|
14
|
+
|
15
|
+
instance = Printful::Option.new(
|
16
|
+
id: OptionKey,
|
17
|
+
value: OptionValue
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|