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-09-13 18:37:22 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
152ef55c1ba49373dc99cf3808c2995dc59acb8e
152ef55c
1 parent
f5a17901
update submitOrderAsync
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
10 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
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.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
152ef55
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
152ef55
...
...
@@ -127,7 +127,7 @@ import UIKit
func
submitOrderRequest
()
{
swiftApi
()
.
submitOrderAsync
(
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
??
""
),
ccms_session_id
:
(
ccms
?
.
_sessionId
??
""
),
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
??
""
),
ccms_session_id
:
(
ccms
?
.
_sessionId
??
""
),
notificationMessage
:
(
ccms
?
.
_notificationMessage
??
""
),
submitOrderCallback
)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.h
View file @
152ef55
...
...
@@ -93,7 +93,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
:
(
NSString
*
)
OfferAudienceLevel
:
(
NSString
*
)
UACIOfferTrackingCode
:
(
NSString
*
)
OFFERCODE1
:
(
NSString
*
)
SCORE
:
(
NSString
*
)
ZONE
:
(
NSString
*
)
WAVE
:
(
NSString
*
)
VALIDITY
:
(
NSString
*
)
TREATMENT_CODE
:
(
NSString
*
)
ccms_session_id
:
(
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
:
(
NSString
*
)
ccms_session_id
:
(
NSString
*
)
notificationMessage
:
(
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 @
152ef55
...
...
@@ -1528,9 +1528,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
:
(
NSString
*
)
OfferAudienceLevel
:
(
NSString
*
)
UACIOfferTrackingCode
:
(
NSString
*
)
OFFERCODE1
:
(
NSString
*
)
SCORE
:
(
NSString
*
)
ZONE
:
(
NSString
*
)
WAVE
:
(
NSString
*
)
VALIDITY
:
(
NSString
*
)
TREATMENT_CODE
:
(
NSString
*
)
ccms_session_id
:
(
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
:
(
NSString
*
)
ccms_session_id
:
(
NSString
*
)
notificationMessage
:
(
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
:
OfferAudienceLevel
:
UACIOfferTrackingCode
:
OFFERCODE1
:
SCORE
:
ZONE
:
WAVE
:
VALIDITY
:
TREATMENT_CODE
:
ccms_session_id
:^
(
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
:
ccms_session_id
:
notificationMessage
:
^
(
NSDictionary
*
response
)
{
if
(
success
)
{
success
(
response
);
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
152ef55
...
...
@@ -183,7 +183,7 @@ 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
??
""
),
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
??
""
),
ccms_session_id
:
(
ccms
?
.
_sessionId
??
""
),
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
??
""
),
ccms_session_id
:
(
ccms
?
.
_sessionId
??
""
),
notificationMessage
:
(
ccms
?
.
_notificationMessage
??
""
),
submitOrderCallback
)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.h
View file @
152ef55
...
...
@@ -397,7 +397,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
:
(
NSString
*
)
OfferAudienceLevel
:
(
NSString
*
)
UACIOfferTrackingCode
:
(
NSString
*
)
OFFERCODE1
:
(
NSString
*
)
SCORE
:
(
NSString
*
)
ZONE
:
(
NSString
*
)
WAVE
:
(
NSString
*
)
VALIDITY
:
(
NSString
*
)
TREATMENT_CODE
:
(
NSString
*
)
ccms_session_id
:
(
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
:
(
NSString
*
)
ccms_session_id
:
(
NSString
*
)
notificationMessage
:
(
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 @
152ef55
...
...
@@ -2355,9 +2355,9 @@ 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
:
(
NSString
*
)
OfferAudienceLevel
:
(
NSString
*
)
UACIOfferTrackingCode
:
(
NSString
*
)
OFFERCODE1
:
(
NSString
*
)
SCORE
:
(
NSString
*
)
ZONE
:
(
NSString
*
)
WAVE
:
(
NSString
*
)
VALIDITY
:
(
NSString
*
)
TREATMENT_CODE
:
(
NSString
*
)
ccms_session_id
:
(
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
:
(
NSString
*
)
ccms_session_id
:
(
NSString
*
)
notificationMessage
:
(
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
,
@"InteractiveChannel"
:
@"COSMOTE_OMNI"
,
@"InteractionPoint"
:
ZONE
,
@"Session_ID"
:
ccms_session_id
,
@"OfferAudienceLevel"
:
OfferAudienceLevel
,
@"MSISDN"
:
user_msisdn
,
@"GUID"
:
@""
,
@"parameters"
:
@[
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"
:
ccms_session_id
,
@"OfferAudienceLevel"
:
OfferAudienceLevel
,
@"MSISDN"
:
user_msisdn
,
@"GUID"
:
@""
,
@"
notificationMessage"
:
notificationMessage
,
@"
parameters"
:
@[
@{
@"Name"
:
@"UACIOfferTrackingCode"
,
@"Value"
:
UACIOfferTrackingCode
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"UACICustomLoggerTableName"
,
@"Value"
:
@"VW_WHITELIST"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"MSISDN"
,
@"Value"
:
user_msisdn
,
@"Type"
:
@"string"
},
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
152ef55
...
...
@@ -4498,10 +4498,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
,
OfferAudienceLevel
:
String
,
UACIOfferTrackingCode
:
String
,
OFFERCODE1
:
String
,
SCORE
:
String
,
ZONE
:
String
,
WAVE
:
String
,
VALIDITY
:
String
,
TREATMENT_CODE
:
String
,
ccms_session_id
:
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
,
ccms_session_id
:
String
,
notificationMessage
:
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
,
OfferAudienceLevel
,
UACIOfferTrackingCode
,
OFFERCODE1
,
SCORE
,
ZONE
,
WAVE
,
VALIDITY
,
TREATMENT_CODE
,
ccms_session_id
,
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
,
ccms_session_id
,
notificationMessage
,
requestCallback
,
failureBlock
:
requestFailureCallback
)
func
requestCallback
(
_
responseData
:
[
AnyHashable
:
Any
]?)
->
Void
{
...
...
Please
register
or
login
to post a comment