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-06 15:35:40 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
56094aaf1aa7345dbfc284ac60af34d5bd08c9b4
56094aaf
1 parent
06cc57b1
fix submitOrderAsync
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
11 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 @
56094aa
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
56094aa
...
...
@@ -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
??
""
),
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
??
""
),
submitOrderCallback
)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MyApi.h
View file @
56094aa
...
...
@@ -92,7 +92,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
:
(
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
)
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 @
56094aa
...
...
@@ -1515,9 +1515,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
:
(
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
{
[[
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
)
{
[[
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
)
{
if
(
success
)
{
success
(
response
);
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/TelcoViewController.swift
View file @
56094aa
...
...
@@ -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
??
""
),
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
??
""
),
submitOrderCallback
)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.h
View file @
56094aa
...
...
@@ -395,7 +395,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
:
(
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
)
validateCouponWithSuccessBlock
:(
NSString
*
)
coupon
:
(
void
(
^
)(
NSDictionary
*
response
))
success
failureBlock
:(
void
(
^
)(
NSError
*
error
))
failure
;
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Warply/Warply.m
View file @
56094aa
...
...
@@ -2293,9 +2293,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
:
(
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
{
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"
:
c
ampaign_session_uu
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"
:
c
cms_session_
id
,
@"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"
},
...
...
@@ -2304,7 +2304,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
@{
@"Name"
:
@"PREDICATE"
,
@"Value"
:
@"0"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"ZONE"
,
@"Value"
:
ZONE
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"APPLICATIONNAME"
,
@"Value"
:
ZONE
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"Session_ID"
,
@"Value"
:
c
ampaign_session_uu
id
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"Session_ID"
,
@"Value"
:
c
cms_session_
id
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"CAMPAIGN_CODE"
,
@"Value"
:
@"MCC_00006"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"CAMPAIGN_TYPE"
,
@"Value"
:
@"Inbound"
,
@"Type"
:
@"string"
},
@{
@"Name"
:
@"UACIResponseTypeCode"
,
@"Value"
:
@"CON"
,
@"Type"
:
@"string"
},
...
...
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
56094aa
...
...
@@ -4253,10 +4253,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
,
_
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
,
_
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
,
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
,
requestCallback
,
failureBlock
:
requestFailureCallback
)
func
requestCallback
(
_
responseData
:
[
AnyHashable
:
Any
]?)
->
Void
{
...
...
Please
register
or
login
to post a comment