Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: icadsistemi/is.sn.app.doc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.0-alpha.13
Choose a base ref
...
head repository: icadsistemi/is.sn.app.doc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.0-alpha.14
Choose a head ref
  • 4 commits
  • 1 file changed
  • 2 contributors

Commits on Sep 6, 2024

  1. Copy the full SHA
    6358582 View commit details
  2. Copy the full SHA
    39676c6 View commit details
  3. Copy the full SHA
    fd6c047 View commit details

Commits on Sep 9, 2024

  1. Copy the full SHA
    b243a5b View commit details
Showing with 254 additions and 200 deletions.
  1. +254 −200 reference/Selfnet-APP.yaml
454 changes: 254 additions & 200 deletions reference/Selfnet-APP.yaml
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ x-stoplight:
id: ff85zzu171gza
info:
title: Selfnet APP
version: 1.0.0-alpha.13
version: 1.0.0-alpha.14
description: ''
servers:
- url: 'http://localhost:3000'
@@ -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: ''
@@ -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
@@ -577,6 +645,35 @@ paths:
required: true
requestBody:
content: {}
/fuelcoupons/transactions:
get:
summary: GET fuelstation transactions
tags: []
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/FuelCouponTransactions'
operationId: get-fuelcoupons-transactions
description: Get fuelcoupon transactions
parameters:
- schema:
type: integer
in: header
name: supplier_id
required: true
- schema:
type: integer
in: query
name: start_range
description: Unit datetime
- schema:
type: integer
in: query
name: end_range
description: Unit datetime
/invoices:
get:
summary: Get invoices
@@ -842,74 +939,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:
@@ -919,29 +948,6 @@ components:
type: object
description: A campaign with all its rewards
properties:
campaign:
type: object
x-stoplight:
id: oebjyjx33hh0z
properties:
id:
type: integer
x-stoplight:
id: 4t0w46y4rbzfi
name:
type: string
x-stoplight:
id: f7sj80ani49ra
type:
type: integer
x-stoplight:
id: q9mbsmfcc7e0u
description: |-
Allowed values are:
1: this is a OIL campaign
2: this is a NON OIL campaign
3: this is a mixed campaign
rewards:
type: array
x-stoplight:
@@ -1403,6 +1409,90 @@ components:
x-stoplight:
id: 3h5txjkrzj3yz
format: date
amount:
type: number
x-stoplight:
id: bltgm93oj68iy
FuelCouponTransactions:
title: FuelCouponTransactions
x-stoplight:
id: wuj0e1jr0gh3k
type: object
properties:
datetime:
type: string
x-stoplight:
id: 8h2bg248as5h8
format: date-time
fuelstation:
type: object
x-stoplight:
id: iz4uh2xkrlxh7
properties:
name:
type: string
x-stoplight:
id: cgbf462u7j0sj
article:
type: object
x-stoplight:
id: owkiiqwcvovst
properties:
name:
type: string
x-stoplight:
id: hoy5as0hv9j1r
measure_unit:
type: string
x-stoplight:
id: rkkkzx0wfayhz
quantity:
type: number
x-stoplight:
id: 0warktb30m55q
precision:
type: integer
x-stoplight:
id: 7qjn35tm4cm9n
unit_price:
type: integer
x-stoplight:
id: bgjxpud2a1ft3
supply:
type: object
x-stoplight:
id: j7zvc47321b1v
description: Value to be rendered in the QRcode / barcode
properties:
amount:
type: number
x-stoplight:
id: 7pygplojku3ao
description: amount ot the current transaction
total_amount:
type: number
x-stoplight:
id: 18bnwlqntmifc
description: total amount if the transaction involves more than one fuelcoupon
is_oil:
type: boolean
x-stoplight:
id: ffxn3ptril8yx
description: 'true the transaction is on oil products, nonoil otherwise'
fuelcoupon:
type: object
x-stoplight:
id: 74yd65r80v4ib
properties:
amount:
type: number
x-stoplight:
id: 3w27j1ft91dv2
code:
type: integer
x-stoplight:
id: fj3vpxs94669q
description: ''
FuelStation:
title: FuelStation
x-stoplight:
@@ -1777,7 +1867,7 @@ components:
type: integer
x-stoplight:
id: fntxqabzgus2o
is_fuelcoupon:
is_fuel_coupon:
type: boolean
x-stoplight:
id: 4yrs3xua2vzxi
@@ -2024,6 +2114,7 @@ components:
x-stoplight:
id: kbjcadsz7t7rg
type: object
description: Bills for rechargeable cards
properties:
id:
type: integer
@@ -2052,32 +2143,12 @@ components:
type: boolean
x-stoplight:
id: dzpc0x3kswonc
insert_datetime:
type: string
x-stoplight:
id: mylu8biflxfnw
edit_datetime:
type: string
x-stoplight:
id: 1v9d6y72fbjmw
insert_username:
type: string
x-stoplight:
id: it3vt8b9wwrar
edit_username:
type: string
x-stoplight:
id: 62s5hc1eq8pm1
discount_group_id:
type: integer
x-stoplight:
id: 12tm7wzlr0b5o
description: Bills for rechargeable cards
FuelcouponBills:
title: FuelcouponBills
x-stoplight:
id: 5s9nex2le90th
type: object
description: Bills for fuelcoupons
properties:
id:
type: integer
@@ -2093,23 +2164,6 @@ components:
type: boolean
x-stoplight:
id: t0a52jfvfwge5
insert_datetime:
type: string
x-stoplight:
id: 0wigmefa61num
edit_datetime:
type: string
x-stoplight:
id: ghix7lfnw53lj
insert_username:
type: string
x-stoplight:
id: 2un5n4zzrp1iq
edit_username:
type: string
x-stoplight:
id: 6200nso26s2vk
description: Bills for fuelcoupons
securitySchemes:
Cognito:
type: oauth2