shopline-sdk-python 0.1.0__py3-none-any.whl
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.
- shopline_sdk/__init__.py +17 -0
- shopline_sdk/apis/__init__.py +0 -0
- shopline_sdk/apis/addon_products/__init__.py +0 -0
- shopline_sdk/apis/addon_products/bulk_update_addon_product_quantity_by_sku.py +72 -0
- shopline_sdk/apis/addon_products/create_addon_product.py +69 -0
- shopline_sdk/apis/addon_products/get_addon_product.py +42 -0
- shopline_sdk/apis/addon_products/get_addon_product_stocks.py +66 -0
- shopline_sdk/apis/addon_products/get_addon_products.py +84 -0
- shopline_sdk/apis/addon_products/search_addon_products.py +113 -0
- shopline_sdk/apis/addon_products/update_addon_product.py +54 -0
- shopline_sdk/apis/addon_products/update_addon_product_quantity.py +96 -0
- shopline_sdk/apis/addon_products/update_addon_product_stock.py +86 -0
- shopline_sdk/apis/affiliate_campaigns/__init__.py +0 -0
- shopline_sdk/apis/affiliate_campaigns/create_affiliate_campaign.py +109 -0
- shopline_sdk/apis/affiliate_campaigns/delete_affiliate_campaign.py +44 -0
- shopline_sdk/apis/affiliate_campaigns/export_affiliate_campaign_report_to_partner.py +60 -0
- shopline_sdk/apis/affiliate_campaigns/get_affiliate_campaign.py +59 -0
- shopline_sdk/apis/affiliate_campaigns/get_affiliate_campaign_orders.py +75 -0
- shopline_sdk/apis/affiliate_campaigns/get_affiliate_campaign_summary.py +49 -0
- shopline_sdk/apis/affiliate_campaigns/get_affiliate_campaigns.py +84 -0
- shopline_sdk/apis/affiliate_campaigns/get_products_sales_ranking_of_campaign.py +73 -0
- shopline_sdk/apis/affiliate_campaigns/update_affiliate_campaign.py +96 -0
- shopline_sdk/apis/agents/__init__.py +0 -0
- shopline_sdk/apis/agents/get_agent.py +59 -0
- shopline_sdk/apis/agents/get_agents.py +77 -0
- shopline_sdk/apis/bulk_operations/__init__.py +0 -0
- shopline_sdk/apis/bulk_operations/get_a_bulk_operation.py +43 -0
- shopline_sdk/apis/bulk_operations/get_bulk_operations.py +57 -0
- shopline_sdk/apis/cart_item_app_metafields/__init__.py +0 -0
- shopline_sdk/apis/cart_item_app_metafields/bulk_create_app_metafield.py +52 -0
- shopline_sdk/apis/cart_item_app_metafields/bulk_delete_app_metafield.py +61 -0
- shopline_sdk/apis/cart_item_app_metafields/bulk_update_app_metafield.py +62 -0
- shopline_sdk/apis/cart_item_app_metafields/get_app_metafields_attached_to_cart_items_of_specific_cart.py +61 -0
- shopline_sdk/apis/cart_item_metafields/__init__.py +0 -0
- shopline_sdk/apis/cart_item_metafields/bulk_create_metafield.py +52 -0
- shopline_sdk/apis/cart_item_metafields/bulk_delete_metafield.py +62 -0
- shopline_sdk/apis/cart_item_metafields/bulk_update_metafield.py +62 -0
- shopline_sdk/apis/cart_item_metafields/get_metafields_attached_to_cart_items_of_specific_cart.py +62 -0
- shopline_sdk/apis/carts/__init__.py +0 -0
- shopline_sdk/apis/carts/bulk_add_items_to_cart.py +80 -0
- shopline_sdk/apis/carts/bulk_delete_cart_items.py +59 -0
- shopline_sdk/apis/carts/bulk_patch_cart_items.py +61 -0
- shopline_sdk/apis/carts/get_cart.py +63 -0
- shopline_sdk/apis/carts/get_cart_id.py +74 -0
- shopline_sdk/apis/categories/__init__.py +0 -0
- shopline_sdk/apis/categories/bulk_assign.py +75 -0
- shopline_sdk/apis/categories/bulk_update_category_product_sorting.py +84 -0
- shopline_sdk/apis/categories/create_category.py +62 -0
- shopline_sdk/apis/categories/delete_category.py +62 -0
- shopline_sdk/apis/categories/get_categories.py +104 -0
- shopline_sdk/apis/categories/get_category.py +76 -0
- shopline_sdk/apis/categories/update_category.py +70 -0
- shopline_sdk/apis/channels/__init__.py +0 -0
- shopline_sdk/apis/channels/create_product_channel_price.py +45 -0
- shopline_sdk/apis/channels/get_channel.py +76 -0
- shopline_sdk/apis/channels/get_channels.py +83 -0
- shopline_sdk/apis/channels/get_product_channel_price.py +75 -0
- shopline_sdk/apis/channels/update_product_channel_price.py +45 -0
- shopline_sdk/apis/conversations/__init__.py +0 -0
- shopline_sdk/apis/conversations/create_order_message.py +91 -0
- shopline_sdk/apis/conversations/create_return_order_message.py +90 -0
- shopline_sdk/apis/conversations/create_shop_message.py +81 -0
- shopline_sdk/apis/conversations/get_conversations.py +76 -0
- shopline_sdk/apis/conversations/get_messages.py +76 -0
- shopline_sdk/apis/custom_fields/__init__.py +0 -0
- shopline_sdk/apis/custom_fields/get_custom_fields.py +42 -0
- shopline_sdk/apis/customer_app_metafields/__init__.py +0 -0
- shopline_sdk/apis/customer_app_metafields/create_specific_app_metafield.py +44 -0
- shopline_sdk/apis/customer_app_metafields/delete_specific_app_metafield.py +42 -0
- shopline_sdk/apis/customer_app_metafields/get_app_metafields_attached_to_specific_customer.py +61 -0
- shopline_sdk/apis/customer_app_metafields/get_specific_app_metafield.py +41 -0
- shopline_sdk/apis/customer_app_metafields/update_specific_app_metafield.py +44 -0
- shopline_sdk/apis/customer_group_children/__init__.py +0 -0
- shopline_sdk/apis/customer_group_children/get_children_group_of_the_customer_group.py +89 -0
- shopline_sdk/apis/customer_groups/__init__.py +0 -0
- shopline_sdk/apis/customer_groups/get_customer_group.py +65 -0
- shopline_sdk/apis/customer_groups/get_customer_groups.py +108 -0
- shopline_sdk/apis/customer_groups/get_customer_ids_of_the_specific_customer_group.py +84 -0
- shopline_sdk/apis/customer_groups/search_customer_groups.py +92 -0
- shopline_sdk/apis/customer_metafields/__init__.py +0 -0
- shopline_sdk/apis/customer_metafields/create_specific_metafield.py +44 -0
- shopline_sdk/apis/customer_metafields/delete_specific_metafield.py +42 -0
- shopline_sdk/apis/customer_metafields/get_metafields_attached_to_specific_customer.py +62 -0
- shopline_sdk/apis/customer_metafields/get_specific_metafield.py +41 -0
- shopline_sdk/apis/customer_metafields/update_specific_metafield.py +44 -0
- shopline_sdk/apis/customers/__init__.py +0 -0
- shopline_sdk/apis/customers/add_or_remove_customer_tags.py +93 -0
- shopline_sdk/apis/customers/create_customer.py +87 -0
- shopline_sdk/apis/customers/delete_customer.py +62 -0
- shopline_sdk/apis/customers/get_customer.py +94 -0
- shopline_sdk/apis/customers/get_customer_member_points_history.py +92 -0
- shopline_sdk/apis/customers/get_customer_store_credit_history.py +98 -0
- shopline_sdk/apis/customers/get_customers.py +127 -0
- shopline_sdk/apis/customers/get_line_customer.py +67 -0
- shopline_sdk/apis/customers/getcustomers_smembershipinfo.py +93 -0
- shopline_sdk/apis/customers/search_customers.py +216 -0
- shopline_sdk/apis/customers/update_customer.py +87 -0
- shopline_sdk/apis/customers/update_customer_member_points.py +113 -0
- shopline_sdk/apis/customers/update_customer_store_credits.py +172 -0
- shopline_sdk/apis/customers/update_customer_subscriptions.py +64 -0
- shopline_sdk/apis/customers/update_customer_tags.py +88 -0
- shopline_sdk/apis/delivery_options/__init__.py +0 -0
- shopline_sdk/apis/delivery_options/get_delivery_config.py +52 -0
- shopline_sdk/apis/delivery_options/get_delivery_option.py +42 -0
- shopline_sdk/apis/delivery_options/get_delivery_options.py +65 -0
- shopline_sdk/apis/delivery_options/get_delivery_time_slots.py +64 -0
- shopline_sdk/apis/delivery_options/updatedeliveryoption_sstoreinformation.py +67 -0
- shopline_sdk/apis/event_trackers/__init__.py +0 -0
- shopline_sdk/apis/event_trackers/create_an_event_tracker.py +83 -0
- shopline_sdk/apis/event_trackers/delete_an_event_tracker.py +57 -0
- shopline_sdk/apis/event_trackers/get_an_event_tracker.py +64 -0
- shopline_sdk/apis/event_trackers/get_event_trackers.py +97 -0
- shopline_sdk/apis/event_trackers/update_event_tracker.py +91 -0
- shopline_sdk/apis/flash_price_campaigns/__init__.py +0 -0
- shopline_sdk/apis/flash_price_campaigns/create_flash_price_campaign.py +45 -0
- shopline_sdk/apis/flash_price_campaigns/delete_flash_price_campaign.py +44 -0
- shopline_sdk/apis/flash_price_campaigns/get_a_flash_price_campaign.py +43 -0
- shopline_sdk/apis/flash_price_campaigns/get_flash_price_campaigns.py +72 -0
- shopline_sdk/apis/flash_price_campaigns/update_flash_price_campaign.py +46 -0
- shopline_sdk/apis/gifts/__init__.py +0 -0
- shopline_sdk/apis/gifts/bulk_update_quantity_by_sku.py +106 -0
- shopline_sdk/apis/gifts/create_gift.py +57 -0
- shopline_sdk/apis/gifts/get_gift_stocks.py +66 -0
- shopline_sdk/apis/gifts/get_gifts.py +86 -0
- shopline_sdk/apis/gifts/search_gifts.py +110 -0
- shopline_sdk/apis/gifts/update_gift.py +54 -0
- shopline_sdk/apis/gifts/update_gift_quantity.py +100 -0
- shopline_sdk/apis/gifts/update_gift_stock.py +86 -0
- shopline_sdk/apis/layouts/__init__.py +0 -0
- shopline_sdk/apis/layouts/get_layouts_sections.py +77 -0
- shopline_sdk/apis/medias/__init__.py +0 -0
- shopline_sdk/apis/medias/create_image.py +52 -0
- shopline_sdk/apis/member_point_rules/__init__.py +0 -0
- shopline_sdk/apis/member_point_rules/get_member_point_rules.py +55 -0
- shopline_sdk/apis/member_points/__init__.py +0 -0
- shopline_sdk/apis/member_points/bulk_update_member_points.py +87 -0
- shopline_sdk/apis/membership_tiers/__init__.py +0 -0
- shopline_sdk/apis/membership_tiers/get_customer_membership_tier_history.py +84 -0
- shopline_sdk/apis/membership_tiers/get_membership_tiers.py +65 -0
- shopline_sdk/apis/merchant_app_metafields/__init__.py +0 -0
- shopline_sdk/apis/merchant_app_metafields/get_app_metafields_attached_to_current_merchant.py +61 -0
- shopline_sdk/apis/merchant_metafields/__init__.py +0 -0
- shopline_sdk/apis/merchant_metafields/get_metafields_attached_to_current_merchant.py +62 -0
- shopline_sdk/apis/merchants/__init__.py +0 -0
- shopline_sdk/apis/merchants/generatemerchant_sexpresscartlink.py +66 -0
- shopline_sdk/apis/merchants/get_merchant.py +56 -0
- shopline_sdk/apis/merchants/get_merchants.py +46 -0
- shopline_sdk/apis/metafield_definitions/__init__.py +0 -0
- shopline_sdk/apis/metafield_definitions/create_specific_metafield_definition.py +44 -0
- shopline_sdk/apis/metafield_definitions/get_an_array_of_metafield_definitions.py +45 -0
- shopline_sdk/apis/metafield_definitions/get_specific_metafield_definition.py +41 -0
- shopline_sdk/apis/multipass_linking/__init__.py +0 -0
- shopline_sdk/apis/multipass_linking/delete_multipass_linking_for_customer.py +61 -0
- shopline_sdk/apis/multipass_linking/get_active_multipass_linkings.py +67 -0
- shopline_sdk/apis/multipass_linking/update_multipass_linking_for_customer.py +69 -0
- shopline_sdk/apis/multipass_secret/__init__.py +0 -0
- shopline_sdk/apis/multipass_secret/create_multipass_secret.py +41 -0
- shopline_sdk/apis/multipass_secret/get_multipass_secret.py +50 -0
- shopline_sdk/apis/order_app_metafields/__init__.py +0 -0
- shopline_sdk/apis/order_app_metafields/get_app_metafields_attached_to_specific_order.py +61 -0
- shopline_sdk/apis/order_deliveries/__init__.py +0 -0
- shopline_sdk/apis/order_deliveries/get_order_delivery.py +43 -0
- shopline_sdk/apis/order_deliveries/update_order_delivery.py +63 -0
- shopline_sdk/apis/order_item_app_metafields/__init__.py +0 -0
- shopline_sdk/apis/order_item_app_metafields/get_app_metafields_attached_to_order_items_of_specific_order.py +61 -0
- shopline_sdk/apis/order_item_metafields/__init__.py +0 -0
- shopline_sdk/apis/order_item_metafields/get_metafields_attached_to_order_items_of_specific_order.py +62 -0
- shopline_sdk/apis/order_metafields/__init__.py +0 -0
- shopline_sdk/apis/order_metafields/get_metafields_attached_to_specific_order.py +62 -0
- shopline_sdk/apis/orders/__init__.py +0 -0
- shopline_sdk/apis/orders/bulk_execute_shipment.py +70 -0
- shopline_sdk/apis/orders/cancel_order.py +70 -0
- shopline_sdk/apis/orders/create_archived_orders_report.py +72 -0
- shopline_sdk/apis/orders/create_order.py +90 -0
- shopline_sdk/apis/orders/execute_shipment.py +63 -0
- shopline_sdk/apis/orders/get_all_orders_tags.py +54 -0
- shopline_sdk/apis/orders/get_order.py +78 -0
- shopline_sdk/apis/orders/get_order_action_logs.py +62 -0
- shopline_sdk/apis/orders/get_order_labels_of_delivery.py +94 -0
- shopline_sdk/apis/orders/get_order_transaction_by_order_ids.py +58 -0
- shopline_sdk/apis/orders/get_orders.py +111 -0
- shopline_sdk/apis/orders/search_orders.py +339 -0
- shopline_sdk/apis/orders/split_order.py +84 -0
- shopline_sdk/apis/orders/update_order.py +123 -0
- shopline_sdk/apis/orders/update_order_delivery_status.py +88 -0
- shopline_sdk/apis/orders/update_order_payment_status.py +92 -0
- shopline_sdk/apis/orders/update_order_status.py +94 -0
- shopline_sdk/apis/orders/update_order_tags.py +91 -0
- shopline_sdk/apis/payments/__init__.py +0 -0
- shopline_sdk/apis/payments/get_payment.py +59 -0
- shopline_sdk/apis/payments/get_payments.py +88 -0
- shopline_sdk/apis/product_app_metafields/__init__.py +0 -0
- shopline_sdk/apis/product_app_metafields/get_app_metafields_attached_to_specific_product.py +61 -0
- shopline_sdk/apis/product_metafields/__init__.py +0 -0
- shopline_sdk/apis/product_metafields/get_metafields_attached_to_specific_product.py +62 -0
- shopline_sdk/apis/product_review_comments/__init__.py +0 -0
- shopline_sdk/apis/product_review_comments/bulk_create_product_review_comments.py +66 -0
- shopline_sdk/apis/product_review_comments/bulk_delete_product_review_comments.py +46 -0
- shopline_sdk/apis/product_review_comments/bulk_update_product_review_comments.py +64 -0
- shopline_sdk/apis/product_review_comments/create_product_review_comments.py +45 -0
- shopline_sdk/apis/product_review_comments/delete_product_review_comment.py +37 -0
- shopline_sdk/apis/product_review_comments/get_product_review_comment.py +42 -0
- shopline_sdk/apis/product_review_comments/get_product_review_comments.py +91 -0
- shopline_sdk/apis/product_review_comments/update_product_review_comment.py +45 -0
- shopline_sdk/apis/product_subscriptions/__init__.py +0 -0
- shopline_sdk/apis/product_subscriptions/get_a_list_of_product_subscriptions.py +71 -0
- shopline_sdk/apis/product_subscriptions/get_product_subscription.py +42 -0
- shopline_sdk/apis/products/__init__.py +0 -0
- shopline_sdk/apis/products/add_product_images.py +84 -0
- shopline_sdk/apis/products/batch_update_current_product_labels.py +73 -0
- shopline_sdk/apis/products/bulk_delete_product.py +77 -0
- shopline_sdk/apis/products/bulk_update_stock.py +81 -0
- shopline_sdk/apis/products/bulkpublish_unpublishproductinonlinestore.py +64 -0
- shopline_sdk/apis/products/bulkpublish_unpublishproductinretailstore.py +64 -0
- shopline_sdk/apis/products/create_product.py +54 -0
- shopline_sdk/apis/products/create_product_variation.py +70 -0
- shopline_sdk/apis/products/delete_product.py +70 -0
- shopline_sdk/apis/products/delete_product_images.py +54 -0
- shopline_sdk/apis/products/delete_product_variation.py +70 -0
- shopline_sdk/apis/products/get_locked_inventory_count.py +53 -0
- shopline_sdk/apis/products/get_product.py +79 -0
- shopline_sdk/apis/products/get_product_stocks.py +66 -0
- shopline_sdk/apis/products/get_products.py +112 -0
- shopline_sdk/apis/products/search_products.py +58 -0
- shopline_sdk/apis/products/update_current_product_tags.py +80 -0
- shopline_sdk/apis/products/update_product.py +54 -0
- shopline_sdk/apis/products/update_product_price.py +94 -0
- shopline_sdk/apis/products/update_product_quantity.py +102 -0
- shopline_sdk/apis/products/update_product_variation.py +46 -0
- shopline_sdk/apis/products/update_product_variation_price.py +92 -0
- shopline_sdk/apis/products/update_product_variation_quantity.py +111 -0
- shopline_sdk/apis/products/update_quantity_by_sku.py +114 -0
- shopline_sdk/apis/products/update_stock.py +89 -0
- shopline_sdk/apis/promotions/__init__.py +0 -0
- shopline_sdk/apis/promotions/create_promotion.py +45 -0
- shopline_sdk/apis/promotions/delete_promotion.py +44 -0
- shopline_sdk/apis/promotions/get_customer_coupon_promotions.py +61 -0
- shopline_sdk/apis/promotions/get_customer_promotions.py +63 -0
- shopline_sdk/apis/promotions/get_promotion.py +60 -0
- shopline_sdk/apis/promotions/get_promotions.py +106 -0
- shopline_sdk/apis/promotions/search_promotions.py +108 -0
- shopline_sdk/apis/promotions/update_promotion.py +54 -0
- shopline_sdk/apis/purchase_orders/__init__.py +0 -0
- shopline_sdk/apis/purchase_orders/create_child_purchase_order.py +66 -0
- shopline_sdk/apis/purchase_orders/create_purchase_order.py +66 -0
- shopline_sdk/apis/purchase_orders/delete_the_specified_purchase_orders.py +60 -0
- shopline_sdk/apis/purchase_orders/get_purchase_orders.py +89 -0
- shopline_sdk/apis/purchase_orders/get_the_specified_purchase_order.py +59 -0
- shopline_sdk/apis/purchase_orders/update_purchase_order.py +66 -0
- shopline_sdk/apis/return_orders/__init__.py +0 -0
- shopline_sdk/apis/return_orders/create_return_order.py +62 -0
- shopline_sdk/apis/return_orders/get_return_order.py +42 -0
- shopline_sdk/apis/return_orders/get_return_orders.py +95 -0
- shopline_sdk/apis/return_orders/update_return_order.py +70 -0
- shopline_sdk/apis/sales/__init__.py +0 -0
- shopline_sdk/apis/sales/create_sale_products.py +78 -0
- shopline_sdk/apis/sales/delete_sale_products.py +44 -0
- shopline_sdk/apis/sales/get_sale_comments.py +77 -0
- shopline_sdk/apis/sales/get_sale_customers.py +69 -0
- shopline_sdk/apis/sales/get_sale_products.py +74 -0
- shopline_sdk/apis/sales/update_sale_product_status.py +71 -0
- shopline_sdk/apis/sales/update_sale_products.py +78 -0
- shopline_sdk/apis/settings/__init__.py +0 -0
- shopline_sdk/apis/settings/get_checkout_setting.py +51 -0
- shopline_sdk/apis/settings/get_domains_setting.py +51 -0
- shopline_sdk/apis/settings/get_layouts_draft_setting.py +59 -0
- shopline_sdk/apis/settings/get_layouts_setting.py +59 -0
- shopline_sdk/apis/settings/get_orders_setting.py +51 -0
- shopline_sdk/apis/settings/get_payments_setting.py +51 -0
- shopline_sdk/apis/settings/get_pos_setting.py +51 -0
- shopline_sdk/apis/settings/get_product_review_setting.py +51 -0
- shopline_sdk/apis/settings/get_products_setting.py +51 -0
- shopline_sdk/apis/settings/get_promotions_setting.py +51 -0
- shopline_sdk/apis/settings/get_setting.py +42 -0
- shopline_sdk/apis/settings/get_shop_setting.py +51 -0
- shopline_sdk/apis/settings/get_tax_setting.py +51 -0
- shopline_sdk/apis/settings/get_theme_draft_setting.py +59 -0
- shopline_sdk/apis/settings/get_theme_setting.py +59 -0
- shopline_sdk/apis/settings/get_third_party_ads_setting.py +42 -0
- shopline_sdk/apis/settings/get_users_setting.py +65 -0
- shopline_sdk/apis/settings/publish_layouts_setting.py +73 -0
- shopline_sdk/apis/settings/publish_theme_setting.py +59 -0
- shopline_sdk/apis/settings/save_layouts_draft_setting.py +67 -0
- shopline_sdk/apis/settings/save_theme_setting.py +59 -0
- shopline_sdk/apis/settings/update_domains_setting.py +85 -0
- shopline_sdk/apis/staffs/__init__.py +0 -0
- shopline_sdk/apis/staffs/get_all_staff.py +62 -0
- shopline_sdk/apis/staffs/get_staff.py +59 -0
- shopline_sdk/apis/staffs/get_staff_permissions.py +62 -0
- shopline_sdk/apis/store_credits/__init__.py +0 -0
- shopline_sdk/apis/store_credits/bulk_update_store_credits.py +90 -0
- shopline_sdk/apis/store_credits/get_store_credits.py +87 -0
- shopline_sdk/apis/storefront_oauth_applications/__init__.py +0 -0
- shopline_sdk/apis/storefront_oauth_applications/create_storefront_o_auth_application.py +52 -0
- shopline_sdk/apis/storefront_oauth_applications/delete_storefront_oauth_application_by_id.py +47 -0
- shopline_sdk/apis/storefront_oauth_applications/get_storefront_o_auth_application.py +41 -0
- shopline_sdk/apis/storefront_oauth_applications/get_storefront_o_auth_application_by_id.py +50 -0
- shopline_sdk/apis/storefront_tokens/__init__.py +0 -0
- shopline_sdk/apis/storefront_tokens/create_storefront_token.py +60 -0
- shopline_sdk/apis/storefront_tokens/delete_storefront_token_by_id.py +54 -0
- shopline_sdk/apis/storefront_tokens/get_storefront_token_by_id.py +51 -0
- shopline_sdk/apis/storefront_tokens/list_all_storefront_tokens.py +46 -0
- shopline_sdk/apis/taxes/__init__.py +0 -0
- shopline_sdk/apis/taxes/get_taxes.py +65 -0
- shopline_sdk/apis/themes/__init__.py +0 -0
- shopline_sdk/apis/themes/get_theme_by_theme_key.py +63 -0
- shopline_sdk/apis/themes/getthethemesectionsbytheme_key.py +76 -0
- shopline_sdk/apis/token/__init__.py +0 -0
- shopline_sdk/apis/token/get_token_info.py +44 -0
- shopline_sdk/apis/user_coupons/__init__.py +0 -0
- shopline_sdk/apis/user_coupons/claim_user_coupon.py +45 -0
- shopline_sdk/apis/user_coupons/create_user_coupon.py +40 -0
- shopline_sdk/apis/user_coupons/get_user_coupons.py +55 -0
- shopline_sdk/apis/user_coupons/get_user_coupons_with_cursor.py +57 -0
- shopline_sdk/apis/user_coupons/redeem_user_coupon.py +45 -0
- shopline_sdk/apis/warehouses/__init__.py +0 -0
- shopline_sdk/apis/warehouses/get_warehouses.py +92 -0
- shopline_sdk/apis/webhooks/__init__.py +0 -0
- shopline_sdk/apis/webhooks/create_webhook.py +45 -0
- shopline_sdk/apis/webhooks/delete_webhook.py +37 -0
- shopline_sdk/apis/webhooks/get_webhook.py +42 -0
- shopline_sdk/apis/webhooks/get_webhooks.py +59 -0
- shopline_sdk/apis/webhooks/update_webhook.py +45 -0
- shopline_sdk/apis/wish_list_items/__init__.py +0 -0
- shopline_sdk/apis/wish_list_items/create_wish_list_item.py +68 -0
- shopline_sdk/apis/wish_list_items/delete_wish_list_item.py +89 -0
- shopline_sdk/apis/wish_list_items/get_wish_list_items.py +88 -0
- shopline_sdk/client.py +15 -0
- shopline_sdk/exceptions.py +48 -0
- shopline_sdk/helper.py +84 -0
- shopline_sdk/models/__init__.py +610 -0
- shopline_sdk/models/addon_product.py +50 -0
- shopline_sdk/models/addon_products.py +14 -0
- shopline_sdk/models/addon_products_cursor_based.py +15 -0
- shopline_sdk/models/address_node.py +27 -0
- shopline_sdk/models/address_nodes.py +20 -0
- shopline_sdk/models/address_preference.py +46 -0
- shopline_sdk/models/address_preference_layout_data.py +15 -0
- shopline_sdk/models/address_preferences.py +16 -0
- shopline_sdk/models/affiliate.py +32 -0
- shopline_sdk/models/affiliate_campaign.py +53 -0
- shopline_sdk/models/affiliate_campaign_order.py +75 -0
- shopline_sdk/models/affiliate_campaign_orders.py +16 -0
- shopline_sdk/models/affiliate_campaigns.py +20 -0
- shopline_sdk/models/agent.py +20 -0
- shopline_sdk/models/agent_work_log.py +30 -0
- shopline_sdk/models/agent_work_logs.py +12 -0
- shopline_sdk/models/agents.py +14 -0
- shopline_sdk/models/analytics.py +12 -0
- shopline_sdk/models/app_metafield_value.py +26 -0
- shopline_sdk/models/app_setting.py +9 -0
- shopline_sdk/models/bad_request_error.py +14 -0
- shopline_sdk/models/bearer_auth.py +9 -0
- shopline_sdk/models/bulk_delete_metafield_body.py +15 -0
- shopline_sdk/models/bulk_update_app_metafield_body.py +16 -0
- shopline_sdk/models/bulk_update_metafield_body.py +17 -0
- shopline_sdk/models/campaign_product.py +18 -0
- shopline_sdk/models/cart.py +128 -0
- shopline_sdk/models/cart_delivery.py +24 -0
- shopline_sdk/models/cart_item.py +51 -0
- shopline_sdk/models/cart_product.py +83 -0
- shopline_sdk/models/cart_product_variation.py +36 -0
- shopline_sdk/models/cart_promotion.py +19 -0
- shopline_sdk/models/categories.py +14 -0
- shopline_sdk/models/categories_cursor_based.py +15 -0
- shopline_sdk/models/category.py +45 -0
- shopline_sdk/models/category_layout.py +23 -0
- shopline_sdk/models/change_payment_method_response.py +14 -0
- shopline_sdk/models/channel.py +49 -0
- shopline_sdk/models/channel_param.py +11 -0
- shopline_sdk/models/channels.py +14 -0
- shopline_sdk/models/checkout_setting.py +37 -0
- shopline_sdk/models/corporate_info.py +34 -0
- shopline_sdk/models/coupon_item.py +53 -0
- shopline_sdk/models/create_agent_body.py +17 -0
- shopline_sdk/models/create_agent_work_log_request_body.py +18 -0
- shopline_sdk/models/create_app_metafield_body.py +15 -0
- shopline_sdk/models/create_bulk_operation_body.py +22 -0
- shopline_sdk/models/create_category_body.py +27 -0
- shopline_sdk/models/create_channel_price_body.py +21 -0
- shopline_sdk/models/create_customer_body.py +63 -0
- shopline_sdk/models/create_customer_group_activity_body.py +24 -0
- shopline_sdk/models/create_delivery_option_body.py +38 -0
- shopline_sdk/models/create_event_tracker_body.py +23 -0
- shopline_sdk/models/create_flash_price_campaign_body.py +22 -0
- shopline_sdk/models/create_metafield_body.py +16 -0
- shopline_sdk/models/create_metafield_definition_body.py +18 -0
- shopline_sdk/models/create_page_body.py +25 -0
- shopline_sdk/models/create_product_body.py +84 -0
- shopline_sdk/models/create_product_feed_setting_body.py +31 -0
- shopline_sdk/models/create_product_review_comment_body.py +21 -0
- shopline_sdk/models/create_product_variation_body.py +13 -0
- shopline_sdk/models/create_promotion_body.py +56 -0
- shopline_sdk/models/create_return_order_body.py +49 -0
- shopline_sdk/models/create_sub_res_app_metafield_body.py +16 -0
- shopline_sdk/models/create_sub_res_metafield_body.py +17 -0
- shopline_sdk/models/create_user_coupon_body.py +18 -0
- shopline_sdk/models/create_webhook_body.py +14 -0
- shopline_sdk/models/create_wish_list_item_body.py +27 -0
- shopline_sdk/models/cursor_based_paginatable.py +12 -0
- shopline_sdk/models/custom_field.py +18 -0
- shopline_sdk/models/customer.py +200 -0
- shopline_sdk/models/customer_coupon_promotions.py +12 -0
- shopline_sdk/models/customer_group.py +33 -0
- shopline_sdk/models/customer_group_activity.py +28 -0
- shopline_sdk/models/customer_groups.py +14 -0
- shopline_sdk/models/customer_promotion.py +54 -0
- shopline_sdk/models/customer_viewed_categories.py +14 -0
- shopline_sdk/models/customer_viewed_category.py +14 -0
- shopline_sdk/models/customer_viewed_product.py +14 -0
- shopline_sdk/models/customer_viewed_products.py +14 -0
- shopline_sdk/models/delivery_option.py +74 -0
- shopline_sdk/models/delivery_rate.py +17 -0
- shopline_sdk/models/delivery_time_slot.py +27 -0
- shopline_sdk/models/domains_setting.py +13 -0
- shopline_sdk/models/domains_setting_webmaster.py +20 -0
- shopline_sdk/models/end_date_param.py +10 -0
- shopline_sdk/models/entity_render_error.py +11 -0
- shopline_sdk/models/event_tracker.py +35 -0
- shopline_sdk/models/event_trackers.py +14 -0
- shopline_sdk/models/extend_promotion.py +25 -0
- shopline_sdk/models/facebook_business_extension_domains_entity.py +16 -0
- shopline_sdk/models/filter_tag.py +14 -0
- shopline_sdk/models/flash_price_campaign.py +39 -0
- shopline_sdk/models/flash_price_campaigns.py +16 -0
- shopline_sdk/models/forbidden_error.py +14 -0
- shopline_sdk/models/gift.py +54 -0
- shopline_sdk/models/gifts.py +14 -0
- shopline_sdk/models/gifts_cursor_based.py +15 -0
- shopline_sdk/models/global_section.py +12 -0
- shopline_sdk/models/global_section_settings.py +27 -0
- shopline_sdk/models/gross_amount_analytics.py +28 -0
- shopline_sdk/models/gross_orders_analytics.py +29 -0
- shopline_sdk/models/individual_info.py +14 -0
- shopline_sdk/models/interval_param.py +11 -0
- shopline_sdk/models/invoice.py +17 -0
- shopline_sdk/models/is_real_time_param.py +10 -0
- shopline_sdk/models/job.py +48 -0
- shopline_sdk/models/jobs.py +14 -0
- shopline_sdk/models/layout_sections.py +12 -0
- shopline_sdk/models/layouts_setting.py +14 -0
- shopline_sdk/models/limit_exceeded_error.py +14 -0
- shopline_sdk/models/link.py +39 -0
- shopline_sdk/models/lock_inventory.py +9 -0
- shopline_sdk/models/lock_inventory_count.py +14 -0
- shopline_sdk/models/max_applicable_member_point.py +16 -0
- shopline_sdk/models/media.py +16 -0
- shopline_sdk/models/media_upload_error.py +10 -0
- shopline_sdk/models/member_point.py +28 -0
- shopline_sdk/models/member_point_fulfillment.py +23 -0
- shopline_sdk/models/member_point_rule.py +40 -0
- shopline_sdk/models/member_point_rules.py +12 -0
- shopline_sdk/models/member_points.py +14 -0
- shopline_sdk/models/member_registration_analytics.py +29 -0
- shopline_sdk/models/membership_info.py +56 -0
- shopline_sdk/models/membership_tier.py +26 -0
- shopline_sdk/models/membership_tier_action_log.py +19 -0
- shopline_sdk/models/membership_tier_action_logs.py +14 -0
- shopline_sdk/models/membership_tier_rule.py +53 -0
- shopline_sdk/models/merchant.py +78 -0
- shopline_sdk/models/merchant_kyc.py +24 -0
- shopline_sdk/models/merchant_tax.py +50 -0
- shopline_sdk/models/metafield_definition.py +28 -0
- shopline_sdk/models/metafield_value.py +28 -0
- shopline_sdk/models/money.py +13 -0
- shopline_sdk/models/multipass_linking.py +22 -0
- shopline_sdk/models/multipass_linkings.py +16 -0
- shopline_sdk/models/multipass_secret.py +20 -0
- shopline_sdk/models/net_amount_analytics.py +28 -0
- shopline_sdk/models/net_orders_analytics.py +29 -0
- shopline_sdk/models/not_found_error.py +12 -0
- shopline_sdk/models/order.py +218 -0
- shopline_sdk/models/order_action_log.py +16 -0
- shopline_sdk/models/order_action_logs.py +12 -0
- shopline_sdk/models/order_agent.py +16 -0
- shopline_sdk/models/order_campaign_item.py +27 -0
- shopline_sdk/models/order_comment.py +28 -0
- shopline_sdk/models/order_conversation.py +39 -0
- shopline_sdk/models/order_conversations.py +14 -0
- shopline_sdk/models/order_conversations_message.py +32 -0
- shopline_sdk/models/order_conversations_messages.py +16 -0
- shopline_sdk/models/order_customer_info.py +24 -0
- shopline_sdk/models/order_delivery.py +57 -0
- shopline_sdk/models/order_delivery_address.py +37 -0
- shopline_sdk/models/order_delivery_data.py +28 -0
- shopline_sdk/models/order_inspect_item.py +18 -0
- shopline_sdk/models/order_invoice.py +32 -0
- shopline_sdk/models/order_item.py +93 -0
- shopline_sdk/models/order_payment.py +38 -0
- shopline_sdk/models/order_promotion_item.py +24 -0
- shopline_sdk/models/order_source.py +16 -0
- shopline_sdk/models/order_tag.py +10 -0
- shopline_sdk/models/order_transaction.py +32 -0
- shopline_sdk/models/orders_setting.py +25 -0
- shopline_sdk/models/page.py +49 -0
- shopline_sdk/models/page_block_settings.py +12 -0
- shopline_sdk/models/page_section.py +14 -0
- shopline_sdk/models/page_section_schema.py +37 -0
- shopline_sdk/models/page_section_settings.py +29 -0
- shopline_sdk/models/page_sections.py +12 -0
- shopline_sdk/models/paginatable.py +16 -0
- shopline_sdk/models/pagination.py +12 -0
- shopline_sdk/models/payment.py +33 -0
- shopline_sdk/models/payment_config_data.py +14 -0
- shopline_sdk/models/payment_fee_item.py +31 -0
- shopline_sdk/models/payment_settlement.py +47 -0
- shopline_sdk/models/payments_setting.py +17 -0
- shopline_sdk/models/pos_payment.py +19 -0
- shopline_sdk/models/pos_setting.py +15 -0
- shopline_sdk/models/price_detail.py +15 -0
- shopline_sdk/models/price_set.py +29 -0
- shopline_sdk/models/price_sets.py +12 -0
- shopline_sdk/models/product.py +201 -0
- shopline_sdk/models/product_feed_setting.py +45 -0
- shopline_sdk/models/product_feed_settings.py +14 -0
- shopline_sdk/models/product_ids_param.py +10 -0
- shopline_sdk/models/product_price_tier.py +26 -0
- shopline_sdk/models/product_related_theme_settings.py +23 -0
- shopline_sdk/models/product_revenue.py +26 -0
- shopline_sdk/models/product_revenues.py +14 -0
- shopline_sdk/models/product_review.py +28 -0
- shopline_sdk/models/product_review_comment.py +31 -0
- shopline_sdk/models/product_review_comments.py +14 -0
- shopline_sdk/models/product_review_comments_cursor_based.py +15 -0
- shopline_sdk/models/product_review_setting.py +32 -0
- shopline_sdk/models/product_reviews.py +14 -0
- shopline_sdk/models/product_stock.py +34 -0
- shopline_sdk/models/product_subscription.py +34 -0
- shopline_sdk/models/product_variation.py +56 -0
- shopline_sdk/models/products_cursor_based.py +17 -0
- shopline_sdk/models/products_setting.py +28 -0
- shopline_sdk/models/promotion.py +104 -0
- shopline_sdk/models/promotion_condition.py +27 -0
- shopline_sdk/models/promotion_excluded_hints.py +16 -0
- shopline_sdk/models/promotions_setting.py +28 -0
- shopline_sdk/models/purchase_order.py +63 -0
- shopline_sdk/models/purchase_order_item.py +66 -0
- shopline_sdk/models/purchase_orders.py +14 -0
- shopline_sdk/models/quantity_update_not_allowed_error.py +14 -0
- shopline_sdk/models/retail_status.py +11 -0
- shopline_sdk/models/return_order.py +75 -0
- shopline_sdk/models/return_order_delivery.py +26 -0
- shopline_sdk/models/return_order_delivery_address.py +37 -0
- shopline_sdk/models/return_order_delivery_data.py +28 -0
- shopline_sdk/models/return_order_item.py +33 -0
- shopline_sdk/models/return_order_payment.py +28 -0
- shopline_sdk/models/return_order_promotion_item.py +22 -0
- shopline_sdk/models/return_order_ref_data.py +10 -0
- shopline_sdk/models/return_orders.py +14 -0
- shopline_sdk/models/sale_comment.py +30 -0
- shopline_sdk/models/sale_customer.py +31 -0
- shopline_sdk/models/sale_product.py +21 -0
- shopline_sdk/models/save_draft_body.py +25 -0
- shopline_sdk/models/sc_conversation.py +31 -0
- shopline_sdk/models/sc_conversations.py +14 -0
- shopline_sdk/models/sc_conversations_message.py +30 -0
- shopline_sdk/models/sc_conversations_messages.py +16 -0
- shopline_sdk/models/search_products_body.py +71 -0
- shopline_sdk/models/server_error.py +12 -0
- shopline_sdk/models/service_unavailable_error.py +12 -0
- shopline_sdk/models/settings.py +30 -0
- shopline_sdk/models/settlement_terminal_list.py +9 -0
- shopline_sdk/models/shop_conversation.py +31 -0
- shopline_sdk/models/shop_conversations.py +14 -0
- shopline_sdk/models/shop_conversations_message.py +30 -0
- shopline_sdk/models/shop_conversations_messages.py +16 -0
- shopline_sdk/models/shop_crm_setting.py +24 -0
- shopline_sdk/models/shop_setting.py +10 -0
- shopline_sdk/models/staff.py +61 -0
- shopline_sdk/models/staff_performance.py +9 -0
- shopline_sdk/models/start_date_param.py +10 -0
- shopline_sdk/models/status.py +11 -0
- shopline_sdk/models/stock.py +12 -0
- shopline_sdk/models/store_credit.py +50 -0
- shopline_sdk/models/store_credit_fulfillment.py +27 -0
- shopline_sdk/models/storefront_o_auth_application.py +18 -0
- shopline_sdk/models/storefront_o_auth_applications.py +12 -0
- shopline_sdk/models/storefront_token.py +26 -0
- shopline_sdk/models/storefront_token_merchant.py +17 -0
- shopline_sdk/models/storefront_token_staff.py +15 -0
- shopline_sdk/models/storefront_tokens.py +12 -0
- shopline_sdk/models/supplier.py +24 -0
- shopline_sdk/models/tag.py +16 -0
- shopline_sdk/models/taggable.py +9 -0
- shopline_sdk/models/tax.py +57 -0
- shopline_sdk/models/tax_info.py +22 -0
- shopline_sdk/models/tax_region.py +20 -0
- shopline_sdk/models/tax_setting.py +10 -0
- shopline_sdk/models/theme.py +44 -0
- shopline_sdk/models/theme_schema.py +19 -0
- shopline_sdk/models/theme_setting.py +16 -0
- shopline_sdk/models/third_party_ads_setting.py +38 -0
- shopline_sdk/models/token_scopes.py +10 -0
- shopline_sdk/models/top_products_analytics.py +19 -0
- shopline_sdk/models/top_products_analytics_record.py +30 -0
- shopline_sdk/models/top_products_analytics_record_variation.py +34 -0
- shopline_sdk/models/total_sessions_analytics.py +35 -0
- shopline_sdk/models/total_views_analytics.py +29 -0
- shopline_sdk/models/transaction.py +65 -0
- shopline_sdk/models/translatable.py +28 -0
- shopline_sdk/models/translatable_array.py +28 -0
- shopline_sdk/models/unauthorized_error.py +14 -0
- shopline_sdk/models/unprocessable_entity_error.py +16 -0
- shopline_sdk/models/update_addon_product_body.py +36 -0
- shopline_sdk/models/update_agent_body.py +15 -0
- shopline_sdk/models/update_app_metafield_body.py +14 -0
- shopline_sdk/models/update_category_body.py +28 -0
- shopline_sdk/models/update_channel_price_body.py +21 -0
- shopline_sdk/models/update_customer_body.py +62 -0
- shopline_sdk/models/update_customer_group_activity_body.py +22 -0
- shopline_sdk/models/update_event_tracker_body.py +27 -0
- shopline_sdk/models/update_flash_price_campaign_body.py +22 -0
- shopline_sdk/models/update_gift_body.py +20 -0
- shopline_sdk/models/update_lock_inventory_body.py +21 -0
- shopline_sdk/models/update_metafield_body.py +14 -0
- shopline_sdk/models/update_product_body.py +66 -0
- shopline_sdk/models/update_product_feed_setting_body.py +27 -0
- shopline_sdk/models/update_product_review_comment_body.py +18 -0
- shopline_sdk/models/update_product_variation_body.py +34 -0
- shopline_sdk/models/update_promotion_body.py +71 -0
- shopline_sdk/models/update_return_order_body.py +17 -0
- shopline_sdk/models/update_webhook_body.py +14 -0
- shopline_sdk/models/user_coupon.py +12 -0
- shopline_sdk/models/user_coupons.py +14 -0
- shopline_sdk/models/user_credit_rule.py +40 -0
- shopline_sdk/models/users_setting.py +83 -0
- shopline_sdk/models/utm_data.py +20 -0
- shopline_sdk/models/warehouse.py +14 -0
- shopline_sdk/models/warehouses_cursor_based.py +17 -0
- shopline_sdk/models/webhook.py +23 -0
- shopline_sdk/models/webhooks.py +14 -0
- shopline_sdk/models/wish_list_item.py +41 -0
- shopline_sdk/models/wish_list_items.py +15 -0
- shopline_sdk_python-0.1.0.dist-info/METADATA +265 -0
- shopline_sdk_python-0.1.0.dist-info/RECORD +638 -0
- shopline_sdk_python-0.1.0.dist-info/WHEEL +5 -0
- shopline_sdk_python-0.1.0.dist-info/licenses/LICENSE +674 -0
- shopline_sdk_python-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - ShopConversation"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Last_MessageConfig(BaseModel):
|
|
10
|
+
"""Configuration model for last_message"""
|
|
11
|
+
id: Optional[str] = None
|
|
12
|
+
"""Conversation ID 對話 ID"""
|
|
13
|
+
sender_id: Optional[Any] = None
|
|
14
|
+
"""Sender ID 留言發送方 ID"""
|
|
15
|
+
sender_type: Optional[Any] = None
|
|
16
|
+
"""Sender Type 留言發送方"""
|
|
17
|
+
created_at: Optional[str] = None
|
|
18
|
+
"""Created At 建立時間"""
|
|
19
|
+
value: Optional[str] = None
|
|
20
|
+
"""Content 對話內容"""
|
|
21
|
+
type: Optional[Literal['text', 'image']] = None
|
|
22
|
+
"""Conversation Type 對話類別"""
|
|
23
|
+
|
|
24
|
+
class ShopConversation(BaseModel):
|
|
25
|
+
id: Optional[str] = None
|
|
26
|
+
"""Conversation ID 訊息 ID"""
|
|
27
|
+
type: Optional[Literal['shop_messages', 'order_messages']] = None
|
|
28
|
+
"""Conversation Type 訊息平台"""
|
|
29
|
+
customer_id: Optional[str] = None
|
|
30
|
+
"""Customer ID 客戶 ID"""
|
|
31
|
+
last_message: Optional[Last_MessageConfig] = None
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - ShopConversations"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
# 导入相关模型
|
|
8
|
+
from .paginatable import Paginatable
|
|
9
|
+
from .shop_conversation import ShopConversation
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class ShopConversations(BaseModel):
|
|
13
|
+
pagination: Optional[Paginatable] = None
|
|
14
|
+
items: Optional[List[ShopConversation]] = None
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - ShopConversationsMessage"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class MessageConfig(BaseModel):
|
|
10
|
+
"""Configuration model for message"""
|
|
11
|
+
sender_id: Optional[str] = None
|
|
12
|
+
"""Sender ID 發送者 ID"""
|
|
13
|
+
sender_type: Optional[Literal['User', 'Merchant', 'Bot']] = None
|
|
14
|
+
"""Sender Type 發送者類型"""
|
|
15
|
+
created_at: Optional[str] = None
|
|
16
|
+
"""Created At 訊息建立時間"""
|
|
17
|
+
acting_sender_id: Optional[str] = None
|
|
18
|
+
"""Performer ID 發送者 ID"""
|
|
19
|
+
is_sent_by_merchant: Optional[bool] = None
|
|
20
|
+
"""Is Sent by Merchant 是否為 merchant 發送訊息"""
|
|
21
|
+
content: Optional[str] = None
|
|
22
|
+
"""Content 文字內容"""
|
|
23
|
+
attachment: Optional[Dict[str, Any]] = None
|
|
24
|
+
|
|
25
|
+
class ShopConversationsMessage(BaseModel):
|
|
26
|
+
id: Optional[str] = None
|
|
27
|
+
"""Message ID 訊息 ID"""
|
|
28
|
+
platform: Optional[Literal['shop_messages', 'order_messages']] = None
|
|
29
|
+
"""Conversation Type 訊息種類"""
|
|
30
|
+
message: Optional[MessageConfig] = None
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - ShopConversationsMessages"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
# 导入相关模型
|
|
8
|
+
from .shop_conversations_message import ShopConversationsMessage
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class ShopConversationsMessages(BaseModel):
|
|
12
|
+
total: Optional[int] = None
|
|
13
|
+
"""Total Number 總筆數"""
|
|
14
|
+
limit: Optional[int] = None
|
|
15
|
+
"""Numbers of Shop Messages 顯示筆數"""
|
|
16
|
+
items: Optional[List[ShopConversationsMessage]] = None
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - ShopCrmSetting"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Referral_ProductConfig(BaseModel):
|
|
10
|
+
"""Configuration model for referral_product"""
|
|
11
|
+
enabled: Optional[bool] = None
|
|
12
|
+
referral_hours: Optional[float] = None
|
|
13
|
+
|
|
14
|
+
class ShopCrmSetting(BaseModel):
|
|
15
|
+
enable_switch_channel: Optional[bool] = None
|
|
16
|
+
enable_staff_send_sms_and_signup: Optional[bool] = None
|
|
17
|
+
enable_maintain_customer_profile: Optional[bool] = None
|
|
18
|
+
enable_enter_spend_amount: Optional[bool] = None
|
|
19
|
+
enable_customer_overview: Optional[bool] = None
|
|
20
|
+
enable_agent_performance: Optional[bool] = None
|
|
21
|
+
enable_channel_performance: Optional[bool] = None
|
|
22
|
+
enable_edit_customer_tags: Optional[bool] = None
|
|
23
|
+
enable_edit_customer_memo: Optional[bool] = None
|
|
24
|
+
referral_product: Optional[Referral_ProductConfig] = None
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - ShopSetting"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ShopSetting(BaseModel):
|
|
9
|
+
home_page: Optional[str] = None
|
|
10
|
+
page_schedules: Optional[List[Any]] = None
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - Staff"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Owned_MerchantsItem(BaseModel):
|
|
10
|
+
"""Item model for owned_merchants"""
|
|
11
|
+
id: Optional[str] = None
|
|
12
|
+
"""Merchant ID"""
|
|
13
|
+
name: Optional[str] = None
|
|
14
|
+
"""Merchant name"""
|
|
15
|
+
handle: Optional[str] = None
|
|
16
|
+
"""Merchant handle"""
|
|
17
|
+
base_country_code: Optional[str] = None
|
|
18
|
+
"""Merchant country code"""
|
|
19
|
+
custom_domain: Optional[str] = None
|
|
20
|
+
"""Merchant custom domain"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Employed_MerchantsItem(BaseModel):
|
|
24
|
+
"""Item model for employed_merchants"""
|
|
25
|
+
id: Optional[str] = None
|
|
26
|
+
"""Merchant ID"""
|
|
27
|
+
name: Optional[str] = None
|
|
28
|
+
"""Merchant name"""
|
|
29
|
+
handle: Optional[str] = None
|
|
30
|
+
"""Merchant handle"""
|
|
31
|
+
base_country_code: Optional[str] = None
|
|
32
|
+
"""Merchant country code"""
|
|
33
|
+
custom_domain: Optional[str] = None
|
|
34
|
+
"""Merchant custom domain"""
|
|
35
|
+
|
|
36
|
+
class Staff(BaseModel):
|
|
37
|
+
id: Optional[str] = None
|
|
38
|
+
"""ID"""
|
|
39
|
+
email: Optional[str] = None
|
|
40
|
+
"""Email 電郵"""
|
|
41
|
+
name: Optional[str] = None
|
|
42
|
+
"""Name 員工名稱"""
|
|
43
|
+
locale_code: Optional[str] = None
|
|
44
|
+
"""Locale of staff using 員工語系"""
|
|
45
|
+
owned_merchants: Optional[List[Owned_MerchantsItem]] = None
|
|
46
|
+
"""Associated merchants this staff owns 帳號為店長的店鋪"""
|
|
47
|
+
employed_merchants: Optional[List[Employed_MerchantsItem]] = None
|
|
48
|
+
"""Associated merchants this staff belongs to 帳號服務的店鋪"""
|
|
49
|
+
user_id: Optional[str] = None
|
|
50
|
+
"""user ID 使用者 ID"""
|
|
51
|
+
created_at: Optional[str] = None
|
|
52
|
+
"""Created Time 創建時間"""
|
|
53
|
+
merchant_ids: Optional[List[str]] = None
|
|
54
|
+
"""Associated merchant IDs this staff belongs to 帳號服務的店鋪 ID"""
|
|
55
|
+
organization_ids: Optional[List[str]] = None
|
|
56
|
+
"""Associated organization IDs this staff belongs to 帳號服務的組織 ID"""
|
|
57
|
+
role_keys: Optional[List[str]] = None
|
|
58
|
+
profile_image_url: Optional[str] = None
|
|
59
|
+
"""Profile image url 個人資料相片URL"""
|
|
60
|
+
channel_ids: Optional[List[str]] = None
|
|
61
|
+
"""Channel IDs 頻道 IDs"""
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - startDateParam"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class startDateParam(BaseModel):
|
|
9
|
+
"""Starting date of the analytics 分析的開始日期"""
|
|
10
|
+
pass
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - status"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class status(BaseModel):
|
|
9
|
+
"""The status that will be applied on the products to the online store. 更新商品狀態至網店。"""
|
|
10
|
+
value: Literal['active', 'draft']
|
|
11
|
+
"""Enum values: active, draft"""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - Stock"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Stock(BaseModel):
|
|
9
|
+
warehouse_id: Optional[str] = None
|
|
10
|
+
"""Warehouse’s id 倉庫 id"""
|
|
11
|
+
quantity: Optional[float] = None
|
|
12
|
+
"""Product’s stock in this warehouse 商品在此倉庫中的庫存"""
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - StoreCredit"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
# 导入相关模型
|
|
8
|
+
from .money import Money
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StoreCredit(BaseModel):
|
|
12
|
+
id: Optional[str] = Field(default=None, alias="_id")
|
|
13
|
+
"""Record ID 紀錄 ID"""
|
|
14
|
+
customer_id: Optional[str] = None
|
|
15
|
+
"""Customer ID 顧客 ID"""
|
|
16
|
+
credit_balance: Optional[int] = None
|
|
17
|
+
"""Credit balance after this record 此紀錄後的購物金餘額"""
|
|
18
|
+
remarks: Optional[str] = None
|
|
19
|
+
"""Credit Change Reason 購物金更動原因"""
|
|
20
|
+
value: Optional[int] = None
|
|
21
|
+
"""Credit Movement 購物金款項"""
|
|
22
|
+
end_at: Optional[str] = None
|
|
23
|
+
"""Expiry Date 到期日"""
|
|
24
|
+
performer_id: Optional[str] = None
|
|
25
|
+
"""ID of the staff who created this record 創建紀錄的管理員的ID"""
|
|
26
|
+
performer_name: Optional[str] = None
|
|
27
|
+
"""Staff who created this record 創建紀錄的管理員"""
|
|
28
|
+
fulfillment_balance: Optional[int] = None
|
|
29
|
+
"""Fulfillment Balance 購物金餘額"""
|
|
30
|
+
type: Optional[Literal['manual_credit', 'welcome_credit', 'birthday_credit', 'auto_reward', 'applied_credit', 'user_credit_expired', 'welcome_member_referral_credit', 'member_referral_credit', 'order_split_revert', 'member_info_quick_completion_credit', 'product_review_reward', 'return_order_revert', 'order_edit_revert']] = None
|
|
31
|
+
"""Store credit type 購物金類型 ---- manual_credit: 手動增減購物金(店家手動發送、回補來自取消訂單/退貨訂單) welcome_credit: 新加入會員購物金 birthday_credit: 生日購物金 auto_reward: 購物金回饋 applied_credit: 套用購物金在訂單 user_credit_expired: 購物金過期 welcome_member_referral_credit: 透過推薦連結註冊成功 member_referral_credit: 推薦新顧客進行消費 order_split_revert: 回補購物金(來自拆單) product_review_reward: 商品評價獎賞 member_info_quick_completion_credit: 會員資料獎賞 return_order_revert: 退貨單回補購物金 order_edit_revert: 訂單編輯回補購物金"""
|
|
32
|
+
created_at: Optional[str] = None
|
|
33
|
+
"""Record creation date 創建紀錄日期"""
|
|
34
|
+
customer_ref_user_id: Optional[str] = None
|
|
35
|
+
"""Third party custom customer id 第三方儲存之顧客ID"""
|
|
36
|
+
status: Optional[Literal['active', 'removed', 'expired', 'used', 'redeemed']] = None
|
|
37
|
+
"""Status 購物金狀態"""
|
|
38
|
+
is_redeem: Optional[bool] = None
|
|
39
|
+
"""Whether the store credit is redeemed 購物金是否已經被兌換"""
|
|
40
|
+
order_id: Optional[str] = None
|
|
41
|
+
"""The ID of the order where the store credit earned from 賺取購物金的訂單的ID"""
|
|
42
|
+
value_dollar: Optional[Money] = None
|
|
43
|
+
user_credit_rule_id: Optional[str] = None
|
|
44
|
+
"""The ID of user_credit_rule"""
|
|
45
|
+
order_number: Optional[str] = None
|
|
46
|
+
"""Order number 訂單號碼"""
|
|
47
|
+
merchant_order_number: Optional[str] = None
|
|
48
|
+
"""The order number set by the merchant 店家自定義訂單號"""
|
|
49
|
+
order_created_by: Optional[str] = None
|
|
50
|
+
"""Order created by 此訂單的建立者"""
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - StoreCreditFulfillment"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
# 导入相关模型
|
|
8
|
+
from .money import Money
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Never_Expire_ItemConfig(BaseModel):
|
|
13
|
+
"""Configuration model for never_expire_item"""
|
|
14
|
+
total_value: Optional[float] = None
|
|
15
|
+
"""The total value of never expire store credits.<br/> 永久有效的購物金加總"""
|
|
16
|
+
total_value_dollar: Optional[Money] = None
|
|
17
|
+
expire_at: Optional[str] = None
|
|
18
|
+
"""This field will be null because the store credit never expire.<br/> 購物金為永久有效,此欄位為 null"""
|
|
19
|
+
|
|
20
|
+
class StoreCreditFulfillment(BaseModel):
|
|
21
|
+
limit: Optional[float] = None
|
|
22
|
+
"""To limit how many items will be returned<br/>限制 items 回傳多少筆資料"""
|
|
23
|
+
remaining_value: Optional[Dict[str, Any]] = None
|
|
24
|
+
"""To return the total remaining value of store credit if items count is larger than the limit.<br/> 如果 items 的筆數大於限制,則剩餘未顯示於 items 的點數會加總顯示於此,expire_at 會顯示較快過期的日期"""
|
|
25
|
+
items: Optional[List[Any]] = None
|
|
26
|
+
"""The list of store credit fulfillments which will expire in specific date.<br/> 含有到期日的購物金列表,最多顯示 limit 參數個數,剩餘會加總並顯示於 remaining_value"""
|
|
27
|
+
never_expire_item: Optional[Never_Expire_ItemConfig] = None
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - StorefrontOAuthApplication"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class StorefrontOAuthApplication(BaseModel):
|
|
9
|
+
id: Optional[str] = None
|
|
10
|
+
"""Application ID"""
|
|
11
|
+
app_id: Optional[str] = None
|
|
12
|
+
"""App UID (Client ID used in OAuth requests)"""
|
|
13
|
+
app_secret: Optional[str] = None
|
|
14
|
+
"""App Secret (Client secret used in OAuth requests)"""
|
|
15
|
+
name: Optional[str] = None
|
|
16
|
+
"""App Name"""
|
|
17
|
+
redirect_uri: Optional[str] = None
|
|
18
|
+
"""Redirect URI"""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - StorefrontOAuthApplications"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
# 导入相关模型
|
|
8
|
+
from .storefront_o_auth_application import StorefrontOAuthApplication
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StorefrontOAuthApplications(BaseModel):
|
|
12
|
+
items: Optional[List[StorefrontOAuthApplication]] = None
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - StorefrontToken"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
# 导入相关模型
|
|
8
|
+
from .storefront_token_merchant import StorefrontTokenMerchant
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StorefrontToken(BaseModel):
|
|
12
|
+
"""The merchant that this storefront token can access"""
|
|
13
|
+
id: Optional[str] = None
|
|
14
|
+
"""Token ID 令牌ID"""
|
|
15
|
+
token: Optional[str] = None
|
|
16
|
+
"""A JWT storefront token string JWT店面令牌字串"""
|
|
17
|
+
staff_id: Optional[str] = None
|
|
18
|
+
"""ID of the staff that created this token 創建這令牌的staff ID"""
|
|
19
|
+
application_id: Optional[str] = None
|
|
20
|
+
"""ID of the application that created this token 創建這令牌的程式"""
|
|
21
|
+
merchant: Optional[StorefrontTokenMerchant] = None
|
|
22
|
+
staff: Optional[StorefrontTokenMerchant] = None
|
|
23
|
+
backend_token: Optional[bool] = None
|
|
24
|
+
"""Indicate if it is a backend token for different setup such as ratelimit"""
|
|
25
|
+
created_at: Optional[str] = None
|
|
26
|
+
"""The date and time when the token was created 令牌創建的日期和時間"""
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - StorefrontTokenMerchant"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class StorefrontTokenMerchant(BaseModel):
|
|
9
|
+
"""The merchant that this storefront token can access 這令牌能存取的商户"""
|
|
10
|
+
id: Optional[str] = None
|
|
11
|
+
"""Merchant ID 商户ID"""
|
|
12
|
+
name: Optional[str] = None
|
|
13
|
+
"""Merchant name 商户名稱"""
|
|
14
|
+
email: Optional[str] = None
|
|
15
|
+
"""Merchant email 商户電郵"""
|
|
16
|
+
handle: Optional[str] = None
|
|
17
|
+
"""Merchant handle 商户handle"""
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - StorefrontTokenStaff"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class StorefrontTokenStaff(BaseModel):
|
|
9
|
+
"""The staff that created this storefront token 創建這令牌的商户"""
|
|
10
|
+
id: Optional[str] = None
|
|
11
|
+
"""Staff ID 員工ID"""
|
|
12
|
+
name: Optional[str] = None
|
|
13
|
+
"""Staff name 員工名稱"""
|
|
14
|
+
email: Optional[str] = None
|
|
15
|
+
"""Staff email 員工電郵"""
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - StorefrontTokens"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
# 导入相关模型
|
|
8
|
+
from .storefront_token import StorefrontToken
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class StorefrontTokens(BaseModel):
|
|
12
|
+
items: Optional[List[StorefrontToken]] = None
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - Supplier"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
# 导入相关模型
|
|
8
|
+
from .translatable import Translatable
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class Supplier(BaseModel):
|
|
12
|
+
id: Optional[str] = None
|
|
13
|
+
"""Id of the supplier 供應商ID"""
|
|
14
|
+
name_translations: Optional[Translatable] = None
|
|
15
|
+
name: Optional[str] = None
|
|
16
|
+
"""Name of the supplier 供應商名稱"""
|
|
17
|
+
address: Optional[str] = None
|
|
18
|
+
"""Address of the supplier 供應商地址"""
|
|
19
|
+
phone: Optional[str] = None
|
|
20
|
+
"""Phone of the supplier 供應商電話號碼"""
|
|
21
|
+
note: Optional[str] = None
|
|
22
|
+
"""Note of the supplier 供應商備注"""
|
|
23
|
+
status: Optional[str] = None
|
|
24
|
+
"""Working status of the supplier 供應商狀態 (active/removed)"""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - Tag"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Tag(BaseModel):
|
|
9
|
+
id: Optional[str] = None
|
|
10
|
+
"""ID"""
|
|
11
|
+
content: Optional[str] = None
|
|
12
|
+
"""Text content of the tag 標籤內容"""
|
|
13
|
+
owner_id: Optional[str] = None
|
|
14
|
+
"""Associated ID of the tag 標籤對應資源的ID"""
|
|
15
|
+
owner_type: Optional[str] = None
|
|
16
|
+
"""Associated type of the tag 標籤對應資源的類別"""
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - Tax"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
# 导入相关模型
|
|
8
|
+
from .tax_region import TaxRegion
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class SalesConfig(BaseModel):
|
|
13
|
+
"""Configuration model for sales"""
|
|
14
|
+
general: Optional[TaxRegion] = None
|
|
15
|
+
details: Optional[List[Union[TaxRegion]]] = None
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class DeliveryConfig(BaseModel):
|
|
19
|
+
"""Configuration model for delivery"""
|
|
20
|
+
general: Optional[TaxRegion] = None
|
|
21
|
+
details: Optional[List[Union[TaxRegion]]] = None
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Service_ChargeConfig(BaseModel):
|
|
25
|
+
"""Configuration model for service_charge"""
|
|
26
|
+
general: Optional[TaxRegion] = None
|
|
27
|
+
details: Optional[List[Union[TaxRegion]]] = None
|
|
28
|
+
|
|
29
|
+
class Tax(BaseModel):
|
|
30
|
+
id: Optional[str] = None
|
|
31
|
+
"""ID"""
|
|
32
|
+
name: Optional[str] = None
|
|
33
|
+
"""name"""
|
|
34
|
+
merchant_id: Optional[str] = None
|
|
35
|
+
"""merchant ID"""
|
|
36
|
+
country: Optional[str] = None
|
|
37
|
+
"""Country of the tax 稅收國家/地區"""
|
|
38
|
+
is_default_rates: Optional[bool] = None
|
|
39
|
+
"""Using default tax rates 自動計算稅率"""
|
|
40
|
+
enable_inclusive: Optional[bool] = None
|
|
41
|
+
"""All products' price include tax 所有商品皆已含稅"""
|
|
42
|
+
allow_inclusive_tax: Optional[bool] = None
|
|
43
|
+
"""Allow inclusive_tax 國家商品允許含稅"""
|
|
44
|
+
service_charge_taxable: Optional[bool] = None
|
|
45
|
+
"""Service charge taxable 服務稅應稅"""
|
|
46
|
+
emoji_flag: Optional[str] = None
|
|
47
|
+
"""emoji flag 國家emoji"""
|
|
48
|
+
sales: Optional[SalesConfig] = None
|
|
49
|
+
"""tax of sales 基本消費稅"""
|
|
50
|
+
delivery: Optional[DeliveryConfig] = None
|
|
51
|
+
"""tax of delivery 運費稅"""
|
|
52
|
+
service_charge: Optional[Service_ChargeConfig] = None
|
|
53
|
+
"""Tax of service charge 服務稅"""
|
|
54
|
+
created_at: Optional[str] = None
|
|
55
|
+
"""Created Date 稅收創造時間 (UTC +0)"""
|
|
56
|
+
updated_at: Optional[str] = None
|
|
57
|
+
"""Created Date 稅收更新時間 (UTC +0)"""
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - TaxInfo"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TaxInfo(BaseModel):
|
|
9
|
+
min: Optional[float] = None
|
|
10
|
+
"""Max rate 套用最低稅率"""
|
|
11
|
+
max: Optional[float] = None
|
|
12
|
+
"""Min rate 套用最高稅率"""
|
|
13
|
+
country_code: Optional[str] = None
|
|
14
|
+
"""ISO Country Code 稅收國家或地區(ISO 標準國家代碼)"""
|
|
15
|
+
flag: Optional[str] = None
|
|
16
|
+
"""Flag 國家旗幟"""
|
|
17
|
+
region: Optional[str] = None
|
|
18
|
+
"""Tax Region 稅收地區"""
|
|
19
|
+
city: Optional[str] = None
|
|
20
|
+
"""City 城市"""
|
|
21
|
+
name: Optional[str] = None
|
|
22
|
+
"""Tax Name 稅金名稱"""
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - TaxRegion"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TaxRegion(BaseModel):
|
|
9
|
+
id: Optional[str] = None
|
|
10
|
+
"""Tax region ID 稅務地區ID"""
|
|
11
|
+
region: Optional[str] = None
|
|
12
|
+
"""Tax region 稅務地區"""
|
|
13
|
+
rate: Optional[float] = None
|
|
14
|
+
"""Tax rate 稅率"""
|
|
15
|
+
type: Optional[str] = None
|
|
16
|
+
"""Tax type 稅別"""
|
|
17
|
+
default_rate: Optional[float] = None
|
|
18
|
+
"""Default tax rate 預設稅率"""
|
|
19
|
+
default_rate_range: Optional[List[float]] = None
|
|
20
|
+
"""Default tax rate range 預設稅率範圍"""
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Shopline API 数据模型 - TaxSetting"""
|
|
2
|
+
|
|
3
|
+
from typing import Any, Dict, List, Optional, Union
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
|
+
from typing_extensions import Literal
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TaxSetting(BaseModel):
|
|
9
|
+
products_taxable: Optional[bool] = None
|
|
10
|
+
"""All Shops need Tax Collection 全店皆需收稅"""
|