@@ -25,6 +25,12 @@ public final class BootExtra {
2525 private int escrow = 0 ; // 에스크로 쓸지 안쓸지
2626 private int popup = -1 ; //1이면 popup, 아니면 iframe 연동
2727 private int quick_popup = -1 ; //1: popup 호출시 버튼을 띄우지 않는다. 아닐 경우 버튼을 호출한다
28+ private String offer_period ; //결제창 제공기간에 해당하는 string 값, 지원하는 PG만 적용됨
29+
30+ private String theme = "purple" ; // 통합 결제창 색상 지정 (purple, red, custom 지정 가능 )
31+ private String custom_background = "" ; // theme가 custom인 경우 배경 색 지정 가능 ( ex: #f2f2f2 )
32+ private String custom_font_color = "" ; // theme가 custom인 경우 폰트색 지정 가능 ( ex: #333333 )
33+
2834
2935
3036 public final String getApp_scheme () {
@@ -180,6 +186,10 @@ public final String toJson() {
180186 appScheme (),
181187 dispCashResult (),
182188 escrow (),
189+ offer_period (),
190+ theme (),
191+ custom_background (),
192+ custom_font_color (),
183193 oneStore ()
184194 );
185195 }
@@ -230,4 +240,44 @@ public final BootExtra setQuick_popup(int quick_popup) {
230240 this .quick_popup = quick_popup ;
231241 return this ;
232242 }
243+
244+ public String offer_period () {
245+ if (this .offer_period == null ) return "" ;
246+ return String .format (Locale .KOREA , "offer_period: '%s'" , this .offer_period );
247+ }
248+
249+ public final BootExtra setOffer_period (String offer_period ) {
250+ this .offer_period = offer_period ;
251+ return this ;
252+ }
253+
254+ public final BootExtra setTheme (String theme ) {
255+ this .theme = theme ;
256+ return this ;
257+ }
258+
259+ public final BootExtra setCustom_background (String custom_background ) {
260+ this .custom_background = custom_background ;
261+ return this ;
262+ }
263+
264+ public final BootExtra setCustom_font_color (String custom_font_color ) {
265+ this .custom_font_color = custom_font_color ;
266+ return this ;
267+ }
268+
269+ public String theme () {
270+ if (this .theme == null ) return "" ;
271+ return String .format (Locale .KOREA , "theme: '%s'" , this .theme );
272+ }
273+
274+ public String custom_background () {
275+ if (this .custom_background == null ) return "" ;
276+ return String .format (Locale .KOREA , "custom_background: '%s'" , this .custom_background );
277+ }
278+
279+ public String custom_font_color () {
280+ if (this .custom_font_color == null ) return "" ;
281+ return String .format (Locale .KOREA , "custom_font_color: '%s'" , this .custom_font_color );
282+ }
233283}
0 commit comments