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
@@ -0,0 +1,20 @@
|
|
1
|
+
# Printful::CalculateShippingRates200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **Integer** | Response status code `200` | [optional] |
|
8
|
+
| **result** | [**Array<ShippingInfo>**](ShippingInfo.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'printful_client'
|
14
|
+
|
15
|
+
instance = Printful::CalculateShippingRates200Response.new(
|
16
|
+
code: 200,
|
17
|
+
result: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Printful::CalculateTaxRates200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **Integer** | Response status code `200` | [optional] |
|
8
|
+
| **result** | [**TaxInfo**](TaxInfo.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'printful_client'
|
14
|
+
|
15
|
+
instance = Printful::CalculateTaxRates200Response.new(
|
16
|
+
code: 200,
|
17
|
+
result: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,400 @@
|
|
1
|
+
# Printful::CatalogAPIClient
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.printful.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_categories**](CatalogAPIClient.md#get_categories) | **GET** /categories | Get Categories |
|
8
|
+
| [**get_category_by_id**](CatalogAPIClient.md#get_category_by_id) | **GET** /categories/{id} | Get Category |
|
9
|
+
| [**get_product_by_id**](CatalogAPIClient.md#get_product_by_id) | **GET** /products/{id} | Get Product |
|
10
|
+
| [**get_product_size_guide_by_id**](CatalogAPIClient.md#get_product_size_guide_by_id) | **GET** /products/{id}/sizes | Get Product Size Guide |
|
11
|
+
| [**get_products**](CatalogAPIClient.md#get_products) | **GET** /products | Get Products |
|
12
|
+
| [**get_variant_by_id**](CatalogAPIClient.md#get_variant_by_id) | **GET** /products/variant/{id} | Get Variant |
|
13
|
+
|
14
|
+
|
15
|
+
## get_categories
|
16
|
+
|
17
|
+
> <GetCategories200Response> get_categories
|
18
|
+
|
19
|
+
Get Categories
|
20
|
+
|
21
|
+
Returns list of Catalog Categories available in the Printful
|
22
|
+
|
23
|
+
### Examples
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
require 'time'
|
27
|
+
require 'printful_client'
|
28
|
+
|
29
|
+
api_instance = Printful::CatalogAPIClient.new
|
30
|
+
|
31
|
+
begin
|
32
|
+
# Get Categories
|
33
|
+
result = api_instance.get_categories
|
34
|
+
p result
|
35
|
+
rescue Printful::ApiError => e
|
36
|
+
puts "Error when calling CatalogAPIClient->get_categories: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
#### Using the get_categories_with_http_info variant
|
41
|
+
|
42
|
+
This returns an Array which contains the response data, status code and headers.
|
43
|
+
|
44
|
+
> <Array(<GetCategories200Response>, Integer, Hash)> get_categories_with_http_info
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
begin
|
48
|
+
# Get Categories
|
49
|
+
data, status_code, headers = api_instance.get_categories_with_http_info
|
50
|
+
p status_code # => 2xx
|
51
|
+
p headers # => { ... }
|
52
|
+
p data # => <GetCategories200Response>
|
53
|
+
rescue Printful::ApiError => e
|
54
|
+
puts "Error when calling CatalogAPIClient->get_categories_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
|
+
[**GetCategories200Response**](GetCategories200Response.md)
|
65
|
+
|
66
|
+
### Authorization
|
67
|
+
|
68
|
+
No authorization required
|
69
|
+
|
70
|
+
### HTTP request headers
|
71
|
+
|
72
|
+
- **Content-Type**: Not defined
|
73
|
+
- **Accept**: application/json
|
74
|
+
|
75
|
+
|
76
|
+
## get_category_by_id
|
77
|
+
|
78
|
+
> <GetCategoryById200Response> get_category_by_id(id)
|
79
|
+
|
80
|
+
Get Category
|
81
|
+
|
82
|
+
Returns information about a specific category.
|
83
|
+
|
84
|
+
### Examples
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
require 'time'
|
88
|
+
require 'printful_client'
|
89
|
+
|
90
|
+
api_instance = Printful::CatalogAPIClient.new
|
91
|
+
id = 56 # Integer | Category ID
|
92
|
+
|
93
|
+
begin
|
94
|
+
# Get Category
|
95
|
+
result = api_instance.get_category_by_id(id)
|
96
|
+
p result
|
97
|
+
rescue Printful::ApiError => e
|
98
|
+
puts "Error when calling CatalogAPIClient->get_category_by_id: #{e}"
|
99
|
+
end
|
100
|
+
```
|
101
|
+
|
102
|
+
#### Using the get_category_by_id_with_http_info variant
|
103
|
+
|
104
|
+
This returns an Array which contains the response data, status code and headers.
|
105
|
+
|
106
|
+
> <Array(<GetCategoryById200Response>, Integer, Hash)> get_category_by_id_with_http_info(id)
|
107
|
+
|
108
|
+
```ruby
|
109
|
+
begin
|
110
|
+
# Get Category
|
111
|
+
data, status_code, headers = api_instance.get_category_by_id_with_http_info(id)
|
112
|
+
p status_code # => 2xx
|
113
|
+
p headers # => { ... }
|
114
|
+
p data # => <GetCategoryById200Response>
|
115
|
+
rescue Printful::ApiError => e
|
116
|
+
puts "Error when calling CatalogAPIClient->get_category_by_id_with_http_info: #{e}"
|
117
|
+
end
|
118
|
+
```
|
119
|
+
|
120
|
+
### Parameters
|
121
|
+
|
122
|
+
| Name | Type | Description | Notes |
|
123
|
+
| ---- | ---- | ----------- | ----- |
|
124
|
+
| **id** | **Integer** | Category ID | |
|
125
|
+
|
126
|
+
### Return type
|
127
|
+
|
128
|
+
[**GetCategoryById200Response**](GetCategoryById200Response.md)
|
129
|
+
|
130
|
+
### Authorization
|
131
|
+
|
132
|
+
No authorization required
|
133
|
+
|
134
|
+
### HTTP request headers
|
135
|
+
|
136
|
+
- **Content-Type**: Not defined
|
137
|
+
- **Accept**: application/json
|
138
|
+
|
139
|
+
|
140
|
+
## get_product_by_id
|
141
|
+
|
142
|
+
> <GetProductById200Response> get_product_by_id(id)
|
143
|
+
|
144
|
+
Get Product
|
145
|
+
|
146
|
+
Returns information about a specific product and a list of variants for this product.
|
147
|
+
|
148
|
+
### Examples
|
149
|
+
|
150
|
+
```ruby
|
151
|
+
require 'time'
|
152
|
+
require 'printful_client'
|
153
|
+
|
154
|
+
api_instance = Printful::CatalogAPIClient.new
|
155
|
+
id = 56 # Integer | Product ID.
|
156
|
+
|
157
|
+
begin
|
158
|
+
# Get Product
|
159
|
+
result = api_instance.get_product_by_id(id)
|
160
|
+
p result
|
161
|
+
rescue Printful::ApiError => e
|
162
|
+
puts "Error when calling CatalogAPIClient->get_product_by_id: #{e}"
|
163
|
+
end
|
164
|
+
```
|
165
|
+
|
166
|
+
#### Using the get_product_by_id_with_http_info variant
|
167
|
+
|
168
|
+
This returns an Array which contains the response data, status code and headers.
|
169
|
+
|
170
|
+
> <Array(<GetProductById200Response>, Integer, Hash)> get_product_by_id_with_http_info(id)
|
171
|
+
|
172
|
+
```ruby
|
173
|
+
begin
|
174
|
+
# Get Product
|
175
|
+
data, status_code, headers = api_instance.get_product_by_id_with_http_info(id)
|
176
|
+
p status_code # => 2xx
|
177
|
+
p headers # => { ... }
|
178
|
+
p data # => <GetProductById200Response>
|
179
|
+
rescue Printful::ApiError => e
|
180
|
+
puts "Error when calling CatalogAPIClient->get_product_by_id_with_http_info: #{e}"
|
181
|
+
end
|
182
|
+
```
|
183
|
+
|
184
|
+
### Parameters
|
185
|
+
|
186
|
+
| Name | Type | Description | Notes |
|
187
|
+
| ---- | ---- | ----------- | ----- |
|
188
|
+
| **id** | **Integer** | Product ID. | |
|
189
|
+
|
190
|
+
### Return type
|
191
|
+
|
192
|
+
[**GetProductById200Response**](GetProductById200Response.md)
|
193
|
+
|
194
|
+
### Authorization
|
195
|
+
|
196
|
+
No authorization required
|
197
|
+
|
198
|
+
### HTTP request headers
|
199
|
+
|
200
|
+
- **Content-Type**: Not defined
|
201
|
+
- **Accept**: application/json
|
202
|
+
|
203
|
+
|
204
|
+
## get_product_size_guide_by_id
|
205
|
+
|
206
|
+
> <GetProductSizeGuideById200Response> get_product_size_guide_by_id(id, opts)
|
207
|
+
|
208
|
+
Get Product Size Guide
|
209
|
+
|
210
|
+
Returns information about the size guide for a specific product.
|
211
|
+
|
212
|
+
### Examples
|
213
|
+
|
214
|
+
```ruby
|
215
|
+
require 'time'
|
216
|
+
require 'printful_client'
|
217
|
+
|
218
|
+
api_instance = Printful::CatalogAPIClient.new
|
219
|
+
id = 56 # Integer | Product ID.
|
220
|
+
opts = {
|
221
|
+
unit: 'inches,cm' # String | A comma-separated list of measurement unit in which size tables are to be returned (`inches` or `cm`). The default value is determined based on the locale country. The inches are used for United States, Liberia and Myanmar, for other countries the unit defaults to centimeters.
|
222
|
+
}
|
223
|
+
|
224
|
+
begin
|
225
|
+
# Get Product Size Guide
|
226
|
+
result = api_instance.get_product_size_guide_by_id(id, opts)
|
227
|
+
p result
|
228
|
+
rescue Printful::ApiError => e
|
229
|
+
puts "Error when calling CatalogAPIClient->get_product_size_guide_by_id: #{e}"
|
230
|
+
end
|
231
|
+
```
|
232
|
+
|
233
|
+
#### Using the get_product_size_guide_by_id_with_http_info variant
|
234
|
+
|
235
|
+
This returns an Array which contains the response data, status code and headers.
|
236
|
+
|
237
|
+
> <Array(<GetProductSizeGuideById200Response>, Integer, Hash)> get_product_size_guide_by_id_with_http_info(id, opts)
|
238
|
+
|
239
|
+
```ruby
|
240
|
+
begin
|
241
|
+
# Get Product Size Guide
|
242
|
+
data, status_code, headers = api_instance.get_product_size_guide_by_id_with_http_info(id, opts)
|
243
|
+
p status_code # => 2xx
|
244
|
+
p headers # => { ... }
|
245
|
+
p data # => <GetProductSizeGuideById200Response>
|
246
|
+
rescue Printful::ApiError => e
|
247
|
+
puts "Error when calling CatalogAPIClient->get_product_size_guide_by_id_with_http_info: #{e}"
|
248
|
+
end
|
249
|
+
```
|
250
|
+
|
251
|
+
### Parameters
|
252
|
+
|
253
|
+
| Name | Type | Description | Notes |
|
254
|
+
| ---- | ---- | ----------- | ----- |
|
255
|
+
| **id** | **Integer** | Product ID. | |
|
256
|
+
| **unit** | **String** | A comma-separated list of measurement unit in which size tables are to be returned (`inches` or `cm`). The default value is determined based on the locale country. The inches are used for United States, Liberia and Myanmar, for other countries the unit defaults to centimeters. | [optional] |
|
257
|
+
|
258
|
+
### Return type
|
259
|
+
|
260
|
+
[**GetProductSizeGuideById200Response**](GetProductSizeGuideById200Response.md)
|
261
|
+
|
262
|
+
### Authorization
|
263
|
+
|
264
|
+
No authorization required
|
265
|
+
|
266
|
+
### HTTP request headers
|
267
|
+
|
268
|
+
- **Content-Type**: Not defined
|
269
|
+
- **Accept**: application/json
|
270
|
+
|
271
|
+
|
272
|
+
## get_products
|
273
|
+
|
274
|
+
> <GetProducts200Response> get_products(opts)
|
275
|
+
|
276
|
+
Get Products
|
277
|
+
|
278
|
+
Returns list of Products available in the Printful
|
279
|
+
|
280
|
+
### Examples
|
281
|
+
|
282
|
+
```ruby
|
283
|
+
require 'time'
|
284
|
+
require 'printful_client'
|
285
|
+
|
286
|
+
api_instance = Printful::CatalogAPIClient.new
|
287
|
+
opts = {
|
288
|
+
category_id: 'category_id_example' # String | A comma-separated list of Category IDs of the Products that are to be returned
|
289
|
+
}
|
290
|
+
|
291
|
+
begin
|
292
|
+
# Get Products
|
293
|
+
result = api_instance.get_products(opts)
|
294
|
+
p result
|
295
|
+
rescue Printful::ApiError => e
|
296
|
+
puts "Error when calling CatalogAPIClient->get_products: #{e}"
|
297
|
+
end
|
298
|
+
```
|
299
|
+
|
300
|
+
#### Using the get_products_with_http_info variant
|
301
|
+
|
302
|
+
This returns an Array which contains the response data, status code and headers.
|
303
|
+
|
304
|
+
> <Array(<GetProducts200Response>, Integer, Hash)> get_products_with_http_info(opts)
|
305
|
+
|
306
|
+
```ruby
|
307
|
+
begin
|
308
|
+
# Get Products
|
309
|
+
data, status_code, headers = api_instance.get_products_with_http_info(opts)
|
310
|
+
p status_code # => 2xx
|
311
|
+
p headers # => { ... }
|
312
|
+
p data # => <GetProducts200Response>
|
313
|
+
rescue Printful::ApiError => e
|
314
|
+
puts "Error when calling CatalogAPIClient->get_products_with_http_info: #{e}"
|
315
|
+
end
|
316
|
+
```
|
317
|
+
|
318
|
+
### Parameters
|
319
|
+
|
320
|
+
| Name | Type | Description | Notes |
|
321
|
+
| ---- | ---- | ----------- | ----- |
|
322
|
+
| **category_id** | **String** | A comma-separated list of Category IDs of the Products that are to be returned | [optional] |
|
323
|
+
|
324
|
+
### Return type
|
325
|
+
|
326
|
+
[**GetProducts200Response**](GetProducts200Response.md)
|
327
|
+
|
328
|
+
### Authorization
|
329
|
+
|
330
|
+
No authorization required
|
331
|
+
|
332
|
+
### HTTP request headers
|
333
|
+
|
334
|
+
- **Content-Type**: Not defined
|
335
|
+
- **Accept**: application/json
|
336
|
+
|
337
|
+
|
338
|
+
## get_variant_by_id
|
339
|
+
|
340
|
+
> <GetVariantById200Response> get_variant_by_id(id)
|
341
|
+
|
342
|
+
Get Variant
|
343
|
+
|
344
|
+
Returns information about a specific Variant and its Product
|
345
|
+
|
346
|
+
### Examples
|
347
|
+
|
348
|
+
```ruby
|
349
|
+
require 'time'
|
350
|
+
require 'printful_client'
|
351
|
+
|
352
|
+
api_instance = Printful::CatalogAPIClient.new
|
353
|
+
id = 56 # Integer | Variant id
|
354
|
+
|
355
|
+
begin
|
356
|
+
# Get Variant
|
357
|
+
result = api_instance.get_variant_by_id(id)
|
358
|
+
p result
|
359
|
+
rescue Printful::ApiError => e
|
360
|
+
puts "Error when calling CatalogAPIClient->get_variant_by_id: #{e}"
|
361
|
+
end
|
362
|
+
```
|
363
|
+
|
364
|
+
#### Using the get_variant_by_id_with_http_info variant
|
365
|
+
|
366
|
+
This returns an Array which contains the response data, status code and headers.
|
367
|
+
|
368
|
+
> <Array(<GetVariantById200Response>, Integer, Hash)> get_variant_by_id_with_http_info(id)
|
369
|
+
|
370
|
+
```ruby
|
371
|
+
begin
|
372
|
+
# Get Variant
|
373
|
+
data, status_code, headers = api_instance.get_variant_by_id_with_http_info(id)
|
374
|
+
p status_code # => 2xx
|
375
|
+
p headers # => { ... }
|
376
|
+
p data # => <GetVariantById200Response>
|
377
|
+
rescue Printful::ApiError => e
|
378
|
+
puts "Error when calling CatalogAPIClient->get_variant_by_id_with_http_info: #{e}"
|
379
|
+
end
|
380
|
+
```
|
381
|
+
|
382
|
+
### Parameters
|
383
|
+
|
384
|
+
| Name | Type | Description | Notes |
|
385
|
+
| ---- | ---- | ----------- | ----- |
|
386
|
+
| **id** | **Integer** | Variant id | |
|
387
|
+
|
388
|
+
### Return type
|
389
|
+
|
390
|
+
[**GetVariantById200Response**](GetVariantById200Response.md)
|
391
|
+
|
392
|
+
### Authorization
|
393
|
+
|
394
|
+
No authorization required
|
395
|
+
|
396
|
+
### HTTP request headers
|
397
|
+
|
398
|
+
- **Content-Type**: Not defined
|
399
|
+
- **Accept**: application/json
|
400
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Printful::CatalogFileOption
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | File option identifier. Use this to specify which option you are adding to your file in a request. | [optional] |
|
8
|
+
| **type** | **String** | The type of the value property when using this option in a request. | [optional] |
|
9
|
+
| **title** | **String** | | [optional] |
|
10
|
+
| **additional_price** | **Float** | Additional cost this will add to the item. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'printful_client'
|
16
|
+
|
17
|
+
instance = Printful::CatalogFileOption.new(
|
18
|
+
id: full_color,
|
19
|
+
type: bool,
|
20
|
+
title: Unlimited color,
|
21
|
+
additional_price: 3.25
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
data/docs/Category.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# Printful::Category
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **Integer** | Category ID | [optional] |
|
8
|
+
| **parent_id** | **Integer** | ID of the parent Category. If there is no parent Category, 0 is returned. | [optional] |
|
9
|
+
| **image_url** | **String** | The URL of the Category image | [optional] |
|
10
|
+
| **size** | **String** | The size of the category image | [optional] |
|
11
|
+
| **title** | **String** | Category title | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'printful_client'
|
17
|
+
|
18
|
+
instance = Printful::Category.new(
|
19
|
+
id: 24,
|
20
|
+
parent_id: 6,
|
21
|
+
image_url: https://s3.staging.printful.com/upload/catalog_category/b1/b1513c82696405fcc316fc611c57f132_t?v=1646395980,
|
22
|
+
size: null,
|
23
|
+
title: T-Shirts
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Printful::ChangePackingSlip200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **Integer** | Response status code `200` | [optional] |
|
8
|
+
| **result** | [**ChangePackingSlip200ResponseResult**](ChangePackingSlip200ResponseResult.md) | | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'printful_client'
|
14
|
+
|
15
|
+
instance = Printful::ChangePackingSlip200Response.new(
|
16
|
+
code: 200,
|
17
|
+
result: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Printful::ChangePackingSlip200ResponseResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **packing_slip** | [**PackingSlip**](PackingSlip.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'printful_client'
|
13
|
+
|
14
|
+
instance = Printful::ChangePackingSlip200ResponseResult.new(
|
15
|
+
packing_slip: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/Costs.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Printful::Costs
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **currency** | **String** | 3 letter currency code | [optional] |
|
8
|
+
| **subtotal** | **String** | Total cost of all items | [optional] |
|
9
|
+
| **discount** | **String** | Discount sum | [optional] |
|
10
|
+
| **shipping** | **String** | Shipping costs | [optional] |
|
11
|
+
| **digitization** | **String** | Digitization costs | [optional] |
|
12
|
+
| **additional_fee** | **String** | Additional fee for custom product | [optional] |
|
13
|
+
| **fulfillment_fee** | **String** | Custom product fulfillment fee | [optional] |
|
14
|
+
| **retail_delivery_fee** | **String** | Retail delivery fee | [optional] |
|
15
|
+
| **tax** | **String** | Sum of taxes (not included in the item price) | [optional] |
|
16
|
+
| **vat** | **String** | Sum of vat (not included in the item price) | [optional] |
|
17
|
+
| **total** | **String** | Grand Total (subtotal-discount+tax+vat+shipping) | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'printful_client'
|
23
|
+
|
24
|
+
instance = Printful::Costs.new(
|
25
|
+
currency: USD,
|
26
|
+
subtotal: 10.00,
|
27
|
+
discount: 0.00,
|
28
|
+
shipping: 5.00,
|
29
|
+
digitization: 0.00,
|
30
|
+
additional_fee: 0.00,
|
31
|
+
fulfillment_fee: 0.00,
|
32
|
+
retail_delivery_fee: 0.00,
|
33
|
+
tax: 0.00,
|
34
|
+
vat: 0.00,
|
35
|
+
total: 15.00
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# Printful::CostsByAmountInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **date** | **String** | The date of the value: day in `Y-m-d` format, month in `Y-m` format or \"Total\" for the first element of the list which shows the total values for the whole requested period | [optional] |
|
8
|
+
| **product_amount** | **Float** | Product & fulfillment costs | [optional] |
|
9
|
+
| **digitization** | **Float** | Embroidery digitization costs | [optional] |
|
10
|
+
| **branding** | **Float** | Pack-in costs | [optional] |
|
11
|
+
| **vat** | **Float** | Tax amounts. If not applicable, it will be 0. | [optional] |
|
12
|
+
| **sales_tax** | **Float** | Tax amounts. If not applicable, it will be 0. | [optional] |
|
13
|
+
| **shipping** | **Float** | Shipping costs that were charged by Printful | [optional] |
|
14
|
+
| **discount** | **Float** | Any fulfillment discounts (such as the monthly discount) set up on Printful's side | [optional] |
|
15
|
+
| **total** | **Float** | Summary of all costs | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'printful_client'
|
21
|
+
|
22
|
+
instance = Printful::CostsByAmountInner.new(
|
23
|
+
date: null,
|
24
|
+
product_amount: null,
|
25
|
+
digitization: null,
|
26
|
+
branding: null,
|
27
|
+
vat: null,
|
28
|
+
sales_tax: null,
|
29
|
+
shipping: null,
|
30
|
+
discount: null,
|
31
|
+
total: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Printful::CostsByProductInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **product_id** | **Integer** | Product ID. See [Catalog API](#tag/Catalog-API). | [optional] |
|
8
|
+
| **product_name** | **String** | Product name. | [optional] |
|
9
|
+
| **fulfillment** | **Float** | All fulfillment costs that are charged by Printful, excluding shipping. | [optional] |
|
10
|
+
| **sales** | **Float** | Order retail price data. Available only if retail price fields are properly set up on the integration's side. | [optional] |
|
11
|
+
| **quantity** | **Integer** | Total quantity of items ordered from this product in the selected period. | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'printful_client'
|
17
|
+
|
18
|
+
instance = Printful::CostsByProductInner.new(
|
19
|
+
product_id: null,
|
20
|
+
product_name: null,
|
21
|
+
fulfillment: null,
|
22
|
+
sales: null,
|
23
|
+
quantity: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Printful::CostsByVariantInner
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **variant_id** | **Integer** | Variant ID. See [Catalog API](#tag/Catalog-API). | [optional] |
|
8
|
+
| **variant_name** | **String** | Variant name. | [optional] |
|
9
|
+
| **product_id** | **Integer** | Product ID. See [Catalog API](#tag/Catalog-API). | [optional] |
|
10
|
+
| **fulfillment** | **Float** | All fulfillment costs that are charged by Printful, excluding shipping. | [optional] |
|
11
|
+
| **sales** | **Float** | Order retail price data. Available only if retail price fields are properly set up on the integration's side. | [optional] |
|
12
|
+
| **quantity** | **Integer** | Total quantity of items ordered from this product in the selected period. | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'printful_client'
|
18
|
+
|
19
|
+
instance = Printful::CostsByVariantInner.new(
|
20
|
+
variant_id: null,
|
21
|
+
variant_name: null,
|
22
|
+
product_id: null,
|
23
|
+
fulfillment: null,
|
24
|
+
sales: null,
|
25
|
+
quantity: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
data/docs/Country.md
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
# Printful::Country
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **String** | Country code | [optional] |
|
8
|
+
| **name** | **String** | Country name | [optional] |
|
9
|
+
| **states** | [**Array<State>**](State.md) | | [optional] |
|
10
|
+
| **region** | **String** | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'printful_client'
|
16
|
+
|
17
|
+
instance = Printful::Country.new(
|
18
|
+
code: Australia,
|
19
|
+
name: AU,
|
20
|
+
states: null,
|
21
|
+
region: oceania
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|