Skip to content

Commit 62b5cf3

Browse files
committed
Updated API from documentation release
1 parent 8691a7b commit 62b5cf3

File tree

113 files changed

+2318
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+2318
-15
lines changed

api-specs/api/api.raml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ resourceTypes:
246246
/login: !include resources/login.raml
247247
/messages: !include resources/messages.raml
248248
/orders: !include resources/orders.raml
249+
/payment-methods: !include resources/payment-methods.raml
249250
/payments: !include resources/payments.raml
250251
/products: !include resources/products.raml
251252
/product-discounts: !include resources/product-discounts.raml
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"action": "setMethodInfoCustomField",
3+
"name": "last4",
4+
"value": 4567
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"action": "setMethodInfoCustomType",
3+
"type": {
4+
"key": "payment-method-info-cc-last4",
5+
"typeId": "type"
6+
},
7+
"fields": {
8+
"last4": 1234
9+
}
10+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"action": "setMethodInfoInterfaceAccount",
3+
"interfaceAccount": "ADYEN-123"
4+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"action": "setMethodInfo",
3+
"paymentInterface": "STRIPE",
4+
"method": "CREDITCARD",
5+
"name": {
6+
"en": "Credit Card",
7+
"de": "Kreditkarte"
8+
},
9+
"token": {
10+
"value": "sk_test_123456789"
11+
},
12+
"interfaceAccount": "acct_1234567890",
13+
"custom": {
14+
"type": {
15+
"id": "{{type-id}}",
16+
"typeId": "type"
17+
},
18+
"fields": {
19+
"last4": 1234,
20+
"brand": "VISA"
21+
}
22+
}
23+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"action": "setMethodInfoCustomField",
3+
"name": "last4",
4+
"value": 4567
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"action": "setMethodInfoCustomType",
3+
"type": {
4+
"key": "payment-method-info-cc-last4",
5+
"typeId": "type"
6+
},
7+
"fields": {
8+
"last4": 1234
9+
}
10+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"action": "setMethodInfoInterfaceAccount",
3+
"interfaceAccount": "ADYEN-123"
4+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"action": "setMethodInfoToken",
3+
"token": {
4+
"value": "1234-5678-9010-1234"
5+
}
6+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"action": "setCustomField",
3+
"name": "exampleStringField",
4+
"value": "TextString"
5+
}

0 commit comments

Comments
 (0)