@congminh1254/shopee-sdk 0.10.0 → 1.0.0
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.
- package/README.md +172 -36
- package/lib/fetch.js +13 -0
- package/lib/fetch.js.map +1 -1
- package/lib/managers/add-on-deal.manager.d.ts +140 -0
- package/lib/managers/add-on-deal.manager.js +240 -0
- package/lib/managers/add-on-deal.manager.js.map +1 -0
- package/lib/managers/ads.manager.d.ts +217 -1
- package/lib/managers/ads.manager.js +312 -0
- package/lib/managers/ads.manager.js.map +1 -1
- package/lib/managers/bundle-deal.manager.d.ts +106 -0
- package/lib/managers/bundle-deal.manager.js +178 -0
- package/lib/managers/bundle-deal.manager.js.map +1 -0
- package/lib/managers/discount.manager.d.ts +102 -0
- package/lib/managers/discount.manager.js +167 -0
- package/lib/managers/discount.manager.js.map +1 -0
- package/lib/managers/fbs.manager.d.ts +115 -0
- package/lib/managers/fbs.manager.js +145 -0
- package/lib/managers/fbs.manager.js.map +1 -0
- package/lib/managers/first-mile.manager.d.ts +150 -0
- package/lib/managers/first-mile.manager.js +264 -0
- package/lib/managers/first-mile.manager.js.map +1 -0
- package/lib/managers/follow-prize.manager.d.ts +108 -0
- package/lib/managers/follow-prize.manager.js +152 -0
- package/lib/managers/follow-prize.manager.js.map +1 -0
- package/lib/managers/global-product.manager.d.ts +664 -0
- package/lib/managers/global-product.manager.js +904 -0
- package/lib/managers/global-product.manager.js.map +1 -0
- package/lib/managers/index.d.ts +17 -1
- package/lib/managers/index.js +17 -1
- package/lib/managers/index.js.map +1 -1
- package/lib/managers/livestream.manager.d.ts +377 -0
- package/lib/managers/livestream.manager.js +529 -0
- package/lib/managers/livestream.manager.js.map +1 -0
- package/lib/managers/logistics.manager.d.ts +267 -1
- package/lib/managers/logistics.manager.js +544 -0
- package/lib/managers/logistics.manager.js.map +1 -1
- package/lib/managers/media-space.manager.d.ts +179 -0
- package/lib/managers/media-space.manager.js +220 -0
- package/lib/managers/media-space.manager.js.map +1 -0
- package/lib/managers/media.manager.d.ts +226 -0
- package/lib/managers/media.manager.js +274 -0
- package/lib/managers/media.manager.js.map +1 -0
- package/lib/managers/merchant.manager.d.ts +100 -0
- package/lib/managers/merchant.manager.js +144 -0
- package/lib/managers/merchant.manager.js.map +1 -0
- package/lib/managers/order.manager.d.ts +213 -1
- package/lib/managers/order.manager.js +305 -0
- package/lib/managers/order.manager.js.map +1 -1
- package/lib/managers/payment.manager.d.ts +186 -1
- package/lib/managers/payment.manager.js +288 -0
- package/lib/managers/payment.manager.js.map +1 -1
- package/lib/managers/returns.manager.d.ts +200 -0
- package/lib/managers/returns.manager.js +300 -0
- package/lib/managers/returns.manager.js.map +1 -0
- package/lib/managers/sbs.manager.d.ts +112 -0
- package/lib/managers/sbs.manager.js +149 -0
- package/lib/managers/sbs.manager.js.map +1 -0
- package/lib/managers/shop-category.manager.d.ts +207 -0
- package/lib/managers/shop-category.manager.js +258 -0
- package/lib/managers/shop-category.manager.js.map +1 -0
- package/lib/managers/shop-flash-sale.manager.d.ts +242 -0
- package/lib/managers/shop-flash-sale.manager.js +321 -0
- package/lib/managers/shop-flash-sale.manager.js.map +1 -0
- package/lib/managers/shop.manager.d.ts +173 -0
- package/lib/managers/shop.manager.js +217 -0
- package/lib/managers/shop.manager.js.map +1 -0
- package/lib/managers/top-picks.manager.d.ts +62 -0
- package/lib/managers/top-picks.manager.js +91 -0
- package/lib/managers/top-picks.manager.js.map +1 -0
- package/lib/schemas/add-on-deal.d.ts +390 -0
- package/lib/schemas/add-on-deal.js +45 -0
- package/lib/schemas/add-on-deal.js.map +1 -0
- package/lib/schemas/ads.d.ts +437 -0
- package/lib/schemas/bundle-deal.d.ts +300 -0
- package/lib/schemas/bundle-deal.js +27 -0
- package/lib/schemas/bundle-deal.js.map +1 -0
- package/lib/schemas/discount.d.ts +334 -0
- package/lib/schemas/discount.js +15 -0
- package/lib/schemas/discount.js.map +1 -0
- package/lib/schemas/fbs.d.ts +117 -0
- package/lib/schemas/fbs.js +2 -0
- package/lib/schemas/fbs.js.map +1 -0
- package/lib/schemas/first-mile.d.ts +551 -0
- package/lib/schemas/first-mile.js +2 -0
- package/lib/schemas/first-mile.js.map +1 -0
- package/lib/schemas/follow-prize.d.ts +198 -0
- package/lib/schemas/follow-prize.js +27 -0
- package/lib/schemas/follow-prize.js.map +1 -0
- package/lib/schemas/global-product.d.ts +1127 -0
- package/lib/schemas/global-product.js +2 -0
- package/lib/schemas/global-product.js.map +1 -0
- package/lib/schemas/index.d.ts +13 -0
- package/lib/schemas/index.js +17 -0
- package/lib/schemas/index.js.map +1 -1
- package/lib/schemas/livestream.d.ts +649 -0
- package/lib/schemas/livestream.js +2 -0
- package/lib/schemas/livestream.js.map +1 -0
- package/lib/schemas/logistics.d.ts +979 -0
- package/lib/schemas/logistics.js +13 -0
- package/lib/schemas/logistics.js.map +1 -1
- package/lib/schemas/media-space.d.ts +189 -0
- package/lib/schemas/media-space.js +2 -0
- package/lib/schemas/media-space.js.map +1 -0
- package/lib/schemas/media.d.ts +230 -0
- package/lib/schemas/media.js +2 -0
- package/lib/schemas/media.js.map +1 -0
- package/lib/schemas/merchant.d.ts +236 -0
- package/lib/schemas/merchant.js +2 -0
- package/lib/schemas/merchant.js.map +1 -0
- package/lib/schemas/order.d.ts +431 -0
- package/lib/schemas/payment.d.ts +397 -0
- package/lib/schemas/returns.d.ts +632 -0
- package/lib/schemas/returns.js +63 -0
- package/lib/schemas/returns.js.map +1 -0
- package/lib/schemas/sbs.d.ts +484 -0
- package/lib/schemas/sbs.js +2 -0
- package/lib/schemas/sbs.js.map +1 -0
- package/lib/schemas/shop-category.d.ts +176 -0
- package/lib/schemas/shop-category.js +2 -0
- package/lib/schemas/shop-category.js.map +1 -0
- package/lib/schemas/shop-flash-sale.d.ts +473 -0
- package/lib/schemas/shop-flash-sale.js +43 -0
- package/lib/schemas/shop-flash-sale.js.map +1 -0
- package/lib/schemas/shop.d.ts +250 -0
- package/lib/schemas/shop.js +2 -0
- package/lib/schemas/shop.js.map +1 -0
- package/lib/schemas/top-picks.d.ts +99 -0
- package/lib/schemas/top-picks.js +2 -0
- package/lib/schemas/top-picks.js.map +1 -0
- package/lib/sdk.d.ts +34 -0
- package/lib/sdk.js +34 -0
- package/lib/sdk.js.map +1 -1
- package/package.json +2 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merchant.js","sourceRoot":"","sources":["../../src/schemas/merchant.ts"],"names":[],"mappings":""}
|
package/lib/schemas/order.d.ts
CHANGED
|
@@ -590,3 +590,434 @@ export type InvoiceInfo = {
|
|
|
590
590
|
export interface GetBuyerInvoiceInfoResponse extends FetchResponse<null> {
|
|
591
591
|
invoice_info_list: InvoiceInfo[];
|
|
592
592
|
}
|
|
593
|
+
/**
|
|
594
|
+
* Parameters for setting a note on an order
|
|
595
|
+
*/
|
|
596
|
+
export interface SetNoteParams {
|
|
597
|
+
/** Shopee's unique identifier for an order */
|
|
598
|
+
order_sn: string;
|
|
599
|
+
/** The note seller add for reference */
|
|
600
|
+
note: string;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* Response for setting a note
|
|
604
|
+
*/
|
|
605
|
+
export interface SetNoteResponse extends FetchResponse<null> {
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Parameters for getting package detail
|
|
609
|
+
*/
|
|
610
|
+
export interface GetPackageDetailParams {
|
|
611
|
+
/** The set of package_number. If there are multiple package_number, you need to use English comma to connect them. limit [1,50] */
|
|
612
|
+
package_number_list: string[];
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* Package detail information
|
|
616
|
+
*/
|
|
617
|
+
export interface PackageDetail {
|
|
618
|
+
/** Shopee's unique identifier for an order */
|
|
619
|
+
order_sn: string;
|
|
620
|
+
/** Shopee's unique identifier for the package under an order */
|
|
621
|
+
package_number: string;
|
|
622
|
+
/** The Shopee fulfillment status for the package */
|
|
623
|
+
fulfillment_status: string;
|
|
624
|
+
/** Timestamp that indicates the last time that there was a change in value of package */
|
|
625
|
+
update_time: number;
|
|
626
|
+
/** The identity of logistic channel */
|
|
627
|
+
logistics_channel_id: number;
|
|
628
|
+
/** The logistics service provider that the buyer selected for the package to deliver items */
|
|
629
|
+
shipping_carrier: string;
|
|
630
|
+
/** To indicate whether the package allows for self-designed AWB */
|
|
631
|
+
allow_self_design_awb: boolean;
|
|
632
|
+
/** Shipping preparation time set by the seller when listing item on Shopee */
|
|
633
|
+
days_to_ship: number;
|
|
634
|
+
/** The deadline to ship out the package */
|
|
635
|
+
ship_by_date: number;
|
|
636
|
+
/** The list of pending terms */
|
|
637
|
+
pending_terms?: string[];
|
|
638
|
+
/** The tracking number of this package */
|
|
639
|
+
tracking_number?: string;
|
|
640
|
+
/** [TW only] Tracking number expiration date */
|
|
641
|
+
tracking_number_expiration_date?: number;
|
|
642
|
+
/** The timestamp when pickup is done */
|
|
643
|
+
pickup_done_time?: number;
|
|
644
|
+
/** To indicate whether this parcel is split */
|
|
645
|
+
is_split_up: boolean;
|
|
646
|
+
/** The list of items in the package */
|
|
647
|
+
item_list: PackageItem[];
|
|
648
|
+
/** Recipient address information */
|
|
649
|
+
recipient_address?: RecipientAddress;
|
|
650
|
+
/** Display weight used to calculate ASF for this parcel */
|
|
651
|
+
parcel_chargeable_weight_gram?: number;
|
|
652
|
+
/** The common identifier for multiple orders combined in the same parcel */
|
|
653
|
+
group_shipment_id?: number;
|
|
654
|
+
/** [Only for TW non-integrated channel] The virtual phone number to contact the recipient */
|
|
655
|
+
virtual_contact_number?: string;
|
|
656
|
+
/** [Only for TW non-integrated channel] The query number used in virtual phone number calls */
|
|
657
|
+
package_query_number?: string;
|
|
658
|
+
/** [Only for TW 30029 channel] Sorting group value of the package */
|
|
659
|
+
sorting_group?: string;
|
|
660
|
+
/** Return prescription images of this order, only for ID and PH whitelist sellers */
|
|
661
|
+
prescription_images?: string[];
|
|
662
|
+
/** Name of the Pharmacist for Prescription Order */
|
|
663
|
+
pharmacist_name?: string;
|
|
664
|
+
/** Time of when the prescription is approved */
|
|
665
|
+
prescription_approval_time?: number;
|
|
666
|
+
/** Time of when the prescription is rejected */
|
|
667
|
+
prescription_rejection_time?: number;
|
|
668
|
+
/** To indicate if this order is buyer self collection at store order */
|
|
669
|
+
is_buyer_shop_collection?: boolean;
|
|
670
|
+
/** The image url of the proof for buyer self collection at the store */
|
|
671
|
+
buyer_proof_of_collection?: string[];
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Response for getting package detail
|
|
675
|
+
*/
|
|
676
|
+
export interface GetPackageDetailResponse extends FetchResponse<{
|
|
677
|
+
/** The list of packages */
|
|
678
|
+
package_list: PackageDetail[];
|
|
679
|
+
}> {
|
|
680
|
+
}
|
|
681
|
+
/**
|
|
682
|
+
* Parameters for handling buyer cancellation
|
|
683
|
+
*/
|
|
684
|
+
export interface HandleBuyerCancellationParams {
|
|
685
|
+
/** Shopee's unique identifier for an order */
|
|
686
|
+
order_sn: string;
|
|
687
|
+
/** The operation you want to handle. Available value: ACCEPT, REJECT */
|
|
688
|
+
operation: "ACCEPT" | "REJECT";
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Response for handling buyer cancellation
|
|
692
|
+
*/
|
|
693
|
+
export interface HandleBuyerCancellationResponse extends FetchResponse<{
|
|
694
|
+
/** Shopee's unique identifier for an order */
|
|
695
|
+
order_sn: string;
|
|
696
|
+
}> {
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* Filter options for searching package list
|
|
700
|
+
*/
|
|
701
|
+
export interface SearchPackageListFilter {
|
|
702
|
+
/** Use this field to filter the packages of specific status. 0: All, 1: Pending, 2: ToProcess, 3: Processed. Default value = 2 (ToProcess) */
|
|
703
|
+
package_status?: number;
|
|
704
|
+
/** List of product_location_id. Use this field to filter the packages under specific warehouses */
|
|
705
|
+
product_location_ids?: string[];
|
|
706
|
+
/** List of logistics_channel_id. Use this field to filter the packages under specific logistics channels */
|
|
707
|
+
logistics_channel_ids?: number[];
|
|
708
|
+
/** Use this field to filter the packages fulfilled by shopee or seller. 0: None, 1: Shopee, 2: Seller. Default value = 2 (Seller) */
|
|
709
|
+
fulfillment_type?: number;
|
|
710
|
+
/** Use this field to filter the packages under invoice_pending. Default value = false */
|
|
711
|
+
invoice_pending?: boolean;
|
|
712
|
+
/** [Only for TW 30029 channel] Use this field to filter the sorting group of parcel. 1: North, 2: South */
|
|
713
|
+
sorting_group?: number;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Pagination options for searching package list
|
|
717
|
+
*/
|
|
718
|
+
export interface SearchPackageListPagination {
|
|
719
|
+
/** Maximum number of entries to return in a single page (between 1 and 100) */
|
|
720
|
+
page_size: number;
|
|
721
|
+
/** Specifies the starting entry of data to return in the current call. Default is "" */
|
|
722
|
+
cursor?: string;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Sort options for searching package list
|
|
726
|
+
*/
|
|
727
|
+
export interface SearchPackageListSort {
|
|
728
|
+
/** Sort field. Available value: package_number, ship_by_date, create_time. Default = ship_by_date */
|
|
729
|
+
sort_field?: string;
|
|
730
|
+
/** Sort direction. Available value: ASC, DESC. Default = ASC */
|
|
731
|
+
sort_direction?: "ASC" | "DESC";
|
|
732
|
+
}
|
|
733
|
+
/**
|
|
734
|
+
* Parameters for searching package list
|
|
735
|
+
*/
|
|
736
|
+
export interface SearchPackageListParams {
|
|
737
|
+
/** Filter options */
|
|
738
|
+
filter?: SearchPackageListFilter;
|
|
739
|
+
/** Pagination options */
|
|
740
|
+
pagination: SearchPackageListPagination;
|
|
741
|
+
/** Sort options */
|
|
742
|
+
sort?: SearchPackageListSort;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Package item in search result
|
|
746
|
+
*/
|
|
747
|
+
export interface SearchPackageListPackage {
|
|
748
|
+
/** Shopee's unique identifier for an order */
|
|
749
|
+
order_sn: string;
|
|
750
|
+
/** Shopee's unique identifier for the package under an order */
|
|
751
|
+
package_number: string;
|
|
752
|
+
/** The Shopee fulfillment status for the package */
|
|
753
|
+
fulfillment_status: string;
|
|
754
|
+
/** Timestamp that indicates the last time that there was a change in value of package */
|
|
755
|
+
update_time: number;
|
|
756
|
+
/** The identity of logistic channel */
|
|
757
|
+
logistics_channel_id: number;
|
|
758
|
+
/** Shipping preparation time set by the seller when listing item on Shopee */
|
|
759
|
+
days_to_ship: number;
|
|
760
|
+
/** The deadline to ship out the package */
|
|
761
|
+
ship_by_date: number;
|
|
762
|
+
/** Creation time of the package */
|
|
763
|
+
create_time: number;
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* Response for searching package list
|
|
767
|
+
*/
|
|
768
|
+
export interface SearchPackageListResponse extends FetchResponse<{
|
|
769
|
+
/** Indicates whether the package list is more than one page */
|
|
770
|
+
more: boolean;
|
|
771
|
+
/** If more is true, you should pass the next_cursor in the next request as cursor */
|
|
772
|
+
next_cursor: string;
|
|
773
|
+
/** The list of packages */
|
|
774
|
+
package_list: SearchPackageListPackage[];
|
|
775
|
+
}> {
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Parameters for getting pending buyer invoice order list
|
|
779
|
+
*/
|
|
780
|
+
export type GetPendingBuyerInvoiceOrderListParams = {
|
|
781
|
+
/** Maximum number of entries to return in a single page (between 1 and 100) */
|
|
782
|
+
page_size: number;
|
|
783
|
+
/** Specifies the starting entry of data to return in the current call */
|
|
784
|
+
cursor?: string;
|
|
785
|
+
};
|
|
786
|
+
/**
|
|
787
|
+
* Response for getting pending buyer invoice order list
|
|
788
|
+
*/
|
|
789
|
+
export interface GetPendingBuyerInvoiceOrderListResponse extends FetchResponse<{
|
|
790
|
+
/** Indicates whether the order list is more than one page */
|
|
791
|
+
more: boolean;
|
|
792
|
+
/** If more is true, you should pass the next_cursor in the next request as cursor */
|
|
793
|
+
next_cursor: string;
|
|
794
|
+
/** The list of order serial numbers */
|
|
795
|
+
order_sn_list: string[];
|
|
796
|
+
}> {
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* Parameters for handling prescription check
|
|
800
|
+
*/
|
|
801
|
+
export interface HandlePrescriptionCheckParams {
|
|
802
|
+
/** Shopee's unique identifier for the package under an order */
|
|
803
|
+
package_number: string;
|
|
804
|
+
/** The operation you want to handle. Available value: APPROVE, REJECT */
|
|
805
|
+
operation: "APPROVE" | "REJECT";
|
|
806
|
+
/** The reason for rejection. Required when operation is REJECT */
|
|
807
|
+
reject_reason?: string;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* Response for handling prescription check
|
|
811
|
+
*/
|
|
812
|
+
export interface HandlePrescriptionCheckResponse extends FetchResponse<{
|
|
813
|
+
/** Shopee's unique identifier for the package under an order */
|
|
814
|
+
package_number: string;
|
|
815
|
+
}> {
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* Parameters for downloading invoice document
|
|
819
|
+
*/
|
|
820
|
+
export type DownloadInvoiceDocParams = {
|
|
821
|
+
/** Shopee's unique identifier for an order */
|
|
822
|
+
order_sn: string;
|
|
823
|
+
};
|
|
824
|
+
/**
|
|
825
|
+
* Response for downloading invoice document
|
|
826
|
+
*/
|
|
827
|
+
export interface DownloadInvoiceDocResponse extends FetchResponse<{
|
|
828
|
+
/** The URL of the invoice document */
|
|
829
|
+
url: string;
|
|
830
|
+
}> {
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* Parameters for uploading invoice document
|
|
834
|
+
*/
|
|
835
|
+
export interface UploadInvoiceDocParams {
|
|
836
|
+
/** Shopee's unique identifier for an order */
|
|
837
|
+
order_sn: string;
|
|
838
|
+
/** The invoice document file */
|
|
839
|
+
invoice_file: string;
|
|
840
|
+
}
|
|
841
|
+
/**
|
|
842
|
+
* Response for uploading invoice document
|
|
843
|
+
*/
|
|
844
|
+
export interface UploadInvoiceDocResponse extends FetchResponse<null> {
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Parameters for getting booking detail
|
|
848
|
+
*/
|
|
849
|
+
export interface GetBookingDetailParams {
|
|
850
|
+
/** The set of booking_sn. If there are multiple booking_sn, you need to use English comma to connect them. limit [1,50] */
|
|
851
|
+
booking_sn_list: string[];
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Booking detail information
|
|
855
|
+
*/
|
|
856
|
+
export interface BookingDetail {
|
|
857
|
+
/** Shopee's unique identifier for a booking */
|
|
858
|
+
booking_sn: string;
|
|
859
|
+
/** Shopee's unique identifier for an order */
|
|
860
|
+
order_sn: string;
|
|
861
|
+
/** The booking status */
|
|
862
|
+
booking_status: string;
|
|
863
|
+
/** Creation time of the booking */
|
|
864
|
+
create_time: number;
|
|
865
|
+
/** Update time of the booking */
|
|
866
|
+
update_time: number;
|
|
867
|
+
/** The identity of logistic channel */
|
|
868
|
+
logistics_channel_id: number;
|
|
869
|
+
/** The list of packages in the booking */
|
|
870
|
+
package_list: string[];
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Response for getting booking detail
|
|
874
|
+
*/
|
|
875
|
+
export interface GetBookingDetailResponse extends FetchResponse<{
|
|
876
|
+
/** The list of bookings */
|
|
877
|
+
booking_list: BookingDetail[];
|
|
878
|
+
}> {
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Parameters for getting booking list
|
|
882
|
+
*/
|
|
883
|
+
export type GetBookingListParams = {
|
|
884
|
+
/** The kind of time_from and time_to. Available value: create_time, update_time */
|
|
885
|
+
time_range_field: "create_time" | "update_time";
|
|
886
|
+
/** The starting date range for retrieving bookings. The maximum date range is 15 days */
|
|
887
|
+
time_from: number;
|
|
888
|
+
/** The ending date range for retrieving bookings. The maximum date range is 15 days */
|
|
889
|
+
time_to: number;
|
|
890
|
+
/** Maximum number of entries to return in a single page (between 1 and 100) */
|
|
891
|
+
page_size: number;
|
|
892
|
+
/** Specifies the starting entry of data to return in the current call */
|
|
893
|
+
cursor?: string;
|
|
894
|
+
/** The booking_status filter for retrieving bookings. Available value: READY_TO_SHIP/PROCESSED/SHIPPED/CANCELLED/MATCHED */
|
|
895
|
+
booking_status?: string;
|
|
896
|
+
};
|
|
897
|
+
/**
|
|
898
|
+
* Booking list item
|
|
899
|
+
*/
|
|
900
|
+
export interface BookingListItem {
|
|
901
|
+
/** Shopee's unique identifier for a booking */
|
|
902
|
+
booking_sn: string;
|
|
903
|
+
/** The booking status */
|
|
904
|
+
booking_status: string;
|
|
905
|
+
/** Update time of the booking */
|
|
906
|
+
update_time: number;
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Response for getting booking list
|
|
910
|
+
*/
|
|
911
|
+
export interface GetBookingListResponse extends FetchResponse<{
|
|
912
|
+
/** Indicates whether the booking list is more than one page */
|
|
913
|
+
more: boolean;
|
|
914
|
+
/** If more is true, you should pass the next_cursor in the next request as cursor */
|
|
915
|
+
next_cursor: string;
|
|
916
|
+
/** The list of bookings */
|
|
917
|
+
booking_list: BookingListItem[];
|
|
918
|
+
}> {
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Warehouse filter configuration
|
|
922
|
+
*/
|
|
923
|
+
export interface WarehouseFilterConfig {
|
|
924
|
+
/** The warehouse ID */
|
|
925
|
+
product_location_id: string;
|
|
926
|
+
/** The address ID */
|
|
927
|
+
address_id: number;
|
|
928
|
+
}
|
|
929
|
+
/**
|
|
930
|
+
* Response for getting warehouse filter config
|
|
931
|
+
*/
|
|
932
|
+
export interface GetWarehouseFilterConfigResponse extends FetchResponse<{
|
|
933
|
+
/** The list of warehouse filter configurations */
|
|
934
|
+
warehouse_list: WarehouseFilterConfig[];
|
|
935
|
+
}> {
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Request ID list for FBS invoices
|
|
939
|
+
*/
|
|
940
|
+
export interface FbsInvoicesRequestIdList {
|
|
941
|
+
/** List of request IDs */
|
|
942
|
+
request_id: number[];
|
|
943
|
+
}
|
|
944
|
+
/**
|
|
945
|
+
* Parameters for downloading FBS invoices
|
|
946
|
+
*/
|
|
947
|
+
export interface DownloadFbsInvoicesParams {
|
|
948
|
+
/** List of request id (task identifiers) */
|
|
949
|
+
request_id_list?: FbsInvoicesRequestIdList;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* FBS invoice download result
|
|
953
|
+
*/
|
|
954
|
+
export interface FbsInvoiceDownloadResult {
|
|
955
|
+
/** The request ID */
|
|
956
|
+
request_id: number;
|
|
957
|
+
/** The download URL */
|
|
958
|
+
url: string;
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Response for downloading FBS invoices
|
|
962
|
+
*/
|
|
963
|
+
export interface DownloadFbsInvoicesResponse extends FetchResponse<{
|
|
964
|
+
/** The list of download results */
|
|
965
|
+
result_list: FbsInvoiceDownloadResult[];
|
|
966
|
+
}> {
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Batch download parameters for FBS invoices
|
|
970
|
+
*/
|
|
971
|
+
export interface FbsBatchDownload {
|
|
972
|
+
/** Start date in format YYYYMMDD, e.g. 20240101 */
|
|
973
|
+
start: number;
|
|
974
|
+
/** End date in format YYYYMMDD, e.g. 20240101 */
|
|
975
|
+
end: number;
|
|
976
|
+
/** Document type. 1 = Remessa, 2 = Return, 3 = Symbolic Return, 4 = Sale, 5 = Entrada, 6 = Symbolic Remessa, 7 = all */
|
|
977
|
+
document_type: number;
|
|
978
|
+
/** File type. 1 = xml only, 2 = pdf only, 3 = both */
|
|
979
|
+
file_type: number;
|
|
980
|
+
/** Document status. 1= authorized only, 2= cancelled. Default: If not passed or passed empty, means documents under ALL status (both authorized and cancelled) must be included */
|
|
981
|
+
document_status?: number;
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* Parameters for generating FBS invoices
|
|
985
|
+
*/
|
|
986
|
+
export interface GenerateFbsInvoicesParams {
|
|
987
|
+
/** Batch download parameters */
|
|
988
|
+
batch_download?: FbsBatchDownload;
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* Response for generating FBS invoices
|
|
992
|
+
*/
|
|
993
|
+
export interface GenerateFbsInvoicesResponse extends FetchResponse<{
|
|
994
|
+
/** The request ID for the generated task */
|
|
995
|
+
request_id: number;
|
|
996
|
+
}> {
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Parameters for getting FBS invoices result
|
|
1000
|
+
*/
|
|
1001
|
+
export interface GetFbsInvoicesResultParams {
|
|
1002
|
+
/** List of request id to be queried */
|
|
1003
|
+
request_id_list: FbsInvoicesRequestIdList;
|
|
1004
|
+
}
|
|
1005
|
+
/**
|
|
1006
|
+
* FBS invoice result item
|
|
1007
|
+
*/
|
|
1008
|
+
export interface FbsInvoiceResultItem {
|
|
1009
|
+
/** The request ID */
|
|
1010
|
+
request_id: number;
|
|
1011
|
+
/** The status of the request. PROCESSING, READY, ERROR */
|
|
1012
|
+
status: string;
|
|
1013
|
+
/** Error message if status is ERROR */
|
|
1014
|
+
error_message?: string;
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Response for getting FBS invoices result
|
|
1018
|
+
*/
|
|
1019
|
+
export interface GetFbsInvoicesResultResponse extends FetchResponse<{
|
|
1020
|
+
/** The list of results */
|
|
1021
|
+
result_list: FbsInvoiceResultItem[];
|
|
1022
|
+
}> {
|
|
1023
|
+
}
|