mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* doc(conn-92): fix doc link * doc(CONN-92): clarify the new connector creation instructions * feat(CONN-92): qonto plugin, account retrieval * feat(CONN-92): implement pagination and fix timezone * feat(CONN-92): add metadata * feat(CONN-92): fetchBalance implemented * feat(CONN-92): remove unsupported capabilities * feat(CONN-92): bank account type differ from different endpoint * feat(CONN-92): added external account + beneficiaries endpoint * feat(CONN-92): invalid beneficiary's accounts actually happen all the time * feat(CONN-92): allow multiple currencies for external accounts * feat(CONN-92): temp commit to debug payment save * feat(CONN-92): remove loggers * feat(CONN-92): better job at omitempty * feat(CONN-92): fix payment destination account to match external account * feat(CONN-92): added test for no from payload * feat(CONN-92): test on raw where relevant * feat(CONN-92): added payment_test * feat(CONN-92): use jsonNumber for incoming floats * feat(CONN_92): remove page number from request, instead use last_updated + pagesize * feat(CONN-92): fetch all transactions by statuses, in order (not only completed ones) * feat(CONN-92): always add the parentReference * feat(CONN-92): extract couple of method to improve readability * feat(CONN-92): use constants for transaction status * feat(CONN-92): added comment on transaction status * feat(CONN-92): add transfer endpoint * feat(CONN-92): unify account metadata syntax between internal & external accounts * feat(CONN-92): make plugin inherit from basePlugin * feat(CONN-92): add transfer capability * feat(CONN-92): fix internal transfert -- doc is lying on the response format * feat(CONN-92): avoid sending update_at_from == zero time (as Qonto refuses the request) * feat(CONN-92): coderabbit suggestions: * fix error formatting * more leniency in transfer response status check (allwing completed) * more validaiton when creating a transfer * feat(CONN-92): more coderabbit suggestions, improve error reporting * feat(CONN-92): more coderabbit suggestions, more errors on invalid state * feat(CONN-92): more coderabbit reviews, more coverage and bits of refacto * feat(CONN-92): bit more coverage * feat(CONN-92): bit more coverage * feat(CONN-92): added more coverage for config & errors; also improved Qonto's error reporting * feat(CONN-92): precommit run * feat(CONN-92): remove needMore functionality as its mostly irrelevant here * feat(CONN-92): codeRabbit is right, Qonto has a max page size -- my bad * feat(CONN-92): correct Account pagination * feat(CONN-92): account pagination with equal lastUpdatedAt * feat(CONN-92): review pagination for beneficiaries and payments * feat(CONN-92): update speakeasy lock * feat(CONN-92): added a bit of comments on the surprising bits * feat(CONN-92): codeRabbit comment * feat(CONN-92): transfer don't always return currency -- we can default to EUR as its the only one supported * feat(CONN-92): return error when account does not have currency set * feat(CONN-92): remove initialization of lastUpdatedAt * feat(CONN-92): remove all pagination from accounts, as we fetch all anyway * feat(CONN-92): cleaned somewhat the http connection logic * feat(CONN-92): add uuid in transfer as reference to pick it up for transaction matching later on * feat(CONN-92): detect transactions created via transfer and set parentId appropriately * feat(CONN-92): truncate too long reference * feat(CONN-92): remove create internal transfer endpoint
352 lines
11 KiB
YAML
352 lines
11 KiB
YAML
components:
|
|
schemas:
|
|
V3ConnectorConfig:
|
|
discriminator:
|
|
propertyName: provider
|
|
mapping:
|
|
Adyen: '#/components/schemas/V3AdyenConfig'
|
|
Atlar: '#/components/schemas/V3AtlarConfig'
|
|
Bankingcircle: '#/components/schemas/V3BankingcircleConfig'
|
|
Column: '#/components/schemas/V3ColumnConfig'
|
|
Currencycloud: '#/components/schemas/V3CurrencycloudConfig'
|
|
Dummypay: '#/components/schemas/V3DummypayConfig'
|
|
Generic: '#/components/schemas/V3GenericConfig'
|
|
Mangopay: '#/components/schemas/V3MangopayConfig'
|
|
Modulr: '#/components/schemas/V3ModulrConfig'
|
|
Moneycorp: '#/components/schemas/V3MoneycorpConfig'
|
|
Qonto: '#/components/schemas/V3QontoConfig'
|
|
Stripe: '#/components/schemas/V3StripeConfig'
|
|
Wise: '#/components/schemas/V3WiseConfig'
|
|
oneOf:
|
|
- $ref: '#/components/schemas/V3AdyenConfig'
|
|
- $ref: '#/components/schemas/V3AtlarConfig'
|
|
- $ref: '#/components/schemas/V3BankingcircleConfig'
|
|
- $ref: '#/components/schemas/V3ColumnConfig'
|
|
- $ref: '#/components/schemas/V3CurrencycloudConfig'
|
|
- $ref: '#/components/schemas/V3DummypayConfig'
|
|
- $ref: '#/components/schemas/V3GenericConfig'
|
|
- $ref: '#/components/schemas/V3MangopayConfig'
|
|
- $ref: '#/components/schemas/V3ModulrConfig'
|
|
- $ref: '#/components/schemas/V3MoneycorpConfig'
|
|
- $ref: '#/components/schemas/V3QontoConfig'
|
|
- $ref: '#/components/schemas/V3StripeConfig'
|
|
- $ref: '#/components/schemas/V3WiseConfig'
|
|
V3AdyenConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- apiKey
|
|
- companyID
|
|
properties:
|
|
apiKey:
|
|
type: string
|
|
companyID:
|
|
type: string
|
|
liveEndpointPrefix:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Adyen
|
|
webhookPassword:
|
|
type: string
|
|
webhookUsername:
|
|
type: string
|
|
V3AtlarConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- baseUrl
|
|
- accessKey
|
|
- secret
|
|
properties:
|
|
accessKey:
|
|
type: string
|
|
baseUrl:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Atlar
|
|
secret:
|
|
type: string
|
|
V3BankingcircleConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- username
|
|
- password
|
|
- endpoint
|
|
- authorizationEndpoint
|
|
- userCertificate
|
|
- userCertificateKey
|
|
properties:
|
|
authorizationEndpoint:
|
|
type: string
|
|
endpoint:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
password:
|
|
type: string
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Bankingcircle
|
|
userCertificate:
|
|
type: string
|
|
userCertificateKey:
|
|
type: string
|
|
username:
|
|
type: string
|
|
V3ColumnConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- apiKey
|
|
- endpoint
|
|
properties:
|
|
apiKey:
|
|
type: string
|
|
endpoint:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Column
|
|
V3CurrencycloudConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- loginID
|
|
- apiKey
|
|
- endpoint
|
|
properties:
|
|
apiKey:
|
|
type: string
|
|
endpoint:
|
|
type: string
|
|
loginID:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Currencycloud
|
|
V3DummypayConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- directory
|
|
properties:
|
|
directory:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Dummypay
|
|
V3GenericConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- apiKey
|
|
- endpoint
|
|
properties:
|
|
apiKey:
|
|
type: string
|
|
endpoint:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Generic
|
|
V3MangopayConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- clientID
|
|
- apiKey
|
|
- endpoint
|
|
properties:
|
|
apiKey:
|
|
type: string
|
|
clientID:
|
|
type: string
|
|
endpoint:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Mangopay
|
|
V3ModulrConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- apiKey
|
|
- apiSecret
|
|
- endpoint
|
|
properties:
|
|
apiKey:
|
|
type: string
|
|
apiSecret:
|
|
type: string
|
|
endpoint:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Modulr
|
|
V3MoneycorpConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- clientID
|
|
- apiKey
|
|
- endpoint
|
|
properties:
|
|
apiKey:
|
|
type: string
|
|
clientID:
|
|
type: string
|
|
endpoint:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Moneycorp
|
|
V3QontoConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- clientID
|
|
- apiKey
|
|
- endpoint
|
|
properties:
|
|
apiKey:
|
|
type: string
|
|
clientID:
|
|
type: string
|
|
endpoint:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Qonto
|
|
stagingToken:
|
|
type: string
|
|
V3StripeConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- apiKey
|
|
properties:
|
|
apiKey:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Stripe
|
|
V3WiseConfig:
|
|
type: object
|
|
required:
|
|
- name
|
|
- apiKey
|
|
- webhookPublicKey
|
|
properties:
|
|
apiKey:
|
|
type: string
|
|
name:
|
|
type: string
|
|
pageSize:
|
|
type: integer
|
|
default: "25"
|
|
pollingPeriod:
|
|
type: string
|
|
default: 2m
|
|
provider:
|
|
type: string
|
|
default: Wise
|
|
webhookPublicKey:
|
|
type: string
|