{"id":28577603,"url":"https://github.com/mastercard/loyalty-wifi-reference-app","last_synced_at":"2026-01-20T16:22:27.944Z","repository":{"id":39946916,"uuid":"233628666","full_name":"Mastercard/loyalty-wifi-reference-app","owner":"Mastercard","description":"Loyalty WiFi API reference client application using the Open API generator","archived":false,"fork":false,"pushed_at":"2023-03-23T15:52:00.000Z","size":91,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-11T00:49:01.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mastercard.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-13T15:32:02.000Z","updated_at":"2021-12-17T09:15:02.000Z","dependencies_parsed_at":"2025-06-11T00:39:27.632Z","dependency_job_id":"b9653ba8-d458-4542-8ac8-97a6ceeda20b","html_url":"https://github.com/Mastercard/loyalty-wifi-reference-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mastercard/loyalty-wifi-reference-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mastercard%2Floyalty-wifi-reference-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mastercard%2Floyalty-wifi-reference-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mastercard%2Floyalty-wifi-reference-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mastercard%2Floyalty-wifi-reference-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mastercard","download_url":"https://codeload.github.com/Mastercard/loyalty-wifi-reference-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mastercard%2Floyalty-wifi-reference-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28606903,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-11T00:38:32.632Z","updated_at":"2026-01-20T16:22:27.935Z","avatar_url":"https://github.com/Mastercard.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# loyalty-wifi-client\n\nLoyalty Wifi API\n- API version: 1.0.0\n  - Build date: 2020-01-07T11:17:22.737-06:00[America/Chicago]\n\nThe Loyalty Boingo Wifi API offers cardholders, via their issuers, the ability to search and connect to Mastercard Global Wifi hotspots around the world through this digital channel. These APIs can be used to build a rich, interactive wifi experience within the issuer's existing mobile or web application.\n\n\n*Automatically generated by the [OpenAPI Generator](https://openapi-generator.tech)*\n\n\n## Requirements\n\nBuilding the API client library requires:\n1. Java 1.7+\n2. Maven/Gradle\n\n## Installation\n\nTo install the API client library to your local Maven repository, simply execute:\n\n```shell\nmvn clean install\n```\n\nTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:\n\n```shell\nmvn clean deploy\n```\n\nRefer to the [OSSRH Guide](http://central.sonatype.org/pages/ossrh-guide.html) for more information.\n\n### Maven users\n\nAdd this dependency to your project's POM:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.mastercard.developer\u003c/groupId\u003e\n  \u003cartifactId\u003eloyalty-wifi-client\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n  \u003cscope\u003ecompile\u003c/scope\u003e\n\u003c/dependency\u003e\n```\n\n### Gradle users\n\nAdd this dependency to your project's build file:\n\n```groovy\ncompile \"com.mastercard.developer:loyalty-wifi-client:1.0.0\"\n```\n\n### Others\n\nAt first generate the JAR by executing:\n\n```shell\nmvn clean package\n```\n\nThen manually install the following JARs:\n\n* `target/loyalty-wifi-client-1.0.0.jar`\n* `target/lib/*.jar`\n\n## Getting Started\n\nPlease follow the [Steps to run the application from command line](#steps-to-run-the-application-from-command-line) to see how it works from command line.\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *https://api.mastercard.com*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*BundleProfileApi* | [**createUser**](docs/BundleProfileApi.md#createUser) | **POST** /bundle/profile/users | Create Profile\n*BundleProfileApi* | [**patchUser**](docs/BundleProfileApi.md#patchUser) | **POST** /bundle/profile/users/{user_id}/patch | Partially Update Profile\n*BundleProfileApi* | [**readUser**](docs/BundleProfileApi.md#readUser) | **GET** /bundle/profile/users/{user_id} | Find User by Id\n*WiFiApi* | [**loyaltyWifiHotspotsGet**](docs/WiFiApi.md#loyaltyWifiHotspotsGet) | **GET** /loyalty/wifi/hotspots | Find Wi-Fi hotspots nearby\n\n\n## Documentation for Models\n\n - [Account](docs/Account.md)\n - [Address](docs/Address.md)\n - [BundleUser](docs/BundleUser.md)\n - [BundleUserData](docs/BundleUserData.md)\n - [BundleUserPatch](docs/BundleUserPatch.md)\n - [BundleUserResponse](docs/BundleUserResponse.md)\n - [BundleUserResponseData](docs/BundleUserResponseData.md)\n - [BundleUserResponseErrors](docs/BundleUserResponseErrors.md)\n - [Consent](docs/Consent.md)\n - [Email](docs/Email.md)\n - [Error](docs/Error.md)\n - [ErrorItem](docs/ErrorItem.md)\n - [ErrorItems](docs/ErrorItems.md)\n - [ErrorItemsErrors](docs/ErrorItemsErrors.md)\n - [Errors](docs/Errors.md)\n - [ErrorsErrors](docs/ErrorsErrors.md)\n - [Hotspot](docs/Hotspot.md)\n - [Identification](docs/Identification.md)\n - [Im](docs/Im.md)\n - [Name](docs/Name.md)\n - [PatchDocument](docs/PatchDocument.md)\n - [PhoneNumber](docs/PhoneNumber.md)\n - [Photo](docs/Photo.md)\n - [User](docs/User.md)\n - [UserProduct](docs/UserProduct.md)\n - [UserProductResponse](docs/UserProductResponse.md)\n - [UserReadAccountResponse](docs/UserReadAccountResponse.md)\n\n\n## Documentation for Authorization\n\nAll endpoints do not require authorization.\nAuthentication schemes defined for the API:\n\n## Recommendation\n\nIt's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.\n\n## Author\n\nloyalty-benefits-support@mastercard.flowdock.com\n\n# Steps to run the application from command line\n              \n- Create a new project from Mastercard DevZone - stage.developer.mastercard.com or developer.mastercard.com\n- Select \"Loyalty Wifi\" from Choose API dropdown and hit continue.\n- Get Sandbox keys and store your .p12 certificate along with the readme/documentation.\n- Please save this Sandbox Keys, .p12, key store password and alias as you are going to use these to run the application.\n- Clone this repository and set up as Maven project\n- Update the following keys in application.properties file\n    - *mastercard.wifi.ref.app.consumer.key*: This can be found in the project you created on developerZone\n    - *mastercard.wifi.ref.app.keystore.path*: Path where you saved your certs i.e., .p12 file you received while creating a project\n    - *mastercard.wifi.ref.app.keystore.password*: This is the password you get with Sandbox cert.\n    - *mastercard.wifi.ref.app.keystore.alias*: This is the alias you get with Sandbox cert.\n    \n- Example:\n    - mastercard.wifi.ref.app.url = https://stage.api.mastercard.com\n    - mastercard.wifi.ref.app.consumer.key = Abcdfefgjhilklmnopqrstuvwxyz-dxcq_zD7IiPa0df175e!22a7fddba56e800000000000000000\n    - mastercard.wifi.ref.app.keystore.path = C:\\\\path\\\\provided.p12\n    - mastercard.wifi.ref.app.keystore.password = pwd\n    - mastercard.wifi.ref.app.keystore.alias = alias\n\n\t\n- Do a clean build either through IDE or command prompt, if you are doing it through command prompt then the below command should be executed in the directory which contains this repository's pom file\n    Eg: mvn clean install\n- Run the application using below command \n    - Eg: `java -jar path of the Jar relative to the current directory/loyalty-wifi-client-1.0.0.jar \u003cargument\u003e`\n    - Argument: An argument which defines the feature user wants to run through command line. If you don't specify this argument, it will run all the features(registration,lounges,loungeDetails,dmc,entitlement and loungeHistory, error) one after the other\n        - registration : Registration for wifi service.\n        - hotspot : Get Hotspots for Wi-Fi\n        - error : Error scenario for registering the user for Wi-Fi service      \n               \n- Command line example to run the application: \n    - `java -jar target/loyalty-wifi-client-1.0.0.jar hotspot` here the application runs only hotspot feature. if you want to run more than one feature then specify the features with comma separated. Eg: `java -jar target/loyalty-wifi-client-1.0.0.jar hotspot,registration,error` here it executes only these 3 features.You can remove the argument to run all the features Eg: `java -jar target/loyalty-wifi-client-1.0.0.jar`. If you want to run the feature one by one then execute the command `java -jar target/loyalty-wifi-client-1.0.0.jar hotspot` then again run the command with different feature `java -jar target/loyalty-wifi-client-1.0.0.jar registration` and so on.\n    \n# Sandbox Testing\n\nIf you would like to test this in Sandbox environment please contact Mastercard representative to set up you or your organization in this environment because if this does not happen the authorization fails in the Loyalty Wifi Service API. All the URLs have a prefix `reference` in this reference application for all resources of Loyalty Wifi Service API so that it deals with sample data. You need to remove this `reference` word from the URLs when testing against real data. Eg: `/loyalty/wifi/reference` just for reference application and `/loyalty/wifi` to test against real data.\n\nWhile testing the application with a `reference(/loyalty/wifi/reference)` url you need to send the exact inputs that are used in this reference application to get the desired response otherwise the mock returns an error with a message 'the request does not match'.\n    \n \nFind the [service documentation](https://developer.mastercard.com/documentation/loyalty-wifi) for more information. \n\nClient libraries can be generated for a simplified integration with the reference service, [for more details](https://developer.mastercard.com/blog/consuming-mastercard-apis-in-client-applications)\n\n\nCopyright (c) 2019 Mastercard\n \nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n \n    http://www.apache.org/licenses/LICENSE-2.0\n \nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastercard%2Floyalty-wifi-reference-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmastercard%2Floyalty-wifi-reference-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastercard%2Floyalty-wifi-reference-app/lists"}