Repository navigation
Expand file tree
/
Copy pathAgreementAcceptOptions.java
More file actions
124 lines (107 loc) · 3.3 KB
/
Copy pathAgreementAcceptOptions.java
File metadata and controls
124 lines (107 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
package org.databunker.options;
/**
* Agreement accept options class for accepting agreements
*/
public class AgreementAcceptOptions {
private final String agreementmethod;
private final String referencecode;
private final String starttime;
private final String finaltime;
private final String status;
private final String lastmodifiedby;
private AgreementAcceptOptions(Builder builder) {
this.agreementmethod = builder.agreementmethod;
this.referencecode = builder.referencecode;
this.starttime = builder.starttime;
this.finaltime = builder.finaltime;
this.status = builder.status;
this.lastmodifiedby = builder.lastmodifiedby;
}
/**
* Method of agreement (e.g., 'web-form', 'checkbox', 'signature')
* @return The agreement method
*/
public String getAgreementmethod() {
return agreementmethod;
}
/**
* External reference code or identifier for this acceptance
* @return The reference code
*/
public String getReferencecode() {
return referencecode;
}
/**
* Start time of the agreement validity (ISO 8601 format)
* @return The start time
*/
public String getStarttime() {
return starttime;
}
/**
* End time of the agreement validity (ISO 8601 format)
* @return The final time
*/
public String getFinaltime() {
return finaltime;
}
/**
* Status of the agreement (e.g., 'pending', 'active', 'expired')
* @return The status
*/
public String getStatus() {
return status;
}
/**
* Identifier of the person/system that last modified this agreement
* @return The last modified by identifier
*/
public String getLastmodifiedby() {
return lastmodifiedby;
}
/**
* Builder class for AgreementAcceptOptions
*/
public static class Builder {
private String agreementmethod;
private String referencecode;
private String starttime;
private String finaltime;
private String status;
private String lastmodifiedby;
public Builder agreementmethod(String agreementmethod) {
this.agreementmethod = agreementmethod;
return this;
}
public Builder referencecode(String referencecode) {
this.referencecode = referencecode;
return this;
}
public Builder starttime(String starttime) {
this.starttime = starttime;
return this;
}
public Builder finaltime(String finaltime) {
this.finaltime = finaltime;
return this;
}
public Builder status(String status) {
this.status = status;
return this;
}
public Builder lastmodifiedby(String lastmodifiedby) {
this.lastmodifiedby = lastmodifiedby;
return this;
}
public AgreementAcceptOptions build() {
return new AgreementAcceptOptions(this);
}
}
/**
* Creates a new builder for AgreementAcceptOptions
* @return A new builder instance
*/
public static Builder builder() {
return new Builder();
}
}