Skip to content

Commit

Permalink
ordered ecommerce endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
symonfly82 committed Sep 6, 2024
1 parent 6358582 commit 39676c6
Showing 1 changed file with 137 additions and 137 deletions.
274 changes: 137 additions & 137 deletions reference/Selfnet-APP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,89 +317,74 @@ paths:
required: true
requestBody:
content: {}
/ecommerce/nexi/payments/notification:
post:
summary: ''
operationId: ecommerce-nexi-payment-notification
/ecommerce/cards/bills:
get:
summary: Get ecommerce active rechargeable card bills
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/RechargeableBills'
operationId: get-ecommerce-cards-bills
description: Get ecommerce active rechargeable card bills for the current supplier
parameters:
- schema:
type: string
in: header
name: supplier_id
required: true
/ecommerce/fuelcoupons/bills:
get:
summary: Get ecommerce active fuelcoupon bills
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/FuelcouponBills'
operationId: get-ecommerce-fuelcoupon-bills
description: Get ecommerce active fuelcoupon bills for the current supplier
parameters:
- schema:
type: string
in: header
name: supplier_id
required: true
parameters: []
/ecommerce/nexi/customers/contract:
patch:
summary: Save Nexi customer contract number
operationId: patch-ecommerce-nexi-customers-contract
responses:
'204':
description: No Content
content:
application/json:
schema:
type: object
properties:
esito:
type: string
x-stoplight:
id: x4xl14u6dn710
description: 'result of payment operation (values: ANNULLO, OK)'
messaggio:
type: string
x-stoplight:
id: 6kxizo0hq1c80
description: message from Nexi abuot payment
divisa:
type: string
x-stoplight:
id: vch9hu7vyy4mv
description: currency used in payment
importo:
type: string
x-stoplight:
id: lql0o6u5tx4s5
description: amount paid
codtrans:
type: string
x-stoplight:
id: 9gzuei1row0oc
description: transaction number
num_contratto:
type: string
x-stoplight:
id: qmxe6mptfy9g7
description: contract number used between ICAD and Nexi to recall a recurring payment on a saved card (on Nexi system)
pan:
type: string
x-stoplight:
id: jb636o1gmgpvn
description: card pan (last 3 digits)
scadenza_pan:
type: string
x-stoplight:
id: 5mv68z5jlkmmn
description: expiration date of the payment card
tipoprodotto:
type: string
id:
type: integer
x-stoplight:
id: xfxzumq1zrmtg
description: product type
brand:
id: x896l7rybo5be
description: customer id
contract_number:
type: string
x-stoplight:
id: r3e4d5w38h8vj
description: payment card brand
required:
- esito
- messaggio
- divisa
- importo
- codtrans
- num_contratto
- pan
- scadenza_pan
- tipoprodotto
- brand
description: Handle response from Nexi cash page. All queryparams coming from Nexi page callback must be put in internal call
requestBody:
content: {}
id: tda8dkedtmr22
description: 0000000017_20190729153936|001 (contract number | last three numbers of the card pan saved)
description: Save the Nexi customer contract provided when during payment it was saved a card
parameters:
- schema:
type: string
in: query
name: '*'
description: All Nexi query string params are passed to this internal notification api
parameters: []
in: header
name: supplier_id
required: true
/ecommerce/nexi/payments/start:
post:
summary: ''
Expand Down Expand Up @@ -479,6 +464,89 @@ paths:
- transaction_data
- 'icad_payment_:type'
parameters: []
/ecommerce/nexi/payments/notification:
post:
summary: ''
operationId: ecommerce-nexi-payment-notification
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
esito:
type: string
x-stoplight:
id: x4xl14u6dn710
description: 'result of payment operation (values: ANNULLO, OK)'
messaggio:
type: string
x-stoplight:
id: 6kxizo0hq1c80
description: message from Nexi abuot payment
divisa:
type: string
x-stoplight:
id: vch9hu7vyy4mv
description: currency used in payment
importo:
type: string
x-stoplight:
id: lql0o6u5tx4s5
description: amount paid
codtrans:
type: string
x-stoplight:
id: 9gzuei1row0oc
description: transaction number
num_contratto:
type: string
x-stoplight:
id: qmxe6mptfy9g7
description: contract number used between ICAD and Nexi to recall a recurring payment on a saved card (on Nexi system)
pan:
type: string
x-stoplight:
id: jb636o1gmgpvn
description: card pan (last 3 digits)
scadenza_pan:
type: string
x-stoplight:
id: 5mv68z5jlkmmn
description: expiration date of the payment card
tipoprodotto:
type: string
x-stoplight:
id: xfxzumq1zrmtg
description: product type
brand:
type: string
x-stoplight:
id: r3e4d5w38h8vj
description: payment card brand
required:
- esito
- messaggio
- divisa
- importo
- codtrans
- num_contratto
- pan
- scadenza_pan
- tipoprodotto
- brand
description: Handle response from Nexi cash page. All queryparams coming from Nexi page callback must be put in internal call
requestBody:
content: {}
parameters:
- schema:
type: string
in: query
name: '*'
description: All Nexi query string params are passed to this internal notification api
parameters: []
/fuelcoupons:
get:
summary: List active fuel coupons
Expand Down Expand Up @@ -842,74 +910,6 @@ paths:
in: path
required: true
description: Can be ios or android
/ecommerce/cards/bills:
get:
summary: Get ecommerce active rechargeable card bills
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/RechargeableBills'
operationId: get-ecommerce-cards-bills
description: Get ecommerce active rechargeable card bills for the current supplier
parameters:
- schema:
type: string
in: header
name: supplier_id
required: true
/ecommerce/fuelcoupons/bills:
get:
summary: Get ecommerce active fuelcoupon bills
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/FuelcouponBills'
operationId: get-ecommerce-fuelcoupon-bills
description: Get ecommerce active fuelcoupon bills for the current supplier
parameters:
- schema:
type: string
in: header
name: supplier_id
required: true
parameters: []
/ecommerce/nexi/customers/contract:
patch:
summary: Save Nexi customer contract number
operationId: patch-ecommerce-nexi-customers-contract
responses:
'204':
description: No Content
content:
application/json:
schema:
type: object
properties:
id:
type: integer
x-stoplight:
id: x896l7rybo5be
description: customer id
contract_number:
type: string
x-stoplight:
id: tda8dkedtmr22
description: 0000000017_20190729153936|001 (contract number | last three numbers of the card pan saved)
description: Save the Nexi customer contract provided when during payment it was saved a card
parameters:
- schema:
type: string
in: header
name: supplier_id
required: true
components:
schemas:
AvailableRewards:
Expand Down

0 comments on commit 39676c6

Please sign in to comment.