-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
188 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 40 additions & 40 deletions
80
Examples/UIKit-Objc-Example/Widget/DefaultWidgetPaymentInfo.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
|
||
// | ||
// DefaultWidgetPaymentInfo.h | ||
// UIKit-Objc-Example | ||
//// | ||
//// DefaultWidgetPaymentInfo.h | ||
//// UIKit-Objc-Example | ||
//// | ||
//// Created by 김진규 on 2023/12/14. | ||
//// Copyright © 2023 TossPayments, Inc. All rights reserved. | ||
//// | ||
// | ||
// Created by 김진규 on 2023/12/14. | ||
// Copyright © 2023 TossPayments, Inc. All rights reserved. | ||
//#import <UIKit/UIKit.h> | ||
//#import <TossPayments/TossPayments-Swift.h> | ||
// | ||
//@interface DefaultWidgetPaymentInfo: NSObject <WidgetPaymentInfo> | ||
// | ||
//@property (nonatomic, readonly, nonnull) NSString *orderId; | ||
//@property (nonatomic, readonly, nonnull) NSString *orderName; | ||
//@property (nonatomic, readonly, nullable) NSString *taxExemptionAmount; | ||
//@property (nonatomic, readonly, nullable) NSString *appScheme; | ||
//@property (nonatomic, readonly, nullable) NSString *customerName; | ||
//@property (nonatomic, readonly, nullable) NSString *customerEmail; | ||
//@property (nonatomic, readonly, nullable) NSNumber *taxFreeAmount; | ||
//@property (nonatomic, readonly) BOOL cultureExpense; | ||
//@property (nonatomic, readonly, nullable) NSString *customerMobilePhone; | ||
//@property (nonatomic, readonly, nullable) NSString *showCustomerMobilePhone; | ||
//@property (nonatomic, readonly, nullable) NSNumber *useEscrow; | ||
//@property (nonatomic, readonly, nullable) NSArray<NSString *> *escrowProducts; | ||
//@property (nonatomic, readonly, nullable) NSString *mobileCarrier; | ||
// | ||
//- (instancetype _Nonnull)initWithOrderId:(nonnull NSString *)orderId | ||
// orderName:(nonnull NSString *)orderName | ||
// taxExemptionAmount:(nullable NSString *)taxExemptionAmount | ||
// appScheme:(nullable NSString *)appScheme | ||
// customerName:(nullable NSString *)customerName | ||
// customerEmail:(nullable NSString *)customerEmail | ||
// taxFreeAmount:(nullable NSNumber *)taxFreeAmount | ||
// cultureExpense:(BOOL)cultureExpense | ||
// customerMobilePhone:(nullable NSString *)customerMobilePhone | ||
// showCustomerMobilePhone:(nullable NSString *)showCustomerMobilePhone | ||
// useEscrow:(nullable NSNumber *)useEscrow | ||
// escrowProducts:(nullable NSArray<NSString *> *)escrowProducts | ||
// mobileCarrier:(nullable NSString *)mobileCarrier; | ||
//@end | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
#import <TossPayments/TossPayments-Swift.h> | ||
|
||
@interface DefaultWidgetPaymentInfo: NSObject <WidgetPaymentInfo> | ||
|
||
@property (nonatomic, readonly, nonnull) NSString *orderId; | ||
@property (nonatomic, readonly, nonnull) NSString *orderName; | ||
@property (nonatomic, readonly, nullable) NSString *taxExemptionAmount; | ||
@property (nonatomic, readonly, nullable) NSString *appScheme; | ||
@property (nonatomic, readonly, nullable) NSString *customerName; | ||
@property (nonatomic, readonly, nullable) NSString *customerEmail; | ||
@property (nonatomic, readonly, nullable) NSNumber *taxFreeAmount; | ||
@property (nonatomic, readonly) BOOL cultureExpense; | ||
@property (nonatomic, readonly, nullable) NSString *customerMobilePhone; | ||
@property (nonatomic, readonly, nullable) NSString *showCustomerMobilePhone; | ||
@property (nonatomic, readonly, nullable) NSNumber *useEscrow; | ||
@property (nonatomic, readonly, nullable) NSArray<NSString *> *escrowProducts; | ||
@property (nonatomic, readonly, nullable) NSString *mobileCarrier; | ||
|
||
- (instancetype _Nonnull)initWithOrderId:(nonnull NSString *)orderId | ||
orderName:(nonnull NSString *)orderName | ||
taxExemptionAmount:(nullable NSString *)taxExemptionAmount | ||
appScheme:(nullable NSString *)appScheme | ||
customerName:(nullable NSString *)customerName | ||
customerEmail:(nullable NSString *)customerEmail | ||
taxFreeAmount:(nullable NSNumber *)taxFreeAmount | ||
cultureExpense:(BOOL)cultureExpense | ||
customerMobilePhone:(nullable NSString *)customerMobilePhone | ||
showCustomerMobilePhone:(nullable NSString *)showCustomerMobilePhone | ||
useEscrow:(nullable NSNumber *)useEscrow | ||
escrowProducts:(nullable NSArray<NSString *> *)escrowProducts | ||
mobileCarrier:(nullable NSString *)mobileCarrier; | ||
@end | ||
|
94 changes: 47 additions & 47 deletions
94
Examples/UIKit-Objc-Example/Widget/DefaultWidgetPaymentInfo.m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
//// | ||
//// DefaultWidgetPaymentInfo.m | ||
//// UIKit-Objc-Example | ||
//// | ||
//// Created by 김진규 on 2023/12/15. | ||
//// Copyright © 2023 TossPayments, Inc. All rights reserved. | ||
//// | ||
// | ||
// DefaultWidgetPaymentInfo.m | ||
// UIKit-Objc-Example | ||
//#import <Foundation/Foundation.h> | ||
//#import "DefaultWidgetPaymentInfo.h" | ||
// | ||
// Created by 김진규 on 2023/12/15. | ||
// Copyright © 2023 TossPayments, Inc. All rights reserved. | ||
//@interface DefaultWidgetPaymentInfo () | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import "DefaultWidgetPaymentInfo.h" | ||
|
||
@interface DefaultWidgetPaymentInfo () | ||
|
||
@end | ||
|
||
@implementation DefaultWidgetPaymentInfo | ||
|
||
- (instancetype)initWithOrderId:(NSString *)orderId | ||
orderName:(NSString *)orderName | ||
taxExemptionAmount:(nullable NSString *)taxExemptionAmount | ||
appScheme:(nullable NSString *)appScheme | ||
customerName:(nullable NSString *)customerName | ||
customerEmail:(nullable NSString *)customerEmail | ||
taxFreeAmount:(nullable NSNumber *)taxFreeAmount | ||
cultureExpense:(BOOL)cultureExpense | ||
customerMobilePhone:(nullable NSString *)customerMobilePhone | ||
showCustomerMobilePhone:(nullable NSString *)showCustomerMobilePhone | ||
useEscrow:(nullable NSNumber *)useEscrow | ||
escrowProducts:(nullable NSArray<NSString *> *)escrowProducts | ||
mobileCarrier:(nullable NSString *)mobileCarrier { | ||
self = [super init]; | ||
if (self) { | ||
_orderId = orderId; | ||
_orderName = orderName; | ||
_taxExemptionAmount = taxExemptionAmount; | ||
_appScheme = appScheme; | ||
_customerName = customerName; | ||
_customerEmail = customerEmail; | ||
_taxFreeAmount = taxFreeAmount; | ||
_cultureExpense = cultureExpense; | ||
_customerMobilePhone = customerMobilePhone; | ||
_showCustomerMobilePhone = showCustomerMobilePhone; | ||
_useEscrow = useEscrow; | ||
_escrowProducts = escrowProducts; | ||
_mobileCarrier = mobileCarrier; | ||
} | ||
return self; | ||
} | ||
|
||
@end | ||
//@end | ||
// | ||
//@implementation DefaultWidgetPaymentInfo | ||
// | ||
//- (instancetype)initWithOrderId:(NSString *)orderId | ||
// orderName:(NSString *)orderName | ||
// taxExemptionAmount:(nullable NSString *)taxExemptionAmount | ||
// appScheme:(nullable NSString *)appScheme | ||
// customerName:(nullable NSString *)customerName | ||
// customerEmail:(nullable NSString *)customerEmail | ||
// taxFreeAmount:(nullable NSNumber *)taxFreeAmount | ||
// cultureExpense:(BOOL)cultureExpense | ||
// customerMobilePhone:(nullable NSString *)customerMobilePhone | ||
// showCustomerMobilePhone:(nullable NSString *)showCustomerMobilePhone | ||
// useEscrow:(nullable NSNumber *)useEscrow | ||
// escrowProducts:(nullable NSArray<NSString *> *)escrowProducts | ||
// mobileCarrier:(nullable NSString *)mobileCarrier { | ||
// self = [super init]; | ||
// if (self) { | ||
// _orderId = orderId; | ||
// _orderName = orderName; | ||
// _taxExemptionAmount = taxExemptionAmount; | ||
// _appScheme = appScheme; | ||
// _customerName = customerName; | ||
// _customerEmail = customerEmail; | ||
// _taxFreeAmount = taxFreeAmount; | ||
// _cultureExpense = cultureExpense; | ||
// _customerMobilePhone = customerMobilePhone; | ||
// _showCustomerMobilePhone = showCustomerMobilePhone; | ||
// _useEscrow = useEscrow; | ||
// _escrowProducts = escrowProducts; | ||
// _mobileCarrier = mobileCarrier; | ||
// } | ||
// return self; | ||
//} | ||
// | ||
//@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.