Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
fixed checkout html file to pass along sourceUrl (so debug works prop…
Browse files Browse the repository at this point in the history
…erly)

added __deprecated attribute to errors (messes the doc file a bit, but now it won't cause warnings at least)
  • Loading branch information
Gero Herkenrath committed Jul 12, 2016
1 parent afe184e commit dc36215
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Pod/Assets/checkout_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
var endPoint = endPoint || 'widgets.trustedshops.com';
_tsConfig = {
'variant': 'reviews',
'config': 'SDK_IOS'
'config': 'SDK_IOS',
'sourceUrl': '//' + endPoint + '/'
};
var _ts = document.createElement('script');
_ts.type = 'text/javascript';
Expand Down
12 changes: 6 additions & 6 deletions Pod/Classes/Public/TRSErrors.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,34 @@ typedef NS_ENUM(NSUInteger, TRSErrorCode) {
TRSErrorDomainUnknownError = 1000,
/** An unknown error occurred in the context of the Trustbadge SDK.
@deprecated use `TRSErrorDomainUnknownError` instead. */
TRSErrorDomainTrustbadgeUnknownError = TRSErrorDomainUnknownError,
TRSErrorDomainTrustbadgeUnknownError __deprecated = TRSErrorDomainUnknownError,
/** The provided Trusted Shops shop ID was rejected as invalid by the API. */
TRSErrorDomainInvalidTSID,
/** The provided Trusted Shops shop ID was rejected as invalid by the API.
@deprecated use `TRSErrorDomainInvalidTSID` instead. */
TRSErrorDomainTrustbadgeInvalidTSID = TRSErrorDomainInvalidTSID,
TRSErrorDomainTrustbadgeInvalidTSID __deprecated = TRSErrorDomainInvalidTSID,
/** The provided Trusted Shops shop ID does not exist in the Trusted Shop database. */
TRSErrorDomainTSIDNotFound,
/** The provided Trusted Shops shop ID does not exist in the Trusted Shop database.
@deprecated use `TRSErrorDomainTSIDNotFound` instead. */
TRSErrorDomainTrustbadgeTSIDNotFound = TRSErrorDomainTSIDNotFound,
TRSErrorDomainTrustbadgeTSIDNotFound __deprecated = TRSErrorDomainTSIDNotFound,
/** The data returned from the API is corrupted or has an unknown format. */
TRSErrorDomainInvalidData,
/** The data returned from the API is corrupted or has an unknown format.
@deprecated use `TRSErrorDomainInvalidData` instead. */
TRSErrorDomainTrustbadgeInvalidData = TRSErrorDomainInvalidData,
TRSErrorDomainTrustbadgeInvalidData __deprecated = TRSErrorDomainInvalidData,
/** The data returned from the API is valid, but contains different values than were expected/previously defined. */
TRSErrorDomainUnexpectedData,
/** The client token for the API is not valid. */
TRSErrorDomainInvalidAPIToken,
/** The client token for the API is not valid.
@deprecated use `TRSErrorDomainInvalidAPIToken` instead. */
TRSErrorDomainTrustbadgeInvalidAPIToken = TRSErrorDomainInvalidAPIToken,
TRSErrorDomainTrustbadgeInvalidAPIToken __deprecated = TRSErrorDomainInvalidAPIToken,
/** A call to the API could not be made due to missing TSID or client token (or both were missing). No remote connection was made. */
TRSErrorDomainMissingTSIDOrAPIToken,
/** A call to the API could not be made due to missing TSID or client token (or both were missing). No remote connection was made.
@deprecated use `TRSErrorDomainMissingTSIDOrAPIToken` instead. */
TRSErrorDomainTrustbadgeMissingTSIDOrAPIToken = TRSErrorDomainMissingTSIDOrAPIToken,
TRSErrorDomainTrustbadgeMissingTSIDOrAPIToken __deprecated = TRSErrorDomainMissingTSIDOrAPIToken,
/** A product grade view was set up without an SKU. Bo remote connection was made. */
TRSErrorDomainMissingSKU,
/** The processOrder:onCompletion: method could not find a root view controller to present its popup */
Expand Down

0 comments on commit dc36215

Please sign in to comment.