| GET,POST | /payment_initiate/{payment_target}/{payment_run_mode}/{payment_type}/{id_origin}/{id_societe}/{id_client}/{id_commande}/{type_paiement}/{amount}/{email} | Paiements : initier un règlement | |
|---|---|---|---|
| GET,POST | /payment_initiate/{payment_target}/{payment_run_mode}/{payment_type}/{id_origin}/{id_societe}/{id_client}/{id_commande}/{type_paiement}/{amount}/{email}/{commentaire} | Paiements : initier un règlement |
"use strict";
/** @typedef {'LABANQUEPOSTALE'|'PAYBOX'|'MILLIET'} */
export var eapi_payment_target_enum;
(function (eapi_payment_target_enum) {
eapi_payment_target_enum["LABANQUEPOSTALE"] = "LABANQUEPOSTALE"
eapi_payment_target_enum["PAYBOX"] = "PAYBOX"
eapi_payment_target_enum["MILLIET"] = "MILLIET"
})(eapi_payment_target_enum || (eapi_payment_target_enum = {}));
/** @typedef {'TEST'|'LIVE'|'FORCE_LIVE'} */
export var eapi_payment_run_mode_enum;
(function (eapi_payment_run_mode_enum) {
eapi_payment_run_mode_enum["TEST"] = "TEST"
eapi_payment_run_mode_enum["LIVE"] = "LIVE"
eapi_payment_run_mode_enum["FORCE_LIVE"] = "FORCE_LIVE"
})(eapi_payment_run_mode_enum || (eapi_payment_run_mode_enum = {}));
/** @typedef {'DIRECT_SEPA'|'SEPA'|'CB'|'AMEX'|'COMPTABILITE'} */
export var eapi_payment_type_enum;
(function (eapi_payment_type_enum) {
eapi_payment_type_enum["DIRECT_SEPA"] = "DIRECT_SEPA"
eapi_payment_type_enum["SEPA"] = "SEPA"
eapi_payment_type_enum["CB"] = "CB"
eapi_payment_type_enum["AMEX"] = "AMEX"
eapi_payment_type_enum["COMPTABILITE"] = "COMPTABILITE"
})(eapi_payment_type_enum || (eapi_payment_type_enum = {}));
export class payment_initiate {
/** @param {{payment_target?:eapi_payment_target_enum,payment_run_mode?:eapi_payment_run_mode_enum,payment_type?:eapi_payment_type_enum,id_origin?:string,id_societe?:string,id_client?:string,id_commande?:string,type_paiement?:eapi_payment_type_enum,amount?:string,email?:string,commentaire?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {eapi_payment_target_enum}
* @description environnement cible : PAYBOX, LA BANQUE POSTALE, MILLIET */
payment_target;
/**
* @type {eapi_payment_run_mode_enum}
* @description mode : LIVE, TEST */
payment_run_mode;
/**
* @type {eapi_payment_type_enum}
* @description type de paiement : CB, AMEX, SEPA, SEPA_DIRECT, COMPTABILITE */
payment_type;
/**
* @type {string}
* @description initiateur de la demande : web, dcp, télévente, compta, ibar, etc */
id_origin;
/**
* @type {string}
* @description numéro société : 1-J. Milliet BBC, 2-BCASH Chapelle, 3-BCASH Bagneux, 6-BCASH Clichy, etc... */
id_societe;
/**
* @type {string}
* @description numéro client : 2263-David, 13846-Fabien, etc... */
id_client;
/**
* @type {string}
* @description numéro commande : dans le cas du DCP, sinon 0 ... OU PAS !!! (évolution pour télévente, compta, etc...) */
id_commande;
/**
* @type {eapi_payment_type_enum}
* @description type : CB, AMEX, SEPA, SEPA_DIRECT */
type_paiement;
/**
* @type {string}
* @description montant du paiement dans sa plus petite unité monétaire (le centime pour l'euro) */
amount;
/**
* @type {string}
* @description email client */
email;
/**
* @type {string}
* @description commentaire */
commentaire;
}
JavaScript payment_initiate DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /payment_initiate/{payment_target}/{payment_run_mode}/{payment_type}/{id_origin}/{id_societe}/{id_client}/{id_commande}/{type_paiement}/{amount}/{email} HTTP/1.1
Host: milliet.io
Accept: application/json
Content-Type: application/json
Content-Length: length
{"payment_target":"LABANQUEPOSTALE","payment_run_mode":"TEST","payment_type":"DIRECT_SEPA","id_origin":"String","id_societe":"String","id_client":"String","id_commande":"String","type_paiement":"DIRECT_SEPA","amount":"String","email":"String","commentaire":"String"}