diff --git a/java-sdk-airtime/src/test/resources/operator/operator_auto_detect_filtered.json b/java-sdk-airtime/src/test/resources/operator/operator_auto_detect_filtered.json index 740de61..d855b29 100644 --- a/java-sdk-airtime/src/test/resources/operator/operator_auto_detect_filtered.json +++ b/java-sdk-airtime/src/test/resources/operator/operator_auto_detect_filtered.json @@ -89,8 +89,8 @@ "title": "Digicel Haiti From 24 Dec 2020 00:00 To 31 Dec 2020 23:59 (GMT-05:00)", "title2": "Bonus 3X to 4X", "description": "
- The promotion will run from 00:01 am Thursday, December 24th 2020, through to and including 11:59 pm Thursday, December 31st 2020 (“The Promotion Period”).
- See below the participant denominations for this promotion:
   - For USD$10 / CAD$ 15/ GBP$ 8 / Local Price 500 HTG, Customers will receive  200% Bonus Credit
   - For  USD$15 / CAD$ 20 /  GBP$12 / Local Price 875 HTG, Customers will receive  300% Bonus Credit

- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for Prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2020-12-24 10:00:00", - "endDate": "2021-01-01 09:59:00", + "startDate": "2020-12-24 10:00", + "endDate": "2021-01-01 09:59", "denominations": "USD 10 and 15", "localDenominations": null }, @@ -101,8 +101,8 @@ "title": "Digicel Haiti From 01 Jan 2021 00:00 To 01 Jan 2021 23:59 (GMT-05:00)", "title2": "Bonus 3X and 4X", "description": "
- The promotion will run from 00:01 am Friday, January 1st 2021, through to and including 11:59 pm Friday, January 1st 2021 (“The Promotion Period”)
- For top ups of  USD 10 / CAD 15 / GBP 8 / HTG 500 will receive 200% Bonus credit
- For top ups of  USD 15 / CAD 20 / GBP 12 / HTG 875 will receive 300% Bonus credit
- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls and SMS only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2021-01-01 10:00:00", - "endDate": "2021-01-02 09:59:00", + "startDate": "2021-01-01T10:00:00Z", + "endDate": "2021-01-02 09:59:00Z", "denominations": "USD 10 and up", "localDenominations": null } diff --git a/java-sdk-airtime/src/test/resources/operator/operator_auto_detect_unfiltered.json b/java-sdk-airtime/src/test/resources/operator/operator_auto_detect_unfiltered.json index dd82090..e1d5e73 100644 --- a/java-sdk-airtime/src/test/resources/operator/operator_auto_detect_unfiltered.json +++ b/java-sdk-airtime/src/test/resources/operator/operator_auto_detect_unfiltered.json @@ -74,8 +74,8 @@ "title": "Digicel Haiti From 24 Dec 2020 00:00 To 31 Dec 2020 23:59 (GMT-05:00)", "title2": "Bonus 3X to 4X", "description": "
- The promotion will run from 00:01 am Thursday, December 24th 2020, through to and including 11:59 pm Thursday, December 31st 2020 (“The Promotion Period”).
- See below the participant denominations for this promotion:
   - For USD$10 / CAD$ 15/ GBP$ 8 / Local Price 500 HTG, Customers will receive  200% Bonus Credit
   - For  USD$15 / CAD$ 20 /  GBP$12 / Local Price 875 HTG, Customers will receive  300% Bonus Credit

- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for Prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2020-12-24 10:00:00", - "endDate": "2021-01-01 09:59:00", + "startDate": "2020-12-24T10:00", + "endDate": "2021-01-01T09:59", "denominations": "USD 10 and 15", "localDenominations": null }, @@ -86,8 +86,8 @@ "title": "Digicel Haiti From 01 Jan 2021 00:00 To 01 Jan 2021 23:59 (GMT-05:00)", "title2": "Bonus 3X and 4X", "description": "
- The promotion will run from 00:01 am Friday, January 1st 2021, through to and including 11:59 pm Friday, January 1st 2021 (“The Promotion Period”)
- For top ups of  USD 10 / CAD 15 / GBP 8 / HTG 500 will receive 200% Bonus credit
- For top ups of  USD 15 / CAD 20 / GBP 12 / HTG 875 will receive 300% Bonus credit
- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls and SMS only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2021-01-01 10:00:00", - "endDate": "2021-01-02 09:59:00", + "startDate": "2021-01-01T10:00:00Z", + "endDate": "2021-01-02T09:59:00Z", "denominations": "USD 10 and up", "localDenominations": null } diff --git a/java-sdk-airtime/src/test/resources/operator/operators_by_country_code_filtered_exclude_bundles.json b/java-sdk-airtime/src/test/resources/operator/operators_by_country_code_filtered_exclude_bundles.json index 76023bb..04d69ed 100644 --- a/java-sdk-airtime/src/test/resources/operator/operators_by_country_code_filtered_exclude_bundles.json +++ b/java-sdk-airtime/src/test/resources/operator/operators_by_country_code_filtered_exclude_bundles.json @@ -90,8 +90,8 @@ "title": "Digicel Haiti From 01 Jan 2021 00:00 To 01 Jan 2021 23:59 (GMT-05:00)", "title2": "Bonus 3X and 4X", "description": "
- The promotion will run from 00:01 am Friday, January 1st 2021, through to and including 11:59 pm Friday, January 1st 2021 (“The Promotion Period”)
- For top ups of  USD 10 / CAD 15 / GBP 8 / HTG 500 will receive 200% Bonus credit
- For top ups of  USD 15 / CAD 20 / GBP 12 / HTG 875 will receive 300% Bonus credit
- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls and SMS only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2021-01-01 10:00:00", - "endDate": "2021-01-02 09:59:00", + "startDate": "2021-01-01T10:00", + "endDate": "2021-01-02T09:59", "denominations": "USD 10 and up", "localDenominations": null }, @@ -102,8 +102,8 @@ "title": "Digicel Haiti From 24 Dec 2020 00:00 To 31 Dec 2020 23:59 (GMT-05:00)", "title2": "Bonus 3X to 4X", "description": "
- The promotion will run from 00:01 am Thursday, December 24th 2020, through to and including 11:59 pm Thursday, December 31st 2020 (“The Promotion Period”).
- See below the participant denominations for this promotion:
   - For USD$10 / CAD$ 15/ GBP$ 8 / Local Price 500 HTG, Customers will receive  200% Bonus Credit
   - For  USD$15 / CAD$ 20 /  GBP$12 / Local Price 875 HTG, Customers will receive  300% Bonus Credit

- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for Prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2020-12-24 10:00:00", - "endDate": "2021-01-01 09:59:00", + "startDate": "2020-12-24 10:00:00Z", + "endDate": "2021-01-01 09:59:00Z", "denominations": "USD 10 and 15", "localDenominations": null } diff --git a/java-sdk-airtime/src/test/resources/operator/operators_by_country_code_unfiltered.json b/java-sdk-airtime/src/test/resources/operator/operators_by_country_code_unfiltered.json index 79d4e7f..ef2d6a3 100644 --- a/java-sdk-airtime/src/test/resources/operator/operators_by_country_code_unfiltered.json +++ b/java-sdk-airtime/src/test/resources/operator/operators_by_country_code_unfiltered.json @@ -75,8 +75,8 @@ "title": "Digicel Haiti From 16 Nov 2020 00:00 To 17 Jan 2021 23:59 (GMT-05:00)", "title2": "Digicel Intl Click to Win sweepstakes", "description": "DIGICEL INTERNATIONAL: “CLICK TO WIN” SWEEPSTAKES

