Skip to content

Commit

Permalink
Merge branch 'main' into swsapar-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
supremar authored Aug 12, 2023
2 parents 356d9c9 + 6f8a0f1 commit 9a9d92d
Show file tree
Hide file tree
Showing 18 changed files with 176 additions and 298 deletions.
44 changes: 16 additions & 28 deletions openapi/billing_subscriptions_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.6"
},
"paths": {
"/plans": {

This comment has been minimized.

Copy link
@ribeiromarilene

ribeiromarilene Sep 24, 2023

openapi/catalogs_products_v1.json

"/v1/billing/plans": {

This comment has been minimized.

"post": {
"summary": "Create plan",
"description": "Creates a plan that defines pricing and billing cycle details for subscriptions.",
Expand Down Expand Up @@ -269,7 +269,7 @@
]
}
},
"/plans/{id}": {
"/v1/billing/plans/{id}": {
"get": {
"summary": "Show plan details",
"description": "Shows details for a plan, by ID.",
Expand Down Expand Up @@ -488,7 +488,7 @@
]
}
},
"/plans/{id}/activate": {
"/v1/billing/plans/{id}/activate": {
"post": {
"summary": "Activate plan",
"description": "Activates a plan, by ID.",
Expand Down Expand Up @@ -592,7 +592,7 @@
]
}
},
"/plans/{id}/deactivate": {
"/v1/billing/plans/{id}/deactivate": {
"post": {
"summary": "Deactivate plan",
"description": "Deactivates a plan, by ID.",
Expand Down Expand Up @@ -696,7 +696,7 @@
]
}
},
"/plans/{id}/update-pricing-schemes": {
"/v1/billing/plans/{id}/update-pricing-schemes": {
"post": {
"summary": "Update pricing",
"description": "Updates pricing for a plan. For example, you can update a regular billing cycle from $5 per month to $7 per month.",
Expand Down Expand Up @@ -831,7 +831,7 @@
]
}
},
"/subscriptions": {
"/v1/billing/subscriptions": {
"post": {
"summary": "Create subscription",
"description": "Creates a subscription.",
Expand Down Expand Up @@ -979,7 +979,7 @@
]
}
},
"/subscriptions/{id}": {
"/v1/billing/subscriptions/{id}": {
"get": {
"summary": "Show subscription details",
"description": "Shows details for a subscription, by ID.",
Expand Down Expand Up @@ -1198,7 +1198,7 @@
]
}
},
"/subscriptions/{id}/revise": {
"/v1/billing/subscriptions/{id}/revise": {
"post": {
"summary": "Revise plan or quantity of subscription",
"description": "Updates the quantity of the product or service in a subscription. You can also use this method to switch the plan and update the `shipping_amount`, `shipping_address` values for the subscription. This type of update requires the buyer's consent.",
Expand Down Expand Up @@ -1345,7 +1345,7 @@
]
}
},
"/subscriptions/{id}/suspend": {
"/v1/billing/subscriptions/{id}/suspend": {
"post": {
"summary": "Suspend subscription",
"description": "Suspends the subscription.",
Expand Down Expand Up @@ -1480,7 +1480,7 @@
]
}
},
"/subscriptions/{id}/cancel": {
"/v1/billing/subscriptions/{id}/cancel": {
"post": {
"summary": "Cancel subscription",
"description": "Cancels the subscription.",
Expand Down Expand Up @@ -1615,7 +1615,7 @@
]
}
},
"/subscriptions/{id}/activate": {
"/v1/billing/subscriptions/{id}/activate": {
"post": {
"summary": "Activate subscription",
"description": "Activates the subscription.",
Expand Down Expand Up @@ -1750,7 +1750,7 @@
]
}
},
"/subscriptions/{id}/capture": {
"/v1/billing/subscriptions/{id}/capture": {
"post": {
"summary": "Capture authorized payment on subscription",
"description": "Captures an authorized payment from the subscriber on the subscription.",
Expand Down Expand Up @@ -1898,7 +1898,7 @@
]
}
},
"/subscriptions/{id}/transactions": {
"/v1/billing/subscriptions/{id}/transactions": {
"get": {
"summary": "List transactions for subscription",
"description": "Lists transactions for a subscription.",
Expand Down Expand Up @@ -2031,26 +2031,14 @@
},
"servers": [
{
"url": "https://api-m.sandbox.paypal.com/v1/billing",
"url": "https://api-m.sandbox.paypal.com",
"description": "PayPal Sandbox Environment"
},
{
"url": "https://api-m.paypal.com/v1/billing",
"url": "https://api-m.paypal.com",
"description": "PayPal Live Environment"
}
],
"security": [
{
"sandbox": [
"https://uri.paypal.com/services/subscriptions"
]
},
{
"production": [
"https://uri.paypal.com/services/subscriptions"
]
}
],
"components": {
"requestBodies": {
"patch_request": {
Expand Down Expand Up @@ -2086,7 +2074,7 @@
"description": "Oauth 2.0 authentication",
"flows": {
"clientCredentials": {
"tokenUrl": "https://api-m.paypal.com/v1/oauth2/token",
"tokenUrl": "/v1/oauth2/token",
"scopes": {
"https://uri.paypal.com/services/subscriptions": "Manage plan & subscription"
}
Expand Down
22 changes: 5 additions & 17 deletions openapi/catalogs_products_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.0"
},
"paths": {
"/products": {
"/v1/catalogs/products": {
"post": {
"summary": "Create product",
"description": "Creates a product.",
Expand Down Expand Up @@ -242,7 +242,7 @@
]
}
},
"/products/{product_id}": {
"/v1/catalogs/products/{product_id}": {
"get": {
"summary": "Show product details",
"description": "Shows details for a product, by ID.",
Expand Down Expand Up @@ -481,26 +481,14 @@
},
"servers": [
{
"url": "https://api-m.sandbox.paypal.com/v1/catalogs",
"url": "https://api-m.sandbox.paypal.com",
"description": "PayPal Sandbox Environment"
},
{
"url": "https://api-m.paypal.com/v1/catalogs",
"url": "https://api-m.paypal.com",
"description": "PayPal Live Environment"
}
],
"security": [
{
"sandbox": [
"https://uri.paypal.com/services/subscriptions"
]
},
{
"production": [
"https://uri.paypal.com/services/subscriptions"
]
}
],
"components": {
"securitySchemes": {
"sandbox": {
Expand All @@ -520,7 +508,7 @@
"description": "Oauth 2.0 authentication",
"flows": {
"clientCredentials": {
"tokenUrl": "https://api-m.paypal.com/v1/oauth2/token",
"tokenUrl": "/v1/oauth2/token",
"scopes": {
"https://uri.paypal.com/services/subscriptions": "Create and manage products"
}
Expand Down
26 changes: 6 additions & 20 deletions openapi/checkout_orders_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "1.1"
},
"paths": {
"/orders": {
"/v1/checkout/orders": {
"post": {
"summary": "Create order",
"description": "Creates an order.",
Expand Down Expand Up @@ -69,7 +69,7 @@
]
}
},
"/orders/{order_id}": {
"/v1/checkout/orders/{order_id}": {
"get": {
"summary": "Show order details",
"description": "Shows details for an order, by ID.",
Expand Down Expand Up @@ -138,7 +138,7 @@
]
}
},
"/orders/{order_id}/pay": {
"/v1/checkout/orders/{order_id}/pay": {
"post": {
"summary": "Pay for order",
"description": "Initiates a PayPal payment that a buyer has approved.<blockquote><strong>Note:</strong> For Partner use cases, use the <code>disbursement_mode</code> to indicate whether to disburse funds to the seller and partner accounts immediately or later. If you delay disbursement, you must call <a href=\"/docs/multiparty/checkout/delayed-disbursement/\">disburse funds</a> to disburse funds to the merchant and partner.</blockquote>",
Expand Down Expand Up @@ -220,28 +220,14 @@
},
"servers": [
{
"url": "https://api-m.sandbox.paypal.com/v1/checkout",
"url": "https://api-m.sandbox.paypal.com",
"description": "PayPal Sandbox Environment"
},
{
"url": "https://api-m.paypal.com/v1/checkout",
"url": "https://api-m.paypal.com",
"description": "PayPal Live Environment"
}
],
"security": [
{
"sandbox": [
"https://uri.paypal.com/services/payments/payment",
"https://uri.paypal.com/services/payments/realtimepayment"
]
},
{
"production": [
"https://uri.paypal.com/services/payments/payment",
"https://uri.paypal.com/services/payments/realtimepayment"
]
}
],
"components": {
"securitySchemes": {
"sandbox": {
Expand All @@ -266,7 +252,7 @@
"description": "Oauth 2.0 authentication",
"flows": {
"clientCredentials": {
"tokenUrl": "https://api-m.paypal.com/v1/oauth2/token",
"tokenUrl": "/v1/oauth2/token",
"scopes": {
"https://uri.paypal.com/services/payments/payment": "Manage payments and checkout workflow.",
"https://uri.paypal.com/services/payments/unilateralrefund": "This scope enables partners/facilitators to perform unilateralrefund and also refund.",
Expand Down
34 changes: 10 additions & 24 deletions openapi/checkout_orders_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"version": "2.13"
},
"paths": {
"/orders": {
"/v2/checkout/orders": {
"post": {
"summary": "Create order",
"description": "Creates an order. Merchants and partners can add Level 2 and 3 data to payments to reduce risk and payment processing costs. For more information about processing payments, see <a href=\"https://developer.paypal.com/docs/checkout/advanced/processing/\">checkout</a> or <a href=\"https://developer.paypal.com/docs/multiparty/checkout/advanced/processing/\">multiparty checkout</a>.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href=\"/api/rest/reference/orders/v2/errors/#create-order\">Orders v2 errors</a>.</blockquote>",
Expand Down Expand Up @@ -129,7 +129,7 @@
]
}
},
"/orders/{id}": {
"/v2/checkout/orders/{id}": {
"get": {
"summary": "Show order details",
"description": "Shows details for an order, by ID.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href=\"/api/rest/reference/orders/v2/errors/#get-order\">Orders v2 errors</a>.</blockquote>",
Expand Down Expand Up @@ -294,7 +294,7 @@
]
}
},
"/orders/{id}/confirm-payment-source": {
"/v2/checkout/orders/{id}/confirm-payment-source": {
"post": {
"summary": "Confirm the Order",
"description": "Payer confirms their intent to pay for the the Order with the given payment source.",
Expand Down Expand Up @@ -408,7 +408,7 @@
]
}
},
"/orders/{id}/authorize": {
"/v2/checkout/orders/{id}/authorize": {
"post": {
"summary": "Authorize payment for order",
"description": "Authorizes payment for an order. To successfully authorize payment for an order, the buyer must first approve the order or a valid payment_source must be provided in the request. A buyer can approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS links in the create order response.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href=\"/api/rest/reference/orders/v2/errors/#authorize-order\">Orders v2 errors</a>.</blockquote>",
Expand Down Expand Up @@ -567,7 +567,7 @@
]
}
},
"/orders/{id}/capture": {
"/v2/checkout/orders/{id}/capture": {
"post": {
"summary": "Capture payment for order",
"description": "Captures payment for an order. To successfully capture payment for an order, the buyer must first approve the order or a valid payment_source must be provided in the request. A buyer can approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS links in the create order response.<blockquote><strong>Note:</strong> For error handling and troubleshooting, see <a href=\"/api/rest/reference/orders/v2/errors/#capture-order\">Orders v2 errors</a>.</blockquote>",
Expand Down Expand Up @@ -726,7 +726,7 @@
]
}
},
"/orders/{id}/track": {
"/v2/checkout/orders/{id}/track": {
"post": {
"summary": "Add tracking information for an Order.",
"description": "Adds tracking information for an Order.",
Expand Down Expand Up @@ -860,7 +860,7 @@
]
}
},
"/orders/{id}/trackers/{tracker_id}": {
"/v2/checkout/orders/{id}/trackers/{tracker_id}": {
"patch": {
"summary": "Update or cancel tracking information for a PayPal order",
"description": "Updates or cancels the tracking information for a PayPal order, by ID. Updatable attributes or objects:<br/><br/><table><thead><th>Attribute</th><th>Op</th><th>Notes</th></thead><tbody></tr><tr><td><code>items</code></td><td>replace</td><td>Using replace op for <code>items</code> will replace the entire <code>items</code> object with the value sent in request.</td></tr><tr><td><code>notify_payer</code></td><td>replace, add</td><td></td></tr></tbody></table>",
Expand Down Expand Up @@ -986,28 +986,14 @@
},
"servers": [
{
"url": "https://api-m.sandbox.paypal.com/v2/checkout",
"url": "https://api-m.sandbox.paypal.com",
"description": "PayPal Sandbox Environment"
},
{
"url": "https://api-m.paypal.com/v2/checkout",
"url": "https://api-m.paypal.com",
"description": "PayPal Live Environment"
}
],
"security": [
{
"sandbox": [
"https://uri.paypal.com/services/payments/payment",
"https://uri.paypal.com/services/payments/orders/client-side-integration"
]
},
{
"production": [
"https://uri.paypal.com/services/payments/payment",
"https://uri.paypal.com/services/payments/orders/client-side-integration"
]
}
],
"components": {
"requestBodies": {
"patch_request": {
Expand Down Expand Up @@ -1046,7 +1032,7 @@
"description": "Oauth 2.0 authentication (production environment)",
"flows": {
"clientCredentials": {
"tokenUrl": "https://api-m.paypal.com/v1/oauth2/token",
"tokenUrl": "/v1/oauth2/token",
"scopes": {
"https://uri.paypal.com/services/payments/payment": "Manage payments and checkout workflow.",
"https://uri.paypal.com/services/payments/payment/reference-transaction": "Permission to initiate reference transaction",
Expand Down
Loading

0 comments on commit 9a9d92d

Please sign in to comment.