From dfc1d4e470f424317c40008d7ce12b8d09b4ccd3 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Sat, 7 Jun 2025 22:47:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(wxapi):=20=E6=96=B0=E5=A2=9E=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E5=B0=8F=E5=BA=97=E6=8E=A8=E5=AE=A2=E5=B8=A6=E8=B4=A7?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/WechatApi/Basic_ModelDefinition.md | 11 +- docs/WechatApi/Basic_SecureAPI.md | 6 +- docs/WechatTenpayV3/Basic_GlobalAPI.md | 18 + .../Cooperation/CooperationShopOrderEvent.cs | 2 +- .../BetaAppAuthorizationApplyEvent.cs | 4 +- .../OpenComponent/BetaAppVerifyApplyEvent.cs | 4 +- .../OpenComponent/BetaAppVerifyEvent.cs | 4 +- .../OpenComponent/WxaAppealRecordEvent.cs | 2 +- ...echatApiClientExecuteChannelsExtensions.cs | 892 ++++++++++++++++++ .../CgibinAccountFastRegisterResponse.cs | 4 +- .../CgibinMenu/CgibinMenuCreateRequest.cs | 4 +- .../CgibinMenu/CgibinMenuGetResponse.cs | 4 +- .../CgibinOpen/CgibinOpenBindRequest.cs | 6 +- .../CgibinOpen/CgibinOpenCreateRequest.cs | 4 +- .../CgibinOpen/CgibinOpenCreateResponse.cs | 4 +- .../Models/CgibinOpen/CgibinOpenGetRequest.cs | 4 +- .../CgibinOpen/CgibinOpenGetResponse.cs | 4 +- .../CgibinOpen/CgibinOpenUnbindRequest.cs | 6 +- ...elsECAftersaleGetAftersaleOrderResponse.cs | 4 +- .../ChannelsECBasicsShopH5UrlGetResponse.cs | 2 +- .../ChannelsECBasicsShopQrcodeGetResponse.cs | 2 +- .../ChannelsECBasicsShopTagLinkGetResponse.cs | 2 +- .../ChannelsECCooperationOrderGetRequest.cs | 2 +- .../ChannelsECCooperationProductGetRequest.cs | 2 +- ...ChannelsECCooperationProductListRequest.cs | 2 +- .../ChannelsECCooperationShopListResponse.cs | 6 +- .../ECCoupon/ChannelsECCouponGetResponse.cs | 8 +- ...nnelsECLeagueHeadSupplierClueGetRequest.cs | 22 + ...nelsECLeagueHeadSupplierClueGetResponse.cs | 201 ++++ ...sECLeagueHeadSupplierClueListGetRequest.cs | 51 + ...ECLeagueHeadSupplierClueListGetResponse.cs | 50 + ...dSupplierLiveProtectionGetQrcodeRequest.cs | 9 + ...SupplierLiveProtectionGetQrcodeResponse.cs | 15 + ...elsECLeagueHeadSupplierOrderGetResponse.cs | 281 +++++- ...gueHeadSupplierProductDetailGetResponse.cs | 6 +- ...sECLeagueHeadSupplierSubItemAddResponse.cs | 6 + ...eagueHeadSupplierSubItemListGetResponse.cs | 11 +- ...CLeagueHeadSupplierWindowAuthGetRequest.cs | 2 +- ...eHeadSupplierWindowAuthStatusGetRequest.cs | 2 +- ...elsECLeagueHeadSupplierWindowAddRequest.cs | 2 +- ...ECLeagueHeadSupplierWindowGetAllRequest.cs | 2 +- ...eagueHeadSupplierWindowGetDetailRequest.cs | 2 +- ...agueHeadSupplierWindowGetDetailResponse.cs | 2 +- ...ECLeagueHeadSupplierWindowRemoveRequest.cs | 2 +- ...ECLeagueItemHeadSupplierBatchAddRequest.cs | 2 +- ...sECLogisticsEWaybillOrderCreateResponse.cs | 2 +- ...nelsECLogisticsEWaybillOrderGetResponse.cs | 2 +- ...CLogisticsEWaybillOrderPrecreateRequest.cs | 2 +- .../ECOrder/ChannelsECOrderGetResponse.cs | 2 +- .../ChannelsECProductStockGetFlowRequest.cs | 14 +- ...lsECPromoterGetShopMpArticleListRequest.cs | 51 + ...sECPromoterGetShopMpArticleListResponse.cs | 109 +++ ...ECPromoterGetTalentMpArticleListRequest.cs | 44 + ...CPromoterGetTalentMpArticleListResponse.cs | 136 +++ ...PromoterGetCooperativeCouponListRequest.cs | 30 + ...romoterGetCooperativeCouponListResponse.cs | 36 + ...hannelsECPromoterGetCouponDetailRequest.cs | 17 + ...annelsECPromoterGetCouponDetailResponse.cs | 22 + ...hannelsECPromoterGetCouponQrcodeRequest.cs | 31 + ...annelsECPromoterGetCouponQrcodeResponse.cs | 15 + ...nelsECPromoterGetCouponShortLinkRequest.cs | 31 + ...elsECPromoterGetCouponShortLinkResponse.cs | 15 + ...elsECPromoterGetPublicCouponListRequest.cs | 30 + ...lsECPromoterGetPublicCouponListResponse.cs | 43 + .../ChannelsECPromoterGetFeedListRequest.cs | 37 + .../ChannelsECPromoterGetFeedListResponse.cs | 98 ++ ...lsECPromoterGetFeedPromotionInfoRequest.cs | 51 + ...sECPromoterGetFeedPromotionInfoResponse.cs | 42 + ...hannelsECPromoterGetShopFeedListRequest.cs | 44 + ...annelsECPromoterGetShopFeedListResponse.cs | 63 ++ ...PromoterGetShopFeedPromotionInfoRequest.cs | 59 ++ ...romoterGetShopFeedPromotionInfoResponse.cs | 22 + ...oterGetLiveCommissionProductListRequest.cs | 30 + ...terGetLiveCommissionProductListResponse.cs | 71 ++ ...CPromoterGetLiveNoticeRecordListRequest.cs | 29 + ...PromoterGetLiveNoticeRecordListResponse.cs | 42 + ...romoterGetLiveNoticeRecordQrcodeRequest.cs | 29 + ...omoterGetLiveNoticeRecordQrcodeResponse.cs | 15 + ...oterGetLiveNoticeReservationInfoRequest.cs | 22 + ...terGetLiveNoticeReservationInfoResponse.cs | 15 + ...nnelsECPromoterGetLiveRecordListRequest.cs | 29 + ...nelsECPromoterGetLiveRecordListResponse.cs | 42 + ...elsECPromoterGetLiveRecordQrcodeRequest.cs | 29 + ...lsECPromoterGetLiveRecordQrcodeResponse.cs | 15 + ...GetShopLiveCommissionProductListRequest.cs | 44 + ...etShopLiveCommissionProductListResponse.cs | 42 + ...moterGetShopLiveNoticeRecordListRequest.cs | 29 + ...oterGetShopLiveNoticeRecordListResponse.cs | 22 + ...terGetShopLiveNoticeRecordQrcodeRequest.cs | 43 + ...erGetShopLiveNoticeRecordQrcodeResponse.cs | 15 + ...sECPromoterGetShopLiveRecordListRequest.cs | 43 + ...ECPromoterGetShopLiveRecordListResponse.cs | 22 + ...CPromoterGetShopLiveRecordQrcodeRequest.cs | 43 + ...PromoterGetShopLiveRecordQrcodeResponse.cs | 15 + ...moterGetProductPromotionLinkInfoRequest.cs | 50 + ...oterGetProductPromotionLinkInfoResponse.cs | 15 + ...terGetProductPromotionQrcodeInfoRequest.cs | 50 + ...erGetProductPromotionQrcodeInfoResponse.cs | 15 + ...CPromoterGetPromoteProductDetailRequest.cs | 43 + ...PromoterGetPromoteProductDetailResponse.cs | 256 +++++ ...sECPromoterGetPromoteProductListRequest.cs | 166 ++++ ...ECPromoterGetPromoteProductListResponse.cs | 49 + ...omoterSingleProductPromotionInfoRequest.cs | 50 + ...moterSingleProductPromotionInfoResponse.cs | 15 + ...erGetSharerProductCommissionInfoRequest.cs | 22 + ...rGetSharerProductCommissionInfoResponse.cs | 22 + ...erSetSharerProductCommissionInfoRequest.cs | 29 + ...rSetSharerProductCommissionInfoResponse.cs | 9 + ...nnelsECPromoterGetBindSharerListRequest.cs | 37 + ...nelsECPromoterGetBindSharerListResponse.cs | 70 ++ ...hannelsECPromoterGetBindShopListRequest.cs | 23 + ...annelsECPromoterGetBindShopListResponse.cs | 63 ++ ...CPromoterGetBindShopPromoterListRequest.cs | 30 + ...PromoterGetBindShopPromoterListResponse.cs | 63 ++ ...nnelsECPromoterGetBindTalentListRequest.cs | 30 + ...nelsECPromoterGetBindTalentListResponse.cs | 77 ++ ...GetPromoterRegisterAndBindStatusRequest.cs | 29 + ...etPromoterRegisterAndBindStatusResponse.cs | 57 ++ ...CPromoterSetSharerCommissionInfoRequest.cs | 29 + ...PromoterSetSharerCommissionInfoResponse.cs | 9 + .../ChannelsECQICInspectCodePrintResponse.cs | 2 +- .../ChannelsECTalentGetOrderDetailResponse.cs | 5 +- .../ChannelsECTalentGetOrderListRequest.cs | 21 + ...hannelsECTalentWindowProductGetResponse.cs | 4 +- ...elsECTalentWindowProductListGetResponse.cs | 2 +- .../ChannelsECWindowProductAddRequest.cs | 4 +- .../ChannelsECWindowProductGetRequest.cs | 2 +- .../ChannelsECWindowProductGetResponse.cs | 2 +- .../ChannelsECWindowProductListGetRequest.cs | 2 +- .../ChannelsECWindowProductListGetResponse.cs | 4 +- .../ChannelsECWindowProductOffRequest.cs | 4 +- .../Nontax/NontaxUnifiedOrderRequest.cs | 4 +- .../Coupon/ProductCouponGetResponse.cs | 10 +- ...ProductRegisterCheckAuditStatusResponse.cs | 4 +- .../Shop/Coupon/ShopCouponAddRequest.cs | 6 +- .../Shop/Coupon/ShopCouponGetResponse.cs | 6 +- .../Shop/Coupon/ShopCouponUpdateRequest.cs | 16 +- .../TCBShareEnvironmentRequest.cs | 4 +- .../Wxa/Plugin/WxaDevPluginDevAgreeRequest.cs | 4 +- .../Wxa/UrlLink/WxaGenerateUrlLinkRequest.cs | 4 +- .../Wxa/UrlLink/WxaQueryUrlLinkResponse.cs | 2 +- .../WxaApiCommentMpCommentListGetResponse.cs | 2 +- .../Register/WxaGetMpAdminAuthRequest.cs | 6 +- .../Register/WxaMpVerifyBetaWeappRequest.cs | 4 +- .../Template/WxaGetTemplateListResponse.cs | 2 +- .../WechatApiClientOptions.cs | 2 +- .../WechatTenpayClient.cs | 2 + ...elsECLeagueHeadSupplierClueGetRequest.json | 4 + ...lsECLeagueHeadSupplierClueGetResponse.json | 34 + ...CLeagueHeadSupplierClueListGetRequest.json | 7 + ...LeagueHeadSupplierClueListGetResponse.json | 11 + ...pplierLiveProtectionGetQrcodeResponse.json | 5 + ...ECPromoterGetShopMpArticleListRequest.json | 8 + ...CPromoterGetShopMpArticleListResponse.json | 27 + ...PromoterGetTalentMpArticleListRequest.json | 6 + ...romoterGetTalentMpArticleListResponse.json | 27 + ...omoterGetCooperativeCouponListRequest.json | 5 + ...moterGetCooperativeCouponListResponse.json | 11 + ...nnelsECPromoterGetCouponDetailRequest.json | 3 + ...nelsECPromoterGetCouponDetailResponse.json | 34 + ...nnelsECPromoterGetCouponQrcodeRequest.json | 5 + ...nelsECPromoterGetCouponQrcodeResponse.json | 5 + ...lsECPromoterGetCouponShortLinkRequest.json | 5 + ...sECPromoterGetCouponShortLinkResponse.json | 5 + ...sECPromoterGetPublicCouponListRequest.json | 5 + ...ECPromoterGetPublicCouponListResponse.json | 11 + .../ChannelsECPromoterGetFeedListRequest.json | 6 + ...ChannelsECPromoterGetFeedListResponse.json | 19 + ...ECPromoterGetFeedPromotionInfoRequest.json | 9 + ...CPromoterGetFeedPromotionInfoResponse.json | 11 + ...nnelsECPromoterGetShopFeedListRequest.json | 7 + ...nelsECPromoterGetShopFeedListResponse.json | 18 + ...omoterGetShopFeedPromotionInfoRequest.json | 11 + ...moterGetShopFeedPromotionInfoResponse.json | 11 + ...erGetLiveCommissionProductListRequest.json | 5 + ...rGetLiveCommissionProductListResponse.json | 15 + ...romoterGetLiveNoticeRecordListRequest.json | 3 + ...omoterGetLiveNoticeRecordListResponse.json | 11 + ...moterGetLiveNoticeRecordQrcodeRequest.json | 5 + ...oterGetLiveNoticeRecordQrcodeResponse.json | 5 + ...erGetLiveNoticeReservationInfoRequest.json | 4 + ...rGetLiveNoticeReservationInfoResponse.json | 5 + ...elsECPromoterGetLiveRecordListRequest.json | 4 + ...lsECPromoterGetLiveRecordListResponse.json | 11 + ...sECPromoterGetLiveRecordQrcodeRequest.json | 5 + ...ECPromoterGetLiveRecordQrcodeResponse.json | 5 + ...tShopLiveCommissionProductListRequest.json | 7 + ...ShopLiveCommissionProductListResponse.json | 16 + ...rGetShopLiveNoticeRecordQrcodeRequest.json | 7 + ...GetShopLiveNoticeRecordQrcodeResponse.json | 5 + ...CPromoterGetShopLiveRecordListRequest.json | 6 + ...PromoterGetShopLiveRecordListResponse.json | 11 + ...romoterGetShopLiveRecordQrcodeRequest.json | 7 + ...omoterGetShopLiveRecordQrcodeResponse.json | 5 + ...terGetProductPromotionLinkInfoRequest.json | 5 + ...erGetProductPromotionLinkInfoResponse.json | 5 + ...rGetProductPromotionQrcodeInfoRequest.json | 5 + ...GetProductPromotionQrcodeInfoResponse.json | 5 + ...romoterGetPromoteProductDetailRequest.json | 6 + ...omoterGetPromoteProductDetailResponse.json | 47 + ...CPromoterGetPromoteProductListRequest.json | 17 + ...PromoterGetPromoteProductListResponse.json | 11 + ...oterSingleProductPromotionInfoRequest.json | 5 + ...terSingleProductPromotionInfoResponse.json | 5 + ...GetSharerProductCommissionInfoRequest.json | 4 + ...etSharerProductCommissionInfoResponse.json | 6 + ...SetSharerProductCommissionInfoRequest.json | 5 + ...elsECPromoterGetBindSharerListRequest.json | 6 + ...lsECPromoterGetBindSharerListResponse.json | 15 + ...nnelsECPromoterGetBindShopListRequest.json | 4 + ...nelsECPromoterGetBindShopListResponse.json | 14 + ...romoterGetBindShopPromoterListRequest.json | 5 + ...omoterGetBindShopPromoterListResponse.json | 14 + ...elsECPromoterGetBindTalentListRequest.json | 5 + ...lsECPromoterGetBindTalentListResponse.json | 16 + ...tPromoterRegisterAndBindStatusRequest.json | 4 + ...PromoterRegisterAndBindStatusResponse.json | 10 + ...romoterSetSharerCommissionInfoRequest.json | 5 + 218 files changed, 5399 insertions(+), 130 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoRequest.cs create mode 100644 src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoResponse.cs create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse.json create mode 100644 test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoRequest.json diff --git a/docs/WechatApi/Basic_ModelDefinition.md b/docs/WechatApi/Basic_ModelDefinition.md index 4939d663..649b9be9 100644 --- a/docs/WechatApi/Basic_ModelDefinition.md +++ b/docs/WechatApi/Basic_ModelDefinition.md @@ -183,11 +183,12 @@ [展开查看] -| | 微信 API | 备注 | -| :-: | :------------: | :--: | -| √ | 微信小店 | | -| √ | 达人带货 | | -| √ | 带货助手 | | +| | 微信 API | 备注 | +| :-: | :------: | :--: | +| √ | 微信小店 | | +| √ | 达人带货 | | +| √ | 推客带货 | | +| √ | 带货助手 | | diff --git a/docs/WechatApi/Basic_SecureAPI.md b/docs/WechatApi/Basic_SecureAPI.md index d53e7f6f..ce59a7ed 100644 --- a/docs/WechatApi/Basic_SecureAPI.md +++ b/docs/WechatApi/Basic_SecureAPI.md @@ -47,11 +47,11 @@ var client = WechatApiClientBuilder.Create(options).Build(); var options = new WechatApiClientOptions() { // 其他配置项略 - SecureApiCustomRequestPathMatcher = (url) => + SecureApiCustomRequestPathMatcher = (path) => { - if (url == "/sns/auth") + if (path == "/sns/auth") return true; - else if (url == "/sns/userinfo") + else if (path == "/sns/userinfo") return true; return false; diff --git a/docs/WechatTenpayV3/Basic_GlobalAPI.md b/docs/WechatTenpayV3/Basic_GlobalAPI.md index 0344fe25..6bc1ec89 100644 --- a/docs/WechatTenpayV3/Basic_GlobalAPI.md +++ b/docs/WechatTenpayV3/Basic_GlobalAPI.md @@ -19,3 +19,21 @@ var client = WechatTenpayGlobalClientBuilder.Create(options).Build(); ``` 该扩展客户端在用法上基础客户端完全相同,只需引入相应的命名空间即可。 + +--- + +### 切换接入点 + +默认情况下,微信支付境外支付 API 客户端的接入点为 `https://apihk.mch.weixin.qq.com/v3/global`。 + +如果你要切换为 `https://api.mch.weixin.qq.com/hk/v3` 或其他入口点,可以在构造客户端时指定: + +```csharp + +var options = new WechatTenpayGlobalClientOptions() +{ + // 其他配置项略 + Endpoint = "https://api.mch.weixin.qq.com/hk/v3" // 注意结尾不要带 "/" +}; +var client = WechatTenpayGlobalClientBuilder.Create(options).Build(); +``` diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/Channels/Cooperation/CooperationShopOrderEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/Channels/Cooperation/CooperationShopOrderEvent.cs index fc7ddd28..1e6912f6 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/Channels/Cooperation/CooperationShopOrderEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/Channels/Cooperation/CooperationShopOrderEvent.cs @@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events public class EventData { /// - /// 获取或设置店铺 AppId。 + /// 获取或设置小店 AppId。 /// [Newtonsoft.Json.JsonProperty("shop_appid")] [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppAuthorizationApplyEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppAuthorizationApplyEvent.cs index 6877763d..d080d450 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppAuthorizationApplyEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppAuthorizationApplyEvent.cs @@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events public class EventData { /// - /// 获取或设置小程序的 AppId。 + /// 获取或设置小程序 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] @@ -22,7 +22,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events public string MiniProgramAppId { get; set; } = default!; /// - /// 获取或设置公众号的 AppId。 + /// 获取或设置公众号 AppId。 /// [Newtonsoft.Json.JsonProperty("mp_appid")] [System.Text.Json.Serialization.JsonPropertyName("mp_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppVerifyApplyEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppVerifyApplyEvent.cs index 43c3eb27..2ed86f3c 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppVerifyApplyEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppVerifyApplyEvent.cs @@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events public class EventData { /// - /// 获取或设置小程序的 AppId。 + /// 获取或设置小程序 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] @@ -22,7 +22,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events public string MiniProgramAppId { get; set; } = default!; /// - /// 获取或设置公众号的 AppId。 + /// 获取或设置公众号 AppId。 /// [Newtonsoft.Json.JsonProperty("mp_appid")] [System.Text.Json.Serialization.JsonPropertyName("mp_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppVerifyEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppVerifyEvent.cs index 88e242a3..38ff09ab 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppVerifyEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/BetaAppVerifyEvent.cs @@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events public class EventData { /// - /// 获取或设置小程序的 AppId。 + /// 获取或设置小程序 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] @@ -22,7 +22,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events public string MiniProgramAppId { get; set; } = default!; /// - /// 获取或设置公众号的 AppId。 + /// 获取或设置公众号 AppId。 /// [Newtonsoft.Json.JsonProperty("mp_appid")] [System.Text.Json.Serialization.JsonPropertyName("mp_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/WxaAppealRecordEvent.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/WxaAppealRecordEvent.cs index 65e0fb02..1474ef6f 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/WxaAppealRecordEvent.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Events/OpenComponent/WxaAppealRecordEvent.cs @@ -78,7 +78,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events public int AppealRecordId { get; set; } /// - /// 获取或设置小程序的 AppId。 + /// 获取或设置小程序 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteChannelsExtensions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteChannelsExtensions.cs index 231be04c..ed92d1cf 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteChannelsExtensions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Extensions/WechatApiClientExecuteChannelsExtensions.cs @@ -2455,6 +2455,54 @@ namespace SKIT.FlurlHttpClient.Wechat.Api #endregion #region ECLeague/HeadSupplier + #region ECLeague/HeadSupplier/Clue + /// + /// 异步调用 [POST] /channels/ec/league/headsupplier/clue/list/get 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECLeagueHeadSupplierClueListGetAsync(this WechatApiClient client, Models.ChannelsECLeagueHeadSupplierClueListGetRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "league", "headsupplier", "clue", "list", "get") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/league/headsupplier/clue/get 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECLeagueHeadSupplierClueGetAsync(this WechatApiClient client, Models.ChannelsECLeagueHeadSupplierClueGetRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "league", "headsupplier", "clue", "get") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #region ECLeague/HeadSupplier/CooperativeItem /// /// 异步调用 [POST] /channels/ec/league/headsupplier/cooperativeitem/add 接口。 @@ -2666,6 +2714,31 @@ namespace SKIT.FlurlHttpClient.Wechat.Api return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } + #endregion、 + + #region ECLeague/HeadSupplier/LiveProtection + /// + /// 异步调用 [POST] /channels/ec/league/headsupplier/liveprotection/getqrcode 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeAsync(this WechatApiClient client, Models.ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "league", "headsupplier", "liveprotection", "getqrcode") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } #endregion #region ECLeague/HeadSupplier/Order @@ -5271,6 +5344,825 @@ namespace SKIT.FlurlHttpClient.Wechat.Api } #endregion + #region ECPromoter + #region ECPromoter/Article + /// + /// 异步调用 [POST] /channels/ec/promoter/get_talent_biz_article_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetTalentMpArticleListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetTalentMpArticleListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_talent_biz_article_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_shop_mp_article_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetShopMpArticleListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopMpArticleListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_mp_article_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region ECPromoter/Coupon + /// + /// 异步调用 [POST] /channels/ec/promoter/get_public_coupon_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetPublicCouponListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetPublicCouponListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_public_coupon_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_cooperative_coupon_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetCooperativeCouponListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetCooperativeCouponListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_cooperative_coupon_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_coupon_detail 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetCouponDetailAsync(this WechatApiClient client, Models.ChannelsECPromoterGetCouponDetailRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_coupon_detail") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_coupon_short_link 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetCouponShortLinkAsync(this WechatApiClient client, Models.ChannelsECPromoterGetCouponShortLinkRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_coupon_short_link") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_coupon_qr_code 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetCouponQrcodeAsync(this WechatApiClient client, Models.ChannelsECPromoterGetCouponQrcodeRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_coupon_qr_code") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region ECPromoter/Feed + /// + /// 异步调用 [POST] /channels/ec/promoter/get_feed_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetFeedListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetFeedListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_feed_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_shop_feed_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetShopFeedListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopFeedListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_feed_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_feed_promotion_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetFeedPromotionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetFeedPromotionInfoRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_feed_promotion_info") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_shop_feed_promotion_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetShopFeedPromotionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopFeedPromotionInfoRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_feed_promotion_info") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region ECPromoter/Live + /// + /// 异步调用 [POST] /channels/ec/promoter/get_live_record_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetLiveRecordListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveRecordListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_record_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_live_notice_record_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetLiveNoticeRecordListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveNoticeRecordListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_notice_record_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_live_record_qr_code 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetLiveRecordQrcodeAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveRecordQrcodeRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_record_qr_code") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_live_notice_record_qr_code 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetLiveNoticeRecordQrcodeAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_notice_record_qr_code") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_live_commission_product_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetLiveCommissionProductListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveCommissionProductListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_commission_product_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_live_notice_reservation_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetLiveNoticeReservationInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetLiveNoticeReservationInfoRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_live_notice_reservation_info") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_shop_live_record_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetShopLiveRecordListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopLiveRecordListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_live_record_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_shop_live_notice_record_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetShopLiveNoticeRecordListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopLiveNoticeRecordListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_live_notice_record_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_shop_live_record_qr_code 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetShopLiveRecordQrcodeAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopLiveRecordQrcodeRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_live_record_qr_code") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_shop_live_notice_record_qr_code 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetShopLiveNoticeRecordQrcodeAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_live_notice_record_qr_code") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_shop_live_commission_product_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetShopLiveCommissionProductListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetShopLiveCommissionProductListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_shop_live_commission_product_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region ECPromoter/Product + /// + /// 异步调用 [POST] /channels/ec/promoter/set_sharer_product_commission_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterSetSharerProductCommissionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterSetSharerProductCommissionInfoRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "set_sharer_product_commission_info") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_sharer_product_commission_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetSharerProductCommissionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetSharerProductCommissionInfoRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_sharer_product_commission_info") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_promote_product_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetPromoteProductListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetPromoteProductListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_promote_product_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_promote_product_detail 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetPromoteProductDetailAsync(this WechatApiClient client, Models.ChannelsECPromoterGetPromoteProductDetailRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_promote_product_detail") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_product_promotion_link_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetProductPromotionLinkInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetProductPromotionLinkInfoRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_product_promotion_link_info") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_product_promotion_qrcode_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetProductPromotionQrcodeInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetProductPromotionQrcodeInfoRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_product_promotion_qrcode_info") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_promoter_single_product_promotion_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetPromoterSingleProductPromotionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_promoter_single_product_promotion_info") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region ECPromoter/Sharer + /// + /// 异步调用 [POST] /channels/ec/promoter/get_promoter_register_and_bind_status 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetPromoterRegisterAndBindStatusAsync(this WechatApiClient client, Models.ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_promoter_register_and_bind_status") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/set_sharer_commission_info 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterSetSharerCommissionInfoAsync(this WechatApiClient client, Models.ChannelsECPromoterSetSharerCommissionInfoRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "set_sharer_commission_info") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_bind_sharer_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetBindSharerListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetBindSharerListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_bind_sharer_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_bind_talent_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetBindTalentListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetBindTalentListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_bind_talent_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_bind_shop_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetBindShopListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetBindShopListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_bind_shop_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /channels/ec/promoter/get_bind_shop_promoter_list 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecuteChannelsECPromoterGetBindShopPromoterListAsync(this WechatApiClient client, Models.ChannelsECPromoterGetBindShopPromoterListRequest request, CancellationToken cancellationToken = default) + { + if (client is null) throw new ArgumentNullException(nameof(client)); + if (request is null) throw new ArgumentNullException(nameof(request)); + + IFlurlRequest flurlReq = client + .CreateFlurlRequest(request, HttpMethod.Post, "channels", "ec", "promoter", "get_bind_shop_promoter_list") + .SetQueryParam("access_token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #endregion + #region ECQIC /// /// 异步调用 [GET] /channels/ec/qic/inspect/config/get 接口。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinAccount/CgibinAccountFastRegisterResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinAccount/CgibinAccountFastRegisterResponse.cs index ab252041..32eb202b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinAccount/CgibinAccountFastRegisterResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinAccount/CgibinAccountFastRegisterResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /cgi-bin/account/fastregister 接口的响应。 @@ -6,7 +6,7 @@ public class CgibinAccountFastRegisterResponse : WechatApiResponse { /// - /// 获取或设置新创建的 AppId。 + /// 获取或设置新创建 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMenu/CgibinMenuCreateRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMenu/CgibinMenuCreateRequest.cs index 07705352..947fdff1 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMenu/CgibinMenuCreateRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMenu/CgibinMenuCreateRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { @@ -54,7 +54,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? ArticleId { get; set; } /// - /// 获取或设置小程序的 AppId。 + /// 获取或设置小程序 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMenu/CgibinMenuGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMenu/CgibinMenuGetResponse.cs index 414b24bf..8143f889 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMenu/CgibinMenuGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinMenu/CgibinMenuGetResponse.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { @@ -58,7 +58,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? ArticleId { get; set; } /// - /// 获取或设置小程序的 AppId。 + /// 获取或设置小程序 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenBindRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenBindRequest.cs index 9a431d30..34322b76 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenBindRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenBindRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /cgi-bin/open/bind 接口的请求。 @@ -6,14 +6,14 @@ public class CgibinOpenBindRequest : WechatApiRequest, IInferable { /// - /// 获取或设置授权方的 AppId。 + /// 获取或设置授权方 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] public string AuthorizerAppId { get; set; } = string.Empty; /// - /// 获取或设置开放平台的 AppId。 + /// 获取或设置开放平台 AppId。 /// [Newtonsoft.Json.JsonProperty("open_appid")] [System.Text.Json.Serialization.JsonPropertyName("open_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenCreateRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenCreateRequest.cs index 6a2235c4..691d75ee 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenCreateRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenCreateRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /cgi-bin/open/create 接口的请求。 @@ -6,7 +6,7 @@ public class CgibinOpenCreateRequest : WechatApiRequest, IInferable { /// - /// 获取或设置授权方的 AppId。 + /// 获取或设置授权方 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenCreateResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenCreateResponse.cs index ca74a264..4d3cb42c 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenCreateResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenCreateResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /cgi-bin/open/create 接口的响应。 @@ -6,7 +6,7 @@ public class CgibinOpenCreateResponse : WechatApiResponse { /// - /// 获取或设置开放平台的 AppId。 + /// 获取或设置开放平台 AppId。 /// [Newtonsoft.Json.JsonProperty("open_appid")] [System.Text.Json.Serialization.JsonPropertyName("open_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetRequest.cs index 2820c8cc..dbca9ceb 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /cgi-bin/open/get 接口的请求。 @@ -6,7 +6,7 @@ public class CgibinOpenGetRequest : WechatApiRequest, IInferable { /// - /// 获取或设置授权方的 AppId。 + /// 获取或设置授权方 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetResponse.cs index 819b7aa9..70e6de64 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenGetResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /cgi-bin/open/get 接口的响应。 @@ -6,7 +6,7 @@ public class CgibinOpenGetResponse : WechatApiResponse { /// - /// 获取或设置开放平台的 AppId。 + /// 获取或设置开放平台 AppId。 /// [Newtonsoft.Json.JsonProperty("open_appid")] [System.Text.Json.Serialization.JsonPropertyName("open_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenUnbindRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenUnbindRequest.cs index 39bd284f..bdefbf11 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenUnbindRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/CgibinOpen/CgibinOpenUnbindRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /cgi-bin/open/unbind 接口的请求。 @@ -6,14 +6,14 @@ public class CgibinOpenUnbindRequest : WechatApiRequest, IInferable { /// - /// 获取或设置授权方的 AppId。 + /// 获取或设置授权方 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] public string AuthorizerAppId { get; set; } = string.Empty; /// - /// 获取或设置开放平台的 AppId。 + /// 获取或设置开放平台 AppId。 /// [Newtonsoft.Json.JsonProperty("open_appid")] [System.Text.Json.Serialization.JsonPropertyName("open_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECAftersale/ChannelsECAftersaleGetAftersaleOrderResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECAftersale/ChannelsECAftersaleGetAftersaleOrderResponse.cs index 3ffe9db8..67497301 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECAftersale/ChannelsECAftersaleGetAftersaleOrderResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECAftersale/ChannelsECAftersaleGetAftersaleOrderResponse.cs @@ -257,8 +257,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// /// 获取或设置商品数量。 /// - [Newtonsoft.Json.JsonProperty("product_count")] - [System.Text.Json.Serialization.JsonPropertyName("product_count")] + [Newtonsoft.Json.JsonProperty("product_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("product_cnt")] public int Count { get; set; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopH5UrlGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopH5UrlGetResponse.cs index ac7d5172..f53e3a7d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopH5UrlGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopH5UrlGetResponse.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class ChannelsECBasicsShopH5UrlGetResponse : WechatApiResponse { /// - /// 获取或设置店铺 H5 短链。 + /// 获取或设置小店 H5 短链。 /// [Newtonsoft.Json.JsonProperty("shop_h5url")] [System.Text.Json.Serialization.JsonPropertyName("shop_h5url")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopQrcodeGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopQrcodeGetResponse.cs index f87e2edf..c0ac58bd 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopQrcodeGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopQrcodeGetResponse.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class ChannelsECBasicsShopQrcodeGetResponse : WechatApiResponse { /// - /// 获取或设置店铺二维码链接。 + /// 获取或设置小店二维码链接。 /// [Newtonsoft.Json.JsonProperty("shop_qrcode")] [System.Text.Json.Serialization.JsonPropertyName("shop_qrcode")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopTagLinkGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopTagLinkGetResponse.cs index 2f204a8e..f65c6952 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopTagLinkGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECBasics/Shop/ChannelsECBasicsShopTagLinkGetResponse.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class ChannelsECBasicsShopTagLinkGetResponse : WechatApiResponse { /// - /// 获取或设置店铺微信口令。 + /// 获取或设置小店微信口令。 /// [Newtonsoft.Json.JsonProperty("shop_taglink")] [System.Text.Json.Serialization.JsonPropertyName("shop_taglink")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationOrderGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationOrderGetRequest.cs index 95cff76c..5f19c170 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationOrderGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationOrderGetRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class ChannelsECCooperationOrderGetRequest : WechatApiRequest, IInferable { /// - /// 获取或设置店铺 AppId。 + /// 获取或设置小店 AppId。 /// [Newtonsoft.Json.JsonProperty("shop_appid")] [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationProductGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationProductGetRequest.cs index cdbd6522..048c4e6d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationProductGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationProductGetRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class ChannelsECCooperationProductGetRequest : WechatApiRequest, IInferable { /// - /// 获取或设置店铺 AppId。 + /// 获取或设置小店 AppId。 /// [Newtonsoft.Json.JsonProperty("shop_appid")] [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationProductListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationProductListRequest.cs index 9d912cfa..5218f489 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationProductListRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationProductListRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class ChannelsECCooperationProductListRequest : WechatApiRequest, IInferable { /// - /// 获取或设置店铺 AppId。 + /// 获取或设置小店 AppId。 /// [Newtonsoft.Json.JsonProperty("shop_appid")] [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationShopListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationShopListResponse.cs index a3d8d42f..76f02977 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationShopListResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCooperation/ChannelsECCooperationShopListResponse.cs @@ -10,14 +10,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class Shop { /// - /// 获取或设置店铺 AppId。 + /// 获取或设置小店 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] public string AppId { get; set; } = default!; /// - /// 获取或设置店铺名称。 + /// 获取或设置小店名称。 /// [Newtonsoft.Json.JsonProperty("nickname")] [System.Text.Json.Serialization.JsonPropertyName("nickname")] @@ -54,7 +54,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models } /// - /// 获取或设置店铺列表。 + /// 获取或设置小店列表。 /// [Newtonsoft.Json.JsonProperty("shop_list")] [System.Text.Json.Serialization.JsonPropertyName("shop_list")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCoupon/ChannelsECCouponGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCoupon/ChannelsECCouponGetResponse.cs index 4380ac3b..cc461a14 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCoupon/ChannelsECCouponGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECCoupon/ChannelsECCouponGetResponse.cs @@ -11,7 +11,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models { public static class Types { - public class CouponDetail + public class CouponInfo { public static class Types { @@ -126,7 +126,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public Types.Validity Validity { get; set; } = default!; } - public class CouponStock + public class StockInfo { /// /// 获取或设置剩余量。 @@ -178,14 +178,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// [Newtonsoft.Json.JsonProperty("coupon_info")] [System.Text.Json.Serialization.JsonPropertyName("coupon_info")] - public Types.CouponDetail CouponDetail { get; set; } = default!; + public Types.CouponInfo CouponInfo { get; set; } = default!; /// /// 获取或设置优惠券库存信息。 /// [Newtonsoft.Json.JsonProperty("stock_info")] [System.Text.Json.Serialization.JsonPropertyName("stock_info")] - public Types.CouponStock CouponStock { get; set; } = default!; + public Types.StockInfo StockInfo { get; set; } = default!; /// /// 获取或设置更新时间戳。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetRequest.cs new file mode 100644 index 00000000..040de6fb --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/league/headsupplier/clue/get 接口的请求。 + /// + public class ChannelsECLeagueHeadSupplierClueGetRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置订单 ID。 + /// + [Newtonsoft.Json.JsonProperty("order_id")] + [System.Text.Json.Serialization.JsonPropertyName("order_id")] + public string OrderId { get; set; } = string.Empty; + + /// + /// 获取或设置 SKU ID。 + /// + [Newtonsoft.Json.JsonProperty("sku_id")] + [System.Text.Json.Serialization.JsonPropertyName("sku_id")] + public long SKUId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetResponse.cs new file mode 100644 index 00000000..1bca2716 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetResponse.cs @@ -0,0 +1,201 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/league/headsupplier/clue/get 接口的响应。 + /// + public class ChannelsECLeagueHeadSupplierClueGetResponse : WechatApiResponse + { + public static class Types + { + public class CommissionClue + { + public static class Types + { + public class ClueDetail + { + public static class Types + { + public class ShopInfo + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string ShopAppId { get; set; } = default!; + } + + public class ProductInfo + { + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long ProductId { get; set; } + + /// + /// 获取或设置缩略图 URL。 + /// + [Newtonsoft.Json.JsonProperty("thumb_img")] + [System.Text.Json.Serialization.JsonPropertyName("thumb_img")] + public string ThumbnailUrl { get; set; } = default!; + + /// + /// 获取或设置商品标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string Title { get; set; } = default!; + + /// + /// 获取或设置实际支付金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("actual_payment")] + [System.Text.Json.Serialization.JsonPropertyName("actual_payment")] + public int ActualPayment { get; set; } + } + + public class OrderInfo + { + /// + /// 获取或设置订单状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + } + + public class SharerInfo + { + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string SharerAppId { get; set; } = default!; + + /// + /// 获取或设置推客的昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickname")] + [System.Text.Json.Serialization.JsonPropertyName("nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置推客 ID。 + /// + [Newtonsoft.Json.JsonProperty("opensharerid")] + [System.Text.Json.Serialization.JsonPropertyName("opensharerid")] + public string OpenSharerId { get; set; } = default!; + } + + public class BuyerInfo + { + /// + /// 获取或设置买家的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = default!; + + /// + /// 获取或设置买家的 UnionId。 + /// + [Newtonsoft.Json.JsonProperty("union_id")] + [System.Text.Json.Serialization.JsonPropertyName("union_id")] + public string? UnionId { get; set; } + } + } + + /// + /// 获取或设置小店信息。 + /// + [Newtonsoft.Json.JsonProperty("shop_info")] + [System.Text.Json.Serialization.JsonPropertyName("shop_info")] + public Types.ShopInfo ShopInfo { get; set; } = default!; + + /// + /// 获取或设置商品信息。 + /// + [Newtonsoft.Json.JsonProperty("product_info")] + [System.Text.Json.Serialization.JsonPropertyName("product_info")] + public Types.ProductInfo ProductInfo { get; set; } = default!; + + /// + /// 获取或设置订单信息。 + /// + [Newtonsoft.Json.JsonProperty("order_info")] + [System.Text.Json.Serialization.JsonPropertyName("order_info")] + public Types.OrderInfo OrderInfo { get; set; } = default!; + + /// + /// 获取或设置分享者信息。 + /// + [Newtonsoft.Json.JsonProperty("sharer_info")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_info")] + public Types.SharerInfo SharerInfo { get; set; } = default!; + + /// + /// 获取或设置买家信息。 + /// + [Newtonsoft.Json.JsonProperty("buyer_info")] + [System.Text.Json.Serialization.JsonPropertyName("buyer_info")] + public Types.BuyerInfo BuyerInfo { get; set; } = default!; + } + } + + /// + /// 获取或设置订单 ID。 + /// + [Newtonsoft.Json.JsonProperty("order_id")] + [System.Text.Json.Serialization.JsonPropertyName("order_id")] + public string OrderId { get; set; } = default!; + + /// + /// 获取或设置 SKU ID。 + /// + [Newtonsoft.Json.JsonProperty("sku_id")] + [System.Text.Json.Serialization.JsonPropertyName("sku_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long SKUId { get; set; } + + /// + /// 获取或设置状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置线索详情。 + /// + [Newtonsoft.Json.JsonProperty("clue_detail")] + [System.Text.Json.Serialization.JsonPropertyName("clue_detail")] + public Types.ClueDetail ClueDetail { get; set; } = default!; + + /// + /// 获取或设置创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + public long CreateTimestamp { get; set; } + + /// + /// 获取或设置更新时间戳。 + /// + [Newtonsoft.Json.JsonProperty("update_time")] + [System.Text.Json.Serialization.JsonPropertyName("update_time")] + public long UpdateTimestamp { get; set; } + } + } + + /// + /// 获取或设置线索订单信息。 + /// + [Newtonsoft.Json.JsonProperty("commssion_clue")] + [System.Text.Json.Serialization.JsonPropertyName("commssion_clue")] + public Types.CommissionClue CommissionClue { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetRequest.cs new file mode 100644 index 00000000..d5b8cc0e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetRequest.cs @@ -0,0 +1,51 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/league/headsupplier/clue/list/get 接口的请求。 + /// + public class ChannelsECLeagueHeadSupplierClueListGetRequest : WechatApiRequest, IInferable + { + public static class Types + { + public class TimeRange : ChannelsECOrderListGetRequest.Types.TimeRange + { + } + } + + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string? ShopAppId { get; set; } + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置创建订单时间范围。 + /// + [Newtonsoft.Json.JsonProperty("create_time_range")] + [System.Text.Json.Serialization.JsonPropertyName("create_time_range")] + public Types.TimeRange? CreateTimeRange { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int Limit { get; set; } = 10; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetResponse.cs new file mode 100644 index 00000000..849b40cb --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetResponse.cs @@ -0,0 +1,50 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/league/headsupplier/clue/list/get 接口的响应。 + /// + public class ChannelsECLeagueHeadSupplierClueListGetResponse : WechatApiResponse + { + public static class Types + { + public class CommissionClue + { + /// + /// 获取或设置订单 ID。 + /// + [Newtonsoft.Json.JsonProperty("order_id")] + [System.Text.Json.Serialization.JsonPropertyName("order_id")] + public string OrderId { get; set; } = default!; + + /// + /// 获取或设置 SKU ID。 + /// + [Newtonsoft.Json.JsonProperty("sku_id")] + [System.Text.Json.Serialization.JsonPropertyName("sku_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long SKUId { get; set; } + } + } + + /// + /// 获取或设置线索订单列表。 + /// + [Newtonsoft.Json.JsonProperty("list")] + [System.Text.Json.Serialization.JsonPropertyName("list")] + public Types.CommissionClue[] CommissionClueList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeRequest.cs new file mode 100644 index 00000000..b45769f5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeRequest.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/league/headsupplier/liveprotection/getqrcode 接口的请求。 + /// + public class ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeRequest : WechatApiRequest, IInferable + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse.cs new file mode 100644 index 00000000..e94a55c9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/league/headsupplier/liveprotection/getqrcode 接口的响应。 + /// + public class ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse : WechatApiResponse + { + /// + /// 获取或设置二维码 URL。 + /// + [Newtonsoft.Json.JsonProperty("qrcode_url")] + [System.Text.Json.Serialization.JsonPropertyName("qrcode_url")] + public string QrcodeUrl { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Order/ChannelsECLeagueHeadSupplierOrderGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Order/ChannelsECLeagueHeadSupplierOrderGetResponse.cs index 0ceda9d7..208400d9 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Order/ChannelsECLeagueHeadSupplierOrderGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Order/ChannelsECLeagueHeadSupplierOrderGetResponse.cs @@ -22,7 +22,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] - public string AppId { get; set; } = default!; + public string ShopAppId { get; set; } = default!; } public class ProductInfo @@ -94,6 +94,219 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("amount")] public int CommissionAmount { get; set; } } + + public class SharerInfo + { + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string SharerAppId { get; set; } = default!; + + /// + /// 获取或设置推客昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickname")] + [System.Text.Json.Serialization.JsonPropertyName("nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置推客 OpenSharerId。 + /// + [Newtonsoft.Json.JsonProperty("opensharerid")] + [System.Text.Json.Serialization.JsonPropertyName("opensharerid")] + public string OpenSharerId { get; set; } = default!; + + /// + /// 获取或设置佣金(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("amount")] + [System.Text.Json.Serialization.JsonPropertyName("amount")] + public int Amount { get; set; } + + /// + /// 获取或设置推佣金率(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("ratio")] + [System.Text.Json.Serialization.JsonPropertyName("ratio")] + public int Ratio { get; set; } + } + + public class TalentInfo + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = default!; + + /// + /// 获取或设置达人平台昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickname")] + [System.Text.Json.Serialization.JsonPropertyName("nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置带货达人 OpenTalentId。 + /// + [Newtonsoft.Json.JsonProperty("opentalentid")] + [System.Text.Json.Serialization.JsonPropertyName("opentalentid")] + public string OpenTalentId { get; set; } = default!; + + /// + /// 获取或设置佣金(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("amount")] + [System.Text.Json.Serialization.JsonPropertyName("amount")] + public int Amount { get; set; } + + /// + /// 获取或设置推佣金率(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("ratio")] + [System.Text.Json.Serialization.JsonPropertyName("ratio")] + public int Ratio { get; set; } + } + + public class AgencyInfo + { + /// + /// 获取或设置机构 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string AgencyAppId { get; set; } = default!; + + /// + /// 获取或设置帮卖机构昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickname")] + [System.Text.Json.Serialization.JsonPropertyName("nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置结算时间戳。 + /// + [Newtonsoft.Json.JsonProperty("profit_sharding_suc_time")] + [System.Text.Json.Serialization.JsonPropertyName("profit_sharding_suc_time")] + public long ProfitShardingSuccessTimestamp { get; set; } + + /// + /// 获取或设置佣金(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("amount")] + [System.Text.Json.Serialization.JsonPropertyName("amount")] + public int Amount { get; set; } + + /// + /// 获取或设置推佣金率(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("ratio")] + [System.Text.Json.Serialization.JsonPropertyName("ratio")] + public int Ratio { get; set; } + } + + public class PromotionInfo + { + public static class Types + { + public class FinderInfo + { + /// + /// 获取或设置视频号 ID。 + /// + [Newtonsoft.Json.JsonProperty("finder_id")] + [System.Text.Json.Serialization.JsonPropertyName("finder_id")] + public string FinderId { get; set; } = default!; + + /// + /// 获取或设置视频号昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickname")] + [System.Text.Json.Serialization.JsonPropertyName("nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置视频号 OpenFinderId。 + /// + [Newtonsoft.Json.JsonProperty("openfinderid")] + [System.Text.Json.Serialization.JsonPropertyName("openfinderid")] + public string OpenFinderId { get; set; } = default!; + } + + public class TalentInfo + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = default!; + + /// + /// 获取或设置达人平台昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickname")] + [System.Text.Json.Serialization.JsonPropertyName("nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置带货达人 OpenTalentId。 + /// + [Newtonsoft.Json.JsonProperty("opentalentid")] + [System.Text.Json.Serialization.JsonPropertyName("opentalentid")] + public string OpenTalentId { get; set; } = default!; + } + + public class MpInfo + { + /// + /// 获取或设置公众号 AppId。 + /// + [Newtonsoft.Json.JsonProperty("appid")] + [System.Text.Json.Serialization.JsonPropertyName("appid")] + public string MpAppId { get; set; } = default!; + + /// + /// 获取或设置公众号昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickname")] + [System.Text.Json.Serialization.JsonPropertyName("nickname")] + public string Nickname { get; set; } = default!; + } + } + + /// + /// 获取或设置推广类型。 + /// + [Newtonsoft.Json.JsonProperty("channel_type")] + [System.Text.Json.Serialization.JsonPropertyName("channel_type")] + public int ChannelType { get; set; } + + /// + /// 获取或设置视频号类型。 + /// + [Newtonsoft.Json.JsonProperty("finder_info")] + [System.Text.Json.Serialization.JsonPropertyName("finder_info")] + public Types.FinderInfo? FinderInfo { get; set; } + + /// + /// 获取或设置带货达人类型。 + /// + [Newtonsoft.Json.JsonProperty("talent_info")] + [System.Text.Json.Serialization.JsonPropertyName("talent_info")] + public Types.TalentInfo? TalentInfo { get; set; } + + /// + /// 获取或设置公众号类型。 + /// + [Newtonsoft.Json.JsonProperty("mp_info")] + [System.Text.Json.Serialization.JsonPropertyName("mp_info")] + public Types.MpInfo? MpInfo { get; set; } + } } /// @@ -123,6 +336,65 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [Newtonsoft.Json.JsonProperty("profit_sharding_suc_time")] [System.Text.Json.Serialization.JsonPropertyName("profit_sharding_suc_time")] public long ProfitShardingSuccessTimestamp { get; set; } + + /// + /// 获取或设置带货渠道。 + /// + [Newtonsoft.Json.JsonProperty("promotion_channel")] + [System.Text.Json.Serialization.JsonPropertyName("promotion_channel")] + public int PromotionChannel { get; set; } + + /// + /// 获取或设置推客信息。 + /// + [Newtonsoft.Json.JsonProperty("sharer_info")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_info")] + public Types.SharerInfo? SharerInfo { get; set; } + + /// + /// 获取或设置达人平台信息。 + /// + [Newtonsoft.Json.JsonProperty("talent_info")] + [System.Text.Json.Serialization.JsonPropertyName("talent_info")] + public Types.TalentInfo? TalentInfo { get; set; } + + /// + /// 获取或设置推广信息。 + /// + [Newtonsoft.Json.JsonProperty("promotion_info")] + [System.Text.Json.Serialization.JsonPropertyName("promotion_info")] + public Types.PromotionInfo? PromotionInfo { get; set; } + + /// + /// 获取或设置帮卖机构信息。 + /// + [Newtonsoft.Json.JsonProperty("sub_agency_info")] + [System.Text.Json.Serialization.JsonPropertyName("sub_agency_info")] + public Types.AgencyInfo? SubAgencyInfo { get; set; } + + /// + /// 获取或设置推客机构信息。 + /// + [Newtonsoft.Json.JsonProperty("promoter_agency_info")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_agency_info")] + public Types.AgencyInfo? PromoterAgencyInfo { get; set; } + } + + public class BuyerInfo + { + /// + /// 获取或设置买家的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("open_id")] + [System.Text.Json.Serialization.JsonPropertyName("open_id")] + public string OpenId { get; set; } = default!; + + /// + /// 获取或设置买家的 UnionId。 + /// + [Newtonsoft.Json.JsonProperty("union_id")] + [System.Text.Json.Serialization.JsonPropertyName("union_id")] + public string? UnionId { get; set; } } } @@ -153,6 +425,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [Newtonsoft.Json.JsonProperty("commission_info")] [System.Text.Json.Serialization.JsonPropertyName("commission_info")] public Types.CommissionInfo CommissionInfo { get; set; } = default!; + + /// + /// 获取或设置买家信息。 + /// + [Newtonsoft.Json.JsonProperty("buyer_info")] + [System.Text.Json.Serialization.JsonPropertyName("buyer_info")] + public Types.BuyerInfo BuyerInfo { get; set; } = default!; } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/ProductDetail/ChannelsECLeagueHeadSupplierProductDetailGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/ProductDetail/ChannelsECLeagueHeadSupplierProductDetailGetResponse.cs index ad995ff8..a06a9bbe 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/ProductDetail/ChannelsECLeagueHeadSupplierProductDetailGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/ProductDetail/ChannelsECLeagueHeadSupplierProductDetailGetResponse.cs @@ -88,21 +88,21 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class ShopInfo { /// - /// 获取或设置店铺名称。 + /// 获取或设置小店名称。 /// [Newtonsoft.Json.JsonProperty("name")] [System.Text.Json.Serialization.JsonPropertyName("name")] public string Name { get; set; } = default!; /// - /// 获取或设置店铺图标 URL。 + /// 获取或设置小店图标 URL。 /// [Newtonsoft.Json.JsonProperty("icon")] [System.Text.Json.Serialization.JsonPropertyName("icon")] public string IconUrl { get; set; } = default!; /// - /// 获取或设置店铺评分。 + /// 获取或设置小店评分。 /// [Newtonsoft.Json.JsonProperty("score")] [System.Text.Json.Serialization.JsonPropertyName("score")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddResponse.cs index bf864573..796509bc 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemAddResponse.cs @@ -5,5 +5,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// public class ChannelsECLeagueHeadSupplierSubItemAddResponse : WechatApiResponse { + /// + /// 获取或设置达人佣金计划 ID。 + /// + [Newtonsoft.Json.JsonProperty("sub_item_id")] + [System.Text.Json.Serialization.JsonPropertyName("sub_item_id")] + public long SubItemId { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetResponse.cs index 7475165d..aabb5190 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/SubItem/ChannelsECLeagueHeadSupplierSubItemListGetResponse.cs @@ -10,11 +10,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class SubItem { /// - /// 获取或设置计划 ID。 + /// 获取或设置达人佣金计划 ID。 /// [Newtonsoft.Json.JsonProperty("sub_item_id")] [System.Text.Json.Serialization.JsonPropertyName("sub_item_id")] - public long PlanId { get; set; } + public long SubItemId { get; set; } /// /// 获取或设置计划链接。 @@ -30,6 +30,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("status")] public int Status { get; set; } + /// + /// 获取或设置达人佣金率(范围:0~90)。 + /// + [Newtonsoft.Json.JsonProperty("ratio")] + [System.Text.Json.Serialization.JsonPropertyName("ratio")] + public int Ratio { get; set; } + /// /// 获取或设置相对于服务费的达人佣金率(范围:0~90)。 /// diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/Auth/ChannelsECLeagueHeadSupplierWindowAuthGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/Auth/ChannelsECLeagueHeadSupplierWindowAuthGetRequest.cs index 1544579c..e45b2762 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/Auth/ChannelsECLeagueHeadSupplierWindowAuthGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/Auth/ChannelsECLeagueHeadSupplierWindowAuthGetRequest.cs @@ -20,7 +20,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? OpenId { get; set; } /// - /// 获取或设置带货达人 AppId。与字段 三选一。 + /// 获取或设置达人平台 AppId。与字段 三选一。 /// [Newtonsoft.Json.JsonProperty("talent_appid")] [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/Auth/ChannelsECLeagueHeadSupplierWindowAuthStatusGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/Auth/ChannelsECLeagueHeadSupplierWindowAuthStatusGetRequest.cs index 58f405d2..3cf8e12b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/Auth/ChannelsECLeagueHeadSupplierWindowAuthStatusGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/Auth/ChannelsECLeagueHeadSupplierWindowAuthStatusGetRequest.cs @@ -27,7 +27,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? OpenFinderId { get; set; } /// - /// 获取或设置带货达人 AppId。与字段 四选一。 + /// 获取或设置达人平台 AppId。与字段 四选一。 /// [Newtonsoft.Json.JsonProperty("talent_appid")] [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowAddRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowAddRequest.cs index ba917277..52d20487 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowAddRequest.cs @@ -34,7 +34,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? OpenFinderId { get; set; } /// - /// 获取或设置带货达人 ID。 + /// 获取或设置带货达人 OpenTalentId。 /// [Newtonsoft.Json.JsonProperty("opentalentid")] [System.Text.Json.Serialization.JsonPropertyName("opentalentid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetAllRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetAllRequest.cs index d21213a4..52b5a8c1 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetAllRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetAllRequest.cs @@ -27,7 +27,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? OpenFinderId { get; set; } /// - /// 获取或设置带货达人 ID。 + /// 获取或设置带货达人 OpenTalentId。 /// [Newtonsoft.Json.JsonProperty("opentalentid")] [System.Text.Json.Serialization.JsonPropertyName("opentalentid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailRequest.cs index a8acc9a3..c32171f3 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailRequest.cs @@ -34,7 +34,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? OpenFinderId { get; set; } /// - /// 获取或设置带货达人 ID。 + /// 获取或设置带货达人 OpenTalentId。 /// [Newtonsoft.Json.JsonProperty("opentalentid")] [System.Text.Json.Serialization.JsonPropertyName("opentalentid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.cs index abd86fcd..9ac54166 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowGetDetailResponse.cs @@ -70,7 +70,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public Types.Category[]? CategoryV2List { get; set; } /// - /// 获取或设置商品小程序跳转小店场景添加商品时传递的跟佣信息。 + /// 获取或设置商品小程序跳转小店场景添加商品时传递的推广信息。 /// [Newtonsoft.Json.JsonProperty("product_promotion_link")] [System.Text.Json.Serialization.JsonPropertyName("product_promotion_link")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowRemoveRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowRemoveRequest.cs index 8499d0b2..3ed6bb35 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowRemoveRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/HeadSupplier/Window/ChannelsECLeagueHeadSupplierWindowRemoveRequest.cs @@ -41,7 +41,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? OpenFinderId { get; set; } /// - /// 获取或设置带货达人 ID。 + /// 获取或设置带货达人 OpenTalentId。 /// [Newtonsoft.Json.JsonProperty("opentalentid")] [System.Text.Json.Serialization.JsonPropertyName("opentalentid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/Item/ChannelsECLeagueItemHeadSupplierBatchAddRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/Item/ChannelsECLeagueItemHeadSupplierBatchAddRequest.cs index 322693ba..2baf51ee 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/Item/ChannelsECLeagueItemHeadSupplierBatchAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLeague/Item/ChannelsECLeagueItemHeadSupplierBatchAddRequest.cs @@ -35,7 +35,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models } /// - /// 获取或设置团长开放唯一凭证。 + /// 获取或设置供货机构 AppId。 /// [Newtonsoft.Json.JsonProperty("headsupplier_appid")] [System.Text.Json.Serialization.JsonPropertyName("headsupplier_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderCreateResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderCreateResponse.cs index 627a5fd9..e5dcd490 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderCreateResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderCreateResponse.cs @@ -54,7 +54,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? EWaybillOrderCode { get; set; } /// - /// 获取或设置代发的订单所属店铺 AppId。 + /// 获取或设置代发的订单所属小店 AppId。 /// [Newtonsoft.Json.JsonProperty("ewaybill_order_appid")] [System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderGetResponse.cs index 0b967fc4..d6564654 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderGetResponse.cs @@ -122,7 +122,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? EWaybillOrderCode { get; set; } /// - /// 获取或设置代发的订单所属店铺 AppId。 + /// 获取或设置代发的订单所属小店 AppId。 /// [Newtonsoft.Json.JsonProperty("ewaybill_order_appid")] [System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderPrecreateRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderPrecreateRequest.cs index a2765dc3..0de5cc73 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderPrecreateRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECLogistics/EWaybill/Order/ChannelsECLogisticsEWaybillOrderPrecreateRequest.cs @@ -121,7 +121,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? EWaybillOrderCode { get; set; } /// - /// 获取或设置代发的订单所属店铺 AppId。 + /// 获取或设置代发的订单所属小店 AppId。 /// [Newtonsoft.Json.JsonProperty("ewaybill_order_appid")] [System.Text.Json.Serialization.JsonPropertyName("ewaybill_order_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/ChannelsECOrderGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/ChannelsECOrderGetResponse.cs index 835206d4..e465fe89 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/ChannelsECOrderGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECOrder/ChannelsECOrderGetResponse.cs @@ -903,7 +903,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? OpenFinderId { get; set; } /// - /// 获取或设置带货达人 ID。 + /// 获取或设置带货达人 OpenTalentId。 /// [Newtonsoft.Json.JsonProperty("talent_id")] [System.Text.Json.Serialization.JsonPropertyName("talent_id")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/Stock/ChannelsECProductStockGetFlowRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/Stock/ChannelsECProductStockGetFlowRequest.cs index 1e35545f..2112203e 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/Stock/ChannelsECProductStockGetFlowRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECProduct/Stock/ChannelsECProductStockGetFlowRequest.cs @@ -56,6 +56,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("op_type_list")] public IList? OperateTypeList { get; set; } + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + /// /// 获取或设置分页每页数量。 /// 默认值:10 @@ -63,12 +70,5 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [Newtonsoft.Json.JsonProperty("page_size")] [System.Text.Json.Serialization.JsonPropertyName("page_size")] public int PageSize { get; set; } = 10; - - /// - /// 获取或设置分页游标。 - /// - [Newtonsoft.Json.JsonProperty("next_key")] - [System.Text.Json.Serialization.JsonPropertyName("next_key")] - public string? PageCursor { get; set; } } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListRequest.cs new file mode 100644 index 00000000..7f21e551 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListRequest.cs @@ -0,0 +1,51 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_mp_article_list 接口的请求。 + /// + public class ChannelsECPromoterGetShopMpArticleListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopAppId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置关联账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("promoter_id")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_id")] + public string PromoterId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号类型。 + /// + [Newtonsoft.Json.JsonProperty("promoter_type")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_type")] + public int PromoterType { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListResponse.cs new file mode 100644 index 00000000..7a3e2d7a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListResponse.cs @@ -0,0 +1,109 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_mp_article_list 接口的响应。 + /// + public class ChannelsECPromoterGetShopMpArticleListResponse : WechatApiResponse + { + public static class Types + { + public class Article + { + public static class Types + { + public class ProductInfo + { + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long ProductId { get; set; } + + /// + /// 获取或设置商品名称。 + /// + [Newtonsoft.Json.JsonProperty("product_name")] + [System.Text.Json.Serialization.JsonPropertyName("product_name")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置商品图片 URL。 + /// + [Newtonsoft.Json.JsonProperty("product_img_url")] + [System.Text.Json.Serialization.JsonPropertyName("product_img_url")] + public string ImageUrl { get; set; } = default!; + + /// + /// 获取或设置预估佣金金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("predict_commission_amount")] + [System.Text.Json.Serialization.JsonPropertyName("predict_commission_amount")] + public int PredictCommissionAmount { get; set; } + + /// + /// 获取或设置佣金比例(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("commission_rate")] + [System.Text.Json.Serialization.JsonPropertyName("commission_rate")] + public int CommissionRate { get; set; } + } + + public class ArticleInfo : ChannelsECPromoterGetTalentMpArticleListResponse.Types.Article.Types.ArticleInfo + { + } + } + + /// + /// 获取或设置商品信息列表。 + /// + [Newtonsoft.Json.JsonProperty("product_list")] + [System.Text.Json.Serialization.JsonPropertyName("product_list")] + public Types.ProductInfo[] ProductInfoList { get; set; } = default!; + + /// + /// 获取或设置文章信息。 + /// + [Newtonsoft.Json.JsonProperty("article_info")] + [System.Text.Json.Serialization.JsonPropertyName("article_info")] + public Types.ArticleInfo ArticleInfo { get; set; } = default!; + + /// + /// 获取或设置创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + public long CreateTimestamp { get; set; } + + /// + /// 获取或设置更新时间戳。 + /// + [Newtonsoft.Json.JsonProperty("update_time")] + [System.Text.Json.Serialization.JsonPropertyName("update_time")] + public long UpdateTimestamp { get; set; } + } + } + + /// + /// 获取或设置文章列表。 + /// + [Newtonsoft.Json.JsonProperty("article_list")] + [System.Text.Json.Serialization.JsonPropertyName("article_list")] + public Types.Article[] ArticleList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListRequest.cs new file mode 100644 index 00000000..534b2b57 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListRequest.cs @@ -0,0 +1,44 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_talent_biz_article_list 接口的请求。 + /// + public class ChannelsECPromoterGetTalentMpArticleListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置公众号 AppId。 + /// + [Newtonsoft.Json.JsonProperty("biz_appid")] + [System.Text.Json.Serialization.JsonPropertyName("biz_appid")] + public string? MpAppId { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListResponse.cs new file mode 100644 index 00000000..0ead14cf --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListResponse.cs @@ -0,0 +1,136 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_talent_biz_article_list 接口的响应。 + /// + public class ChannelsECPromoterGetTalentMpArticleListResponse : WechatApiResponse + { + public static class Types + { + public class Article + { + public static class Types + { + public class ProductInfo + { + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long ProductId { get; set; } + + /// + /// 获取或设置商品名称。 + /// + [Newtonsoft.Json.JsonProperty("product_name")] + [System.Text.Json.Serialization.JsonPropertyName("product_name")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置商品图片 URL。 + /// + [Newtonsoft.Json.JsonProperty("product_img_url")] + [System.Text.Json.Serialization.JsonPropertyName("product_img_url")] + public string ImageUrl { get; set; } = default!; + + /// + /// 获取或设置预估佣金金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("predict_commission_amount")] + [System.Text.Json.Serialization.JsonPropertyName("predict_commission_amount")] + public int PredictCommissionAmount { get; set; } + + /// + /// 获取或设置商品最低价(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("product_mini_price")] + [System.Text.Json.Serialization.JsonPropertyName("product_mini_price")] + public int MinPrice { get; set; } + } + + public class ArticleInfo + { + /// + /// 获取或设置文章标题。 + /// + [Newtonsoft.Json.JsonProperty("article_title")] + [System.Text.Json.Serialization.JsonPropertyName("article_title")] + public string ArticleTitle { get; set; } = default!; + + /// + /// 获取或设置封面图片 URL。 + /// + [Newtonsoft.Json.JsonProperty("cover_image")] + [System.Text.Json.Serialization.JsonPropertyName("cover_image")] + public string CoverImageUrl { get; set; } = default!; + + /// + /// 获取或设置文章 URL。 + /// + [Newtonsoft.Json.JsonProperty("article_url")] + [System.Text.Json.Serialization.JsonPropertyName("article_url")] + public string ArticleUrl { get; set; } = default!; + + /// + /// 获取或设置文章推广参数。 + /// + [Newtonsoft.Json.JsonProperty("promoter_share_link")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_share_link")] + public string PromoterShareLink { get; set; } = default!; + } + } + + /// + /// 获取或设置商品信息列表。 + /// + [Newtonsoft.Json.JsonProperty("product_info_list")] + [System.Text.Json.Serialization.JsonPropertyName("product_info_list")] + public Types.ProductInfo[] ProductInfoList { get; set; } = default!; + + /// + /// 获取或设置文章信息。 + /// + [Newtonsoft.Json.JsonProperty("article_info")] + [System.Text.Json.Serialization.JsonPropertyName("article_info")] + public Types.ArticleInfo ArticleInfo { get; set; } = default!; + + /// + /// 获取或设置创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("create_time")] + [System.Text.Json.Serialization.JsonPropertyName("create_time")] + public long CreateTimestamp { get; set; } + + /// + /// 获取或设置更新时间戳。 + /// + [Newtonsoft.Json.JsonProperty("update_time")] + [System.Text.Json.Serialization.JsonPropertyName("update_time")] + public long UpdateTimestamp { get; set; } + } + } + + /// + /// 获取或设置文章列表。 + /// + [Newtonsoft.Json.JsonProperty("article_list")] + [System.Text.Json.Serialization.JsonPropertyName("article_list")] + public Types.Article[] ArticleList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListRequest.cs new file mode 100644 index 00000000..973b293a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListRequest.cs @@ -0,0 +1,30 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_cooperative_coupon_list 接口的请求。 + /// + public class ChannelsECPromoterGetCooperativeCouponListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string? ShopAppId { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListResponse.cs new file mode 100644 index 00000000..1e64af28 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListResponse.cs @@ -0,0 +1,36 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_cooperative_coupon_list 接口的响应。 + /// + public class ChannelsECPromoterGetCooperativeCouponListResponse : WechatApiResponse + { + public static class Types + { + public class Coupon : ChannelsECPromoterGetPublicCouponListResponse.Types.Coupon + { + } + } + + /// + /// 获取或设置券列表。 + /// + [Newtonsoft.Json.JsonProperty("coupons")] + [System.Text.Json.Serialization.JsonPropertyName("coupons")] + public Types.Coupon[] CouponList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailRequest.cs new file mode 100644 index 00000000..561742fa --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailRequest.cs @@ -0,0 +1,17 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_coupon_detail 接口的请求。 + /// + public class ChannelsECPromoterGetCouponDetailRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置券 ID。 + /// + [Newtonsoft.Json.JsonProperty("coupon_id")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberConverter))] + [System.Text.Json.Serialization.JsonPropertyName("coupon_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)] + public long CouponId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailResponse.cs new file mode 100644 index 00000000..15307060 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_coupon_detail 接口的响应。 + /// + public class ChannelsECPromoterGetCouponDetailResponse : WechatApiResponse + { + public static class Types + { + public class Coupon : ChannelsECCouponGetResponse.Types.Coupon + { + } + } + + /// + /// 获取或设置券信息。 + /// + [Newtonsoft.Json.JsonProperty("coupon")] + [System.Text.Json.Serialization.JsonPropertyName("coupon")] + public Types.Coupon Coupon { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeRequest.cs new file mode 100644 index 00000000..26859ee6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeRequest.cs @@ -0,0 +1,31 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_coupon_qr_code 接口的请求。 + /// + public class ChannelsECPromoterGetCouponQrcodeRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置推客的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_openid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_openid")] + public string? SharerOpenId { get; set; } + + /// + /// 获取或设置券 ID。 + /// + [Newtonsoft.Json.JsonProperty("coupon_id")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberConverter))] + [System.Text.Json.Serialization.JsonPropertyName("coupon_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)] + public long CouponId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeResponse.cs new file mode 100644 index 00000000..64bdafa1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_coupon_qr_code 接口的响应。 + /// + public class ChannelsECPromoterGetCouponQrcodeResponse : WechatApiResponse + { + /// + /// 获取或设置优惠券推广二维码 URL。 + /// + [Newtonsoft.Json.JsonProperty("qr_code")] + [System.Text.Json.Serialization.JsonPropertyName("qr_code")] + public string QrcodeUrl { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkRequest.cs new file mode 100644 index 00000000..9083b617 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkRequest.cs @@ -0,0 +1,31 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_coupon_short_link 接口的请求。 + /// + public class ChannelsECPromoterGetCouponShortLinkRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置推客的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_openid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_openid")] + public string? SharerOpenId { get; set; } + + /// + /// 获取或设置券 ID。 + /// + [Newtonsoft.Json.JsonProperty("coupon_id")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberConverter))] + [System.Text.Json.Serialization.JsonPropertyName("coupon_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString | System.Text.Json.Serialization.JsonNumberHandling.WriteAsString)] + public long CouponId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkResponse.cs new file mode 100644 index 00000000..5eb6cb16 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_coupon_short_link 接口的响应。 + /// + public class ChannelsECPromoterGetCouponShortLinkResponse : WechatApiResponse + { + /// + /// 获取或设置优惠券推广短链。 + /// + [Newtonsoft.Json.JsonProperty("short_link")] + [System.Text.Json.Serialization.JsonPropertyName("short_link")] + public string ShortLink { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListRequest.cs new file mode 100644 index 00000000..6249c1f9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListRequest.cs @@ -0,0 +1,30 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_public_coupon_list 接口的请求。 + /// + public class ChannelsECPromoterGetPublicCouponListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string? ShopAppId { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListResponse.cs new file mode 100644 index 00000000..4a244b5c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListResponse.cs @@ -0,0 +1,43 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_public_coupon_list 接口的响应。 + /// + public class ChannelsECPromoterGetPublicCouponListResponse : WechatApiResponse + { + public static class Types + { + public class Coupon + { + /// + /// 获取或设置券 ID。 + /// + [Newtonsoft.Json.JsonProperty("coupon_id")] + [System.Text.Json.Serialization.JsonPropertyName("coupon_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long CouponId { get; set; } + } + } + + /// + /// 获取或设置券列表。 + /// + [Newtonsoft.Json.JsonProperty("coupons")] + [System.Text.Json.Serialization.JsonPropertyName("coupons")] + public Types.Coupon[] CouponList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListRequest.cs new file mode 100644 index 00000000..c1a8a4f5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListRequest.cs @@ -0,0 +1,37 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_feed_list 接口的请求。 + /// + public class ChannelsECPromoterGetFeedListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = string.Empty; + + /// + /// 获取或设置达人平台的视频号导出名称。 + /// + [Newtonsoft.Json.JsonProperty("finder_exportusername")] + [System.Text.Json.Serialization.JsonPropertyName("finder_exportusername")] + public string? FinderExportUsername { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListResponse.cs new file mode 100644 index 00000000..bb29007f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListResponse.cs @@ -0,0 +1,98 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_feed_list 接口的响应。 + /// + public class ChannelsECPromoterGetFeedListResponse : WechatApiResponse + { + public static class Types + { + public class Feed + { + public static class Types + { + public class ProductInfo + { + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long ProductId { get; set; } + + /// + /// 获取或设置商品名称。 + /// + [Newtonsoft.Json.JsonProperty("product_name")] + [System.Text.Json.Serialization.JsonPropertyName("product_name")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置商品图片 URL。 + /// + [Newtonsoft.Json.JsonProperty("product_img_url")] + [System.Text.Json.Serialization.JsonPropertyName("product_img_url")] + public string ImageUrl { get; set; } = default!; + + /// + /// 获取或设置商品最低价(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("product_mini_price")] + [System.Text.Json.Serialization.JsonPropertyName("product_mini_price")] + public int MinPrice { get; set; } + } + } + + /// + /// 获取或设置短视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("export_id")] + [System.Text.Json.Serialization.JsonPropertyName("export_id")] + public string ExportId { get; set; } = default!; + + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = default!; + + /// + /// 获取或设置预估佣金金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("predict_commission_amount")] + [System.Text.Json.Serialization.JsonPropertyName("predict_commission_amount")] + public int PredictCommissionAmount { get; set; } + + /// + /// 获取或设置商品信息。 + /// + [Newtonsoft.Json.JsonProperty("product_info")] + [System.Text.Json.Serialization.JsonPropertyName("product_info")] + public Types.ProductInfo ProductInfo { get; set; } = default!; + } + } + + /// + /// 获取或设置短视频列表。 + /// + [Newtonsoft.Json.JsonProperty("feed_list")] + [System.Text.Json.Serialization.JsonPropertyName("feed_list")] + public Types.Feed[] FeedList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoRequest.cs new file mode 100644 index 00000000..eceb5954 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoRequest.cs @@ -0,0 +1,51 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_feed_promotion_info 接口的请求。 + /// + public class ChannelsECPromoterGetFeedPromotionInfoRequest : WechatApiRequest, IInferable + { + public static class Types + { + public class Feed + { + /// + /// 获取或设置短视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("export_id")] + [System.Text.Json.Serialization.JsonPropertyName("export_id")] + public string ExportId { get; set; } = string.Empty; + } + } + + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("mini_program_appid")] + [System.Text.Json.Serialization.JsonPropertyName("mini_program_appid")] + public string MiniProgramAppId { get; set; } = string.Empty; + + /// + /// 获取或设置短视频列表。 + /// + [Newtonsoft.Json.JsonProperty("feed_list")] + [System.Text.Json.Serialization.JsonPropertyName("feed_list")] + public IList FeedList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoResponse.cs new file mode 100644 index 00000000..1fa6f499 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoResponse.cs @@ -0,0 +1,42 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_feed_promotion_info 接口的响应。 + /// + public class ChannelsECPromoterGetFeedPromotionInfoResponse : WechatApiResponse + { + public static class Types + { + public class Feed + { + /// + /// 获取或设置短视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("export_id")] + [System.Text.Json.Serialization.JsonPropertyName("export_id")] + public string ExportId { get; set; } = default!; + + /// + /// 获取或设置内嵌短视频的卡片信息。 + /// + [Newtonsoft.Json.JsonProperty("feed_token")] + [System.Text.Json.Serialization.JsonPropertyName("feed_token")] + public string FeedToken { get; set; } = default!; + + /// + /// 获取或设置推广推客信息。 + /// + [Newtonsoft.Json.JsonProperty("promoter_share_link")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_share_link")] + public string PromoterShareLink { get; set; } = default!; + } + } + + /// + /// 获取或设置短视频列表。 + /// + [Newtonsoft.Json.JsonProperty("feed_list")] + [System.Text.Json.Serialization.JsonPropertyName("feed_list")] + public Types.Feed[] List { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListRequest.cs new file mode 100644 index 00000000..b396e0c1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListRequest.cs @@ -0,0 +1,44 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_feed_list 接口的请求。 + /// + public class ChannelsECPromoterGetShopFeedListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopAppId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("promoter_id")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_id")] + public string PromoterId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号类型。 + /// + [Newtonsoft.Json.JsonProperty("promoter_type")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_type")] + public int PromoterType { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListResponse.cs new file mode 100644 index 00000000..603978b2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListResponse.cs @@ -0,0 +1,63 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_feed_list 接口的响应。 + /// + public class ChannelsECPromoterGetShopFeedListResponse : WechatApiResponse + { + public static class Types + { + public class Feed + { + public static class Types + { + public class ProductInfo : ChannelsECPromoterGetFeedListResponse.Types.Feed.Types.ProductInfo + { + } + } + + /// + /// 获取或设置短视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("export_id")] + [System.Text.Json.Serialization.JsonPropertyName("export_id")] + public string ExportId { get; set; } = default!; + + /// + /// 获取或设置预估佣金金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("predict_commission_amount")] + [System.Text.Json.Serialization.JsonPropertyName("predict_commission_amount")] + public int PredictCommissionAmount { get; set; } + + /// + /// 获取或设置商品信息。 + /// + [Newtonsoft.Json.JsonProperty("product_info")] + [System.Text.Json.Serialization.JsonPropertyName("product_info")] + public Types.ProductInfo ProductInfo { get; set; } = default!; + } + } + + /// + /// 获取或设置短视频列表。 + /// + [Newtonsoft.Json.JsonProperty("feed_list")] + [System.Text.Json.Serialization.JsonPropertyName("feed_list")] + public Types.Feed[] FeedList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoRequest.cs new file mode 100644 index 00000000..d04e0e3a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoRequest.cs @@ -0,0 +1,59 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_feed_promotion_info 接口的请求。 + /// + public class ChannelsECPromoterGetShopFeedPromotionInfoRequest : WechatApiRequest, IInferable + { + public static class Types + { + public class Feed : ChannelsECPromoterGetFeedPromotionInfoRequest.Types.Feed + { + } + } + + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopAppId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置关联账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("promoter_id")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_id")] + public string PromoterId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号类型。 + /// + [Newtonsoft.Json.JsonProperty("promoter_type")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_type")] + public int PromoterType { get; set; } + + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("mini_program_appid")] + [System.Text.Json.Serialization.JsonPropertyName("mini_program_appid")] + public string MiniProgramAppId { get; set; } = string.Empty; + + /// + /// 获取或设置短视频列表。 + /// + [Newtonsoft.Json.JsonProperty("feed_list")] + [System.Text.Json.Serialization.JsonPropertyName("feed_list")] + public IList FeedList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoResponse.cs new file mode 100644 index 00000000..8a7b8609 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_feed_promotion_info 接口的响应。 + /// + public class ChannelsECPromoterGetShopFeedPromotionInfoResponse : WechatApiResponse + { + public static class Types + { + public class Feed : ChannelsECPromoterGetFeedPromotionInfoResponse.Types.Feed + { + } + } + + /// + /// 获取或设置短视频列表。 + /// + [Newtonsoft.Json.JsonProperty("feed_list")] + [System.Text.Json.Serialization.JsonPropertyName("feed_list")] + public Types.Feed[] List { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListRequest.cs new file mode 100644 index 00000000..19688a8f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListRequest.cs @@ -0,0 +1,30 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_commission_product_list 接口的请求。 + /// + public class ChannelsECPromoterGetLiveCommissionProductListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = string.Empty; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListResponse.cs new file mode 100644 index 00000000..85cd31ff --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListResponse.cs @@ -0,0 +1,71 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_commission_product_list 接口的响应。 + /// + public class ChannelsECPromoterGetLiveCommissionProductListResponse : WechatApiResponse + { + public static class Types + { + public class Product + { + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long ProductId { get; set; } + + /// + /// 获取或设置商品名称。 + /// + [Newtonsoft.Json.JsonProperty("product_name")] + [System.Text.Json.Serialization.JsonPropertyName("product_name")] + public string Name { get; set; } = default!; + + /// + /// 获取或设置商品图片 URL。 + /// + [Newtonsoft.Json.JsonProperty("product_img_url")] + [System.Text.Json.Serialization.JsonPropertyName("product_img_url")] + public string ImageUrl { get; set; } = default!; + + /// + /// 获取或设置售价(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("product_price")] + [System.Text.Json.Serialization.JsonPropertyName("product_price")] + public int Price { get; set; } + + /// + /// 获取或设置预估佣金金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("predict_commission_amount")] + [System.Text.Json.Serialization.JsonPropertyName("predict_commission_amount")] + public int PredictCommissionAmount { get; set; } + } + } + + /// + /// 获取或设置商品列表。 + /// + [Newtonsoft.Json.JsonProperty("product_list")] + [System.Text.Json.Serialization.JsonPropertyName("product_list")] + public Types.Product[] ProductList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListRequest.cs new file mode 100644 index 00000000..d245d2df --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_notice_record_list 接口的请求。 + /// + public class ChannelsECPromoterGetLiveNoticeRecordListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("mini_program_appid")] + [System.Text.Json.Serialization.JsonPropertyName("mini_program_appid")] + public string MiniProgramAppId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListResponse.cs new file mode 100644 index 00000000..32d44dec --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListResponse.cs @@ -0,0 +1,42 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_notice_record_list 接口的响应。 + /// + public class ChannelsECPromoterGetLiveNoticeRecordListResponse : WechatApiResponse + { + public static class Types + { + public class LiveNoticeRecord + { + /// + /// 获取或设置预约 ID。 + /// + [Newtonsoft.Json.JsonProperty("notice_id")] + [System.Text.Json.Serialization.JsonPropertyName("notice_id")] + public string NoticeId { get; set; } = default!; + + /// + /// 获取或设置预约描述。 + /// + [Newtonsoft.Json.JsonProperty("description")] + [System.Text.Json.Serialization.JsonPropertyName("description")] + public string Description { get; set; } = default!; + + /// + /// 获取或设置直播开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + } + } + + /// + /// 获取或设置直播预约数据列表。 + /// + [Newtonsoft.Json.JsonProperty("live_notice_record_list")] + [System.Text.Json.Serialization.JsonPropertyName("live_notice_record_list")] + public Types.LiveNoticeRecord[] LiveNoticeRecordList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest.cs new file mode 100644 index 00000000..c2823c33 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_notice_record_qr_code 接口的请求。 + /// + public class ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置预约 ID。 + /// + [Newtonsoft.Json.JsonProperty("notice_id")] + [System.Text.Json.Serialization.JsonPropertyName("notice_id")] + public string NoticeId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse.cs new file mode 100644 index 00000000..4375de61 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_notice_record_qr_code 接口的响应。 + /// + public class ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse : WechatApiResponse + { + /// + /// 获取或设置二维码 URL。 + /// + [Newtonsoft.Json.JsonProperty("qrcode_url")] + [System.Text.Json.Serialization.JsonPropertyName("qrcode_url")] + public string QrcodeUrl { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoRequest.cs new file mode 100644 index 00000000..ce462ccc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_notice_reservation_info 接口的请求。 + /// + public class ChannelsECPromoterGetLiveNoticeReservationInfoRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string SharerAppId { get; set; } = string.Empty; + + /// + /// 获取或设置预约 ID。 + /// + [Newtonsoft.Json.JsonProperty("live_notice_id")] + [System.Text.Json.Serialization.JsonPropertyName("live_notice_id")] + public string NoticeId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoResponse.cs new file mode 100644 index 00000000..345def28 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_notice_reservation_info 接口的响应。 + /// + public class ChannelsECPromoterGetLiveNoticeReservationInfoResponse : WechatApiResponse + { + /// + /// 获取或设置预约人数。 + /// + [Newtonsoft.Json.JsonProperty("count")] + [System.Text.Json.Serialization.JsonPropertyName("count")] + public int Count { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListRequest.cs new file mode 100644 index 00000000..8cc70241 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_record_list 接口的请求。 + /// + public class ChannelsECPromoterGetLiveRecordListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("mini_program_appid")] + [System.Text.Json.Serialization.JsonPropertyName("mini_program_appid")] + public string MiniProgramAppId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListResponse.cs new file mode 100644 index 00000000..9cc740a8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListResponse.cs @@ -0,0 +1,42 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_record_list 接口的响应。 + /// + public class ChannelsECPromoterGetLiveRecordListResponse : WechatApiResponse + { + public static class Types + { + public class LiveRecord + { + /// + /// 获取或设置直播 ID。 + /// + [Newtonsoft.Json.JsonProperty("export_id")] + [System.Text.Json.Serialization.JsonPropertyName("export_id")] + public string ExportId { get; set; } = default!; + + /// + /// 获取或设置直播描述。 + /// + [Newtonsoft.Json.JsonProperty("description")] + [System.Text.Json.Serialization.JsonPropertyName("description")] + public string Description { get; set; } = default!; + + /// + /// 获取或设置内嵌直播卡片时需要的推广参数。 + /// + [Newtonsoft.Json.JsonProperty("promoter_share_link")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_share_link")] + public string PromoterShareLink { get; set; } = default!; + } + } + + /// + /// 获取或设置直播数据列表。 + /// + [Newtonsoft.Json.JsonProperty("live_record_list")] + [System.Text.Json.Serialization.JsonPropertyName("live_record_list")] + public Types.LiveRecord[] LiveRecordList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeRequest.cs new file mode 100644 index 00000000..574af9ad --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_record_qr_code 接口的请求。 + /// + public class ChannelsECPromoterGetLiveRecordQrcodeRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置直播 ID。 + /// + [Newtonsoft.Json.JsonProperty("export_id")] + [System.Text.Json.Serialization.JsonPropertyName("export_id")] + public string ExportId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeResponse.cs new file mode 100644 index 00000000..87468032 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_live_record_qr_code 接口的响应。 + /// + public class ChannelsECPromoterGetLiveRecordQrcodeResponse : WechatApiResponse + { + /// + /// 获取或设置二维码 URL。 + /// + [Newtonsoft.Json.JsonProperty("qrcode_url")] + [System.Text.Json.Serialization.JsonPropertyName("qrcode_url")] + public string QrcodeUrl { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListRequest.cs new file mode 100644 index 00000000..78bed8ad --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListRequest.cs @@ -0,0 +1,44 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_live_commission_product_list 接口的请求。 + /// + public class ChannelsECPromoterGetShopLiveCommissionProductListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("promoter_id")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_id")] + public string PromoterId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号类型。 + /// + [Newtonsoft.Json.JsonProperty("promoter_type")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_type")] + public int PromoterType { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListResponse.cs new file mode 100644 index 00000000..6779f667 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListResponse.cs @@ -0,0 +1,42 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_live_commission_product_list 接口的响应。 + /// + public class ChannelsECPromoterGetShopLiveCommissionProductListResponse : WechatApiResponse + { + public static class Types + { + public class Product : ChannelsECPromoterGetLiveCommissionProductListResponse.Types.Product + { + /// + /// 获取或设置佣金率(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("commission_rate")] + [System.Text.Json.Serialization.JsonPropertyName("commission_rate")] + public int CommissionRate { get; set; } + } + } + + /// + /// 获取或设置商品列表。 + /// + [Newtonsoft.Json.JsonProperty("product_list")] + [System.Text.Json.Serialization.JsonPropertyName("product_list")] + public Types.Product[] ProductList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordListRequest.cs new file mode 100644 index 00000000..44abeba7 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordListRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_live_notice_record_list 接口的请求。 + /// + public class ChannelsECPromoterGetShopLiveNoticeRecordListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("promoter_id")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_id")] + public string PromoterId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号类型。 + /// + [Newtonsoft.Json.JsonProperty("promoter_type")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_type")] + public int PromoterType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordListResponse.cs new file mode 100644 index 00000000..ff41c060 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordListResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_live_notice_record_list 接口的响应。 + /// + public class ChannelsECPromoterGetShopLiveNoticeRecordListResponse : WechatApiResponse + { + public static class Types + { + public class LiveNoticeRecord : ChannelsECPromoterGetLiveNoticeRecordListResponse.Types.LiveNoticeRecord + { + } + } + + /// + /// 获取或设置直播预约数据列表。 + /// + [Newtonsoft.Json.JsonProperty("live_record_list")] + [System.Text.Json.Serialization.JsonPropertyName("live_record_list")] + public Types.LiveNoticeRecord[] LiveNoticeRecordList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest.cs new file mode 100644 index 00000000..e4bed0be --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest.cs @@ -0,0 +1,43 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_live_notice_record_qr_code 接口的请求。 + /// + public class ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置关联账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("promoter_id")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_id")] + public string PromoterId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号类型。 + /// + [Newtonsoft.Json.JsonProperty("promoter_type")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_type")] + public int PromoterType { get; set; } + + /// + /// 获取或设置预约 ID。 + /// + [Newtonsoft.Json.JsonProperty("notice_id")] + [System.Text.Json.Serialization.JsonPropertyName("notice_id")] + public string NoticeId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse.cs new file mode 100644 index 00000000..b1b18c61 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_live_notice_record_qr_code 接口的响应。 + /// + public class ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse : WechatApiResponse + { + /// + /// 获取或设置二维码 URL。 + /// + [Newtonsoft.Json.JsonProperty("qrcode_url")] + [System.Text.Json.Serialization.JsonPropertyName("qrcode_url")] + public string QrcodeUrl { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListRequest.cs new file mode 100644 index 00000000..7599baa4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListRequest.cs @@ -0,0 +1,43 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_live_record_list 接口的请求。 + /// + public class ChannelsECPromoterGetShopLiveRecordListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("mini_program_appid")] + [System.Text.Json.Serialization.JsonPropertyName("mini_program_appid")] + public string MiniProgramAppId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("promoter_id")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_id")] + public string PromoterId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号类型。 + /// + [Newtonsoft.Json.JsonProperty("promoter_type")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_type")] + public int PromoterType { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListResponse.cs new file mode 100644 index 00000000..aa6445c3 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_live_record_list 接口的响应。 + /// + public class ChannelsECPromoterGetShopLiveRecordListResponse : WechatApiResponse + { + public static class Types + { + public class LiveRecord : ChannelsECPromoterGetLiveRecordListResponse.Types.LiveRecord + { + } + } + + /// + /// 获取或设置直播数据列表。 + /// + [Newtonsoft.Json.JsonProperty("live_record_list")] + [System.Text.Json.Serialization.JsonPropertyName("live_record_list")] + public Types.LiveRecord[] LiveRecordList { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeRequest.cs new file mode 100644 index 00000000..5e24a860 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeRequest.cs @@ -0,0 +1,43 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_live_record_qr_code 接口的请求。 + /// + public class ChannelsECPromoterGetShopLiveRecordQrcodeRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopId { get; set; } = string.Empty; + + /// + /// 获取或设置推客 AppId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置关联账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("promoter_id")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_id")] + public string PromoterId { get; set; } = string.Empty; + + /// + /// 获取或设置关联账号类型。 + /// + [Newtonsoft.Json.JsonProperty("promoter_type")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_type")] + public int PromoterType { get; set; } + + /// + /// 获取或设置直播 ID。 + /// + [Newtonsoft.Json.JsonProperty("export_id")] + [System.Text.Json.Serialization.JsonPropertyName("export_id")] + public string ExportId { get; set; } = string.Empty; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeResponse.cs new file mode 100644 index 00000000..888c6873 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_shop_live_record_qr_code 接口的响应。 + /// + public class ChannelsECPromoterGetShopLiveRecordQrcodeResponse : WechatApiResponse + { + /// + /// 获取或设置二维码 URL。 + /// + [Newtonsoft.Json.JsonProperty("qrcode_url")] + [System.Text.Json.Serialization.JsonPropertyName("qrcode_url")] + public string QrcodeUrl { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoRequest.cs new file mode 100644 index 00000000..e64228b5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoRequest.cs @@ -0,0 +1,50 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_product_promotion_link_info 接口的请求。 + /// + public class ChannelsECPromoterGetProductPromotionLinkInfoRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置推客的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_openid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_openid")] + public string? SharerOpenId { get; set; } + + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string? ShopAppId { get; set; } + + /// + /// 获取或设置供货机构 AppId。 + /// + [Newtonsoft.Json.JsonProperty("head_supplier_appid")] + [System.Text.Json.Serialization.JsonPropertyName("head_supplier_appid")] + public string? HeadSupplierAppId { get; set; } + + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + public long? ProductId { get; set; } + + /// + /// 获取或设置商品短链。 + /// + [Newtonsoft.Json.JsonProperty("product_short_link")] + [System.Text.Json.Serialization.JsonPropertyName("product_short_link")] + public string? ProductShortLink { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoResponse.cs new file mode 100644 index 00000000..15f3711e --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_product_promotion_link_info 接口的响应。 + /// + public class ChannelsECPromoterGetProductPromotionLinkInfoResponse : WechatApiResponse + { + /// + /// 获取或设置商品推广短链。 + /// + [Newtonsoft.Json.JsonProperty("short_link")] + [System.Text.Json.Serialization.JsonPropertyName("short_link")] + public string ShortLink { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoRequest.cs new file mode 100644 index 00000000..564af4de --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoRequest.cs @@ -0,0 +1,50 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_product_promotion_qrcode_info 接口的请求。 + /// + public class ChannelsECPromoterGetProductPromotionQrcodeInfoRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置推客的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_openid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_openid")] + public string? SharerOpenId { get; set; } + + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string? ShopAppId { get; set; } + + /// + /// 获取或设置供货机构 AppId。 + /// + [Newtonsoft.Json.JsonProperty("head_supplier_appid")] + [System.Text.Json.Serialization.JsonPropertyName("head_supplier_appid")] + public string? HeadSupplierAppId { get; set; } + + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + public long? ProductId { get; set; } + + /// + /// 获取或设置商品短链。 + /// + [Newtonsoft.Json.JsonProperty("product_short_link")] + [System.Text.Json.Serialization.JsonPropertyName("product_short_link")] + public string? ProductShortLink { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoResponse.cs new file mode 100644 index 00000000..c109a5e4 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_product_promotion_qrcode_info 接口的响应。 + /// + public class ChannelsECPromoterGetProductPromotionQrcodeInfoResponse : WechatApiResponse + { + /// + /// 获取或设置商品推广二维码 URL。 + /// + [Newtonsoft.Json.JsonProperty("qrcode_url")] + [System.Text.Json.Serialization.JsonPropertyName("qrcode_url")] + public string QrcodeUrl { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailRequest.cs new file mode 100644 index 00000000..54ffbc62 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailRequest.cs @@ -0,0 +1,43 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_promote_product_detail 接口的请求。 + /// + public class ChannelsECPromoterGetPromoteProductDetailRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopAppId { get; set; } = string.Empty; + + /// + /// 获取或设置供货机构 AppId。 + /// + [Newtonsoft.Json.JsonProperty("head_supplier_appid")] + [System.Text.Json.Serialization.JsonPropertyName("head_supplier_appid")] + public string? HeadSupplierAppId { get; set; } + + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + public long ProductId { get; set; } + + /// + /// 获取或设置计划类型。 + /// + [Newtonsoft.Json.JsonProperty("plan_type")] + [System.Text.Json.Serialization.JsonPropertyName("plan_type")] + public int PlanType { get; set; } + + /// + /// 获取或设置是否返回商品可用的机构券。 + /// + [Newtonsoft.Json.JsonProperty("get_available_coupon")] + [System.Text.Json.Serialization.JsonPropertyName("get_available_coupon")] + public bool RequireAvailableCoupon { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailResponse.cs new file mode 100644 index 00000000..bed15ed1 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailResponse.cs @@ -0,0 +1,256 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_promote_product_detail 接口的响应。 + /// + public class ChannelsECPromoterGetPromoteProductDetailResponse : WechatApiResponse + { + public static class Types + { + public class Product + { + public static class Types + { + public class ProductInfo + { + public static class Types + { + public class Detail : ChannelsECProductGetResponse.Types.Product.Types.Detail + { + } + + public class Category : ChannelsECProductGetResponse.Types.Product.Types.Category + { + } + + public class Attribute : ChannelsECProductGetResponse.Types.Product.Types.Attribute + { + } + + public class SKUDeliver : ChannelsECProductGetResponse.Types.Product.Types.SKUDeliver + { + } + + public class SKU + { + /// + /// 获取或设置 SKU ID。 + /// + [Newtonsoft.Json.JsonProperty("sku_id")] + [System.Text.Json.Serialization.JsonPropertyName("sku_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long SKUId { get; set; } + + /// + /// 获取或设置缩略图 URL。 + /// + [Newtonsoft.Json.JsonProperty("thumb_img")] + [System.Text.Json.Serialization.JsonPropertyName("thumb_img")] + public string ThumbnailUrl { get; set; } = default!; + + /// + /// 获取或设置售价(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("sale_price")] + [System.Text.Json.Serialization.JsonPropertyName("sale_price")] + public int SalePrice { get; set; } + + /// + /// 获取或设置库存。 + /// + [Newtonsoft.Json.JsonProperty("stock_num")] + [System.Text.Json.Serialization.JsonPropertyName("stock_num")] + public int Stock { get; set; } + + /// + /// 获取或设置商品属性列表。 + /// + [Newtonsoft.Json.JsonProperty("sku_attrs")] + [System.Text.Json.Serialization.JsonPropertyName("sku_attrs")] + public Attribute[]? AttributeList { get; set; } + + /// + /// 获取或设置商品配送信息。 + /// + [Newtonsoft.Json.JsonProperty("sku_deliver_info")] + [System.Text.Json.Serialization.JsonPropertyName("sku_deliver_info")] + public SKUDeliver? SKUDeliver { get; set; } + } + } + + /// + /// 获取或设置商品标题。 + /// + [Newtonsoft.Json.JsonProperty("title")] + [System.Text.Json.Serialization.JsonPropertyName("title")] + public string Title { get; set; } = default!; + + /// + /// 获取或设置商品副标题。 + /// + [Newtonsoft.Json.JsonProperty("sub_title")] + [System.Text.Json.Serialization.JsonPropertyName("sub_title")] + public string? SubTitle { get; set; } + + /// + /// 获取或设置主图 URL 列表。 + /// + [Newtonsoft.Json.JsonProperty("head_imgs")] + [System.Text.Json.Serialization.JsonPropertyName("head_imgs")] + public string[] HeadImageUrlList { get; set; } = default!; + + /// + /// 获取或设置商品详情信息。 + /// + [Newtonsoft.Json.JsonProperty("desc_info")] + [System.Text.Json.Serialization.JsonPropertyName("desc_info")] + public Types.Detail Detail { get; set; } = default!; + + /// + /// 获取或设置新版商品类目列表。 + /// + [Newtonsoft.Json.JsonProperty("cats_v2")] + [System.Text.Json.Serialization.JsonPropertyName("cats_v2")] + public Types.Category[]? CategoryV2List { get; set; } + + /// + /// 获取或设置商品状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置 SKU 列表。 + /// + [Newtonsoft.Json.JsonProperty("skus")] + [System.Text.Json.Serialization.JsonPropertyName("skus")] + public Types.SKU[] SKUs { get; set; } = default!; + } + + public class CommissionInfo + { + /// + /// 获取或设置商品带货状态。 + /// + [Newtonsoft.Json.JsonProperty("status")] + [System.Text.Json.Serialization.JsonPropertyName("status")] + public int Status { get; set; } + + /// + /// 获取或设置服务费率(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("service_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("service_ratio")] + public int ServiceRatio { get; set; } + + /// + /// 获取或设置合作开始时间戳戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置合作结束时间戳戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + } + + public class HeadSupplierInfo + { + /// + /// 获取或设置供货机构 AppId。 + /// + [Newtonsoft.Json.JsonProperty("head_supplier_appid")] + [System.Text.Json.Serialization.JsonPropertyName("head_supplier_appid")] + public string HeadSupplierAppId { get; set; } = default!; + + /// + /// 获取或设置供货机构名称。 + /// + [Newtonsoft.Json.JsonProperty("name")] + [System.Text.Json.Serialization.JsonPropertyName("name")] + public string Name { get; set; } = default!; + } + } + + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + public long ProductId { get; set; } + + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopAppId { get; set; } = default!; + + /// + /// 获取或设置商品小程序跳转小店场景添加商品时传递的推广信息。 + /// + [Newtonsoft.Json.JsonProperty("product_promotion_link")] + [System.Text.Json.Serialization.JsonPropertyName("product_promotion_link")] + public string ProductPromotionLink { get; set; } = default!; + + /// + /// 获取或设置商品信息。 + /// + [Newtonsoft.Json.JsonProperty("product_info")] + [System.Text.Json.Serialization.JsonPropertyName("product_info")] + public Types.ProductInfo ProductInfo { get; set; } = default!; + + /// + /// 获取或设置佣金信息。 + /// + [Newtonsoft.Json.JsonProperty("commission_info")] + [System.Text.Json.Serialization.JsonPropertyName("commission_info")] + public Types.CommissionInfo CommissionInfo { get; set; } = default!; + + /// + /// 获取或设置供货机构信息。 + /// + [Newtonsoft.Json.JsonProperty("head_supplier_info")] + [System.Text.Json.Serialization.JsonPropertyName("head_supplier_info")] + public Types.HeadSupplierInfo? HeadSupplierInfo { get; set; } + } + + public class Coupon + { + /// + /// 获取或设置券 ID。 + /// + [Newtonsoft.Json.JsonProperty("coupon_id")] + [System.Text.Json.Serialization.JsonPropertyName("coupon_id")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long CouponId { get; set; } + } + } + + /// + /// 获取或设置商品信息。 + /// + [Newtonsoft.Json.JsonProperty("product")] + [System.Text.Json.Serialization.JsonPropertyName("product")] + public Types.Product Product { get; set; } = default!; + + /// + /// 获取或设置商品可用的公开机构券列表。 + /// + [Newtonsoft.Json.JsonProperty("public_coupons")] + [System.Text.Json.Serialization.JsonPropertyName("public_coupons")] + public Types.Coupon[]? PublicCouponList { get; set; } + + /// + /// 获取或设置商品可用的定向机构券列表。 + /// + [Newtonsoft.Json.JsonProperty("cooperative_coupons")] + [System.Text.Json.Serialization.JsonPropertyName("cooperative_coupons")] + public Types.Coupon[]? CooperativeCouponList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListRequest.cs new file mode 100644 index 00000000..262069ef --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListRequest.cs @@ -0,0 +1,166 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_promote_product_list 接口的请求。 + /// + public class ChannelsECPromoterGetPromoteProductListRequest : WechatApiRequest, IInferable + { + public static class Types + { + public class SPUItemCondition + { + public static class Types + { + public class Range + { + /// + /// 获取或设置最小值。 + /// + [Newtonsoft.Json.JsonProperty("min")] + [System.Text.Json.Serialization.JsonPropertyName("min")] + public long Mininum { get; set; } + + /// + /// 获取或设置最大值。 + /// + [Newtonsoft.Json.JsonProperty("max")] + [System.Text.Json.Serialization.JsonPropertyName("max")] + public long Maxinum { get; set; } + } + } + + /// + /// 获取或设置售卖价区间信息(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("selling_price_range")] + [System.Text.Json.Serialization.JsonPropertyName("selling_price_range")] + public Types.Range? SellingPriceRange { get; set; } + + /// + /// 获取或设置月销量区间信息。 + /// + [Newtonsoft.Json.JsonProperty("monthly_sales_range")] + [System.Text.Json.Serialization.JsonPropertyName("monthly_sales_range")] + public Types.Range? MonthlySalesRange { get; set; } + + /// + /// 获取或设置服务费率区间信息(单位:十万分数)。 + /// + [Newtonsoft.Json.JsonProperty("service_fee_rate_range")] + [System.Text.Json.Serialization.JsonPropertyName("service_fee_rate_range")] + public Types.Range? ServiceFeeRateRange { get; set; } + + /// + /// 获取或设置佣金率区间信息(单位:十万分数)。 + /// + [Newtonsoft.Json.JsonProperty("commission_rate_range")] + [System.Text.Json.Serialization.JsonPropertyName("commission_rate_range")] + public Types.Range? CommissionRateRange { get; set; } + + /// + /// 获取或设置推广时间戳范围信息。 + /// + [Newtonsoft.Json.JsonProperty("promote_time_range")] + [System.Text.Json.Serialization.JsonPropertyName("promote_time_range")] + public Types.Range? PromoteTimestampRange { get; set; } + + /// + /// 获取或设置保障标识信息。 + /// + [Newtonsoft.Json.JsonProperty("flags")] + [System.Text.Json.Serialization.JsonPropertyName("flags")] + public IList? FlagList { get; set; } + } + + public class Category + { + /// + /// 获取或设置商品类目 ID。 + /// + [Newtonsoft.Json.JsonProperty("category_id")] + [System.Text.Json.Serialization.JsonPropertyName("category_id")] + public long? CategoryId { get; set; } + + /// + /// 获取或设置商品类目名称。 + /// + [Newtonsoft.Json.JsonProperty("category_name")] + [System.Text.Json.Serialization.JsonPropertyName("category_name")] + public string? CategoryName { get; set; } + + /// + /// 获取或设置一级类目 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("category_ids_1")] + [System.Text.Json.Serialization.JsonPropertyName("category_ids_1")] + public IList? Category1stIdList { get; set; } + + /// + /// 获取或设置二级类目 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("category_ids_2")] + [System.Text.Json.Serialization.JsonPropertyName("category_ids_2")] + public IList? Category2ndIdList { get; set; } + + /// + /// 获取或设置三级类目 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("category_ids_3")] + [System.Text.Json.Serialization.JsonPropertyName("category_ids_3")] + public IList? Category3rdIdList { get; set; } + } + } + + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string? ShopAppId { get; set; } + + /// + /// 获取或设置搜索关键词。 + /// + [Newtonsoft.Json.JsonProperty("keyword")] + [System.Text.Json.Serialization.JsonPropertyName("keyword")] + public string? Keyword { get; set; } + + /// + /// 获取或设置计划类型。 + /// + [Newtonsoft.Json.JsonProperty("plan_type")] + [System.Text.Json.Serialization.JsonPropertyName("plan_type")] + public int PlanType { get; set; } + + /// + /// 获取或设置商品查询条件。 + /// + [Newtonsoft.Json.JsonProperty("spu_item_condition")] + [System.Text.Json.Serialization.JsonPropertyName("spu_item_condition")] + public Types.SPUItemCondition? SPUItemCondition { get; set; } + + /// + /// 获取或设置类目查询条件。 + /// + [Newtonsoft.Json.JsonProperty("category")] + [System.Text.Json.Serialization.JsonPropertyName("category")] + public Types.Category? Category { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListResponse.cs new file mode 100644 index 00000000..13aa5e57 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListResponse.cs @@ -0,0 +1,49 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_promote_product_list 接口的响应。 + /// + public class ChannelsECPromoterGetPromoteProductListResponse : WechatApiResponse + { + public static class Types + { + public class Product + { + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + public long ProductId { get; set; } + + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopAppId { get; set; } = default!; + + /// + /// 获取或设置供货机构 AppId。 + /// + [Newtonsoft.Json.JsonProperty("head_supplier_appid")] + [System.Text.Json.Serialization.JsonPropertyName("head_supplier_appid")] + public string? HeadSupplierAppId { get; set; } + } + } + + /// + /// 获取或设置商品列表。 + /// + [Newtonsoft.Json.JsonProperty("product_list")] + [System.Text.Json.Serialization.JsonPropertyName("product_list")] + public Types.Product[] ProductList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest.cs new file mode 100644 index 00000000..b051c2bd --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest.cs @@ -0,0 +1,50 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_promoter_single_product_promotion_info 接口的请求。 + /// + public class ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置推客的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_openid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_openid")] + public string? SharerOpenId { get; set; } + + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string? ShopAppId { get; set; } + + /// + /// 获取或设置供货机构 AppId。 + /// + [Newtonsoft.Json.JsonProperty("head_supplier_appid")] + [System.Text.Json.Serialization.JsonPropertyName("head_supplier_appid")] + public string? HeadSupplierAppId { get; set; } + + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + public long? ProductId { get; set; } + + /// + /// 获取或设置商品短链。 + /// + [Newtonsoft.Json.JsonProperty("product_short_link")] + [System.Text.Json.Serialization.JsonPropertyName("product_short_link")] + public string? ProductShortLink { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse.cs new file mode 100644 index 00000000..459f450b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse.cs @@ -0,0 +1,15 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_promoter_single_product_promotion_info 接口的响应。 + /// + public class ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse : WechatApiResponse + { + /// + /// 获取或设置商品小程序跳转小店场景添加商品时传递的推广信息。 + /// + [Newtonsoft.Json.JsonProperty("product_promotion_link")] + [System.Text.Json.Serialization.JsonPropertyName("product_promotion_link")] + public string ProductPromotionLink { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoRequest.cs new file mode 100644 index 00000000..7cd660d2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoRequest.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_sharer_product_commission_info 接口的请求。 + /// + public class ChannelsECPromoterGetSharerProductCommissionInfoRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string SharerAppId { get; set; } = string.Empty; + + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + public long ProductId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoResponse.cs new file mode 100644 index 00000000..e2d1744d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoResponse.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_sharer_product_commission_info 接口的响应。 + /// + public class ChannelsECPromoterGetSharerProductCommissionInfoResponse : WechatApiResponse + { + /// + /// 获取或设置是否设置过分佣比例。 + /// + [Newtonsoft.Json.JsonProperty("is_set")] + [System.Text.Json.Serialization.JsonPropertyName("is_set")] + public bool IsSet { get; set; } + + /// + /// 获取或设置分佣比例(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("commission_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("commission_ratio")] + public int CommissionRatio { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoRequest.cs new file mode 100644 index 00000000..e07f61b2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/set_sharer_product_commission_info 接口的请求。 + /// + public class ChannelsECPromoterSetSharerProductCommissionInfoRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string SharerAppId { get; set; } = string.Empty; + + /// + /// 获取或设置商品 ID。 + /// + [Newtonsoft.Json.JsonProperty("product_id")] + [System.Text.Json.Serialization.JsonPropertyName("product_id")] + public long ProductId { get; set; } + + /// + /// 获取或设置分佣比例(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("commission_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("commission_ratio")] + public int CommissionRatio { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoResponse.cs new file mode 100644 index 00000000..cc42f8da --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/set_sharer_product_commission_info 接口的响应。 + /// + public class ChannelsECPromoterSetSharerProductCommissionInfoResponse : WechatApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListRequest.cs new file mode 100644 index 00000000..a3c1f212 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListRequest.cs @@ -0,0 +1,37 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_bind_sharer_list 接口的请求。 + /// + public class ChannelsECPromoterGetBindSharerListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置推客的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_openid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_openid")] + public string? SharerOpenId { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListResponse.cs new file mode 100644 index 00000000..6e0a8f6a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListResponse.cs @@ -0,0 +1,70 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_bind_sharer_list 接口的响应。 + /// + public class ChannelsECPromoterGetBindSharerListResponse : WechatApiResponse + { + public static class Types + { + public class Sharer + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string SharerAppId { get; set; } = default!; + + /// + /// 获取或设置推客昵称。 + /// + [Newtonsoft.Json.JsonProperty("nickname")] + [System.Text.Json.Serialization.JsonPropertyName("nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置推客头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("head_img_url")] + [System.Text.Json.Serialization.JsonPropertyName("head_img_url")] + public string HeadImageUrl { get; set; } = default!; + + /// + /// 获取或设置绑定时间戳。 + /// + [Newtonsoft.Json.JsonProperty("bind_time")] + [System.Text.Json.Serialization.JsonPropertyName("bind_time")] + public long BindTimestamp { get; set; } + + /// + /// 获取或设置分佣类型。 + /// + [Newtonsoft.Json.JsonProperty("commission_type")] + [System.Text.Json.Serialization.JsonPropertyName("commission_type")] + public int CommissionType { get; set; } + + /// + /// 获取或设置分佣比例(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("commission_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("commission_ratio")] + public int CommissionRatio { get; set; } + } + } + + /// + /// 获取或设置推客列表。 + /// + [Newtonsoft.Json.JsonProperty("sharer_info_list")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_info_list")] + public Types.Sharer[] SharerList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListRequest.cs new file mode 100644 index 00000000..ea2c0efc --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListRequest.cs @@ -0,0 +1,23 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_bind_shop_list 接口的请求。 + /// + public class ChannelsECPromoterGetBindShopListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListResponse.cs new file mode 100644 index 00000000..429e9f91 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListResponse.cs @@ -0,0 +1,63 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_bind_shop_list 接口的响应。 + /// + public class ChannelsECPromoterGetBindShopListResponse : WechatApiResponse + { + public static class Types + { + public class Shop + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopAppId { get; set; } = default!; + + /// + /// 获取或设置小店昵称。 + /// + [Newtonsoft.Json.JsonProperty("shop_nickname")] + [System.Text.Json.Serialization.JsonPropertyName("shop_nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置小店头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("shop_head_img")] + [System.Text.Json.Serialization.JsonPropertyName("shop_head_img")] + public string HeadImageUrl { get; set; } = default!; + + /// + /// 获取或设置绑定时间戳。 + /// + [Newtonsoft.Json.JsonProperty("bind_time")] + [System.Text.Json.Serialization.JsonPropertyName("bind_time")] + public long BindTimestamp { get; set; } + } + } + + /// + /// 获取或设置小店列表。 + /// + [Newtonsoft.Json.JsonProperty("shop_list")] + [System.Text.Json.Serialization.JsonPropertyName("shop_list")] + public Types.Shop[] ShopList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListRequest.cs new file mode 100644 index 00000000..82933612 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListRequest.cs @@ -0,0 +1,30 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_bind_shop_promoter_list 接口的请求。 + /// + public class ChannelsECPromoterGetBindShopPromoterListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置小店 AppId。 + /// + [Newtonsoft.Json.JsonProperty("shop_appid")] + [System.Text.Json.Serialization.JsonPropertyName("shop_appid")] + public string ShopAppId { get; set; } = string.Empty; + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListResponse.cs new file mode 100644 index 00000000..4ae986a5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListResponse.cs @@ -0,0 +1,63 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_bind_shop_promoter_list 接口的响应。 + /// + public class ChannelsECPromoterGetBindShopPromoterListResponse : WechatApiResponse + { + public static class Types + { + public class Promoter + { + /// + /// 获取或设置关联账号 ID。 + /// + [Newtonsoft.Json.JsonProperty("promoter_id")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_id")] + public string PromoterId { get; set; } = default!; + + /// + /// 获取或设置关联账号类型。 + /// + [Newtonsoft.Json.JsonProperty("promoter_type")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_type")] + public int PromoterType { get; set; } + + /// + /// 获取或设置关联账号昵称。 + /// + [Newtonsoft.Json.JsonProperty("promoter_name")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_name")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置关联账号头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("avatar_image_url")] + [System.Text.Json.Serialization.JsonPropertyName("avatar_image_url")] + public string HeadImageUrl { get; set; } = default!; + } + } + + /// + /// 获取或设置关联账号列表。 + /// + [Newtonsoft.Json.JsonProperty("promoter_list")] + [System.Text.Json.Serialization.JsonPropertyName("promoter_list")] + public Types.Promoter[] PromoterList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListRequest.cs new file mode 100644 index 00000000..fcbe1838 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListRequest.cs @@ -0,0 +1,30 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_bind_talent_list 接口的请求。 + /// + public class ChannelsECPromoterGetBindTalentListRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string? TalentAppId { get; set; } + + /// + /// 获取或设置分页游标。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? Cursor { get; set; } + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListResponse.cs new file mode 100644 index 00000000..e7d57fe7 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListResponse.cs @@ -0,0 +1,77 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_bind_talent_list 接口的响应。 + /// + public class ChannelsECPromoterGetBindTalentListResponse : WechatApiResponse + { + public static class Types + { + public class Talent + { + /// + /// 获取或设置达人平台 AppId。 + /// + [Newtonsoft.Json.JsonProperty("talent_appid")] + [System.Text.Json.Serialization.JsonPropertyName("talent_appid")] + public string TalentAppId { get; set; } = default!; + + /// + /// 获取或设置达人平台昵称。 + /// + [Newtonsoft.Json.JsonProperty("talent_nickname")] + [System.Text.Json.Serialization.JsonPropertyName("talent_nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置达人平台头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("talent_head_img")] + [System.Text.Json.Serialization.JsonPropertyName("talent_head_img")] + public string HeadImageUrl { get; set; } = default!; + + /// + /// 获取或设置绑定时间戳。 + /// + [Newtonsoft.Json.JsonProperty("bind_time")] + [System.Text.Json.Serialization.JsonPropertyName("bind_time")] + public long BindTimestamp { get; set; } + + /// + /// 获取或设置关联的视频号导出名称。 + /// + [Newtonsoft.Json.JsonProperty("related_finder_exportname_list")] + [System.Text.Json.Serialization.JsonPropertyName("related_finder_exportname_list")] + public string[] RelatedFinderExportUserameList { get; set; } = default!; + + /// + /// 获取或设置关联的公众号 AppId。 + /// + [Newtonsoft.Json.JsonProperty("related_mp_biz_appid_list")] + [System.Text.Json.Serialization.JsonPropertyName("related_mp_biz_appid_list")] + public string[] RelatedMpAppIdList { get; set; } = default!; + } + } + + /// + /// 获取或设置达人列表。 + /// + [Newtonsoft.Json.JsonProperty("talent_list")] + [System.Text.Json.Serialization.JsonPropertyName("talent_list")] + public Types.Talent[] TalentList { get; set; } = default!; + + /// + /// 获取或设置翻页标记。 + /// + [Newtonsoft.Json.JsonProperty("next_key")] + [System.Text.Json.Serialization.JsonPropertyName("next_key")] + public string? NextCursor { get; set; } + + /// + /// 获取或设置是否还有更多。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest.cs new file mode 100644 index 00000000..9d0e9302 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_promoter_register_and_bind_status 接口的请求。 + /// + public class ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + + /// + /// 获取或设置推客的 OpenId。 + /// + [Newtonsoft.Json.JsonProperty("sharer_openid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_openid")] + public string? SharerOpenId { get; set; } + + /// + /// 获取或设置是否简易版本注册。 + /// + [Newtonsoft.Json.JsonProperty("is_simple_register")] + [System.Text.Json.Serialization.JsonPropertyName("is_simple_register")] + public bool IsSimpleRegister { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse.cs new file mode 100644 index 00000000..6ba16a3a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse.cs @@ -0,0 +1,57 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/get_promoter_register_and_bind_status 接口的响应。 + /// + public class ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse : WechatApiResponse + { + /// + /// 获取或设置绑定状态。 + /// + [Newtonsoft.Json.JsonProperty("bind_status")] + [System.Text.Json.Serialization.JsonPropertyName("bind_status")] + public int BindStatus { get; set; } + + /// + /// 获取或设置绑定业务类型。 + /// + [Newtonsoft.Json.JsonProperty("bind_business_type")] + [System.Text.Json.Serialization.JsonPropertyName("bind_business_type")] + public string? BindBusinessType { get; set; } + + /// + /// 获取或设置绑定业务参数。 + /// + [Newtonsoft.Json.JsonProperty("bind_query_string")] + [System.Text.Json.Serialization.JsonPropertyName("bind_query_string")] + public string? BindQueryString { get; set; } + + /// + /// 获取或设置注册状态。 + /// + [Newtonsoft.Json.JsonProperty("register_status")] + [System.Text.Json.Serialization.JsonPropertyName("register_status")] + public int RegisterStatus { get; set; } + + /// + /// 获取或设置注册业务类型。 + /// + [Newtonsoft.Json.JsonProperty("register_business_type")] + [System.Text.Json.Serialization.JsonPropertyName("register_business_type")] + public string? RegisterBusinessType { get; set; } + + /// + /// 获取或设置注册业务参数。 + /// + [Newtonsoft.Json.JsonProperty("register_query_string")] + [System.Text.Json.Serialization.JsonPropertyName("register_query_string")] + public string? RegisterQueryString { get; set; } + + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string? SharerAppId { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoRequest.cs new file mode 100644 index 00000000..1e56fb00 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoRequest.cs @@ -0,0 +1,29 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/set_sharer_commission_info 接口的请求。 + /// + public class ChannelsECPromoterSetSharerCommissionInfoRequest : WechatApiRequest, IInferable + { + /// + /// 获取或设置推客的微信电商平台注册的身份标识。 + /// + [Newtonsoft.Json.JsonProperty("sharer_appid")] + [System.Text.Json.Serialization.JsonPropertyName("sharer_appid")] + public string SharerAppId { get; set; } = string.Empty; + + /// + /// 获取或设置分佣类型。 + /// + [Newtonsoft.Json.JsonProperty("commission_type")] + [System.Text.Json.Serialization.JsonPropertyName("commission_type")] + public int CommissionType { get; set; } + + /// + /// 获取或设置分佣比例(单位:万分数)。 + /// + [Newtonsoft.Json.JsonProperty("commission_ratio")] + [System.Text.Json.Serialization.JsonPropertyName("commission_ratio")] + public int CommissionRatio { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoResponse.cs new file mode 100644 index 00000000..658f583f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoResponse.cs @@ -0,0 +1,9 @@ +namespace SKIT.FlurlHttpClient.Wechat.Api.Models +{ + /// + /// 表示 [POST] /channels/ec/promoter/set_sharer_commission_info 接口的响应。 + /// + public class ChannelsECPromoterSetSharerCommissionInfoResponse : WechatApiResponse + { + } +} diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECQIC/ChannelsECQICInspectCodePrintResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECQIC/ChannelsECQICInspectCodePrintResponse.cs index 03ec2e07..275e3b6b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECQIC/ChannelsECQICInspectCodePrintResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECQIC/ChannelsECQICInspectCodePrintResponse.cs @@ -37,7 +37,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models } /// - /// 获取或设置视频号店铺 AppId。 + /// 获取或设置小店 AppId。 /// [Newtonsoft.Json.JsonProperty("channelAppId")] [System.Text.Json.Serialization.JsonPropertyName("channelAppId")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Order/ChannelsECTalentGetOrderDetailResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Order/ChannelsECTalentGetOrderDetailResponse.cs index 6a6291a9..ef83b77b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Order/ChannelsECTalentGetOrderDetailResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Order/ChannelsECTalentGetOrderDetailResponse.cs @@ -37,12 +37,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string OrderId { get; set; } = default!; /// - /// 获取或设置商品 ID。 + /// 获取或设置 SPU ID。 /// [Newtonsoft.Json.JsonProperty("spu_id")] [System.Text.Json.Serialization.JsonPropertyName("spu_id")] - [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] - public long ProductId { get; set; } + public string SPUId { get; set; } = default!; /// /// 获取或设置 SKU ID。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Order/ChannelsECTalentGetOrderListRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Order/ChannelsECTalentGetOrderListRequest.cs index a14f326a..b6c01318 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Order/ChannelsECTalentGetOrderListRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Order/ChannelsECTalentGetOrderListRequest.cs @@ -19,6 +19,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("create_time_lt")] public long? EndCreateTimestamp { get; set; } + /// + /// 获取或设置佣金单更新时间范围的开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("update_time_gt")] + [System.Text.Json.Serialization.JsonPropertyName("update_time_gt")] + public long? StartUpdateTimestamp { get; set; } + + /// + /// 获取或设置佣金单更新时间范围的结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("update_time_lt")] + [System.Text.Json.Serialization.JsonPropertyName("update_time_lt")] + public long? EndUpdateTimestamp { get; set; } + /// /// 获取或设置订单 ID。 /// @@ -26,6 +40,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models [System.Text.Json.Serialization.JsonPropertyName("order_id")] public string? OrderId { get; set; } + /// + /// 获取或设置 SPU ID。 + /// + [Newtonsoft.Json.JsonProperty("spu_id")] + [System.Text.Json.Serialization.JsonPropertyName("spu_id")] + public string? SPUId { get; set; } + /// /// 获取或设置分页每页数量。 /// 默认值:10 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Window/ChannelsECTalentWindowProductGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Window/ChannelsECTalentWindowProductGetResponse.cs index f0345dda..a766e236 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Window/ChannelsECTalentWindowProductGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Window/ChannelsECTalentWindowProductGetResponse.cs @@ -18,7 +18,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public long ProductId { get; set; } /// - /// 获取或设置店铺 AppId。 + /// 获取或设置小店 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] @@ -89,7 +89,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public bool IsHidden { get; set; } /// - /// 获取或设置商品小程序跳转小店场景添加商品时传递的跟佣信息。 + /// 获取或设置商品小程序跳转小店场景添加商品时传递的推广信息。 /// [Newtonsoft.Json.JsonProperty("product_promotion_link")] [System.Text.Json.Serialization.JsonPropertyName("product_promotion_link")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Window/ChannelsECTalentWindowProductListGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Window/ChannelsECTalentWindowProductListGetResponse.cs index 7f9d4037..4e76adce 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Window/ChannelsECTalentWindowProductListGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECTalent/Window/ChannelsECTalentWindowProductListGetResponse.cs @@ -25,7 +25,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public int ProductSource { get; set; } /// - /// 获取或设置店铺 AppId。 + /// 获取或设置小店 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductAddRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductAddRequest.cs index 60364bdb..94fd5865 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductAddRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /channels/ec/window/product/add 接口的请求。 @@ -13,7 +13,7 @@ public long ProductId { get; set; } /// - /// 获取或设置商品来源店铺的 AppId。 + /// 获取或设置商品来源小店 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetRequest.cs index 67cb3f6f..be116500 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetRequest.cs @@ -13,7 +13,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public long ProductId { get; set; } /// - /// 获取或设置商品来源店铺的 AppId。 + /// 获取或设置商品来源小店 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetResponse.cs index 088ecc22..35c15f36 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductGetResponse.cs @@ -121,7 +121,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models } /// - /// 获取或设置商品来源店铺的 AppId。 + /// 获取或设置商品来源小店 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductListGetRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductListGetRequest.cs index cbe7534c..929f1c4d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductListGetRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductListGetRequest.cs @@ -6,7 +6,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class ChannelsECWindowProductListGetRequest : WechatApiRequest, IInferable { /// - /// 获取或设置商品来源店铺的 AppId。 + /// 获取或设置商品来源小店 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductListGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductListGetResponse.cs index b9535fac..2a5cf6e1 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductListGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductListGetResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /channels/ec/window/product/list/get 接口的响应。 @@ -18,7 +18,7 @@ public long ProductId { get; set; } /// - /// 获取或设置商品来源店铺的 AppId。 + /// 获取或设置商品来源小店 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductOffRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductOffRequest.cs index a7efb739..66a5c589 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductOffRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Channels/ECWindow/ChannelsECWindowProductOffRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /channels/ec/window/product/off 接口的请求。 @@ -13,7 +13,7 @@ public long ProductId { get; set; } /// - /// 获取或设置商品来源店铺的 AppId。 + /// 获取或设置商品来源小店 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxUnifiedOrderRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxUnifiedOrderRequest.cs index 5bc7994d..a8431f56 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxUnifiedOrderRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Nontax/NontaxUnifiedOrderRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { @@ -105,7 +105,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? OpenId { get; set; } /// - /// 获取或设置 App 的 AppId。 + /// 获取或设置 App AppId。 /// [Newtonsoft.Json.JsonProperty("app_appid")] [System.Text.Json.Serialization.JsonPropertyName("app_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Coupon/ProductCouponGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Coupon/ProductCouponGetResponse.cs index 25d51b31..01e9c259 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Coupon/ProductCouponGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Coupon/ProductCouponGetResponse.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { @@ -13,7 +13,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models { public static class Types { - public class CouponDetail + public class CouponInfo { public static class Types { @@ -233,7 +233,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public Types.Validity Validity { get; set; } = default!; } - public class CouponStock + public class StockInfo { /// /// 获取或设置剩余量。 @@ -284,14 +284,14 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// [Newtonsoft.Json.JsonProperty("coupon_info")] [System.Text.Json.Serialization.JsonPropertyName("coupon_info")] - public Types.CouponDetail CouponDetail { get; set; } = default!; + public Types.CouponInfo CouponInfo { get; set; } = default!; /// /// 获取或设置优惠券库存信息。 /// [Newtonsoft.Json.JsonProperty("stock_info")] [System.Text.Json.Serialization.JsonPropertyName("stock_info")] - public Types.CouponStock CouponStock { get; set; } = default!; + public Types.StockInfo StockInfo { get; set; } = default!; /// /// 获取或设置更新时间。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Register/ProductRegisterCheckAuditStatusResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Register/ProductRegisterCheckAuditStatusResponse.cs index 45128bfd..de03074d 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Register/ProductRegisterCheckAuditStatusResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Product/Register/ProductRegisterCheckAuditStatusResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /product/register/check_audit_status 接口的响应。 @@ -86,7 +86,7 @@ public string? LegalPersonValidationUrl { get; set; } /// - /// 获取或设置注册的 AppId。 + /// 获取或设置注册 AppId。 /// [Newtonsoft.Json.JsonProperty("registered_appid")] [System.Text.Json.Serialization.JsonPropertyName("registered_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponAddRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponAddRequest.cs index f7e6b342..2cc5e93a 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponAddRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponAddRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { @@ -13,7 +13,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models { public static class Types { - public class CouponDetail + public class CouponInfo { public static class Types { @@ -235,7 +235,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// [Newtonsoft.Json.JsonProperty("coupon_info")] [System.Text.Json.Serialization.JsonPropertyName("coupon_info")] - public Types.CouponDetail CouponDetail { get; set; } = new Types.CouponDetail(); + public Types.CouponInfo CouponInfo { get; set; } = new Types.CouponInfo(); } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponGetResponse.cs index b0d42216..07e7e3be 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponGetResponse.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /shop/coupon/get 接口的响应。 @@ -15,7 +15,7 @@ { public static class Types { - public class CouponDetail + public class CouponInfo { public static class Types { @@ -322,7 +322,7 @@ /// [Newtonsoft.Json.JsonProperty("coupon_info")] [System.Text.Json.Serialization.JsonPropertyName("coupon_info")] - public Types.CouponDetail CouponDetail { get; set; } = default!; + public Types.CouponInfo CouponInfo { get; set; } = default!; /// /// 获取或设置优惠券状态。 diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponUpdateRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponUpdateRequest.cs index 35011563..608ad447 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponUpdateRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Shop/Coupon/ShopCouponUpdateRequest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace SKIT.FlurlHttpClient.Wechat.Api.Models { @@ -13,7 +13,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models { public static class Types { - public class CouponDetail + public class CouponInfo { public static class Types { @@ -25,11 +25,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models { public static class Types { - public class TradeIn : ShopCouponAddRequest.Types.Coupon.Types.CouponDetail.Types.Discount.Types.DiscountCondidtion.Types.TradeIn + public class TradeIn : ShopCouponAddRequest.Types.Coupon.Types.CouponInfo.Types.Discount.Types.DiscountCondidtion.Types.TradeIn { } - public class BuyGet : ShopCouponAddRequest.Types.Coupon.Types.CouponDetail.Types.Discount.Types.DiscountCondidtion.Types.BuyGet + public class BuyGet : ShopCouponAddRequest.Types.Coupon.Types.CouponInfo.Types.Discount.Types.DiscountCondidtion.Types.BuyGet { } } @@ -97,7 +97,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models { public static class Types { - public class Finder : ShopCouponAddRequest.Types.Coupon.Types.CouponDetail.Types.Promotion.Types.Finder + public class Finder : ShopCouponAddRequest.Types.Coupon.Types.CouponInfo.Types.Promotion.Types.Finder { } } @@ -117,11 +117,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public Types.Finder? Finder { get; set; } } - public class Reception : ShopCouponAddRequest.Types.Coupon.Types.CouponDetail.Types.Reception + public class Reception : ShopCouponAddRequest.Types.Coupon.Types.CouponInfo.Types.Reception { } - public class Validity : ShopCouponAddRequest.Types.Coupon.Types.CouponDetail.Types.Validity + public class Validity : ShopCouponAddRequest.Types.Coupon.Types.CouponInfo.Types.Validity { } } @@ -189,7 +189,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models /// [Newtonsoft.Json.JsonProperty("coupon_info")] [System.Text.Json.Serialization.JsonPropertyName("coupon_info")] - public Types.CouponDetail CouponDetail { get; set; } = new Types.CouponDetail(); + public Types.CouponInfo CouponInfo { get; set; } = new Types.CouponInfo(); } } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/TCB/ThirdPartyPlatforms/TCBShareEnvironmentRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/TCB/ThirdPartyPlatforms/TCBShareEnvironmentRequest.cs index e4304731..bef548b6 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/TCB/ThirdPartyPlatforms/TCBShareEnvironmentRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/TCB/ThirdPartyPlatforms/TCBShareEnvironmentRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /tcb/shareenv 接口的请求。 @@ -13,7 +13,7 @@ public string EnvironmentId { get; set; } = string.Empty; /// - /// 获取或设置被授权的 AppId。 + /// 获取或设置被授权 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/Plugin/WxaDevPluginDevAgreeRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/Plugin/WxaDevPluginDevAgreeRequest.cs index b26cd4a0..f4247575 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/Plugin/WxaDevPluginDevAgreeRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/Plugin/WxaDevPluginDevAgreeRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/devplugin?action=dev_agree 接口的请求。 @@ -13,7 +13,7 @@ public string Action { get; set; } = "dev_agree"; /// - /// 获取或设置同意申请的 AppId。 + /// 获取或设置同意申请 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/UrlLink/WxaGenerateUrlLinkRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/UrlLink/WxaGenerateUrlLinkRequest.cs index 0bc81450..5a1338a4 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/UrlLink/WxaGenerateUrlLinkRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/UrlLink/WxaGenerateUrlLinkRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/generate_urllink 接口的请求。 @@ -38,7 +38,7 @@ public string? Query { get; set; } /// - /// 获取或设置第三方平台的 AppId。 + /// 获取或设置第三方平台 AppId。 /// [Newtonsoft.Json.JsonProperty("resource_appid")] [System.Text.Json.Serialization.JsonPropertyName("resource_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/UrlLink/WxaQueryUrlLinkResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/UrlLink/WxaQueryUrlLinkResponse.cs index 1446aa5d..7fa422a6 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/UrlLink/WxaQueryUrlLinkResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/Wxa/UrlLink/WxaQueryUrlLinkResponse.cs @@ -42,7 +42,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string? Query { get; set; } /// - /// 获取或设置第三方平台的 AppId。 + /// 获取或设置第三方平台 AppId。 /// [Newtonsoft.Json.JsonProperty("resource_appid")] [System.Text.Json.Serialization.JsonPropertyName("resource_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Comment/WxaApiCommentMpCommentListGetResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Comment/WxaApiCommentMpCommentListGetResponse.cs index 6b0ab880..3f9e9e37 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Comment/WxaApiCommentMpCommentListGetResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaApi/Comment/WxaApiCommentMpCommentListGetResponse.cs @@ -48,7 +48,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public class BusinessInfo { /// - /// 获取或设置小程序的 AppId。 + /// 获取或设置小程序 AppId。 /// [Newtonsoft.Json.JsonProperty("appid")] [System.Text.Json.Serialization.JsonPropertyName("appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Register/WxaGetMpAdminAuthRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Register/WxaGetMpAdminAuthRequest.cs index 85b131f6..9f13b7c3 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Register/WxaGetMpAdminAuthRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Register/WxaGetMpAdminAuthRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/getmpadminauth 接口的请求。 @@ -6,14 +6,14 @@ public class WxaGetMpAdminAuthRequest : WechatApiRequest, IInferable { /// - /// 获取或设置公众号的 AppId。 + /// 获取或设置公众号 AppId。 /// [Newtonsoft.Json.JsonProperty("mp_appid")] [System.Text.Json.Serialization.JsonPropertyName("mp_appid")] public string MediaPlatformAppId { get; set; } = string.Empty; /// - /// 获取或设置公众号的 AppId。 + /// 获取或设置公众号 AppId。 /// [Newtonsoft.Json.JsonProperty("same_admin")] [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalBooleanConverter))] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Register/WxaMpVerifyBetaWeappRequest.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Register/WxaMpVerifyBetaWeappRequest.cs index 375b9494..51b41314 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Register/WxaMpVerifyBetaWeappRequest.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Register/WxaMpVerifyBetaWeappRequest.cs @@ -1,4 +1,4 @@ -namespace SKIT.FlurlHttpClient.Wechat.Api.Models +namespace SKIT.FlurlHttpClient.Wechat.Api.Models { /// /// 表示 [POST] /wxa/mpverifybetaweapp 接口的请求。 @@ -6,7 +6,7 @@ public class WxaMpVerifyBetaWeappRequest : WechatApiRequest, IInferable { /// - /// 获取或设置公众号的 AppId。 + /// 获取或设置公众号 AppId。 /// [Newtonsoft.Json.JsonProperty("mp_appid")] [System.Text.Json.Serialization.JsonPropertyName("mp_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Template/WxaGetTemplateListResponse.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Template/WxaGetTemplateListResponse.cs index c9991793..fd321517 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Template/WxaGetTemplateListResponse.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Models/WxaComponent/Template/WxaGetTemplateListResponse.cs @@ -115,7 +115,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models public string UserDescription { get; set; } = default!; /// - /// 获取或设置开发小程序的 AppId。 + /// 获取或设置开发小程序 AppId。 /// [Newtonsoft.Json.JsonProperty("source_miniprogram_appid")] [System.Text.Json.Serialization.JsonPropertyName("source_miniprogram_appid")] diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/WechatApiClientOptions.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/WechatApiClientOptions.cs index 6615befc..f698ef8b 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/WechatApiClientOptions.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/WechatApiClientOptions.cs @@ -84,7 +84,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api public bool SecureApiEnabled { get; set; } /// - /// 获取或设置 API 安全鉴权模式所使用的 AppId。如果不指定将使用 。 + /// 获取或设置 API 安全鉴权模式所使用 AppId。如果不指定将使用 。 /// public string? SecureApiAppId { get; set; } diff --git a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/WechatTenpayClient.cs b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/WechatTenpayClient.cs index 324266b6..fe4db695 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/WechatTenpayClient.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.TenpayV3/WechatTenpayClient.cs @@ -121,6 +121,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3 where T : WechatTenpayResponse, new() { if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); + if (this is ExtendedSDK.Global.WechatTenpayGlobalClient) throw new InvalidOperationException("This client only supports WeChatPay Global business. Maybe you have misused the client builder or imported a wrong namespaces."); using IFlurlResponse flurlResponse = await base.SendFlurlRequestAsync(flurlRequest, httpContent, cancellationToken).ConfigureAwait(false); return await WrapFlurlResponseAsJsonAsync(flurlResponse, cancellationToken).ConfigureAwait(false); @@ -138,6 +139,7 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3 where T : WechatTenpayResponse, new() { if (flurlRequest is null) throw new ArgumentNullException(nameof(flurlRequest)); + if (this is ExtendedSDK.Global.WechatTenpayGlobalClient) throw new InvalidOperationException("This client only supports WeChatPay Global business. Maybe you have misused the client builder or imported a wrong namespaces."); bool isSimpleRequest = data is null || flurlRequest.Verb == HttpMethod.Get || diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetRequest.json new file mode 100644 index 00000000..620d8085 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetRequest.json @@ -0,0 +1,4 @@ +{ + "order_id": "123", + "sku_id": "12345" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetResponse.json new file mode 100644 index 00000000..e1ee6d80 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueGetResponse.json @@ -0,0 +1,34 @@ +{ + "errcode": 0, + "errmsg": "ok", + "commssion_clue": { + "order_id": "123", + "sku_id": "12345", + "create_time": 1675855175, + "update_time": 1675855217, + "status": 20, + "clue_detail": { + "shop_info": { + "appid": "wxxxx" + }, + "product_info": { + "product_id": "12345", + "thumb_img": "https://test.com/0", + "title": "test_123", + "actual_payment": 100 + }, + "order_info": { + "status": 20 + }, + "sharer_info": { + "sharer_appid": "", + "nickname": "", + "opensharerid": "" + }, + "buyer_info": { + "open_id": "", + "union_id": "" + } + } + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetRequest.json new file mode 100644 index 00000000..a202f749 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetRequest.json @@ -0,0 +1,7 @@ +{ + "page_size": 1, + "create_time_range": { + "start_time": 1676375581, + "end_time": 1676375754 + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetResponse.json new file mode 100644 index 00000000..d808217a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/Clue/ChannelsECLeagueHeadSupplierClueListGetResponse.json @@ -0,0 +1,11 @@ +{ + "errcode": 0, + "errmsg": "ok", + "list": [ + { + "order_id": "123", + "sku_id": "1234" + } + ], + "has_more": true +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse.json new file mode 100644 index 00000000..4fea9454 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECLeague/HeadSupplier/LiveProtection/ChannelsECLeagueHeadSupplierLiveProtectionGetQrcodeResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "qrcode_url": "https://mp.weixin.qq.com/" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListRequest.json new file mode 100644 index 00000000..3ebbc7aa --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListRequest.json @@ -0,0 +1,8 @@ +{ + "next_key": "", + "page_size": 10, + "sharer_appid": "", + "shop_appid": "", + "promoter_id": "", + "promoter_type": 4 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListResponse.json new file mode 100644 index 00000000..adc6950a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetShopMpArticleListResponse.json @@ -0,0 +1,27 @@ +{ + "errcode": 0, + "errmsg": "ok", + "next_key": "", + "has_more": false, + "article_list": [ + { + "product_list": [ + { + "product_id": 123, + "product_name": "name", + "product_img_url": "imag_url", + "predict_commission_amount": 123, + "commission_rate": 400000 + } + ], + "article_info": { + "article_title": "title", + "cover_image": "image", + "article_url": "url", + "promoter_share_link": "promoter_share_link" + }, + "create_time": 1736864136, + "update_time": 1736864136 + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListRequest.json new file mode 100644 index 00000000..dac2cf36 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListRequest.json @@ -0,0 +1,6 @@ +{ + "next_key": "", + "talent_appid": "123123", + "biz_appid": "wx7f48eaxxx", + "page_size": 10 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListResponse.json new file mode 100644 index 00000000..006b3ebb --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Article/ChannelsECPromoterGetTalentMpArticleListResponse.json @@ -0,0 +1,27 @@ +{ + "errcode": 0, + "errmsg": "ok", + "next_key": "", + "has_more": false, + "article_list": [ + { + "product_info_list": [ + { + "product_id": 123, + "product_name": "name", + "product_img_url": "imag_url", + "predict_commission_amount": 123, + "product_mini_price": 590 + } + ], + "article_info": { + "article_title": "title", + "cover_image": "image", + "article_url": "url", + "promoter_share_link": "promoter_share_link" + }, + "create_time": 1736864136, + "update_time": 1736864136 + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListRequest.json new file mode 100644 index 00000000..e6f2e8c2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListRequest.json @@ -0,0 +1,5 @@ +{ + "shop_appid": "需要过滤的店铺appid", + "next_key": "NEXT_KEY", + "page_size": 20 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListResponse.json new file mode 100644 index 00000000..fc730473 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCooperativeCouponListResponse.json @@ -0,0 +1,11 @@ +{ + "errcode": "0", + "errmsg": "ok", + "next_key": "NEW_NEXT_KEY", + "coupons": [ + { + "coupon_id": "1111111" + } + ], + "has_more": true +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailRequest.json new file mode 100644 index 00000000..e1aebba7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailRequest.json @@ -0,0 +1,3 @@ +{ + "coupon_id": "1111111" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailResponse.json new file mode 100644 index 00000000..0c9fc14b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponDetailResponse.json @@ -0,0 +1,34 @@ +{ + "errcode": "0", + "errmsg": "ok", + "coupon": { + "coupon_id": "111111111", + "type": 103, + "status": 5, + "create_time": 1594885385, + "update_time": 1594886327, + "coupon_info": { + "name": "scs", + "discount_info": { + "discount_num": 9900 + }, + "receive_info": { + "end_time": 1673110742, + "limit_num_one_person": 1, + "start_time": 1673110742, + "total_num": 100 + }, + "valid_info": { + "valid_type": 1, + "valid_day_num": 0, + "start_time": 1594828800, + "end_time": 1595433600 + } + }, + "stock_info": { + "issued_num": 95, + "receive_num": 3, + "used_num": 2 + } + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeRequest.json new file mode 100644 index 00000000..10b0459b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeRequest.json @@ -0,0 +1,5 @@ +{ + "coupon_id": "1111111", + "sharer_openid": "推客的当前小程序openid", + "sharer_appid": "推客的appid" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeResponse.json new file mode 100644 index 00000000..03a54917 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponQrcodeResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "qr_code": "QRCODEURL" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkRequest.json new file mode 100644 index 00000000..10b0459b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkRequest.json @@ -0,0 +1,5 @@ +{ + "coupon_id": "1111111", + "sharer_openid": "推客的当前小程序openid", + "sharer_appid": "推客的appid" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkResponse.json new file mode 100644 index 00000000..0284dd72 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetCouponShortLinkResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "short_link": "SHORTLINK" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListRequest.json new file mode 100644 index 00000000..e6f2e8c2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListRequest.json @@ -0,0 +1,5 @@ +{ + "shop_appid": "需要过滤的店铺appid", + "next_key": "NEXT_KEY", + "page_size": 20 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListResponse.json new file mode 100644 index 00000000..fc730473 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Coupon/ChannelsECPromoterGetPublicCouponListResponse.json @@ -0,0 +1,11 @@ +{ + "errcode": "0", + "errmsg": "ok", + "next_key": "NEW_NEXT_KEY", + "coupons": [ + { + "coupon_id": "1111111" + } + ], + "has_more": true +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListRequest.json new file mode 100644 index 00000000..406d6b26 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListRequest.json @@ -0,0 +1,6 @@ +{ + "next_key": "", + "page_size": 10, + "talent_appid": "", + "finder_exportusername": "export/UzFfAgtgek..." +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListResponse.json new file mode 100644 index 00000000..525da693 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedListResponse.json @@ -0,0 +1,19 @@ +{ + "errcode": "0", + "errmsg": "ok", + "has_more": false, + "next_key": "", + "feed_list": [ + { + "export_id": "", + "predict_commission_amount": 123, + "talent_appid": "123", + "product_info": { + "product_id": 1, + "product_name": "", + "product_img_url": "", + "product_mini_price": 0 + } + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoRequest.json new file mode 100644 index 00000000..e2dbd2b7 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoRequest.json @@ -0,0 +1,9 @@ +{ + "feed_list": [ + { + "export_id": "" + } + ], + "mini_program_appid": "123", + "talent_appid": "123" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoResponse.json new file mode 100644 index 00000000..a14f6f62 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetFeedPromotionInfoResponse.json @@ -0,0 +1,11 @@ +{ + "errcode": "0", + "errmsg": "ok", + "feed_list": [ + { + "export_id": "", + "feed_token": "", + "promoter_share_link": "" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListRequest.json new file mode 100644 index 00000000..373dac22 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListRequest.json @@ -0,0 +1,7 @@ +{ + "next_key": "next_key", + "page_size": 1, + "shop_appid": "", + "promoter_id": "", + "promoter_type": 1 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListResponse.json new file mode 100644 index 00000000..6eeb0ea3 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedListResponse.json @@ -0,0 +1,18 @@ +{ + "errcode": "0", + "errmsg": "ok", + "has_more": false, + "next_key": "", + "feed_list": [ + { + "export_id": "", + "predict_commission_amount": 123, + "product_info": { + "product_id": 1, + "product_name": "", + "product_img_url": "", + "product_mini_price": 0 + } + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoRequest.json new file mode 100644 index 00000000..737fe006 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoRequest.json @@ -0,0 +1,11 @@ +{ + "feed_list": [ + { + "export_id": "" + } + ], + "mini_program_appid": "123", + "shop_appid": "", + "promoter_id": "", + "promoter_type": 1 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoResponse.json new file mode 100644 index 00000000..a14f6f62 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Feed/ChannelsECPromoterGetShopFeedPromotionInfoResponse.json @@ -0,0 +1,11 @@ +{ + "errcode": "0", + "errmsg": "ok", + "feed_list": [ + { + "export_id": "", + "feed_token": "", + "promoter_share_link": "" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListRequest.json new file mode 100644 index 00000000..114e7f20 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListRequest.json @@ -0,0 +1,5 @@ +{ + "next_key": "", + "page_size": 10, + "talent_appid": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListResponse.json new file mode 100644 index 00000000..fe90dd88 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveCommissionProductListResponse.json @@ -0,0 +1,15 @@ +{ + "errcode": "0", + "errmsg": "ok", + "has_more": true, + "next_key": "", + "product_list": [ + { + "product_id": 123, + "product_name": "product_name", + "product_img_url": "product_img_url", + "product_price": 123, + "predict_commission_amount": 123 + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListRequest.json new file mode 100644 index 00000000..8fe0cb81 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListRequest.json @@ -0,0 +1,3 @@ +{ + "talent_appid": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListResponse.json new file mode 100644 index 00000000..bc1eb4a9 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordListResponse.json @@ -0,0 +1,11 @@ +{ + "errcode": "0", + "errmsg": "ok", + "live_notice_record_list": [ + { + "notice_id": "export_id", + "description": "description", + "start_time": 123123 + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest.json new file mode 100644 index 00000000..cddb4cab --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeRequest.json @@ -0,0 +1,5 @@ +{ + "talent_appid": "", + "sharer_appid": "", + "notice_id": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse.json new file mode 100644 index 00000000..b5be5ee8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeRecordQrcodeResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "qrcode_url": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoRequest.json new file mode 100644 index 00000000..31531e6b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoRequest.json @@ -0,0 +1,4 @@ +{ + "live_notice_id": "", + "sharer_appid": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoResponse.json new file mode 100644 index 00000000..adb91ded --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveNoticeReservationInfoResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "count": 10 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListRequest.json new file mode 100644 index 00000000..bb098c10 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListRequest.json @@ -0,0 +1,4 @@ +{ + "talent_appid": "", + "mini_program_appid": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListResponse.json new file mode 100644 index 00000000..d5ef5be0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordListResponse.json @@ -0,0 +1,11 @@ +{ + "errcode": "0", + "errmsg": "ok", + "live_record_list": [ + { + "export_id": "export_id", + "description": "description", + "promoter_share_link": "trace_id" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeRequest.json new file mode 100644 index 00000000..c751311b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeRequest.json @@ -0,0 +1,5 @@ +{ + "talent_appid": "", + "sharer_appid": "", + "export_id": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeResponse.json new file mode 100644 index 00000000..b5be5ee8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetLiveRecordQrcodeResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "qrcode_url": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListRequest.json new file mode 100644 index 00000000..95d0f013 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListRequest.json @@ -0,0 +1,7 @@ +{ + "next_key": "", + "page_size": 10, + "shop_appid": "", + "promoter_id": "", + "promoter_type": 1 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListResponse.json new file mode 100644 index 00000000..3a1d85af --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveCommissionProductListResponse.json @@ -0,0 +1,16 @@ +{ + "errcode": "0", + "errmsg": "ok", + "has_more": true, + "next_key": "", + "product_list": [ + { + "product_id": 123, + "product_name": "product_name", + "product_img_url": "product_img_url", + "product_price": 123, + "predict_commission_amount": 123, + "commission_rate": 1000000 + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest.json new file mode 100644 index 00000000..efc12879 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeRequest.json @@ -0,0 +1,7 @@ +{ + "shop_appid": "", + "promoter_id": "", + "promoter_type": 1, + "notice_id": "", + "sharer_appid": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse.json new file mode 100644 index 00000000..b5be5ee8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveNoticeRecordQrcodeResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "qrcode_url": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListRequest.json new file mode 100644 index 00000000..64fc40b4 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListRequest.json @@ -0,0 +1,6 @@ +{ + "shop_appid": "", + "promoter_id": "", + "promoter_type": 1, + "mini_program_appid": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListResponse.json new file mode 100644 index 00000000..d5ef5be0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordListResponse.json @@ -0,0 +1,11 @@ +{ + "errcode": "0", + "errmsg": "ok", + "live_record_list": [ + { + "export_id": "export_id", + "description": "description", + "promoter_share_link": "trace_id" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeRequest.json new file mode 100644 index 00000000..f21e71ef --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeRequest.json @@ -0,0 +1,7 @@ +{ + "shop_appid": "", + "promoter_id": "", + "promoter_type": 1, + "export_id": "", + "sharer_appid": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeResponse.json new file mode 100644 index 00000000..b5be5ee8 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Live/ChannelsECPromoterGetShopLiveRecordQrcodeResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "qrcode_url": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoRequest.json new file mode 100644 index 00000000..e28d31c0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoRequest.json @@ -0,0 +1,5 @@ +{ + "sharer_appid": "appid", + "product_id": 10, + "shop_appid": "appid" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoResponse.json new file mode 100644 index 00000000..75ffc015 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionLinkInfoResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "short_link": "short_link" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoRequest.json new file mode 100644 index 00000000..e28d31c0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoRequest.json @@ -0,0 +1,5 @@ +{ + "sharer_appid": "appid", + "product_id": 10, + "shop_appid": "appid" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoResponse.json new file mode 100644 index 00000000..ef036010 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetProductPromotionQrcodeInfoResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "qrcode_url": "url" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailRequest.json new file mode 100644 index 00000000..2d98860b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailRequest.json @@ -0,0 +1,6 @@ +{ + "shop_appid": "SHOPAPPID", + "product_id": 1, + "plan_type": 1, + "get_available_coupon": false +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailResponse.json new file mode 100644 index 00000000..7ef55a87 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductDetailResponse.json @@ -0,0 +1,47 @@ +{ + "errcode": "0", + "errmsg": "ok", + "product": { + "shop_appid": "test", + "product_id": 12345, + "product_promotion_link": "", + "product_info": { + "title": "test_title", + "sub_title": "", + "head_imgs": [ + "https://test.com/0" + ], + "desc_info": { + "imgs": [ + "https://test.com/0" + ], + "desc": "" + }, + "cats_v2": [ + { + "cat_id": "1421" + } + ], + "skus": [ + { + "sku_id": "670813472", + "thumb_img": "", + "sale_price": 500, + "stock_num": 998, + "sku_attrs": [ + { + "attr_key": "产地", + "attr_value": "四川成都" + } + ] + } + ] + }, + "commission_info": { + "status": 1, + "service_ratio": 1, + "start_time": 1, + "end_time": 1 + } + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListRequest.json new file mode 100644 index 00000000..fb115cae --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListRequest.json @@ -0,0 +1,17 @@ +{ + "next_key": "", + "page_size": 10, + "plan_type": 1, + "category": { + "category_id": "8261345894708739273", + "category_ids_1": [ "1142", "1421", "1453", "1208", "6153", "6472", "1069", "1247" ], + "category_name": "家清日用" + }, + "keyword": "纸巾", + "spu_item_condition": { + "commission_rate_range": { + "max": "100000", + "min": "0" + } + } +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListResponse.json new file mode 100644 index 00000000..5640c392 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoteProductListResponse.json @@ -0,0 +1,11 @@ +{ + "errcode": "0", + "errmsg": "ok", + "product_list": [ + { + "product_id": 1, + "shop_appid": "SHOPAPPID" + } + ], + "next_key": "PAGECONTEXT" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest.json new file mode 100644 index 00000000..e28d31c0 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoRequest.json @@ -0,0 +1,5 @@ +{ + "sharer_appid": "appid", + "product_id": 10, + "shop_appid": "appid" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse.json new file mode 100644 index 00000000..e1089775 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetPromoterSingleProductPromotionInfoResponse.json @@ -0,0 +1,5 @@ +{ + "errcode": "0", + "errmsg": "ok", + "product_promotion_link": "link" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoRequest.json new file mode 100644 index 00000000..01407063 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoRequest.json @@ -0,0 +1,4 @@ +{ + "sharer_appid": "", + "product_id": 1 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoResponse.json new file mode 100644 index 00000000..9d3db2af --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterGetSharerProductCommissionInfoResponse.json @@ -0,0 +1,6 @@ +{ + "errcode": "0", + "errmsg": "ok", + "is_set": true, + "commission_ratio": 10 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoRequest.json new file mode 100644 index 00000000..3d5df2ba --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Product/ChannelsECPromoterSetSharerProductCommissionInfoRequest.json @@ -0,0 +1,5 @@ +{ + "sharer_appid": "", + "product_id": 1, + "commission_ratio": 10 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListRequest.json new file mode 100644 index 00000000..e6e4ebe2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListRequest.json @@ -0,0 +1,6 @@ +{ + "next_key": "", + "page_size": 10, + "sharer_appid": "", + "sharer_openid": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListResponse.json new file mode 100644 index 00000000..2e3b028f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindSharerListResponse.json @@ -0,0 +1,15 @@ +{ + "errcode": "0", + "errmsg": "ok", + "sharer_info_list": [ + { + "sharer_appid": "推客的 appid 内容", + "bind_time": 1624082155, + "commission_ratio": 10000, + "commission_type": 1, + "nickname": "", + "head_img_url": "" + } + ], + "next_key": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListRequest.json new file mode 100644 index 00000000..e42bf37f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListRequest.json @@ -0,0 +1,4 @@ +{ + "next_key": "next_key", + "page_size": 1 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListResponse.json new file mode 100644 index 00000000..d699a322 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopListResponse.json @@ -0,0 +1,14 @@ +{ + "errcode": "0", + "errmsg": "ok", + "has_more": false, + "next_key": "", + "shop_list": [ + { + "shop_appid": "", + "bind_time": 123, + "shop_nickname": "", + "shop_head_img": "" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListRequest.json new file mode 100644 index 00000000..d2a1c2b3 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListRequest.json @@ -0,0 +1,5 @@ +{ + "shop_appid": "", + "next_key": "next_key", + "page_size": 1 +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListResponse.json new file mode 100644 index 00000000..2c53556b --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindShopPromoterListResponse.json @@ -0,0 +1,14 @@ +{ + "errcode": "0", + "errmsg": "ok", + "has_more": false, + "next_key": "", + "promoter_list": [ + { + "promoter_id": "123", + "avatar_image_url": "", + "promoter_type": 1, + "promoter_name": "" + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListRequest.json new file mode 100644 index 00000000..59b2aa5f --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListRequest.json @@ -0,0 +1,5 @@ +{ + "next_key": "next_key", + "page_size": 1, + "talent_appid": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListResponse.json new file mode 100644 index 00000000..944ceb8d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetBindTalentListResponse.json @@ -0,0 +1,16 @@ +{ + "errcode": "0", + "errmsg": "ok", + "has_more": false, + "next_key": "", + "talent_list": [ + { + "talent_appid": "", + "bind_time": 123, + "talent_nickname": "", + "talent_head_img": "", + "related_finder_exportname_list": [ "export/UzFfAgtgek..." ], + "related_mp_biz_appid_list": [ "wx7f48eaxxx", "wx8e36dexxx" ] + } + ] +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest.json new file mode 100644 index 00000000..fc988229 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusRequest.json @@ -0,0 +1,4 @@ +{ + "sharer_openid": "openid", + "is_simple_register": true +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse.json new file mode 100644 index 00000000..81df5e00 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterGetPromoterRegisterAndBindStatusResponse.json @@ -0,0 +1,10 @@ +{ + "errcode": "0", + "errmsg": "ok", + "bind_status": 0, + "register_status": 1, + "register_business_type": "", + "register_query_string": "", + "bind_business_type": "", + "bind_query_string": "" +} diff --git a/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoRequest.json b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoRequest.json new file mode 100644 index 00000000..c464f41a --- /dev/null +++ b/test/SKIT.FlurlHttpClient.Wechat.Api.UnitTests/ModelSamples/Channels/ECPromoter/Sharer/ChannelsECPromoterSetSharerCommissionInfoRequest.json @@ -0,0 +1,5 @@ +{ + "sharer_appid": "", + "commission_type": 1, + "commission_ratio": 10 +}