Skip to content

Latest commit

 

History

History
293 lines (190 loc) · 8.52 KB

ReservaPaymentApi.md

File metadata and controls

293 lines (190 loc) · 8.52 KB

SwaggerJsClient.ReservaPaymentApi

All URIs are relative to /

Method HTTP request Description
deleteReservaPaymentItem DELETE /api/reserva_payments/{id} Removes the ReservaPayment resource.
getReservaPaymentCollection GET /api/reserva_payments Retrieves the collection of ReservaPayment resources.
getReservaPaymentItem GET /api/reserva_payments/{id} Retrieves a ReservaPayment resource.
patchReservaPaymentItem PATCH /api/reserva_payments/{id} Updates the ReservaPayment resource.
postReservaPaymentCollection POST /api/reserva_payments Creates a ReservaPayment resource.
putReservaPaymentItem PUT /api/reserva_payments/{id} Replaces the ReservaPayment resource.

deleteReservaPaymentItem

deleteReservaPaymentItem(id)

Removes the ReservaPayment resource.

Removes the ReservaPayment resource.

Example

import { SwaggerJsClient } from "swagger-js-client";

let apiInstance = new SwaggerJsClient.ReservaPaymentApi();
let id = "id_example"; // String | Resource identifier

apiInstance.deleteReservaPaymentItem(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log("API called successfully.");
  }
});

Parameters

Name Type Description Notes
id String Resource identifier

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

getReservaPaymentCollection

InlineResponse20017 getReservaPaymentCollection(opts)

Retrieves the collection of ReservaPayment resources.

Retrieves the collection of ReservaPayment resources.

Example

import { SwaggerJsClient } from "swagger-js-client";

let apiInstance = new SwaggerJsClient.ReservaPaymentApi();
let opts = {
  page: 1, // Number | The collection page number
};
apiInstance.getReservaPaymentCollection(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log("API called successfully. Returned data: " + data);
  }
});

Parameters

Name Type Description Notes
page Number The collection page number [optional] [default to 1]

Return type

InlineResponse20017

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/ld+json, application/json, text/html

getReservaPaymentItem

ReservaPaymentJsonld getReservaPaymentItem(id)

Retrieves a ReservaPayment resource.

Retrieves a ReservaPayment resource.

Example

import { SwaggerJsClient } from "swagger-js-client";

let apiInstance = new SwaggerJsClient.ReservaPaymentApi();
let id = "id_example"; // String | Resource identifier

apiInstance.getReservaPaymentItem(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log("API called successfully. Returned data: " + data);
  }
});

Parameters

Name Type Description Notes
id String Resource identifier

Return type

ReservaPaymentJsonld

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/ld+json, application/json, text/html

patchReservaPaymentItem

ReservaPaymentJsonld patchReservaPaymentItem(body, id)

Updates the ReservaPayment resource.

Updates the ReservaPayment resource.

Example

import { SwaggerJsClient } from "swagger-js-client";

let apiInstance = new SwaggerJsClient.ReservaPaymentApi();
let body = new SwaggerJsClient.ReservaPayment(); // ReservaPayment | The updated ReservaPayment resource
let id = "id_example"; // String | Resource identifier

apiInstance.patchReservaPaymentItem(body, id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log("API called successfully. Returned data: " + data);
  }
});

Parameters

Name Type Description Notes
body ReservaPayment The updated ReservaPayment resource
id String Resource identifier

Return type

ReservaPaymentJsonld

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/merge-patch+json
  • Accept: application/ld+json, application/json, text/html

postReservaPaymentCollection

ReservaPaymentJsonld postReservaPaymentCollection(body)

Creates a ReservaPayment resource.

Creates a ReservaPayment resource.

Example

import { SwaggerJsClient } from "swagger-js-client";

let apiInstance = new SwaggerJsClient.ReservaPaymentApi();
let body = new SwaggerJsClient.ReservaPaymentJsonld(); // ReservaPaymentJsonld | The new ReservaPayment resource

apiInstance.postReservaPaymentCollection(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log("API called successfully. Returned data: " + data);
  }
});

Parameters

Name Type Description Notes
body ReservaPaymentJsonld The new ReservaPayment resource

Return type

ReservaPaymentJsonld

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/ld+json, application/json, text/html
  • Accept: application/ld+json, application/json, text/html

putReservaPaymentItem

ReservaPaymentJsonld putReservaPaymentItem(body, id)

Replaces the ReservaPayment resource.

Replaces the ReservaPayment resource.

Example

import { SwaggerJsClient } from "swagger-js-client";

let apiInstance = new SwaggerJsClient.ReservaPaymentApi();
let body = new SwaggerJsClient.ReservaPaymentJsonld(); // ReservaPaymentJsonld | The updated ReservaPayment resource
let id = "id_example"; // String | Resource identifier

apiInstance.putReservaPaymentItem(body, id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log("API called successfully. Returned data: " + data);
  }
});

Parameters

Name Type Description Notes
body ReservaPaymentJsonld The updated ReservaPayment resource
id String Resource identifier

Return type

ReservaPaymentJsonld

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/ld+json, application/json, text/html
  • Accept: application/ld+json, application/json, text/html