OFFICIAL RULES
DESCRIPTION/ENTRY PERIOD/ELIGIBILITY: NO PURCHASE NECESSARY. Purchase will NOT increase your chance of winning. The Digicel International: “Click to Win” Sweepstakes (the “Sweepstakes” or “Prize Draw”), is open to legal residents of the 50 United States, the District of Columbia (“US Entrants”), Canada including the Province of Quebec (“CA Entrants”), and the United Kingdom (“UK Entrants”), who are 18 years of age or older at time of entry (collectively “Eligible Entrant(s)”). The Sweepstakes begins at 12:00:00 PM (“Noon”) Eastern Daylight Time (EDT) [USA], (equivalent to 4:00:00 PM Greenwich Mean Time (GMT)) on Monday, November 16th, 2020 and will end at Noon EDT [4:00:00 PM GMT] on Sunday, January 17th, 2021 (the “Sweepstakes Period”). Individuals employed by or otherwise associated with employees of Diaspora Talktime, Inc./Digicel International (the “Sponsor”), its affiliates, distributors, subsidiaries and individuals of promotional partners, prize providers, agencies including Marden-Kane, Inc. (the “Administrator”) (collectively the “Released Parties”); and, their immediate families (spouse, parents, children, siblings and their respective spouses) and persons living in the same household of each are not eligible to enter or win a prize. The Sweepstakes will be divided into nine (9) weekly entry periods (each, an “Entry Period”), as detailed in the Drawing Schedule (the “Chart”) below.

HOW TO ENTER: There are two ways to enter the Sweepstakes:
1) Automatic Entry With Purchase: Each time an entrant completes one of the qualifying transactions via an authorized agent, the website at digicelinternational.com, or the Digicel International App using a participating product to a registered Digicel phone number as further detailed below per participating country, the entrant will automatically receive one (1) entry (the “Entry”) into the Entry Period/random drawing that corresponds to the date of their transaction (a “Qualifying Transaction”).
a. For US Entrants: Participating products include Top Up/Plans; Bill Pay; Call International; Send Money; and Digital Cards. Any amount sent from the US to a registered Digicel phone number (located in Anguilla, Antigua, Aruba, Barbados, Bermuda, Bonaire, BVI, Cayman Islands, Curacao, Dominica, El Salvador, French Guiana, Grenada, Guadeloupe, Guyana, Haiti, Jamaica, Martinique, Montserrat, Panama, St. Kitts, St. Lucia, St. Vincent, Suriname, Trinidad or Turks and Caicos) will be eligible to receive an entry. 
b. For CA and UK Entrants: Participating products include Top Up/Plans and Send Money. Any Top Up amount or money sent from CA and the UK, to a registered Digicel phone number anywhere in the world will be eligible to receive an entry.

\"\"

For complete Terms and conditions and exclusive marketing materials please click here.", - "startDate": "2020-11-16 10:00:00", - "endDate": "2021-01-18 09:59:00", + "startDate": "2020-11-16T10:00", + "endDate": "2021-01-18T09:59", "denominations": "All", "localDenominations": null }, @@ -87,8 +87,8 @@ "title": "Digicel Haiti From 24 Dec 2020 00:00 To 31 Dec 2020 23:59 (GMT-05:00)", "title2": "Bonus 3X to 4X", "description": "
- The promotion will run from 00:01 am Thursday, December 24th 2020, through to and including 11:59 pm Thursday, December 31st 2020 (“The Promotion Period”).
- See below the participant denominations for this promotion:
   - For USD$10 / CAD$ 15/ GBP$ 8 / Local Price 500 HTG, Customers will receive  200% Bonus Credit
   - For  USD$15 / CAD$ 20 /  GBP$12 / Local Price 875 HTG, Customers will receive  300% Bonus Credit

- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for Prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2020-12-24 10:00:00", - "endDate": "2021-01-01 09:59:00", + "startDate": "2020-12-24T10:00:00Z", + "endDate": "2021-01-01T09:59:00Z", "denominations": "USD 10 and 15", "localDenominations": null } diff --git a/java-sdk-airtime/src/test/resources/promotion/promotion_filtered_page.json b/java-sdk-airtime/src/test/resources/promotion/promotion_filtered_page.json index 48c958e..7fd7018 100644 --- a/java-sdk-airtime/src/test/resources/promotion/promotion_filtered_page.json +++ b/java-sdk-airtime/src/test/resources/promotion/promotion_filtered_page.json @@ -19,8 +19,8 @@ "title": "Telenor Pakistan From 15 Apr 2020 00:00 To 31 Dec 2020 23:59 (GMT+05:00)", "title2": "Free data and minutes", "description": "Telenor Pakistan has an exciting offer for friends and family in Pakistan.
Top them up with Rs 100 and above and they get FREE 50 Telenor Mins & 500 SMS.

