@@ -3,7 +3,6 @@ package kr.co.bootpay
33import android.app.DialogFragment
44import android.app.FragmentManager
55import android.content.DialogInterface
6- import android.content.res.Configuration
76import android.os.Bundle
87import android.support.annotation.IntRange
98import android.view.LayoutInflater
@@ -13,18 +12,13 @@ import kr.co.bootpay.enums.Area
1312
1413import org.json.JSONObject
1514
16- import java.lang.ref.WeakReference
1715import kr.co.bootpay.enums.Method
1816import kr.co.bootpay.enums.PG
1917import kr.co.bootpay.model.Item
2018import kr.co.bootpay.model.Request
2119import kr.co.bootpay.model.Trace
2220import kr.co.bootpay.model.UserData
2321
24- // import kr.co.bootpay.model.Trace
25- // import kr.co.bootpay.model.UserData
26-
27-
2822class PaymentDialog
2923/* * @see Builder */
3024@Deprecated(" " )
@@ -221,107 +215,107 @@ constructor()// not allowed
221215 return this
222216 }
223217
224- fun setPageType (pageType : String ): Builder {
225- if (trace == null ) trace = Trace ()
226- trace!! .setPageType(pageType)
227- return this
228- }
229-
230- fun setMainCategory (category : String ): Builder {
231- if (trace == null ) trace = Trace ()
232- trace!! .setMainCategory(category)
233- return this
234- }
235-
236- fun setMiddleCategory (category : String ): Builder {
237- if (trace == null ) trace = Trace ()
238- trace!! .setMiddleCategory(category)
239- return this
240- }
241-
242- fun setSubCategory (category : String ): Builder {
243- if (trace == null ) trace = Trace ()
244- trace!! .setSubCategory(category)
245- return this
246- }
247-
248- fun setItemImage (imageUrl : String ): Builder {
249- if (trace == null ) trace = Trace ()
250- trace!! .setItemImage(imageUrl)
251- return this
252- }
253-
254- fun setItemName (itemName : String ): Builder {
255- if (trace == null ) trace = Trace ()
256- trace!! .setItemName(itemName)
257- return this
258- }
259-
260- fun setUniqueKey (uniqueKey : String ): Builder {
261- if (trace == null ) trace = Trace ()
262- trace!! .setItemUnique(uniqueKey)
263- return this
264- }
265-
266- fun setUserID (userID : String ): Builder {
267- if (user == null ) user = UserData ()
268- user!! .setUserID(userID)
269- return this
270- }
271-
272- fun setUserName (userName : String ): Builder {
273- if (user == null ) user = UserData ()
274- user!! .setUserName(userName)
275- return this
276- }
277-
278- fun setUserBirth (userBirth : Date ): Builder {
279- if (user == null ) user = UserData ()
280- user!! .setUserBirth(String .format(Locale .getDefault(), " %d-%d-%d" , userBirth.year, userBirth.month + 1 , userBirth.day))
281- return this
282- }
283-
284- fun setUserBirth (@IntRange(from = 1900 , to = 2100 ) year : Int , @IntRange(from = 1 , to = 12 ) month : Int , @IntRange(from = 1 , to = 31 ) day : Int ): Builder {
285- if (user == null ) user = UserData ()
286- user!! .setUserBirth(String .format(Locale .getDefault(), " %d-%d-%d" , year, month, day))
287- return this
288- }
289-
290- fun setUserGender (userGender : Gender ): Builder {
291- if (user == null ) user = UserData ()
292- user!! .setUserGender(if (userGender == = Gender .MALE ) 1 else 0 )
293- return this
294- }
295-
296- fun setUserArea (userArea : String ): Builder {
297- if (user == null ) user = UserData ()
298- user!! .setUserArea(userArea)
299- return this
300- }
301-
302- fun setUserArea (userArea : Area ): Builder {
303- if (user == null ) user = UserData ()
304- user?.setUserArea(when (userArea) {
305- Area .SEOUL -> " 서울"
306- Area .INCHEON -> " 인천"
307- Area .DAEKU -> " 대구"
308- Area .DEAJEON -> " 대전"
309- Area .GWANGJU -> " 광주"
310- Area .BUSAN -> " 부산"
311- Area .ULSAN -> " 울산"
312- Area .GYEONGGI -> " 경기"
313- Area .GANGWON -> " 강원"
314- Area .CHUNGBUK -> " 충북"
315- Area .CHUNGNAM -> " 충남"
316- Area .JEONBUK -> " 전북"
317- Area .JEONNAM -> " 전남"
318- Area .GYEONGBUK -> " 경북"
319- Area .GYEONGNAM -> " 경남"
320- Area .JEJU -> " 제주"
321- Area .SEJONG -> " 세종"
322- })
323- return this
324- }
218+ // fun setPageType(pageType: String): Builder {
219+ // if (trace == null) trace = Trace()
220+ // trace!!.setPageType(pageType)
221+ // return this
222+ // }
223+ //
224+ // fun setMainCategory(category: String): Builder {
225+ // if (trace == null) trace = Trace()
226+ // trace!!.setMainCategory(category)
227+ // return this
228+ // }
229+ //
230+ // fun setMiddleCategory(category: String): Builder {
231+ // if (trace == null) trace = Trace()
232+ // trace!!.setMiddleCategory(category)
233+ // return this
234+ // }
235+ //
236+ // fun setSubCategory(category: String): Builder {
237+ // if (trace == null) trace = Trace()
238+ // trace!!.setSubCategory(category)
239+ // return this
240+ // }
241+ //
242+ // fun setItemImage(imageUrl: String): Builder {
243+ // if (trace == null) trace = Trace()
244+ // trace!!.setItemImage(imageUrl)
245+ // return this
246+ // }
247+ //
248+ // fun setItemName(itemName: String): Builder {
249+ // if (trace == null) trace = Trace()
250+ // trace!!.setItemName(itemName)
251+ // return this
252+ // }
253+ //
254+ // fun setUniqueKey(uniqueKey: String): Builder {
255+ // if (trace == null) trace = Trace()
256+ // trace!!.setItemUnique(uniqueKey)
257+ // return this
258+ // }
259+ //
260+ // fun setUserID(userID: String): Builder {
261+ // if (user == null) user = UserData()
262+ // user!!.setUserID(userID)
263+ // return this
264+ // }
265+ //
266+ // fun setUserName(userName: String): Builder {
267+ // if (user == null) user = UserData()
268+ // user!!.setUserName(userName)
269+ // return this
270+ // }
271+ //
272+ // fun setUserBirth(userBirth: Date): Builder {
273+ // if (user == null) user = UserData()
274+ // user!!.setUserBirth(String.format(Locale.getDefault(), "%d-%d-%d", userBirth.year, userBirth.month + 1, userBirth.day))
275+ // return this
276+ // }
277+ //
278+ // fun setUserBirth(@IntRange(from = 1900, to = 2100) year: Int, @IntRange(from = 1, to = 12) month: Int, @IntRange(from = 1, to = 31) day: Int): Builder {
279+ // if (user == null) user = UserData()
280+ // user!!.setUserBirth(String.format(Locale.getDefault(), "%d-%d-%d", year, month, day))
281+ // return this
282+ // }
283+ //
284+ // fun setUserGender(userGender: Gender): Builder {
285+ // if (user == null) user = UserData()
286+ // user!!.setUserGender(if (userGender === Gender.MALE) 1 else 0)
287+ // return this
288+ // }
289+ //
290+ // fun setUserArea(userArea: String): Builder {
291+ // if (user == null) user = UserData()
292+ // user!!.setUserArea(userArea)
293+ // return this
294+ // }
295+ //
296+ // fun setUserArea(userArea: Area): Builder {
297+ // if (user == null) user = UserData()
298+ // user?.setUserArea(when (userArea) {
299+ // Area.SEOUL -> "서울"
300+ // Area.INCHEON -> "인천"
301+ // Area.DAEKU -> "대구"
302+ // Area.DEAJEON -> "대전"
303+ // Area.GWANGJU -> "광주"
304+ // Area.BUSAN -> "부산"
305+ // Area.ULSAN -> "울산"
306+ // Area.GYEONGGI -> "경기"
307+ // Area.GANGWON -> "강원"
308+ // Area.CHUNGBUK -> "충북"
309+ // Area.CHUNGNAM -> "충남"
310+ // Area.JEONBUK -> "전북"
311+ // Area.JEONNAM -> "전남"
312+ // Area.GYEONGBUK -> "경북"
313+ // Area.GYEONGNAM -> "경남"
314+ // Area.JEJU -> "제주"
315+ // Area.SEJONG -> "세종"
316+ // })
317+ // return this
318+ // }
325319
326320 /* *
327321 * Must have value:
0 commit comments