Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-08-02 16:48:55 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d63b77f99a0ed51bd1dcd6eda48454f0f5fc8c4
0d63b77f
1 parent
41b3efca
single call for provisioning
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
23 deletions
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.h
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.m
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.h
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.h
View file @
0d63b77
...
...
@@ -89,7 +89,7 @@
-
(
void
)
cosmoteRetrieveSharingAsync
:(
NSString
*
)
sharingId
:
(
NSNumber
*
)
accept
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
getCosmoteUserAsync
:(
NSString
*
)
guid
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
cosmoteCouponSharingAsync
:(
NSString
*
)
coupon
:
(
NSString
*
)
sender
:
(
NSString
*
)
receiver
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
submitOrderAsync
:(
NSString
*
)
campaign_session_uuid
:
(
NSString
*
)
user_msisdn
:
(
NSString
*
)
businessService
:
(
NSString
*
)
offerName
:
(
NSString
*
)
productType
:
(
NSString
*
)
provDuration
:
(
NSString
*
)
noOfRecurrance
:
(
NSString
*
)
price
:
(
NSString
*
)
discount
:
(
NSString
*
)
voiceCategory
:
(
NSString
*
)
dataCategory
:
(
NSString
*
)
minsValue
:
(
NSString
*
)
dataValue
:
(
NSString
*
)
provStepValueMins
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
submitOrderAsync
:(
NSString
*
)
campaign_session_uuid
:
(
NSString
*
)
user_msisdn
:
(
NSString
*
)
businessService
:
(
NSString
*
)
offerName
:
(
NSString
*
)
productType
:
(
NSString
*
)
provDuration
:
(
NSString
*
)
noOfRecurrance
:
(
NSString
*
)
price
:
(
NSString
*
)
discount
:
(
NSString
*
)
voiceCategory
:
(
NSString
*
)
dataCategory
:
(
NSString
*
)
minsValue
:
(
NSString
*
)
dataValue
:
(
NSString
*
)
provStepValueMins
:
(
NSString
*
)
OfferAudienceLevel
:
(
NSString
*
)
UACIOfferTrackingCode
:
(
NSString
*
)
OFFERCODE1
:
(
NSString
*
)
SCORE
:
(
NSString
*
)
ZONE
:
(
NSString
*
)
WAVE
:
(
NSString
*
)
VALIDITY
:
(
NSString
*
)
TREATMENT_CODE
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
postEventAsync
:(
NSString
*
)
Session_ID
:
(
NSString
*
)
OfferAudienceLevel
:
(
NSString
*
)
msisdn
:
(
NSString
*
)
UACIOfferTrackingCode
:
(
NSString
*
)
OFFERCODE1
:
(
NSString
*
)
SCORE
:
(
NSString
*
)
ZONE
:
(
NSString
*
)
WAVE
:
(
NSString
*
)
VALIDITY
:
(
NSString
*
)
TREATMENT_CODE
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
getCampaignsAsyncNew
:(
NSString
*
)
language
:
(
NSDictionary
*
)
filters
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
getCampaignsPersonalizedAsync
:(
NSString
*
)
language
:
(
NSDictionary
*
)
filters
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.m
View file @
0d63b77
...
...
@@ -1473,9 +1473,9 @@ NSString *VERIFY_URL = @"/partners/cosmote/verify";
}];
}
-
(
void
)
submitOrderAsync
:
(
NSString
*
)
campaign_session_uuid
:
(
NSString
*
)
user_msisdn
:
(
NSString
*
)
businessService
:
(
NSString
*
)
offerName
:
(
NSString
*
)
productType
:
(
NSString
*
)
provDuration
:
(
NSString
*
)
noOfRecurrance
:
(
NSString
*
)
price
:
(
NSString
*
)
discount
:
(
NSString
*
)
voiceCategory
:
(
NSString
*
)
dataCategory
:
(
NSString
*
)
minsValue
:
(
NSString
*
)
dataValue
:
(
NSString
*
)
provStepValueMins
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
-
(
void
)
submitOrderAsync
:
(
NSString
*
)
campaign_session_uuid
:
(
NSString
*
)
user_msisdn
:
(
NSString
*
)
businessService
:
(
NSString
*
)
offerName
:
(
NSString
*
)
productType
:
(
NSString
*
)
provDuration
:
(
NSString
*
)
noOfRecurrance
:
(
NSString
*
)
price
:
(
NSString
*
)
discount
:
(
NSString
*
)
voiceCategory
:
(
NSString
*
)
dataCategory
:
(
NSString
*
)
minsValue
:
(
NSString
*
)
dataValue
:
(
NSString
*
)
provStepValueMins
:
(
NSString
*
)
OfferAudienceLevel
:
(
NSString
*
)
UACIOfferTrackingCode
:
(
NSString
*
)
OFFERCODE1
:
(
NSString
*
)
SCORE
:
(
NSString
*
)
ZONE
:
(
NSString
*
)
WAVE
:
(
NSString
*
)
VALIDITY
:
(
NSString
*
)
TREATMENT_CODE
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
{
[[
Warply
sharedService
]
submitOrderWithSuccessBlock
:
campaign_session_uuid
:
user_msisdn
:
businessService
:
offerName
:
productType
:
provDuration
:
noOfRecurrance
:
price
:
discount
:
voiceCategory
:
dataCategory
:
minsValue
:
dataValue
:
provStepValueMins
:^
(
NSDictionary
*
response
)
{
[[
Warply
sharedService
]
submitOrderWithSuccessBlock
:
campaign_session_uuid
:
user_msisdn
:
businessService
:
offerName
:
productType
:
provDuration
:
noOfRecurrance
:
price
:
discount
:
voiceCategory
:
dataCategory
:
minsValue
:
dataValue
:
provStepValueMins
:
OfferAudienceLevel
:
UACIOfferTrackingCode
:
OFFERCODE1
:
SCORE
:
ZONE
:
WAVE
:
VALIDITY
:
TREATMENT_CODE
:
^
(
NSDictionary
*
response
)
{
if
(
success
)
{
success
(
response
);
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
0d63b77
...
...
@@ -121,7 +121,9 @@ import UIKit
}
func
submitOrderRequest
()
{
swiftApi
()
.
submitOrderAsync
(
campaign_session_uuid
:
(
campaign
?
.
session_uuid
??
""
),
user_msisdn
:
self
.
selectedNumber
,
businessService
:
(
ccms
?
.
_businessService
??
""
),
offerName
:
(
ccms
?
.
_offerName
??
""
),
productType
:
(
ccms
?
.
_productType
??
""
),
provDuration
:
(
ccms
?
.
_provDuration
??
""
),
noOfRecurrance
:
(
ccms
?
.
_noOfRecurrance
??
""
),
price
:
(
ccms
?
.
_price
??
""
),
discount
:
(
ccms
?
.
_discount
??
""
),
voiceCategory
:
(
ccms
?
.
_voiceCategory
??
""
),
dataCategory
:
(
ccms
?
.
_dataCategory
??
""
),
minsValue
:
(
ccms
?
.
_minsValue
??
""
),
dataValue
:
(
ccms
?
.
_dataValue
??
""
),
provStepValueMins
:
(
ccms
?
.
_provStepValueMins
??
""
),
submitOrderCallback
)
swiftApi
()
.
submitOrderAsync
(
campaign_session_uuid
:
(
campaign
?
.
session_uuid
??
""
),
user_msisdn
:
self
.
selectedNumber
,
businessService
:
(
ccms
?
.
_businessService
??
""
),
offerName
:
(
ccms
?
.
_offerName
??
""
),
productType
:
(
ccms
?
.
_productType
??
""
),
provDuration
:
(
ccms
?
.
_provDuration
??
""
),
noOfRecurrance
:
(
ccms
?
.
_noOfRecurrance
??
""
),
price
:
(
ccms
?
.
_price
??
""
),
discount
:
(
ccms
?
.
_discount
??
""
),
voiceCategory
:
(
ccms
?
.
_voiceCategory
??
""
),
dataCategory
:
(
ccms
?
.
_dataCategory
??
""
),
minsValue
:
(
ccms
?
.
_minsValue
??
""
),
dataValue
:
(
ccms
?
.
_dataValue
??
""
),
provStepValueMins
:
(
ccms
?
.
_provStepValueMins
??
""
),
OfferAudienceLevel
:
(
ccms
?
.
_offerAudienceLevel
??
""
),
UACIOfferTrackingCode
:
(
ccms
?
.
_uaciOfferTrackingCode
??
""
),
OFFERCODE1
:
(
ccms
?
.
_offerCode1
??
""
),
SCORE
:
(
ccms
?
.
_score
??
""
),
ZONE
:
(
ccms
?
.
_zone
??
""
),
WAVE
:
(
ccms
?
.
_wave
??
""
),
VALIDITY
:
(
ccms
?
.
_validity
??
""
),
TREATMENT_CODE
:
(
ccms
?
.
_treatmentCode
??
""
),
submitOrderCallback
)
}
func
submitOrderCallback
(
_
response
:
swiftApi
.
GenericResponseModel
?)
->
Void
{
...
...
@@ -129,7 +131,7 @@ import UIKit
DispatchQueue
.
main
.
async
{
if
(
response
?
.
getStatus
==
1
)
{
self
.
showDialog
(
"Το αίτημά σου ολοκληρώθηκε επιτυχώς!"
,
"Θα ενημερωθείς άμεσα για την ενεργοποίηση του πακέτου σου."
)
self
.
postEventRequest
()
//
self.postEventRequest()
}
else
{
self
.
showDialog
(
"Αποτυχία"
,
"Κάτι πήγε στραβά"
)
...
...
@@ -140,21 +142,21 @@ import UIKit
}
}
func
postEventRequest
()
{
swiftApi
()
.
postEventAsync
(
Session_ID
:
(
campaign
?
.
session_uuid
??
""
),
OfferAudienceLevel
:
(
ccms
?
.
_offerAudienceLevel
??
""
),
msisdn
:
self
.
selectedNumber
,
UACIOfferTrackingCode
:
(
ccms
?
.
_uaciOfferTrackingCode
??
""
),
OFFERCODE1
:
(
ccms
?
.
_offerCode1
??
""
),
SCORE
:
(
ccms
?
.
_score
??
""
),
ZONE
:
(
ccms
?
.
_zone
??
""
),
WAVE
:
(
ccms
?
.
_wave
??
""
),
VALIDITY
:
(
ccms
?
.
_validity
??
""
),
TREATMENT_CODE
:
(
ccms
?
.
_treatmentCode
??
""
),
postEventCallback
)
}
//
func postEventRequest() {
//
swiftApi().postEventAsync(Session_ID: (campaign?.session_uuid ?? ""), OfferAudienceLevel: (ccms?._offerAudienceLevel ?? ""), msisdn: self.selectedNumber, UACIOfferTrackingCode: (ccms?._uaciOfferTrackingCode ?? ""), OFFERCODE1: (ccms?._offerCode1 ?? ""), SCORE: (ccms?._score ?? ""), ZONE: (ccms?._zone ?? ""), WAVE: (ccms?._wave ?? ""), VALIDITY: (ccms?._validity ?? ""), TREATMENT_CODE: (ccms?._treatmentCode ?? ""), postEventCallback)
//
}
func
postEventCallback
(
_
response
:
swiftApi
.
GenericResponseModel
?)
->
Void
{
if
(
response
!=
nil
)
{
DispatchQueue
.
main
.
async
{
if
(
response
?
.
getStatus
==
1
)
{
//
func postEventCallback (_ response: swiftApi.GenericResponseModel?) -> Void {
//
if (response != nil) {
//
DispatchQueue.main.async {
//
if (response?.getStatus == 1) {
}
else
{
}
}
}
else
{
}
}
//
} else {
//
}
//
}
//
} else {
//
}
//
}
// MARK: - Actions
@IBAction
func
activateButtomAction
(
_
sender
:
Any
)
{
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.h
View file @
0d63b77
...
...
@@ -393,7 +393,7 @@ WL_VERSION_INTERFACE()
-
(
void
)
cosmoteRetrieveSharingWithSuccessBlock
:(
NSString
*
)
sharingId
:
(
NSNumber
*
)
accept
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
submitOrderWithSuccessBlock
:(
NSString
*
)
campaign_session_uuid
:
(
NSString
*
)
user_msisdn
:
(
NSString
*
)
businessService
:
(
NSString
*
)
offerName
:
(
NSString
*
)
productType
:
(
NSString
*
)
provDuration
:
(
NSString
*
)
noOfRecurrance
:
(
NSString
*
)
price
:
(
NSString
*
)
discount
:
(
NSString
*
)
voiceCategory
:
(
NSString
*
)
dataCategory
:
(
NSString
*
)
minsValue
:
(
NSString
*
)
dataValue
:
(
NSString
*
)
provStepValueMins
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
submitOrderWithSuccessBlock
:(
NSString
*
)
campaign_session_uuid
:
(
NSString
*
)
user_msisdn
:
(
NSString
*
)
businessService
:
(
NSString
*
)
offerName
:
(
NSString
*
)
productType
:
(
NSString
*
)
provDuration
:
(
NSString
*
)
noOfRecurrance
:
(
NSString
*
)
price
:
(
NSString
*
)
discount
:
(
NSString
*
)
voiceCategory
:
(
NSString
*
)
dataCategory
:
(
NSString
*
)
minsValue
:
(
NSString
*
)
dataValue
:
(
NSString
*
)
provStepValueMins
:
(
NSString
*
)
OfferAudienceLevel
:
(
NSString
*
)
UACIOfferTrackingCode
:
(
NSString
*
)
OFFERCODE1
:
(
NSString
*
)
SCORE
:
(
NSString
*
)
ZONE
:
(
NSString
*
)
WAVE
:
(
NSString
*
)
VALIDITY
:
(
NSString
*
)
TREATMENT_CODE
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
;
-
(
void
)
validateCouponWithSuccessBlock
:(
NSString
*
)
coupon
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:(
void
(
^
)(
NSError
*
error
))
failure
;
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
View file @
0d63b77
...
...
@@ -2246,9 +2246,28 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}];
}
-
(
void
)
submitOrderWithSuccessBlock
:
(
NSString
*
)
campaign_session_uuid
:
(
NSString
*
)
user_msisdn
:
(
NSString
*
)
businessService
:
(
NSString
*
)
offerName
:
(
NSString
*
)
productType
:
(
NSString
*
)
provDuration
:
(
NSString
*
)
noOfRecurrance
:
(
NSString
*
)
price
:
(
NSString
*
)
discount
:
(
NSString
*
)
voiceCategory
:
(
NSString
*
)
dataCategory
:
(
NSString
*
)
minsValue
:
(
NSString
*
)
dataValue
:
(
NSString
*
)
provStepValueMins
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
-
(
void
)
submitOrderWithSuccessBlock
:
(
NSString
*
)
campaign_session_uuid
:
(
NSString
*
)
user_msisdn
:
(
NSString
*
)
businessService
:
(
NSString
*
)
offerName
:
(
NSString
*
)
productType
:
(
NSString
*
)
provDuration
:
(
NSString
*
)
noOfRecurrance
:
(
NSString
*
)
price
:
(
NSString
*
)
discount
:
(
NSString
*
)
voiceCategory
:
(
NSString
*
)
dataCategory
:
(
NSString
*
)
minsValue
:
(
NSString
*
)
dataValue
:
(
NSString
*
)
provStepValueMins
:
(
NSString
*
)
OfferAudienceLevel
:
(
NSString
*
)
UACIOfferTrackingCode
:
(
NSString
*
)
OFFERCODE1
:
(
NSString
*
)
SCORE
:
(
NSString
*
)
ZONE
:
(
NSString
*
)
WAVE
:
(
NSString
*
)
VALIDITY
:
(
NSString
*
)
TREATMENT_CODE
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:
(
void
(
^
)(
NSError
*
error
))
failure
{
NSDictionary
*
postDictionary
=
@{
@"wallet"
:
@{
@"action"
:
@"add_product"
,
@"product_uuid"
:
@"011d21908d984e3cbecbdfd2920a5d3b"
,
@"communication_uuid"
:
campaign_session_uuid
,
@"extra_data"
:
@{
@"user_msisdn"
:
user_msisdn
,
@"businessService"
:
businessService
,
@"offerName"
:
offerName
,
@"productType"
:
productType
,
@"provDuration"
:
provDuration
,
@"noOfRecurrance"
:
noOfRecurrance
,
@"price"
:
price
,
@"discount"
:
discount
,
@"voiceCategory"
:
voiceCategory
,
@"dataCategory"
:
dataCategory
,
@"minsValue"
:
minsValue
,
@"dataValue"
:
dataValue
,
@"provStepValueMins"
:
provStepValueMins
}}};
NSDictionary
*
postDictionary
=
@{
@"wallet"
:
@{
@"action"
:
@"add_product"
,
@"product_uuid"
:
@"011d21908d984e3cbecbdfd2920a5d3b"
,
@"communication_uuid"
:
campaign_session_uuid
,
@"extra_data"
:
@{
@"user_msisdn"
:
user_msisdn
,
@"businessService"
:
businessService
,
@"offerName"
:
offerName
,
@"productType"
:
productType
,
@"provDuration"
:
provDuration
,
@"noOfRecurrance"
:
noOfRecurrance
,
@"price"
:
price
,
@"discount"
:
discount
,
@"voiceCategory"
:
voiceCategory
,
@"dataCategory"
:
dataCategory
,
@"minsValue"
:
minsValue
,
@"dataValue"
:
dataValue
,
@"provStepValueMins"
:
provStepValueMins
,
@"InteractiveChannel"
:
@"COSMOTE_OMNI"
,
@"InteractionPoint"
:
ZONE
,
@"Session_ID"
:
campaign_session_uuid
,
@"OfferAudienceLevel"
:
OfferAudienceLevel
,
@"MSISDN"
:
user_msisdn
,
@"GUID"
:
@""
,
@"parameters"
:
@[
@{
@"Name"
:
@"UACIOfferTrackingCode"
,
@"Value"
:
UACIOfferTrackingCode
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"UACICustomLoggerTableName"
,
@"Value"
:
@"VW_WHITELIST"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"MSISDN"
,
@"Value"
:
user_msisdn
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"OFFERCODE1"
,
@"Value"
:
OFFERCODE1
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"SCORE"
,
@"Value"
:
SCORE
,
@"Type"
:
@"INT"
},
@{
@"Name"
:
@"PREDICATE"
,
@"Value"
:
@"0"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"ZONE"
,
@"Value"
:
ZONE
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"APPLICATIONNAME"
,
@"Value"
:
ZONE
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"Session_ID"
,
@"Value"
:
campaign_session_uuid
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"CAMPAIGN_CODE"
,
@"Value"
:
@"MCC_00006"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"CAMPAIGN_TYPE"
,
@"Value"
:
@"Inbound"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"UACIResponseTypeCode"
,
@"Value"
:
@"CON"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"CHANNEL"
,
@"Value"
:
@"ONE_APP"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"WAVE"
,
@"Value"
:
WAVE
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"RESPONSECHANNEL"
,
@"Value"
:
@"ONE_APP"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"VALIDITY"
,
@"Value"
:
VALIDITY
,
@"Type"
:
@"INT"
},
@{
@"Name"
:
@"TREATMENT_CODE"
,
@"Value"
:
TREATMENT_CODE
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"EventName"
,
@"Value"
:
@"INTEREST_P"
,
@"Type"
:
@"string"
}
]}}};
NSData
*
jsonData
=
[
NSJSONSerialization
dataWithJSONObject
:
postDictionary
options
:
0
error
:
NULL
];
[
self
sendContext8
:
jsonData
successBlock
:
^
(
NSDictionary
*
contextResponse
)
{
if
(
success
)
{
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
0d63b77
...
...
@@ -3611,10 +3611,10 @@ public class swiftApi {
}
public
func
submitOrderAsync
(
campaign_session_uuid
:
String
,
user_msisdn
:
String
,
businessService
:
String
,
offerName
:
String
,
productType
:
String
,
provDuration
:
String
,
noOfRecurrance
:
String
,
price
:
String
,
discount
:
String
,
voiceCategory
:
String
,
dataCategory
:
String
,
minsValue
:
String
,
dataValue
:
String
,
provStepValueMins
:
String
,
_
submitOrderCallback
:
@escaping
(
_
responseData
:
GenericResponseModel
?)
->
Void
)
->
Void
{
public
func
submitOrderAsync
(
campaign_session_uuid
:
String
,
user_msisdn
:
String
,
businessService
:
String
,
offerName
:
String
,
productType
:
String
,
provDuration
:
String
,
noOfRecurrance
:
String
,
price
:
String
,
discount
:
String
,
voiceCategory
:
String
,
dataCategory
:
String
,
minsValue
:
String
,
dataValue
:
String
,
provStepValueMins
:
String
,
OfferAudienceLevel
:
String
,
UACIOfferTrackingCode
:
String
,
OFFERCODE1
:
String
,
SCORE
:
String
,
ZONE
:
String
,
WAVE
:
String
,
VALIDITY
:
String
,
TREATMENT_CODE
:
String
,
_
submitOrderCallback
:
@escaping
(
_
responseData
:
GenericResponseModel
?)
->
Void
)
->
Void
{
let
instanceOfMyApi
=
MyApi
()
instanceOfMyApi
.
submitOrderAsync
(
campaign_session_uuid
,
user_msisdn
,
businessService
,
offerName
,
productType
,
provDuration
,
noOfRecurrance
,
price
,
discount
,
voiceCategory
,
dataCategory
,
minsValue
,
dataValue
,
provStepValueMins
,
requestCallback
,
failureBlock
:
requestFailureCallback
)
instanceOfMyApi
.
submitOrderAsync
(
campaign_session_uuid
,
user_msisdn
,
businessService
,
offerName
,
productType
,
provDuration
,
noOfRecurrance
,
price
,
discount
,
voiceCategory
,
dataCategory
,
minsValue
,
dataValue
,
provStepValueMins
,
OfferAudienceLevel
,
UACIOfferTrackingCode
,
OFFERCODE1
,
SCORE
,
ZONE
,
WAVE
,
VALIDITY
,
TREATMENT_CODE
,
requestCallback
,
failureBlock
:
requestFailureCallback
)
func
requestCallback
(
_
responseData
:
[
AnyHashable
:
Any
]?)
->
Void
{
...
...
Please
register
or
login
to post a comment