Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
156 changes: 85 additions & 71 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2148,7 +2148,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EntryModeFilter"
"$ref": "#/components/schemas/EntryMode"
}
}
},
Expand Down Expand Up @@ -5959,7 +5959,7 @@
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/EntryModeFilter"
"$ref": "#/components/schemas/EntryMode"
}
}
},
Expand Down Expand Up @@ -7202,6 +7202,21 @@
},
"title": "Receipt Card"
},
"ReceiptReader": {
"description": "Card reader details displayed on the receipt.",
"type": "object",
"properties": {
"code": {
"description": "Reader serial number.",
"type": "string"
},
"type": {
"description": "Reader type.",
"type": "string"
}
},
"title": "Receipt Reader"
},
"ReceiptMerchantData": {
"description": "Receipt merchant data",
"type": "object",
Expand All @@ -7217,15 +7232,30 @@
"business_name": {
"type": "string"
},
"company_registration_number": {
"type": "string"
},
"vat_id": {
"type": "string"
},
"website": {
"type": "string"
},
"email": {
"type": "string"
},
"language": {
"type": "string"
},
"address": {
"type": "object",
"properties": {
"address_line1": {
"type": "string"
},
"address_line2": {
"type": "string"
},
"city": {
"type": "string"
},
Expand All @@ -7238,6 +7268,9 @@
"country_native_name": {
"type": "string"
},
"region_name": {
"type": "string"
},
"post_code": {
"type": "string"
},
Expand All @@ -7263,6 +7296,13 @@
"description": "Transaction code.",
"type": "string"
},
"transaction_id": {
"$ref": "#/components/schemas/TransactionID"
},
"merchant_code": {
"description": "Merchant code.",
"type": "string"
},
"amount": {
"description": "Transaction amount.",
"type": "string"
Expand Down Expand Up @@ -7300,13 +7340,25 @@
"description": "Cardholder verification method.",
"type": "string"
},
"card_reader": {
"$ref": "#/components/schemas/ReceiptReader"
},
"card": {
"$ref": "#/components/schemas/ReceiptCard"
},
"installments_count": {
"description": "Number of installments.",
"type": "integer"
},
"process_as": {
"description": "Debit/Credit.",
"type": "string",
"example": "CREDIT",
"enum": [
"CREDIT",
"DEBIT"
]
},
"products": {
"description": "Products",
"type": "array",
Expand All @@ -7318,6 +7370,10 @@
"type": "string",
"example": "Coffee"
},
"description": {
"description": "Product description",
"type": "string"
},
"price": {
"description": "Product price",
"type": "string",
Expand Down Expand Up @@ -7657,33 +7713,33 @@
"description": "Entry mode of the payment details.",
"type": "string",
"enum": [
"none",
"magstripe",
"chip",
"manual entry",
"customer entry",
"magstripe fallback",
"contactless",
"moto",
"contactless magstripe",
"boleto",
"direct debit",
"sofort",
"ideal",
"bancontact",
"eps",
"mybank",
"satispay",
"blik",
"p24",
"giropay",
"pix",
"qr code pix",
"apple pay",
"google pay",
"paypal",
"twint",
"na"
"BOLETO",
"SOFORT",
"IDEAL",
"BANCONTACT",
"EPS",
"MYBANK",
"SATISPAY",
"BLIK",
"P24",
"GIROPAY",
"PIX",
"QR_CODE_PIX",
"APPLE_PAY",
"GOOGLE_PAY",
"PAYPAL",
"TWINT",
"NONE",
"CHIP",
"MANUAL_ENTRY",
"CUSTOMER_ENTRY",
"MAGSTRIPE_FALLBACK",
"MAGSTRIPE",
"DIRECT_DEBIT",
"CONTACTLESS",
"MOTO",
"CONTACTLESS_MAGSTRIPE",
"N/A"
],
"title": "Entry Mode"
},
Expand Down Expand Up @@ -9932,10 +9988,6 @@
"description": "Country ISO 3166-1 code",
"type": "string"
},
"region_id": {
"description": "Country region id",
"type": "number"
},
"region_name": {
"description": "Country region name",
"type": "string"
Expand Down Expand Up @@ -10023,10 +10075,6 @@
"description": "Country ISO 3166-1 code",
"type": "string"
},
"region_id": {
"description": "Country region id",
"type": "number"
},
"region_name": {
"description": "Region name",
"type": "string"
Expand Down Expand Up @@ -10439,40 +10487,6 @@
}
},
"title": "Personal Profile Legacy"
},
"EntryModeFilter": {
"description": "Entry mode value accepted by the `entry_modes[]` filter.",
"type": "string",
"enum": [
"BOLETO",
"SOFORT",
"IDEAL",
"BANCONTACT",
"EPS",
"MYBANK",
"SATISPAY",
"BLIK",
"P24",
"GIROPAY",
"PIX",
"QR_CODE_PIX",
"APPLE_PAY",
"GOOGLE_PAY",
"PAYPAL",
"TWINT",
"NONE",
"CHIP",
"MANUAL_ENTRY",
"CUSTOMER_ENTRY",
"MAGSTRIPE_FALLBACK",
"MAGSTRIPE",
"DIRECT_DEBIT",
"CONTACTLESS",
"MOTO",
"CONTACTLESS_MAGSTRIPE",
"N/A"
],
"title": "Entry Mode Filter"
}
},
"examples": {
Expand Down
4 changes: 2 additions & 2 deletions sdk/src/resources/transactions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { type APIPromise, APIResource, type RequestOptions } from "../../core";
import type {
EntryModeFilter,
EntryMode,
ErrorBody,
PaymentType,
Problem,
Expand Down Expand Up @@ -44,7 +44,7 @@ export type ListTransactionsV2_1QueryParams = {
| "CHARGE_BACK"
)[];
payment_types?: PaymentType[];
"entry_modes[]"?: EntryModeFilter[];
"entry_modes[]"?: EntryMode[];
types?: ("PAYMENT" | "REFUND" | "CHARGE_BACK")[];
changes_since?: string;
newest_time?: string;
Expand Down
4 changes: 0 additions & 4 deletions sdk/src/types/address-payload-legacy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ export type AddressPayloadLegacy = {
* Country ISO 3166-1 code
*/
country: string;
/**
* Country region id
*/
region_id?: number;
/**
* Country region name
*/
Expand Down
4 changes: 0 additions & 4 deletions sdk/src/types/address-with-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export type AddressWithDetails = {
* Country ISO 3166-1 code
*/
country?: string;
/**
* Country region id
*/
region_id?: number;
/**
* Region name
*/
Expand Down
35 changes: 0 additions & 35 deletions sdk/src/types/entry-mode-filter.ts

This file was deleted.

54 changes: 27 additions & 27 deletions sdk/src/types/entry-mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
* Entry mode of the payment details.
*/
export type EntryMode =
| "none"
| "magstripe"
| "chip"
| "manual entry"
| "customer entry"
| "magstripe fallback"
| "contactless"
| "moto"
| "contactless magstripe"
| "boleto"
| "direct debit"
| "sofort"
| "ideal"
| "bancontact"
| "eps"
| "mybank"
| "satispay"
| "blik"
| "p24"
| "giropay"
| "pix"
| "qr code pix"
| "apple pay"
| "google pay"
| "paypal"
| "twint"
| "na";
| "BOLETO"
| "SOFORT"
| "IDEAL"
| "BANCONTACT"
| "EPS"
| "MYBANK"
| "SATISPAY"
| "BLIK"
| "P24"
| "GIROPAY"
| "PIX"
| "QR_CODE_PIX"
| "APPLE_PAY"
| "GOOGLE_PAY"
| "PAYPAL"
| "TWINT"
| "NONE"
| "CHIP"
| "MANUAL_ENTRY"
| "CUSTOMER_ENTRY"
| "MAGSTRIPE_FALLBACK"
| "MAGSTRIPE"
| "DIRECT_DEBIT"
| "CONTACTLESS"
| "MOTO"
| "CONTACTLESS_MAGSTRIPE"
| "N/A";
Loading
Loading