@shopware/api-client 1.2.1 → 1.3.0
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.
- package/README.md +43 -2
- package/api-types/storeApiSchema.b2b.overrides.json +33 -0
- package/api-types/storeApiSchema.json +4010 -152
- package/api-types/storeApiSchema.overrides.json +13 -27
- package/api-types/storeApiTypes.d.ts +1516 -23
- package/dist/index.cjs +57 -32
- package/dist/index.d.cts +1532 -24
- package/dist/index.d.mts +1532 -24
- package/dist/index.d.ts +1532 -24
- package/dist/index.mjs +57 -32
- package/package.json +6 -6
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"name": "MIT",
|
|
8
8
|
"url": "https://github.com/shopware/shopware/blob/trunk/LICENSE"
|
|
9
9
|
},
|
|
10
|
-
"version": "6.6.
|
|
10
|
+
"version": "6.6.10.0"
|
|
11
11
|
},
|
|
12
12
|
"servers": [{ "url": "https://demo-frontends.shopware.store/store-api" }],
|
|
13
13
|
"components": {
|
|
@@ -830,6 +830,10 @@
|
|
|
830
830
|
"items": { "type": "object", "additionalProperties": false }
|
|
831
831
|
},
|
|
832
832
|
"customFields": { "type": "object" },
|
|
833
|
+
"default": {
|
|
834
|
+
"description": "Runtime field, cannot be used as part of the criteria.",
|
|
835
|
+
"type": "boolean"
|
|
836
|
+
},
|
|
833
837
|
"createdAt": {
|
|
834
838
|
"type": "string",
|
|
835
839
|
"format": "date-time",
|
|
@@ -1110,6 +1114,7 @@
|
|
|
1110
1114
|
"lastName": { "type": "string" },
|
|
1111
1115
|
"email": { "type": "string" },
|
|
1112
1116
|
"customFields": { "type": "object" },
|
|
1117
|
+
"status": { "type": "string" },
|
|
1113
1118
|
"createdAt": {
|
|
1114
1119
|
"type": "string",
|
|
1115
1120
|
"format": "date-time",
|
|
@@ -1745,18 +1750,12 @@
|
|
|
1745
1750
|
},
|
|
1746
1751
|
"CmsSection": {
|
|
1747
1752
|
"description": "Added since version: 6.0.0.0",
|
|
1748
|
-
"required": [
|
|
1749
|
-
"apiAlias",
|
|
1750
|
-
"blocks",
|
|
1751
|
-
"position",
|
|
1752
|
-
"type",
|
|
1753
|
-
"pageId",
|
|
1754
|
-
"name"
|
|
1755
|
-
],
|
|
1753
|
+
"required": ["apiAlias", "blocks", "position", "type", "pageId"],
|
|
1756
1754
|
"properties": {
|
|
1757
1755
|
"id": { "type": "string", "pattern": "^[0-9a-f]{32}$" },
|
|
1758
1756
|
"position": { "type": "integer", "format": "int64" },
|
|
1759
1757
|
"type": { "type": "string" },
|
|
1758
|
+
"name": { "type": "string" },
|
|
1760
1759
|
"sizingMode": { "type": "string" },
|
|
1761
1760
|
"mobileBehavior": { "type": "string" },
|
|
1762
1761
|
"backgroundColor": { "type": "string" },
|
|
@@ -1787,7 +1786,6 @@
|
|
|
1787
1786
|
"format": "date-time",
|
|
1788
1787
|
"readOnly": true
|
|
1789
1788
|
},
|
|
1790
|
-
"translated": { "type": "object" },
|
|
1791
1789
|
"extensions": {
|
|
1792
1790
|
"properties": {
|
|
1793
1791
|
"swagCmsExtensionsScrollNavigation": {
|
|
@@ -2737,15 +2735,14 @@
|
|
|
2737
2735
|
"required": [
|
|
2738
2736
|
"id",
|
|
2739
2737
|
"documentTypeId",
|
|
2740
|
-
"fileType",
|
|
2741
2738
|
"orderId",
|
|
2742
2739
|
"config",
|
|
2743
|
-
"deepLinkCode"
|
|
2740
|
+
"deepLinkCode",
|
|
2741
|
+
"fileType"
|
|
2744
2742
|
],
|
|
2745
2743
|
"properties": {
|
|
2746
2744
|
"id": { "type": "string", "pattern": "^[0-9a-f]{32}$" },
|
|
2747
2745
|
"documentTypeId": { "type": "string", "pattern": "^[0-9a-f]{32}$" },
|
|
2748
|
-
"fileType": { "type": "string" },
|
|
2749
2746
|
"referencedDocumentId": {
|
|
2750
2747
|
"type": "string",
|
|
2751
2748
|
"pattern": "^[0-9a-f]{32}$"
|
|
@@ -2755,6 +2752,10 @@
|
|
|
2755
2752
|
"type": "string",
|
|
2756
2753
|
"pattern": "^[0-9a-f]{32}$"
|
|
2757
2754
|
},
|
|
2755
|
+
"documentA11yMediaFileId": {
|
|
2756
|
+
"type": "string",
|
|
2757
|
+
"pattern": "^[0-9a-f]{32}$"
|
|
2758
|
+
},
|
|
2758
2759
|
"orderVersionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" },
|
|
2759
2760
|
"config": {
|
|
2760
2761
|
"type": "object",
|
|
@@ -2769,6 +2770,7 @@
|
|
|
2769
2770
|
"deepLinkCode": { "type": "string" },
|
|
2770
2771
|
"documentNumber": { "type": "string" },
|
|
2771
2772
|
"customFields": { "type": "object" },
|
|
2773
|
+
"fileType": { "type": "string" },
|
|
2772
2774
|
"createdAt": {
|
|
2773
2775
|
"type": "string",
|
|
2774
2776
|
"format": "date-time",
|
|
@@ -2786,7 +2788,8 @@
|
|
|
2786
2788
|
"type": "array",
|
|
2787
2789
|
"items": { "$ref": "#/components/schemas/Document" }
|
|
2788
2790
|
},
|
|
2789
|
-
"documentMediaFile": { "$ref": "#/components/schemas/Media" }
|
|
2791
|
+
"documentMediaFile": { "$ref": "#/components/schemas/Media" },
|
|
2792
|
+
"documentA11yMediaFile": { "$ref": "#/components/schemas/Media" }
|
|
2790
2793
|
},
|
|
2791
2794
|
"type": "object"
|
|
2792
2795
|
},
|
|
@@ -2986,6 +2989,32 @@
|
|
|
2986
2989
|
},
|
|
2987
2990
|
"type": "object"
|
|
2988
2991
|
},
|
|
2992
|
+
"DsrCmsSlide": {
|
|
2993
|
+
"required": ["id", "slideName", "cmsSectionId"],
|
|
2994
|
+
"properties": {
|
|
2995
|
+
"id": { "type": "string", "pattern": "^[0-9a-f]{32}$" },
|
|
2996
|
+
"versionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" },
|
|
2997
|
+
"slideName": { "type": "string" },
|
|
2998
|
+
"cmsSectionId": { "type": "string", "pattern": "^[0-9a-f]{32}$" },
|
|
2999
|
+
"cmsSectionVersionId": {
|
|
3000
|
+
"type": "string",
|
|
3001
|
+
"pattern": "^[0-9a-f]{32}$"
|
|
3002
|
+
},
|
|
3003
|
+
"createdAt": {
|
|
3004
|
+
"type": "string",
|
|
3005
|
+
"format": "date-time",
|
|
3006
|
+
"readOnly": true
|
|
3007
|
+
},
|
|
3008
|
+
"updatedAt": {
|
|
3009
|
+
"type": "string",
|
|
3010
|
+
"format": "date-time",
|
|
3011
|
+
"readOnly": true
|
|
3012
|
+
},
|
|
3013
|
+
"translated": { "type": "object" },
|
|
3014
|
+
"cmsSection": { "$ref": "#/components/schemas/CmsSection" }
|
|
3015
|
+
},
|
|
3016
|
+
"type": "object"
|
|
3017
|
+
},
|
|
2989
3018
|
"DsrInteraction": {
|
|
2990
3019
|
"properties": {
|
|
2991
3020
|
"id": { "type": "string", "pattern": "^[0-9a-f]{32}$" },
|
|
@@ -4254,6 +4283,37 @@
|
|
|
4254
4283
|
},
|
|
4255
4284
|
"type": "object"
|
|
4256
4285
|
},
|
|
4286
|
+
"orderEmployee": {
|
|
4287
|
+
"properties": {
|
|
4288
|
+
"links": {
|
|
4289
|
+
"type": "object",
|
|
4290
|
+
"properties": {
|
|
4291
|
+
"related": {
|
|
4292
|
+
"type": "string",
|
|
4293
|
+
"format": "uri-reference",
|
|
4294
|
+
"example": "/order/a240fa27925a635b08dc28c9e4f9216d/orderEmployee"
|
|
4295
|
+
}
|
|
4296
|
+
}
|
|
4297
|
+
},
|
|
4298
|
+
"data": {
|
|
4299
|
+
"type": "array",
|
|
4300
|
+
"items": {
|
|
4301
|
+
"type": "object",
|
|
4302
|
+
"properties": {
|
|
4303
|
+
"type": {
|
|
4304
|
+
"type": "string",
|
|
4305
|
+
"example": "b2b_order_employee"
|
|
4306
|
+
},
|
|
4307
|
+
"id": {
|
|
4308
|
+
"type": "string",
|
|
4309
|
+
"example": "5ea451c08a87db806089c4031601c29a"
|
|
4310
|
+
}
|
|
4311
|
+
}
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
},
|
|
4315
|
+
"type": "object"
|
|
4316
|
+
},
|
|
4257
4317
|
"quote": {
|
|
4258
4318
|
"properties": {
|
|
4259
4319
|
"links": {
|
|
@@ -13050,9 +13110,7 @@
|
|
|
13050
13110
|
},
|
|
13051
13111
|
"BreadcrumbCollection": {
|
|
13052
13112
|
"type": "array",
|
|
13053
|
-
"items": {
|
|
13054
|
-
"$ref": "#/components/schemas/Breadcrumb"
|
|
13055
|
-
}
|
|
13113
|
+
"items": { "$ref": "#/components/schemas/Breadcrumb" }
|
|
13056
13114
|
},
|
|
13057
13115
|
"NaturalLanguageSearchTermResponse": {
|
|
13058
13116
|
"type": "array",
|
|
@@ -15504,147 +15562,3739 @@
|
|
|
15504
15562
|
"default": "presentation"
|
|
15505
15563
|
}
|
|
15506
15564
|
}
|
|
15507
|
-
}
|
|
15508
|
-
},
|
|
15509
|
-
"responses": {
|
|
15510
|
-
"204": { "description": "No Content" },
|
|
15511
|
-
"400": {
|
|
15512
|
-
"description": "Bad Request",
|
|
15513
|
-
"content": {
|
|
15514
|
-
"application/vnd.api+json": {
|
|
15515
|
-
"schema": { "$ref": "#/components/schemas/failure" },
|
|
15516
|
-
"example": {
|
|
15517
|
-
"errors": [
|
|
15518
|
-
{
|
|
15519
|
-
"status": "400",
|
|
15520
|
-
"title": "Bad Request",
|
|
15521
|
-
"description": "Bad parameters for this endpoint. See documentation for the correct ones."
|
|
15522
|
-
}
|
|
15523
|
-
]
|
|
15524
|
-
}
|
|
15525
|
-
},
|
|
15526
|
-
"application/json": {
|
|
15527
|
-
"schema": { "$ref": "#/components/schemas/failure" },
|
|
15528
|
-
"example": {
|
|
15529
|
-
"errors": [
|
|
15530
|
-
{
|
|
15531
|
-
"status": "400",
|
|
15532
|
-
"title": "Bad Request",
|
|
15533
|
-
"description": "Bad parameters for this endpoint. See documentation for the correct ones."
|
|
15534
|
-
}
|
|
15535
|
-
]
|
|
15536
|
-
}
|
|
15537
|
-
}
|
|
15538
|
-
}
|
|
15539
15565
|
},
|
|
15540
|
-
"
|
|
15541
|
-
"
|
|
15542
|
-
|
|
15543
|
-
"
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15550
|
-
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
|
|
15566
|
+
"swag_paypal_v1_capture": {
|
|
15567
|
+
"required": [
|
|
15568
|
+
"amount",
|
|
15569
|
+
"is_final_capture",
|
|
15570
|
+
"id",
|
|
15571
|
+
"state",
|
|
15572
|
+
"reason_code",
|
|
15573
|
+
"parent_payment",
|
|
15574
|
+
"transaction_fee",
|
|
15575
|
+
"create_time",
|
|
15576
|
+
"update_time",
|
|
15577
|
+
"links"
|
|
15578
|
+
],
|
|
15579
|
+
"properties": {
|
|
15580
|
+
"amount": {
|
|
15581
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
15554
15582
|
},
|
|
15555
|
-
"
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
15583
|
+
"is_final_capture": { "type": "boolean" },
|
|
15584
|
+
"id": { "type": "string" },
|
|
15585
|
+
"state": { "type": "string" },
|
|
15586
|
+
"reason_code": { "type": "string" },
|
|
15587
|
+
"parent_payment": { "type": "string" },
|
|
15588
|
+
"transaction_fee": {
|
|
15589
|
+
"$ref": "#/components/schemas/swag_paypal_v1_capture_transaction_fee"
|
|
15590
|
+
},
|
|
15591
|
+
"create_time": { "type": "string" },
|
|
15592
|
+
"update_time": { "type": "string" },
|
|
15593
|
+
"links": {
|
|
15594
|
+
"type": "array",
|
|
15595
|
+
"items": {
|
|
15596
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
15565
15597
|
}
|
|
15566
15598
|
}
|
|
15567
|
-
}
|
|
15599
|
+
},
|
|
15600
|
+
"type": "object"
|
|
15568
15601
|
},
|
|
15569
|
-
"
|
|
15570
|
-
"
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
"schema": { "$ref": "#/components/schemas/failure" },
|
|
15574
|
-
"example": {
|
|
15575
|
-
"errors": [
|
|
15576
|
-
{
|
|
15577
|
-
"status": "403",
|
|
15578
|
-
"title": "Forbidden",
|
|
15579
|
-
"description": "This operation is restricted to logged in users."
|
|
15580
|
-
}
|
|
15581
|
-
]
|
|
15582
|
-
}
|
|
15583
|
-
},
|
|
15584
|
-
"application/json": {
|
|
15585
|
-
"schema": { "$ref": "#/components/schemas/failure" },
|
|
15586
|
-
"example": {
|
|
15587
|
-
"errors": [
|
|
15588
|
-
{
|
|
15589
|
-
"status": "403",
|
|
15590
|
-
"title": "Forbidden",
|
|
15591
|
-
"description": "This operation is restricted to logged in users."
|
|
15592
|
-
}
|
|
15593
|
-
]
|
|
15594
|
-
}
|
|
15595
|
-
}
|
|
15596
|
-
}
|
|
15602
|
+
"swag_paypal_v1_capture_transaction_fee": {
|
|
15603
|
+
"allOf": [
|
|
15604
|
+
{ "$ref": "#/components/schemas/swag_paypal_v1_common_value" }
|
|
15605
|
+
]
|
|
15597
15606
|
},
|
|
15598
|
-
"
|
|
15599
|
-
"
|
|
15600
|
-
"
|
|
15601
|
-
"
|
|
15602
|
-
|
|
15603
|
-
"
|
|
15604
|
-
|
|
15605
|
-
{
|
|
15606
|
-
"status": "404",
|
|
15607
|
-
"title": "Not Found",
|
|
15608
|
-
"description": "Resource with given parameter was not found."
|
|
15609
|
-
}
|
|
15610
|
-
]
|
|
15611
|
-
}
|
|
15607
|
+
"swag_paypal_v1_client_token": {
|
|
15608
|
+
"required": ["client_token", "expires_in", "expire_date_time"],
|
|
15609
|
+
"properties": {
|
|
15610
|
+
"client_token": { "type": "string" },
|
|
15611
|
+
"expires_in": {
|
|
15612
|
+
"description": "The lifetime of the access token, in seconds.",
|
|
15613
|
+
"type": "integer"
|
|
15612
15614
|
},
|
|
15613
|
-
"
|
|
15614
|
-
"
|
|
15615
|
-
"
|
|
15616
|
-
|
|
15617
|
-
{
|
|
15618
|
-
"status": "404",
|
|
15619
|
-
"title": "Not Found",
|
|
15620
|
-
"description": "Resource with given parameter was not found."
|
|
15621
|
-
}
|
|
15622
|
-
]
|
|
15623
|
-
}
|
|
15615
|
+
"expire_date_time": {
|
|
15616
|
+
"description": "Calculated expiration date",
|
|
15617
|
+
"type": "string",
|
|
15618
|
+
"format": "date-time"
|
|
15624
15619
|
}
|
|
15625
|
-
}
|
|
15620
|
+
},
|
|
15621
|
+
"type": "object"
|
|
15626
15622
|
},
|
|
15627
|
-
"
|
|
15628
|
-
"
|
|
15629
|
-
|
|
15630
|
-
"
|
|
15631
|
-
|
|
15632
|
-
|
|
15623
|
+
"swag_paypal_v1_common_address": {
|
|
15624
|
+
"required": [
|
|
15625
|
+
"line1",
|
|
15626
|
+
"line2",
|
|
15627
|
+
"city",
|
|
15628
|
+
"country_code",
|
|
15629
|
+
"postal_code",
|
|
15630
|
+
"state",
|
|
15631
|
+
"phone"
|
|
15632
|
+
],
|
|
15633
|
+
"properties": {
|
|
15634
|
+
"line1": { "type": "string" },
|
|
15635
|
+
"line2": { "type": "string", "nullable": true },
|
|
15636
|
+
"city": { "type": "string" },
|
|
15637
|
+
"country_code": { "type": "string" },
|
|
15638
|
+
"postal_code": { "type": "string" },
|
|
15639
|
+
"state": { "type": "string", "nullable": true },
|
|
15640
|
+
"phone": { "type": "string", "nullable": true }
|
|
15641
|
+
},
|
|
15642
|
+
"type": "object"
|
|
15643
|
+
},
|
|
15644
|
+
"swag_paypal_v1_common_amount": {
|
|
15645
|
+
"required": ["total", "currency", "details"],
|
|
15646
|
+
"properties": {
|
|
15647
|
+
"total": { "type": "string" },
|
|
15648
|
+
"currency": { "type": "string" },
|
|
15649
|
+
"details": {
|
|
15650
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_details"
|
|
15633
15651
|
}
|
|
15634
15652
|
},
|
|
15635
|
-
"
|
|
15636
|
-
|
|
15637
|
-
|
|
15638
|
-
|
|
15639
|
-
|
|
15640
|
-
|
|
15641
|
-
|
|
15642
|
-
|
|
15643
|
-
|
|
15644
|
-
|
|
15653
|
+
"type": "object"
|
|
15654
|
+
},
|
|
15655
|
+
"swag_paypal_v1_common_details": {
|
|
15656
|
+
"required": [
|
|
15657
|
+
"subtotal",
|
|
15658
|
+
"shipping",
|
|
15659
|
+
"tax",
|
|
15660
|
+
"handling_fee",
|
|
15661
|
+
"shipping_discount",
|
|
15662
|
+
"discount",
|
|
15663
|
+
"insurance"
|
|
15664
|
+
],
|
|
15665
|
+
"properties": {
|
|
15666
|
+
"subtotal": { "type": "string" },
|
|
15667
|
+
"shipping": { "type": "string" },
|
|
15668
|
+
"tax": { "type": "string" },
|
|
15669
|
+
"handling_fee": { "type": "string" },
|
|
15670
|
+
"shipping_discount": { "type": "string" },
|
|
15671
|
+
"discount": { "type": "string" },
|
|
15672
|
+
"insurance": { "type": "string" }
|
|
15673
|
+
},
|
|
15674
|
+
"type": "object"
|
|
15675
|
+
},
|
|
15676
|
+
"swag_paypal_v1_common_link": {
|
|
15677
|
+
"required": ["href", "rel", "method", "enc_type"],
|
|
15678
|
+
"properties": {
|
|
15679
|
+
"href": { "type": "string" },
|
|
15680
|
+
"rel": { "type": "string" },
|
|
15681
|
+
"method": { "type": "string" },
|
|
15682
|
+
"enc_type": { "type": "string", "nullable": true }
|
|
15683
|
+
},
|
|
15684
|
+
"type": "object"
|
|
15685
|
+
},
|
|
15686
|
+
"swag_paypal_v1_common_money": {
|
|
15687
|
+
"required": ["value", "currency_code"],
|
|
15688
|
+
"properties": {
|
|
15689
|
+
"value": { "type": "string" },
|
|
15690
|
+
"currency_code": { "type": "string" }
|
|
15691
|
+
},
|
|
15692
|
+
"type": "object"
|
|
15693
|
+
},
|
|
15694
|
+
"swag_paypal_v1_common_value": {
|
|
15695
|
+
"required": ["currency", "value"],
|
|
15696
|
+
"properties": {
|
|
15697
|
+
"currency": { "type": "string" },
|
|
15698
|
+
"value": { "type": "string" }
|
|
15699
|
+
},
|
|
15700
|
+
"type": "object"
|
|
15701
|
+
},
|
|
15702
|
+
"swag_paypal_v1_create_webhooks": {
|
|
15703
|
+
"required": ["url", "event_types"],
|
|
15704
|
+
"properties": {
|
|
15705
|
+
"url": { "type": "string" },
|
|
15706
|
+
"event_types": {
|
|
15707
|
+
"type": "array",
|
|
15708
|
+
"items": {
|
|
15709
|
+
"$ref": "#/components/schemas/swag_paypal_v1_create_webhooks_event_type"
|
|
15645
15710
|
}
|
|
15646
15711
|
}
|
|
15647
|
-
}
|
|
15712
|
+
},
|
|
15713
|
+
"type": "object"
|
|
15714
|
+
},
|
|
15715
|
+
"swag_paypal_v1_create_webhooks_event_type": {
|
|
15716
|
+
"required": ["name"],
|
|
15717
|
+
"properties": { "name": { "type": "string" } },
|
|
15718
|
+
"type": "object"
|
|
15719
|
+
},
|
|
15720
|
+
"swag_paypal_v1_disputes": {
|
|
15721
|
+
"required": ["items", "links"],
|
|
15722
|
+
"properties": {
|
|
15723
|
+
"items": {
|
|
15724
|
+
"type": "array",
|
|
15725
|
+
"items": {
|
|
15726
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item"
|
|
15727
|
+
},
|
|
15728
|
+
"nullable": true
|
|
15729
|
+
},
|
|
15730
|
+
"links": {
|
|
15731
|
+
"type": "array",
|
|
15732
|
+
"items": {
|
|
15733
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
15734
|
+
}
|
|
15735
|
+
}
|
|
15736
|
+
},
|
|
15737
|
+
"type": "object"
|
|
15738
|
+
},
|
|
15739
|
+
"swag_paypal_v1_disputes_common_buyer": {
|
|
15740
|
+
"required": ["name"],
|
|
15741
|
+
"properties": { "name": { "type": "string" } },
|
|
15742
|
+
"type": "object"
|
|
15743
|
+
},
|
|
15744
|
+
"swag_paypal_v1_disputes_common_item": {
|
|
15745
|
+
"required": [
|
|
15746
|
+
"item_id",
|
|
15747
|
+
"item_description",
|
|
15748
|
+
"item_quantity",
|
|
15749
|
+
"partner_transaction_id",
|
|
15750
|
+
"reason",
|
|
15751
|
+
"dispute_amount",
|
|
15752
|
+
"notes"
|
|
15753
|
+
],
|
|
15754
|
+
"properties": {
|
|
15755
|
+
"item_id": { "type": "string" },
|
|
15756
|
+
"item_description": { "type": "string" },
|
|
15757
|
+
"item_quantity": { "type": "string" },
|
|
15758
|
+
"partner_transaction_id": { "type": "string" },
|
|
15759
|
+
"reason": { "type": "string" },
|
|
15760
|
+
"dispute_amount": {
|
|
15761
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
15762
|
+
},
|
|
15763
|
+
"notes": { "type": "string" }
|
|
15764
|
+
},
|
|
15765
|
+
"type": "object"
|
|
15766
|
+
},
|
|
15767
|
+
"swag_paypal_v1_disputes_common_product_details": {
|
|
15768
|
+
"required": [
|
|
15769
|
+
"product_received",
|
|
15770
|
+
"product_received_time",
|
|
15771
|
+
"sub_reasons",
|
|
15772
|
+
"purchase_url",
|
|
15773
|
+
"return_details"
|
|
15774
|
+
],
|
|
15775
|
+
"properties": {
|
|
15776
|
+
"product_received": { "type": "string" },
|
|
15777
|
+
"product_received_time": { "type": "string" },
|
|
15778
|
+
"sub_reasons": {
|
|
15779
|
+
"type": "array",
|
|
15780
|
+
"items": {
|
|
15781
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_sub_reason"
|
|
15782
|
+
}
|
|
15783
|
+
},
|
|
15784
|
+
"purchase_url": { "type": "string" },
|
|
15785
|
+
"return_details": {
|
|
15786
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_return_details"
|
|
15787
|
+
}
|
|
15788
|
+
},
|
|
15789
|
+
"type": "object"
|
|
15790
|
+
},
|
|
15791
|
+
"swag_paypal_v1_disputes_common_return_details": {
|
|
15792
|
+
"required": [
|
|
15793
|
+
"return_time",
|
|
15794
|
+
"mode",
|
|
15795
|
+
"receipt",
|
|
15796
|
+
"return_confirmation_number",
|
|
15797
|
+
"returned"
|
|
15798
|
+
],
|
|
15799
|
+
"properties": {
|
|
15800
|
+
"return_time": { "type": "string" },
|
|
15801
|
+
"mode": { "type": "string" },
|
|
15802
|
+
"receipt": { "type": "boolean" },
|
|
15803
|
+
"return_confirmation_number": { "type": "string" },
|
|
15804
|
+
"returned": { "type": "boolean" }
|
|
15805
|
+
},
|
|
15806
|
+
"type": "object"
|
|
15807
|
+
},
|
|
15808
|
+
"swag_paypal_v1_disputes_common_seller": {
|
|
15809
|
+
"required": ["email", "merchant_id", "name"],
|
|
15810
|
+
"properties": {
|
|
15811
|
+
"email": { "type": "string" },
|
|
15812
|
+
"merchant_id": { "type": "string" },
|
|
15813
|
+
"name": { "type": "string" }
|
|
15814
|
+
},
|
|
15815
|
+
"type": "object"
|
|
15816
|
+
},
|
|
15817
|
+
"swag_paypal_v1_disputes_common_service_details": {
|
|
15818
|
+
"required": [
|
|
15819
|
+
"description",
|
|
15820
|
+
"service_started",
|
|
15821
|
+
"note",
|
|
15822
|
+
"sub_reasons",
|
|
15823
|
+
"purchase_url"
|
|
15824
|
+
],
|
|
15825
|
+
"properties": {
|
|
15826
|
+
"description": { "type": "string" },
|
|
15827
|
+
"service_started": { "type": "string" },
|
|
15828
|
+
"note": { "type": "string" },
|
|
15829
|
+
"sub_reasons": {
|
|
15830
|
+
"type": "array",
|
|
15831
|
+
"items": {
|
|
15832
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_sub_reason"
|
|
15833
|
+
}
|
|
15834
|
+
},
|
|
15835
|
+
"purchase_url": { "type": "string" }
|
|
15836
|
+
},
|
|
15837
|
+
"type": "object"
|
|
15838
|
+
},
|
|
15839
|
+
"swag_paypal_v1_disputes_common_sub_reason": {
|
|
15840
|
+
"required": ["sub_reason"],
|
|
15841
|
+
"properties": { "sub_reason": { "type": "string" } },
|
|
15842
|
+
"type": "object"
|
|
15843
|
+
},
|
|
15844
|
+
"swag_paypal_v1_disputes_common_transaction": {
|
|
15845
|
+
"required": [
|
|
15846
|
+
"buyer_transaction_id",
|
|
15847
|
+
"seller_transaction_id",
|
|
15848
|
+
"reference_id",
|
|
15849
|
+
"create_time",
|
|
15850
|
+
"transaction_status",
|
|
15851
|
+
"gross_amount",
|
|
15852
|
+
"invoice_number",
|
|
15853
|
+
"custom",
|
|
15854
|
+
"buyer",
|
|
15855
|
+
"seller",
|
|
15856
|
+
"items"
|
|
15857
|
+
],
|
|
15858
|
+
"properties": {
|
|
15859
|
+
"buyer_transaction_id": { "type": "string" },
|
|
15860
|
+
"seller_transaction_id": { "type": "string" },
|
|
15861
|
+
"reference_id": { "type": "string" },
|
|
15862
|
+
"create_time": { "type": "string" },
|
|
15863
|
+
"transaction_status": { "type": "string" },
|
|
15864
|
+
"gross_amount": {
|
|
15865
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
15866
|
+
},
|
|
15867
|
+
"invoice_number": { "type": "string" },
|
|
15868
|
+
"custom": { "type": "string" },
|
|
15869
|
+
"buyer": {
|
|
15870
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_buyer"
|
|
15871
|
+
},
|
|
15872
|
+
"seller": {
|
|
15873
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_seller"
|
|
15874
|
+
},
|
|
15875
|
+
"items": {
|
|
15876
|
+
"type": "array",
|
|
15877
|
+
"items": {
|
|
15878
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_item"
|
|
15879
|
+
}
|
|
15880
|
+
}
|
|
15881
|
+
},
|
|
15882
|
+
"type": "object"
|
|
15883
|
+
},
|
|
15884
|
+
"swag_paypal_v1_disputes_item": {
|
|
15885
|
+
"required": [
|
|
15886
|
+
"dispute_id",
|
|
15887
|
+
"create_time",
|
|
15888
|
+
"update_time",
|
|
15889
|
+
"disputed_transactions",
|
|
15890
|
+
"reason",
|
|
15891
|
+
"status",
|
|
15892
|
+
"dispute_state",
|
|
15893
|
+
"dispute_amount",
|
|
15894
|
+
"external_reason_code",
|
|
15895
|
+
"dispute_outcome",
|
|
15896
|
+
"adjudications",
|
|
15897
|
+
"money_movements",
|
|
15898
|
+
"dispute_life_cycle_stage",
|
|
15899
|
+
"dispute_channel",
|
|
15900
|
+
"messages",
|
|
15901
|
+
"extensions",
|
|
15902
|
+
"evidences",
|
|
15903
|
+
"buyer_response_due_date",
|
|
15904
|
+
"seller_response_due_date",
|
|
15905
|
+
"offer",
|
|
15906
|
+
"refund_details",
|
|
15907
|
+
"communication_details",
|
|
15908
|
+
"partner_actions",
|
|
15909
|
+
"supporting_info",
|
|
15910
|
+
"links"
|
|
15911
|
+
],
|
|
15912
|
+
"properties": {
|
|
15913
|
+
"dispute_id": { "type": "string" },
|
|
15914
|
+
"create_time": { "type": "string" },
|
|
15915
|
+
"update_time": { "type": "string" },
|
|
15916
|
+
"disputed_transactions": {
|
|
15917
|
+
"type": "array",
|
|
15918
|
+
"items": {
|
|
15919
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_disputed_transaction"
|
|
15920
|
+
},
|
|
15921
|
+
"nullable": true
|
|
15922
|
+
},
|
|
15923
|
+
"reason": { "type": "string" },
|
|
15924
|
+
"status": { "type": "string" },
|
|
15925
|
+
"dispute_state": {
|
|
15926
|
+
"type": "string",
|
|
15927
|
+
"enum": [
|
|
15928
|
+
"REQUIRED_ACTION",
|
|
15929
|
+
"REQUIRED_OTHER_PARTY_ACTION",
|
|
15930
|
+
"UNDER_PAYPAL_REVIEW",
|
|
15931
|
+
"RESOLVED",
|
|
15932
|
+
"OPEN_INQUIRIES",
|
|
15933
|
+
"APPEALABLE"
|
|
15934
|
+
],
|
|
15935
|
+
"nullable": true
|
|
15936
|
+
},
|
|
15937
|
+
"dispute_amount": {
|
|
15938
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_dispute_amount"
|
|
15939
|
+
},
|
|
15940
|
+
"external_reason_code": { "type": "string", "nullable": true },
|
|
15941
|
+
"dispute_outcome": {
|
|
15942
|
+
"oneOf": [
|
|
15943
|
+
{
|
|
15944
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_dispute_outcome"
|
|
15945
|
+
}
|
|
15946
|
+
],
|
|
15947
|
+
"nullable": true
|
|
15948
|
+
},
|
|
15949
|
+
"adjudications": {
|
|
15950
|
+
"type": "array",
|
|
15951
|
+
"items": {
|
|
15952
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_adjudication"
|
|
15953
|
+
}
|
|
15954
|
+
},
|
|
15955
|
+
"money_movements": {
|
|
15956
|
+
"type": "array",
|
|
15957
|
+
"items": {
|
|
15958
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_money_movement"
|
|
15959
|
+
}
|
|
15960
|
+
},
|
|
15961
|
+
"dispute_life_cycle_stage": { "type": "string" },
|
|
15962
|
+
"dispute_channel": { "type": "string", "nullable": true },
|
|
15963
|
+
"messages": {
|
|
15964
|
+
"type": "array",
|
|
15965
|
+
"items": {
|
|
15966
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_message"
|
|
15967
|
+
},
|
|
15968
|
+
"nullable": true
|
|
15969
|
+
},
|
|
15970
|
+
"extensions": {
|
|
15971
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions"
|
|
15972
|
+
},
|
|
15973
|
+
"evidences": {
|
|
15974
|
+
"type": "array",
|
|
15975
|
+
"items": {
|
|
15976
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_evidence"
|
|
15977
|
+
},
|
|
15978
|
+
"nullable": true
|
|
15979
|
+
},
|
|
15980
|
+
"buyer_response_due_date": { "type": "string", "nullable": true },
|
|
15981
|
+
"seller_response_due_date": { "type": "string", "nullable": true },
|
|
15982
|
+
"offer": {
|
|
15983
|
+
"oneOf": [
|
|
15984
|
+
{
|
|
15985
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_offer"
|
|
15986
|
+
}
|
|
15987
|
+
],
|
|
15988
|
+
"nullable": true
|
|
15989
|
+
},
|
|
15990
|
+
"refund_details": {
|
|
15991
|
+
"oneOf": [
|
|
15992
|
+
{
|
|
15993
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_refund_details"
|
|
15994
|
+
}
|
|
15995
|
+
],
|
|
15996
|
+
"nullable": true
|
|
15997
|
+
},
|
|
15998
|
+
"communication_details": {
|
|
15999
|
+
"oneOf": [
|
|
16000
|
+
{
|
|
16001
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_communication_details"
|
|
16002
|
+
}
|
|
16003
|
+
],
|
|
16004
|
+
"nullable": true
|
|
16005
|
+
},
|
|
16006
|
+
"partner_actions": {
|
|
16007
|
+
"type": "array",
|
|
16008
|
+
"items": {
|
|
16009
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_partner_action"
|
|
16010
|
+
},
|
|
16011
|
+
"nullable": true
|
|
16012
|
+
},
|
|
16013
|
+
"supporting_info": {
|
|
16014
|
+
"type": "array",
|
|
16015
|
+
"items": {
|
|
16016
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_supporting_info"
|
|
16017
|
+
},
|
|
16018
|
+
"nullable": true
|
|
16019
|
+
},
|
|
16020
|
+
"links": {
|
|
16021
|
+
"type": "array",
|
|
16022
|
+
"items": {
|
|
16023
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
16024
|
+
}
|
|
16025
|
+
}
|
|
16026
|
+
},
|
|
16027
|
+
"type": "object"
|
|
16028
|
+
},
|
|
16029
|
+
"swag_paypal_v1_disputes_item_adjudication": {
|
|
16030
|
+
"required": [
|
|
16031
|
+
"type",
|
|
16032
|
+
"adjudication_time",
|
|
16033
|
+
"reason",
|
|
16034
|
+
"dispute_life_cycle_stage"
|
|
16035
|
+
],
|
|
16036
|
+
"properties": {
|
|
16037
|
+
"type": { "type": "string" },
|
|
16038
|
+
"adjudication_time": { "type": "string" },
|
|
16039
|
+
"reason": { "type": "string" },
|
|
16040
|
+
"dispute_life_cycle_stage": { "type": "string" }
|
|
16041
|
+
},
|
|
16042
|
+
"type": "object"
|
|
16043
|
+
},
|
|
16044
|
+
"swag_paypal_v1_disputes_item_communication_details": {
|
|
16045
|
+
"required": ["email", "note", "time_posted"],
|
|
16046
|
+
"properties": {
|
|
16047
|
+
"email": { "type": "string" },
|
|
16048
|
+
"note": { "type": "string" },
|
|
16049
|
+
"time_posted": { "type": "string" }
|
|
16050
|
+
},
|
|
16051
|
+
"type": "object"
|
|
16052
|
+
},
|
|
16053
|
+
"swag_paypal_v1_disputes_item_dispute_amount": {
|
|
16054
|
+
"allOf": [
|
|
16055
|
+
{ "$ref": "#/components/schemas/swag_paypal_v1_common_money" }
|
|
16056
|
+
]
|
|
16057
|
+
},
|
|
16058
|
+
"swag_paypal_v1_disputes_item_dispute_outcome": {
|
|
16059
|
+
"required": ["outcome_code", "amount_refunded"],
|
|
16060
|
+
"properties": {
|
|
16061
|
+
"outcome_code": { "type": "string" },
|
|
16062
|
+
"amount_refunded": {
|
|
16063
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
16064
|
+
}
|
|
16065
|
+
},
|
|
16066
|
+
"type": "object"
|
|
16067
|
+
},
|
|
16068
|
+
"swag_paypal_v1_disputes_item_disputed_transaction": {
|
|
16069
|
+
"type": "object",
|
|
16070
|
+
"allOf": [
|
|
16071
|
+
{
|
|
16072
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_transaction"
|
|
16073
|
+
},
|
|
16074
|
+
{
|
|
16075
|
+
"required": ["seller_protection_eligible"],
|
|
16076
|
+
"properties": {
|
|
16077
|
+
"seller_protection_eligible": { "type": "boolean" }
|
|
16078
|
+
},
|
|
16079
|
+
"type": "object"
|
|
16080
|
+
}
|
|
16081
|
+
]
|
|
16082
|
+
},
|
|
16083
|
+
"swag_paypal_v1_disputes_item_evidence": {
|
|
16084
|
+
"required": [
|
|
16085
|
+
"evidence_type",
|
|
16086
|
+
"evidence_info",
|
|
16087
|
+
"documents",
|
|
16088
|
+
"notes",
|
|
16089
|
+
"item_id"
|
|
16090
|
+
],
|
|
16091
|
+
"properties": {
|
|
16092
|
+
"evidence_type": { "type": "string" },
|
|
16093
|
+
"evidence_info": {
|
|
16094
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_evidence_evidence_info"
|
|
16095
|
+
},
|
|
16096
|
+
"documents": {
|
|
16097
|
+
"type": "array",
|
|
16098
|
+
"items": {
|
|
16099
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_evidence_document"
|
|
16100
|
+
}
|
|
16101
|
+
},
|
|
16102
|
+
"notes": { "type": "string" },
|
|
16103
|
+
"item_id": { "type": "string" }
|
|
16104
|
+
},
|
|
16105
|
+
"type": "object"
|
|
16106
|
+
},
|
|
16107
|
+
"swag_paypal_v1_disputes_item_evidence_document": {
|
|
16108
|
+
"required": ["name"],
|
|
16109
|
+
"properties": { "name": { "type": "string" } },
|
|
16110
|
+
"type": "object"
|
|
16111
|
+
},
|
|
16112
|
+
"swag_paypal_v1_disputes_item_evidence_evidence_info": {
|
|
16113
|
+
"required": ["tracking_info", "refund_ids"],
|
|
16114
|
+
"properties": {
|
|
16115
|
+
"tracking_info": {
|
|
16116
|
+
"type": "array",
|
|
16117
|
+
"items": {
|
|
16118
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_evidence_evidence_info_tracking_info"
|
|
16119
|
+
}
|
|
16120
|
+
},
|
|
16121
|
+
"refund_ids": {
|
|
16122
|
+
"type": "array",
|
|
16123
|
+
"items": {
|
|
16124
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_evidence_evidence_info_refund_id"
|
|
16125
|
+
}
|
|
16126
|
+
}
|
|
16127
|
+
},
|
|
16128
|
+
"type": "object"
|
|
16129
|
+
},
|
|
16130
|
+
"swag_paypal_v1_disputes_item_evidence_evidence_info_refund_id": {
|
|
16131
|
+
"required": ["refund_id"],
|
|
16132
|
+
"properties": { "refund_id": { "type": "string" } },
|
|
16133
|
+
"type": "object"
|
|
16134
|
+
},
|
|
16135
|
+
"swag_paypal_v1_disputes_item_evidence_evidence_info_tracking_info": {
|
|
16136
|
+
"required": [
|
|
16137
|
+
"carrier_name",
|
|
16138
|
+
"carrier_name_other",
|
|
16139
|
+
"tracking_url",
|
|
16140
|
+
"tracking_number"
|
|
16141
|
+
],
|
|
16142
|
+
"properties": {
|
|
16143
|
+
"carrier_name": { "type": "string" },
|
|
16144
|
+
"carrier_name_other": { "type": "string" },
|
|
16145
|
+
"tracking_url": { "type": "string" },
|
|
16146
|
+
"tracking_number": { "type": "string" }
|
|
16147
|
+
},
|
|
16148
|
+
"type": "object"
|
|
16149
|
+
},
|
|
16150
|
+
"swag_paypal_v1_disputes_item_extensions": {
|
|
16151
|
+
"required": [
|
|
16152
|
+
"merchant_contacted",
|
|
16153
|
+
"merchant_contacted_outcome",
|
|
16154
|
+
"merchant_contacted_time",
|
|
16155
|
+
"merchant_contacted_mode",
|
|
16156
|
+
"buyer_contacted_time",
|
|
16157
|
+
"buyer_contacted_channel",
|
|
16158
|
+
"billing_dispute_properties",
|
|
16159
|
+
"merchandize_dispute_properties"
|
|
16160
|
+
],
|
|
16161
|
+
"properties": {
|
|
16162
|
+
"merchant_contacted": { "type": "boolean" },
|
|
16163
|
+
"merchant_contacted_outcome": { "type": "string" },
|
|
16164
|
+
"merchant_contacted_time": { "type": "string" },
|
|
16165
|
+
"merchant_contacted_mode": { "type": "string" },
|
|
16166
|
+
"buyer_contacted_time": { "type": "string" },
|
|
16167
|
+
"buyer_contacted_channel": { "type": "string" },
|
|
16168
|
+
"billing_dispute_properties": {
|
|
16169
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions_billing_dispute_properties"
|
|
16170
|
+
},
|
|
16171
|
+
"merchandize_dispute_properties": {
|
|
16172
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions_merchandize_dispute_properties"
|
|
16173
|
+
}
|
|
16174
|
+
},
|
|
16175
|
+
"type": "object"
|
|
16176
|
+
},
|
|
16177
|
+
"swag_paypal_v1_disputes_item_extensions_billing_dispute_properties": {
|
|
16178
|
+
"required": [
|
|
16179
|
+
"duplicate_transaction",
|
|
16180
|
+
"incorrect_transaction_amount",
|
|
16181
|
+
"payment_by_other_means",
|
|
16182
|
+
"credit_not_processed",
|
|
16183
|
+
"canceled_recurring_billing"
|
|
16184
|
+
],
|
|
16185
|
+
"properties": {
|
|
16186
|
+
"duplicate_transaction": {
|
|
16187
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_duplicate_transaction"
|
|
16188
|
+
},
|
|
16189
|
+
"incorrect_transaction_amount": {
|
|
16190
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_incorrect_transaction_amount"
|
|
16191
|
+
},
|
|
16192
|
+
"payment_by_other_means": {
|
|
16193
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_payment_by_other_means"
|
|
16194
|
+
},
|
|
16195
|
+
"credit_not_processed": {
|
|
16196
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_credit_not_processed"
|
|
16197
|
+
},
|
|
16198
|
+
"canceled_recurring_billing": {
|
|
16199
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_canceled_recurring_billing"
|
|
16200
|
+
}
|
|
16201
|
+
},
|
|
16202
|
+
"type": "object"
|
|
16203
|
+
},
|
|
16204
|
+
"swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_canceled_recurring_billing": {
|
|
16205
|
+
"required": ["expected_refund", "cancellation_details"],
|
|
16206
|
+
"properties": {
|
|
16207
|
+
"expected_refund": {
|
|
16208
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
16209
|
+
},
|
|
16210
|
+
"cancellation_details": {
|
|
16211
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_common_cancellation_details"
|
|
16212
|
+
}
|
|
16213
|
+
},
|
|
16214
|
+
"type": "object"
|
|
16215
|
+
},
|
|
16216
|
+
"swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_common_agreed_refund_details": {
|
|
16217
|
+
"required": ["merchant_agreed_refund", "merchant_agreed_refund_time"],
|
|
16218
|
+
"properties": {
|
|
16219
|
+
"merchant_agreed_refund": { "type": "boolean" },
|
|
16220
|
+
"merchant_agreed_refund_time": { "type": "string" }
|
|
16221
|
+
},
|
|
16222
|
+
"type": "object"
|
|
16223
|
+
},
|
|
16224
|
+
"swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_common_cancellation_details": {
|
|
16225
|
+
"required": [
|
|
16226
|
+
"cancellation_date",
|
|
16227
|
+
"cancellation_number",
|
|
16228
|
+
"cancelled",
|
|
16229
|
+
"cancellation_mode"
|
|
16230
|
+
],
|
|
16231
|
+
"properties": {
|
|
16232
|
+
"cancellation_date": { "type": "string" },
|
|
16233
|
+
"cancellation_number": { "type": "string" },
|
|
16234
|
+
"cancelled": { "type": "boolean" },
|
|
16235
|
+
"cancellation_mode": { "type": "string" }
|
|
16236
|
+
},
|
|
16237
|
+
"type": "object"
|
|
16238
|
+
},
|
|
16239
|
+
"swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_credit_not_processed": {
|
|
16240
|
+
"required": [
|
|
16241
|
+
"issue_type",
|
|
16242
|
+
"expected_refund",
|
|
16243
|
+
"cancellation_details",
|
|
16244
|
+
"product_details",
|
|
16245
|
+
"service_details",
|
|
16246
|
+
"agreed_refund_details"
|
|
16247
|
+
],
|
|
16248
|
+
"properties": {
|
|
16249
|
+
"issue_type": { "type": "string" },
|
|
16250
|
+
"expected_refund": {
|
|
16251
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
16252
|
+
},
|
|
16253
|
+
"cancellation_details": {
|
|
16254
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_common_cancellation_details"
|
|
16255
|
+
},
|
|
16256
|
+
"product_details": {
|
|
16257
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_product_details"
|
|
16258
|
+
},
|
|
16259
|
+
"service_details": {
|
|
16260
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_service_details"
|
|
16261
|
+
},
|
|
16262
|
+
"agreed_refund_details": {
|
|
16263
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_common_agreed_refund_details"
|
|
16264
|
+
}
|
|
16265
|
+
},
|
|
16266
|
+
"type": "object"
|
|
16267
|
+
},
|
|
16268
|
+
"swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_duplicate_transaction": {
|
|
16269
|
+
"required": ["received_duplicate", "original_transaction"],
|
|
16270
|
+
"properties": {
|
|
16271
|
+
"received_duplicate": { "type": "boolean" },
|
|
16272
|
+
"original_transaction": {
|
|
16273
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_transaction"
|
|
16274
|
+
}
|
|
16275
|
+
},
|
|
16276
|
+
"type": "object"
|
|
16277
|
+
},
|
|
16278
|
+
"swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_incorrect_transaction_amount": {
|
|
16279
|
+
"required": ["correct_transaction_amount", "correct_transaction_time"],
|
|
16280
|
+
"properties": {
|
|
16281
|
+
"correct_transaction_amount": {
|
|
16282
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
16283
|
+
},
|
|
16284
|
+
"correct_transaction_time": { "type": "string" }
|
|
16285
|
+
},
|
|
16286
|
+
"type": "object"
|
|
16287
|
+
},
|
|
16288
|
+
"swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_payment_by_other_means": {
|
|
16289
|
+
"required": [
|
|
16290
|
+
"charge_different_from_original",
|
|
16291
|
+
"received_duplicate",
|
|
16292
|
+
"payment_method",
|
|
16293
|
+
"payment_instrument_suffix"
|
|
16294
|
+
],
|
|
16295
|
+
"properties": {
|
|
16296
|
+
"charge_different_from_original": { "type": "boolean" },
|
|
16297
|
+
"received_duplicate": { "type": "boolean" },
|
|
16298
|
+
"payment_method": { "type": "string" },
|
|
16299
|
+
"payment_instrument_suffix": { "type": "string" }
|
|
16300
|
+
},
|
|
16301
|
+
"type": "object"
|
|
16302
|
+
},
|
|
16303
|
+
"swag_paypal_v1_disputes_item_extensions_merchandize_dispute_properties": {
|
|
16304
|
+
"required": ["issue_type", "product_details", "service_details"],
|
|
16305
|
+
"properties": {
|
|
16306
|
+
"issue_type": { "type": "string" },
|
|
16307
|
+
"product_details": {
|
|
16308
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_product_details"
|
|
16309
|
+
},
|
|
16310
|
+
"service_details": {
|
|
16311
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_common_service_details"
|
|
16312
|
+
}
|
|
16313
|
+
},
|
|
16314
|
+
"type": "object"
|
|
16315
|
+
},
|
|
16316
|
+
"swag_paypal_v1_disputes_item_message": {
|
|
16317
|
+
"required": ["posted_by", "time_posted", "content"],
|
|
16318
|
+
"properties": {
|
|
16319
|
+
"posted_by": { "type": "string" },
|
|
16320
|
+
"time_posted": { "type": "string" },
|
|
16321
|
+
"content": { "type": "string" }
|
|
16322
|
+
},
|
|
16323
|
+
"type": "object"
|
|
16324
|
+
},
|
|
16325
|
+
"swag_paypal_v1_disputes_item_money_movement": {
|
|
16326
|
+
"required": [
|
|
16327
|
+
"affected_party",
|
|
16328
|
+
"amount",
|
|
16329
|
+
"initiated_time",
|
|
16330
|
+
"type",
|
|
16331
|
+
"reason"
|
|
16332
|
+
],
|
|
16333
|
+
"properties": {
|
|
16334
|
+
"affected_party": { "type": "string" },
|
|
16335
|
+
"amount": {
|
|
16336
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
16337
|
+
},
|
|
16338
|
+
"initiated_time": { "type": "string" },
|
|
16339
|
+
"type": { "type": "string" },
|
|
16340
|
+
"reason": { "type": "string" }
|
|
16341
|
+
},
|
|
16342
|
+
"type": "object"
|
|
16343
|
+
},
|
|
16344
|
+
"swag_paypal_v1_disputes_item_offer": {
|
|
16345
|
+
"required": [
|
|
16346
|
+
"buyer_requested_amount",
|
|
16347
|
+
"seller_offered_amount",
|
|
16348
|
+
"offer_type",
|
|
16349
|
+
"history"
|
|
16350
|
+
],
|
|
16351
|
+
"properties": {
|
|
16352
|
+
"buyer_requested_amount": {
|
|
16353
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
16354
|
+
},
|
|
16355
|
+
"seller_offered_amount": {
|
|
16356
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
16357
|
+
},
|
|
16358
|
+
"offer_type": { "type": "string" },
|
|
16359
|
+
"history": {
|
|
16360
|
+
"type": "array",
|
|
16361
|
+
"items": {
|
|
16362
|
+
"$ref": "#/components/schemas/swag_paypal_v1_disputes_item_offer_history"
|
|
16363
|
+
},
|
|
16364
|
+
"nullable": true
|
|
16365
|
+
}
|
|
16366
|
+
},
|
|
16367
|
+
"type": "object"
|
|
16368
|
+
},
|
|
16369
|
+
"swag_paypal_v1_disputes_item_offer_history": {
|
|
16370
|
+
"required": ["offer_time", "actor", "event_type", "offer_type"],
|
|
16371
|
+
"properties": {
|
|
16372
|
+
"offer_time": { "type": "string" },
|
|
16373
|
+
"actor": { "type": "string" },
|
|
16374
|
+
"event_type": { "type": "string" },
|
|
16375
|
+
"offer_type": { "type": "string" }
|
|
16376
|
+
},
|
|
16377
|
+
"type": "object"
|
|
16378
|
+
},
|
|
16379
|
+
"swag_paypal_v1_disputes_item_partner_action": {
|
|
16380
|
+
"required": [
|
|
16381
|
+
"id",
|
|
16382
|
+
"name",
|
|
16383
|
+
"create_time",
|
|
16384
|
+
"update_time",
|
|
16385
|
+
"due_time",
|
|
16386
|
+
"status",
|
|
16387
|
+
"amount"
|
|
16388
|
+
],
|
|
16389
|
+
"properties": {
|
|
16390
|
+
"id": { "type": "string" },
|
|
16391
|
+
"name": { "type": "string" },
|
|
16392
|
+
"create_time": { "type": "string" },
|
|
16393
|
+
"update_time": { "type": "string" },
|
|
16394
|
+
"due_time": { "type": "string" },
|
|
16395
|
+
"status": { "type": "string" },
|
|
16396
|
+
"amount": {
|
|
16397
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
16398
|
+
}
|
|
16399
|
+
},
|
|
16400
|
+
"type": "object"
|
|
16401
|
+
},
|
|
16402
|
+
"swag_paypal_v1_disputes_item_refund_details": {
|
|
16403
|
+
"required": ["allowed_refund_amount"],
|
|
16404
|
+
"properties": {
|
|
16405
|
+
"allowed_refund_amount": {
|
|
16406
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
16407
|
+
}
|
|
16408
|
+
},
|
|
16409
|
+
"type": "object"
|
|
16410
|
+
},
|
|
16411
|
+
"swag_paypal_v1_disputes_item_supporting_info": {
|
|
16412
|
+
"required": ["notes", "source", "provided_time"],
|
|
16413
|
+
"properties": {
|
|
16414
|
+
"notes": { "type": "string" },
|
|
16415
|
+
"source": { "type": "string" },
|
|
16416
|
+
"provided_time": { "type": "string" }
|
|
16417
|
+
},
|
|
16418
|
+
"type": "object"
|
|
16419
|
+
},
|
|
16420
|
+
"swag_paypal_v1_do_void": {
|
|
16421
|
+
"required": [
|
|
16422
|
+
"id",
|
|
16423
|
+
"amount",
|
|
16424
|
+
"state",
|
|
16425
|
+
"parent_payment",
|
|
16426
|
+
"create_time",
|
|
16427
|
+
"update_time",
|
|
16428
|
+
"links"
|
|
16429
|
+
],
|
|
16430
|
+
"properties": {
|
|
16431
|
+
"id": { "type": "string" },
|
|
16432
|
+
"amount": {
|
|
16433
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
16434
|
+
},
|
|
16435
|
+
"state": { "type": "string" },
|
|
16436
|
+
"parent_payment": { "type": "string" },
|
|
16437
|
+
"create_time": { "type": "string" },
|
|
16438
|
+
"update_time": { "type": "string" },
|
|
16439
|
+
"links": {
|
|
16440
|
+
"type": "array",
|
|
16441
|
+
"items": {
|
|
16442
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
16443
|
+
}
|
|
16444
|
+
}
|
|
16445
|
+
},
|
|
16446
|
+
"type": "object"
|
|
16447
|
+
},
|
|
16448
|
+
"swag_paypal_v1_merchant_integrations": {
|
|
16449
|
+
"required": [
|
|
16450
|
+
"merchant_id",
|
|
16451
|
+
"tracking_id",
|
|
16452
|
+
"products",
|
|
16453
|
+
"capabilities",
|
|
16454
|
+
"oauth_integrations",
|
|
16455
|
+
"granted_permissions",
|
|
16456
|
+
"payments_receivable",
|
|
16457
|
+
"legal_name",
|
|
16458
|
+
"primary_email",
|
|
16459
|
+
"primary_email_confirmed"
|
|
16460
|
+
],
|
|
16461
|
+
"properties": {
|
|
16462
|
+
"merchant_id": { "type": "string" },
|
|
16463
|
+
"tracking_id": { "type": "string" },
|
|
16464
|
+
"products": {
|
|
16465
|
+
"type": "array",
|
|
16466
|
+
"items": {
|
|
16467
|
+
"$ref": "#/components/schemas/swag_paypal_v1_merchant_integrations_product"
|
|
16468
|
+
}
|
|
16469
|
+
},
|
|
16470
|
+
"capabilities": {
|
|
16471
|
+
"type": "array",
|
|
16472
|
+
"items": {
|
|
16473
|
+
"$ref": "#/components/schemas/swag_paypal_v1_merchant_integrations_capability"
|
|
16474
|
+
},
|
|
16475
|
+
"nullable": true
|
|
16476
|
+
},
|
|
16477
|
+
"oauth_integrations": {
|
|
16478
|
+
"type": "array",
|
|
16479
|
+
"items": {
|
|
16480
|
+
"$ref": "#/components/schemas/swag_paypal_v1_merchant_integrations_oauth_integration"
|
|
16481
|
+
}
|
|
16482
|
+
},
|
|
16483
|
+
"granted_permissions": {
|
|
16484
|
+
"type": "array",
|
|
16485
|
+
"items": { "type": "string" }
|
|
16486
|
+
},
|
|
16487
|
+
"payments_receivable": { "type": "boolean" },
|
|
16488
|
+
"legal_name": { "type": "string" },
|
|
16489
|
+
"primary_email": { "type": "string" },
|
|
16490
|
+
"primary_email_confirmed": { "type": "boolean" }
|
|
16491
|
+
},
|
|
16492
|
+
"type": "object"
|
|
16493
|
+
},
|
|
16494
|
+
"swag_paypal_v1_merchant_integrations_capability": {
|
|
16495
|
+
"required": ["name", "status"],
|
|
16496
|
+
"properties": {
|
|
16497
|
+
"name": { "type": "string" },
|
|
16498
|
+
"status": { "type": "string" }
|
|
16499
|
+
},
|
|
16500
|
+
"type": "object"
|
|
16501
|
+
},
|
|
16502
|
+
"swag_paypal_v1_merchant_integrations_oauth_integration": {
|
|
16503
|
+
"required": ["integrationMethod", "integrationType", "oauthThirdParty"],
|
|
16504
|
+
"properties": {
|
|
16505
|
+
"integration_method": { "type": "string" },
|
|
16506
|
+
"integration_type": { "type": "string" },
|
|
16507
|
+
"status": { "type": "string" },
|
|
16508
|
+
"oauth_third_party": {
|
|
16509
|
+
"type": "array",
|
|
16510
|
+
"items": {
|
|
16511
|
+
"$ref": "#/components/schemas/swag_paypal_v1_merchant_integrations_oauth_integration_oauth_third_party"
|
|
16512
|
+
}
|
|
16513
|
+
}
|
|
16514
|
+
},
|
|
16515
|
+
"type": "object"
|
|
16516
|
+
},
|
|
16517
|
+
"swag_paypal_v1_merchant_integrations_oauth_integration_oauth_third_party": {
|
|
16518
|
+
"required": ["merchantClientId", "partnerClientId", "scopes"],
|
|
16519
|
+
"properties": {
|
|
16520
|
+
"access_token": { "type": "string" },
|
|
16521
|
+
"merchant_client_id": { "type": "string" },
|
|
16522
|
+
"partner_client_id": { "type": "string" },
|
|
16523
|
+
"refresh_token": { "type": "string" },
|
|
16524
|
+
"scopes": { "type": "array", "items": { "type": "string" } }
|
|
16525
|
+
},
|
|
16526
|
+
"type": "object"
|
|
16527
|
+
},
|
|
16528
|
+
"swag_paypal_v1_merchant_integrations_product": {
|
|
16529
|
+
"required": ["name"],
|
|
16530
|
+
"properties": {
|
|
16531
|
+
"name": { "type": "string" },
|
|
16532
|
+
"vetting_status": { "type": "string" },
|
|
16533
|
+
"capabilities": { "type": "array", "items": { "type": "string" } }
|
|
16534
|
+
},
|
|
16535
|
+
"type": "object"
|
|
16536
|
+
},
|
|
16537
|
+
"swag_paypal_v1_oauth_credentials": {
|
|
16538
|
+
"required": ["restId", "restSecret", "url"],
|
|
16539
|
+
"properties": {
|
|
16540
|
+
"restId": { "type": "string" },
|
|
16541
|
+
"restSecret": { "type": "string" },
|
|
16542
|
+
"url": { "type": "string" }
|
|
16543
|
+
},
|
|
16544
|
+
"type": "object"
|
|
16545
|
+
},
|
|
16546
|
+
"swag_paypal_v1_patch": {
|
|
16547
|
+
"required": ["op", "path", "value"],
|
|
16548
|
+
"properties": {
|
|
16549
|
+
"op": { "type": "string", "enum": ["add", "replace"] },
|
|
16550
|
+
"path": { "type": "string" },
|
|
16551
|
+
"value": {
|
|
16552
|
+
"oneOf": [
|
|
16553
|
+
{ "type": "string" },
|
|
16554
|
+
{ "type": "array", "items": { "type": "mixed" } }
|
|
16555
|
+
]
|
|
16556
|
+
}
|
|
16557
|
+
},
|
|
16558
|
+
"type": "object"
|
|
16559
|
+
},
|
|
16560
|
+
"swag_paypal_v1_payment": {
|
|
16561
|
+
"required": [
|
|
16562
|
+
"id",
|
|
16563
|
+
"state",
|
|
16564
|
+
"cart",
|
|
16565
|
+
"payer",
|
|
16566
|
+
"transactions",
|
|
16567
|
+
"create_time",
|
|
16568
|
+
"update_time",
|
|
16569
|
+
"links",
|
|
16570
|
+
"redirect_urls",
|
|
16571
|
+
"application_context",
|
|
16572
|
+
"payment_instruction"
|
|
16573
|
+
],
|
|
16574
|
+
"properties": {
|
|
16575
|
+
"id": { "type": "string" },
|
|
16576
|
+
"intent": {
|
|
16577
|
+
"type": "string",
|
|
16578
|
+
"default": "sale",
|
|
16579
|
+
"enum": ["sale", "authorize", "order"]
|
|
16580
|
+
},
|
|
16581
|
+
"state": { "type": "string" },
|
|
16582
|
+
"cart": { "type": "string" },
|
|
16583
|
+
"payer": {
|
|
16584
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_payer"
|
|
16585
|
+
},
|
|
16586
|
+
"transactions": {
|
|
16587
|
+
"type": "array",
|
|
16588
|
+
"items": {
|
|
16589
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction"
|
|
16590
|
+
}
|
|
16591
|
+
},
|
|
16592
|
+
"create_time": { "type": "string" },
|
|
16593
|
+
"update_time": { "type": "string" },
|
|
16594
|
+
"links": {
|
|
16595
|
+
"type": "array",
|
|
16596
|
+
"items": {
|
|
16597
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
16598
|
+
}
|
|
16599
|
+
},
|
|
16600
|
+
"redirect_urls": {
|
|
16601
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_redirect_urls"
|
|
16602
|
+
},
|
|
16603
|
+
"application_context": {
|
|
16604
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_application_context"
|
|
16605
|
+
},
|
|
16606
|
+
"payment_instruction": {
|
|
16607
|
+
"oneOf": [
|
|
16608
|
+
{
|
|
16609
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_payment_instruction"
|
|
16610
|
+
}
|
|
16611
|
+
],
|
|
16612
|
+
"nullable": true
|
|
16613
|
+
}
|
|
16614
|
+
},
|
|
16615
|
+
"type": "object"
|
|
16616
|
+
},
|
|
16617
|
+
"swag_paypal_v1_payment_application_context": {
|
|
16618
|
+
"required": ["brand_name", "locale", "landing_page"],
|
|
16619
|
+
"properties": {
|
|
16620
|
+
"brand_name": { "type": "string" },
|
|
16621
|
+
"locale": { "type": "string" },
|
|
16622
|
+
"landing_page": { "type": "string", "enum": ["Login", "Billing"] },
|
|
16623
|
+
"shipping_preference": {
|
|
16624
|
+
"type": "string",
|
|
16625
|
+
"default": "SET_PROVIDED_ADDRESS"
|
|
16626
|
+
},
|
|
16627
|
+
"user_action": { "type": "string", "default": "commit" }
|
|
16628
|
+
},
|
|
16629
|
+
"type": "object"
|
|
16630
|
+
},
|
|
16631
|
+
"swag_paypal_v1_payment_payer": {
|
|
16632
|
+
"required": [
|
|
16633
|
+
"payment_method",
|
|
16634
|
+
"status",
|
|
16635
|
+
"payer_info",
|
|
16636
|
+
"external_selected_funding_instrument_type"
|
|
16637
|
+
],
|
|
16638
|
+
"properties": {
|
|
16639
|
+
"payment_method": { "type": "string" },
|
|
16640
|
+
"status": { "type": "string" },
|
|
16641
|
+
"payer_info": {
|
|
16642
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_payer_payer_info"
|
|
16643
|
+
},
|
|
16644
|
+
"external_selected_funding_instrument_type": { "type": "string" }
|
|
16645
|
+
},
|
|
16646
|
+
"type": "object"
|
|
16647
|
+
},
|
|
16648
|
+
"swag_paypal_v1_payment_payer_execute_payer_info": {
|
|
16649
|
+
"required": ["payer_id"],
|
|
16650
|
+
"properties": { "payer_id": { "type": "string" } },
|
|
16651
|
+
"type": "object"
|
|
16652
|
+
},
|
|
16653
|
+
"swag_paypal_v1_payment_payer_payer_info": {
|
|
16654
|
+
"type": "object",
|
|
16655
|
+
"allOf": [
|
|
16656
|
+
{
|
|
16657
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_payer_execute_payer_info"
|
|
16658
|
+
},
|
|
16659
|
+
{
|
|
16660
|
+
"required": [
|
|
16661
|
+
"email",
|
|
16662
|
+
"first_name",
|
|
16663
|
+
"last_name",
|
|
16664
|
+
"billing_address",
|
|
16665
|
+
"shipping_address",
|
|
16666
|
+
"phone",
|
|
16667
|
+
"country_code"
|
|
16668
|
+
],
|
|
16669
|
+
"properties": {
|
|
16670
|
+
"email": { "type": "string" },
|
|
16671
|
+
"first_name": { "type": "string" },
|
|
16672
|
+
"last_name": { "type": "string" },
|
|
16673
|
+
"billing_address": {
|
|
16674
|
+
"oneOf": [
|
|
16675
|
+
{
|
|
16676
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_address"
|
|
16677
|
+
}
|
|
16678
|
+
],
|
|
16679
|
+
"nullable": true
|
|
16680
|
+
},
|
|
16681
|
+
"shipping_address": {
|
|
16682
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_item_list_shipping_address"
|
|
16683
|
+
},
|
|
16684
|
+
"phone": { "type": "string" },
|
|
16685
|
+
"country_code": { "type": "string" }
|
|
16686
|
+
},
|
|
16687
|
+
"type": "object"
|
|
16688
|
+
}
|
|
16689
|
+
]
|
|
16690
|
+
},
|
|
16691
|
+
"swag_paypal_v1_payment_payment_instruction": {
|
|
16692
|
+
"required": [
|
|
16693
|
+
"reference_number",
|
|
16694
|
+
"recipient_banking_instruction",
|
|
16695
|
+
"amount",
|
|
16696
|
+
"payment_due_date",
|
|
16697
|
+
"instruction_type",
|
|
16698
|
+
"links"
|
|
16699
|
+
],
|
|
16700
|
+
"properties": {
|
|
16701
|
+
"reference_number": { "type": "string" },
|
|
16702
|
+
"recipient_banking_instruction": {
|
|
16703
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_payment_instruction_recipient_banking_instruction"
|
|
16704
|
+
},
|
|
16705
|
+
"amount": {
|
|
16706
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_value"
|
|
16707
|
+
},
|
|
16708
|
+
"payment_due_date": { "type": "string" },
|
|
16709
|
+
"instruction_type": { "type": "string" },
|
|
16710
|
+
"links": {
|
|
16711
|
+
"type": "array",
|
|
16712
|
+
"items": {
|
|
16713
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
16714
|
+
}
|
|
16715
|
+
}
|
|
16716
|
+
},
|
|
16717
|
+
"type": "object"
|
|
16718
|
+
},
|
|
16719
|
+
"swag_paypal_v1_payment_payment_instruction_recipient_banking_instruction": {
|
|
16720
|
+
"required": [
|
|
16721
|
+
"bank_name",
|
|
16722
|
+
"account_holder_name",
|
|
16723
|
+
"international_bank_account_number",
|
|
16724
|
+
"bank_identifier_code"
|
|
16725
|
+
],
|
|
16726
|
+
"properties": {
|
|
16727
|
+
"bank_name": { "type": "string" },
|
|
16728
|
+
"account_holder_name": { "type": "string" },
|
|
16729
|
+
"international_bank_account_number": { "type": "string" },
|
|
16730
|
+
"bank_identifier_code": { "type": "string" }
|
|
16731
|
+
},
|
|
16732
|
+
"type": "object"
|
|
16733
|
+
},
|
|
16734
|
+
"swag_paypal_v1_payment_redirect_urls": {
|
|
16735
|
+
"required": ["return_url", "cancel_url"],
|
|
16736
|
+
"properties": {
|
|
16737
|
+
"return_url": { "type": "string" },
|
|
16738
|
+
"cancel_url": { "type": "string" }
|
|
16739
|
+
},
|
|
16740
|
+
"type": "object"
|
|
16741
|
+
},
|
|
16742
|
+
"swag_paypal_v1_payment_transaction": {
|
|
16743
|
+
"required": [
|
|
16744
|
+
"amount",
|
|
16745
|
+
"payee",
|
|
16746
|
+
"item_list",
|
|
16747
|
+
"related_resources",
|
|
16748
|
+
"invoice_number",
|
|
16749
|
+
"soft_descriptor",
|
|
16750
|
+
"description",
|
|
16751
|
+
"custom"
|
|
16752
|
+
],
|
|
16753
|
+
"properties": {
|
|
16754
|
+
"amount": {
|
|
16755
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
16756
|
+
},
|
|
16757
|
+
"payee": {
|
|
16758
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_payee"
|
|
16759
|
+
},
|
|
16760
|
+
"item_list": {
|
|
16761
|
+
"oneOf": [
|
|
16762
|
+
{
|
|
16763
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_item_list"
|
|
16764
|
+
}
|
|
16765
|
+
],
|
|
16766
|
+
"nullable": true
|
|
16767
|
+
},
|
|
16768
|
+
"related_resources": {
|
|
16769
|
+
"type": "array",
|
|
16770
|
+
"items": {
|
|
16771
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_related_resource"
|
|
16772
|
+
}
|
|
16773
|
+
},
|
|
16774
|
+
"invoice_number": { "type": "string", "nullable": true },
|
|
16775
|
+
"soft_descriptor": { "type": "string" },
|
|
16776
|
+
"description": { "type": "string" },
|
|
16777
|
+
"custom": { "type": "string" }
|
|
16778
|
+
},
|
|
16779
|
+
"type": "object"
|
|
16780
|
+
},
|
|
16781
|
+
"swag_paypal_v1_payment_transaction_item_list": {
|
|
16782
|
+
"required": [
|
|
16783
|
+
"shipping_address",
|
|
16784
|
+
"items",
|
|
16785
|
+
"shipping_options",
|
|
16786
|
+
"shipping_phone_number"
|
|
16787
|
+
],
|
|
16788
|
+
"properties": {
|
|
16789
|
+
"shipping_address": {
|
|
16790
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_item_list_shipping_address"
|
|
16791
|
+
},
|
|
16792
|
+
"items": {
|
|
16793
|
+
"type": "array",
|
|
16794
|
+
"items": {
|
|
16795
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_item_list_item"
|
|
16796
|
+
}
|
|
16797
|
+
},
|
|
16798
|
+
"shipping_options": {
|
|
16799
|
+
"type": "array",
|
|
16800
|
+
"items": {
|
|
16801
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_item_list_shipping_option"
|
|
16802
|
+
}
|
|
16803
|
+
},
|
|
16804
|
+
"shipping_phone_number": { "type": "string" }
|
|
16805
|
+
},
|
|
16806
|
+
"type": "object"
|
|
16807
|
+
},
|
|
16808
|
+
"swag_paypal_v1_payment_transaction_item_list_item": {
|
|
16809
|
+
"required": ["name", "currency", "price", "quantity", "sku", "tax"],
|
|
16810
|
+
"properties": {
|
|
16811
|
+
"name": { "type": "string" },
|
|
16812
|
+
"currency": { "type": "string" },
|
|
16813
|
+
"price": { "type": "string" },
|
|
16814
|
+
"quantity": { "type": "integer" },
|
|
16815
|
+
"sku": { "type": "string", "nullable": true },
|
|
16816
|
+
"tax": { "type": "string" }
|
|
16817
|
+
},
|
|
16818
|
+
"type": "object"
|
|
16819
|
+
},
|
|
16820
|
+
"swag_paypal_v1_payment_transaction_item_list_shipping_address": {
|
|
16821
|
+
"type": "object",
|
|
16822
|
+
"allOf": [
|
|
16823
|
+
{ "$ref": "#/components/schemas/swag_paypal_v1_common_address" },
|
|
16824
|
+
{
|
|
16825
|
+
"required": ["recipient_name"],
|
|
16826
|
+
"properties": { "recipient_name": { "type": "string" } },
|
|
16827
|
+
"type": "object"
|
|
16828
|
+
}
|
|
16829
|
+
]
|
|
16830
|
+
},
|
|
16831
|
+
"swag_paypal_v1_payment_transaction_item_list_shipping_option": {
|
|
16832
|
+
"properties": []
|
|
16833
|
+
},
|
|
16834
|
+
"swag_paypal_v1_payment_transaction_payee": {
|
|
16835
|
+
"required": ["merchant_id", "email"],
|
|
16836
|
+
"properties": {
|
|
16837
|
+
"merchant_id": { "type": "string" },
|
|
16838
|
+
"email": { "type": "string" }
|
|
16839
|
+
},
|
|
16840
|
+
"type": "object"
|
|
16841
|
+
},
|
|
16842
|
+
"swag_paypal_v1_payment_transaction_related_resource": {
|
|
16843
|
+
"required": ["sale", "authorization", "order", "refund", "capture"],
|
|
16844
|
+
"properties": {
|
|
16845
|
+
"sale": {
|
|
16846
|
+
"oneOf": [
|
|
16847
|
+
{
|
|
16848
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_related_resource_sale"
|
|
16849
|
+
}
|
|
16850
|
+
],
|
|
16851
|
+
"nullable": true
|
|
16852
|
+
},
|
|
16853
|
+
"authorization": {
|
|
16854
|
+
"oneOf": [
|
|
16855
|
+
{
|
|
16856
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_related_resource_authorization"
|
|
16857
|
+
}
|
|
16858
|
+
],
|
|
16859
|
+
"nullable": true
|
|
16860
|
+
},
|
|
16861
|
+
"order": {
|
|
16862
|
+
"oneOf": [
|
|
16863
|
+
{
|
|
16864
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_related_resource_order"
|
|
16865
|
+
}
|
|
16866
|
+
],
|
|
16867
|
+
"nullable": true
|
|
16868
|
+
},
|
|
16869
|
+
"refund": {
|
|
16870
|
+
"oneOf": [
|
|
16871
|
+
{
|
|
16872
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_related_resource_refund"
|
|
16873
|
+
}
|
|
16874
|
+
],
|
|
16875
|
+
"nullable": true
|
|
16876
|
+
},
|
|
16877
|
+
"capture": {
|
|
16878
|
+
"oneOf": [
|
|
16879
|
+
{
|
|
16880
|
+
"$ref": "#/components/schemas/swag_paypal_v1_payment_transaction_related_resource_capture"
|
|
16881
|
+
}
|
|
16882
|
+
],
|
|
16883
|
+
"nullable": true
|
|
16884
|
+
}
|
|
16885
|
+
},
|
|
16886
|
+
"type": "object"
|
|
16887
|
+
},
|
|
16888
|
+
"swag_paypal_v1_payment_transaction_related_resource_authorization": {
|
|
16889
|
+
"required": [
|
|
16890
|
+
"id",
|
|
16891
|
+
"state",
|
|
16892
|
+
"amount",
|
|
16893
|
+
"payment_mode",
|
|
16894
|
+
"create_time",
|
|
16895
|
+
"update_time",
|
|
16896
|
+
"protection_eligibility",
|
|
16897
|
+
"protection_eligibility_type",
|
|
16898
|
+
"receipt_id",
|
|
16899
|
+
"parent_payment",
|
|
16900
|
+
"links",
|
|
16901
|
+
"reason_code",
|
|
16902
|
+
"valid_until"
|
|
16903
|
+
],
|
|
16904
|
+
"properties": {
|
|
16905
|
+
"id": { "type": "string" },
|
|
16906
|
+
"state": { "type": "string" },
|
|
16907
|
+
"amount": {
|
|
16908
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
16909
|
+
},
|
|
16910
|
+
"payment_mode": { "type": "string" },
|
|
16911
|
+
"create_time": { "type": "string" },
|
|
16912
|
+
"update_time": { "type": "string" },
|
|
16913
|
+
"protection_eligibility": { "type": "string" },
|
|
16914
|
+
"protection_eligibility_type": { "type": "string" },
|
|
16915
|
+
"receipt_id": { "type": "string" },
|
|
16916
|
+
"parent_payment": { "type": "string" },
|
|
16917
|
+
"links": {
|
|
16918
|
+
"type": "array",
|
|
16919
|
+
"items": {
|
|
16920
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
16921
|
+
}
|
|
16922
|
+
},
|
|
16923
|
+
"reason_code": { "type": "string" },
|
|
16924
|
+
"valid_until": { "type": "string" }
|
|
16925
|
+
},
|
|
16926
|
+
"type": "object"
|
|
16927
|
+
},
|
|
16928
|
+
"swag_paypal_v1_payment_transaction_related_resource_capture": {
|
|
16929
|
+
"required": [
|
|
16930
|
+
"id",
|
|
16931
|
+
"state",
|
|
16932
|
+
"amount",
|
|
16933
|
+
"payment_mode",
|
|
16934
|
+
"create_time",
|
|
16935
|
+
"update_time",
|
|
16936
|
+
"protection_eligibility",
|
|
16937
|
+
"protection_eligibility_type",
|
|
16938
|
+
"receipt_id",
|
|
16939
|
+
"parent_payment",
|
|
16940
|
+
"links",
|
|
16941
|
+
"custom",
|
|
16942
|
+
"transaction_fee",
|
|
16943
|
+
"invoice_number"
|
|
16944
|
+
],
|
|
16945
|
+
"properties": {
|
|
16946
|
+
"id": { "type": "string" },
|
|
16947
|
+
"state": { "type": "string" },
|
|
16948
|
+
"amount": {
|
|
16949
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
16950
|
+
},
|
|
16951
|
+
"payment_mode": { "type": "string" },
|
|
16952
|
+
"create_time": { "type": "string" },
|
|
16953
|
+
"update_time": { "type": "string" },
|
|
16954
|
+
"protection_eligibility": { "type": "string" },
|
|
16955
|
+
"protection_eligibility_type": { "type": "string" },
|
|
16956
|
+
"receipt_id": { "type": "string" },
|
|
16957
|
+
"parent_payment": { "type": "string" },
|
|
16958
|
+
"links": {
|
|
16959
|
+
"type": "array",
|
|
16960
|
+
"items": {
|
|
16961
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
16962
|
+
}
|
|
16963
|
+
},
|
|
16964
|
+
"custom": { "type": "string" },
|
|
16965
|
+
"transaction_fee": {
|
|
16966
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_value"
|
|
16967
|
+
},
|
|
16968
|
+
"invoice_number": { "type": "string" }
|
|
16969
|
+
},
|
|
16970
|
+
"type": "object"
|
|
16971
|
+
},
|
|
16972
|
+
"swag_paypal_v1_payment_transaction_related_resource_order": {
|
|
16973
|
+
"required": [
|
|
16974
|
+
"id",
|
|
16975
|
+
"state",
|
|
16976
|
+
"amount",
|
|
16977
|
+
"payment_mode",
|
|
16978
|
+
"create_time",
|
|
16979
|
+
"update_time",
|
|
16980
|
+
"protection_eligibility",
|
|
16981
|
+
"protection_eligibility_type",
|
|
16982
|
+
"receipt_id",
|
|
16983
|
+
"parent_payment",
|
|
16984
|
+
"links",
|
|
16985
|
+
"reason_code"
|
|
16986
|
+
],
|
|
16987
|
+
"properties": {
|
|
16988
|
+
"id": { "type": "string" },
|
|
16989
|
+
"state": { "type": "string" },
|
|
16990
|
+
"amount": {
|
|
16991
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
16992
|
+
},
|
|
16993
|
+
"payment_mode": { "type": "string" },
|
|
16994
|
+
"create_time": { "type": "string" },
|
|
16995
|
+
"update_time": { "type": "string" },
|
|
16996
|
+
"protection_eligibility": { "type": "string" },
|
|
16997
|
+
"protection_eligibility_type": { "type": "string" },
|
|
16998
|
+
"receipt_id": { "type": "string" },
|
|
16999
|
+
"parent_payment": { "type": "string" },
|
|
17000
|
+
"links": {
|
|
17001
|
+
"type": "array",
|
|
17002
|
+
"items": {
|
|
17003
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
17004
|
+
}
|
|
17005
|
+
},
|
|
17006
|
+
"reason_code": { "type": "string" }
|
|
17007
|
+
},
|
|
17008
|
+
"type": "object"
|
|
17009
|
+
},
|
|
17010
|
+
"swag_paypal_v1_payment_transaction_related_resource_refund": {
|
|
17011
|
+
"required": [
|
|
17012
|
+
"id",
|
|
17013
|
+
"state",
|
|
17014
|
+
"amount",
|
|
17015
|
+
"payment_mode",
|
|
17016
|
+
"create_time",
|
|
17017
|
+
"update_time",
|
|
17018
|
+
"protection_eligibility",
|
|
17019
|
+
"protection_eligibility_type",
|
|
17020
|
+
"receipt_id",
|
|
17021
|
+
"parent_payment",
|
|
17022
|
+
"links",
|
|
17023
|
+
"sale_id",
|
|
17024
|
+
"capture_id"
|
|
17025
|
+
],
|
|
17026
|
+
"properties": {
|
|
17027
|
+
"id": { "type": "string" },
|
|
17028
|
+
"state": { "type": "string" },
|
|
17029
|
+
"amount": {
|
|
17030
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
17031
|
+
},
|
|
17032
|
+
"payment_mode": { "type": "string" },
|
|
17033
|
+
"create_time": { "type": "string" },
|
|
17034
|
+
"update_time": { "type": "string" },
|
|
17035
|
+
"protection_eligibility": { "type": "string" },
|
|
17036
|
+
"protection_eligibility_type": { "type": "string" },
|
|
17037
|
+
"receipt_id": { "type": "string" },
|
|
17038
|
+
"parent_payment": { "type": "string" },
|
|
17039
|
+
"links": {
|
|
17040
|
+
"type": "array",
|
|
17041
|
+
"items": {
|
|
17042
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
17043
|
+
}
|
|
17044
|
+
},
|
|
17045
|
+
"sale_id": { "type": "string" },
|
|
17046
|
+
"capture_id": { "type": "string" }
|
|
17047
|
+
},
|
|
17048
|
+
"type": "object"
|
|
17049
|
+
},
|
|
17050
|
+
"swag_paypal_v1_payment_transaction_related_resource_sale": {
|
|
17051
|
+
"required": [
|
|
17052
|
+
"id",
|
|
17053
|
+
"state",
|
|
17054
|
+
"amount",
|
|
17055
|
+
"payment_mode",
|
|
17056
|
+
"create_time",
|
|
17057
|
+
"update_time",
|
|
17058
|
+
"protection_eligibility",
|
|
17059
|
+
"protection_eligibility_type",
|
|
17060
|
+
"receipt_id",
|
|
17061
|
+
"parent_payment",
|
|
17062
|
+
"links",
|
|
17063
|
+
"transaction_fee"
|
|
17064
|
+
],
|
|
17065
|
+
"properties": {
|
|
17066
|
+
"id": { "type": "string" },
|
|
17067
|
+
"state": { "type": "string" },
|
|
17068
|
+
"amount": {
|
|
17069
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
17070
|
+
},
|
|
17071
|
+
"payment_mode": { "type": "string" },
|
|
17072
|
+
"create_time": { "type": "string" },
|
|
17073
|
+
"update_time": { "type": "string" },
|
|
17074
|
+
"protection_eligibility": { "type": "string" },
|
|
17075
|
+
"protection_eligibility_type": { "type": "string" },
|
|
17076
|
+
"receipt_id": { "type": "string" },
|
|
17077
|
+
"parent_payment": { "type": "string" },
|
|
17078
|
+
"links": {
|
|
17079
|
+
"type": "array",
|
|
17080
|
+
"items": {
|
|
17081
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
17082
|
+
}
|
|
17083
|
+
},
|
|
17084
|
+
"transaction_fee": {
|
|
17085
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_value"
|
|
17086
|
+
}
|
|
17087
|
+
},
|
|
17088
|
+
"type": "object"
|
|
17089
|
+
},
|
|
17090
|
+
"swag_paypal_v1_plan": {
|
|
17091
|
+
"required": [
|
|
17092
|
+
"product_id",
|
|
17093
|
+
"name",
|
|
17094
|
+
"description",
|
|
17095
|
+
"status",
|
|
17096
|
+
"billing_cycles",
|
|
17097
|
+
"payment_preferences",
|
|
17098
|
+
"taxes"
|
|
17099
|
+
],
|
|
17100
|
+
"properties": {
|
|
17101
|
+
"product_id": { "type": "string" },
|
|
17102
|
+
"name": { "type": "string" },
|
|
17103
|
+
"description": { "type": "string", "nullable": true },
|
|
17104
|
+
"status": { "type": "string" },
|
|
17105
|
+
"billing_cycles": {
|
|
17106
|
+
"type": "array",
|
|
17107
|
+
"items": {
|
|
17108
|
+
"$ref": "#/components/schemas/swag_paypal_v1_plan_billing_cycle"
|
|
17109
|
+
}
|
|
17110
|
+
},
|
|
17111
|
+
"payment_preferences": {
|
|
17112
|
+
"$ref": "#/components/schemas/swag_paypal_v1_plan_payment_preferences"
|
|
17113
|
+
},
|
|
17114
|
+
"taxes": { "$ref": "#/components/schemas/swag_paypal_v1_plan_taxes" }
|
|
17115
|
+
},
|
|
17116
|
+
"type": "object"
|
|
17117
|
+
},
|
|
17118
|
+
"swag_paypal_v1_plan_billing_cycle": {
|
|
17119
|
+
"required": [
|
|
17120
|
+
"frequency",
|
|
17121
|
+
"tenure_type",
|
|
17122
|
+
"sequence",
|
|
17123
|
+
"pricing_scheme",
|
|
17124
|
+
"total_cycles"
|
|
17125
|
+
],
|
|
17126
|
+
"properties": {
|
|
17127
|
+
"frequency": {
|
|
17128
|
+
"$ref": "#/components/schemas/swag_paypal_v1_plan_billing_cycle_frequency"
|
|
17129
|
+
},
|
|
17130
|
+
"tenure_type": { "type": "string" },
|
|
17131
|
+
"sequence": { "type": "integer" },
|
|
17132
|
+
"pricing_scheme": {
|
|
17133
|
+
"$ref": "#/components/schemas/swag_paypal_v1_plan_billing_cycle_pricing_scheme"
|
|
17134
|
+
},
|
|
17135
|
+
"total_cycles": { "type": "integer" }
|
|
17136
|
+
},
|
|
17137
|
+
"type": "object"
|
|
17138
|
+
},
|
|
17139
|
+
"swag_paypal_v1_plan_billing_cycle_frequency": {
|
|
17140
|
+
"required": ["interval_unit", "interval_count"],
|
|
17141
|
+
"properties": {
|
|
17142
|
+
"interval_unit": { "type": "string" },
|
|
17143
|
+
"interval_count": { "type": "integer" }
|
|
17144
|
+
},
|
|
17145
|
+
"type": "object"
|
|
17146
|
+
},
|
|
17147
|
+
"swag_paypal_v1_plan_billing_cycle_pricing_scheme": {
|
|
17148
|
+
"required": ["fixed_price"],
|
|
17149
|
+
"properties": {
|
|
17150
|
+
"fixed_price": {
|
|
17151
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
17152
|
+
}
|
|
17153
|
+
},
|
|
17154
|
+
"type": "object"
|
|
17155
|
+
},
|
|
17156
|
+
"swag_paypal_v1_plan_payment_preferences": {
|
|
17157
|
+
"required": ["auto_bill_outstanding", "payment_failure_threshold"],
|
|
17158
|
+
"properties": {
|
|
17159
|
+
"auto_bill_outstanding": { "type": "boolean" },
|
|
17160
|
+
"payment_failure_threshold": { "type": "integer" }
|
|
17161
|
+
},
|
|
17162
|
+
"type": "object"
|
|
17163
|
+
},
|
|
17164
|
+
"swag_paypal_v1_plan_taxes": {
|
|
17165
|
+
"required": ["percentage", "inclusive"],
|
|
17166
|
+
"properties": {
|
|
17167
|
+
"percentage": { "type": "string" },
|
|
17168
|
+
"inclusive": { "type": "boolean" }
|
|
17169
|
+
},
|
|
17170
|
+
"type": "object"
|
|
17171
|
+
},
|
|
17172
|
+
"swag_paypal_v1_product": {
|
|
17173
|
+
"required": ["name", "description", "type"],
|
|
17174
|
+
"properties": {
|
|
17175
|
+
"name": { "type": "string" },
|
|
17176
|
+
"description": { "type": "string" },
|
|
17177
|
+
"type": { "type": "string" }
|
|
17178
|
+
},
|
|
17179
|
+
"type": "object"
|
|
17180
|
+
},
|
|
17181
|
+
"swag_paypal_v1_refund": {
|
|
17182
|
+
"required": [
|
|
17183
|
+
"amount",
|
|
17184
|
+
"invoice_number",
|
|
17185
|
+
"description",
|
|
17186
|
+
"reason",
|
|
17187
|
+
"id",
|
|
17188
|
+
"create_time",
|
|
17189
|
+
"update_time",
|
|
17190
|
+
"state",
|
|
17191
|
+
"refund_from_transaction_fee",
|
|
17192
|
+
"total_refunded_amount",
|
|
17193
|
+
"refund_from_received_amount",
|
|
17194
|
+
"sale_id",
|
|
17195
|
+
"capture_id",
|
|
17196
|
+
"parent_payment",
|
|
17197
|
+
"links"
|
|
17198
|
+
],
|
|
17199
|
+
"properties": {
|
|
17200
|
+
"amount": {
|
|
17201
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
17202
|
+
},
|
|
17203
|
+
"invoice_number": { "type": "string" },
|
|
17204
|
+
"description": { "type": "string" },
|
|
17205
|
+
"reason": { "type": "string" },
|
|
17206
|
+
"id": { "type": "string" },
|
|
17207
|
+
"create_time": { "type": "string" },
|
|
17208
|
+
"update_time": { "type": "string" },
|
|
17209
|
+
"state": { "type": "string" },
|
|
17210
|
+
"refund_from_transaction_fee": {
|
|
17211
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_value"
|
|
17212
|
+
},
|
|
17213
|
+
"total_refunded_amount": {
|
|
17214
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_value"
|
|
17215
|
+
},
|
|
17216
|
+
"refund_from_received_amount": {
|
|
17217
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_value"
|
|
17218
|
+
},
|
|
17219
|
+
"sale_id": { "type": "string" },
|
|
17220
|
+
"capture_id": { "type": "string" },
|
|
17221
|
+
"parent_payment": { "type": "string" },
|
|
17222
|
+
"links": {
|
|
17223
|
+
"type": "array",
|
|
17224
|
+
"items": {
|
|
17225
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
17226
|
+
}
|
|
17227
|
+
}
|
|
17228
|
+
},
|
|
17229
|
+
"type": "object"
|
|
17230
|
+
},
|
|
17231
|
+
"swag_paypal_v1_shipping": {
|
|
17232
|
+
"required": ["trackers"],
|
|
17233
|
+
"properties": {
|
|
17234
|
+
"trackers": {
|
|
17235
|
+
"type": "array",
|
|
17236
|
+
"items": {
|
|
17237
|
+
"$ref": "#/components/schemas/swag_paypal_v1_shipping_tracker"
|
|
17238
|
+
}
|
|
17239
|
+
}
|
|
17240
|
+
},
|
|
17241
|
+
"type": "object"
|
|
17242
|
+
},
|
|
17243
|
+
"swag_paypal_v1_shipping_tracker": {
|
|
17244
|
+
"required": [
|
|
17245
|
+
"transaction_id",
|
|
17246
|
+
"tracking_number",
|
|
17247
|
+
"status",
|
|
17248
|
+
"carrier",
|
|
17249
|
+
"notify_buyer",
|
|
17250
|
+
"shipment_date"
|
|
17251
|
+
],
|
|
17252
|
+
"properties": {
|
|
17253
|
+
"transaction_id": { "type": "string" },
|
|
17254
|
+
"tracking_number": { "type": "string" },
|
|
17255
|
+
"status": { "type": "string" },
|
|
17256
|
+
"carrier": { "type": "string" },
|
|
17257
|
+
"notify_buyer": { "type": "boolean" },
|
|
17258
|
+
"shipment_date": {
|
|
17259
|
+
"description": "Pattern: '2022-08-15'",
|
|
17260
|
+
"type": "string"
|
|
17261
|
+
}
|
|
17262
|
+
},
|
|
17263
|
+
"type": "object"
|
|
17264
|
+
},
|
|
17265
|
+
"swag_paypal_v1_subscription": {
|
|
17266
|
+
"required": [
|
|
17267
|
+
"id",
|
|
17268
|
+
"plan_id",
|
|
17269
|
+
"start_time",
|
|
17270
|
+
"quantity",
|
|
17271
|
+
"shipping_amount",
|
|
17272
|
+
"subscriber",
|
|
17273
|
+
"billing_info",
|
|
17274
|
+
"application_context",
|
|
17275
|
+
"status",
|
|
17276
|
+
"status_update_time",
|
|
17277
|
+
"create_time",
|
|
17278
|
+
"update_time",
|
|
17279
|
+
"links"
|
|
17280
|
+
],
|
|
17281
|
+
"properties": {
|
|
17282
|
+
"id": { "type": "string" },
|
|
17283
|
+
"plan_id": { "type": "string" },
|
|
17284
|
+
"start_time": { "type": "string" },
|
|
17285
|
+
"quantity": { "type": "string" },
|
|
17286
|
+
"shipping_amount": {
|
|
17287
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
17288
|
+
},
|
|
17289
|
+
"subscriber": {
|
|
17290
|
+
"$ref": "#/components/schemas/swag_paypal_v1_subscription_subscriber"
|
|
17291
|
+
},
|
|
17292
|
+
"billing_info": {
|
|
17293
|
+
"oneOf": [
|
|
17294
|
+
{
|
|
17295
|
+
"$ref": "#/components/schemas/swag_paypal_v1_subscription_billing_info"
|
|
17296
|
+
}
|
|
17297
|
+
],
|
|
17298
|
+
"nullable": true
|
|
17299
|
+
},
|
|
17300
|
+
"application_context": {
|
|
17301
|
+
"$ref": "#/components/schemas/swag_paypal_v1_subscription_application_context"
|
|
17302
|
+
},
|
|
17303
|
+
"status": { "type": "string" },
|
|
17304
|
+
"status_update_time": { "type": "string" },
|
|
17305
|
+
"create_time": { "type": "string" },
|
|
17306
|
+
"update_time": { "type": "string" },
|
|
17307
|
+
"links": {
|
|
17308
|
+
"type": "array",
|
|
17309
|
+
"items": {
|
|
17310
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
17311
|
+
}
|
|
17312
|
+
}
|
|
17313
|
+
},
|
|
17314
|
+
"type": "object"
|
|
17315
|
+
},
|
|
17316
|
+
"swag_paypal_v1_subscription_application_context": {
|
|
17317
|
+
"required": ["brand_name", "locale", "return_url", "cancel_url"],
|
|
17318
|
+
"properties": {
|
|
17319
|
+
"user_action": { "type": "string", "default": "SUBSCRIBE_NOW" },
|
|
17320
|
+
"brand_name": { "type": "string" },
|
|
17321
|
+
"locale": { "type": "string" },
|
|
17322
|
+
"shipping_preference": {
|
|
17323
|
+
"type": "string",
|
|
17324
|
+
"default": "SET_PROVIDED_ADDRESS"
|
|
17325
|
+
},
|
|
17326
|
+
"return_url": { "type": "string" },
|
|
17327
|
+
"cancel_url": { "type": "string" }
|
|
17328
|
+
},
|
|
17329
|
+
"type": "object"
|
|
17330
|
+
},
|
|
17331
|
+
"swag_paypal_v1_subscription_billing_info": {
|
|
17332
|
+
"required": [
|
|
17333
|
+
"outstanding_balance",
|
|
17334
|
+
"cycle_executions",
|
|
17335
|
+
"last_payment",
|
|
17336
|
+
"next_billing_time",
|
|
17337
|
+
"failed_payments_count"
|
|
17338
|
+
],
|
|
17339
|
+
"properties": {
|
|
17340
|
+
"outstanding_balance": {
|
|
17341
|
+
"$ref": "#/components/schemas/swag_paypal_v1_subscription_billing_info_outstanding_balance"
|
|
17342
|
+
},
|
|
17343
|
+
"cycle_executions": {
|
|
17344
|
+
"type": "array",
|
|
17345
|
+
"items": {
|
|
17346
|
+
"$ref": "#/components/schemas/swag_paypal_v1_subscription_billing_info_cycle_execution"
|
|
17347
|
+
}
|
|
17348
|
+
},
|
|
17349
|
+
"last_payment": {
|
|
17350
|
+
"$ref": "#/components/schemas/swag_paypal_v1_subscription_billing_info_last_payment"
|
|
17351
|
+
},
|
|
17352
|
+
"next_billing_time": { "type": "string", "nullable": true },
|
|
17353
|
+
"failed_payments_count": { "type": "integer" }
|
|
17354
|
+
},
|
|
17355
|
+
"type": "object"
|
|
17356
|
+
},
|
|
17357
|
+
"swag_paypal_v1_subscription_billing_info_cycle_execution": {
|
|
17358
|
+
"required": [
|
|
17359
|
+
"tenure_type",
|
|
17360
|
+
"sequence",
|
|
17361
|
+
"cycles_completed",
|
|
17362
|
+
"cycles_remaining",
|
|
17363
|
+
"total_cycles"
|
|
17364
|
+
],
|
|
17365
|
+
"properties": {
|
|
17366
|
+
"tenure_type": { "type": "string" },
|
|
17367
|
+
"sequence": { "type": "integer" },
|
|
17368
|
+
"cycles_completed": { "type": "integer" },
|
|
17369
|
+
"cycles_remaining": { "type": "integer" },
|
|
17370
|
+
"total_cycles": { "type": "integer" }
|
|
17371
|
+
},
|
|
17372
|
+
"type": "object"
|
|
17373
|
+
},
|
|
17374
|
+
"swag_paypal_v1_subscription_billing_info_last_payment": {
|
|
17375
|
+
"required": ["amount", "time"],
|
|
17376
|
+
"properties": {
|
|
17377
|
+
"amount": {
|
|
17378
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_money"
|
|
17379
|
+
},
|
|
17380
|
+
"time": { "type": "string" }
|
|
17381
|
+
},
|
|
17382
|
+
"type": "object"
|
|
17383
|
+
},
|
|
17384
|
+
"swag_paypal_v1_subscription_billing_info_outstanding_balance": {
|
|
17385
|
+
"allOf": [
|
|
17386
|
+
{ "$ref": "#/components/schemas/swag_paypal_v1_common_money" }
|
|
17387
|
+
]
|
|
17388
|
+
},
|
|
17389
|
+
"swag_paypal_v1_subscription_subscriber": {
|
|
17390
|
+
"required": ["name", "email_address", "payer_id", "shipping_address"],
|
|
17391
|
+
"properties": {
|
|
17392
|
+
"name": {
|
|
17393
|
+
"$ref": "#/components/schemas/swag_paypal_v1_subscription_subscriber_name"
|
|
17394
|
+
},
|
|
17395
|
+
"email_address": { "type": "string" },
|
|
17396
|
+
"payer_id": { "type": "string" },
|
|
17397
|
+
"shipping_address": {
|
|
17398
|
+
"oneOf": [
|
|
17399
|
+
{
|
|
17400
|
+
"$ref": "#/components/schemas/swag_paypal_v1_subscription_subscriber_shipping_address"
|
|
17401
|
+
}
|
|
17402
|
+
],
|
|
17403
|
+
"nullable": true
|
|
17404
|
+
}
|
|
17405
|
+
},
|
|
17406
|
+
"type": "object"
|
|
17407
|
+
},
|
|
17408
|
+
"swag_paypal_v1_subscription_subscriber_name": {
|
|
17409
|
+
"required": ["given_name", "surname"],
|
|
17410
|
+
"properties": {
|
|
17411
|
+
"given_name": { "type": "string" },
|
|
17412
|
+
"surname": { "type": "string" }
|
|
17413
|
+
},
|
|
17414
|
+
"type": "object"
|
|
17415
|
+
},
|
|
17416
|
+
"swag_paypal_v1_subscription_subscriber_shipping_address": {
|
|
17417
|
+
"required": ["name", "address"],
|
|
17418
|
+
"properties": {
|
|
17419
|
+
"name": {
|
|
17420
|
+
"oneOf": [
|
|
17421
|
+
{
|
|
17422
|
+
"$ref": "#/components/schemas/swag_paypal_v1_subscription_subscriber_shipping_address_name"
|
|
17423
|
+
}
|
|
17424
|
+
],
|
|
17425
|
+
"nullable": true
|
|
17426
|
+
},
|
|
17427
|
+
"address": {
|
|
17428
|
+
"oneOf": [
|
|
17429
|
+
{
|
|
17430
|
+
"$ref": "#/components/schemas/swag_paypal_v1_subscription_subscriber_shipping_address_address"
|
|
17431
|
+
}
|
|
17432
|
+
],
|
|
17433
|
+
"nullable": true
|
|
17434
|
+
}
|
|
17435
|
+
},
|
|
17436
|
+
"type": "object"
|
|
17437
|
+
},
|
|
17438
|
+
"swag_paypal_v1_subscription_subscriber_shipping_address_address": {
|
|
17439
|
+
"required": [
|
|
17440
|
+
"address_line_1",
|
|
17441
|
+
"address_line_2",
|
|
17442
|
+
"admin_area_1",
|
|
17443
|
+
"admin_area_2",
|
|
17444
|
+
"postal_code",
|
|
17445
|
+
"country_code"
|
|
17446
|
+
],
|
|
17447
|
+
"properties": {
|
|
17448
|
+
"address_line_1": { "type": "string", "nullable": true },
|
|
17449
|
+
"address_line_2": { "type": "string", "nullable": true },
|
|
17450
|
+
"admin_area_1": { "type": "string", "nullable": true },
|
|
17451
|
+
"admin_area_2": { "type": "string", "nullable": true },
|
|
17452
|
+
"postal_code": { "type": "string", "nullable": true },
|
|
17453
|
+
"country_code": { "type": "string" }
|
|
17454
|
+
},
|
|
17455
|
+
"type": "object"
|
|
17456
|
+
},
|
|
17457
|
+
"swag_paypal_v1_subscription_subscriber_shipping_address_name": {
|
|
17458
|
+
"required": ["full_name"],
|
|
17459
|
+
"properties": { "full_name": { "type": "string" } },
|
|
17460
|
+
"type": "object"
|
|
17461
|
+
},
|
|
17462
|
+
"swag_paypal_v1_token": {
|
|
17463
|
+
"required": [
|
|
17464
|
+
"scope",
|
|
17465
|
+
"nonce",
|
|
17466
|
+
"access_token",
|
|
17467
|
+
"token_type",
|
|
17468
|
+
"app_id",
|
|
17469
|
+
"id_token",
|
|
17470
|
+
"expires_in",
|
|
17471
|
+
"expire_date_time"
|
|
17472
|
+
],
|
|
17473
|
+
"properties": {
|
|
17474
|
+
"scope": {
|
|
17475
|
+
"description": "Scopes expressed in the form of resource URL endpoints. The value of the scope parameter\nis expressed as a list of space-delimited, case-sensitive strings.",
|
|
17476
|
+
"type": "string"
|
|
17477
|
+
},
|
|
17478
|
+
"nonce": { "type": "string" },
|
|
17479
|
+
"access_token": {
|
|
17480
|
+
"description": "The access token issued by PayPal. After the access token\nexpires (see $expiresIn), you must request a new access token.",
|
|
17481
|
+
"type": "string"
|
|
17482
|
+
},
|
|
17483
|
+
"token_type": {
|
|
17484
|
+
"description": "The type of the token issued as described in OAuth2.0 RFC6749,\nSection 7.1. Value is case insensitive.",
|
|
17485
|
+
"type": "string"
|
|
17486
|
+
},
|
|
17487
|
+
"app_id": { "type": "string" },
|
|
17488
|
+
"id_token": { "type": "string", "nullable": true },
|
|
17489
|
+
"expires_in": {
|
|
17490
|
+
"description": "The lifetime of the access token, in seconds.",
|
|
17491
|
+
"type": "integer"
|
|
17492
|
+
},
|
|
17493
|
+
"expire_date_time": {
|
|
17494
|
+
"description": "Calculated expiration date",
|
|
17495
|
+
"type": "string",
|
|
17496
|
+
"format": "date-time"
|
|
17497
|
+
}
|
|
17498
|
+
},
|
|
17499
|
+
"type": "object"
|
|
17500
|
+
},
|
|
17501
|
+
"swag_paypal_v1_webhook": {
|
|
17502
|
+
"required": [
|
|
17503
|
+
"id",
|
|
17504
|
+
"resource_type",
|
|
17505
|
+
"event_type",
|
|
17506
|
+
"summary",
|
|
17507
|
+
"resource",
|
|
17508
|
+
"create_time",
|
|
17509
|
+
"links",
|
|
17510
|
+
"event_version",
|
|
17511
|
+
"resource_version"
|
|
17512
|
+
],
|
|
17513
|
+
"properties": {
|
|
17514
|
+
"id": { "type": "string" },
|
|
17515
|
+
"resource_type": { "type": "string" },
|
|
17516
|
+
"event_type": { "type": "string" },
|
|
17517
|
+
"summary": { "type": "string" },
|
|
17518
|
+
"resource": {
|
|
17519
|
+
"nullable": true,
|
|
17520
|
+
"oneOf": [
|
|
17521
|
+
{ "$ref": "#/components/schemas/swag_paypal_v3_payment_token" },
|
|
17522
|
+
{
|
|
17523
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_authorization"
|
|
17524
|
+
},
|
|
17525
|
+
{
|
|
17526
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_capture"
|
|
17527
|
+
},
|
|
17528
|
+
{
|
|
17529
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_refund"
|
|
17530
|
+
},
|
|
17531
|
+
{
|
|
17532
|
+
"$ref": "#/components/schemas/swag_paypal_v1_webhook_resource"
|
|
17533
|
+
},
|
|
17534
|
+
{ "$ref": "#/components/schemas/swag_paypal_v1_subscription" }
|
|
17535
|
+
]
|
|
17536
|
+
},
|
|
17537
|
+
"create_time": { "type": "string" },
|
|
17538
|
+
"links": {
|
|
17539
|
+
"type": "array",
|
|
17540
|
+
"items": {
|
|
17541
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
17542
|
+
}
|
|
17543
|
+
},
|
|
17544
|
+
"event_version": { "type": "string" },
|
|
17545
|
+
"resource_version": { "type": "string" }
|
|
17546
|
+
},
|
|
17547
|
+
"type": "object"
|
|
17548
|
+
},
|
|
17549
|
+
"swag_paypal_v1_webhook_resource": {
|
|
17550
|
+
"required": [
|
|
17551
|
+
"id",
|
|
17552
|
+
"parent_payment",
|
|
17553
|
+
"billing_agreement_id",
|
|
17554
|
+
"sale_id",
|
|
17555
|
+
"refund_reason_code",
|
|
17556
|
+
"update_time",
|
|
17557
|
+
"amount",
|
|
17558
|
+
"payment_mode",
|
|
17559
|
+
"create_time",
|
|
17560
|
+
"clearing_time",
|
|
17561
|
+
"protection_eligibility_type",
|
|
17562
|
+
"protection_eligibility",
|
|
17563
|
+
"transaction_fee",
|
|
17564
|
+
"invoice_number",
|
|
17565
|
+
"links",
|
|
17566
|
+
"state",
|
|
17567
|
+
"merchant_id"
|
|
17568
|
+
],
|
|
17569
|
+
"properties": {
|
|
17570
|
+
"id": { "type": "string" },
|
|
17571
|
+
"parent_payment": { "type": "string", "nullable": true },
|
|
17572
|
+
"billing_agreement_id": { "type": "string", "nullable": true },
|
|
17573
|
+
"sale_id": { "type": "string", "nullable": true },
|
|
17574
|
+
"refund_reason_code": { "type": "string", "nullable": true },
|
|
17575
|
+
"update_time": { "type": "string" },
|
|
17576
|
+
"amount": {
|
|
17577
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_amount"
|
|
17578
|
+
},
|
|
17579
|
+
"payment_mode": { "type": "string" },
|
|
17580
|
+
"create_time": { "type": "string" },
|
|
17581
|
+
"clearing_time": { "type": "string" },
|
|
17582
|
+
"protection_eligibility_type": { "type": "string" },
|
|
17583
|
+
"protection_eligibility": { "type": "string" },
|
|
17584
|
+
"transaction_fee": {
|
|
17585
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_value"
|
|
17586
|
+
},
|
|
17587
|
+
"invoice_number": { "type": "string" },
|
|
17588
|
+
"links": {
|
|
17589
|
+
"type": "array",
|
|
17590
|
+
"items": {
|
|
17591
|
+
"$ref": "#/components/schemas/swag_paypal_v1_common_link"
|
|
17592
|
+
}
|
|
17593
|
+
},
|
|
17594
|
+
"state": { "type": "string" },
|
|
17595
|
+
"merchant_id": { "type": "string", "nullable": true }
|
|
17596
|
+
},
|
|
17597
|
+
"type": "object"
|
|
17598
|
+
},
|
|
17599
|
+
"swag_paypal_v2_common_address": {
|
|
17600
|
+
"required": [
|
|
17601
|
+
"address_line_1",
|
|
17602
|
+
"address_line_2",
|
|
17603
|
+
"admin_area_2",
|
|
17604
|
+
"admin_area_1",
|
|
17605
|
+
"postal_code",
|
|
17606
|
+
"country_code"
|
|
17607
|
+
],
|
|
17608
|
+
"properties": {
|
|
17609
|
+
"address_line_1": {
|
|
17610
|
+
"description": "The first line of the address. For example, number or street. For example, 173 Drury Lane.\nRequired for data entry and compliance and risk checks. Must contain the full address.",
|
|
17611
|
+
"type": "string",
|
|
17612
|
+
"nullable": true
|
|
17613
|
+
},
|
|
17614
|
+
"address_line_2": {
|
|
17615
|
+
"description": "The second line of the address. For example, suite or apartment number.",
|
|
17616
|
+
"type": "string",
|
|
17617
|
+
"nullable": true
|
|
17618
|
+
},
|
|
17619
|
+
"admin_area_2": {
|
|
17620
|
+
"description": "A city, town, or village. Smaller than $adminArea1",
|
|
17621
|
+
"type": "string",
|
|
17622
|
+
"nullable": true
|
|
17623
|
+
},
|
|
17624
|
+
"admin_area_1": {
|
|
17625
|
+
"description": "The highest level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.\nFormat for postal delivery. For example, CA and not California.",
|
|
17626
|
+
"type": "string",
|
|
17627
|
+
"nullable": true
|
|
17628
|
+
},
|
|
17629
|
+
"postal_code": { "type": "string", "nullable": true },
|
|
17630
|
+
"country_code": { "type": "string" }
|
|
17631
|
+
},
|
|
17632
|
+
"type": "object"
|
|
17633
|
+
},
|
|
17634
|
+
"swag_paypal_v2_common_link": {
|
|
17635
|
+
"required": ["href", "rel", "method", "enc_type"],
|
|
17636
|
+
"properties": {
|
|
17637
|
+
"href": { "type": "string" },
|
|
17638
|
+
"rel": { "type": "string" },
|
|
17639
|
+
"method": { "type": "string" },
|
|
17640
|
+
"enc_type": { "type": "string", "nullable": true }
|
|
17641
|
+
},
|
|
17642
|
+
"type": "object"
|
|
17643
|
+
},
|
|
17644
|
+
"swag_paypal_v2_common_money": {
|
|
17645
|
+
"required": ["currency_code", "value"],
|
|
17646
|
+
"properties": {
|
|
17647
|
+
"currency_code": { "type": "string" },
|
|
17648
|
+
"value": { "type": "string" }
|
|
17649
|
+
},
|
|
17650
|
+
"type": "object"
|
|
17651
|
+
},
|
|
17652
|
+
"swag_paypal_v2_common_name": {
|
|
17653
|
+
"required": ["given_name", "surname"],
|
|
17654
|
+
"properties": {
|
|
17655
|
+
"given_name": { "type": "string" },
|
|
17656
|
+
"surname": { "type": "string" }
|
|
17657
|
+
},
|
|
17658
|
+
"type": "object"
|
|
17659
|
+
},
|
|
17660
|
+
"swag_paypal_v2_common_phone_number": {
|
|
17661
|
+
"required": ["national_number", "country_code"],
|
|
17662
|
+
"properties": {
|
|
17663
|
+
"national_number": { "type": "string" },
|
|
17664
|
+
"country_code": { "type": "string" }
|
|
17665
|
+
},
|
|
17666
|
+
"type": "object"
|
|
17667
|
+
},
|
|
17668
|
+
"swag_paypal_v2_order": {
|
|
17669
|
+
"required": [
|
|
17670
|
+
"create_time",
|
|
17671
|
+
"update_time",
|
|
17672
|
+
"id",
|
|
17673
|
+
"intent",
|
|
17674
|
+
"payer",
|
|
17675
|
+
"purchase_units",
|
|
17676
|
+
"application_context",
|
|
17677
|
+
"payment_source",
|
|
17678
|
+
"status",
|
|
17679
|
+
"processing_instruction",
|
|
17680
|
+
"links"
|
|
17681
|
+
],
|
|
17682
|
+
"properties": {
|
|
17683
|
+
"create_time": { "type": "string" },
|
|
17684
|
+
"update_time": { "type": "string" },
|
|
17685
|
+
"id": { "type": "string" },
|
|
17686
|
+
"intent": { "type": "string" },
|
|
17687
|
+
"payer": {
|
|
17688
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payer"
|
|
17689
|
+
},
|
|
17690
|
+
"purchase_units": {
|
|
17691
|
+
"type": "array",
|
|
17692
|
+
"items": {
|
|
17693
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit"
|
|
17694
|
+
},
|
|
17695
|
+
"nullable": true
|
|
17696
|
+
},
|
|
17697
|
+
"application_context": {
|
|
17698
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_application_context"
|
|
17699
|
+
},
|
|
17700
|
+
"payment_source": {
|
|
17701
|
+
"oneOf": [
|
|
17702
|
+
{
|
|
17703
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source"
|
|
17704
|
+
}
|
|
17705
|
+
],
|
|
17706
|
+
"nullable": true
|
|
17707
|
+
},
|
|
17708
|
+
"status": { "type": "string" },
|
|
17709
|
+
"processing_instruction": { "type": "string" },
|
|
17710
|
+
"links": {
|
|
17711
|
+
"type": "array",
|
|
17712
|
+
"items": {
|
|
17713
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_link"
|
|
17714
|
+
}
|
|
17715
|
+
}
|
|
17716
|
+
},
|
|
17717
|
+
"type": "object"
|
|
17718
|
+
},
|
|
17719
|
+
"swag_paypal_v2_order_application_context": {
|
|
17720
|
+
"required": ["brand_name", "return_url", "cancel_url"],
|
|
17721
|
+
"properties": {
|
|
17722
|
+
"brand_name": { "type": "string" },
|
|
17723
|
+
"landing_page": {
|
|
17724
|
+
"type": "string",
|
|
17725
|
+
"default": "NO_PREFERENCE",
|
|
17726
|
+
"enum": ["LOGIN", "BILLING", "NO_PREFERENCE"]
|
|
17727
|
+
},
|
|
17728
|
+
"shipping_preference": {
|
|
17729
|
+
"type": "string",
|
|
17730
|
+
"default": "SET_PROVIDED_ADDRESS",
|
|
17731
|
+
"enum": ["SET_PROVIDED_ADDRESS", "NO_SHIPPING", "GET_FROM_FILE"]
|
|
17732
|
+
},
|
|
17733
|
+
"user_action": {
|
|
17734
|
+
"type": "string",
|
|
17735
|
+
"default": "PAY_NOW",
|
|
17736
|
+
"enum": ["CONTINUE", "PAY_NOW"]
|
|
17737
|
+
},
|
|
17738
|
+
"return_url": { "type": "string" },
|
|
17739
|
+
"cancel_url": { "type": "string" }
|
|
17740
|
+
},
|
|
17741
|
+
"type": "object"
|
|
17742
|
+
},
|
|
17743
|
+
"swag_paypal_v2_order_payer": {
|
|
17744
|
+
"required": ["name", "email_address", "payer_id", "phone", "address"],
|
|
17745
|
+
"properties": {
|
|
17746
|
+
"name": { "$ref": "#/components/schemas/swag_paypal_v2_common_name" },
|
|
17747
|
+
"email_address": { "type": "string" },
|
|
17748
|
+
"payer_id": { "type": "string" },
|
|
17749
|
+
"phone": {
|
|
17750
|
+
"oneOf": [
|
|
17751
|
+
{
|
|
17752
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_phone"
|
|
17753
|
+
}
|
|
17754
|
+
],
|
|
17755
|
+
"nullable": true
|
|
17756
|
+
},
|
|
17757
|
+
"address": {
|
|
17758
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_address"
|
|
17759
|
+
}
|
|
17760
|
+
},
|
|
17761
|
+
"type": "object"
|
|
17762
|
+
},
|
|
17763
|
+
"swag_paypal_v2_order_payment_source": {
|
|
17764
|
+
"required": [
|
|
17765
|
+
"apple_pay",
|
|
17766
|
+
"pay_upon_invoice",
|
|
17767
|
+
"bancontact",
|
|
17768
|
+
"blik",
|
|
17769
|
+
"boletobancario",
|
|
17770
|
+
"card",
|
|
17771
|
+
"eps",
|
|
17772
|
+
"giropay",
|
|
17773
|
+
"ideal",
|
|
17774
|
+
"multibanco",
|
|
17775
|
+
"my_bank",
|
|
17776
|
+
"oxxo",
|
|
17777
|
+
"p24",
|
|
17778
|
+
"paypal",
|
|
17779
|
+
"sofort",
|
|
17780
|
+
"token",
|
|
17781
|
+
"trustly",
|
|
17782
|
+
"google_pay",
|
|
17783
|
+
"venmo"
|
|
17784
|
+
],
|
|
17785
|
+
"properties": {
|
|
17786
|
+
"apple_pay": {
|
|
17787
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_apple_pay"
|
|
17788
|
+
},
|
|
17789
|
+
"pay_upon_invoice": {
|
|
17790
|
+
"oneOf": [
|
|
17791
|
+
{
|
|
17792
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_pay_upon_invoice"
|
|
17793
|
+
}
|
|
17794
|
+
],
|
|
17795
|
+
"nullable": true
|
|
17796
|
+
},
|
|
17797
|
+
"bancontact": {
|
|
17798
|
+
"oneOf": [
|
|
17799
|
+
{
|
|
17800
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_bancontact"
|
|
17801
|
+
}
|
|
17802
|
+
],
|
|
17803
|
+
"nullable": true
|
|
17804
|
+
},
|
|
17805
|
+
"blik": {
|
|
17806
|
+
"oneOf": [
|
|
17807
|
+
{
|
|
17808
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_blik"
|
|
17809
|
+
}
|
|
17810
|
+
],
|
|
17811
|
+
"nullable": true
|
|
17812
|
+
},
|
|
17813
|
+
"boletobancario": {
|
|
17814
|
+
"oneOf": [
|
|
17815
|
+
{
|
|
17816
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_boletobancario"
|
|
17817
|
+
}
|
|
17818
|
+
],
|
|
17819
|
+
"nullable": true
|
|
17820
|
+
},
|
|
17821
|
+
"card": {
|
|
17822
|
+
"oneOf": [
|
|
17823
|
+
{
|
|
17824
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_card"
|
|
17825
|
+
}
|
|
17826
|
+
],
|
|
17827
|
+
"nullable": true
|
|
17828
|
+
},
|
|
17829
|
+
"eps": {
|
|
17830
|
+
"oneOf": [
|
|
17831
|
+
{
|
|
17832
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_eps"
|
|
17833
|
+
}
|
|
17834
|
+
],
|
|
17835
|
+
"nullable": true
|
|
17836
|
+
},
|
|
17837
|
+
"giropay": {
|
|
17838
|
+
"oneOf": [
|
|
17839
|
+
{
|
|
17840
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_giropay"
|
|
17841
|
+
}
|
|
17842
|
+
],
|
|
17843
|
+
"nullable": true
|
|
17844
|
+
},
|
|
17845
|
+
"ideal": {
|
|
17846
|
+
"oneOf": [
|
|
17847
|
+
{
|
|
17848
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_ideal"
|
|
17849
|
+
}
|
|
17850
|
+
],
|
|
17851
|
+
"nullable": true
|
|
17852
|
+
},
|
|
17853
|
+
"multibanco": {
|
|
17854
|
+
"oneOf": [
|
|
17855
|
+
{
|
|
17856
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_multibanco"
|
|
17857
|
+
}
|
|
17858
|
+
],
|
|
17859
|
+
"nullable": true
|
|
17860
|
+
},
|
|
17861
|
+
"my_bank": {
|
|
17862
|
+
"oneOf": [
|
|
17863
|
+
{
|
|
17864
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_my_bank"
|
|
17865
|
+
}
|
|
17866
|
+
],
|
|
17867
|
+
"nullable": true
|
|
17868
|
+
},
|
|
17869
|
+
"oxxo": {
|
|
17870
|
+
"oneOf": [
|
|
17871
|
+
{
|
|
17872
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_oxxo"
|
|
17873
|
+
}
|
|
17874
|
+
],
|
|
17875
|
+
"nullable": true
|
|
17876
|
+
},
|
|
17877
|
+
"p24": {
|
|
17878
|
+
"oneOf": [
|
|
17879
|
+
{
|
|
17880
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_p24"
|
|
17881
|
+
}
|
|
17882
|
+
],
|
|
17883
|
+
"nullable": true
|
|
17884
|
+
},
|
|
17885
|
+
"paypal": {
|
|
17886
|
+
"oneOf": [
|
|
17887
|
+
{
|
|
17888
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_paypal"
|
|
17889
|
+
}
|
|
17890
|
+
],
|
|
17891
|
+
"nullable": true
|
|
17892
|
+
},
|
|
17893
|
+
"sofort": {
|
|
17894
|
+
"oneOf": [
|
|
17895
|
+
{
|
|
17896
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_sofort"
|
|
17897
|
+
}
|
|
17898
|
+
],
|
|
17899
|
+
"nullable": true
|
|
17900
|
+
},
|
|
17901
|
+
"token": {
|
|
17902
|
+
"oneOf": [
|
|
17903
|
+
{
|
|
17904
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_token"
|
|
17905
|
+
}
|
|
17906
|
+
],
|
|
17907
|
+
"nullable": true
|
|
17908
|
+
},
|
|
17909
|
+
"trustly": {
|
|
17910
|
+
"oneOf": [
|
|
17911
|
+
{
|
|
17912
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_trustly"
|
|
17913
|
+
}
|
|
17914
|
+
],
|
|
17915
|
+
"nullable": true
|
|
17916
|
+
},
|
|
17917
|
+
"google_pay": {
|
|
17918
|
+
"oneOf": [
|
|
17919
|
+
{
|
|
17920
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_google_pay"
|
|
17921
|
+
}
|
|
17922
|
+
],
|
|
17923
|
+
"nullable": true
|
|
17924
|
+
},
|
|
17925
|
+
"venmo": {
|
|
17926
|
+
"oneOf": [
|
|
17927
|
+
{
|
|
17928
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_venmo"
|
|
17929
|
+
}
|
|
17930
|
+
],
|
|
17931
|
+
"nullable": true
|
|
17932
|
+
}
|
|
17933
|
+
},
|
|
17934
|
+
"type": "object"
|
|
17935
|
+
},
|
|
17936
|
+
"swag_paypal_v2_order_payment_source_apple_pay": {
|
|
17937
|
+
"required": [
|
|
17938
|
+
"name",
|
|
17939
|
+
"country_code",
|
|
17940
|
+
"experience_context",
|
|
17941
|
+
"card",
|
|
17942
|
+
"attributes"
|
|
17943
|
+
],
|
|
17944
|
+
"properties": {
|
|
17945
|
+
"name": { "type": "string" },
|
|
17946
|
+
"country_code": { "type": "string" },
|
|
17947
|
+
"experience_context": {
|
|
17948
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
17949
|
+
},
|
|
17950
|
+
"card": {
|
|
17951
|
+
"oneOf": [
|
|
17952
|
+
{
|
|
17953
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_card"
|
|
17954
|
+
}
|
|
17955
|
+
],
|
|
17956
|
+
"nullable": true
|
|
17957
|
+
},
|
|
17958
|
+
"attributes": {
|
|
17959
|
+
"oneOf": [
|
|
17960
|
+
{
|
|
17961
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_attributes"
|
|
17962
|
+
}
|
|
17963
|
+
],
|
|
17964
|
+
"nullable": true
|
|
17965
|
+
}
|
|
17966
|
+
},
|
|
17967
|
+
"type": "object"
|
|
17968
|
+
},
|
|
17969
|
+
"swag_paypal_v2_order_payment_source_bancontact": {
|
|
17970
|
+
"required": ["name", "country_code", "experience_context"],
|
|
17971
|
+
"properties": {
|
|
17972
|
+
"name": { "type": "string" },
|
|
17973
|
+
"country_code": { "type": "string" },
|
|
17974
|
+
"experience_context": {
|
|
17975
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
17976
|
+
}
|
|
17977
|
+
},
|
|
17978
|
+
"type": "object"
|
|
17979
|
+
},
|
|
17980
|
+
"swag_paypal_v2_order_payment_source_blik": {
|
|
17981
|
+
"required": ["name", "country_code", "experience_context", "email"],
|
|
17982
|
+
"properties": {
|
|
17983
|
+
"name": { "type": "string" },
|
|
17984
|
+
"country_code": { "type": "string" },
|
|
17985
|
+
"experience_context": {
|
|
17986
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
17987
|
+
},
|
|
17988
|
+
"email": { "type": "string" }
|
|
17989
|
+
},
|
|
17990
|
+
"type": "object"
|
|
17991
|
+
},
|
|
17992
|
+
"swag_paypal_v2_order_payment_source_boletobancario": {
|
|
17993
|
+
"required": [
|
|
17994
|
+
"name",
|
|
17995
|
+
"country_code",
|
|
17996
|
+
"experience_context",
|
|
17997
|
+
"email",
|
|
17998
|
+
"expiry_date",
|
|
17999
|
+
"tax_info",
|
|
18000
|
+
"billing_address"
|
|
18001
|
+
],
|
|
18002
|
+
"properties": {
|
|
18003
|
+
"name": { "type": "string" },
|
|
18004
|
+
"country_code": { "type": "string" },
|
|
18005
|
+
"experience_context": {
|
|
18006
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18007
|
+
},
|
|
18008
|
+
"email": { "type": "string" },
|
|
18009
|
+
"expiry_date": { "type": "string" },
|
|
18010
|
+
"tax_info": {
|
|
18011
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_boletobancario_tax_info"
|
|
18012
|
+
},
|
|
18013
|
+
"billing_address": {
|
|
18014
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_address"
|
|
18015
|
+
}
|
|
18016
|
+
},
|
|
18017
|
+
"type": "object"
|
|
18018
|
+
},
|
|
18019
|
+
"swag_paypal_v2_order_payment_source_boletobancario_tax_info": {
|
|
18020
|
+
"required": ["tax_id", "tax_id_type"],
|
|
18021
|
+
"properties": {
|
|
18022
|
+
"tax_id": { "type": "string" },
|
|
18023
|
+
"tax_id_type": { "type": "string" }
|
|
18024
|
+
},
|
|
18025
|
+
"type": "object"
|
|
18026
|
+
},
|
|
18027
|
+
"swag_paypal_v2_order_payment_source_card": {
|
|
18028
|
+
"required": [
|
|
18029
|
+
"name",
|
|
18030
|
+
"country_code",
|
|
18031
|
+
"experience_context",
|
|
18032
|
+
"last_digits",
|
|
18033
|
+
"brand",
|
|
18034
|
+
"type",
|
|
18035
|
+
"vault_id",
|
|
18036
|
+
"billing_address",
|
|
18037
|
+
"authentication_result",
|
|
18038
|
+
"attributes",
|
|
18039
|
+
"stored_credential"
|
|
18040
|
+
],
|
|
18041
|
+
"properties": {
|
|
18042
|
+
"name": { "type": "string" },
|
|
18043
|
+
"country_code": { "type": "string" },
|
|
18044
|
+
"experience_context": {
|
|
18045
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18046
|
+
},
|
|
18047
|
+
"last_digits": { "type": "string" },
|
|
18048
|
+
"brand": { "type": "string" },
|
|
18049
|
+
"type": { "type": "string" },
|
|
18050
|
+
"vault_id": { "type": "string" },
|
|
18051
|
+
"billing_address": {
|
|
18052
|
+
"oneOf": [
|
|
18053
|
+
{ "$ref": "#/components/schemas/swag_paypal_v2_common_address" }
|
|
18054
|
+
],
|
|
18055
|
+
"nullable": true
|
|
18056
|
+
},
|
|
18057
|
+
"authentication_result": {
|
|
18058
|
+
"oneOf": [
|
|
18059
|
+
{
|
|
18060
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_card_authentication_result"
|
|
18061
|
+
}
|
|
18062
|
+
],
|
|
18063
|
+
"nullable": true
|
|
18064
|
+
},
|
|
18065
|
+
"attributes": {
|
|
18066
|
+
"oneOf": [
|
|
18067
|
+
{
|
|
18068
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_attributes"
|
|
18069
|
+
}
|
|
18070
|
+
],
|
|
18071
|
+
"nullable": true
|
|
18072
|
+
},
|
|
18073
|
+
"stored_credential": {
|
|
18074
|
+
"oneOf": [
|
|
18075
|
+
{
|
|
18076
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_card_stored_credential"
|
|
18077
|
+
}
|
|
18078
|
+
],
|
|
18079
|
+
"nullable": true
|
|
18080
|
+
}
|
|
18081
|
+
},
|
|
18082
|
+
"type": "object"
|
|
18083
|
+
},
|
|
18084
|
+
"swag_paypal_v2_order_payment_source_card_authentication_result": {
|
|
18085
|
+
"required": ["liability_shift", "three_d_secure"],
|
|
18086
|
+
"properties": {
|
|
18087
|
+
"liability_shift": { "type": "string" },
|
|
18088
|
+
"three_d_secure": {
|
|
18089
|
+
"oneOf": [
|
|
18090
|
+
{
|
|
18091
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_card_authentication_result_3d_secure"
|
|
18092
|
+
}
|
|
18093
|
+
],
|
|
18094
|
+
"nullable": true
|
|
18095
|
+
}
|
|
18096
|
+
},
|
|
18097
|
+
"type": "object"
|
|
18098
|
+
},
|
|
18099
|
+
"swag_paypal_v2_order_payment_source_card_authentication_result_3d_secure": {
|
|
18100
|
+
"required": ["enrollment_status", "authentication_status"],
|
|
18101
|
+
"properties": {
|
|
18102
|
+
"enrollment_status": { "type": "string" },
|
|
18103
|
+
"authentication_status": { "type": "string" }
|
|
18104
|
+
},
|
|
18105
|
+
"type": "object"
|
|
18106
|
+
},
|
|
18107
|
+
"swag_paypal_v2_order_payment_source_card_stored_credential": {
|
|
18108
|
+
"required": [
|
|
18109
|
+
"payment_initiator",
|
|
18110
|
+
"payment_type",
|
|
18111
|
+
"usage",
|
|
18112
|
+
"previous_network_transaction_reference"
|
|
18113
|
+
],
|
|
18114
|
+
"properties": {
|
|
18115
|
+
"payment_initiator": {
|
|
18116
|
+
"type": "string",
|
|
18117
|
+
"enum": ["MERCHANT", "CUSTOMER"]
|
|
18118
|
+
},
|
|
18119
|
+
"payment_type": {
|
|
18120
|
+
"type": "string",
|
|
18121
|
+
"enum": ["RECURRING", "ONE_TIME", "UNSCHEDULED"]
|
|
18122
|
+
},
|
|
18123
|
+
"usage": {
|
|
18124
|
+
"type": "string",
|
|
18125
|
+
"enum": ["DERIVED", "FIRST", "SUBSEQUENT"]
|
|
18126
|
+
},
|
|
18127
|
+
"previous_network_transaction_reference": { "type": "string" }
|
|
18128
|
+
},
|
|
18129
|
+
"type": "object"
|
|
18130
|
+
},
|
|
18131
|
+
"swag_paypal_v2_order_payment_source_common_attributes": {
|
|
18132
|
+
"required": ["vault", "customer", "verification"],
|
|
18133
|
+
"properties": {
|
|
18134
|
+
"vault": {
|
|
18135
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_attributes_vault"
|
|
18136
|
+
},
|
|
18137
|
+
"customer": {
|
|
18138
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_attributes_customer"
|
|
18139
|
+
},
|
|
18140
|
+
"verification": {
|
|
18141
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_attributes_verification"
|
|
18142
|
+
}
|
|
18143
|
+
},
|
|
18144
|
+
"type": "object"
|
|
18145
|
+
},
|
|
18146
|
+
"swag_paypal_v2_order_payment_source_common_attributes_customer": {
|
|
18147
|
+
"required": ["id"],
|
|
18148
|
+
"properties": { "id": { "type": "string" } },
|
|
18149
|
+
"type": "object"
|
|
18150
|
+
},
|
|
18151
|
+
"swag_paypal_v2_order_payment_source_common_attributes_vault": {
|
|
18152
|
+
"required": [
|
|
18153
|
+
"id",
|
|
18154
|
+
"store_in_vault",
|
|
18155
|
+
"usage_type",
|
|
18156
|
+
"status",
|
|
18157
|
+
"confirm_payment_token",
|
|
18158
|
+
"permit_multiple_payment_tokens",
|
|
18159
|
+
"customer",
|
|
18160
|
+
"links"
|
|
18161
|
+
],
|
|
18162
|
+
"properties": {
|
|
18163
|
+
"id": { "type": "string", "nullable": true },
|
|
18164
|
+
"store_in_vault": { "type": "string" },
|
|
18165
|
+
"usage_type": { "type": "string" },
|
|
18166
|
+
"status": { "type": "string" },
|
|
18167
|
+
"confirm_payment_token": { "type": "string" },
|
|
18168
|
+
"permit_multiple_payment_tokens": { "type": "boolean" },
|
|
18169
|
+
"customer": {
|
|
18170
|
+
"oneOf": [
|
|
18171
|
+
{
|
|
18172
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_attributes_customer"
|
|
18173
|
+
}
|
|
18174
|
+
],
|
|
18175
|
+
"nullable": true
|
|
18176
|
+
},
|
|
18177
|
+
"links": {
|
|
18178
|
+
"type": "array",
|
|
18179
|
+
"items": {
|
|
18180
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_link"
|
|
18181
|
+
}
|
|
18182
|
+
}
|
|
18183
|
+
},
|
|
18184
|
+
"type": "object"
|
|
18185
|
+
},
|
|
18186
|
+
"swag_paypal_v2_order_payment_source_common_attributes_verification": {
|
|
18187
|
+
"required": ["method"],
|
|
18188
|
+
"properties": { "method": { "type": "string" } },
|
|
18189
|
+
"type": "object"
|
|
18190
|
+
},
|
|
18191
|
+
"swag_paypal_v2_order_payment_source_common_experience_context": {
|
|
18192
|
+
"required": [
|
|
18193
|
+
"locale",
|
|
18194
|
+
"brand_name",
|
|
18195
|
+
"logo_url",
|
|
18196
|
+
"return_url",
|
|
18197
|
+
"cancel_url",
|
|
18198
|
+
"payment_method_preference",
|
|
18199
|
+
"customer_service_instructions"
|
|
18200
|
+
],
|
|
18201
|
+
"properties": {
|
|
18202
|
+
"locale": { "type": "string" },
|
|
18203
|
+
"brand_name": { "type": "string" },
|
|
18204
|
+
"logo_url": { "type": "string" },
|
|
18205
|
+
"landing_page": {
|
|
18206
|
+
"type": "string",
|
|
18207
|
+
"default": "NO_PREFERENCE",
|
|
18208
|
+
"enum": ["LOGIN", "GUEST_CHECKOUT", "NO_PREFERENCE"]
|
|
18209
|
+
},
|
|
18210
|
+
"shipping_preference": {
|
|
18211
|
+
"type": "string",
|
|
18212
|
+
"default": "SET_PROVIDED_ADDRESS",
|
|
18213
|
+
"enum": ["SET_PROVIDED_ADDRESS", "NO_SHIPPING", "GET_FROM_FILE"]
|
|
18214
|
+
},
|
|
18215
|
+
"user_action": {
|
|
18216
|
+
"type": "string",
|
|
18217
|
+
"default": "PAY_NOW",
|
|
18218
|
+
"enum": ["CONTINUE", "PAY_NOW"]
|
|
18219
|
+
},
|
|
18220
|
+
"return_url": { "type": "string" },
|
|
18221
|
+
"cancel_url": { "type": "string" },
|
|
18222
|
+
"payment_method_preference": {
|
|
18223
|
+
"description": "Only: PayPal Wallet",
|
|
18224
|
+
"type": "string",
|
|
18225
|
+
"enum": ["UNRESTRICTED", "IMMEDIATE_PAYMENT_REQUIRED"]
|
|
18226
|
+
},
|
|
18227
|
+
"customer_service_instructions": {
|
|
18228
|
+
"description": "Only: PUI",
|
|
18229
|
+
"type": "array",
|
|
18230
|
+
"items": { "type": "string" }
|
|
18231
|
+
}
|
|
18232
|
+
},
|
|
18233
|
+
"type": "object"
|
|
18234
|
+
},
|
|
18235
|
+
"swag_paypal_v2_order_payment_source_common_phone": {
|
|
18236
|
+
"required": ["phone_type", "phone_number"],
|
|
18237
|
+
"properties": {
|
|
18238
|
+
"phone_type": { "type": "string" },
|
|
18239
|
+
"phone_number": {
|
|
18240
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_phone_number"
|
|
18241
|
+
}
|
|
18242
|
+
},
|
|
18243
|
+
"type": "object"
|
|
18244
|
+
},
|
|
18245
|
+
"swag_paypal_v2_order_payment_source_eps": {
|
|
18246
|
+
"required": ["name", "country_code", "experience_context"],
|
|
18247
|
+
"properties": {
|
|
18248
|
+
"name": { "type": "string" },
|
|
18249
|
+
"country_code": { "type": "string" },
|
|
18250
|
+
"experience_context": {
|
|
18251
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18252
|
+
}
|
|
18253
|
+
},
|
|
18254
|
+
"type": "object"
|
|
18255
|
+
},
|
|
18256
|
+
"swag_paypal_v2_order_payment_source_giropay": {
|
|
18257
|
+
"required": ["name", "country_code", "experience_context"],
|
|
18258
|
+
"properties": {
|
|
18259
|
+
"name": { "type": "string" },
|
|
18260
|
+
"country_code": { "type": "string" },
|
|
18261
|
+
"experience_context": {
|
|
18262
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18263
|
+
}
|
|
18264
|
+
},
|
|
18265
|
+
"type": "object"
|
|
18266
|
+
},
|
|
18267
|
+
"swag_paypal_v2_order_payment_source_google_pay": {
|
|
18268
|
+
"required": ["experience_context", "card", "attributes"],
|
|
18269
|
+
"properties": {
|
|
18270
|
+
"experience_context": {
|
|
18271
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18272
|
+
},
|
|
18273
|
+
"card": {
|
|
18274
|
+
"oneOf": [
|
|
18275
|
+
{
|
|
18276
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_card"
|
|
18277
|
+
}
|
|
18278
|
+
],
|
|
18279
|
+
"nullable": true
|
|
18280
|
+
},
|
|
18281
|
+
"attributes": {
|
|
18282
|
+
"oneOf": [
|
|
18283
|
+
{
|
|
18284
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_attributes"
|
|
18285
|
+
}
|
|
18286
|
+
],
|
|
18287
|
+
"nullable": true
|
|
18288
|
+
}
|
|
18289
|
+
},
|
|
18290
|
+
"type": "object"
|
|
18291
|
+
},
|
|
18292
|
+
"swag_paypal_v2_order_payment_source_ideal": {
|
|
18293
|
+
"required": ["name", "country_code", "experience_context"],
|
|
18294
|
+
"properties": {
|
|
18295
|
+
"name": { "type": "string" },
|
|
18296
|
+
"country_code": { "type": "string" },
|
|
18297
|
+
"experience_context": {
|
|
18298
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18299
|
+
}
|
|
18300
|
+
},
|
|
18301
|
+
"type": "object"
|
|
18302
|
+
},
|
|
18303
|
+
"swag_paypal_v2_order_payment_source_multibanco": {
|
|
18304
|
+
"required": ["name", "country_code", "experience_context"],
|
|
18305
|
+
"properties": {
|
|
18306
|
+
"name": { "type": "string" },
|
|
18307
|
+
"country_code": { "type": "string" },
|
|
18308
|
+
"experience_context": {
|
|
18309
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18310
|
+
}
|
|
18311
|
+
},
|
|
18312
|
+
"type": "object"
|
|
18313
|
+
},
|
|
18314
|
+
"swag_paypal_v2_order_payment_source_my_bank": {
|
|
18315
|
+
"required": ["name", "country_code", "experience_context"],
|
|
18316
|
+
"properties": {
|
|
18317
|
+
"name": { "type": "string" },
|
|
18318
|
+
"country_code": { "type": "string" },
|
|
18319
|
+
"experience_context": {
|
|
18320
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18321
|
+
}
|
|
18322
|
+
},
|
|
18323
|
+
"type": "object"
|
|
18324
|
+
},
|
|
18325
|
+
"swag_paypal_v2_order_payment_source_oxxo": {
|
|
18326
|
+
"required": ["name", "country_code", "experience_context", "email"],
|
|
18327
|
+
"properties": {
|
|
18328
|
+
"name": { "type": "string" },
|
|
18329
|
+
"country_code": { "type": "string" },
|
|
18330
|
+
"experience_context": {
|
|
18331
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18332
|
+
},
|
|
18333
|
+
"email": { "type": "string" }
|
|
18334
|
+
},
|
|
18335
|
+
"type": "object"
|
|
18336
|
+
},
|
|
18337
|
+
"swag_paypal_v2_order_payment_source_p24": {
|
|
18338
|
+
"required": ["name", "country_code", "experience_context", "email"],
|
|
18339
|
+
"properties": {
|
|
18340
|
+
"name": { "type": "string" },
|
|
18341
|
+
"country_code": { "type": "string" },
|
|
18342
|
+
"experience_context": {
|
|
18343
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18344
|
+
},
|
|
18345
|
+
"email": { "type": "string" }
|
|
18346
|
+
},
|
|
18347
|
+
"type": "object"
|
|
18348
|
+
},
|
|
18349
|
+
"swag_paypal_v2_order_payment_source_pay_upon_invoice": {
|
|
18350
|
+
"required": [
|
|
18351
|
+
"experience_context",
|
|
18352
|
+
"name",
|
|
18353
|
+
"email",
|
|
18354
|
+
"birth_date",
|
|
18355
|
+
"phone",
|
|
18356
|
+
"billing_address",
|
|
18357
|
+
"payment_reference",
|
|
18358
|
+
"deposit_bank_details"
|
|
18359
|
+
],
|
|
18360
|
+
"properties": {
|
|
18361
|
+
"experience_context": {
|
|
18362
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18363
|
+
},
|
|
18364
|
+
"name": { "$ref": "#/components/schemas/swag_paypal_v2_common_name" },
|
|
18365
|
+
"email": { "type": "string" },
|
|
18366
|
+
"birth_date": { "type": "string" },
|
|
18367
|
+
"phone": {
|
|
18368
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_phone_number"
|
|
18369
|
+
},
|
|
18370
|
+
"billing_address": {
|
|
18371
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_address"
|
|
18372
|
+
},
|
|
18373
|
+
"payment_reference": { "type": "string" },
|
|
18374
|
+
"deposit_bank_details": {
|
|
18375
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_pay_upon_invoice_deposit_bank_details"
|
|
18376
|
+
}
|
|
18377
|
+
},
|
|
18378
|
+
"type": "object"
|
|
18379
|
+
},
|
|
18380
|
+
"swag_paypal_v2_order_payment_source_pay_upon_invoice_deposit_bank_details": {
|
|
18381
|
+
"required": ["bic", "bank_name", "iban", "account_holder_name"],
|
|
18382
|
+
"properties": {
|
|
18383
|
+
"bic": { "type": "string" },
|
|
18384
|
+
"bank_name": { "type": "string" },
|
|
18385
|
+
"iban": { "type": "string" },
|
|
18386
|
+
"account_holder_name": { "type": "string" }
|
|
18387
|
+
},
|
|
18388
|
+
"type": "object"
|
|
18389
|
+
},
|
|
18390
|
+
"swag_paypal_v2_order_payment_source_paypal": {
|
|
18391
|
+
"required": [
|
|
18392
|
+
"experience_context",
|
|
18393
|
+
"email_address",
|
|
18394
|
+
"account_id",
|
|
18395
|
+
"billing_agreement_id",
|
|
18396
|
+
"vault_id",
|
|
18397
|
+
"name",
|
|
18398
|
+
"phone_number",
|
|
18399
|
+
"address",
|
|
18400
|
+
"birth_date",
|
|
18401
|
+
"phone_type",
|
|
18402
|
+
"attributes"
|
|
18403
|
+
],
|
|
18404
|
+
"properties": {
|
|
18405
|
+
"experience_context": {
|
|
18406
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18407
|
+
},
|
|
18408
|
+
"email_address": { "type": "string" },
|
|
18409
|
+
"account_id": { "type": "string" },
|
|
18410
|
+
"billing_agreement_id": { "type": "string" },
|
|
18411
|
+
"vault_id": { "type": "string" },
|
|
18412
|
+
"name": { "$ref": "#/components/schemas/swag_paypal_v2_common_name" },
|
|
18413
|
+
"phone_number": {
|
|
18414
|
+
"oneOf": [
|
|
18415
|
+
{
|
|
18416
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_phone_number"
|
|
18417
|
+
}
|
|
18418
|
+
],
|
|
18419
|
+
"nullable": true
|
|
18420
|
+
},
|
|
18421
|
+
"address": {
|
|
18422
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_address"
|
|
18423
|
+
},
|
|
18424
|
+
"birth_date": { "type": "string" },
|
|
18425
|
+
"phone_type": { "type": "string" },
|
|
18426
|
+
"attributes": {
|
|
18427
|
+
"oneOf": [
|
|
18428
|
+
{
|
|
18429
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_attributes"
|
|
18430
|
+
}
|
|
18431
|
+
],
|
|
18432
|
+
"nullable": true
|
|
18433
|
+
}
|
|
18434
|
+
},
|
|
18435
|
+
"type": "object"
|
|
18436
|
+
},
|
|
18437
|
+
"swag_paypal_v2_order_payment_source_sofort": {
|
|
18438
|
+
"required": ["name", "country_code", "experience_context"],
|
|
18439
|
+
"properties": {
|
|
18440
|
+
"name": { "type": "string" },
|
|
18441
|
+
"country_code": { "type": "string" },
|
|
18442
|
+
"experience_context": {
|
|
18443
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18444
|
+
}
|
|
18445
|
+
},
|
|
18446
|
+
"type": "object"
|
|
18447
|
+
},
|
|
18448
|
+
"swag_paypal_v2_order_payment_source_token": {
|
|
18449
|
+
"required": [
|
|
18450
|
+
"experience_context",
|
|
18451
|
+
"id",
|
|
18452
|
+
"type",
|
|
18453
|
+
"stored_payment_source"
|
|
18454
|
+
],
|
|
18455
|
+
"properties": {
|
|
18456
|
+
"experience_context": {
|
|
18457
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18458
|
+
},
|
|
18459
|
+
"id": { "type": "string" },
|
|
18460
|
+
"type": { "type": "string" },
|
|
18461
|
+
"stored_payment_source": {
|
|
18462
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_token_stored_payment_source"
|
|
18463
|
+
}
|
|
18464
|
+
},
|
|
18465
|
+
"type": "object"
|
|
18466
|
+
},
|
|
18467
|
+
"swag_paypal_v2_order_payment_source_token_stored_payment_source": {
|
|
18468
|
+
"required": ["payment_initiator", "payment_type", "usage"],
|
|
18469
|
+
"properties": {
|
|
18470
|
+
"payment_initiator": { "type": "string" },
|
|
18471
|
+
"payment_type": { "type": "string" },
|
|
18472
|
+
"usage": { "type": "string" }
|
|
18473
|
+
},
|
|
18474
|
+
"type": "object"
|
|
18475
|
+
},
|
|
18476
|
+
"swag_paypal_v2_order_payment_source_trustly": {
|
|
18477
|
+
"required": ["name", "country_code", "experience_context"],
|
|
18478
|
+
"properties": {
|
|
18479
|
+
"name": { "type": "string" },
|
|
18480
|
+
"country_code": { "type": "string" },
|
|
18481
|
+
"experience_context": {
|
|
18482
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18483
|
+
}
|
|
18484
|
+
},
|
|
18485
|
+
"type": "object"
|
|
18486
|
+
},
|
|
18487
|
+
"swag_paypal_v2_order_payment_source_venmo": {
|
|
18488
|
+
"required": [
|
|
18489
|
+
"experience_context",
|
|
18490
|
+
"email_address",
|
|
18491
|
+
"user_name",
|
|
18492
|
+
"account_id",
|
|
18493
|
+
"vault_id",
|
|
18494
|
+
"name",
|
|
18495
|
+
"phone_number",
|
|
18496
|
+
"address",
|
|
18497
|
+
"attributes"
|
|
18498
|
+
],
|
|
18499
|
+
"properties": {
|
|
18500
|
+
"experience_context": {
|
|
18501
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_experience_context"
|
|
18502
|
+
},
|
|
18503
|
+
"email_address": { "type": "string" },
|
|
18504
|
+
"user_name": { "type": "string" },
|
|
18505
|
+
"account_id": { "type": "string" },
|
|
18506
|
+
"vault_id": { "type": "string" },
|
|
18507
|
+
"name": { "$ref": "#/components/schemas/swag_paypal_v2_common_name" },
|
|
18508
|
+
"phone_number": {
|
|
18509
|
+
"oneOf": [
|
|
18510
|
+
{
|
|
18511
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_phone_number"
|
|
18512
|
+
}
|
|
18513
|
+
],
|
|
18514
|
+
"nullable": true
|
|
18515
|
+
},
|
|
18516
|
+
"address": {
|
|
18517
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_address"
|
|
18518
|
+
},
|
|
18519
|
+
"attributes": {
|
|
18520
|
+
"oneOf": [
|
|
18521
|
+
{
|
|
18522
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_attributes"
|
|
18523
|
+
}
|
|
18524
|
+
],
|
|
18525
|
+
"nullable": true
|
|
18526
|
+
}
|
|
18527
|
+
},
|
|
18528
|
+
"type": "object"
|
|
18529
|
+
},
|
|
18530
|
+
"swag_paypal_v2_order_purchase_unit": {
|
|
18531
|
+
"required": [
|
|
18532
|
+
"reference_id",
|
|
18533
|
+
"amount",
|
|
18534
|
+
"payee",
|
|
18535
|
+
"description",
|
|
18536
|
+
"custom_id",
|
|
18537
|
+
"invoice_id",
|
|
18538
|
+
"items",
|
|
18539
|
+
"shipping",
|
|
18540
|
+
"payments"
|
|
18541
|
+
],
|
|
18542
|
+
"properties": {
|
|
18543
|
+
"reference_id": { "type": "string" },
|
|
18544
|
+
"amount": {
|
|
18545
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_amount"
|
|
18546
|
+
},
|
|
18547
|
+
"payee": {
|
|
18548
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payee"
|
|
18549
|
+
},
|
|
18550
|
+
"description": { "type": "string" },
|
|
18551
|
+
"custom_id": { "type": "string", "nullable": true },
|
|
18552
|
+
"invoice_id": { "type": "string", "nullable": true },
|
|
18553
|
+
"items": {
|
|
18554
|
+
"type": "array",
|
|
18555
|
+
"items": {
|
|
18556
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_item"
|
|
18557
|
+
},
|
|
18558
|
+
"nullable": true
|
|
18559
|
+
},
|
|
18560
|
+
"shipping": {
|
|
18561
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_shipping"
|
|
18562
|
+
},
|
|
18563
|
+
"payments": {
|
|
18564
|
+
"oneOf": [
|
|
18565
|
+
{
|
|
18566
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments"
|
|
18567
|
+
}
|
|
18568
|
+
],
|
|
18569
|
+
"nullable": true
|
|
18570
|
+
}
|
|
18571
|
+
},
|
|
18572
|
+
"type": "object"
|
|
18573
|
+
},
|
|
18574
|
+
"swag_paypal_v2_order_purchase_unit_amount": {
|
|
18575
|
+
"type": "object",
|
|
18576
|
+
"allOf": [
|
|
18577
|
+
{ "$ref": "#/components/schemas/swag_paypal_v2_common_money" },
|
|
18578
|
+
{
|
|
18579
|
+
"required": ["breakdown"],
|
|
18580
|
+
"properties": {
|
|
18581
|
+
"breakdown": {
|
|
18582
|
+
"oneOf": [
|
|
18583
|
+
{
|
|
18584
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_amount_breakdown"
|
|
18585
|
+
}
|
|
18586
|
+
],
|
|
18587
|
+
"nullable": true
|
|
18588
|
+
}
|
|
18589
|
+
},
|
|
18590
|
+
"type": "object"
|
|
18591
|
+
}
|
|
18592
|
+
]
|
|
18593
|
+
},
|
|
18594
|
+
"swag_paypal_v2_order_purchase_unit_amount_breakdown": {
|
|
18595
|
+
"required": [
|
|
18596
|
+
"item_total",
|
|
18597
|
+
"shipping",
|
|
18598
|
+
"handling",
|
|
18599
|
+
"tax_total",
|
|
18600
|
+
"insurance",
|
|
18601
|
+
"shipping_discount",
|
|
18602
|
+
"discount"
|
|
18603
|
+
],
|
|
18604
|
+
"properties": {
|
|
18605
|
+
"item_total": {
|
|
18606
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18607
|
+
},
|
|
18608
|
+
"shipping": {
|
|
18609
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18610
|
+
},
|
|
18611
|
+
"handling": {
|
|
18612
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18613
|
+
},
|
|
18614
|
+
"tax_total": {
|
|
18615
|
+
"oneOf": [
|
|
18616
|
+
{ "$ref": "#/components/schemas/swag_paypal_v2_common_money" }
|
|
18617
|
+
],
|
|
18618
|
+
"nullable": true
|
|
18619
|
+
},
|
|
18620
|
+
"insurance": {
|
|
18621
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18622
|
+
},
|
|
18623
|
+
"shipping_discount": {
|
|
18624
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18625
|
+
},
|
|
18626
|
+
"discount": {
|
|
18627
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18628
|
+
}
|
|
18629
|
+
},
|
|
18630
|
+
"type": "object"
|
|
18631
|
+
},
|
|
18632
|
+
"swag_paypal_v2_order_purchase_unit_item": {
|
|
18633
|
+
"required": [
|
|
18634
|
+
"name",
|
|
18635
|
+
"unit_amount",
|
|
18636
|
+
"tax",
|
|
18637
|
+
"tax_rate",
|
|
18638
|
+
"category",
|
|
18639
|
+
"quantity",
|
|
18640
|
+
"sku"
|
|
18641
|
+
],
|
|
18642
|
+
"properties": {
|
|
18643
|
+
"name": { "type": "string" },
|
|
18644
|
+
"unit_amount": {
|
|
18645
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18646
|
+
},
|
|
18647
|
+
"tax": { "$ref": "#/components/schemas/swag_paypal_v2_common_money" },
|
|
18648
|
+
"tax_rate": {
|
|
18649
|
+
"oneOf": [
|
|
18650
|
+
{ "type": "string" },
|
|
18651
|
+
{ "type": "integer" },
|
|
18652
|
+
{ "type": "float" }
|
|
18653
|
+
]
|
|
18654
|
+
},
|
|
18655
|
+
"category": {
|
|
18656
|
+
"type": "string",
|
|
18657
|
+
"enum": ["PHYSICAL_GOODS", "DIGITAL_GOODS", "DONATION"]
|
|
18658
|
+
},
|
|
18659
|
+
"quantity": { "type": "integer" },
|
|
18660
|
+
"sku": { "type": "string", "nullable": true }
|
|
18661
|
+
},
|
|
18662
|
+
"type": "object"
|
|
18663
|
+
},
|
|
18664
|
+
"swag_paypal_v2_order_purchase_unit_payee": {
|
|
18665
|
+
"required": ["email_address", "merchant_id", "display_data"],
|
|
18666
|
+
"properties": {
|
|
18667
|
+
"email_address": { "type": "string" },
|
|
18668
|
+
"merchant_id": { "type": "string" },
|
|
18669
|
+
"display_data": {
|
|
18670
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payee_display_data"
|
|
18671
|
+
}
|
|
18672
|
+
},
|
|
18673
|
+
"type": "object"
|
|
18674
|
+
},
|
|
18675
|
+
"swag_paypal_v2_order_purchase_unit_payee_display_data": {
|
|
18676
|
+
"required": ["brand_name"],
|
|
18677
|
+
"properties": { "brand_name": { "type": "string" } },
|
|
18678
|
+
"type": "object"
|
|
18679
|
+
},
|
|
18680
|
+
"swag_paypal_v2_order_purchase_unit_payments": {
|
|
18681
|
+
"required": ["authorizations", "captures", "refunds"],
|
|
18682
|
+
"properties": {
|
|
18683
|
+
"authorizations": {
|
|
18684
|
+
"type": "array",
|
|
18685
|
+
"items": {
|
|
18686
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_authorization"
|
|
18687
|
+
},
|
|
18688
|
+
"nullable": true
|
|
18689
|
+
},
|
|
18690
|
+
"captures": {
|
|
18691
|
+
"type": "array",
|
|
18692
|
+
"items": {
|
|
18693
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_capture"
|
|
18694
|
+
},
|
|
18695
|
+
"nullable": true
|
|
18696
|
+
},
|
|
18697
|
+
"refunds": {
|
|
18698
|
+
"type": "array",
|
|
18699
|
+
"items": {
|
|
18700
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_refund"
|
|
18701
|
+
},
|
|
18702
|
+
"nullable": true
|
|
18703
|
+
}
|
|
18704
|
+
},
|
|
18705
|
+
"type": "object"
|
|
18706
|
+
},
|
|
18707
|
+
"swag_paypal_v2_order_purchase_unit_payments_authorization": {
|
|
18708
|
+
"required": [
|
|
18709
|
+
"status",
|
|
18710
|
+
"id",
|
|
18711
|
+
"amount",
|
|
18712
|
+
"custom_id",
|
|
18713
|
+
"links",
|
|
18714
|
+
"create_time",
|
|
18715
|
+
"update_time",
|
|
18716
|
+
"seller_protection",
|
|
18717
|
+
"expiration_time"
|
|
18718
|
+
],
|
|
18719
|
+
"properties": {
|
|
18720
|
+
"status": { "type": "string" },
|
|
18721
|
+
"id": { "type": "string" },
|
|
18722
|
+
"amount": {
|
|
18723
|
+
"oneOf": [
|
|
18724
|
+
{ "$ref": "#/components/schemas/swag_paypal_v2_common_money" }
|
|
18725
|
+
],
|
|
18726
|
+
"nullable": true
|
|
18727
|
+
},
|
|
18728
|
+
"custom_id": { "type": "string", "nullable": true },
|
|
18729
|
+
"links": {
|
|
18730
|
+
"type": "array",
|
|
18731
|
+
"items": {
|
|
18732
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_link"
|
|
18733
|
+
}
|
|
18734
|
+
},
|
|
18735
|
+
"create_time": { "type": "string" },
|
|
18736
|
+
"update_time": { "type": "string" },
|
|
18737
|
+
"seller_protection": {
|
|
18738
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_common_seller_protection"
|
|
18739
|
+
},
|
|
18740
|
+
"expiration_time": { "type": "string" }
|
|
18741
|
+
},
|
|
18742
|
+
"type": "object"
|
|
18743
|
+
},
|
|
18744
|
+
"swag_paypal_v2_order_purchase_unit_payments_authorization_seller_protection": {
|
|
18745
|
+
"required": ["status", "dispute_categories"],
|
|
18746
|
+
"properties": {
|
|
18747
|
+
"status": { "type": "string" },
|
|
18748
|
+
"dispute_categories": {
|
|
18749
|
+
"type": "array",
|
|
18750
|
+
"items": { "type": "string" }
|
|
18751
|
+
}
|
|
18752
|
+
},
|
|
18753
|
+
"type": "object"
|
|
18754
|
+
},
|
|
18755
|
+
"swag_paypal_v2_order_purchase_unit_payments_capture": {
|
|
18756
|
+
"required": [
|
|
18757
|
+
"status",
|
|
18758
|
+
"id",
|
|
18759
|
+
"amount",
|
|
18760
|
+
"custom_id",
|
|
18761
|
+
"links",
|
|
18762
|
+
"create_time",
|
|
18763
|
+
"update_time",
|
|
18764
|
+
"invoice_id",
|
|
18765
|
+
"note_to_payer",
|
|
18766
|
+
"seller_protection",
|
|
18767
|
+
"final_capture",
|
|
18768
|
+
"seller_receivable_breakdown",
|
|
18769
|
+
"processor_response",
|
|
18770
|
+
"disbursement_mode"
|
|
18771
|
+
],
|
|
18772
|
+
"properties": {
|
|
18773
|
+
"status": { "type": "string" },
|
|
18774
|
+
"id": { "type": "string" },
|
|
18775
|
+
"amount": {
|
|
18776
|
+
"oneOf": [
|
|
18777
|
+
{ "$ref": "#/components/schemas/swag_paypal_v2_common_money" }
|
|
18778
|
+
],
|
|
18779
|
+
"nullable": true
|
|
18780
|
+
},
|
|
18781
|
+
"custom_id": { "type": "string", "nullable": true },
|
|
18782
|
+
"links": {
|
|
18783
|
+
"type": "array",
|
|
18784
|
+
"items": {
|
|
18785
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_link"
|
|
18786
|
+
}
|
|
18787
|
+
},
|
|
18788
|
+
"create_time": { "type": "string" },
|
|
18789
|
+
"update_time": { "type": "string" },
|
|
18790
|
+
"invoice_id": { "type": "string", "nullable": true },
|
|
18791
|
+
"note_to_payer": { "type": "string", "nullable": true },
|
|
18792
|
+
"seller_protection": {
|
|
18793
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_common_seller_protection"
|
|
18794
|
+
},
|
|
18795
|
+
"final_capture": { "type": "boolean" },
|
|
18796
|
+
"seller_receivable_breakdown": {
|
|
18797
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_capture_seller_receivable_breakdown"
|
|
18798
|
+
},
|
|
18799
|
+
"processor_response": {
|
|
18800
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_capture_processor_response"
|
|
18801
|
+
},
|
|
18802
|
+
"disbursement_mode": { "type": "string" }
|
|
18803
|
+
},
|
|
18804
|
+
"type": "object"
|
|
18805
|
+
},
|
|
18806
|
+
"swag_paypal_v2_order_purchase_unit_payments_capture_processor_response": {
|
|
18807
|
+
"required": ["avs_code", "cvv_code", "response_code"],
|
|
18808
|
+
"properties": {
|
|
18809
|
+
"avs_code": { "type": "string", "nullable": true },
|
|
18810
|
+
"cvv_code": { "type": "string", "nullable": true },
|
|
18811
|
+
"response_code": { "type": "string", "nullable": true }
|
|
18812
|
+
},
|
|
18813
|
+
"type": "object"
|
|
18814
|
+
},
|
|
18815
|
+
"swag_paypal_v2_order_purchase_unit_payments_capture_seller_receivable_breakdown": {
|
|
18816
|
+
"required": ["gross_amount", "paypal_fee", "net_amount"],
|
|
18817
|
+
"properties": {
|
|
18818
|
+
"gross_amount": {
|
|
18819
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18820
|
+
},
|
|
18821
|
+
"paypal_fee": {
|
|
18822
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18823
|
+
},
|
|
18824
|
+
"net_amount": {
|
|
18825
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18826
|
+
}
|
|
18827
|
+
},
|
|
18828
|
+
"type": "object"
|
|
18829
|
+
},
|
|
18830
|
+
"swag_paypal_v2_order_purchase_unit_payments_common_seller_protection": {
|
|
18831
|
+
"required": ["status", "dispute_categories"],
|
|
18832
|
+
"properties": {
|
|
18833
|
+
"status": { "type": "string" },
|
|
18834
|
+
"dispute_categories": {
|
|
18835
|
+
"type": "array",
|
|
18836
|
+
"items": { "type": "string" }
|
|
18837
|
+
}
|
|
18838
|
+
},
|
|
18839
|
+
"type": "object"
|
|
18840
|
+
},
|
|
18841
|
+
"swag_paypal_v2_order_purchase_unit_payments_refund": {
|
|
18842
|
+
"required": [
|
|
18843
|
+
"status",
|
|
18844
|
+
"id",
|
|
18845
|
+
"amount",
|
|
18846
|
+
"custom_id",
|
|
18847
|
+
"links",
|
|
18848
|
+
"create_time",
|
|
18849
|
+
"update_time",
|
|
18850
|
+
"invoice_id",
|
|
18851
|
+
"note_to_payer",
|
|
18852
|
+
"seller_payable_breakdown"
|
|
18853
|
+
],
|
|
18854
|
+
"properties": {
|
|
18855
|
+
"status": { "type": "string" },
|
|
18856
|
+
"id": { "type": "string" },
|
|
18857
|
+
"amount": {
|
|
18858
|
+
"oneOf": [
|
|
18859
|
+
{ "$ref": "#/components/schemas/swag_paypal_v2_common_money" }
|
|
18860
|
+
],
|
|
18861
|
+
"nullable": true
|
|
18862
|
+
},
|
|
18863
|
+
"custom_id": { "type": "string", "nullable": true },
|
|
18864
|
+
"links": {
|
|
18865
|
+
"type": "array",
|
|
18866
|
+
"items": {
|
|
18867
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_link"
|
|
18868
|
+
}
|
|
18869
|
+
},
|
|
18870
|
+
"create_time": { "type": "string" },
|
|
18871
|
+
"update_time": { "type": "string" },
|
|
18872
|
+
"invoice_id": { "type": "string", "nullable": true },
|
|
18873
|
+
"note_to_payer": { "type": "string", "nullable": true },
|
|
18874
|
+
"seller_payable_breakdown": {
|
|
18875
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_payments_refund_seller_payable_breakdown"
|
|
18876
|
+
}
|
|
18877
|
+
},
|
|
18878
|
+
"type": "object"
|
|
18879
|
+
},
|
|
18880
|
+
"swag_paypal_v2_order_purchase_unit_payments_refund_seller_payable_breakdown": {
|
|
18881
|
+
"required": [
|
|
18882
|
+
"gross_amount",
|
|
18883
|
+
"paypal_fee",
|
|
18884
|
+
"net_amount",
|
|
18885
|
+
"total_refunded_amount"
|
|
18886
|
+
],
|
|
18887
|
+
"properties": {
|
|
18888
|
+
"gross_amount": {
|
|
18889
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18890
|
+
},
|
|
18891
|
+
"paypal_fee": {
|
|
18892
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18893
|
+
},
|
|
18894
|
+
"net_amount": {
|
|
18895
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18896
|
+
},
|
|
18897
|
+
"total_refunded_amount": {
|
|
18898
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_money"
|
|
18899
|
+
}
|
|
18900
|
+
},
|
|
18901
|
+
"type": "object"
|
|
18902
|
+
},
|
|
18903
|
+
"swag_paypal_v2_order_purchase_unit_shipping": {
|
|
18904
|
+
"required": ["name", "address", "trackers"],
|
|
18905
|
+
"properties": {
|
|
18906
|
+
"name": {
|
|
18907
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_shipping_name"
|
|
18908
|
+
},
|
|
18909
|
+
"address": {
|
|
18910
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_address"
|
|
18911
|
+
},
|
|
18912
|
+
"trackers": {
|
|
18913
|
+
"type": "array",
|
|
18914
|
+
"items": {
|
|
18915
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_shipping_tracker"
|
|
18916
|
+
},
|
|
18917
|
+
"nullable": true
|
|
18918
|
+
}
|
|
18919
|
+
},
|
|
18920
|
+
"type": "object"
|
|
18921
|
+
},
|
|
18922
|
+
"swag_paypal_v2_order_purchase_unit_shipping_name": {
|
|
18923
|
+
"required": ["full_name"],
|
|
18924
|
+
"properties": { "full_name": { "type": "string" } },
|
|
18925
|
+
"type": "object"
|
|
18926
|
+
},
|
|
18927
|
+
"swag_paypal_v2_order_purchase_unit_shipping_tracker": {
|
|
18928
|
+
"required": ["id", "status", "notify_payer", "links", "items"],
|
|
18929
|
+
"properties": {
|
|
18930
|
+
"id": { "type": "string" },
|
|
18931
|
+
"status": { "type": "string" },
|
|
18932
|
+
"notify_payer": { "type": "boolean" },
|
|
18933
|
+
"links": {
|
|
18934
|
+
"type": "array",
|
|
18935
|
+
"items": {
|
|
18936
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_link"
|
|
18937
|
+
}
|
|
18938
|
+
},
|
|
18939
|
+
"items": {
|
|
18940
|
+
"type": "array",
|
|
18941
|
+
"items": {
|
|
18942
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_item"
|
|
18943
|
+
}
|
|
18944
|
+
}
|
|
18945
|
+
},
|
|
18946
|
+
"type": "object"
|
|
18947
|
+
},
|
|
18948
|
+
"swag_paypal_v2_order_purchase_unit_shipping_tracker_item": {
|
|
18949
|
+
"required": ["name", "quantity", "sku", "url", "image_url"],
|
|
18950
|
+
"properties": {
|
|
18951
|
+
"name": { "type": "string" },
|
|
18952
|
+
"quantity": { "type": "integer" },
|
|
18953
|
+
"sku": { "type": "string", "nullable": true },
|
|
18954
|
+
"url": { "type": "string", "nullable": true },
|
|
18955
|
+
"image_url": { "type": "string", "nullable": true }
|
|
18956
|
+
},
|
|
18957
|
+
"type": "object"
|
|
18958
|
+
},
|
|
18959
|
+
"swag_paypal_v2_order_tracker": {
|
|
18960
|
+
"required": [
|
|
18961
|
+
"capture_id",
|
|
18962
|
+
"tracking_number",
|
|
18963
|
+
"carrier",
|
|
18964
|
+
"carrier_name_other",
|
|
18965
|
+
"items"
|
|
18966
|
+
],
|
|
18967
|
+
"properties": {
|
|
18968
|
+
"capture_id": { "type": "string" },
|
|
18969
|
+
"tracking_number": { "type": "string" },
|
|
18970
|
+
"carrier": { "type": "string" },
|
|
18971
|
+
"carrier_name_other": { "type": "string", "nullable": true },
|
|
18972
|
+
"notify_payer": { "type": "boolean", "default": false },
|
|
18973
|
+
"items": {
|
|
18974
|
+
"type": "array",
|
|
18975
|
+
"items": {
|
|
18976
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_purchase_unit_shipping_tracker_item"
|
|
18977
|
+
}
|
|
18978
|
+
}
|
|
18979
|
+
},
|
|
18980
|
+
"type": "object"
|
|
18981
|
+
},
|
|
18982
|
+
"swag_paypal_v2_patch": {
|
|
18983
|
+
"required": ["op", "path", "value", "from"],
|
|
18984
|
+
"properties": {
|
|
18985
|
+
"op": { "type": "string" },
|
|
18986
|
+
"path": { "type": "string" },
|
|
18987
|
+
"value": {
|
|
18988
|
+
"nullable": true,
|
|
18989
|
+
"oneOf": [
|
|
18990
|
+
{ "type": "integer" },
|
|
18991
|
+
{ "type": "float" },
|
|
18992
|
+
{ "type": "string" },
|
|
18993
|
+
{ "type": "boolean" },
|
|
18994
|
+
{ "type": "array", "items": { "type": "mixed" } }
|
|
18995
|
+
]
|
|
18996
|
+
},
|
|
18997
|
+
"from": { "type": "string" }
|
|
18998
|
+
},
|
|
18999
|
+
"type": "object"
|
|
19000
|
+
},
|
|
19001
|
+
"swag_paypal_v2_referral": {
|
|
19002
|
+
"required": [
|
|
19003
|
+
"business_entity",
|
|
19004
|
+
"preferred_language_code",
|
|
19005
|
+
"tracking_id",
|
|
19006
|
+
"partner_config_override",
|
|
19007
|
+
"operations",
|
|
19008
|
+
"products",
|
|
19009
|
+
"capabilities",
|
|
19010
|
+
"legal_consents",
|
|
19011
|
+
"links"
|
|
19012
|
+
],
|
|
19013
|
+
"properties": {
|
|
19014
|
+
"business_entity": {
|
|
19015
|
+
"$ref": "#/components/schemas/swag_paypal_v2_referral_business_entity"
|
|
19016
|
+
},
|
|
19017
|
+
"preferred_language_code": { "type": "string" },
|
|
19018
|
+
"tracking_id": { "type": "string" },
|
|
19019
|
+
"partner_config_override": {
|
|
19020
|
+
"$ref": "#/components/schemas/swag_paypal_v2_referral_partner_config_override"
|
|
19021
|
+
},
|
|
19022
|
+
"operations": {
|
|
19023
|
+
"type": "array",
|
|
19024
|
+
"items": {
|
|
19025
|
+
"$ref": "#/components/schemas/swag_paypal_v2_referral_operation"
|
|
19026
|
+
}
|
|
19027
|
+
},
|
|
19028
|
+
"products": { "type": "array", "items": { "type": "string" } },
|
|
19029
|
+
"capabilities": { "type": "array", "items": { "type": "string" } },
|
|
19030
|
+
"legal_consents": {
|
|
19031
|
+
"type": "array",
|
|
19032
|
+
"items": {
|
|
19033
|
+
"$ref": "#/components/schemas/swag_paypal_v2_referral_legal_consent"
|
|
19034
|
+
}
|
|
19035
|
+
},
|
|
19036
|
+
"links": {
|
|
19037
|
+
"type": "array",
|
|
19038
|
+
"items": {
|
|
19039
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_link"
|
|
19040
|
+
}
|
|
19041
|
+
}
|
|
19042
|
+
},
|
|
19043
|
+
"type": "object"
|
|
19044
|
+
},
|
|
19045
|
+
"swag_paypal_v2_referral_business_entity": {
|
|
19046
|
+
"required": ["addresses"],
|
|
19047
|
+
"properties": {
|
|
19048
|
+
"addresses": {
|
|
19049
|
+
"type": "array",
|
|
19050
|
+
"items": {
|
|
19051
|
+
"$ref": "#/components/schemas/swag_paypal_v2_referral_business_entity_address"
|
|
19052
|
+
}
|
|
19053
|
+
}
|
|
19054
|
+
},
|
|
19055
|
+
"type": "object"
|
|
19056
|
+
},
|
|
19057
|
+
"swag_paypal_v2_referral_business_entity_address": {
|
|
19058
|
+
"required": ["country_code"],
|
|
19059
|
+
"properties": {
|
|
19060
|
+
"country_code": { "type": "string" },
|
|
19061
|
+
"type": { "type": "string", "default": "WORK" }
|
|
19062
|
+
},
|
|
19063
|
+
"type": "object"
|
|
19064
|
+
},
|
|
19065
|
+
"swag_paypal_v2_referral_legal_consent": {
|
|
19066
|
+
"required": ["granted"],
|
|
19067
|
+
"properties": {
|
|
19068
|
+
"type": { "type": "string", "default": "SHARE_DATA_CONSENT" },
|
|
19069
|
+
"granted": { "type": "boolean" }
|
|
19070
|
+
},
|
|
19071
|
+
"type": "object"
|
|
19072
|
+
},
|
|
19073
|
+
"swag_paypal_v2_referral_operation": {
|
|
19074
|
+
"required": ["api_integration_preference"],
|
|
19075
|
+
"properties": {
|
|
19076
|
+
"operation": { "type": "string", "default": "API_INTEGRATION" },
|
|
19077
|
+
"api_integration_preference": {
|
|
19078
|
+
"$ref": "#/components/schemas/swag_paypal_v2_referral_operation_integration_preference"
|
|
19079
|
+
}
|
|
19080
|
+
},
|
|
19081
|
+
"type": "object"
|
|
19082
|
+
},
|
|
19083
|
+
"swag_paypal_v2_referral_operation_integration_preference": {
|
|
19084
|
+
"required": ["rest_api_integration"],
|
|
19085
|
+
"properties": {
|
|
19086
|
+
"rest_api_integration": {
|
|
19087
|
+
"$ref": "#/components/schemas/swag_paypal_v2_referral_operation_integration_preference_integration"
|
|
19088
|
+
}
|
|
19089
|
+
},
|
|
19090
|
+
"type": "object"
|
|
19091
|
+
},
|
|
19092
|
+
"swag_paypal_v2_referral_operation_integration_preference_integration": {
|
|
19093
|
+
"required": ["third_party_details"],
|
|
19094
|
+
"properties": {
|
|
19095
|
+
"integration_method": { "type": "string", "default": "PAYPAL" },
|
|
19096
|
+
"integration_type": { "type": "string", "default": "THIRD_PARTY" },
|
|
19097
|
+
"third_party_details": {
|
|
19098
|
+
"$ref": "#/components/schemas/swag_paypal_v2_referral_operation_integration_preference_integration_third_party_details"
|
|
19099
|
+
}
|
|
19100
|
+
},
|
|
19101
|
+
"type": "object"
|
|
19102
|
+
},
|
|
19103
|
+
"swag_paypal_v2_referral_operation_integration_preference_integration_third_party_details": {
|
|
19104
|
+
"required": ["features"],
|
|
19105
|
+
"properties": {
|
|
19106
|
+
"features": { "type": "array", "items": { "type": "string" } }
|
|
19107
|
+
},
|
|
19108
|
+
"type": "object"
|
|
19109
|
+
},
|
|
19110
|
+
"swag_paypal_v2_referral_partner_config_override": {
|
|
19111
|
+
"required": ["return_url", "partner_logo_url"],
|
|
19112
|
+
"properties": {
|
|
19113
|
+
"return_url": { "type": "string" },
|
|
19114
|
+
"partner_logo_url": { "type": "string" }
|
|
19115
|
+
},
|
|
19116
|
+
"type": "object"
|
|
19117
|
+
},
|
|
19118
|
+
"swag_paypal_v3_payment_token": {
|
|
19119
|
+
"required": [
|
|
19120
|
+
"id",
|
|
19121
|
+
"status",
|
|
19122
|
+
"customer",
|
|
19123
|
+
"payment_source",
|
|
19124
|
+
"links",
|
|
19125
|
+
"metadata"
|
|
19126
|
+
],
|
|
19127
|
+
"properties": {
|
|
19128
|
+
"id": { "type": "string" },
|
|
19129
|
+
"status": { "type": "string" },
|
|
19130
|
+
"customer": {
|
|
19131
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source_common_attributes_customer"
|
|
19132
|
+
},
|
|
19133
|
+
"payment_source": {
|
|
19134
|
+
"$ref": "#/components/schemas/swag_paypal_v2_order_payment_source"
|
|
19135
|
+
},
|
|
19136
|
+
"links": {
|
|
19137
|
+
"type": "array",
|
|
19138
|
+
"items": {
|
|
19139
|
+
"$ref": "#/components/schemas/swag_paypal_v2_common_link"
|
|
19140
|
+
}
|
|
19141
|
+
},
|
|
19142
|
+
"metadata": {
|
|
19143
|
+
"oneOf": [
|
|
19144
|
+
{
|
|
19145
|
+
"$ref": "#/components/schemas/swag_paypal_v3_payment_token_metadata"
|
|
19146
|
+
}
|
|
19147
|
+
],
|
|
19148
|
+
"nullable": true
|
|
19149
|
+
}
|
|
19150
|
+
},
|
|
19151
|
+
"type": "object"
|
|
19152
|
+
},
|
|
19153
|
+
"swag_paypal_v3_payment_token_metadata": {
|
|
19154
|
+
"required": ["order_id"],
|
|
19155
|
+
"properties": { "order_id": { "type": "string" } },
|
|
19156
|
+
"type": "object"
|
|
19157
|
+
}
|
|
19158
|
+
},
|
|
19159
|
+
"responses": {
|
|
19160
|
+
"204": { "description": "No Content" },
|
|
19161
|
+
"400": {
|
|
19162
|
+
"description": "Bad Request",
|
|
19163
|
+
"content": {
|
|
19164
|
+
"application/vnd.api+json": {
|
|
19165
|
+
"schema": { "$ref": "#/components/schemas/failure" },
|
|
19166
|
+
"example": {
|
|
19167
|
+
"errors": [
|
|
19168
|
+
{
|
|
19169
|
+
"status": "400",
|
|
19170
|
+
"title": "Bad Request",
|
|
19171
|
+
"description": "Bad parameters for this endpoint. See documentation for the correct ones."
|
|
19172
|
+
}
|
|
19173
|
+
]
|
|
19174
|
+
}
|
|
19175
|
+
},
|
|
19176
|
+
"application/json": {
|
|
19177
|
+
"schema": { "$ref": "#/components/schemas/failure" },
|
|
19178
|
+
"example": {
|
|
19179
|
+
"errors": [
|
|
19180
|
+
{
|
|
19181
|
+
"status": "400",
|
|
19182
|
+
"title": "Bad Request",
|
|
19183
|
+
"description": "Bad parameters for this endpoint. See documentation for the correct ones."
|
|
19184
|
+
}
|
|
19185
|
+
]
|
|
19186
|
+
}
|
|
19187
|
+
}
|
|
19188
|
+
}
|
|
19189
|
+
},
|
|
19190
|
+
"401": {
|
|
19191
|
+
"description": "Unauthorized",
|
|
19192
|
+
"content": {
|
|
19193
|
+
"application/vnd.api+json": {
|
|
19194
|
+
"schema": { "$ref": "#/components/schemas/failure" },
|
|
19195
|
+
"example": {
|
|
19196
|
+
"errors": [
|
|
19197
|
+
{
|
|
19198
|
+
"status": "401",
|
|
19199
|
+
"title": "Unauthorized",
|
|
19200
|
+
"description": "Authorization information is missing or invalid."
|
|
19201
|
+
}
|
|
19202
|
+
]
|
|
19203
|
+
}
|
|
19204
|
+
},
|
|
19205
|
+
"application/json": {
|
|
19206
|
+
"schema": { "$ref": "#/components/schemas/failure" },
|
|
19207
|
+
"example": {
|
|
19208
|
+
"errors": [
|
|
19209
|
+
{
|
|
19210
|
+
"status": "401",
|
|
19211
|
+
"title": "Unauthorized",
|
|
19212
|
+
"description": "Authorization information is missing or invalid."
|
|
19213
|
+
}
|
|
19214
|
+
]
|
|
19215
|
+
}
|
|
19216
|
+
}
|
|
19217
|
+
}
|
|
19218
|
+
},
|
|
19219
|
+
"403": {
|
|
19220
|
+
"description": "Forbidden",
|
|
19221
|
+
"content": {
|
|
19222
|
+
"application/vnd.api+json": {
|
|
19223
|
+
"schema": { "$ref": "#/components/schemas/failure" },
|
|
19224
|
+
"example": {
|
|
19225
|
+
"errors": [
|
|
19226
|
+
{
|
|
19227
|
+
"status": "403",
|
|
19228
|
+
"title": "Forbidden",
|
|
19229
|
+
"description": "This operation is restricted to logged in users."
|
|
19230
|
+
}
|
|
19231
|
+
]
|
|
19232
|
+
}
|
|
19233
|
+
},
|
|
19234
|
+
"application/json": {
|
|
19235
|
+
"schema": { "$ref": "#/components/schemas/failure" },
|
|
19236
|
+
"example": {
|
|
19237
|
+
"errors": [
|
|
19238
|
+
{
|
|
19239
|
+
"status": "403",
|
|
19240
|
+
"title": "Forbidden",
|
|
19241
|
+
"description": "This operation is restricted to logged in users."
|
|
19242
|
+
}
|
|
19243
|
+
]
|
|
19244
|
+
}
|
|
19245
|
+
}
|
|
19246
|
+
}
|
|
19247
|
+
},
|
|
19248
|
+
"404": {
|
|
19249
|
+
"description": "Not Found",
|
|
19250
|
+
"content": {
|
|
19251
|
+
"application/vnd.api+json": {
|
|
19252
|
+
"schema": { "$ref": "#/components/schemas/failure" },
|
|
19253
|
+
"example": {
|
|
19254
|
+
"errors": [
|
|
19255
|
+
{
|
|
19256
|
+
"status": "404",
|
|
19257
|
+
"title": "Not Found",
|
|
19258
|
+
"description": "Resource with given parameter was not found."
|
|
19259
|
+
}
|
|
19260
|
+
]
|
|
19261
|
+
}
|
|
19262
|
+
},
|
|
19263
|
+
"application/json": {
|
|
19264
|
+
"schema": { "$ref": "#/components/schemas/failure" },
|
|
19265
|
+
"example": {
|
|
19266
|
+
"errors": [
|
|
19267
|
+
{
|
|
19268
|
+
"status": "404",
|
|
19269
|
+
"title": "Not Found",
|
|
19270
|
+
"description": "Resource with given parameter was not found."
|
|
19271
|
+
}
|
|
19272
|
+
]
|
|
19273
|
+
}
|
|
19274
|
+
}
|
|
19275
|
+
}
|
|
19276
|
+
},
|
|
19277
|
+
"ContextTokenResponse": {
|
|
19278
|
+
"description": "Returns the context token. Use that as your `sw-context-token` header for subsequent requests. Redirect if getRedirectUrl is set.",
|
|
19279
|
+
"headers": {
|
|
19280
|
+
"sw-context-token": {
|
|
19281
|
+
"description": "Contains sw-context-token value",
|
|
19282
|
+
"schema": { "type": "string" }
|
|
19283
|
+
}
|
|
19284
|
+
},
|
|
19285
|
+
"content": {
|
|
19286
|
+
"application/json": {
|
|
19287
|
+
"schema": {
|
|
19288
|
+
"type": "object",
|
|
19289
|
+
"properties": {
|
|
19290
|
+
"redirectUrl": {
|
|
19291
|
+
"description": "Define the URL which browser will be redirected to",
|
|
19292
|
+
"type": "string"
|
|
19293
|
+
}
|
|
19294
|
+
}
|
|
19295
|
+
}
|
|
19296
|
+
}
|
|
19297
|
+
}
|
|
15648
19298
|
},
|
|
15649
19299
|
"OpenApi3": {
|
|
15650
19300
|
"description": "Returns information about the store API.",
|
|
@@ -19476,9 +23126,9 @@
|
|
|
19476
23126
|
}
|
|
19477
23127
|
},
|
|
19478
23128
|
"/employee/{id}": {
|
|
19479
|
-
"
|
|
23129
|
+
"get": {
|
|
19480
23130
|
"tags": ["B2B Employee Management"],
|
|
19481
|
-
"summary": "Fetch
|
|
23131
|
+
"summary": "Fetch one employee by id",
|
|
19482
23132
|
"description": "This route is used to fetch one employee by id",
|
|
19483
23133
|
"operationId": "readEmployee",
|
|
19484
23134
|
"parameters": [
|
|
@@ -20328,11 +23978,46 @@
|
|
|
20328
23978
|
"security": [{ "ApiKey": [] }]
|
|
20329
23979
|
}
|
|
20330
23980
|
},
|
|
23981
|
+
"/quote/{id}/send-message": {
|
|
23982
|
+
"post": {
|
|
23983
|
+
"tags": ["B2B Quote Management"],
|
|
23984
|
+
"summary": "Send a message to the merchant in the quote",
|
|
23985
|
+
"description": "This route is used to send a message to the merchant in the quote",
|
|
23986
|
+
"operationId": "sendMessageInQuote",
|
|
23987
|
+
"parameters": [
|
|
23988
|
+
{
|
|
23989
|
+
"name": "id",
|
|
23990
|
+
"in": "path",
|
|
23991
|
+
"description": "Identifier of the quote to be reinvited",
|
|
23992
|
+
"required": true,
|
|
23993
|
+
"schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }
|
|
23994
|
+
}
|
|
23995
|
+
],
|
|
23996
|
+
"requestBody": {
|
|
23997
|
+
"required": false,
|
|
23998
|
+
"content": {
|
|
23999
|
+
"application/json": {
|
|
24000
|
+
"schema": {
|
|
24001
|
+
"properties": {
|
|
24002
|
+
"comment": {
|
|
24003
|
+
"description": "Message content",
|
|
24004
|
+
"type": "string"
|
|
24005
|
+
}
|
|
24006
|
+
},
|
|
24007
|
+
"type": "object"
|
|
24008
|
+
}
|
|
24009
|
+
}
|
|
24010
|
+
}
|
|
24011
|
+
},
|
|
24012
|
+
"responses": { "204": { "description": "No content response" } },
|
|
24013
|
+
"security": [{ "ApiKey": [] }]
|
|
24014
|
+
}
|
|
24015
|
+
},
|
|
20331
24016
|
"/product/natural-language/search-term": {
|
|
20332
24017
|
"post": {
|
|
20333
|
-
"tags": ["Natural language search", "AI Search"
|
|
24018
|
+
"tags": ["Natural language search", "AI Search"],
|
|
20334
24019
|
"summary": "Fetch search terms by natural language search query",
|
|
20335
|
-
"description": "
|
|
24020
|
+
"description": "Fetch search terms by natural search language query",
|
|
20336
24021
|
"operationId": "naturalLanguageSearchTerm",
|
|
20337
24022
|
"requestBody": {
|
|
20338
24023
|
"required": true,
|
|
@@ -20367,9 +24052,9 @@
|
|
|
20367
24052
|
},
|
|
20368
24053
|
"/product/image-upload-search/search-term": {
|
|
20369
24054
|
"post": {
|
|
20370
|
-
"tags": ["Search by Image", "AI Search"
|
|
24055
|
+
"tags": ["Search by Image", "AI Search"],
|
|
20371
24056
|
"summary": "Fetch product search terms by uploading an image.",
|
|
20372
|
-
"description": "
|
|
24057
|
+
"description": "Fetch product search terms by uploading an image.",
|
|
20373
24058
|
"operationId": "searchByImageSearchTerm",
|
|
20374
24059
|
"requestBody": {
|
|
20375
24060
|
"required": true,
|
|
@@ -21992,6 +25677,177 @@
|
|
|
21992
25677
|
},
|
|
21993
25678
|
"security": [{ "ApiKey": [] }]
|
|
21994
25679
|
}
|
|
25680
|
+
},
|
|
25681
|
+
"/paypal/express/create-order": {
|
|
25682
|
+
"post": {
|
|
25683
|
+
"tags": ["Store API", "PayPal"],
|
|
25684
|
+
"description": "Creates a PayPal order from the existing cart",
|
|
25685
|
+
"operationId": "createPayPalExpressOrder",
|
|
25686
|
+
"responses": { "200": { "description": "The new token of the order" } }
|
|
25687
|
+
}
|
|
25688
|
+
},
|
|
25689
|
+
"/paypal/express/prepare-checkout": {
|
|
25690
|
+
"post": {
|
|
25691
|
+
"tags": ["Store API", "PayPal"],
|
|
25692
|
+
"description": "Logs in a guest customer, with the data of a paypal order",
|
|
25693
|
+
"operationId": "preparePayPalExpressCheckout",
|
|
25694
|
+
"requestBody": {
|
|
25695
|
+
"content": {
|
|
25696
|
+
"application/json": {
|
|
25697
|
+
"schema": {
|
|
25698
|
+
"properties": {
|
|
25699
|
+
"token": {
|
|
25700
|
+
"description": "ID of the paypal order",
|
|
25701
|
+
"type": "string"
|
|
25702
|
+
}
|
|
25703
|
+
},
|
|
25704
|
+
"type": "object"
|
|
25705
|
+
}
|
|
25706
|
+
}
|
|
25707
|
+
}
|
|
25708
|
+
},
|
|
25709
|
+
"responses": {
|
|
25710
|
+
"200": {
|
|
25711
|
+
"description": "The url to redirect to",
|
|
25712
|
+
"content": {
|
|
25713
|
+
"application/json": {
|
|
25714
|
+
"schema": {
|
|
25715
|
+
"properties": { "redirectUrl": { "type": "string" } },
|
|
25716
|
+
"type": "object"
|
|
25717
|
+
}
|
|
25718
|
+
}
|
|
25719
|
+
}
|
|
25720
|
+
}
|
|
25721
|
+
}
|
|
25722
|
+
}
|
|
25723
|
+
},
|
|
25724
|
+
"/paypal/pui/payment-instructions/{transactionId}": {
|
|
25725
|
+
"get": {
|
|
25726
|
+
"tags": ["Store API", "PayPal"],
|
|
25727
|
+
"description": "Tries to get payment instructions for PUI payments",
|
|
25728
|
+
"operationId": "getPUIPaymentInstructions",
|
|
25729
|
+
"parameters": [
|
|
25730
|
+
{
|
|
25731
|
+
"name": "transactionId",
|
|
25732
|
+
"in": "path",
|
|
25733
|
+
"description": "Identifier of the order transaction to be fetched",
|
|
25734
|
+
"required": true,
|
|
25735
|
+
"schema": { "type": "string", "pattern": "^[0-9a-f]{32}$" }
|
|
25736
|
+
}
|
|
25737
|
+
],
|
|
25738
|
+
"responses": {
|
|
25739
|
+
"200": { "description": "The payment instructions of the order" }
|
|
25740
|
+
}
|
|
25741
|
+
}
|
|
25742
|
+
},
|
|
25743
|
+
"/paypal/vault/clear": {
|
|
25744
|
+
"post": {
|
|
25745
|
+
"tags": ["Store API", "PayPal"],
|
|
25746
|
+
"description": "Clears the vault for the current customer",
|
|
25747
|
+
"operationId": "paypalVaultClear",
|
|
25748
|
+
"requestBody": {
|
|
25749
|
+
"content": {
|
|
25750
|
+
"application/json": {
|
|
25751
|
+
"schema": {
|
|
25752
|
+
"properties": {
|
|
25753
|
+
"type": {
|
|
25754
|
+
"type": "string",
|
|
25755
|
+
"enum": ["cancel", "browser", "error"]
|
|
25756
|
+
}
|
|
25757
|
+
},
|
|
25758
|
+
"type": "object"
|
|
25759
|
+
}
|
|
25760
|
+
}
|
|
25761
|
+
}
|
|
25762
|
+
},
|
|
25763
|
+
"responses": {
|
|
25764
|
+
"204": { "description": "Vault has been cleared successfully" }
|
|
25765
|
+
}
|
|
25766
|
+
}
|
|
25767
|
+
},
|
|
25768
|
+
"/paypal/create-order": {
|
|
25769
|
+
"post": {
|
|
25770
|
+
"tags": ["Store API", "PayPal"],
|
|
25771
|
+
"description": "Creates a PayPal order from the existing cart or an order",
|
|
25772
|
+
"operationId": "createPayPalOrder",
|
|
25773
|
+
"requestBody": {
|
|
25774
|
+
"content": {
|
|
25775
|
+
"application/json": {
|
|
25776
|
+
"schema": {
|
|
25777
|
+
"properties": {
|
|
25778
|
+
"product": {
|
|
25779
|
+
"description": "Use an existing order id to create PayPal order",
|
|
25780
|
+
"type": "string",
|
|
25781
|
+
"default": "ppcp"
|
|
25782
|
+
},
|
|
25783
|
+
"orderId": {
|
|
25784
|
+
"description": "Use an existing order id to create PayPal order",
|
|
25785
|
+
"type": "string"
|
|
25786
|
+
}
|
|
25787
|
+
},
|
|
25788
|
+
"type": "object"
|
|
25789
|
+
}
|
|
25790
|
+
}
|
|
25791
|
+
}
|
|
25792
|
+
},
|
|
25793
|
+
"responses": {
|
|
25794
|
+
"200": {
|
|
25795
|
+
"description": "Returns the created PayPal order id",
|
|
25796
|
+
"content": {
|
|
25797
|
+
"application/json": {
|
|
25798
|
+
"schema": {
|
|
25799
|
+
"properties": { "token": { "type": "string" } },
|
|
25800
|
+
"type": "object"
|
|
25801
|
+
}
|
|
25802
|
+
}
|
|
25803
|
+
}
|
|
25804
|
+
}
|
|
25805
|
+
}
|
|
25806
|
+
}
|
|
25807
|
+
},
|
|
25808
|
+
"/paypal/vault-token": {
|
|
25809
|
+
"get": {
|
|
25810
|
+
"tags": ["Store API", "PayPal"],
|
|
25811
|
+
"description": "Tries to get the customer vault token",
|
|
25812
|
+
"operationId": "getPayPalCustomerVaultToken",
|
|
25813
|
+
"responses": {
|
|
25814
|
+
"200": {
|
|
25815
|
+
"description": "The customer vault token",
|
|
25816
|
+
"content": {
|
|
25817
|
+
"application/json": {
|
|
25818
|
+
"schema": {
|
|
25819
|
+
"properties": { "token": { "type": "string" } },
|
|
25820
|
+
"type": "object"
|
|
25821
|
+
}
|
|
25822
|
+
}
|
|
25823
|
+
}
|
|
25824
|
+
}
|
|
25825
|
+
}
|
|
25826
|
+
}
|
|
25827
|
+
},
|
|
25828
|
+
"/paypal/payment-method-eligibility": {
|
|
25829
|
+
"post": {
|
|
25830
|
+
"tags": ["Store API", "PayPal"],
|
|
25831
|
+
"description": "Sets ineligible payment methods to be removed from the session",
|
|
25832
|
+
"operationId": "setPaymentMethodEligibility",
|
|
25833
|
+
"requestBody": {
|
|
25834
|
+
"content": {
|
|
25835
|
+
"application/json": {
|
|
25836
|
+
"schema": {
|
|
25837
|
+
"properties": {
|
|
25838
|
+
"paymentMethods": {
|
|
25839
|
+
"description": "List of PayPal payment method identifiers according to constant REMOVABLE_PAYMENT_HANDLERS",
|
|
25840
|
+
"type": "array",
|
|
25841
|
+
"items": { "type": "string" }
|
|
25842
|
+
}
|
|
25843
|
+
},
|
|
25844
|
+
"type": "object"
|
|
25845
|
+
}
|
|
25846
|
+
}
|
|
25847
|
+
}
|
|
25848
|
+
},
|
|
25849
|
+
"responses": { "204": { "description": "Success" } }
|
|
25850
|
+
}
|
|
21995
25851
|
}
|
|
21996
25852
|
},
|
|
21997
25853
|
"tags": [
|
|
@@ -22002,6 +25858,8 @@
|
|
|
22002
25858
|
"description": "Find out more",
|
|
22003
25859
|
"url": "https://github.com/shopware/platform/blob/trunk/adr/2023-05-10-experimental-features.md"
|
|
22004
25860
|
}
|
|
22005
|
-
}
|
|
25861
|
+
},
|
|
25862
|
+
{ "name": "Store API", "description": "Store API" },
|
|
25863
|
+
{ "name": "PayPal", "description": "PayPal" }
|
|
22006
25864
|
]
|
|
22007
25865
|
}
|