Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.0.1 #29

Merged
merged 29 commits into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
c3ab053
Feature/api-client (#1)
erenalpaslan Mar 8, 2023
b0943a3
feat(cart-api): Refactor carts api (#2)
erenalpaslan Mar 8, 2023
7e0d7d9
feat(collection-api): Refactor collection api (#3)
erenalpaslan Mar 8, 2023
d98eda6
feat(customer-api): Refactor customers api (#4)
erenalpaslan Mar 9, 2023
5118b6f
feat(invite-api): Refactor invite api (#5)
erenalpaslan Mar 9, 2023
2440e14
Feature/gift card api (#6)
erenalpaslan Mar 9, 2023
7f5feaa
feat(order-api): Refactor orders api (#7)
erenalpaslan Mar 9, 2023
d05effe
Feature/order api (#8)
erenalpaslan Mar 9, 2023
301d516
feat(order-edit-api): Refactor order edits api (#9)
erenalpaslan Mar 10, 2023
8b22b6f
feat(payment-collection-api): Refactor payment collection api (#10)
erenalpaslan Mar 10, 2023
448517e
feat(product-api): Refactor product api (#11)
erenalpaslan Mar 10, 2023
9f8e5f5
feat(product-category-api): Refactor product category api (#12)
erenalpaslan Mar 10, 2023
7fd7fcc
feat(product-tags-api): Refactor product tags api (#13)
erenalpaslan Mar 10, 2023
c1fdd9f
feat(return-reason-api): Refactor return reason api (#14)
erenalpaslan Mar 11, 2023
815bdfe
feat(shipping-options-api): Refactor shipping options api (#15)
erenalpaslan Mar 11, 2023
cc7e531
feat(return-api): Refactor return api (#16)
erenalpaslan Mar 11, 2023
f7d0413
feat(swap-api): Refactor swap api (#17)
erenalpaslan Mar 11, 2023
4d7f00d
feat(product-type-api): Refactor product type api (#18)
erenalpaslan Mar 11, 2023
c9fc9b1
feat(product-variant-api): Refactor product variant api (#19)
erenalpaslan Mar 11, 2023
99aa2f6
feat(region-api): Refactor region api (#20)
erenalpaslan Mar 11, 2023
bcf3243
feat(invite-api): Refactor invite api (#21)
erenalpaslan Mar 11, 2023
4020957
feat(pipeline): Implement github actions flow and update pom (#22)
erenalpaslan Mar 11, 2023
cc2f2ea
Feature/pipeline (#23)
erenalpaslan Mar 11, 2023
cd51ab9
Feature/pipeline (#24)
erenalpaslan Mar 11, 2023
f18549c
Feature/pipeline (#25)
erenalpaslan Mar 11, 2023
0fd9eed
Merge branch 'master' into develop
erenalpaslan Mar 13, 2023
0cccb06
feat(medusa-api): Adds cookie session management
erenalpaslan Apr 20, 2023
e5f8716
build: Updates version to 1.0.1
erenalpaslan Apr 20, 2023
a3334d1
Merge branch 'master' into release/1.0.1
erenalpaslan Apr 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

111 changes: 55 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,30 +131,29 @@ Please follow the [installation](#installation) instruction and execute the foll
import mobi.appcent.medusa.store.MedusaSdkClient;
import mobi.appcent.medusa.store.ApiException;
import mobi.appcent.medusa.store.api.AuthApi;
import mobi.appcent.medusa.store.auth.ApiKeyAuth;
import mobi.appcent.medusa.store.model.response.StoreAuthRes;
import mobi.appcent.medusa.store.model.response.StoreGetAuthEmailRes;
import mobi.appcent.medusa.store.model.response.StorePostAuthReq;

public class AuthApiExample {

public static void main(String[] args) {
MedusaSdkClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: cookie_auth
ApiKeyAuth cookie_auth = (ApiKeyAuth) defaultClient.getAuthentication("cookie_auth");
cookie_auth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//cookie_auth.setApiKeyPrefix("Token");

AuthApi apiInstance = new AuthApi();
try {
apiInstance.deleteAuth();
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#deleteAuth");
e.printStackTrace();
public static void main(String[] args) {
MedusaSdkClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: cookie_auth
ApiKeyAuth cookie_auth = (ApiKeyAuth) defaultClient.getAuthentication("cookie_auth");
cookie_auth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//cookie_auth.setApiKeyPrefix("Token");

AuthApi apiInstance = new AuthApi();
try {
apiInstance.deleteAuth();
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#deleteAuth");
e.printStackTrace();
}
}
}
}
import mobi.appcent.medusa.store.*;
import mobi.appcent.medusa.store.auth.*;
Expand All @@ -166,24 +165,24 @@ import mobi.appcent.medusa.store.*;

public class AuthApiExample {

public static void main(String[] args) {
MedusaSdkClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: cookie_auth
ApiKeyAuth cookie_auth = (ApiKeyAuth) defaultClient.getAuthentication("cookie_auth");
cookie_auth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//cookie_auth.setApiKeyPrefix("Token");

AuthApi apiInstance = new AuthApi();
try {
StoreAuthRes result = apiInstance.getAuth();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#getAuth");
e.printStackTrace();
public static void main(String[] args) {
MedusaSdkClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: cookie_auth
ApiKeyAuth cookie_auth = (ApiKeyAuth) defaultClient.getAuthentication("cookie_auth");
cookie_auth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//cookie_auth.setApiKeyPrefix("Token");

AuthApi apiInstance = new AuthApi();
try {
StoreAuthRes result = apiInstance.getAuth();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#getAuth");
e.printStackTrace();
}
}
}
}
import mobi.appcent.medusa.store.*;
import mobi.appcent.medusa.store.auth.*;
Expand All @@ -195,18 +194,18 @@ import mobi.appcent.medusa.store.*;

public class AuthApiExample {

public static void main(String[] args) {

AuthApi apiInstance = new AuthApi();
String email = "email_example"; // String | The email to check if exists.
try {
StoreGetAuthEmailRes result = apiInstance.getAuthEmail(email);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#getAuthEmail");
e.printStackTrace();
public static void main(String[] args) {

AuthApi apiInstance = new AuthApi();
String email = "email_example"; // String | The email to check if exists.
try {
StoreGetAuthEmailRes result = apiInstance.getAuthEmail(email);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#getAuthEmail");
e.printStackTrace();
}
}
}
}
import mobi.appcent.medusa.store.*;
import mobi.appcent.medusa.store.auth.*;
Expand All @@ -218,18 +217,18 @@ import mobi.appcent.medusa.store.*;

public class AuthApiExample {

public static void main(String[] args) {

AuthApi apiInstance = new AuthApi();
StorePostAuthReq body = new StorePostAuthReq(); // StorePostAuthReq |
try {
StoreAuthRes result = apiInstance.postAuth(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#postAuth");
e.printStackTrace();
public static void main(String[] args) {

AuthApi apiInstance = new AuthApi();
StorePostAuthReq body = new StorePostAuthReq(); // StorePostAuthReq |
try {
StoreAuthRes result = apiInstance.postAuth(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#postAuth");
e.printStackTrace();
}
}
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'mobi.appcent'
version = '1.0.0'
version = '1.0.1'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>mobi.appcent</groupId>
<artifactId>medusa-java-sdk</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<name>medusa-java-sdk</name>

<repositories>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/mobi/appcent/medusa/store/MedusaApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ private void initializeSdkClients() {
orderEditApi.setApiClient(defaultMedusaSdkClient);
paymentCollectionApi.setApiClient(defaultMedusaSdkClient);
productApi.setApiClient(defaultMedusaSdkClient);
productTagApi.setApiClient(defaultMedusaSdkClient);
productTypeApi.setApiClient(defaultMedusaSdkClient);
productVariantApi.setApiClient(defaultMedusaSdkClient);
regionApi.setApiClient(defaultMedusaSdkClient);
Expand Down
Loading