From 3dacf20e0e3513a49eac2b7175f685b65f469617 Mon Sep 17 00:00:00 2001 From: marcosmarxm Date: Thu, 24 Feb 2022 17:14:43 -0300 Subject: [PATCH] run format --- .../source_chargebee/schemas/transaction.json | 658 +++++++++--------- 1 file changed, 317 insertions(+), 341 deletions(-) diff --git a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/transaction.json b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/transaction.json index 35ef221d6008..ced260d50b47 100644 --- a/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/transaction.json +++ b/airbyte-integrations/connectors/source-chargebee/source_chargebee/schemas/transaction.json @@ -1,365 +1,341 @@ { - "$schema": "http://json-schema.org/draft-07/schema#", - "name": "Transaction", - "type": "object", - "properties": { - "id": { - "type": ["string", "null"], - "max-length": 40 - }, - "customer_id": { - "type": ["string", "null"], - "max-length": 50 - }, - "subscription_id": { - "type": ["string", "null"], - "max-length": 50 - }, - "gateway_account_id": { + "$schema": "http://json-schema.org/draft-07/schema#", + "name": "Transaction", + "type": "object", + "properties": { + "id": { + "type": ["string", "null"], + "max-length": 40 + }, + "customer_id": { + "type": ["string", "null"], + "max-length": 50 + }, + "subscription_id": { + "type": ["string", "null"], + "max-length": 50 + }, + "gateway_account_id": { + "type": ["string", "null"], + "max-length": 50 + }, + "gateway_account_id": { + "type": ["string", "null"], + "max-length": 50 + }, + "payment_source_id": { + "type": ["string", "null"], + "max-length": 40 + }, + "payment_method": { + "type": ["string", "null"], + "enum": ["card", "cash", "check"] + }, + "refrence_number": { + "type": ["string", "null"], + "max-length": 100 + }, + "gateway": { + "type": ["string", "null"], + "enum": [ + "chargebee", + "stripe", + "wepay", + "braintree", + "authorize_net", + "paypal_pro", + "pin", + "eway", + "eway_rapid", + "worldpay", + "balanced_payments", + "beanstream", + "bluepay", + "elavon", + "first_data_global", + "hdfc", + "migs", + "nmi", + "ogone", + "paymill", + "paypal_payflow_pro", + "sage_pay", + "tco", + "wirecard", + "amazon_payments", + "paypal_express_checkout", + "gocardless", + "adyen", + "orbital", + "moneris_us", + "moneris", + "bluesnap", + "cybersource", + "vantiv", + "checkout_com", + "paypal", + "ingenico_direct", + "exact", + "mollie", + "not_applicable" + ] + }, + "type": { + "type": ["string", "null"], + "enum": ["authorization", "payment", "refund", "payment_reversal"] + }, + "date": { + "type": ["integer", "null"] + }, + "settled_at": { + "type": ["integer", "null"] + }, + "exchange_rate": { + "type": ["integer", "null"] + }, + "currency_code": { + "type": ["string", "null"] + }, + "amount": { + "type": ["string", "null"] + }, + "id_at_gateway": { + "type": ["string", "null"], + "max-length": 100 + }, + "status": { + "type": ["string", "null"], + "enum": [ + "in_progress", + "success", + "voided", + "failure", + "timeout", + "needs_attention" + ] + }, + "fraud_flag": { + "type": ["string", "null"], + "enum": ["safe", "suspicous", "fraudulent"] + }, + "initiator_type": { + "type": ["string", "null"], + "enum": ["costumer", "merchant"] + }, + "three_d_source": { + "type": ["boolean", "null"] + }, + "authorization_reason": { + "type": ["string", "null"], + "enum": ["blocking_funds", "verification"] + }, + "error_code": { + "type": ["string", "null"], + "max-length": 100 + }, + "error-text": { + "type": ["string", "null"], + "max-length": 65000 + }, + "voided_at": { + "type": ["integer", "null"] + }, + "resource_version": { + "type": ["integer", "null"] + }, + "updated_at": { + "type": ["integer", "null"] + }, + "fraud_reason": { + "type": ["string", "null"], + "max-length": 250 + }, + "amount_unused": { + "type": ["string", "null"] + }, + "masked_card_number": { + "type": ["string", "null"], + "max-length": 20 + }, + "reference_transaction_id": { + "type": ["string", "null"], + "max-length": 40 + }, + "refunded_txn_id": { + "type": ["string", "null"], + "max-length": 40 + }, + "reference_authorization_id": { + "type": ["string", "null"], + "max-length": 40 + }, + "amount_capturable": { + "type": ["integer", "null"] + }, + "reversal_transaction_id": { + "type": ["string", "null"], + "max-length": 40 + }, + "deleted": { + "type": ["boolean", "null"] + }, + "iin": { + "type": ["string", "null"], + "max-length": 6 + }, + "last4": { + "type": ["string", "null"], + "max-length": 4 + }, + "merchant_reference_id": { + "type": ["string", "null"], + "max-length": 500 + }, + "linked_invoices": { + "type": ["array", "null"], + "items": { + "type": ["object", "null"], + "properties": { + "invoice_id": { "type": ["string", "null"], "max-length": 50 - }, - "gateway_account_id": { - "type": ["string", "null"], - "max-length": 50 - }, - "payment_source_id": { - "type": ["string", "null"], - "max-length": 40 - }, - "payment_method": { - "type": ["string", "null"], - "enum": [ - "card", - "cash", - "check" - ] - }, - "refrence_number": { - "type": ["string", "null"], - "max-length": 100 - }, - "gateway": { - "type": ["string", "null"], - "enum": [ - "chargebee", - "stripe", - "wepay", - "braintree", - "authorize_net", - "paypal_pro", - "pin", - "eway", - "eway_rapid", - "worldpay", - "balanced_payments", - "beanstream", - "bluepay", - "elavon", - "first_data_global", - "hdfc", - "migs", - "nmi", - "ogone", - "paymill", - "paypal_payflow_pro", - "sage_pay", - "tco", - "wirecard", - "amazon_payments", - "paypal_express_checkout", - "gocardless", - "adyen", - "orbital", - "moneris_us", - "moneris", - "bluesnap", - "cybersource", - "vantiv", - "checkout_com", - "paypal", - "ingenico_direct", - "exact", - "mollie", - "not_applicable" - ] - }, - "type": { - "type": ["string", "null"], - "enum": [ - "authorization", - "payment", - "refund", - "payment_reversal" - ] - }, - "date": { + }, + "applied_amount": { "type": ["integer", "null"] - }, - "settled_at": { + }, + "applied_at": { "type": ["integer", "null"] - }, - "exchange_rate": { + }, + "invoice_date": { "type": ["integer", "null"] - }, - "currency_code": { - "type": ["string", "null"] - }, - "amount": { - "type": ["string", "null"] - }, - "id_at_gateway": { - "type": ["string", "null"], - "max-length": 100 - }, - "status": { - "type": ["string", "null"], - "enum": [ - "in_progress", - "success", - "voided", - "failure", - "timeout", - "needs_attention" - ] - }, - "fraud_flag": { - "type": ["string", "null"], - "enum": [ - "safe", - "suspicous", - "fraudulent" - ] - }, - "initiator_type": { - "type": ["string", "null"], - "enum": [ - "costumer", - "merchant" - ] - }, - "three_d_source": { - "type": ["boolean", "null"] - }, - "authorization_reason": { + }, + "invoice_total": { + "type": ["integer", "null"] + }, + "invoice_status": { "type": ["string", "null"], "enum": [ - "blocking_funds", - "verification" + "paid", + "posted", + "payment_due", + "not_paid", + "voided", + "pending" ] - }, - "error_code": { - "type": ["string", "null"], - "max-length": 100 - }, - "error-text": { + } + } + } + }, + "linked_credit_notes": { + "type": ["array", "null"], + "items": { + "type": ["object", "null"], + "properties": { + "cn_id": { "type": ["string", "null"], - "max-length": 65000 - }, - "voided_at": { - "type": ["integer", "null"] - }, - "resource_version": { + "max-length": 50 + }, + "applied_amount": { "type": ["integer", "null"] - }, - "updated_at": { + }, + "applied_at": { "type": ["integer", "null"] - }, - "fraud_reason": { - "type": ["string", "null"], - "max-length": 250 - }, - "amount_unused": { - "type": ["string", "null"] - }, - "masked_card_number": { - "type": ["string", "null"], - "max-length": 20 - }, - "reference_transaction_id": { + }, + "cn_reason_code": { "type": ["string", "null"], - "max-length": 40 - }, - "refunded_txn_id": { + "enum": [ + "write_off", + "subscription_change", + "subscription_cancellation", + "subscription_pause", + "chargeback", + "product_unsatisfactory", + "service_unsatisfactory", + "order_change", + "order_cancellation", + "waiver", + "other", + "fraudulent" + ] + } + } + } + }, + "cn_create_reason_code": { + "type": ["string", "null"], + "max-length": 100 + }, + "cn_date": { + "type": ["integer", "null"] + }, + "cn_total": { + "type": ["integer", "null"] + }, + "cn_status": { + "type": ["string", "null"], + "enum": ["adjusted", "refunded", "refund_due", "voided"] + }, + "cn_reference_invoice_id": { + "type": ["string", "null"], + "max-length": 50 + }, + "linked_refunds": { + "type": ["array", "null"], + "items": { + "type": ["object", "null"], + "properties": { + "txn_id": { "type": ["string", "null"], "max-length": 40 - }, - "reference_authorization_id": { + }, + "txn_status": { "type": ["string", "null"], - "max-length": 40 - }, - "amount_capturable": { - "type": ["integer", "null"] - }, - "reversal_transaction_id": { + "enum": [ + "in_progress", + "success", + "voided", + "failure", + "timeout", + "needs_attention" + ] + } + } + } + }, + "txn_date": { + "type": ["integer", "null"] + }, + "txn_amount": { + "type": ["integer", "null"] + }, + "linked_payments": { + "type": ["array", "null"], + "items": { + "type": ["object", "null"], + "properties": { + "id": { "type": ["string", "null"], "max-length": 40 - }, - "deleted": { - "type": ["boolean", "null"] - }, - "iin": { - "type": ["string", "null"], - "max-length": 6 - }, - "last4": { - "type": ["string", "null"], - "max-length": 4 - }, - "merchant_reference_id": { - "type": ["string", "null"], - "max-length": 500 - }, - "linked_invoices": { - "type": ["array", "null"], - "items": { - "type": ["object", "null"], - "properties": { - "invoice_id": { - "type": ["string", "null"], - "max-length": 50 - }, - "applied_amount": { - "type": ["integer", "null"] - }, - "applied_at": { - "type": ["integer", "null"] - }, - "invoice_date": { - "type": ["integer", "null"] - }, - "invoice_total": { - "type": ["integer", "null"] - }, - "invoice_status": { - "type": ["string", "null"], - "enum": [ - "paid", - "posted", - "payment_due", - "not_paid", - "voided", - "pending" - ] - } - } - } - }, - "linked_credit_notes": { - "type": ["array", "null"], - "items": { - "type": ["object", "null"], - "properties": { - "cn_id": { - "type": ["string", "null"], - "max-length": 50 - }, - "applied_amount": { - "type": ["integer", "null"] - }, - "applied_at": { - "type": ["integer", "null"] - }, - "cn_reason_code": { - "type": ["string", "null"], - "enum": [ - "write_off", - "subscription_change", - "subscription_cancellation", - "subscription_pause", - "chargeback", - "product_unsatisfactory", - "service_unsatisfactory", - "order_change", - "order_cancellation", - "waiver", - "other", - "fraudulent" - ] - } - } - } - }, - "cn_create_reason_code": { - "type": ["string", "null"], - "max-length": 100 - }, - "cn_date": { - "type": ["integer", "null"] - }, - "cn_total": { - "type": ["integer", "null"] - }, - "cn_status": { + }, + "status": { "type": ["string", "null"], "enum": [ - "adjusted", - "refunded", - "refund_due", - "voided" + "in_progress", + "success", + "voided", + "failure", + "timeout", + "needs_attention" ] - }, - "cn_reference_invoice_id": { - "type": ["string", "null"], - "max-length": 50 - }, - "linked_refunds": { - "type": ["array", "null"], - "items": { - "type": ["object", "null"], - "properties": { - "txn_id": { - "type": ["string", "null"], - "max-length": 40 - }, - "txn_status": { - "type": ["string", "null"], - "enum": [ - "in_progress", - "success", - "voided", - "failure", - "timeout", - "needs_attention" - ] - } - } - } - }, - "txn_date": { - "type": ["integer", "null"] - }, - "txn_amount": { - "type": ["integer", "null"] - }, - "linked_payments": { - "type": ["array", "null"], - "items": { - "type": ["object", "null"], - "properties": { - "id": { - "type": ["string", "null"], - "max-length": 40 - }, - "status": { - "type": ["string", "null"], - "enum": [ - "in_progress", - "success", - "voided", - "failure", - "timeout", - "needs_attention" - ] - } - } - } - }, - "amount": { - "type": ["integer", "null"] - }, - "date": { - "type": ["integer", "null"] + } } + } + }, + "amount": { + "type": ["integer", "null"] + }, + "date": { + "type": ["integer", "null"] } + } }