Versions in this module Expand all Collapse all v0 v0.1.0 Nov 26, 2026 Changes in this version + const APIVersion + const Version + var ErrMissingAPIKey = errors.New(...) + type APIError struct + Body []byte + Code string + Header http.Header + Message string + RawContext json.RawMessage + RequestID string + RetryAfter *time.Duration + Status int + func (e *APIError) Error() string + type APIKey struct + Actor Author + CreatedAt string + CreatedBy *Author + DisplayToken string + EffectiveRights []string + ExpiresAt *string + ID string + Kind string + LastUsedAt *string + Name string + Object string + OrganizationIDs []string + ReplacedByID *string + RevokedAt *string + RevokedReason *string + Rights []string + RoleID *string + TagScope any + Token *string + func (m APIKey) ETag() string + func (m APIKey) LastResponse() *Response + type APIKeyCreateParams struct + ExpiresIn Opt[string] + Name string + Rights Opt[[]string] + RoleID Opt[string] + TagScope Opt[any] + func (p APIKeyCreateParams) MarshalJSON() ([]byte, error) + type APIKeyUpdateParams struct + Name Opt[string] + Rights Opt[[]string] + RoleID Opt[string] + TagScope Opt[any] + func (p APIKeyUpdateParams) MarshalJSON() ([]byte, error) + type APIKeysService struct + func (s *APIKeysService) Create(ctx context.Context, params *APIKeyCreateParams, opts ...RequestOption) (*APIKey, error) + func (s *APIKeysService) Get(ctx context.Context, apiKeyID string, opts ...RequestOption) (*APIKey, error) + func (s *APIKeysService) List(ctx context.Context, opts ...RequestOption) *Paginator[APIKey] + func (s *APIKeysService) Revoke(ctx context.Context, apiKeyID string, opts ...RequestOption) error + func (s *APIKeysService) Rotate(ctx context.Context, apiKeyID string, opts ...RequestOption) (*APIKey, error) + func (s *APIKeysService) Update(ctx context.Context, apiKeyID string, params *APIKeyUpdateParams, ...) (*APIKey, error) + type AddressInput struct + City Opt[string] + DeliveryInstructions Opt[string] + Label Opt[string] + Line1 string + OpeningHours Opt[[]OpeningHoursDay] + PostalCode Opt[string] + RecipientLine Opt[string] + Siret Opt[string] + func (p AddressInput) MarshalJSON() ([]byte, error) + type AuthAPIKeyLimitReachedContext struct + Limit int64 + type AuthAPIKeyLimitReachedError struct + Context AuthAPIKeyLimitReachedContext + func (e *AuthAPIKeyLimitReachedError) Unwrap() error + type AuthAPIKeyOrganizationNotAllowedError struct + func (e *AuthAPIKeyOrganizationNotAllowedError) Unwrap() error + type AuthCredentialExpiredError struct + func (e *AuthCredentialExpiredError) Unwrap() error + type AuthCredentialInvalidError struct + func (e *AuthCredentialInvalidError) Unwrap() error + type AuthCredentialMissingError struct + func (e *AuthCredentialMissingError) Unwrap() error + type AuthCredentialRevokedError struct + func (e *AuthCredentialRevokedError) Unwrap() error + type AuthEmailUnconfirmedError struct + func (e *AuthEmailUnconfirmedError) Unwrap() error + type AuthRightMissingContext struct + Right string + type AuthRightMissingError struct + Context AuthRightMissingContext + func (e *AuthRightMissingError) Unwrap() error + type AuthSessionRefusedError struct + func (e *AuthSessionRefusedError) Unwrap() error + type AuthSessionRequiredError struct + func (e *AuthSessionRequiredError) Unwrap() error + type AuthStepUpRequiredContext struct + Action string + type AuthStepUpRequiredError struct + Context AuthStepUpRequiredContext + func (e *AuthStepUpRequiredError) Unwrap() error + type AuthenticationError struct + func (e *AuthenticationError) Unwrap() error + type Author struct + APIKeyID *string + ID string + Name string + Type string + type BadGatewayError struct + func (e *BadGatewayError) Unwrap() error + type BadRequestError struct + func (e *BadRequestError) Unwrap() error + type Barcode struct + Format BarcodeFormat + ID string + IsPrimary bool + Value string + func (m Barcode) ETag() string + func (m Barcode) LastResponse() *Response + type BarcodeFormat string + const BarcodeFormatCode128 + const BarcodeFormatEan13 + const BarcodeFormatEan8 + const BarcodeFormatQrCode + type BatchPaymentAllocation struct + Amount Money + InvoiceID string + func (p BatchPaymentAllocation) MarshalJSON() ([]byte, error) + type BillingInvoiceAlreadyCreditedContext struct + CreditNoteID string + type BillingInvoiceAlreadyCreditedError struct + Context BillingInvoiceAlreadyCreditedContext + func (e *BillingInvoiceAlreadyCreditedError) Unwrap() error + type BillingInvoiceAlreadyPaidError struct + func (e *BillingInvoiceAlreadyPaidError) Unwrap() error + type BillingInvoiceAlreadyReinvoicedContext struct + InvoiceID string + type BillingInvoiceAlreadyReinvoicedError struct + Context BillingInvoiceAlreadyReinvoicedContext + func (e *BillingInvoiceAlreadyReinvoicedError) Unwrap() error + type BillingInvoiceCorrectionFixedContext struct + Reason string + type BillingInvoiceCorrectionFixedError struct + Context BillingInvoiceCorrectionFixedContext + func (e *BillingInvoiceCorrectionFixedError) Unwrap() error + type BillingInvoiceCreditNoteLinkedError struct + func (e *BillingInvoiceCreditNoteLinkedError) Unwrap() error + type BillingInvoiceDepositDeductedError struct + func (e *BillingInvoiceDepositDeductedError) Unwrap() error + type BillingInvoiceEinvoiceRequiredError struct + func (e *BillingInvoiceEinvoiceRequiredError) Unwrap() error + type BillingInvoiceFacturxUnavailableError struct + func (e *BillingInvoiceFacturxUnavailableError) Unwrap() error + type BillingInvoiceForeignProductContext struct + ProductIDs []string + type BillingInvoiceForeignProductError struct + Context BillingInvoiceForeignProductContext + func (e *BillingInvoiceForeignProductError) Unwrap() error + type BillingInvoiceGeneratedCreditNoteError struct + func (e *BillingInvoiceGeneratedCreditNoteError) Unwrap() error + type BillingInvoiceNotACreditNoteError struct + func (e *BillingInvoiceNotACreditNoteError) Unwrap() error + type BillingInvoiceNotADraftContext struct + Status string + type BillingInvoiceNotADraftError struct + Context BillingInvoiceNotADraftContext + func (e *BillingInvoiceNotADraftError) Unwrap() error + type BillingInvoiceNotCorrectableContext struct + InvoiceID string + type BillingInvoiceNotCorrectableError struct + Context BillingInvoiceNotCorrectableContext + func (e *BillingInvoiceNotCorrectableError) Unwrap() error + type BillingInvoiceNotCreditableContext struct + Status string + type BillingInvoiceNotCreditableError struct + Context BillingInvoiceNotCreditableContext + func (e *BillingInvoiceNotCreditableError) Unwrap() error + type BillingInvoiceNotDuplicableContext struct + Reason string + type BillingInvoiceNotDuplicableError struct + Context BillingInvoiceNotDuplicableContext + func (e *BillingInvoiceNotDuplicableError) Unwrap() error + type BillingInvoiceNotEditableContext struct + Reason string + type BillingInvoiceNotEditableError struct + Context BillingInvoiceNotEditableContext + func (e *BillingInvoiceNotEditableError) Unwrap() error + type BillingInvoiceNotPayableContext struct + Status string + type BillingInvoiceNotPayableError struct + Context BillingInvoiceNotPayableContext + func (e *BillingInvoiceNotPayableError) Unwrap() error + type BillingInvoiceNotReinvoiceableContext struct + Status string + type BillingInvoiceNotReinvoiceableError struct + Context BillingInvoiceNotReinvoiceableContext + func (e *BillingInvoiceNotReinvoiceableError) Unwrap() error + type BillingInvoiceOutOfScopeReferenceContext struct + IDs []string + Kind string + type BillingInvoiceOutOfScopeReferenceError struct + Context BillingInvoiceOutOfScopeReferenceContext + func (e *BillingInvoiceOutOfScopeReferenceError) Unwrap() error + type BillingInvoicePartialCreditNoteError struct + func (e *BillingInvoicePartialCreditNoteError) Unwrap() error + type BillingInvoiceRecipientUnsubscribedContext struct + EmailAddressID string + type BillingInvoiceRecipientUnsubscribedError struct + Context BillingInvoiceRecipientUnsubscribedContext + func (e *BillingInvoiceRecipientUnsubscribedError) Unwrap() error + type BillingInvoiceStripeImportedError struct + func (e *BillingInvoiceStripeImportedError) Unwrap() error + type BillingInvoiceTransitionRefusedContext struct + Status string + To string + type BillingInvoiceTransitionRefusedError struct + Context BillingInvoiceTransitionRefusedContext + func (e *BillingInvoiceTransitionRefusedError) Unwrap() error + type BillingPaymentNotRemovableContext struct + Status string + type BillingPaymentNotRemovableError struct + Context BillingPaymentNotRemovableContext + func (e *BillingPaymentNotRemovableError) Unwrap() error + type BillingPaymentStripeCollectedError struct + func (e *BillingPaymentStripeCollectedError) Unwrap() error + type Client struct + Companies *SearchCompaniesService + Invoices *SearchInvoicesService + Me *MeService + Orders *SearchOrdersService + Products *SearchProductsService + Quotations *SearchQuotationsService + Rights *RightsService + func NewClient(opts ...ClientOption) *Client + func (c *Client) APIVersion() string + func (c *Client) Organization(organizationID string) *OrganizationScope + type ClientOption func(*clientConfig) + func WithAPIKey(key string) ClientOption + func WithAPIVersion(date string) ClientOption + func WithAcceptLanguage(language string) ClientOption + func WithBaseURL(url string) ClientOption + func WithDeprecationHandler(handler func(DeprecationNotice)) ClientOption + func WithHTTPClient(client *http.Client) ClientOption + func WithHeader(name, value string) ClientOption + func WithMaxRetries(n int) ClientOption + func WithMyleClient(value string) ClientOption + func WithTimeout(d time.Duration) ClientOption + type CompaniesService struct + EmailAddresses *CompanyEmailAddressesService + PostalAddresses *CompanyPostalAddressesService + SepaMandate *CompanySepaMandateService + func (s *CompaniesService) Create(ctx context.Context, params *CompanyCreateParams, opts ...RequestOption) (*Company, error) + func (s *CompaniesService) Delete(ctx context.Context, companyID string, opts ...RequestOption) error + func (s *CompaniesService) Get(ctx context.Context, companyID string, opts ...RequestOption) (*Company, error) + func (s *CompaniesService) GetEinvoicingRouting(ctx context.Context, companyID string, opts ...RequestOption) (*CompanyEinvoicingRouting, error) + func (s *CompaniesService) GetNeighbors(ctx context.Context, companyID string, params *CompanyGetNeighborsParams, ...) (*CompanyNeighbors, error) + func (s *CompaniesService) GetSepaMandate(ctx context.Context, companyID string, opts ...RequestOption) (*SepaMandate, error) + func (s *CompaniesService) List(ctx context.Context, params *CompanyListParams, opts ...RequestOption) *Paginator[Company] + func (s *CompaniesService) ListTags(ctx context.Context, opts ...RequestOption) *Paginator[string] + func (s *CompaniesService) ReplaceEinvoicingRouting(ctx context.Context, companyID string, ...) (*CompanyEinvoicingRouting, error) + func (s *CompaniesService) Update(ctx context.Context, companyID string, params *CompanyUpdateParams, ...) (*Company, error) + type Company struct + AccountingNumber *string + AutoDebit bool + BillingAddress *PostalAddress + CreatedAt string + DeliveryAddresses []PostalAddress + Description *string + DirectorySyncedAt *string + DiscountPercentage *string + DiscountReason *string + EmailAddresses []CompanyEmailAddress + HasShopAccess *bool + HeadquartersAddress *PostalAddress + ID string + InvoicingPeriod CompanyInvoicingPeriod + IsEInvoiceReachable *bool + IsPublicBody *bool + IsSupplier bool + LastDeliveryNoteDate *string + LegalForm *LegalForm + Name string + Number string + Object string + OpeningHours []OpeningHoursDay + OrganizationID string + Phone *string + Places []string + ShowPricesOnDeliveryNotes bool + Siren *string + Tags []string + Type CompanyType + UpdatedAt string + VatNumber *string + func (m Company) ETag() string + func (m Company) LastResponse() *Response + type CompanyCreateParams struct + AccountingNumber Opt[string] + BillingAddress Opt[AddressInput] + DeliveryAddresses Opt[[]AddressInput] + DiscountPercentage Opt[string] + DiscountReason Opt[string] + EmailAddresses Opt[[]EmailAddressInput] + HeadquartersAddress Opt[AddressInput] + InvoicingPeriod Opt[string] + Name string + Number string + OpeningHours Opt[[]OpeningHoursDay] + Phone Opt[string] + ShowPricesOnDeliveryNotes Opt[bool] + Siren Opt[string] + Tags Opt[[]string] + Type Opt[string] + VatNumber Opt[string] + func (p CompanyCreateParams) MarshalJSON() ([]byte, error) + type CompanyEinvoicingRouting struct + Candidates []RoutingCandidate + CompanyID string + EstablishmentWarning *EstablishmentWarning + IsDirectoryUnavailable bool + IsRouted bool + Object string + Reasons []string + Selected *string + Source *string + func (m CompanyEinvoicingRouting) ETag() string + func (m CompanyEinvoicingRouting) LastResponse() *Response + type CompanyEmailAddress struct + Address string + ID string + IsUnsubscribed bool + Label *string + Object string + Purposes []string + UnsubscribedAt *string + func (m CompanyEmailAddress) ETag() string + func (m CompanyEmailAddress) LastResponse() *Response + type CompanyEmailAddressCreateParams struct + Address string + Label Opt[string] + Purposes Opt[[]string] + func (p CompanyEmailAddressCreateParams) MarshalJSON() ([]byte, error) + type CompanyEmailAddressUpdateParams struct + Label Opt[string] + Purposes Opt[[]string] + func (p CompanyEmailAddressUpdateParams) MarshalJSON() ([]byte, error) + type CompanyEmailAddressesService struct + func (s *CompanyEmailAddressesService) Create(ctx context.Context, companyID string, params *CompanyEmailAddressCreateParams, ...) (*CompanyEmailAddress, error) + func (s *CompanyEmailAddressesService) Delete(ctx context.Context, companyID string, companyEmailAddressID string, ...) error + func (s *CompanyEmailAddressesService) Resubscribe(ctx context.Context, companyID string, companyEmailAddressID string, ...) (*CompanyEmailAddress, error) + func (s *CompanyEmailAddressesService) Update(ctx context.Context, companyID string, companyEmailAddressID string, ...) (*CompanyEmailAddress, error) + type CompanyGetNeighborsParams struct + Address Opt[string] + Contact Opt[string] + CreatedAtFrom Opt[string] + CreatedAtTo Opt[string] + ExcludeTag []string + HasShopAccess Opt[bool] + HasUnpaidInvoices Opt[bool] + InvoicingPeriod Opt[CompanyInvoicingPeriod] + NameOrIdentifier Opt[string] + Q Opt[string] + Sort Opt[CompanyListSort] + Tag []string + TagMode Opt[CompanyListTagMode] + UpdatedAfter Opt[string] + type CompanyInvoicingPeriod string + const CompanyInvoicingPeriodDaily + const CompanyInvoicingPeriodDisabled + const CompanyInvoicingPeriodMonthly + const CompanyInvoicingPeriodTenDays + type CompanyListParams struct + Address Opt[string] + Contact Opt[string] + CreatedAtFrom Opt[string] + CreatedAtTo Opt[string] + Cursor Opt[string] + ExcludeTag []string + HasShopAccess Opt[bool] + HasUnpaidInvoices Opt[bool] + IncludeTotal Opt[bool] + InvoicingPeriod Opt[CompanyInvoicingPeriod] + Limit Opt[int] + NameOrIdentifier Opt[string] + Q Opt[string] + Sort Opt[CompanyListSort] + Tag []string + TagMode Opt[CompanyListTagMode] + UpdatedAfter Opt[string] + type CompanyListSort string + const CompanyListSortCreatedAt + const CompanyListSortCreatedAtDesc + const CompanyListSortHeadquartersCity + const CompanyListSortHeadquartersCityDesc + const CompanyListSortName + const CompanyListSortNameDesc + const CompanyListSortNumber + const CompanyListSortNumberDesc + const CompanyListSortUpdatedAt + const CompanyListSortUpdatedAtDesc + type CompanyListTagMode string + const CompanyListTagModeAll + const CompanyListTagModeAny + type CompanyNeighbors struct + Next *string + Previous *string + func (m CompanyNeighbors) ETag() string + func (m CompanyNeighbors) LastResponse() *Response + type CompanyPostalAddressCreateParams struct + City Opt[string] + DeliveryInstructions Opt[string] + Label Opt[string] + Line1 string + OpeningHours Opt[[]OpeningHoursDay] + PostalCode Opt[string] + RecipientLine Opt[string] + Siret Opt[string] + func (p CompanyPostalAddressCreateParams) MarshalJSON() ([]byte, error) + type CompanyPostalAddressUpdateParams struct + City Opt[string] + DeliveryInstructions Opt[string] + Label Opt[string] + Line1 Opt[string] + OpeningHours Opt[[]OpeningHoursDay] + PostalCode Opt[string] + RecipientLine Opt[string] + Siret Opt[string] + func (p CompanyPostalAddressUpdateParams) MarshalJSON() ([]byte, error) + type CompanyPostalAddressesService struct + func (s *CompanyPostalAddressesService) Create(ctx context.Context, companyID string, ...) (*PostalAddress, error) + func (s *CompanyPostalAddressesService) Delete(ctx context.Context, companyID string, postalAddressID string, ...) error + func (s *CompanyPostalAddressesService) Get(ctx context.Context, companyID string, postalAddressID string, ...) (*PostalAddress, error) + func (s *CompanyPostalAddressesService) Update(ctx context.Context, companyID string, postalAddressID string, ...) (*PostalAddress, error) + type CompanyReplaceEinvoicingRoutingParams struct + Identifier Opt[string] + func (p CompanyReplaceEinvoicingRoutingParams) MarshalJSON() ([]byte, error) + type CompanySepaMandateCreateInvitationParams struct + Email Opt[string] + Message Opt[string] + SendEmail Opt[bool] + func (p CompanySepaMandateCreateInvitationParams) MarshalJSON() ([]byte, error) + type CompanySepaMandateService struct + func (s *CompanySepaMandateService) CreateInvitation(ctx context.Context, companyID string, ...) (*SepaMandateInvitation, error) + func (s *CompanySepaMandateService) Revoke(ctx context.Context, companyID string, opts ...RequestOption) (*SepaMandate, error) + type CompanyType string + const CompanyTypeBusinessFr + const CompanyTypeConsumer + const CompanyTypeForeign + type CompanyUpdateParams struct + AccountingNumber Opt[string] + AutoDebit Opt[bool] + DeliveryAddresses Opt[[]DeliveryAddressInput] + DiscountPercentage Opt[string] + DiscountReason Opt[string] + InvoicingPeriod Opt[string] + Name Opt[string] + Number Opt[string] + OpeningHours Opt[[]OpeningHoursDay] + Phone Opt[string] + Places Opt[[]string] + ShowPricesOnDeliveryNotes Opt[bool] + Siren Opt[string] + Tags Opt[[]string] + Type Opt[string] + VatNumber Opt[string] + func (p CompanyUpdateParams) MarshalJSON() ([]byte, error) + type ConflictError struct + func (e *ConflictError) Unwrap() error + type ConnectionError struct + Err error + Operation string + func (e *ConnectionError) Error() string + func (e *ConnectionError) Unwrap() error + type CoreAPIVersionUnsupportedContext struct + Minimum string + type CoreAPIVersionUnsupportedError struct + Context CoreAPIVersionUnsupportedContext + func (e *CoreAPIVersionUnsupportedError) Unwrap() error + type CoreBadGatewayContext struct + Service string + type CoreBadGatewayError struct + Context CoreBadGatewayContext + func (e *CoreBadGatewayError) Unwrap() error + type CoreBadRequestError struct + func (e *CoreBadRequestError) Unwrap() error + type CoreConflictContext struct + Kind string + Name string + type CoreConflictError struct + Context CoreConflictContext + func (e *CoreConflictError) Unwrap() error + type CoreIdempotencyKeyInUseError struct + func (e *CoreIdempotencyKeyInUseError) Unwrap() error + type CoreIdempotencyKeyReusedError struct + func (e *CoreIdempotencyKeyReusedError) Unwrap() error + type CoreInternalError struct + func (e *CoreInternalError) Unwrap() error + type CoreMethodNotAllowedError struct + func (e *CoreMethodNotAllowedError) Unwrap() error + type CoreModuleRequiredContext struct + Module string + type CoreModuleRequiredError struct + Context CoreModuleRequiredContext + func (e *CoreModuleRequiredError) Unwrap() error + type CoreNotAcceptableContext struct + Available []string + type CoreNotAcceptableError struct + Context CoreNotAcceptableContext + func (e *CoreNotAcceptableError) Unwrap() error + type CoreNotFoundContext struct + Kind string + Name string + type CoreNotFoundError struct + Context CoreNotFoundContext + func (e *CoreNotFoundError) Unwrap() error + type CorePayloadTooLargeContext struct + MaxBytes int64 + type CorePayloadTooLargeError struct + Context CorePayloadTooLargeContext + func (e *CorePayloadTooLargeError) Unwrap() error + type CorePlanLimitReachedContext struct + Current int64 + Limit string + Max int64 + type CorePlanLimitReachedError struct + Context CorePlanLimitReachedContext + func (e *CorePlanLimitReachedError) Unwrap() error + type CorePreconditionFailedError struct + func (e *CorePreconditionFailedError) Unwrap() error + type CoreRateLimitedContext struct + Policy string + type CoreRateLimitedError struct + Context CoreRateLimitedContext + func (e *CoreRateLimitedError) Unwrap() error + type CoreSubscriptionRequiredError struct + func (e *CoreSubscriptionRequiredError) Unwrap() error + type CoreUnavailableError struct + func (e *CoreUnavailableError) Unwrap() error + type CoreUnsupportedMediaTypeError struct + func (e *CoreUnsupportedMediaTypeError) Unwrap() error + type CoreValidationFailedContext struct + Fields []CoreValidationFailedContextField + type CoreValidationFailedContextField struct + Code string + Path string + type CoreValidationFailedError struct + Context CoreValidationFailedContext + func (e *CoreValidationFailedError) Unwrap() error + type CorrectableInvoice struct + ID string + IssueDate string + Number string + Object string + Status string + Total Money + type CrmCompanyAccountingNumberTakenContext struct + AccountingNumber string + type CrmCompanyAccountingNumberTakenError struct + Context CrmCompanyAccountingNumberTakenContext + func (e *CrmCompanyAccountingNumberTakenError) Unwrap() error + type CrmCompanyIdentifierRequiredError struct + func (e *CrmCompanyIdentifierRequiredError) Unwrap() error + type CrmCompanyInvalidIdentifierContext struct + Field string + Value string + type CrmCompanyInvalidIdentifierError struct + Context CrmCompanyInvalidIdentifierContext + func (e *CrmCompanyInvalidIdentifierError) Unwrap() error + type CrmCompanyInvalidSiretContext struct + Siret string + type CrmCompanyInvalidSiretError struct + Context CrmCompanyInvalidSiretContext + func (e *CrmCompanyInvalidSiretError) Unwrap() error + type CrmPostalAddressReferencedContext struct + PostalAddressID string + Reasons []string + type CrmPostalAddressReferencedError struct + Context CrmPostalAddressReferencedContext + func (e *CrmPostalAddressReferencedError) Unwrap() error + type DebitFee struct + Amount Money + Fee Money + MyleFee Money + StripeFee Money + type DeliveryAddressInput struct + City Opt[string] + ID Opt[string] + Label Opt[string] + Line1 string + PostalCode Opt[string] + RecipientLine Opt[string] + Siret Opt[string] + func (p DeliveryAddressInput) MarshalJSON() ([]byte, error) + type DeliveryNote struct + Address string + CompanyID string + CompanyName string + CreatedAt string + DeliveryDate string + Description *string + ID string + InvoiceIDs []string + Lines []DeliveryNoteLine + Number *string + Object string + OrderIDs []string + OrganizationID string + Status string + Tags []string + UpdatedAt string + func (m DeliveryNote) ETag() string + func (m DeliveryNote) LastResponse() *Response + type DeliveryNoteLine struct + BestBeforeDays *int + ConsumeBeforeDays *int + DiscountRate *string + Index int + LotNumber *string + Name string + Number *string + Origin *string + ProductID *string + Quantity string + StockID *string + UnitPrice Money + UseByDays *int + VatRate string + type DeliveryNotesService struct + func (s *DeliveryNotesService) Get(ctx context.Context, deliveryNoteID string, opts ...RequestOption) (*DeliveryNote, error) + type DeprecationNotice struct + APIVersion string + Deprecation string + Link string + Method string + OperationID string + Path string + Sunset string + type ETag string + func (e ETag) ETag() string + type Einvoice struct + Eligibility EinvoiceEligibility + Failure *EinvoiceFailure + History []EinvoiceEvent + InvoiceID string + LastStatusAt *string + Object string + Status *string + SubmittedAt *string + func (m Einvoice) ETag() string + func (m Einvoice) LastResponse() *Response + type EinvoiceEligibility struct + CustomerAddress *string + CustomerSiren *string + IsAutoRetryPending bool + IsCreditNoteReferenceMissing bool + IsCustomerReachable *bool + IsEligible bool + IsEmissionEnabled bool + IsMailAllowedAfterFailure bool + IsNetworkRequired bool + IsOrganizationConnected bool + IsOrganizationVerified bool + Reasons []string + type EinvoiceEvent struct + At string + Status string + type EinvoiceFailure struct + AreRetriesExhausted bool + Code string + IsRetryable bool + IsRetryableNow bool + Message string + type EinvoicesService struct + func (s *EinvoicesService) ListOutgoingFailures(ctx context.Context, opts ...RequestOption) *Paginator[OutgoingEinvoiceFailure] + type Einvoicing struct + Address *string + Connection *EinvoicingConnection + Emission EinvoicingEmission + Object string + OrganizationID string + func (m Einvoicing) ETag() string + func (m Einvoicing) LastResponse() *Response + type EinvoicingAddress struct + Candidates []RoutingCandidate + EstablishmentWarning *EstablishmentWarning + Object string + OrganizationID string + Selected *string + Source *string + func (m EinvoicingAddress) ETag() string + func (m EinvoicingAddress) LastResponse() *Response + type EinvoicingAuthorization struct + AuthorizeURL string + Object string + Warning *EinvoicingScopeWarning + func (m EinvoicingAuthorization) ETag() string + func (m EinvoicingAuthorization) LastResponse() *Response + type EinvoicingConnection struct + CompanyVerificationStatus *string + ConnectedAt *string + LastCheckedAt *string + Status string + UserIdentityVerificationStatus *string + type EinvoicingConnectionNotConnectedError struct + func (e *EinvoicingConnectionNotConnectedError) Unwrap() error + type EinvoicingEinvoiceCreditNoteReferenceMissingError struct + func (e *EinvoicingEinvoiceCreditNoteReferenceMissingError) Unwrap() error + type EinvoicingEinvoiceNotEligibleContext struct + Reasons []string + type EinvoicingEinvoiceNotEligibleError struct + Context EinvoicingEinvoiceNotEligibleContext + func (e *EinvoicingEinvoiceNotEligibleError) Unwrap() error + type EinvoicingEinvoiceNotRetryableContext struct + FailureCode string + type EinvoicingEinvoiceNotRetryableError struct + Context EinvoicingEinvoiceNotRetryableContext + func (e *EinvoicingEinvoiceNotRetryableError) Unwrap() error + type EinvoicingEmission struct + CanEmit bool + IsEnabled bool + IsOrganizationConnected bool + IsOrganizationVerified bool + type EinvoicingIncomingEinvoiceAlreadySettledError struct + func (e *EinvoicingIncomingEinvoiceAlreadySettledError) Unwrap() error + type EinvoicingIncomingEinvoiceNotAcceptedContext struct + Status string + type EinvoicingIncomingEinvoiceNotAcceptedError struct + Context EinvoicingIncomingEinvoiceNotAcceptedContext + func (e *EinvoicingIncomingEinvoiceNotAcceptedError) Unwrap() error + type EinvoicingIncomingEinvoiceNotOnPlatformError struct + func (e *EinvoicingIncomingEinvoiceNotOnPlatformError) Unwrap() error + type EinvoicingOrganizationNotSubjectError struct + func (e *EinvoicingOrganizationNotSubjectError) Unwrap() error + type EinvoicingOrganizationPaidPlanRequiredError struct + func (e *EinvoicingOrganizationPaidPlanRequiredError) Unwrap() error + type EinvoicingResourceReplaceAddressParams struct + Identifier Opt[string] + func (p EinvoicingResourceReplaceAddressParams) MarshalJSON() ([]byte, error) + type EinvoicingResourceService struct + func (s *EinvoicingResourceService) Connect(ctx context.Context, opts ...RequestOption) (*EinvoicingAuthorization, error) + func (s *EinvoicingResourceService) Disconnect(ctx context.Context, opts ...RequestOption) (*Einvoicing, error) + func (s *EinvoicingResourceService) Get(ctx context.Context, opts ...RequestOption) (*Einvoicing, error) + func (s *EinvoicingResourceService) GetAddress(ctx context.Context, opts ...RequestOption) (*EinvoicingAddress, error) + func (s *EinvoicingResourceService) ReplaceAddress(ctx context.Context, params *EinvoicingResourceReplaceAddressParams, ...) (*EinvoicingAddress, error) + func (s *EinvoicingResourceService) Sync(ctx context.Context, opts ...RequestOption) (*Einvoicing, error) + type EinvoicingRoutingAddressNotPublishedContext struct + Identifier string + type EinvoicingRoutingAddressNotPublishedError struct + Context EinvoicingRoutingAddressNotPublishedContext + func (e *EinvoicingRoutingAddressNotPublishedError) Unwrap() error + type EinvoicingScopeWarning struct + ApeCode *string + ApeLabel *string + LegalFormCode *string + LegalFormLabel *string + Reason string + Siren string + type EmailAddressInput struct + Address string + Label Opt[string] + Purposes Opt[[]string] + func (p EmailAddressInput) MarshalJSON() ([]byte, error) + type Error interface + type EstablishmentAlternative struct + City *string + Identifier string + Label *string + Name *string + ServiceCode *string + Siret *string + type EstablishmentWarning struct + Alternatives []EstablishmentAlternative + BaseIdentifier string + Count int + type FileDownload struct + ContentType string + Data []byte + Filename string + Response *Response + func (f *FileDownload) Save(path string) error + type GetInvoicePDFFormat string + const GetInvoicePDFFormatFacturx + const GetInvoicePDFFormatPDF + type GetInvoicePDFParams struct + Format Opt[GetInvoicePDFFormat] + type HostedLink struct + Object string + URL string + func (m HostedLink) ETag() string + func (m HostedLink) LastResponse() *Response + type IncomingEinvoice struct + AmountDue *Money + DueDate *string + HasXML bool + ID string + IssueDate *string + LastStatusAt *string + Number *string + Object string + PrepaidAmount *Money + ReceivedAt string + Sender IncomingEinvoiceSender + Status string + Subtotal *Money + Total *Money + type IncomingEinvoiceAcceptPartiallyParams struct + Reason Opt[string] + func (p IncomingEinvoiceAcceptPartiallyParams) MarshalJSON() ([]byte, error) + type IncomingEinvoiceDetail struct + AmountDue *Money + DueDate *string + HasPDF bool + HasXML bool + History []IncomingEinvoiceEvent + ID string + IssueDate *string + LastStatusAt *string + Lines []IncomingEinvoiceLine + Number *string + Object string + PrepaidAmount *Money + ReceivedAt string + Sender IncomingEinvoiceSender + Status string + Subtotal *Money + Total *Money + func (m IncomingEinvoiceDetail) ETag() string + func (m IncomingEinvoiceDetail) LastResponse() *Response + type IncomingEinvoiceDisputeParams struct + Reason Opt[string] + func (p IncomingEinvoiceDisputeParams) MarshalJSON() ([]byte, error) + type IncomingEinvoiceEvent struct + At string + Note *string + ReasonCode *string + Status string + UserID *string + type IncomingEinvoiceLine struct + Description *string + Index int + Name string + Quantity *string + Reference *string + Total *Money + Unit *string + UnitPrice *Money + VatRate *string + type IncomingEinvoiceListParams struct + Cursor Opt[string] + InvoiceDateFrom Opt[string] + InvoiceDateTo Opt[string] + Limit Opt[int] + Status []IncomingEinvoiceListStatus + type IncomingEinvoiceListStatus string + const IncomingEinvoiceListStatusApproved + const IncomingEinvoiceListStatusCompleted + const IncomingEinvoiceListStatusDisputed + const IncomingEinvoiceListStatusInHand + const IncomingEinvoiceListStatusIssued + const IncomingEinvoiceListStatusMadeAvailable + const IncomingEinvoiceListStatusPartiallyApproved + const IncomingEinvoiceListStatusPaymentReceived + const IncomingEinvoiceListStatusPaymentSent + const IncomingEinvoiceListStatusPendingSubmission + const IncomingEinvoiceListStatusReceived + const IncomingEinvoiceListStatusRefused + const IncomingEinvoiceListStatusRejected + const IncomingEinvoiceListStatusSubmissionFailed + const IncomingEinvoiceListStatusSubmitted + const IncomingEinvoiceListStatusSuspended + type IncomingEinvoiceMarkPaidParams struct + Method Opt[string] + PaidAt Opt[string] + func (p IncomingEinvoiceMarkPaidParams) MarshalJSON() ([]byte, error) + type IncomingEinvoiceRefuseParams struct + Note Opt[string] + ReasonCode Opt[string] + func (p IncomingEinvoiceRefuseParams) MarshalJSON() ([]byte, error) + type IncomingEinvoiceSender struct + Name *string + Siren *string + Siret *string + VatNumber *string + type IncomingEinvoicesService struct + func (s *IncomingEinvoicesService) Accept(ctx context.Context, incomingEinvoiceID string, opts ...RequestOption) (*IncomingEinvoiceDetail, error) + func (s *IncomingEinvoicesService) AcceptPartially(ctx context.Context, incomingEinvoiceID string, ...) (*IncomingEinvoiceDetail, error) + func (s *IncomingEinvoicesService) Dispute(ctx context.Context, incomingEinvoiceID string, ...) (*IncomingEinvoiceDetail, error) + func (s *IncomingEinvoicesService) DownloadPDF(ctx context.Context, incomingEinvoiceID string, opts ...RequestOption) (*FileDownload, error) + func (s *IncomingEinvoicesService) DownloadXML(ctx context.Context, incomingEinvoiceID string, opts ...RequestOption) (*FileDownload, error) + func (s *IncomingEinvoicesService) Get(ctx context.Context, incomingEinvoiceID string, opts ...RequestOption) (*IncomingEinvoiceDetail, error) + func (s *IncomingEinvoicesService) List(ctx context.Context, params *IncomingEinvoiceListParams, opts ...RequestOption) *Paginator[IncomingEinvoice] + func (s *IncomingEinvoicesService) MarkPaid(ctx context.Context, incomingEinvoiceID string, ...) (*IncomingEinvoiceDetail, error) + func (s *IncomingEinvoicesService) Refuse(ctx context.Context, incomingEinvoiceID string, ...) (*IncomingEinvoiceDetail, error) + type InitialStock struct + Label Opt[string] + Lot Opt[InitialStockLot] + Quantity Opt[string] + func (p InitialStock) MarshalJSON() ([]byte, error) + type InitialStockLot struct + BestBeforeDate Opt[string] + Number string + func (p InitialStockLot) MarshalJSON() ([]byte, error) + type InternalServerError struct + func (e *InternalServerError) Unwrap() error + type Invoice struct + AmountDue Money + Company InvoiceCompanySnapshot + CompanyID string + CorrectsInvoiceID *string + CreatedAt string + CreditNoteIDs []string + DeliveryNoteIDs []string + Description *string + Discount InvoiceDiscount + DueDate *string + ID string + IssueDate *string + Lines []InvoiceLine + Number *string + Object string + OrganizationID string + Status InvoiceStatus + Subtotal Money + Tags []string + Total Money + UpdatedAt string + Vat Money + func (m Invoice) ETag() string + func (m Invoice) LastResponse() *Response + type InvoiceBatchCreateCreditNotesParams struct + IDs []string + func (p InvoiceBatchCreateCreditNotesParams) MarshalJSON() ([]byte, error) + type InvoiceBatchCreatePaymentsParams struct + Allocations []BatchPaymentAllocation + Method Opt[string] + MethodLabel Opt[string] + PaidAt Opt[string] + Reference Opt[string] + func (p InvoiceBatchCreatePaymentsParams) MarshalJSON() ([]byte, error) + type InvoiceBatchDuplicateParams struct + IDs []string + func (p InvoiceBatchDuplicateParams) MarshalJSON() ([]byte, error) + type InvoiceBatchShareParams struct + Force Opt[bool] + IDs []string + func (p InvoiceBatchShareParams) MarshalJSON() ([]byte, error) + type InvoiceBatchValidateParams struct + IDs []string + func (p InvoiceBatchValidateParams) MarshalJSON() ([]byte, error) + type InvoiceCompanySnapshot struct + Address string + BillingAddress *string + HeadquartersAddress *string + Name string + Siren *string + VatNumber *string + type InvoiceCorrectableInvoiceListParams struct + Q Opt[string] + type InvoiceCorrectableInvoicesService struct + func (s *InvoiceCorrectableInvoicesService) List(ctx context.Context, invoiceID string, ...) *Paginator[CorrectableInvoice] + type InvoiceCreateParams struct + CompanyID string + Description Opt[string] + Lines []InvoiceLineInput + Tags Opt[[]string] + func (p InvoiceCreateParams) MarshalJSON() ([]byte, error) + type InvoiceCreditNotesService struct + func (s *InvoiceCreditNotesService) Create(ctx context.Context, invoiceID string, opts ...RequestOption) (*Invoice, error) + type InvoiceDiscount struct + Amount *Money + Percentage *string + Reason *string + type InvoiceEditParams struct + CompanyID Opt[string] + Description Opt[string] + Lines Opt[[]InvoiceLineInput] + func (p InvoiceEditParams) MarshalJSON() ([]byte, error) + type InvoiceEditability struct + Editable bool + Reason *string + func (m InvoiceEditability) ETag() string + func (m InvoiceEditability) LastResponse() *Response + type InvoiceEligibility struct + CreditNote int + Duplicate int + PublicSectorDrafts *PublicSectorCustomers + Share int + Total int + Validate int + func (m InvoiceEligibility) ETag() string + func (m InvoiceEligibility) LastResponse() *Response + type InvoiceGetEligibilityParams struct + CompanyID []string + DueDateFrom Opt[string] + DueDateTo Opt[string] + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + Status []InvoiceStatus + Tag []string + UpdatedAfter Opt[string] + type InvoiceGetNeighborsParams struct + CompanyID []string + DueDateFrom Opt[string] + DueDateTo Opt[string] + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + Sort Opt[InvoiceListSort] + Status []InvoiceStatus + Tag []string + UpdatedAfter Opt[string] + type InvoiceLine struct + AccountingNumber *string + Description *string + DiscountRate *string + Index int + Name string + Number *string + ProductID *string + Quantity string + Subtotal Money + Total Money + Unit *string + UnitPrice Money + VatRate string + type InvoiceLineInput struct + AccountingNumber Opt[string] + Description Opt[string] + DiscountRate Opt[string] + Name string + Number Opt[string] + ProductID Opt[string] + Quantity string + Unit Opt[string] + UnitPrice Money + VatRate string + func (p InvoiceLineInput) MarshalJSON() ([]byte, error) + type InvoiceListParams struct + CompanyID []string + Cursor Opt[string] + DueDateFrom Opt[string] + DueDateTo Opt[string] + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + Limit Opt[int] + Sort Opt[InvoiceListSort] + Status []InvoiceStatus + Tag []string + UpdatedAfter Opt[string] + type InvoiceListSort string + const InvoiceListSortCreatedAt + const InvoiceListSortCreatedAtDesc + const InvoiceListSortUpdatedAt + const InvoiceListSortUpdatedAtDesc + type InvoiceNeighbors struct + Next *InvoiceSummary + Previous *InvoiceSummary + func (m InvoiceNeighbors) ETag() string + func (m InvoiceNeighbors) LastResponse() *Response + type InvoicePaymentCreateParams struct + Amount Money + Method Opt[string] + MethodLabel Opt[string] + PaidAt Opt[string] + Reference Opt[string] + func (p InvoicePaymentCreateParams) MarshalJSON() ([]byte, error) + type InvoicePaymentsService struct + func (s *InvoicePaymentsService) Create(ctx context.Context, invoiceID string, params *InvoicePaymentCreateParams, ...) (*Payment, error) + func (s *InvoicePaymentsService) Delete(ctx context.Context, invoiceID string, paymentID string, opts ...RequestOption) error + func (s *InvoicePaymentsService) Get(ctx context.Context, invoiceID string, paymentID string, opts ...RequestOption) (*Payment, error) + func (s *InvoicePaymentsService) List(ctx context.Context, invoiceID string, opts ...RequestOption) *Paginator[Payment] + type InvoiceSendParams struct + To []string + func (p InvoiceSendParams) MarshalJSON() ([]byte, error) + type InvoiceSetCorrectedInvoiceParams struct + CorrectsInvoiceID string + func (p InvoiceSetCorrectedInvoiceParams) MarshalJSON() ([]byte, error) + type InvoiceShareParams struct + Force Opt[bool] + type InvoiceStatus string + const InvoiceStatusDraft + const InvoiceStatusEinvoiceDisputed + const InvoiceStatusEinvoiceRefused + const InvoiceStatusEinvoiceRejected + const InvoiceStatusEinvoiceSubmitted + const InvoiceStatusLost + const InvoiceStatusPaid + const InvoiceStatusPartiallyPaid + const InvoiceStatusPartiallyPaidOverdue + const InvoiceStatusPaymentAnnounced + const InvoiceStatusSepaDisputed + const InvoiceStatusSepaFailed + const InvoiceStatusSepaPending + const InvoiceStatusShared + const InvoiceStatusUnpaid + const InvoiceStatusValidated + type InvoiceStatusChange struct + Author *Author + ChangedAt string + Status string + type InvoiceStatusHistoryService struct + func (s *InvoiceStatusHistoryService) List(ctx context.Context, invoiceID string, opts ...RequestOption) *Paginator[InvoiceStatusChange] + type InvoiceSummary struct + CompanyName string + ID string + Number *string + Object string + Status string + type InvoiceUpdateParams struct + Tags Opt[[]string] + func (p InvoiceUpdateParams) MarshalJSON() ([]byte, error) + type InvoicesService struct + CorrectableInvoices *InvoiceCorrectableInvoicesService + CreditNotes *InvoiceCreditNotesService + Payments *InvoicePaymentsService + StatusHistory *InvoiceStatusHistoryService + func (s *InvoicesService) BatchCreateCreditNotes(ctx context.Context, params *InvoiceBatchCreateCreditNotesParams, ...) *Paginator[ItemResultWithCreatedID] + func (s *InvoicesService) BatchCreatePayments(ctx context.Context, params *InvoiceBatchCreatePaymentsParams, ...) *Paginator[ItemResultWithCreatedID] + func (s *InvoicesService) BatchDuplicate(ctx context.Context, params *InvoiceBatchDuplicateParams, ...) *Paginator[ItemResultWithCreatedID] + func (s *InvoicesService) BatchShare(ctx context.Context, params *InvoiceBatchShareParams, opts ...RequestOption) *Paginator[ItemResult] + func (s *InvoicesService) BatchValidate(ctx context.Context, params *InvoiceBatchValidateParams, opts ...RequestOption) *Paginator[ItemResult] + func (s *InvoicesService) Create(ctx context.Context, params *InvoiceCreateParams, opts ...RequestOption) (*Invoice, error) + func (s *InvoicesService) Debit(ctx context.Context, invoiceID string, opts ...RequestOption) (*PaymentStatus, error) + func (s *InvoicesService) Delete(ctx context.Context, invoiceID string, opts ...RequestOption) error + func (s *InvoicesService) DownloadPDF(ctx context.Context, invoiceID string, params *GetInvoicePDFParams, ...) (*FileDownload, error) + func (s *InvoicesService) Edit(ctx context.Context, invoiceID string, params *InvoiceEditParams, ...) (*Invoice, error) + func (s *InvoicesService) Get(ctx context.Context, invoiceID string, opts ...RequestOption) (*Invoice, error) + func (s *InvoicesService) GetEditability(ctx context.Context, invoiceID string, opts ...RequestOption) (*InvoiceEditability, error) + func (s *InvoicesService) GetEinvoice(ctx context.Context, invoiceID string, opts ...RequestOption) (*Einvoice, error) + func (s *InvoicesService) GetEligibility(ctx context.Context, params *InvoiceGetEligibilityParams, ...) (*InvoiceEligibility, error) + func (s *InvoicesService) GetNeighbors(ctx context.Context, invoiceID string, params *InvoiceGetNeighborsParams, ...) (*InvoiceNeighbors, error) + func (s *InvoicesService) GetPaymentStatus(ctx context.Context, invoiceID string, opts ...RequestOption) (*PaymentStatus, error) + func (s *InvoicesService) List(ctx context.Context, params *InvoiceListParams, opts ...RequestOption) *Paginator[Invoice] + func (s *InvoicesService) ListTags(ctx context.Context, opts ...RequestOption) *Paginator[string] + func (s *InvoicesService) MarkLost(ctx context.Context, invoiceID string, opts ...RequestOption) (*Invoice, error) + func (s *InvoicesService) Refund(ctx context.Context, invoiceID string, opts ...RequestOption) (*PaymentStatus, error) + func (s *InvoicesService) Reinvoice(ctx context.Context, invoiceID string, opts ...RequestOption) (*Invoice, error) + func (s *InvoicesService) Send(ctx context.Context, invoiceID string, params *InvoiceSendParams, ...) *Paginator[ItemResult] + func (s *InvoicesService) SetCorrectedInvoice(ctx context.Context, invoiceID string, ...) (*Invoice, error) + func (s *InvoicesService) Share(ctx context.Context, invoiceID string, params *InvoiceShareParams, ...) (*Invoice, error) + func (s *InvoicesService) SubmitEinvoice(ctx context.Context, invoiceID string, opts ...RequestOption) (*Einvoice, error) + func (s *InvoicesService) Unpay(ctx context.Context, invoiceID string, opts ...RequestOption) (*Invoice, error) + func (s *InvoicesService) Update(ctx context.Context, invoiceID string, params *InvoiceUpdateParams, ...) (*Invoice, error) + func (s *InvoicesService) Validate(ctx context.Context, invoiceID string, opts ...RequestOption) (*Invoice, error) + type ItemError struct + Code string + Context map[string]any + Error string + type ItemResult struct + Error *ItemError + ID string + Status ItemResultStatus + type ItemResultStatus string + const ItemResultStatusFailed + const ItemResultStatusSucceeded + type ItemResultWithCreatedID struct + CreatedID *string + Error *ItemError + ID string + Status ItemResultStatus + type LegalForm struct + Code *string + Label *string + type LineStock struct + Available string + Lots []StockLot + Name string + Number string + StockID string + Untracked string + type LineStockAvailability struct + LineIndex int + Name string + ProductID *string + Quantity string + Stocks []LineStock + type LocalizedText struct + En string + Fr string + type MeService struct + APIKeys *MyAPIKeysService + func (s *MeService) Get(ctx context.Context, opts ...RequestOption) (*User, error) + type MethodNotAllowedError struct + func (e *MethodNotAllowedError) Unwrap() error + type Money struct + Amount string + Currency string + type MyAPIKeyCreateParams struct + ExpiresIn Opt[string] + Name string + OrganizationIDs Opt[[]string] + Rights Opt[[]string] + func (p MyAPIKeyCreateParams) MarshalJSON() ([]byte, error) + type MyAPIKeyGetParams struct + OrganizationID Opt[string] + type MyAPIKeyUpdateParams struct + Name Opt[string] + OrganizationIDs Opt[[]string] + Rights Opt[[]string] + func (p MyAPIKeyUpdateParams) MarshalJSON() ([]byte, error) + type MyAPIKeysService struct + func (s *MyAPIKeysService) Create(ctx context.Context, params *MyAPIKeyCreateParams, opts ...RequestOption) (*APIKey, error) + func (s *MyAPIKeysService) Get(ctx context.Context, apiKeyID string, params *MyAPIKeyGetParams, ...) (*APIKey, error) + func (s *MyAPIKeysService) List(ctx context.Context, opts ...RequestOption) *Paginator[APIKey] + func (s *MyAPIKeysService) Revoke(ctx context.Context, apiKeyID string, opts ...RequestOption) error + func (s *MyAPIKeysService) Rotate(ctx context.Context, apiKeyID string, opts ...RequestOption) (*APIKey, error) + func (s *MyAPIKeysService) Update(ctx context.Context, apiKeyID string, params *MyAPIKeyUpdateParams, ...) (*APIKey, error) + type NotAcceptableError struct + func (e *NotAcceptableError) Unwrap() error + type NotFoundError struct + func (e *NotFoundError) Unwrap() error + type OnlinePaymentSetting struct + ChargesEnabled bool + IsActive bool + IsAllowedByPlan bool + IsCollectionAllowed bool + IsEnabled bool + IsStripeConnected bool + Object string + UpdatedAt *string + func (m OnlinePaymentSetting) ETag() string + func (m OnlinePaymentSetting) LastResponse() *Response + type OpeningHoursDay struct + Day OpeningHoursDayDay + Ranges []OpeningHoursRange + type OpeningHoursDayDay string + const OpeningHoursDayDayFriday + const OpeningHoursDayDayMonday + const OpeningHoursDayDaySaturday + const OpeningHoursDayDaySunday + const OpeningHoursDayDayThursday + const OpeningHoursDayDayTuesday + const OpeningHoursDayDayWednesday + type OpeningHoursRange struct + Close string + Open string + type Opt struct + func Bool(v bool) Opt[bool] + func Float(v float64) Opt[float64] + func Int(v int) Opt[int] + func Int64(v int64) Opt[int64] + func Null[T any]() Opt[T] + func String(v string) Opt[string] + func Value[T any](v T) Opt[T] + func (o *Opt[T]) UnmarshalJSON(data []byte) error + func (o Opt[T]) Get() (T, bool) + func (o Opt[T]) IsNull() bool + func (o Opt[T]) IsSet() bool + func (o Opt[T]) MarshalJSON() ([]byte, error) + type Order struct + Company OrderCompanySnapshot + CompanyID string + CreatedAt string + Delivery OrderDelivery + DeliveryNoteIDs []string + Description *string + ID string + InvoiceIDs []string + IssueDate string + Lines []OrderLine + Number string + Object string + OrganizationID string + QuotationIDs []string + Settled bool + Status OrderStatus + Subtotal Money + Tags []string + Total Money + UpdatedAt string + Vat Money + func (m Order) ETag() string + func (m Order) LastResponse() *Response + type OrderBatchApproveParams struct + IDs []string + func (p OrderBatchApproveParams) MarshalJSON() ([]byte, error) + type OrderBatchShareParams struct + IDs []string + func (p OrderBatchShareParams) MarshalJSON() ([]byte, error) + type OrderCompanySnapshot struct + Address string + BillingAddress *string + HeadquartersAddress *string + Name string + Siren *string + VatNumber *string + type OrderCreateParams struct + CompanyID string + Delivery Opt[OrderDeliveryInput] + Description Opt[string] + IssueDate Opt[string] + Lines []OrderLineInput + Tags Opt[[]string] + func (p OrderCreateParams) MarshalJSON() ([]byte, error) + type OrderDeliverParams struct + Lots Opt[[]OrderLotInput] + func (p OrderDeliverParams) MarshalJSON() ([]byte, error) + type OrderDelivery struct + Address *string + AddressID *string + Date *string + DelivererID *string + PreparerID *string + type OrderDeliveryInput struct + AddressID Opt[string] + Date Opt[string] + DelivererID Opt[string] + PreparerID Opt[string] + func (p OrderDeliveryInput) MarshalJSON() ([]byte, error) + type OrderEditParams struct + CompanyID Opt[string] + DeliveryAddressID Opt[string] + Description Opt[string] + Lines Opt[[]OrderLineInput] + func (p OrderEditParams) MarshalJSON() ([]byte, error) + type OrderEditability struct + Editable bool + Reason *string + func (m OrderEditability) ETag() string + func (m OrderEditability) LastResponse() *Response + type OrderEligibility struct + Approve int + Share int + Total int + func (m OrderEligibility) ETag() string + func (m OrderEligibility) LastResponse() *Response + type OrderGetEligibilityParams struct + CompanyID []string + DelivererID []string + DeliveryDateFrom Opt[string] + DeliveryDateTo Opt[string] + ExcludeTag []string + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + PreparerID []string + Q Opt[string] + Status []OrderStatus + Tag []string + TagMode Opt[OrderListTagMode] + UpdatedAfter Opt[string] + type OrderGetNeighborsParams struct + CompanyID []string + DelivererID []string + DeliveryDateFrom Opt[string] + DeliveryDateTo Opt[string] + ExcludeTag []string + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + PreparerID []string + Q Opt[string] + Sort Opt[OrderListSort] + Status []OrderStatus + Tag []string + TagMode Opt[OrderListTagMode] + UpdatedAfter Opt[string] + type OrderInvoiceParams struct + Lots Opt[[]OrderLotInput] + func (p OrderInvoiceParams) MarshalJSON() ([]byte, error) + type OrderLine struct + AccountingNumber *string + Description *string + DiscountAmount *Money + DiscountRate *string + DiscountReason *string + Index int + Name string + Number *string + ProductID *string + Quantity string + Subtotal Money + Total Money + UnitPrice Money + VatRate string + type OrderLineInput struct + AccountingNumber Opt[string] + Description Opt[string] + DiscountAmount Opt[Money] + DiscountRate Opt[string] + DiscountReason Opt[string] + Name string + Number Opt[string] + ProductID string + Quantity string + UnitPrice Money + VatRate string + func (p OrderLineInput) MarshalJSON() ([]byte, error) + type OrderListParams struct + CompanyID []string + Cursor Opt[string] + DelivererID []string + DeliveryDateFrom Opt[string] + DeliveryDateTo Opt[string] + ExcludeTag []string + IncludeTotal Opt[bool] + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + Limit Opt[int] + PreparerID []string + Q Opt[string] + Sort Opt[OrderListSort] + Status []OrderStatus + Tag []string + TagMode Opt[OrderListTagMode] + UpdatedAfter Opt[string] + type OrderListSort string + const OrderListSortCreatedAt + const OrderListSortCreatedAtDesc + const OrderListSortIssueDate + const OrderListSortIssueDateDesc + const OrderListSortNumber + const OrderListSortNumberDesc + const OrderListSortUpdatedAt + const OrderListSortUpdatedAtDesc + type OrderListTagMode string + const OrderListTagModeAll + const OrderListTagModeAny + type OrderLotInput struct + BestBeforeDays Opt[int] + ConsumeBeforeDays Opt[int] + LineIndex int + LotNumber Opt[string] + Origin Opt[string] + Quantity string + StockID Opt[string] + UseByDays Opt[int] + func (p OrderLotInput) MarshalJSON() ([]byte, error) + type OrderNeighbors struct + Next *OrderSummary + Previous *OrderSummary + func (m OrderNeighbors) ETag() string + func (m OrderNeighbors) LastResponse() *Response + type OrderOrderAlreadyInvoicedContext struct + InvoiceID string + type OrderOrderAlreadyInvoicedError struct + Context OrderOrderAlreadyInvoicedContext + func (e *OrderOrderAlreadyInvoicedError) Unwrap() error + type OrderOrderForeignProductContext struct + ProductIDs []string + type OrderOrderForeignProductError struct + Context OrderOrderForeignProductContext + func (e *OrderOrderForeignProductError) Unwrap() error + type OrderOrderHasDepositsError struct + func (e *OrderOrderHasDepositsError) Unwrap() error + type OrderOrderNotDeletableContext struct + Status string + type OrderOrderNotDeletableError struct + Context OrderOrderNotDeletableContext + func (e *OrderOrderNotDeletableError) Unwrap() error + type OrderOrderNotEditableContext struct + Reason string + type OrderOrderNotEditableError struct + Context OrderOrderNotEditableContext + func (e *OrderOrderNotEditableError) Unwrap() error + type OrderOrderOutOfScopeReferenceContext struct + IDs []string + Kind string + type OrderOrderOutOfScopeReferenceError struct + Context OrderOrderOutOfScopeReferenceContext + func (e *OrderOrderOutOfScopeReferenceError) Unwrap() error + type OrderOrderRecipientUnsubscribedContext struct + EmailAddressID string + type OrderOrderRecipientUnsubscribedError struct + Context OrderOrderRecipientUnsubscribedContext + func (e *OrderOrderRecipientUnsubscribedError) Unwrap() error + type OrderOrderShopBilledError struct + func (e *OrderOrderShopBilledError) Unwrap() error + type OrderOrderTransitionRefusedContext struct + Status string + To string + type OrderOrderTransitionRefusedError struct + Context OrderOrderTransitionRefusedContext + func (e *OrderOrderTransitionRefusedError) Unwrap() error + type OrderSendParams struct + To []string + func (p OrderSendParams) MarshalJSON() ([]byte, error) + type OrderStatus string + const OrderStatusApproved + const OrderStatusCanceled + const OrderStatusDelivered + const OrderStatusInvoiced + const OrderStatusOrdered + const OrderStatusShared + const OrderStatusValidated + const OrderStatusWaitingForDelivery + type OrderStatusChange struct + Author *Author + ChangedAt string + Status string + type OrderStatusHistoryService struct + func (s *OrderStatusHistoryService) List(ctx context.Context, orderID string, opts ...RequestOption) *Paginator[OrderStatusChange] + type OrderSummary struct + CompanyName string + ID string + Number string + Object string + Status string + type OrderUpdateParams struct + Delivery Opt[UpdateOrderDelivery] + Description Opt[string] + IssueDate Opt[string] + Tags Opt[[]string] + func (p OrderUpdateParams) MarshalJSON() ([]byte, error) + type OrdersService struct + StatusHistory *OrderStatusHistoryService + func (s *OrdersService) Approve(ctx context.Context, orderID string, opts ...RequestOption) (*Order, error) + func (s *OrdersService) BatchApprove(ctx context.Context, params *OrderBatchApproveParams, opts ...RequestOption) *Paginator[ItemResult] + func (s *OrdersService) BatchShare(ctx context.Context, params *OrderBatchShareParams, opts ...RequestOption) *Paginator[ItemResult] + func (s *OrdersService) Cancel(ctx context.Context, orderID string, opts ...RequestOption) (*Order, error) + func (s *OrdersService) Create(ctx context.Context, params *OrderCreateParams, opts ...RequestOption) (*Order, error) + func (s *OrdersService) Delete(ctx context.Context, orderID string, opts ...RequestOption) error + func (s *OrdersService) Deliver(ctx context.Context, orderID string, params *OrderDeliverParams, ...) (*DeliveryNote, error) + func (s *OrdersService) DownloadPDF(ctx context.Context, orderID string, opts ...RequestOption) (*FileDownload, error) + func (s *OrdersService) Edit(ctx context.Context, orderID string, params *OrderEditParams, ...) (*Order, error) + func (s *OrdersService) Get(ctx context.Context, orderID string, opts ...RequestOption) (*Order, error) + func (s *OrdersService) GetEditability(ctx context.Context, orderID string, opts ...RequestOption) (*OrderEditability, error) + func (s *OrdersService) GetEligibility(ctx context.Context, params *OrderGetEligibilityParams, opts ...RequestOption) (*OrderEligibility, error) + func (s *OrdersService) GetNeighbors(ctx context.Context, orderID string, params *OrderGetNeighborsParams, ...) (*OrderNeighbors, error) + func (s *OrdersService) GetStockAvailability(ctx context.Context, orderID string, opts ...RequestOption) *Paginator[LineStockAvailability] + func (s *OrdersService) Invoice(ctx context.Context, orderID string, params *OrderInvoiceParams, ...) (*Invoice, error) + func (s *OrdersService) List(ctx context.Context, params *OrderListParams, opts ...RequestOption) *Paginator[Order] + func (s *OrdersService) ListTags(ctx context.Context, opts ...RequestOption) *Paginator[string] + func (s *OrdersService) MarkWaitingForDelivery(ctx context.Context, orderID string, opts ...RequestOption) (*Order, error) + func (s *OrdersService) Send(ctx context.Context, orderID string, params *OrderSendParams, ...) *Paginator[ItemResult] + func (s *OrdersService) Share(ctx context.Context, orderID string, opts ...RequestOption) (*Order, error) + func (s *OrdersService) Update(ctx context.Context, orderID string, params *OrderUpdateParams, ...) (*Order, error) + type Organization struct + CreatedAt string + ID string + Name string + Object string + Siren *string + UpdatedAt string + VatNumber *string + func (m Organization) ETag() string + func (m Organization) LastResponse() *Response + type OrganizationScope struct + APIKeys *APIKeysService + Companies *CompaniesService + DeliveryNotes *DeliveryNotesService + Einvoices *EinvoicesService + Einvoicing *EinvoicingResourceService + ID string + IncomingEinvoices *IncomingEinvoicesService + Invoices *InvoicesService + Orders *OrdersService + PaymentsAccount *PaymentsAccountResourceService + Products *ProductsService + Quotations *QuotationsService + func (s *OrganizationScope) Get(ctx context.Context, opts ...RequestOption) (*Organization, error) + type OutgoingEinvoiceFailure struct + CompanyID *string + CompanyName *string + FailedAt string + Failure *EinvoiceFailure + InvoiceID *string + InvoiceNumber *string + InvoiceStatus *string + IsAutoRetryPending bool + IsDismissible bool + IsMailAllowed bool + Object string + Status string + Total *Money + type Page struct + Data []T + NextCursor string + func (p *Page[T]) HasMore() bool + func (p *Page[T]) LastResponse() *Response + func (p *Page[T]) NextPage() (*Page[T], error) + type Paginator struct + func (l *Paginator[T]) All() iter.Seq2[T, error] + func (l *Paginator[T]) Collect() ([]T, error) + func (l *Paginator[T]) CollectMax(max int) ([]T, error) + func (l *Paginator[T]) FirstPage() (*Page[T], error) + func (l *Paginator[T]) Pages() iter.Seq2[*Page[T], error] + type PayloadTooLargeError struct + func (e *PayloadTooLargeError) Unwrap() error + type Payment struct + Amount Money + CreatedAt string + ID string + InvoiceID string + Method PaymentMethod + MethodLabel *string + Object string + PaidAt *string + Reference *string + func (m Payment) ETag() string + func (m Payment) LastResponse() *Response + type PaymentAccountDemoError struct + func (e *PaymentAccountDemoError) Unwrap() error + type PaymentAccountNotConnectedError struct + func (e *PaymentAccountNotConnectedError) Unwrap() error + type PaymentAccountSuspendedError struct + func (e *PaymentAccountSuspendedError) Unwrap() error + type PaymentCollectionDisabledError struct + func (e *PaymentCollectionDisabledError) Unwrap() error + type PaymentCollectionPausedContext struct + Reason string + type PaymentCollectionPausedError struct + Context PaymentCollectionPausedContext + func (e *PaymentCollectionPausedError) Unwrap() error + type PaymentDebitAboveMaximumContext struct + Maximum string + type PaymentDebitAboveMaximumError struct + Context PaymentDebitAboveMaximumContext + func (e *PaymentDebitAboveMaximumError) Unwrap() error + type PaymentDebitBelowMinimumContext struct + Minimum string + type PaymentDebitBelowMinimumError struct + Context PaymentDebitBelowMinimumContext + func (e *PaymentDebitBelowMinimumError) Unwrap() error + type PaymentDebitNotDebitableContext struct + Status string + type PaymentDebitNotDebitableError struct + Context PaymentDebitNotDebitableContext + func (e *PaymentDebitNotDebitableError) Unwrap() error + type PaymentDebitNothingDueError struct + func (e *PaymentDebitNothingDueError) Unwrap() error + type PaymentDebitQuotaReachedContext struct + Current string + Limit string + Measure string + Scope string + WindowDays int64 + type PaymentDebitQuotaReachedError struct + Context PaymentDebitQuotaReachedContext + func (e *PaymentDebitQuotaReachedError) Unwrap() error + type PaymentMandateForeignIbanError struct + func (e *PaymentMandateForeignIbanError) Unwrap() error + type PaymentMandateInvitationsThrottledError struct + func (e *PaymentMandateInvitationsThrottledError) Unwrap() error + type PaymentMandateMissingError struct + func (e *PaymentMandateMissingError) Unwrap() error + type PaymentMethod string + const PaymentMethodCard + const PaymentMethodCash + const PaymentMethodCheck + const PaymentMethodOther + const PaymentMethodPaypal + const PaymentMethodSepaDirectDebit + const PaymentMethodTransfer + type PaymentPlanCollectionRequiredError struct + func (e *PaymentPlanCollectionRequiredError) Unwrap() error + type PaymentRefundNothingToRefundError struct + func (e *PaymentRefundNothingToRefundError) Unwrap() error + type PaymentRequiredError struct + func (e *PaymentRequiredError) Unwrap() error + type PaymentStatus struct + AmountDue Money + FailureCode *string + FailureMessage *string + InvoiceID string + LastDebit *DebitFee + Object string + Paid Money + Payments []Payment + Status string + StatusChangedAt string + Total Money + func (m PaymentStatus) ETag() string + func (m PaymentStatus) LastResponse() *Response + type PaymentsAccount struct + ChargesEnabled *bool + ClosedAt *string + Collection *PaymentsCollection + DetailsSubmitted *bool + IsConnected bool + Object string + PayoutsEnabled *bool + func (m PaymentsAccount) ETag() string + func (m PaymentsAccount) LastResponse() *Response + type PaymentsAccountResourceListSepaFeesParams struct + Cursor Opt[string] + Limit Opt[int] + type PaymentsAccountResourceReplaceOnlinePaymentSettingParams struct + IsEnabled bool + func (p PaymentsAccountResourceReplaceOnlinePaymentSettingParams) MarshalJSON() ([]byte, error) + type PaymentsAccountResourceService struct + func (s *PaymentsAccountResourceService) CreateDashboardLink(ctx context.Context, opts ...RequestOption) (*HostedLink, error) + func (s *PaymentsAccountResourceService) Get(ctx context.Context, opts ...RequestOption) (*PaymentsAccount, error) + func (s *PaymentsAccountResourceService) GetOnlinePaymentSetting(ctx context.Context, opts ...RequestOption) (*OnlinePaymentSetting, error) + func (s *PaymentsAccountResourceService) GetSepaQuota(ctx context.Context, opts ...RequestOption) (*SepaQuota, error) + func (s *PaymentsAccountResourceService) ListSepaFees(ctx context.Context, params *PaymentsAccountResourceListSepaFeesParams, ...) *Paginator[SepaFee] + func (s *PaymentsAccountResourceService) ReplaceOnlinePaymentSetting(ctx context.Context, ...) (*OnlinePaymentSetting, error) + func (s *PaymentsAccountResourceService) StartOnboarding(ctx context.Context, params *PaymentsAccountResourceStartOnboardingParams, ...) (*HostedLink, error) + type PaymentsAccountResourceStartOnboardingParams struct + RefreshURL string + ReturnURL string + func (p PaymentsAccountResourceStartOnboardingParams) MarshalJSON() ([]byte, error) + type PaymentsCollection struct + DisabledAt *string + IsDisabled bool + IsPaused bool + PauseReason *string + PausesAt *string + type PermissionDeniedError struct + func (e *PermissionDeniedError) Unwrap() error + type PostalAddress struct + City *string + DeliveryInstructions *string + Geocode PostalAddressGeocode + ID string + Label *string + Line1 string + Object string + OpeningHours []OpeningHoursDay + PostalCode *string + RecipientLine *string + Siret *string + func (m PostalAddress) ETag() string + func (m PostalAddress) LastResponse() *Response + type PostalAddressGeocode struct + GeocodedAt *string + Latitude *float64 + Longitude *float64 + Status string + type PreconditionFailedError struct + func (e *PreconditionFailedError) Unwrap() error + type Product struct + AccountingNumber *string + Barcodes []Barcode + CostPrice *Money + CreatedAt string + CreatedBy *Author + ID string + ImportSupplier *string + MarginCoefficient *string + Name string + Number string + Object string + OrganizationID string + Origins []string + ShelfLife ShelfLife + Status ProductStatus + Tags []string + UnitPrice *Money + UpdatedAt string + VatRate string + VolumeMilliliters *int + WeightGrams *int + func (m Product) ETag() string + func (m Product) LastResponse() *Response + type ProductBarcodeCreateParams struct + Format BarcodeFormat + IsPrimary Opt[bool] + Value string + func (p ProductBarcodeCreateParams) MarshalJSON() ([]byte, error) + type ProductBarcodeDuplicateContext struct + Value string + type ProductBarcodeDuplicateError struct + Context ProductBarcodeDuplicateContext + func (e *ProductBarcodeDuplicateError) Unwrap() error + type ProductBarcodeOutsideCompanyPrefixContext struct + CompanyPrefix string + type ProductBarcodeOutsideCompanyPrefixError struct + Context ProductBarcodeOutsideCompanyPrefixContext + func (e *ProductBarcodeOutsideCompanyPrefixError) Unwrap() error + type ProductBarcodeUpdateParams struct + IsPrimary Opt[bool] + func (p ProductBarcodeUpdateParams) MarshalJSON() ([]byte, error) + type ProductBarcodesService struct + func (s *ProductBarcodesService) Create(ctx context.Context, productID string, params *ProductBarcodeCreateParams, ...) (*Barcode, error) + func (s *ProductBarcodesService) Delete(ctx context.Context, productID string, barcodeID string, opts ...RequestOption) error + func (s *ProductBarcodesService) Get(ctx context.Context, productID string, barcodeID string, opts ...RequestOption) (*Barcode, error) + func (s *ProductBarcodesService) Update(ctx context.Context, productID string, barcodeID string, ...) (*Barcode, error) + type ProductCreateParams struct + AccountingNumber Opt[string] + InitialStock Opt[InitialStock] + Name string + Number string + Origins Opt[[]string] + ShelfLife Opt[ShelfLifeInput] + Tags Opt[[]string] + UnitPrice Opt[Money] + VatRate string + VolumeMilliliters Opt[int] + WeightGrams Opt[int] + func (p ProductCreateParams) MarshalJSON() ([]byte, error) + type ProductGetNeighborsParams struct + AccountingNumber Opt[string] + Barcode Opt[string] + CreatedBy Opt[string] + CreatedByName Opt[string] + ExcludeTag []string + HasBarcode Opt[bool] + Name Opt[string] + Number Opt[string] + Q Opt[string] + Sort Opt[ProductListSort] + Status []ProductStatus + Tag []string + TagMode Opt[ProductListTagMode] + UpdatedAfter Opt[string] + type ProductListParams struct + AccountingNumber Opt[string] + Barcode Opt[string] + CreatedBy Opt[string] + CreatedByName Opt[string] + Cursor Opt[string] + ExcludeTag []string + HasBarcode Opt[bool] + IncludeTotal Opt[bool] + Limit Opt[int] + Name Opt[string] + Number Opt[string] + Q Opt[string] + Sort Opt[ProductListSort] + Status []ProductStatus + Tag []string + TagMode Opt[ProductListTagMode] + UpdatedAfter Opt[string] + type ProductListSort string + const ProductListSortAccountingNumber + const ProductListSortAccountingNumberDesc + const ProductListSortCreatedAt + const ProductListSortCreatedAtDesc + const ProductListSortName + const ProductListSortNameDesc + const ProductListSortNumber + const ProductListSortNumberDesc + const ProductListSortUpdatedAt + const ProductListSortUpdatedAtDesc + type ProductListTagMode string + const ProductListTagModeAll + const ProductListTagModeAny + type ProductNeighbors struct + Next *ProductSummary + Previous *ProductSummary + func (m ProductNeighbors) ETag() string + func (m ProductNeighbors) LastResponse() *Response + type ProductStatus string + const ProductStatusActive + type ProductSummary struct + ID string + Name string + Number string + Object string + type ProductUpdateParams struct + AccountingNumber Opt[string] + Name Opt[string] + Number Opt[string] + Origins Opt[[]string] + ShelfLife Opt[ShelfLifeInput] + Tags Opt[[]string] + UnitPrice Opt[Money] + VatRate Opt[string] + VolumeMilliliters Opt[int] + WeightGrams Opt[int] + func (p ProductUpdateParams) MarshalJSON() ([]byte, error) + type ProductsService struct + Barcodes *ProductBarcodesService + func (s *ProductsService) Create(ctx context.Context, params *ProductCreateParams, opts ...RequestOption) (*Product, error) + func (s *ProductsService) Delete(ctx context.Context, productID string, opts ...RequestOption) error + func (s *ProductsService) Get(ctx context.Context, productID string, opts ...RequestOption) (*Product, error) + func (s *ProductsService) GetNeighbors(ctx context.Context, productID string, params *ProductGetNeighborsParams, ...) (*ProductNeighbors, error) + func (s *ProductsService) List(ctx context.Context, params *ProductListParams, opts ...RequestOption) *Paginator[Product] + func (s *ProductsService) ListTags(ctx context.Context, opts ...RequestOption) *Paginator[string] + func (s *ProductsService) Update(ctx context.Context, productID string, params *ProductUpdateParams, ...) (*Product, error) + type PublicSectorCustomers struct + Count int + Names []string + type Quotation struct + Company QuotationCompanySnapshot + CompanyID string + CreatedAt string + Description *string + ExpiryDate string + ID string + InvoiceIDs []string + IssueDate string + Lines []QuotationLine + Number string + Object string + OrderIDs []string + OrganizationID string + Status QuotationStatus + Subtotal Money + Tags []string + Total Money + UpdatedAt string + Vat Money + WorkEndDate *string + WorkStartDate *string + func (m Quotation) ETag() string + func (m Quotation) LastResponse() *Response + type QuotationBatchApproveParams struct + IDs []string + func (p QuotationBatchApproveParams) MarshalJSON() ([]byte, error) + type QuotationBatchOrderParams struct + IDs []string + func (p QuotationBatchOrderParams) MarshalJSON() ([]byte, error) + type QuotationBatchShareParams struct + IDs []string + func (p QuotationBatchShareParams) MarshalJSON() ([]byte, error) + type QuotationCompanySnapshot struct + Address string + BillingAddress *string + HeadquartersAddress *string + Name string + Siren *string + VatNumber *string + type QuotationCreateParams struct + CompanyID string + Description Opt[string] + ExpiryDate Opt[string] + IssueDate Opt[string] + Lines []QuotationLineInput + Tags Opt[[]string] + WorkEndDate Opt[string] + WorkStartDate Opt[string] + func (p QuotationCreateParams) MarshalJSON() ([]byte, error) + type QuotationEditParams struct + CompanyID Opt[string] + Description Opt[string] + Lines Opt[[]QuotationLineInput] + func (p QuotationEditParams) MarshalJSON() ([]byte, error) + type QuotationEditability struct + Editable bool + Reason *string + func (m QuotationEditability) ETag() string + func (m QuotationEditability) LastResponse() *Response + type QuotationEligibility struct + Approve int + Order int + Share int + Total int + func (m QuotationEligibility) ETag() string + func (m QuotationEligibility) LastResponse() *Response + type QuotationExtendParams struct + ExpiryDate Opt[string] + func (p QuotationExtendParams) MarshalJSON() ([]byte, error) + type QuotationGetEligibilityParams struct + CompanyID []string + ExcludeTag []string + ExpiryDateFrom Opt[string] + ExpiryDateTo Opt[string] + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + Q Opt[string] + Status []QuotationStatus + Tag []string + TagMode Opt[QuotationListTagMode] + UpdatedAfter Opt[string] + type QuotationGetNeighborsParams struct + CompanyID []string + ExcludeTag []string + ExpiryDateFrom Opt[string] + ExpiryDateTo Opt[string] + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + Q Opt[string] + Sort Opt[QuotationListSort] + Status []QuotationStatus + Tag []string + TagMode Opt[QuotationListTagMode] + UpdatedAfter Opt[string] + type QuotationLine struct + AccountingNumber *string + Description *string + DiscountAmount *Money + DiscountRate *string + DiscountReason *string + Index int + Name string + Number *string + ProductID string + Quantity string + Subtotal Money + Total Money + UnitPrice Money + VatRate string + type QuotationLineInput struct + AccountingNumber Opt[string] + Description Opt[string] + DiscountAmount Opt[Money] + DiscountRate Opt[string] + DiscountReason Opt[string] + Name string + Number Opt[string] + ProductID string + Quantity string + UnitPrice Money + VatRate string + func (p QuotationLineInput) MarshalJSON() ([]byte, error) + type QuotationListParams struct + CompanyID []string + Cursor Opt[string] + ExcludeTag []string + ExpiryDateFrom Opt[string] + ExpiryDateTo Opt[string] + IncludeTotal Opt[bool] + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + Limit Opt[int] + Q Opt[string] + Sort Opt[QuotationListSort] + Status []QuotationStatus + Tag []string + TagMode Opt[QuotationListTagMode] + UpdatedAfter Opt[string] + type QuotationListSort string + const QuotationListSortCreatedAt + const QuotationListSortCreatedAtDesc + const QuotationListSortIssueDate + const QuotationListSortIssueDateDesc + const QuotationListSortNumber + const QuotationListSortNumberDesc + const QuotationListSortUpdatedAt + const QuotationListSortUpdatedAtDesc + type QuotationListTagMode string + const QuotationListTagModeAll + const QuotationListTagModeAny + type QuotationNeighbors struct + Next *QuotationSummary + Previous *QuotationSummary + func (m QuotationNeighbors) ETag() string + func (m QuotationNeighbors) LastResponse() *Response + type QuotationQuotationAlreadyInvoicedContext struct + InvoiceID string + type QuotationQuotationAlreadyInvoicedError struct + Context QuotationQuotationAlreadyInvoicedContext + func (e *QuotationQuotationAlreadyInvoicedError) Unwrap() error + type QuotationQuotationConvertedContext struct + ID string + Kind string + type QuotationQuotationConvertedError struct + Context QuotationQuotationConvertedContext + func (e *QuotationQuotationConvertedError) Unwrap() error + type QuotationQuotationForeignProductContext struct + ProductIDs []string + type QuotationQuotationForeignProductError struct + Context QuotationQuotationForeignProductContext + func (e *QuotationQuotationForeignProductError) Unwrap() error + type QuotationQuotationHasDepositsError struct + func (e *QuotationQuotationHasDepositsError) Unwrap() error + type QuotationQuotationNotEditableContext struct + Reason string + type QuotationQuotationNotEditableError struct + Context QuotationQuotationNotEditableContext + func (e *QuotationQuotationNotEditableError) Unwrap() error + type QuotationQuotationNotExtendableContext struct + Status string + type QuotationQuotationNotExtendableError struct + Context QuotationQuotationNotExtendableContext + func (e *QuotationQuotationNotExtendableError) Unwrap() error + type QuotationQuotationOutOfScopeReferenceContext struct + IDs []string + Kind string + type QuotationQuotationOutOfScopeReferenceError struct + Context QuotationQuotationOutOfScopeReferenceContext + func (e *QuotationQuotationOutOfScopeReferenceError) Unwrap() error + type QuotationQuotationRecipientUnsubscribedContext struct + EmailAddressID string + type QuotationQuotationRecipientUnsubscribedError struct + Context QuotationQuotationRecipientUnsubscribedContext + func (e *QuotationQuotationRecipientUnsubscribedError) Unwrap() error + type QuotationQuotationTransitionRefusedContext struct + Status string + To string + type QuotationQuotationTransitionRefusedError struct + Context QuotationQuotationTransitionRefusedContext + func (e *QuotationQuotationTransitionRefusedError) Unwrap() error + type QuotationSendParams struct + To []string + func (p QuotationSendParams) MarshalJSON() ([]byte, error) + type QuotationStatus string + const QuotationStatusApproved + const QuotationStatusCanceled + const QuotationStatusExpired + const QuotationStatusInvoiced + const QuotationStatusOrdered + const QuotationStatusShared + const QuotationStatusValidated + type QuotationStatusChange struct + Author *Author + ChangedAt string + Status string + type QuotationStatusHistoryService struct + func (s *QuotationStatusHistoryService) List(ctx context.Context, quotationID string, opts ...RequestOption) *Paginator[QuotationStatusChange] + type QuotationSummary struct + CompanyName string + ID string + Number string + Object string + Status string + type QuotationUpdateParams struct + Description Opt[string] + ExpiryDate Opt[string] + IssueDate Opt[string] + Tags Opt[[]string] + WorkEndDate Opt[string] + WorkStartDate Opt[string] + func (p QuotationUpdateParams) MarshalJSON() ([]byte, error) + type QuotationsService struct + StatusHistory *QuotationStatusHistoryService + func (s *QuotationsService) Approve(ctx context.Context, quotationID string, opts ...RequestOption) (*Quotation, error) + func (s *QuotationsService) BatchApprove(ctx context.Context, params *QuotationBatchApproveParams, ...) *Paginator[ItemResult] + func (s *QuotationsService) BatchOrder(ctx context.Context, params *QuotationBatchOrderParams, opts ...RequestOption) *Paginator[ItemResultWithCreatedID] + func (s *QuotationsService) BatchShare(ctx context.Context, params *QuotationBatchShareParams, opts ...RequestOption) *Paginator[ItemResult] + func (s *QuotationsService) Cancel(ctx context.Context, quotationID string, opts ...RequestOption) (*Quotation, error) + func (s *QuotationsService) Create(ctx context.Context, params *QuotationCreateParams, opts ...RequestOption) (*Quotation, error) + func (s *QuotationsService) Delete(ctx context.Context, quotationID string, opts ...RequestOption) error + func (s *QuotationsService) DownloadPDF(ctx context.Context, quotationID string, opts ...RequestOption) (*FileDownload, error) + func (s *QuotationsService) Edit(ctx context.Context, quotationID string, params *QuotationEditParams, ...) (*Quotation, error) + func (s *QuotationsService) Extend(ctx context.Context, quotationID string, params *QuotationExtendParams, ...) (*Quotation, error) + func (s *QuotationsService) Get(ctx context.Context, quotationID string, opts ...RequestOption) (*Quotation, error) + func (s *QuotationsService) GetEditability(ctx context.Context, quotationID string, opts ...RequestOption) (*QuotationEditability, error) + func (s *QuotationsService) GetEligibility(ctx context.Context, params *QuotationGetEligibilityParams, ...) (*QuotationEligibility, error) + func (s *QuotationsService) GetNeighbors(ctx context.Context, quotationID string, params *QuotationGetNeighborsParams, ...) (*QuotationNeighbors, error) + func (s *QuotationsService) Invoice(ctx context.Context, quotationID string, opts ...RequestOption) (*Invoice, error) + func (s *QuotationsService) List(ctx context.Context, params *QuotationListParams, opts ...RequestOption) *Paginator[Quotation] + func (s *QuotationsService) ListTags(ctx context.Context, opts ...RequestOption) *Paginator[string] + func (s *QuotationsService) Order(ctx context.Context, quotationID string, opts ...RequestOption) (*Order, error) + func (s *QuotationsService) Send(ctx context.Context, quotationID string, params *QuotationSendParams, ...) *Paginator[ItemResult] + func (s *QuotationsService) Share(ctx context.Context, quotationID string, opts ...RequestOption) (*Quotation, error) + func (s *QuotationsService) Update(ctx context.Context, quotationID string, params *QuotationUpdateParams, ...) (*Quotation, error) + type RateLimitError struct + func (e *RateLimitError) Unwrap() error + type RequestOption func(*requestConfig) + func AcceptLanguage(language string) RequestOption + func Header(name, value string) RequestOption + func IdempotencyKey(key string) RequestOption + func IfMatch(version Versioned) RequestOption + func MaxRetries(n int) RequestOption + func Timeout(d time.Duration) RequestOption + type Response struct + Body []byte + Header http.Header + IdempotentReplayed bool + RequestID string + StatusCode int + type Right struct + Category string + Critical bool + ID string + Label LocalizedText + Module *string + Object string + type RightsService struct + func (s *RightsService) List(ctx context.Context, opts ...RequestOption) *Paginator[Right] + type RoutingCandidate struct + Identifier string + IsActive bool + IsReachable *bool + IsSelected bool + IsSuggested bool + Label *string + ServiceCode *string + Siret *string + type SearchCompaniesService struct + func (s *SearchCompaniesService) Search(ctx context.Context, params *SearchCompanySearchParams, opts ...RequestOption) *Paginator[Company] + type SearchCompanySearchParams struct + Address Opt[string] + Contact Opt[string] + CreatedAtFrom Opt[string] + CreatedAtTo Opt[string] + Cursor Opt[string] + ExcludeTag []string + HasShopAccess Opt[bool] + HasUnpaidInvoices Opt[bool] + IncludeTotal Opt[bool] + InvoicingPeriod Opt[CompanyInvoicingPeriod] + Limit Opt[int] + NameOrIdentifier Opt[string] + OrganizationID []string + Q Opt[string] + Sort Opt[SearchCompanySearchSort] + Tag []string + TagMode Opt[SearchCompanySearchTagMode] + UpdatedAfter Opt[string] + type SearchCompanySearchSort string + const SearchCompanySearchSortCreatedAt + const SearchCompanySearchSortCreatedAtDesc + const SearchCompanySearchSortHeadquartersCity + const SearchCompanySearchSortHeadquartersCityDesc + const SearchCompanySearchSortName + const SearchCompanySearchSortNameDesc + const SearchCompanySearchSortNumber + const SearchCompanySearchSortNumberDesc + const SearchCompanySearchSortUpdatedAt + const SearchCompanySearchSortUpdatedAtDesc + type SearchCompanySearchTagMode string + const SearchCompanySearchTagModeAll + const SearchCompanySearchTagModeAny + type SearchInvoiceSearchParams struct + CompanyID []string + Cursor Opt[string] + DueDateFrom Opt[string] + DueDateTo Opt[string] + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + Limit Opt[int] + OrganizationID []string + Sort Opt[SearchInvoiceSearchSort] + Status []InvoiceStatus + Tag []string + UpdatedAfter Opt[string] + type SearchInvoiceSearchSort string + const SearchInvoiceSearchSortCreatedAt + const SearchInvoiceSearchSortCreatedAtDesc + const SearchInvoiceSearchSortUpdatedAt + const SearchInvoiceSearchSortUpdatedAtDesc + type SearchInvoicesService struct + func (s *SearchInvoicesService) Search(ctx context.Context, params *SearchInvoiceSearchParams, opts ...RequestOption) *Paginator[Invoice] + type SearchOrderSearchParams struct + CompanyID []string + Cursor Opt[string] + DelivererID []string + DeliveryDateFrom Opt[string] + DeliveryDateTo Opt[string] + ExcludeTag []string + IncludeTotal Opt[bool] + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + Limit Opt[int] + OrganizationID []string + PreparerID []string + Q Opt[string] + Sort Opt[SearchOrderSearchSort] + Status []OrderStatus + Tag []string + TagMode Opt[SearchOrderSearchTagMode] + UpdatedAfter Opt[string] + type SearchOrderSearchSort string + const SearchOrderSearchSortCreatedAt + const SearchOrderSearchSortCreatedAtDesc + const SearchOrderSearchSortIssueDate + const SearchOrderSearchSortIssueDateDesc + const SearchOrderSearchSortNumber + const SearchOrderSearchSortNumberDesc + const SearchOrderSearchSortUpdatedAt + const SearchOrderSearchSortUpdatedAtDesc + type SearchOrderSearchTagMode string + const SearchOrderSearchTagModeAll + const SearchOrderSearchTagModeAny + type SearchOrdersService struct + func (s *SearchOrdersService) Search(ctx context.Context, params *SearchOrderSearchParams, opts ...RequestOption) *Paginator[Order] + type SearchProductSearchParams struct + AccountingNumber Opt[string] + Barcode Opt[string] + CreatedBy Opt[string] + CreatedByName Opt[string] + Cursor Opt[string] + ExcludeTag []string + HasBarcode Opt[bool] + IncludeTotal Opt[bool] + Limit Opt[int] + Name Opt[string] + Number Opt[string] + OrganizationID []string + Q Opt[string] + Sort Opt[SearchProductSearchSort] + Status []ProductStatus + Tag []string + TagMode Opt[SearchProductSearchTagMode] + UpdatedAfter Opt[string] + type SearchProductSearchSort string + const SearchProductSearchSortAccountingNumber + const SearchProductSearchSortAccountingNumberDesc + const SearchProductSearchSortCreatedAt + const SearchProductSearchSortCreatedAtDesc + const SearchProductSearchSortName + const SearchProductSearchSortNameDesc + const SearchProductSearchSortNumber + const SearchProductSearchSortNumberDesc + const SearchProductSearchSortUpdatedAt + const SearchProductSearchSortUpdatedAtDesc + type SearchProductSearchTagMode string + const SearchProductSearchTagModeAll + const SearchProductSearchTagModeAny + type SearchProductsService struct + func (s *SearchProductsService) Search(ctx context.Context, params *SearchProductSearchParams, opts ...RequestOption) *Paginator[Product] + type SearchQuotationSearchParams struct + CompanyID []string + Cursor Opt[string] + ExcludeTag []string + ExpiryDateFrom Opt[string] + ExpiryDateTo Opt[string] + IncludeTotal Opt[bool] + IssueDateFrom Opt[string] + IssueDateTo Opt[string] + Limit Opt[int] + OrganizationID []string + Q Opt[string] + Sort Opt[SearchQuotationSearchSort] + Status []QuotationStatus + Tag []string + TagMode Opt[SearchQuotationSearchTagMode] + UpdatedAfter Opt[string] + type SearchQuotationSearchSort string + const SearchQuotationSearchSortCreatedAt + const SearchQuotationSearchSortCreatedAtDesc + const SearchQuotationSearchSortIssueDate + const SearchQuotationSearchSortIssueDateDesc + const SearchQuotationSearchSortNumber + const SearchQuotationSearchSortNumberDesc + const SearchQuotationSearchSortUpdatedAt + const SearchQuotationSearchSortUpdatedAtDesc + type SearchQuotationSearchTagMode string + const SearchQuotationSearchTagModeAll + const SearchQuotationSearchTagModeAny + type SearchQuotationsService struct + func (s *SearchQuotationsService) Search(ctx context.Context, params *SearchQuotationSearchParams, ...) *Paginator[Quotation] + type SepaBankAccount struct + BankCode string + Country string + Last4 string + type SepaFee struct + Amount Money + BilledAt *string + CreatedAt string + Fee Money + InvoiceID string + IsBilled bool + Kind string + MyleFee Money + Object string + StripeFee Money + type SepaFeeRates struct + MyleFixedFee Money + MyleMaxFee Money + MyleVariablePercentage string + MyleVatRate string + StripeFee Money + type SepaMandate struct + AcceptedAt *string + AutoDebit bool + BankAccount *SepaBankAccount + CompanyID string + MandateURL *string + Object string + Reference *string + Status SepaMandateStatus + func (m SepaMandate) ETag() string + func (m SepaMandate) LastResponse() *Response + type SepaMandateInvitation struct + CompanyID string + Email string + ExpiresAt string + IsSent bool + Object string + URL *string + func (m SepaMandateInvitation) ETag() string + func (m SepaMandateInvitation) LastResponse() *Response + type SepaMandateStatus string + const SepaMandateStatusActive + const SepaMandateStatusNone + type SepaQuota struct + Amount Money + BlockedReason *string + Companies []SepaQuotaCompanyUsage + Count int + Fees SepaFeeRates + MaximumDebit Money + MinimumDebit Money + Object string + PerCompany SepaQuotaLimit + PerOrganization SepaQuotaLimit + WindowDays int + func (m SepaQuota) ETag() string + func (m SepaQuota) LastResponse() *Response + type SepaQuotaCompanyUsage struct + Amount Money + CompanyID string + Count int + type SepaQuotaLimit struct + MaxAmount Money + MaxCount int + type ServiceUnavailableError struct + func (e *ServiceUnavailableError) Unwrap() error + type ShelfLife struct + BestBefore ShelfLifeDate + ConsumeBefore ShelfLifeDate + UseBy ShelfLifeDate + type ShelfLifeDate struct + Days *int + IsEnabled bool + type ShelfLifeDateInput struct + Days Opt[int] + IsEnabled Opt[bool] + func (p ShelfLifeDateInput) MarshalJSON() ([]byte, error) + type ShelfLifeInput struct + BestBefore Opt[ShelfLifeDateInput] + ConsumeBefore Opt[ShelfLifeDateInput] + UseBy Opt[ShelfLifeDateInput] + func (p ShelfLifeInput) MarshalJSON() ([]byte, error) + type StockLot struct + Available string + BestBeforeDate *string + LotNumber string + Recorded string + type TimeoutError struct + Timeout time.Duration + func (e *TimeoutError) Error() string + func (e *TimeoutError) Unwrap() error + type UnprocessableEntityError struct + func (e *UnprocessableEntityError) Unwrap() error + type UnsupportedMediaTypeError struct + func (e *UnsupportedMediaTypeError) Unwrap() error + type UpdateOrderDelivery struct + Date Opt[string] + DelivererID Opt[string] + PreparerID Opt[string] + func (p UpdateOrderDelivery) MarshalJSON() ([]byte, error) + type User struct + CreatedAt string + Email string + FirstName string + ID string + LastName string + Object string + func (m User) ETag() string + func (m User) LastResponse() *Response + type Versioned interface + ETag func() string