Activating the bonus is in 3 easy steps

Step 1: Receiver in Pakistan dials *345*260# and receives confirmation
\"\"

Step 2: Global Sender remits 100PKR to the receiver

Step 3: Receiver enjoys extra minutes and SMS valid for 24hrs
\"\"

Terms and Conditions:
* Bonus is usable for onnet calls, and local SMS
* Only 1 promo per day is allowed i.e. promo is applied on 1st 100 PKR recharge  
* Bonus is valid for the same day of recharge i.e  get a recharge from abroad at 11AM, the offer will expire at 23:59 same day.

Offer is valid until further notice.", - "startDate": "2020-04-14 23:00:00", - "endDate": "2020-12-31 23:59:00", + "startDate": "2020-04-14T23:00", + "endDate": "2020-12-31T23:59", "denominations": "USD 1 and above", "localDenominations": "PKR 100 and above" }, @@ -31,8 +31,8 @@ "title": "Econet Zimbabwe From 03 Jun 2020 00:01 To 31 Dec 2020 23:59 (GMT+02:00)", "title2": "Bonus 2x", "description": "Econet Zimbabwe 100% Bonus Promotion from 3rd June 2020 until further notice.

Terms and Conditions
1. Promotion runs from 3rd June 2020 until further notice.
2. Bonus will be rewarded for all denominations recharged.
3. Bonus applies to any number of recharges received.  
4. The normal and usual validity periods apply.
5. The airtime will credited into the main airtime account.


Example
2 US $ buys 50 ZWL Principal Airtime Recharge + 50 ZWL / RTGS Free Bonus Airtime Recharge = Total Amount Received 100 ZWL / RTGS  

 ", - "startDate": "2020-06-03 02:01:00", - "endDate": "2021-01-01 02:59:00", + "startDate": "2020-06-03T02:01:00Z", + "endDate": "2021-01-01T02:59:00Z", "denominations": "USD 1 and above", "localDenominations": "USD 1 and above" }, diff --git a/java-sdk-airtime/src/test/resources/promotion/promotion_list_by_country.json b/java-sdk-airtime/src/test/resources/promotion/promotion_list_by_country.json index 6e972ce..0f90877 100644 --- a/java-sdk-airtime/src/test/resources/promotion/promotion_list_by_country.json +++ b/java-sdk-airtime/src/test/resources/promotion/promotion_list_by_country.json @@ -18,8 +18,8 @@ "title": "Digicel Haiti From 01 Jan 2021 00:00 To 01 Jan 2021 23:59 (GMT-05:00)", "title2": "Bonus 3X and 4X", "description": "
- The promotion will run from 00:01 am Friday, January 1st 2021, through to and including 11:59 pm Friday, January 1st 2021 (“The Promotion Period”)
- For top ups of  USD 10 / CAD 15 / GBP 8 / HTG 500 will receive 200% Bonus credit
- For top ups of  USD 15 / CAD 20 / GBP 12 / HTG 875 will receive 300% Bonus credit
- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls and SMS only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2021-01-01 10:00:00", - "endDate": "2021-01-02 09:59:00", + "startDate": "2021-01-01T10:00", + "endDate": "2021-01-02T09:59", "denominations": "USD 10 and up", "localDenominations": null }, @@ -30,8 +30,8 @@ "title": "Digicel Haiti From 24 Dec 2020 00:00 To 31 Dec 2020 23:59 (GMT-05:00)", "title2": "Bonus 3X to 4X", "description": "
- The promotion will run from 00:01 am Thursday, December 24th 2020, through to and including 11:59 pm Thursday, December 31st 2020 (“The Promotion Period”).
- See below the participant denominations for this promotion:
   - For USD$10 / CAD$ 15/ GBP$ 8 / Local Price 500 HTG, Customers will receive  200% Bonus Credit
   - For  USD$15 / CAD$ 20 /  GBP$12 / Local Price 875 HTG, Customers will receive  300% Bonus Credit

- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for Prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2020-12-24 10:00:00", - "endDate": "2021-01-01 09:59:00", + "startDate": "2020-12-24T10:00:00Z", + "endDate": "2021-01-01T09:59:00Z", "denominations": "USD 10 and 15", "localDenominations": null } diff --git a/java-sdk-airtime/src/test/resources/promotion/promotion_list_by_operator.json b/java-sdk-airtime/src/test/resources/promotion/promotion_list_by_operator.json index 6e972ce..0f90877 100644 --- a/java-sdk-airtime/src/test/resources/promotion/promotion_list_by_operator.json +++ b/java-sdk-airtime/src/test/resources/promotion/promotion_list_by_operator.json @@ -18,8 +18,8 @@ "title": "Digicel Haiti From 01 Jan 2021 00:00 To 01 Jan 2021 23:59 (GMT-05:00)", "title2": "Bonus 3X and 4X", "description": "
- The promotion will run from 00:01 am Friday, January 1st 2021, through to and including 11:59 pm Friday, January 1st 2021 (“The Promotion Period”)
- For top ups of  USD 10 / CAD 15 / GBP 8 / HTG 500 will receive 200% Bonus credit
- For top ups of  USD 15 / CAD 20 / GBP 12 / HTG 875 will receive 300% Bonus credit
- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls and SMS only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2021-01-01 10:00:00", - "endDate": "2021-01-02 09:59:00", + "startDate": "2021-01-01T10:00", + "endDate": "2021-01-02T09:59", "denominations": "USD 10 and up", "localDenominations": null }, @@ -30,8 +30,8 @@ "title": "Digicel Haiti From 24 Dec 2020 00:00 To 31 Dec 2020 23:59 (GMT-05:00)", "title2": "Bonus 3X to 4X", "description": "
- The promotion will run from 00:01 am Thursday, December 24th 2020, through to and including 11:59 pm Thursday, December 31st 2020 (“The Promotion Period”).
- See below the participant denominations for this promotion:
   - For USD$10 / CAD$ 15/ GBP$ 8 / Local Price 500 HTG, Customers will receive  200% Bonus Credit
   - For  USD$15 / CAD$ 20 /  GBP$12 / Local Price 875 HTG, Customers will receive  300% Bonus Credit

- The bonus minutes/credit is valid on the recipient’s mobile number for a total of 3 days from when it is applied.
- The bonus credit on the recipient’s Digicel mobile number can be used for Digicel to Digicel (on-net) calls only.
- Postpaid customers and Home and Entertainment customers are not eligible for the promotion.
- This promotion is only valid for Prepaid Digicel customers.
- Digicel will not be responsible for: (1) technical failures of any kind, including, but not limited to malfunctions, interruptions, or disconnections in network connections or hardware or software; (2) unauthorized human intervention in any part; or (3) technical or human error which may occur in the administration of this promotion.
- Digicel reserves the right to at any time vary the terms of the promotion, to amend its terms and conditions or to withdraw the promotion. In any of these events, notice will be given via media advertisements or messages to subscribers and will be effective immediately or as of the date referred to in such notifications.
- Digicel reserves the right to terminate, cancel, suspend and/or modify the promotion if any fraud, virus or other technical problem corrupts the administration, security, safety or proper play of the promotion. In such event, Digicel hereby specifically reserve the right (but not the obligation) to award some other prize hereunder by means of a random drawing from among the eligible entries received up until the time of the impairment.

\"\"", - "startDate": "2020-12-24 10:00:00", - "endDate": "2021-01-01 09:59:00", + "startDate": "2020-12-24T10:00:00Z", + "endDate": "2021-01-01T09:59:00Z", "denominations": "USD 10 and 15", "localDenominations": null } diff --git a/java-sdk-airtime/src/test/resources/promotion/promotion_unfiltered_page.json b/java-sdk-airtime/src/test/resources/promotion/promotion_unfiltered_page.json index 17d8294..427df18 100644 --- a/java-sdk-airtime/src/test/resources/promotion/promotion_unfiltered_page.json +++ b/java-sdk-airtime/src/test/resources/promotion/promotion_unfiltered_page.json @@ -19,8 +19,8 @@ "title": "Telenor Pakistan From 15 Apr 2020 00:00 To 31 Dec 2020 23:59 (GMT+05:00)", "title2": "Free data and minutes", "description": "Telenor Pakistan has an exciting offer for friends and family in Pakistan.
Top them up with Rs 100 and above and they get FREE 50 Telenor Mins & 500 SMS.

