@itentialopensource/adapter-pitney_bowes 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +39 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +170 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +172 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +337 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TROUBLESHOOT.md +47 -0
  22. package/adapter.js +3684 -0
  23. package/adapterBase.js +1787 -0
  24. package/entities/.generic/action.json +214 -0
  25. package/entities/.generic/schema.json +28 -0
  26. package/entities/.system/action.json +50 -0
  27. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  28. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  29. package/entities/.system/schema.json +19 -0
  30. package/entities/.system/schemaTokenReq.json +64 -0
  31. package/entities/.system/schemaTokenResp.json +53 -0
  32. package/entities/AddressValidation/action.json +44 -0
  33. package/entities/AddressValidation/schema.json +20 -0
  34. package/entities/Authentication/action.json +24 -0
  35. package/entities/Authentication/schema.json +30 -0
  36. package/entities/CarrierInfo/action.json +87 -0
  37. package/entities/CarrierInfo/mockdatafiles/getCarrierLicenseAgreement-default.json +3 -0
  38. package/entities/CarrierInfo/schema.json +22 -0
  39. package/entities/Container/action.json +24 -0
  40. package/entities/Container/schema.json +19 -0
  41. package/entities/CrossBorderQuotes/action.json +44 -0
  42. package/entities/CrossBorderQuotes/mockdatafiles/getCrossBorderQuotes-default.json +51 -0
  43. package/entities/CrossBorderQuotes/schema.json +20 -0
  44. package/entities/Manifests/action.json +66 -0
  45. package/entities/Manifests/schema.json +21 -0
  46. package/entities/ParcelProtection/action.json +85 -0
  47. package/entities/ParcelProtection/mockdatafiles/cancelParcelProtection-default.json +3 -0
  48. package/entities/ParcelProtection/mockdatafiles/getParcelProtectionCoverage-default.json +11 -0
  49. package/entities/ParcelProtection/mockdatafiles/getParcelProtectionQuote-default.json +8 -0
  50. package/entities/ParcelProtection/schema.json +22 -0
  51. package/entities/Pickup/action.json +44 -0
  52. package/entities/Pickup/schema.json +20 -0
  53. package/entities/RateParcels/action.json +24 -0
  54. package/entities/RateParcels/schema.json +19 -0
  55. package/entities/Shipment/action.json +86 -0
  56. package/entities/Shipment/schema.json +22 -0
  57. package/entities/Tracking/action.json +45 -0
  58. package/entities/Tracking/mockdatafiles/addTrackingEvents-default.json +3 -0
  59. package/entities/Tracking/schema.json +20 -0
  60. package/entities/TransactionReports/action.json +25 -0
  61. package/entities/TransactionReports/schema.json +19 -0
  62. package/error.json +190 -0
  63. package/package.json +85 -0
  64. package/pronghorn.json +2918 -0
  65. package/propertiesDecorators.json +14 -0
  66. package/propertiesSchema.json +1248 -0
  67. package/refs?service=git-upload-pack +0 -0
  68. package/report/PitneyBowes - ShippingAPI_OAS-OpenApi3Json.json +7675 -0
  69. package/report/creationReport.json +480 -0
  70. package/sampleProperties.json +197 -0
  71. package/test/integration/adapterTestBasicGet.js +83 -0
  72. package/test/integration/adapterTestConnectivity.js +93 -0
  73. package/test/integration/adapterTestIntegration.js +1402 -0
  74. package/test/unit/adapterBaseTestUnit.js +949 -0
  75. package/test/unit/adapterTestUnit.js +2417 -0
  76. package/utils/adapterInfo.js +206 -0
  77. package/utils/addAuth.js +94 -0
  78. package/utils/artifactize.js +146 -0
  79. package/utils/basicGet.js +50 -0
  80. package/utils/checkMigrate.js +63 -0
  81. package/utils/entitiesToDB.js +178 -0
  82. package/utils/findPath.js +74 -0
  83. package/utils/methodDocumentor.js +225 -0
  84. package/utils/modify.js +154 -0
  85. package/utils/packModificationScript.js +35 -0
  86. package/utils/patches2bundledDeps.js +90 -0
  87. package/utils/pre-commit.sh +32 -0
  88. package/utils/removeHooks.js +20 -0
  89. package/utils/setup.js +33 -0
  90. package/utils/tbScript.js +246 -0
  91. package/utils/tbUtils.js +490 -0
  92. package/utils/testRunner.js +298 -0
  93. package/utils/troubleshootingAdapter.js +195 -0
  94. package/workflows/README.md +3 -0
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getContainerizedParcelsLabels",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/shippingservices/v1/container-manifest?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "PLAIN",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getContainerizedParcelsLabels",
12
+ "enum": [
13
+ "getContainerizedParcelsLabels"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getCrossBorderQuotes",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/shippingservices/v1/crossborder/checkout/quotes?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": "mockdatafiles/getCrossBorderQuotes-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "predictedHSCode",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/shippingservices/v1/crossborder/hs-classification/items?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "PLAIN",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,51 @@
1
+ {
2
+ "quote": [
3
+ {
4
+ "quoteCurrency": "USD",
5
+ "quoteLines": [
6
+ {
7
+ "lineId": "1",
8
+ "itemId": "G_123456",
9
+ "quoteLineId": "1",
10
+ "quantity": 2,
11
+ "unitRates": {
12
+ "unitPrice": 19.99,
13
+ "totalTaxAmount": 3.12,
14
+ "totalDutyAmount": 4,
15
+ "serviceId": "PBXPS",
16
+ "baseCharge": 23.62,
17
+ "deliveryCommitment": {
18
+ "minEstimatedNumberOfDays": 3,
19
+ "maxEstimatedNumberOfDays": 6
20
+ },
21
+ "totalCarrierCharge": 30.74
22
+ },
23
+ "lineRates": {
24
+ "linePrice": 39.98,
25
+ "totalTaxAmount": 6.24,
26
+ "totalDutyAmount": 8,
27
+ "serviceId": "PBXPS",
28
+ "baseCharge": 47.24,
29
+ "deliveryCommitment": {
30
+ "minEstimatedNumberOfDays": 3,
31
+ "maxEstimatedNumberOfDays": 6
32
+ },
33
+ "totalCarrierCharge": 61.48
34
+ }
35
+ }
36
+ ],
37
+ "totalPrice": 39.98,
38
+ "totalRates": {
39
+ "serviceId": "PBXPS",
40
+ "baseCharge": 47.24,
41
+ "deliveryCommitment": {
42
+ "minEstimatedNumberOfDays": 3,
43
+ "maxEstimatedNumberOfDays": 6
44
+ },
45
+ "totalCarrierCharge": 61.48,
46
+ "totalDutyAmount": 8,
47
+ "totalTaxAmount": 6.24
48
+ }
49
+ }
50
+ ]
51
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getCrossBorderQuotes",
12
+ "enum": [
13
+ "getCrossBorderQuotes",
14
+ "predictedHSCode"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,66 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "createManifest",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/shippingservices/v1/manifests?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "retryManifest",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/shippingservices/v1/manifests?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "reprintManifest",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/shippingservices/v1/manifests/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": ""
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "createManifest",
12
+ "enum": [
13
+ "createManifest",
14
+ "retryManifest",
15
+ "reprintManifest"
16
+ ],
17
+ "external_name": "ph_request_type"
18
+ }
19
+ },
20
+ "definitions": {}
21
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getParcelProtectionQuote",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/shippingservices/v1/parcel-protection/quote?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": "mockdatafiles/getParcelProtectionQuote-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getParcelProtectionCoverage",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/shippingservices/v1/parcel-protection/create?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": "mockdatafiles/getParcelProtectionCoverage-default.json"
40
+ }
41
+ ]
42
+ },
43
+ {
44
+ "name": "cancelParcelProtection",
45
+ "protocol": "REST",
46
+ "method": "POST",
47
+ "entitypath": "{base_path}/{version}/shippingservices/v1/parcel-protection/void?{query}",
48
+ "requestSchema": "schema.json",
49
+ "responseSchema": "schema.json",
50
+ "timeout": 0,
51
+ "sendEmpty": false,
52
+ "requestDatatype": "JSON",
53
+ "responseDatatype": "JSON",
54
+ "headers": {},
55
+ "responseObjects": [
56
+ {
57
+ "type": "default",
58
+ "key": "",
59
+ "mockFile": "mockdatafiles/cancelParcelProtection-default.json"
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "name": "getParcelProtectionReports",
65
+ "protocol": "REST",
66
+ "method": "GET",
67
+ "entitypath": "{base_path}/{version}/shippingservices/v1/parcel-protection/{pathv1}/policies?{query}",
68
+ "requestSchema": "schema.json",
69
+ "responseSchema": "schema.json",
70
+ "timeout": 0,
71
+ "sendEmpty": false,
72
+ "sendGetBody": false,
73
+ "requestDatatype": "JSON",
74
+ "responseDatatype": "JSON",
75
+ "headers": {},
76
+ "responseObjects": [
77
+ {
78
+ "type": "default",
79
+ "key": "",
80
+ "mockFile": ""
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "Void_Success"
3
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "transactionID": "44397664_ABCD1234_28d6fb80-6b92-4e69-b5bb-6656a00ce435",
3
+ "parcelProtectionReferenceID": "IPPOL0000000012345678",
4
+ "parcelProtectionDate": "2019-05-20 15:00:25.279+0000",
5
+ "parcelProtectionFees": 7.5,
6
+ "parcelProtectionFeesCurrencyCode": "USD",
7
+ "parcelProtectionFeesBreakup": {
8
+ "basePremium": 7.25,
9
+ "technologyFee": 0.25
10
+ }
11
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "parcelProtectionFees": 7.5,
3
+ "parcelProtectionFeesCurrencyCode": "USD",
4
+ "parcelProtectionFeesBreakup": {
5
+ "basePremium": 7.25,
6
+ "technologyFee": 0.25
7
+ }
8
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getParcelProtectionQuote",
12
+ "enum": [
13
+ "getParcelProtectionQuote",
14
+ "getParcelProtectionCoverage",
15
+ "cancelParcelProtection",
16
+ "getParcelProtectionReports"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getPickupschedule",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/shippingservices/v1/pickups/schedule?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "cancelPickup",
25
+ "protocol": "REST",
26
+ "method": "POST",
27
+ "entitypath": "{base_path}/{version}/shippingservices/v1/pickups/{pathv1}/cancel?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "requestDatatype": "JSON",
33
+ "responseDatatype": "JSON",
34
+ "headers": {},
35
+ "responseObjects": [
36
+ {
37
+ "type": "default",
38
+ "key": "",
39
+ "mockFile": ""
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "getPickupschedule",
12
+ "enum": [
13
+ "getPickupschedule",
14
+ "cancelPickup"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "rateParcel",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/shippingservices/v1/rates?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "rateParcel",
12
+ "enum": [
13
+ "rateParcel"
14
+ ],
15
+ "external_name": "ph_request_type"
16
+ }
17
+ },
18
+ "definitions": {}
19
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "createShipmentLabel",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/shippingservices/v1/shipments?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": ""
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "retryShipment",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/shippingservices/v1/shipments?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "reprintShipment",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/shippingservices/v1/shipments/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "cancelShipment",
67
+ "protocol": "REST",
68
+ "method": "DELETE",
69
+ "entitypath": "{base_path}/{version}/shippingservices/v1/shipments/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": ""
82
+ }
83
+ ]
84
+ }
85
+ ]
86
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "createShipmentLabel",
12
+ "enum": [
13
+ "createShipmentLabel",
14
+ "retryShipment",
15
+ "reprintShipment",
16
+ "cancelShipment"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ }
20
+ },
21
+ "definitions": {}
22
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getTrackingDetails",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/shippingservices/v1/tracking/{pathv1}?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": ""
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "addTrackingEvents",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/v2/track/events?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": "mockdatafiles/addTrackingEvents-default.json"
41
+ }
42
+ ]
43
+ }
44
+ ]
45
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "status": "success"
3
+ }