Struct jyve::JyveClient
source · pub struct JyveClient {
pub client: Client,
/* private fields */
}
Fields§
§client: Client
Implementations§
source§impl JyveClient
impl JyveClient
source§impl JyveClient
impl JyveClient
pub fn new(url: &str, authentication: JyveAuthentication) -> Self
pub fn with_authentication(self, authentication: JyveAuthentication) -> Self
pub fn with_middleware<M: Middleware + 'static>(self, middleware: M) -> Self
pub fn echo(&self) -> EchoRequest<'_>
sourcepub fn account_device_register_device(
&self
) -> AccountDeviceRegisterDeviceRequest<'_>
pub fn account_device_register_device( &self ) -> AccountDeviceRegisterDeviceRequest<'_>
Use this endpoint to register devices
sourcepub fn account_me_list(&self) -> AccountMeListRequest<'_>
pub fn account_me_list(&self) -> AccountMeListRequest<'_>
Get current user details
sourcepub fn auth_update_user_profile(
&self,
data: UpdatedUser
) -> AuthUpdateUserProfileRequest<'_>
pub fn auth_update_user_profile( &self, data: UpdatedUser ) -> AuthUpdateUserProfileRequest<'_>
Update current user profile
sourcepub fn account_me_lessonly_refresh_list(
&self
) -> AccountMeLessonlyRefreshListRequest<'_>
pub fn account_me_lessonly_refresh_list( &self ) -> AccountMeLessonlyRefreshListRequest<'_>
Refresh User object with lessonly data for that user. Synchronous request to Lessonly API. Eg. lessonly ext uid, lessonly uid. Invoked on client login.
sourcepub fn account_me_lessonly_refresh_create(
&self,
data: CurrentUser
) -> AccountMeLessonlyRefreshCreateRequest<'_>
pub fn account_me_lessonly_refresh_create( &self, data: CurrentUser ) -> AccountMeLessonlyRefreshCreateRequest<'_>
Refresh User object with lessonly data for that user in the background. Asynchronous request to Lessonly API. Eg. lessonly ext uid, lessonly uid.
pub fn account_onboarding_read(&self) -> AccountOnboardingReadRequest<'_>
pub fn account_onboarding_create(&self) -> AccountOnboardingCreateRequest<'_>
sourcepub fn account_onboarding_certification_requirements(
&self
) -> AccountOnboardingCertificationRequirementsRequest<'_>
pub fn account_onboarding_certification_requirements( &self ) -> AccountOnboardingCertificationRequirementsRequest<'_>
Return the certification and requirements for a Skills Demo that best fits the user’s chosen job type and brand.
pub fn account_onboarding_generate_redirect_link( &self ) -> AccountOnboardingGenerateRedirectLinkRequest<'_>
pub fn account_onboarding_generate_stripe_onbaording_link( &self ) -> AccountOnboardingGenerateStripeOnbaordingLinkRequest<'_>
sourcepub fn account_onboarding_job_types(
&self
) -> AccountOnboardingJobTypesRequest<'_>
pub fn account_onboarding_job_types( &self ) -> AccountOnboardingJobTypesRequest<'_>
Return a list of job types that are within 50 miles of the user’s postal code, with title, description and demand (‘high’ or ‘medium’) for each job type.
pub fn account_onboarding_run_background_check( &self ) -> AccountOnboardingRunBackgroundCheckRequest<'_>
sourcepub fn account_onboarding_update_user_ssn(
&self,
data: UserSsnUpdate
) -> AccountOnboardingUpdateUserSsnRequest<'_>
pub fn account_onboarding_update_user_ssn( &self, data: UserSsnUpdate ) -> AccountOnboardingUpdateUserSsnRequest<'_>
update user ssn then run background check
pub fn account_onboarding_step_complete_step( &self, step_id: &str ) -> AccountOnboardingStepCompleteStepRequest<'_>
pub fn account_onboarding_step_rerun_step( &self, step_id: &str ) -> AccountOnboardingStepRerunStepRequest<'_>
sourcepub fn account_onboarding_verify_location_availability(
&self,
data: LocationAvailability
) -> AccountOnboardingVerifyLocationAvailabilityRequest<'_>
pub fn account_onboarding_verify_location_availability( &self, data: LocationAvailability ) -> AccountOnboardingVerifyLocationAvailabilityRequest<'_>
Verify if we are available in user location
sourcepub fn account_opt_out(&self) -> AccountOptOutRequest<'_>
pub fn account_opt_out(&self) -> AccountOptOutRequest<'_>
Allows a user to opt out of jyve, deactivating them. Also allows for the option of opting out of marketing communications
sourcepub fn account_password_create(
&self,
data: PasswordRetype
) -> AccountPasswordCreateRequest<'_>
pub fn account_password_create( &self, data: PasswordRetype ) -> AccountPasswordCreateRequest<'_>
Set a user’s password
sourcepub fn account_password_reset_create(
&self,
data: PasswordReset
) -> AccountPasswordResetCreateRequest<'_>
pub fn account_password_reset_create( &self, data: PasswordReset ) -> AccountPasswordResetCreateRequest<'_>
Send user a password reset email
sourcepub fn account_password_reset_confirm_create(
&self,
data: PasswordResetConfirmRetype
) -> AccountPasswordResetConfirmCreateRequest<'_>
pub fn account_password_reset_confirm_create( &self, data: PasswordResetConfirmRetype ) -> AccountPasswordResetConfirmCreateRequest<'_>
Used to reset password from link sent to user in password reset email
pub fn api_token_auth_create( &self, data: AuthToken ) -> ApiTokenAuthCreateRequest<'_>
pub fn auth_is_valid(&self) -> AuthIsValidRequest<'_>
sourcepub fn auth_login(&self, data: User) -> AuthLoginRequest<'_>
pub fn auth_login(&self, data: User) -> AuthLoginRequest<'_>
Login with this endpoint
sourcepub fn auth_send_mobile_verification(
&self,
data: RequestCode
) -> AuthSendMobileVerificationRequest<'_>
pub fn auth_send_mobile_verification( &self, data: RequestCode ) -> AuthSendMobileVerificationRequest<'_>
Send Sms verification to existing User
sourcepub fn auth_verify_mobile(
&self,
data: VerifyCode
) -> AuthVerifyMobileRequest<'_>
pub fn auth_verify_mobile( &self, data: VerifyCode ) -> AuthVerifyMobileRequest<'_>
Log User In with SMS CODE
sourcepub fn auth_verify_only_mobile(
&self,
data: VerifyCode
) -> AuthVerifyOnlyMobileRequest<'_>
pub fn auth_verify_only_mobile( &self, data: VerifyCode ) -> AuthVerifyOnlyMobileRequest<'_>
Verify Number, You need to be logged in to do this, This is used to update number
sourcepub fn brand_notes_list(&self) -> BrandNotesListRequest<'_>
pub fn brand_notes_list(&self) -> BrandNotesListRequest<'_>
All Brand Notes ViewSet
sourcepub fn brand_notes_create(&self, data: BrandNote) -> BrandNotesCreateRequest<'_>
pub fn brand_notes_create(&self, data: BrandNote) -> BrandNotesCreateRequest<'_>
All Brand Notes ViewSet
sourcepub fn brand_notes_read(&self, id: i64) -> BrandNotesReadRequest<'_>
pub fn brand_notes_read(&self, id: i64) -> BrandNotesReadRequest<'_>
All Brand Notes ViewSet
sourcepub fn brand_notes_update(
&self,
data: BrandNote,
id: i64
) -> BrandNotesUpdateRequest<'_>
pub fn brand_notes_update( &self, data: BrandNote, id: i64 ) -> BrandNotesUpdateRequest<'_>
All Brand Notes ViewSet
sourcepub fn brand_notes_delete(&self, id: i64) -> BrandNotesDeleteRequest<'_>
pub fn brand_notes_delete(&self, id: i64) -> BrandNotesDeleteRequest<'_>
Override DRF’s default destroy/DELETE and replace with archiving
sourcepub fn brand_notes_partial_update(
&self,
data: BrandNotePartialUpdate,
id: i64
) -> BrandNotesPartialUpdateRequest<'_>
pub fn brand_notes_partial_update( &self, data: BrandNotePartialUpdate, id: i64 ) -> BrandNotesPartialUpdateRequest<'_>
All Brand Notes ViewSet
sourcepub fn brands_list(&self) -> BrandsListRequest<'_>
pub fn brands_list(&self) -> BrandsListRequest<'_>
Lists brands
pub fn client_dashboard_backstock_available( &self ) -> ClientDashboardBackstockAvailableRequest<'_>
pub fn client_dashboard_brand_overview( &self ) -> ClientDashboardBrandOverviewRequest<'_>
pub fn client_dashboard_completion_rate( &self ) -> ClientDashboardCompletionRateRequest<'_>
pub fn client_dashboard_export_jobs( &self ) -> ClientDashboardExportJobsRequest<'_>
pub fn client_dashboard_export(&self) -> ClientDashboardExportRequest<'_>
pub fn client_dashboard_ratings(&self) -> ClientDashboardRatingsRequest<'_>
pub fn client_dashboard_mode(&self) -> ClientDashboardModeRequest<'_>
pub fn client_dashboard_stocking(&self) -> ClientDashboardStockingRequest<'_>
pub fn client_dashboard_stores_visited( &self ) -> ClientDashboardStoresVisitedRequest<'_>
sourcepub fn contact_us_create(&self, data: ContactUs) -> ContactUsCreateRequest<'_>
pub fn contact_us_create(&self, data: ContactUs) -> ContactUsCreateRequest<'_>
Creates a job request
__TODO: Add proper error codes to responses__
pub fn credentials_list(&self) -> CredentialsListRequest<'_>
sourcepub fn credentials_list_fulfilled(&self) -> CredentialsListFulfilledRequest<'_>
pub fn credentials_list_fulfilled(&self) -> CredentialsListFulfilledRequest<'_>
/credentials/fulfilled/ids?=
pub fn credentials_read(&self, id: &str) -> CredentialsReadRequest<'_>
sourcepub fn credentials_detail_fulfilled(
&self,
id: &str
) -> CredentialsDetailFulfilledRequest<'_>
pub fn credentials_detail_fulfilled( &self, id: &str ) -> CredentialsDetailFulfilledRequest<'_>
/credentials/
sourcepub fn deliveries_list(&self) -> DeliveriesListRequest<'_>
pub fn deliveries_list(&self) -> DeliveriesListRequest<'_>
Deliveries!
sourcepub fn deliveries_read(&self, id: i64) -> DeliveriesReadRequest<'_>
pub fn deliveries_read(&self, id: i64) -> DeliveriesReadRequest<'_>
Deliveries!
pub fn geo_jyver_density(&self) -> GeoJyverDensityRequest<'_>
pub fn insights_backstock_available( &self ) -> InsightsBackstockAvailableRequest<'_>
pub fn insights_brand_overview(&self) -> InsightsBrandOverviewRequest<'_>
pub fn insights_completion_rate(&self) -> InsightsCompletionRateRequest<'_>
pub fn insights_export_jobs(&self) -> InsightsExportJobsRequest<'_>
pub fn insights_export(&self) -> InsightsExportRequest<'_>
pub fn insights_ratings(&self) -> InsightsRatingsRequest<'_>
pub fn insights_mode(&self) -> InsightsModeRequest<'_>
pub fn insights_stocking(&self) -> InsightsStockingRequest<'_>
pub fn insights_stores_visited(&self) -> InsightsStoresVisitedRequest<'_>
pub fn job_templates_list(&self) -> JobTemplatesListRequest<'_>
pub fn job_templates_read(&self, id: i64) -> JobTemplatesReadRequest<'_>
sourcepub fn jobs_list(&self) -> JobsListRequest<'_>
pub fn jobs_list(&self) -> JobsListRequest<'_>
Returns a list of jobs.
sourcepub fn jobs_list_downgrade_ja(
&self,
data: Job
) -> JobsListDowngradeJaRequest<'_>
pub fn jobs_list_downgrade_ja( &self, data: Job ) -> JobsListDowngradeJaRequest<'_>
All job endpoints
sourcepub fn jobs_generate_jobs(
&self,
data: GenerateJobsInput
) -> JobsGenerateJobsRequest<'_>
pub fn jobs_generate_jobs( &self, data: GenerateJobsInput ) -> JobsGenerateJobsRequest<'_>
Generate jobs for demo
sourcepub fn jobs_list_geo(&self) -> JobsListGeoRequest<'_>
pub fn jobs_list_geo(&self) -> JobsListGeoRequest<'_>
Returns all jobs with
sourcepub fn jobs_request_job_changes_new(
&self,
data: Job
) -> JobsRequestJobChangesNewRequest<'_>
pub fn jobs_request_job_changes_new( &self, data: Job ) -> JobsRequestJobChangesNewRequest<'_>
Makes edits to a job after it has been created.
sourcepub fn jobs_request_job_changes(
&self,
data: Job
) -> JobsRequestJobChangesRequest<'_>
pub fn jobs_request_job_changes( &self, data: Job ) -> JobsRequestJobChangesRequest<'_>
Makes edits to a job after it has been created.
sourcepub fn jobs_request_jobs_new(&self, data: Job) -> JobsRequestJobsNewRequest<'_>
pub fn jobs_request_jobs_new(&self, data: Job) -> JobsRequestJobsNewRequest<'_>
All job endpoints
sourcepub fn jobs_request_jobs(&self, data: Job) -> JobsRequestJobsRequest<'_>
pub fn jobs_request_jobs(&self, data: Job) -> JobsRequestJobsRequest<'_>
Request a new job at a store.
sourcepub fn jobs_list_stats(&self) -> JobsListStatsRequest<'_>
pub fn jobs_list_stats(&self) -> JobsListStatsRequest<'_>
Returns job stats. Takes all same params as the /jobs/ endpoint (plus a few new ones, detailed below) —
sourcepub fn jobs_list_stats2(&self) -> JobsListStats2Request<'_>
pub fn jobs_list_stats2(&self) -> JobsListStats2Request<'_>
All job endpoints
sourcepub fn jobs_list_stats_report(&self) -> JobsListStatsReportRequest<'_>
pub fn jobs_list_stats_report(&self) -> JobsListStatsReportRequest<'_>
All job endpoints
sourcepub fn jobs_list_status(&self) -> JobsListStatusRequest<'_>
pub fn jobs_list_status(&self) -> JobsListStatusRequest<'_>
List statuses jobs can have
sourcepub fn jobs_list_swap(&self, data: Job) -> JobsListSwapRequest<'_>
pub fn jobs_list_swap(&self, data: Job) -> JobsListSwapRequest<'_>
Allows a user to atomically swap a job with another job by unclaiming and then claiming.
TODO(@wesleykendall) - Migrate this to the django-action-framework
once it supports this type of use case.
sourcepub fn jobs_list_types(&self) -> JobsListTypesRequest<'_>
pub fn jobs_list_types(&self) -> JobsListTypesRequest<'_>
List types of jobs
sourcepub fn jobs_list_unreserve(&self, data: Job) -> JobsListUnreserveRequest<'_>
pub fn jobs_list_unreserve(&self, data: Job) -> JobsListUnreserveRequest<'_>
Unreserve jobs in bulk for a single user
sourcepub fn jobs_list_upgrade_to_ja(
&self,
data: Job
) -> JobsListUpgradeToJaRequest<'_>
pub fn jobs_list_upgrade_to_ja( &self, data: Job ) -> JobsListUpgradeToJaRequest<'_>
Upgrade jobs in bulk for a single user
sourcepub fn jobs_read(&self, id: i64) -> JobsReadRequest<'_>
pub fn jobs_read(&self, id: i64) -> JobsReadRequest<'_>
Returns a job.
sourcepub fn jobs_detail_cancel(
&self,
data: Job,
id: i64
) -> JobsDetailCancelRequest<'_>
pub fn jobs_detail_cancel( &self, data: Job, id: i64 ) -> JobsDetailCancelRequest<'_>
All job endpoints
sourcepub fn jobs_detail_complete(
&self,
data: Job,
id: i64
) -> JobsDetailCompleteRequest<'_>
pub fn jobs_detail_complete( &self, data: Job, id: i64 ) -> JobsDetailCompleteRequest<'_>
All job endpoints
sourcepub fn jobs_detail_downgrade_from_jyve_along(
&self,
data: Job,
id: i64
) -> JobsDetailDowngradeFromJyveAlongRequest<'_>
pub fn jobs_detail_downgrade_from_jyve_along( &self, data: Job, id: i64 ) -> JobsDetailDowngradeFromJyveAlongRequest<'_>
All job endpoints
sourcepub fn jobs_detail_report_issue(
&self,
data: Job,
id: i64
) -> JobsDetailReportIssueRequest<'_>
pub fn jobs_detail_report_issue( &self, data: Job, id: i64 ) -> JobsDetailReportIssueRequest<'_>
All job endpoints
sourcepub fn jobs_detail_claim(
&self,
data: Job,
id: i64
) -> JobsDetailClaimRequest<'_>
pub fn jobs_detail_claim( &self, data: Job, id: i64 ) -> JobsDetailClaimRequest<'_>
All job endpoints
sourcepub fn jobs_detail_reset(
&self,
data: Job,
id: i64
) -> JobsDetailResetRequest<'_>
pub fn jobs_detail_reset( &self, data: Job, id: i64 ) -> JobsDetailResetRequest<'_>
All job endpoints
sourcepub fn jobs_detail_self_serve_cancel(
&self,
data: Job,
id: i64
) -> JobsDetailSelfServeCancelRequest<'_>
pub fn jobs_detail_self_serve_cancel( &self, data: Job, id: i64 ) -> JobsDetailSelfServeCancelRequest<'_>
All job endpoints
sourcepub fn jobs_detail_set_eta(
&self,
data: Job,
id: i64
) -> JobsDetailSetEtaRequest<'_>
pub fn jobs_detail_set_eta( &self, data: Job, id: i64 ) -> JobsDetailSetEtaRequest<'_>
All job endpoints
sourcepub fn jobs_detail_start(
&self,
data: Job,
id: i64
) -> JobsDetailStartRequest<'_>
pub fn jobs_detail_start( &self, data: Job, id: i64 ) -> JobsDetailStartRequest<'_>
All job endpoints
sourcepub fn jobs_detail_submit_feedback(
&self,
data: Job,
id: i64
) -> JobsDetailSubmitFeedbackRequest<'_>
pub fn jobs_detail_submit_feedback( &self, data: Job, id: i64 ) -> JobsDetailSubmitFeedbackRequest<'_>
All job endpoints
sourcepub fn jobs_detail_unclaim(
&self,
data: Job,
id: i64
) -> JobsDetailUnclaimRequest<'_>
pub fn jobs_detail_unclaim( &self, data: Job, id: i64 ) -> JobsDetailUnclaimRequest<'_>
All job endpoints
sourcepub fn jobs_detail_upgrade_to_jyve_along(
&self,
data: Job,
id: i64
) -> JobsDetailUpgradeToJyveAlongRequest<'_>
pub fn jobs_detail_upgrade_to_jyve_along( &self, data: Job, id: i64 ) -> JobsDetailUpgradeToJyveAlongRequest<'_>
All job endpoints
pub fn jwt_token_create( &self, data: JyveTokenObtainPair ) -> JwtTokenCreateRequest<'_>
sourcepub fn jwt_token_delete_create(&self) -> JwtTokenDeleteCreateRequest<'_>
pub fn jwt_token_delete_create(&self) -> JwtTokenDeleteCreateRequest<'_>
Deletes httpOnly auth cookies. Used as logout view while using AUTH_COOKIE
sourcepub fn jwt_token_refresh_create(
&self,
data: TokenRefresh
) -> JwtTokenRefreshCreateRequest<'_>
pub fn jwt_token_refresh_create( &self, data: TokenRefresh ) -> JwtTokenRefreshCreateRequest<'_>
Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid.
sourcepub fn jwt_token_verify_create(
&self,
data: TokenVerify
) -> JwtTokenVerifyCreateRequest<'_>
pub fn jwt_token_verify_create( &self, data: TokenVerify ) -> JwtTokenVerifyCreateRequest<'_>
Takes a token and indicates if it is valid. This view provides no information about a token’s fitness for a particular use.
pub fn mobile_sms(&self, data: Sms) -> MobileSmsRequest<'_>
pub fn notifications_list(&self) -> NotificationsListRequest<'_>
sourcepub fn notifications_list_acknowledge(
&self,
data: Notification
) -> NotificationsListAcknowledgeRequest<'_>
pub fn notifications_list_acknowledge( &self, data: Notification ) -> NotificationsListAcknowledgeRequest<'_>
Bulk acknowledge a list of Notifications. request format: { “notifications”: [{ “id”: “288277”, “should_hide”: true/false }, { “id”: “288265” }] }
sourcepub fn notifications_push_notification_acknowledge_action_create(
&self
) -> NotificationsPushNotificationAcknowledgeActionCreateRequest<'_>
pub fn notifications_push_notification_acknowledge_action_create( &self ) -> NotificationsPushNotificationAcknowledgeActionCreateRequest<'_>
Acknowledge a push notification action
sourcepub fn notifications_push_notification_acknowledged_create(
&self
) -> NotificationsPushNotificationAcknowledgedCreateRequest<'_>
pub fn notifications_push_notification_acknowledged_create( &self ) -> NotificationsPushNotificationAcknowledgedCreateRequest<'_>
Acknowledge a push notification
pub fn notifications_read(&self, id: &str) -> NotificationsReadRequest<'_>
sourcepub fn notifications_single_acknowledge(
&self,
data: Notification,
id: &str
) -> NotificationsSingleAcknowledgeRequest<'_>
pub fn notifications_single_acknowledge( &self, data: Notification, id: &str ) -> NotificationsSingleAcknowledgeRequest<'_>
Acknowledge a single Notification and related PushNotification. and set the action_taken_at of related pn’s to now. (previously NotificationActionAcknowledged class) request format: /notifications/{pk}/acknowledge-action/ { “push_notification_id”: “777777”, “action”: “…” }
pub fn payments_list(&self) -> PaymentsListRequest<'_>
sourcepub fn payments_list_daily_earnings(
&self
) -> PaymentsListDailyEarningsRequest<'_>
pub fn payments_list_daily_earnings( &self ) -> PaymentsListDailyEarningsRequest<'_>
Return a list of daily earnings as specified by
sourcepub fn payments_list_weekly_earnings(
&self
) -> PaymentsListWeeklyEarningsRequest<'_>
pub fn payments_list_weekly_earnings( &self ) -> PaymentsListWeeklyEarningsRequest<'_>
Return a list of aggregated weekly earnings grouped by fiscal week/day.
pub fn payments_read(&self, id: i64) -> PaymentsReadRequest<'_>
sourcepub fn payouts_detail_earnings_count(
&self
) -> PayoutsDetailEarningsCountRequest<'_>
pub fn payouts_detail_earnings_count( &self ) -> PayoutsDetailEarningsCountRequest<'_>
Simple workaround for retrieving total earnings payout and ‘count’.
pub fn payouts_list_earnings(&self) -> PayoutsListEarningsRequest<'_>
pub fn products_list(&self) -> ProductsListRequest<'_>
pub fn rating_requests_create( &self, data: RatingRequest ) -> RatingRequestsCreateRequest<'_>
sourcepub fn rating_requests_rate(
&self,
data: RatingRequest
) -> RatingRequestsRateRequest<'_>
pub fn rating_requests_rate( &self, data: RatingRequest ) -> RatingRequestsRateRequest<'_>
Rates an object or updates an existing rating
sourcepub fn rating_requests_read(&self, id: i64) -> RatingRequestsReadRequest<'_>
pub fn rating_requests_read(&self, id: i64) -> RatingRequestsReadRequest<'_>
Gets a rating object that associated with rating request
sourcepub fn ratings_create(&self, data: Rating) -> RatingsCreateRequest<'_>
pub fn ratings_create(&self, data: Rating) -> RatingsCreateRequest<'_>
Rate an brand, job, or user or update existing rating.
sourcepub fn ratings_read(&self, id: i64) -> RatingsReadRequest<'_>
pub fn ratings_read(&self, id: i64) -> RatingsReadRequest<'_>
All ratings endpoints
sourcepub fn referrals_create_fast_track_referral(
&self
) -> ReferralsCreateFastTrackReferralRequest<'_>
pub fn referrals_create_fast_track_referral( &self ) -> ReferralsCreateFastTrackReferralRequest<'_>
Create a fast-track referral, and return the referral code and URL.
sourcepub fn retailer_jobs_kroger(&self) -> RetailerJobsKrogerRequest<'_>
pub fn retailer_jobs_kroger(&self) -> RetailerJobsKrogerRequest<'_>
Job Endpoints for External Clients
sourcepub fn review_responses_list(&self) -> ReviewResponsesListRequest<'_>
pub fn review_responses_list(&self) -> ReviewResponsesListRequest<'_>
Endpoint method which returns the responses belong to a review.
sourcepub fn review_responses_create(
&self,
data: ReviewResponse
) -> ReviewResponsesCreateRequest<'_>
pub fn review_responses_create( &self, data: ReviewResponse ) -> ReviewResponsesCreateRequest<'_>
Review response endpoints.
sourcepub fn review_responses_read(&self, id: i64) -> ReviewResponsesReadRequest<'_>
pub fn review_responses_read(&self, id: i64) -> ReviewResponsesReadRequest<'_>
Review response endpoints.
sourcepub fn reviews_list(&self) -> ReviewsListRequest<'_>
pub fn reviews_list(&self) -> ReviewsListRequest<'_>
Review endpoints.
sourcepub fn reviews_list_status(&self) -> ReviewsListStatusRequest<'_>
pub fn reviews_list_status(&self) -> ReviewsListStatusRequest<'_>
Returns all the statuses a review can have.
sourcepub fn reviews_read(&self, id: i64) -> ReviewsReadRequest<'_>
pub fn reviews_read(&self, id: i64) -> ReviewsReadRequest<'_>
Review endpoints.
sourcepub fn reviews_review_response(
&self,
data: ReviewResponseAction,
id: i64
) -> ReviewsReviewResponseRequest<'_>
pub fn reviews_review_response( &self, data: ReviewResponseAction, id: i64 ) -> ReviewsReviewResponseRequest<'_>
Adds response to a review.
sourcepub fn services_app_vars(&self) -> ServicesAppVarsRequest<'_>
pub fn services_app_vars(&self) -> ServicesAppVarsRequest<'_>
Returns mobile constants
sourcepub fn services_aws_save_image_url_to_task(
&self
) -> ServicesAwsSaveImageUrlToTaskRequest<'_>
pub fn services_aws_save_image_url_to_task( &self ) -> ServicesAwsSaveImageUrlToTaskRequest<'_>
POST hook from S3 Event Notifications when an image is uploaded
sourcepub fn services_s3_task_image_upload_presigned_url_create(
&self,
data: S3Url
) -> ServicesS3TaskImageUploadPresignedUrlCreateRequest<'_>
pub fn services_s3_task_image_upload_presigned_url_create( &self, data: S3Url ) -> ServicesS3TaskImageUploadPresignedUrlCreateRequest<'_>
This endpoint returns a presigned url for uploading a file to S3. Used for uploading images to tasks.
sourcepub fn services_zendesk_post(&self) -> ServicesZendeskPostRequest<'_>
pub fn services_zendesk_post(&self) -> ServicesZendeskPostRequest<'_>
Zendesk push notifications hit this endpoint to send out a push notification of our own to our users
pub fn store_chains_list(&self) -> StoreChainsListRequest<'_>
sourcepub fn store_groups_list(&self) -> StoreGroupsListRequest<'_>
pub fn store_groups_list(&self) -> StoreGroupsListRequest<'_>
Endpoint for retrieving StoreGroups, such as regions/areas/etc.
sourcepub fn store_groups_market_lookup(&self) -> StoreGroupsMarketLookupRequest<'_>
pub fn store_groups_market_lookup(&self) -> StoreGroupsMarketLookupRequest<'_>
request url format: ‘../store_groups/market_lookup/?postal_code=98012’ postal_code query param is required here.
Given a postal code, returns most likely StoreGroup area,
StoreGroup market,and city associations. If no
likely market/city from our records, return the
default market and use Google geocode api to get likely city.
Uses PostalCode model.
Using list route here because although only one StoreGroup is
expected, detail_route is for urls with model ids and this is more
of a filtered set - trying to keep it RESTful.
sourcepub fn store_groups_read(&self, id: i64) -> StoreGroupsReadRequest<'_>
pub fn store_groups_read(&self, id: i64) -> StoreGroupsReadRequest<'_>
Endpoint for retrieving StoreGroups, such as regions/areas/etc.
sourcepub fn stores_list(&self) -> StoresListRequest<'_>
pub fn stores_list(&self) -> StoresListRequest<'_>
Returns a list of stores.
All query params that accept times accept 'now', 'midnight',
'midnight_tomorrow', and datetime str that can be understood
by arrow.get(datetime_str).
sourcepub fn stores_filters_list_filters_achievements(
&self
) -> StoresFiltersListFiltersAchievementsRequest<'_>
pub fn stores_filters_list_filters_achievements( &self ) -> StoresFiltersListFiltersAchievementsRequest<'_>
Filter the available jobs by achievements
sourcepub fn stores_filters_list_filters_brands(
&self
) -> StoresFiltersListFiltersBrandsRequest<'_>
pub fn stores_filters_list_filters_brands( &self ) -> StoresFiltersListFiltersBrandsRequest<'_>
Filter the available jobs by brands
sourcepub fn stores_list_stats(&self) -> StoresListStatsRequest<'_>
pub fn stores_list_stats(&self) -> StoresListStatsRequest<'_>
Store stats
sourcepub fn stores_read(&self, id: i64) -> StoresReadRequest<'_>
pub fn stores_read(&self, id: i64) -> StoresReadRequest<'_>
Returns a single store.
sourcepub fn tasks_list(&self) -> TasksListRequest<'_>
pub fn tasks_list(&self) -> TasksListRequest<'_>
Lists tasks
sourcepub fn tasks_list_stats(&self) -> TasksListStatsRequest<'_>
pub fn tasks_list_stats(&self) -> TasksListStatsRequest<'_>
Returns task stats. Takes all same params as the /tasks/ endpoint (plus a few new ones, detailed below) —
sourcepub fn tasks_read(&self, id: i64) -> TasksReadRequest<'_>
pub fn tasks_read(&self, id: i64) -> TasksReadRequest<'_>
Gets a task
sourcepub fn tasks_detail_complete(
&self,
data: Task,
id: i64
) -> TasksDetailCompleteRequest<'_>
pub fn tasks_detail_complete( &self, data: Task, id: i64 ) -> TasksDetailCompleteRequest<'_>
Completes a Task
sourcepub fn tasks_detail_reset(
&self,
data: Task,
id: i64
) -> TasksDetailResetRequest<'_>
pub fn tasks_detail_reset( &self, data: Task, id: i64 ) -> TasksDetailResetRequest<'_>
All task endpoints
sourcepub fn tos_list(&self) -> TosListRequest<'_>
pub fn tos_list(&self) -> TosListRequest<'_>
TOS endpoints
sourcepub fn tos_agree(&self, data: Tos) -> TosAgreeRequest<'_>
pub fn tos_agree(&self, data: Tos) -> TosAgreeRequest<'_>
TOS endpoints
sourcepub fn tos_current(&self) -> TosCurrentRequest<'_>
pub fn tos_current(&self) -> TosCurrentRequest<'_>
TOS endpoints
sourcepub fn tos_read(&self, id: i64) -> TosReadRequest<'_>
pub fn tos_read(&self, id: i64) -> TosReadRequest<'_>
TOS endpoints
sourcepub fn detail(&self, data: Tos) -> DetailRequest<'_>
pub fn detail(&self, data: Tos) -> DetailRequest<'_>
TOS endpoints
sourcepub fn users_list(&self) -> UsersListRequest<'_>
pub fn users_list(&self) -> UsersListRequest<'_>
All Users Viewset
sourcepub fn users_list_jyvers(&self) -> UsersListJyversRequest<'_>
pub fn users_list_jyvers(&self) -> UsersListJyversRequest<'_>
All Users Viewset
sourcepub fn users_list_market_managers(&self) -> UsersListMarketManagersRequest<'_>
pub fn users_list_market_managers(&self) -> UsersListMarketManagersRequest<'_>
All Users Viewset
sourcepub fn verify_code_list(&self) -> VerifyCodeListRequest<'_>
pub fn verify_code_list(&self) -> VerifyCodeListRequest<'_>
Use this endpoint to verify a variety of different codes. Currently, only referral codes are supported.