2626/** AffirmDetails */
2727@ JsonPropertyOrder ({
2828 AffirmDetails .JSON_PROPERTY_CHECKOUT_ATTEMPT_ID ,
29+ AffirmDetails .JSON_PROPERTY_FINANCING_PROGRAM ,
2930 AffirmDetails .JSON_PROPERTY_SDK_DATA ,
3031 AffirmDetails .JSON_PROPERTY_TYPE
3132})
@@ -36,6 +37,12 @@ public class AffirmDetails {
3637 /** Mark when the attribute has been explicitly set. */
3738 private boolean isSetCheckoutAttemptId = false ;
3839
40+ public static final String JSON_PROPERTY_FINANCING_PROGRAM = "financingProgram" ;
41+ private String financingProgram ;
42+
43+ /** Mark when the attribute has been explicitly set. */
44+ private boolean isSetFinancingProgram = false ;
45+
3946 public static final String JSON_PROPERTY_SDK_DATA = "sdkData" ;
4047 private String sdkData ;
4148
@@ -130,6 +137,41 @@ public void setCheckoutAttemptId(String checkoutAttemptId) {
130137 isSetCheckoutAttemptId = true ; // mark as set
131138 }
132139
140+ /**
141+ * The Affirm financing program to apply to this transaction.
142+ *
143+ * @param financingProgram The Affirm financing program to apply to this transaction.
144+ * @return the current {@code AffirmDetails} instance, allowing for method chaining
145+ */
146+ public AffirmDetails financingProgram (String financingProgram ) {
147+ this .financingProgram = financingProgram ;
148+ isSetFinancingProgram = true ; // mark as set
149+ return this ;
150+ }
151+
152+ /**
153+ * The Affirm financing program to apply to this transaction.
154+ *
155+ * @return financingProgram The Affirm financing program to apply to this transaction.
156+ */
157+ @ JsonProperty (JSON_PROPERTY_FINANCING_PROGRAM )
158+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
159+ public String getFinancingProgram () {
160+ return financingProgram ;
161+ }
162+
163+ /**
164+ * The Affirm financing program to apply to this transaction.
165+ *
166+ * @param financingProgram The Affirm financing program to apply to this transaction.
167+ */
168+ @ JsonProperty (JSON_PROPERTY_FINANCING_PROGRAM )
169+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
170+ public void setFinancingProgram (String financingProgram ) {
171+ this .financingProgram = financingProgram ;
172+ isSetFinancingProgram = true ; // mark as set
173+ }
174+
133175 /**
134176 * Base64-encoded JSON object containing SDK related parameters required by the SDK
135177 *
@@ -233,6 +275,8 @@ public boolean equals(Object o) {
233275 AffirmDetails affirmDetails = (AffirmDetails ) o ;
234276 return Objects .equals (this .checkoutAttemptId , affirmDetails .checkoutAttemptId )
235277 && Objects .equals (this .isSetCheckoutAttemptId , affirmDetails .isSetCheckoutAttemptId )
278+ && Objects .equals (this .financingProgram , affirmDetails .financingProgram )
279+ && Objects .equals (this .isSetFinancingProgram , affirmDetails .isSetFinancingProgram )
236280 && Objects .equals (this .sdkData , affirmDetails .sdkData )
237281 && Objects .equals (this .isSetSdkData , affirmDetails .isSetSdkData )
238282 && Objects .equals (this .type , affirmDetails .type )
@@ -242,14 +286,22 @@ public boolean equals(Object o) {
242286 @ Override
243287 public int hashCode () {
244288 return Objects .hash (
245- checkoutAttemptId , isSetCheckoutAttemptId , sdkData , isSetSdkData , type , isSetType );
289+ checkoutAttemptId ,
290+ isSetCheckoutAttemptId ,
291+ financingProgram ,
292+ isSetFinancingProgram ,
293+ sdkData ,
294+ isSetSdkData ,
295+ type ,
296+ isSetType );
246297 }
247298
248299 @ Override
249300 public String toString () {
250301 StringBuilder sb = new StringBuilder ();
251302 sb .append ("class AffirmDetails {\n " );
252303 sb .append (" checkoutAttemptId: " ).append (toIndentedString (checkoutAttemptId )).append ("\n " );
304+ sb .append (" financingProgram: " ).append (toIndentedString (financingProgram )).append ("\n " );
253305 sb .append (" sdkData: " ).append (toIndentedString (sdkData )).append ("\n " );
254306 sb .append (" type: " ).append (toIndentedString (type )).append ("\n " );
255307 sb .append ("}" );
@@ -279,6 +331,9 @@ public Map<String, Object> getExplicitNulls() {
279331 if (isSetCheckoutAttemptId ) {
280332 addIfNull (nulls , JSON_PROPERTY_CHECKOUT_ATTEMPT_ID , this .checkoutAttemptId );
281333 }
334+ if (isSetFinancingProgram ) {
335+ addIfNull (nulls , JSON_PROPERTY_FINANCING_PROGRAM , this .financingProgram );
336+ }
282337 if (isSetSdkData ) {
283338 addIfNull (nulls , JSON_PROPERTY_SDK_DATA , this .sdkData );
284339 }
0 commit comments