Fixing Breaking Changes in ItemList

This commit is contained in:
japatel
2014-10-14 16:54:43 -05:00
parent dc2ac0fd63
commit 89855f4624
18 changed files with 632 additions and 75 deletions

View File

@@ -0,0 +1,50 @@
{
"description": "Create a web experience profile.",
"title": "Create profile",
"runnable": true,
"operationId": "web-profile.create",
"user": {
"scopes": [
"https://api.paypal.com/v1/payments/.*"
]
},
"credentials": {
"oauth": {
"clientId": "test-client-01",
"clientSecret": "test_secret_a",
"path": "/v1/oauth2/token"
}
},
"request": {
"path": "v1/payment-experience/web-profiles/",
"method": "POST",
"headers": {
"Content-Type": "application/json",
"PayPal-Request-Id": "abcdefgh123",
"Authorization": "Bearer ECvJ_yBNz_UfMmCvWEbT_2ZWXdzbFFQZ-1Y5K2NGgeHn"
},
"body": {
"name":"someName2",
"presentation":{
"logo_image":"http://www.ebay.com"
},
"input_fields":{
"no_shipping":1,
"address_override":1
},
"flow_config":{
"landing_page_type":"billing",
"bank_txn_pending_url":"http://www.ebay.com"
}
}
},
"response": {
"status": "201",
"headers": {
"Content-Type": "application/json"
},
"body": {
"id": "XP-RFV4-PVD8-AGHJ-8E5J"
}
}
}

View File

@@ -0,0 +1,30 @@
{
"description": "Delete a web experience profile list.",
"title": "Delete profile",
"runnable": true,
"operationId": "web-profile.delete",
"user": {
"scopes": [
"https://api.paypal.com/v1/payments/.*"
]
},
"credentials": {
"oauth": {
"clientId": "test-client-01",
"clientSecret": "test_secret_a",
"path": "/v1/oauth2/token"
}
},
"request": {
"path": "v1/payment-experience/web-profiles/XP-RFV4-PVD8-AGHJ-8E5J",
"method": "DELETE",
"headers": {
"Authorization": "Bearer ECvJ_yBNz_UfMmCvWEbT_2ZWXdzbFFQZ-1Y5K2NGgeHn"
}
},
"response": {
"status": "204",
"headers": {
}
}
}

View File

@@ -0,0 +1,46 @@
{
"description": "Fetch a web experience profile.",
"title": "Get profile",
"runnable": true,
"operationId": "web-profile.get",
"user": {
"scopes": [
"https://api.paypal.com/v1/payments/.*"
]
},
"credentials": {
"oauth": {
"clientId": "test-client-01",
"clientSecret": "test_secret_a",
"path": "/v1/oauth2/token"
}
},
"request": {
"path": "/v1/payment-experience/web-profiles/XP-RFV4-PVD8-AGHJ-8E5J",
"method": "GET",
"headers": {
"Authorization": "Bearer ECvJ_yBNz_UfMmCvWEbT_2ZWXdzbFFQZ-1Y5K2NGgeHn"
}
},
"response": {
"status": "200",
"headers": {
"Content-Type": "application/json"
},
"body": {
"id": "XP-RFV4-PVD8-AGHJ-8E5J",
"name":"someName2",
"presentation":{
"logo_image":"http://www.ebay.com"
},
"input_fields":{
"no_shipping":1,
"address_override":1
},
"flow_config":{
"landing_page_type":"billing",
"bank_txn_pending_url":"http://www.ebay.com"
}
}
}
}

View File

@@ -0,0 +1,77 @@
{
"description": "Fetch web experience profile list for a given merchant.",
"title": "Get profile list",
"runnable": true,
"operationId": "web-profile.get-list",
"user": {
"scopes": [
"https://api.paypal.com/v1/payments/.*"
]
},
"credentials": {
"oauth": {
"clientId": "test-client-01",
"clientSecret": "test_secret_a",
"path": "/v1/oauth2/token"
}
},
"request": {
"path": "/v1/payment-experience/web-profiles",
"method": "GET",
"headers": {
"Authorization": "Bearer ECvJ_yBNz_UfMmCvWEbT_2ZWXdzbFFQZ-1Y5K2NGgeHn"
}
},
"response": {
"status": "200",
"headers": {
"Content-Type": "application/json"
},
"body": [
{
"id": "XP-RFV4-PVD8-AGHJ-8E5J",
"name":"someName2",
"presentation":{
"logo_image":"http://www.ebay.com"
},
"input_fields":{
"no_shipping":1,
"address_override":1
},
"flow_config":{
"landing_page_type":"billing",
"bank_txn_pending_url":"http://www.ebay.com"
}
},
{
"id": "XP-A88A-LYLW-8Y3X-E5ER",
"name": "someName2",
"flow_config": {
"landing_page_type": "billing",
"bank_txn_pending_url": "http://www.ebay.com"
},
"input_fields": {
"no_shipping": 1,
"address_override": 1
},
"presentation": {
"logo_image": "http://www.ebay.com"
}
},
{
"id": "XP-RFV4-PVD8-AGHJ-8E5J",
"name": "someName2",
"flow_config": {
"bank_txn_pending_url": "http://www.ebay.com"
},
"input_fields": {
"no_shipping": 1,
"address_override": 1
},
"presentation": {
"logo_image": "http://www.ebay.com"
}
}
]
}
}

View File

@@ -0,0 +1,45 @@
{
"description": "Partially update a web experience profile.",
"title": "Partially Update profile",
"runnable": true,
"operationId": "web-profile.partial-update",
"user": {
"scopes": [
"https://api.paypal.com/v1/payments/.*"
]
},
"credentials": {
"oauth": {
"clientId": "test-client-01",
"clientSecret": "test_secret_a",
"path": "/v1/oauth2/token"
}
},
"request": {
"path": "v1/payment-experience/web-profiles/XP-RFV4-PVD8-AGHJ-8E5J",
"method": "PATCH",
"headers": {
"Content-Type": "application/json",
"PayPal-Request-Id": "abcdefgh123",
"Authorization": "Bearer ECvJ_yBNz_UfMmCvWEbT_2ZWXdzbFFQZ-1Y5K2NGgeHn"
},
"body": [
{
"op": "add",
"path": "/presentation/brand_name",
"value":"new_brand_name"
},
{
"op": "remove",
"path": "/flow_config/landing_page_type"
}
]
},
"response": {
"status": "204",
"headers": {
"Content-Type": "application/json"
}
}
}

View File

@@ -0,0 +1,46 @@
{
"description": "Update a web experience profile.",
"title": "Update profile",
"runnable": true,
"operationId": "web-profile.update",
"user": {
"scopes": [
"https://api.paypal.com/v1/payments/.*"
]
},
"credentials": {
"oauth": {
"clientId": "test-client-01",
"clientSecret": "test_secret_a",
"path": "/v1/oauth2/token"
}
},
"request": {
"path": "v1/payment-experience/web-profiles/XP-RFV4-PVD8-AGHJ-8E5J",
"method": "PUT",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer ECvJ_yBNz_UfMmCvWEbT_2ZWXdzbFFQZ-1Y5K2NGgeHn"
},
"body": {
"name":"someName2",
"presentation":{
"logo_image":"http://www.ebay.com"
},
"input_fields":{
"no_shipping":0,
"address_override":1
},
"flow_config":{
"landing_page_type":"billing",
"bank_txn_pending_url":"http://www.ebay.com"
}
}
},
"response": {
"status": "204",
"headers": {
"Content-Type": "application/json"
}
}
}