Activating the bonus is in 3 easy steps

Step 1: Receiver in Pakistan dials *345*260# and receives confirmation
\"\"

Step 2: Global Sender remits 100PKR to the receiver

Step 3: Receiver enjoys extra minutes and SMS valid for 24hrs
\"\"

Terms and Conditions:
* Bonus is usable for onnet calls, and local SMS
* Only 1 promo per day is allowed i.e. promo is applied on 1st 100 PKR recharge  
* Bonus is valid for the same day of recharge i.e  get a recharge from abroad at 11AM, the offer will expire at 23:59 same day.

Offer is valid until further notice.", - "startDate": "2020-04-14 23:00:00", - "endDate": "2020-12-31 23:59:00", + "startDate": "2020-04-14T23:00", + "endDate": "2020-12-31T23:59", "denominations": "USD 1 and above", "localDenominations": "PKR 100 and above" }, @@ -31,8 +31,8 @@ "title": "Econet Zimbabwe From 03 Jun 2020 00:01 To 31 Dec 2020 23:59 (GMT+02:00)", "title2": "Bonus 2x", "description": "Econet Zimbabwe 100% Bonus Promotion from 3rd June 2020 until further notice.

Terms and Conditions
1. Promotion runs from 3rd June 2020 until further notice.
2. Bonus will be rewarded for all denominations recharged.
3. Bonus applies to any number of recharges received.  
4. The normal and usual validity periods apply.
5. The airtime will credited into the main airtime account.


Example
2 US $ buys 50 ZWL Principal Airtime Recharge + 50 ZWL / RTGS Free Bonus Airtime Recharge = Total Amount Received 100 ZWL / RTGS  

 ", - "startDate": "2020-06-03 02:01:00", - "endDate": "2021-01-01 02:59:00", + "startDate": "2020-06-03T02:01:00Z", + "endDate": "2021-01-01T02:59:00Z", "denominations": "USD 1 and above", "localDenominations": "USD 1 and above" }, diff --git a/java-sdk-core/src/main/java/software/reloadly/sdk/core/internal/adapter/JackSonDateDeserializer.java b/java-sdk-core/src/main/java/software/reloadly/sdk/core/internal/adapter/JackSonDateDeserializer.java index 184adda..97a624b 100644 --- a/java-sdk-core/src/main/java/software/reloadly/sdk/core/internal/adapter/JackSonDateDeserializer.java +++ b/java-sdk-core/src/main/java/software/reloadly/sdk/core/internal/adapter/JackSonDateDeserializer.java @@ -5,16 +5,30 @@ import com.fasterxml.jackson.databind.JsonDeserializer; import java.io.IOException; -import java.text.ParseException; -import java.text.SimpleDateFormat; +import java.time.Instant; +import java.time.LocalDateTime; +import java.time.OffsetDateTime; +import java.time.ZoneId; +import java.time.format.DateTimeFormatter; +import java.time.format.DateTimeParseException; +import java.time.temporal.TemporalAccessor; import java.util.Date; public class JackSonDateDeserializer extends JsonDeserializer { @Override public Date deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException { try { - return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(jsonParser.getText()); - } catch (ParseException e) { + TemporalAccessor temporalAccessor = DateTimeFormatter.ofPattern("yyyy-MM-dd[ ]['T']HH:mm[:ss][X]") + .parseBest(jsonParser.getText(), OffsetDateTime::from, LocalDateTime::from); + + if (temporalAccessor instanceof OffsetDateTime) { + return Date.from(((OffsetDateTime) temporalAccessor).toInstant()); + } else if (temporalAccessor instanceof LocalDateTime) { + return Date.from(((LocalDateTime) temporalAccessor).atZone(ZoneId.of("UTC")).toInstant()); + } else { + return Date.from(Instant.from(temporalAccessor)); + } + } catch (DateTimeParseException e) { throw new RuntimeException(e); } }