question

u1 avatar image
u1 asked michaelarrington commented

Employee Shifts

Hi,

How do i add shifts using the Reference object for an employee?

Cant I create a Shift object and set this to the employee?

Please advise on the usage of the Reference object

public Employee setShifts(java.util.List<com.clover.sdk.v3.base.Reference> shifts) {
    return genClient.setArrayRecord(shifts, CacheKey.shifts);
  }
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

michaelarrington avatar image michaelarrington commented ·

In this context, it's essential to understand how the Reference object is intended to be used io games

0 Likes 0 ·

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered Jeffrey Blattman commented

Sorry, that method is not wired up to anything. There is not currently a way to create an employee shift programmtically.

4 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

u1 avatar image u1 commented ·

thats a shame. So are you using Reference as a placeholder for future updates?

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ commented ·

No. The Merchant class is a data model only. So calling any setters on it isn't going to persist anything. You'd expect to see something like EmployeeConnector.add/setShift(). That's how it'd be exposed.

0 Likes 0 ·
jitesh avatar image jitesh Jeffrey Blattman ♦♦ commented ·

Hi Jeffrey how can we get shift of employee

0 Likes 0 ·
Jeffrey Blattman avatar image Jeffrey Blattman ♦♦ jitesh commented ·

See above. You cannot.

0 Likes 0 ·

Welcome to the
Clover Developer Community