-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from razorpay/registration_entity_n_utils_mock
registration entity and utils mock
- Loading branch information
Showing
4 changed files
with
105 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.razorpay; | ||
|
||
import org.json.JSONObject; | ||
|
||
public class SubscriptionRegistration extends Entity { | ||
|
||
public SubscriptionRegistration(JSONObject jsonObject) { | ||
super(jsonObject); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/razorpay/SubscriptionRegistrationClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.razorpay; | ||
|
||
import java.io.IOException; | ||
import java.net.URISyntaxException; | ||
import java.util.List; | ||
|
||
import org.json.JSONException; | ||
import org.json.JSONObject; | ||
|
||
public class SubscriptionRegistrationClient extends ApiClient { | ||
|
||
SubscriptionRegistrationClient(String auth, ApiUtils apiUtils) { | ||
super(auth,apiUtils); | ||
} | ||
|
||
public Invoice create(JSONObject request) throws RazorpayException, JSONException, IOException, URISyntaxException { | ||
return post(Constants.SUBSCRIPTION_REGISTRATION_LINK, request); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters