Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
250180a
[Automated] Update the toml files
RNViththagan Jun 13, 2025
d117c23
added .env
RNViththagan Jun 13, 2025
b53668e
paypal open API Specification added
RNViththagan Jun 13, 2025
99ccb47
Update sanitation document for OpenAPI specification: rename schemas …
RNViththagan Jun 13, 2025
9a93093
Add utility functions for encoding and serialization in Ballerina
RNViththagan Jun 18, 2025
87be740
Implement PayPal subscription management functions in Ballerina client
RNViththagan Jun 18, 2025
2a4cd1d
Implement feature X to enhance user experience and optimize performance
RNViththagan Jun 18, 2025
7503568
[Automated] Update the toml files
RNViththagan Jun 18, 2025
4acf2b0
Add tests for PayPal subscription management functions
RNViththagan Jun 18, 2025
a3a2b81
Implement mock service for billing plans with GET and POST endpoints
RNViththagan Jun 18, 2025
1b60dc6
Add temporary product ID return for non-live server in createProduct …
RNViththagan Jun 18, 2025
243e4a5
Fix JSON key formatting in createProduct function
RNViththagan Jun 18, 2025
c250c84
Add GET endpoint to retrieve billing plan details by ID
RNViththagan Jun 18, 2025
7e67d49
Add test for retrieving a specific billing plan by ID
RNViththagan Jun 18, 2025
ddda3f9
Update billing plan ID in post plans function and add patch plans end…
RNViththagan Jun 18, 2025
0fd8e95
Add test for updating a billing plan with patch request
RNViththagan Jun 18, 2025
b1a60a2
Add tests for plan activation, deactivation, and pricing scheme updates
RNViththagan Jun 19, 2025
a1b48cf
Enhance mock service with activate, deactivate, and update pricing fu…
RNViththagan Jun 19, 2025
28e6eaa
regenerated client.bal and types.bal
RNViththagan Jun 19, 2025
26c9e95
Refactor flatten specification with input sanitization
RNViththagan Jun 19, 2025
31f75c7
Refactor test cases for PayPal Billing Plans API with consistent nami…
RNViththagan Jun 19, 2025
f9177c5
Refactor mock service resource function signatures for consistent nam…
RNViththagan Jun 19, 2025
a23e4b3
Add test cases for PayPal Billing Subscriptions including create, get…
RNViththagan Jun 19, 2025
7352a8f
Add mock service functions for managing subscriptions including creat…
RNViththagan Jun 19, 2025
db4221e
Update sanitation document for OpenAPI specification: modify server U…
RNViththagan Jun 20, 2025
1df0b17
Add copyright notice and license information to multiple Ballerina files
RNViththagan Jun 20, 2025
7326908
Update sanitation document: correct OpenAPI client generation command…
RNViththagan Jun 20, 2025
6ec9ef5
[Automated] Update the toml files
RNViththagan Jun 20, 2025
4da25f6
[Automated] Update the toml files
RNViththagan Jun 24, 2025
ea3e9cd
[Automated] Update the toml files
RNViththagan Jun 24, 2025
33e97d0
[Automated] Update the toml files
RNViththagan Jun 24, 2025
2f8ca5b
[Automated] Update the toml files
RNViththagan Jun 24, 2025
4a8e91d
Refactor authentication configuration to simplify clientId and client…
RNViththagan Jun 24, 2025
6f8b5f6
Refactor PayPal client initialization to streamline connection setup
RNViththagan Jun 24, 2025
acef0ce
Refactor test cases to remove unnecessary logging and streamline code
RNViththagan Jun 24, 2025
7b9f8b0
Update ballerinaGradlePluginVersion to 2.3.0
RNViththagan Jun 24, 2025
d721d69
[Automated] Update the toml files
RNViththagan Jun 24, 2025
775198e
Add keywords and icon to Ballerina.toml
RNViththagan Jun 24, 2025
72f5c1a
Add icon image for Ballerina project
RNViththagan Jun 24, 2025
6a4d7e2
Fix syntax errors and streamline test dependencies in subscription tests
RNViththagan Jun 24, 2025
4755d35
Refactor client configuration and ensure type safety
RNViththagan Jun 24, 2025
a2a7376
Refactor sanitation steps to clarify API path updates and server URL …
RNViththagan Jun 24, 2025
7abb358
Add README for running tests in PayPal Subscriptions connector
RNViththagan Jun 24, 2025
fb44c5b
Simplify response handling in testSuspendSubscription by removing err…
RNViththagan Jun 24, 2025
ecdb98e
Update OpenAPI specification with new sanitization steps
RNViththagan Jun 25, 2025
4aa589b
Update sanitation documentation for OpenAPI specification
RNViththagan Jun 25, 2025
f1d89d9
Update files based on new sanitized spec
RNViththagan Jun 25, 2025
9c6c899
Refactor resource function signatures and payload types
RNViththagan Jun 25, 2025
93752ee
Update sanitations.md for PayPal Subscriptions connector
RNViththagan Jun 25, 2025
5cad180
Remove commented tokenUrl from connection configuration in tests
RNViththagan Jun 25, 2025
d4f1926
Add license option to OpenAPI client generation command
RNViththagan Jun 25, 2025
d84cd9c
Remove unnecessary response checks from subscription and plan test fu…
RNViththagan Jun 25, 2025
09d3d19
Refactor test configuration and improve documentation for OpenAPI san…
RNViththagan Jun 26, 2025
9571eb6
Fix keyword casing in Ballerina.toml for consistency
RNViththagan Jun 26, 2025
6a1be55
[Automated] Update the toml files
RNViththagan Jun 26, 2025
3d6f7c8
Remove unnecessary error handling
RNViththagan Jun 26, 2025
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ build

# Ignore Docker env file
docker.env

.env
5 changes: 3 additions & 2 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ name = "paypal.subscriptions"
version = "1.0.0"
license = ["Apache-2.0"]
authors = ["Ballerina"]
keywords = []
# icon = "icon.png" # TODO: update icon.png
keywords = ["PayPal", "Subscriptions", "Plans","Billing", "Payments", "Recurring", "Connector"]
icon = "icon.png"

repository = "https://github.com/ballerina-platform/module-ballerinax-paypal.subscriptions"

[build-options]
Expand Down
350 changes: 350 additions & 0 deletions ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,350 @@
# AUTO-GENERATED FILE. DO NOT MODIFY.

# This file is auto-generated by Ballerina for managing dependency versions.
# It should not be modified by hand.

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.12.0"

[[package]]
org = "ballerina"
name = "auth"
version = "2.14.0"
dependencies = [
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.array"},
{org = "ballerina", name = "lang.string"},
{org = "ballerina", name = "log"}
]

[[package]]
org = "ballerina"
name = "cache"
version = "3.10.0"
dependencies = [
{org = "ballerina", name = "constraint"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "task"},
{org = "ballerina", name = "time"}
]

[[package]]
org = "ballerina"
name = "constraint"
version = "1.7.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
modules = [
{org = "ballerina", packageName = "constraint", moduleName = "constraint"}
]

[[package]]
org = "ballerina"
name = "crypto"
version = "2.9.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "time"}
]

[[package]]
org = "ballerina"
name = "data.jsondata"
version = "1.1.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.object"}
]
modules = [
{org = "ballerina", packageName = "data.jsondata", moduleName = "data.jsondata"}
]

[[package]]
org = "ballerina"
name = "file"
version = "1.12.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "os"},
{org = "ballerina", name = "time"}
]

[[package]]
org = "ballerina"
name = "http"
version = "2.14.2"
dependencies = [
{org = "ballerina", name = "auth"},
{org = "ballerina", name = "cache"},
{org = "ballerina", name = "constraint"},
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "data.jsondata"},
{org = "ballerina", name = "file"},
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "jwt"},
{org = "ballerina", name = "lang.array"},
{org = "ballerina", name = "lang.decimal"},
{org = "ballerina", name = "lang.int"},
{org = "ballerina", name = "lang.regexp"},
{org = "ballerina", name = "lang.runtime"},
{org = "ballerina", name = "lang.string"},
{org = "ballerina", name = "lang.value"},
{org = "ballerina", name = "log"},
{org = "ballerina", name = "mime"},
{org = "ballerina", name = "oauth2"},
{org = "ballerina", name = "observe"},
{org = "ballerina", name = "time"},
{org = "ballerina", name = "url"}
]
modules = [
{org = "ballerina", packageName = "http", moduleName = "http"},
{org = "ballerina", packageName = "http", moduleName = "http.httpscerr"}
]

[[package]]
org = "ballerina"
name = "io"
version = "1.8.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.value"}
]

[[package]]
org = "ballerina"
name = "jballerina.java"
version = "0.0.0"

[[package]]
org = "ballerina"
name = "jwt"
version = "2.15.0"
dependencies = [
{org = "ballerina", name = "cache"},
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.int"},
{org = "ballerina", name = "lang.string"},
{org = "ballerina", name = "log"},
{org = "ballerina", name = "time"}
]

[[package]]
org = "ballerina"
name = "lang.__internal"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.object"}
]

[[package]]
org = "ballerina"
name = "lang.array"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.__internal"}
]

[[package]]
org = "ballerina"
name = "lang.decimal"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.error"
version = "0.0.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.int"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.__internal"},
{org = "ballerina", name = "lang.object"}
]

[[package]]
org = "ballerina"
name = "lang.object"
version = "0.0.0"

[[package]]
org = "ballerina"
name = "lang.regexp"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.runtime"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "lang.string"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.regexp"}
]

[[package]]
org = "ballerina"
name = "lang.value"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "log"
version = "2.12.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.value"},
{org = "ballerina", name = "observe"}
]
modules = [
{org = "ballerina", packageName = "log", moduleName = "log"}
]

[[package]]
org = "ballerina"
name = "mime"
version = "2.12.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.int"},
{org = "ballerina", name = "log"}
]

[[package]]
org = "ballerina"
name = "oauth2"
version = "2.14.0"
dependencies = [
{org = "ballerina", name = "cache"},
{org = "ballerina", name = "crypto"},
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "log"},
{org = "ballerina", name = "time"},
{org = "ballerina", name = "url"}
]

[[package]]
org = "ballerina"
name = "observe"
version = "1.5.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "os"
version = "1.10.0"
dependencies = [
{org = "ballerina", name = "io"},
{org = "ballerina", name = "jballerina.java"}
]

[[package]]
org = "ballerina"
name = "task"
version = "2.7.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "time"}
]

[[package]]
org = "ballerina"
name = "test"
version = "0.0.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "lang.array"},
{org = "ballerina", name = "lang.error"}
]
modules = [
{org = "ballerina", packageName = "test", moduleName = "test"}
]

[[package]]
org = "ballerina"
name = "time"
version = "2.7.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
modules = [
{org = "ballerina", packageName = "time", moduleName = "time"}
]

[[package]]
org = "ballerina"
name = "url"
version = "2.6.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
]
modules = [
{org = "ballerina", packageName = "url", moduleName = "url"}
]

[[package]]
org = "ballerinai"
name = "observe"
version = "0.0.0"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
{org = "ballerina", name = "observe"}
]
modules = [
{org = "ballerinai", packageName = "observe", moduleName = "observe"}
]

[[package]]
org = "ballerinax"
name = "paypal.subscriptions"
version = "1.0.0"
dependencies = [
{org = "ballerina", name = "constraint"},
{org = "ballerina", name = "data.jsondata"},
{org = "ballerina", name = "http"},
{org = "ballerina", name = "log"},
{org = "ballerina", name = "test"},
{org = "ballerina", name = "time"},
{org = "ballerina", name = "url"},
{org = "ballerinai", name = "observe"}
]
modules = [
{org = "ballerinax", packageName = "paypal.subscriptions", moduleName = "paypal.subscriptions"}
]

Loading
Loading