-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenum.go
515 lines (509 loc) · 27.8 KB
/
enum.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
package asaas
type BillingType string
type ChargeStatus string
type ChargeType string
type ChargebackReason string
type ChargebackStatus string
type DiscountType string
type Env int
type FineType string
type InterestType string
type RefundStatus string
type SplitRefusalReason string
type SplitStatus string
type DocumentType string
type NotificationEvent string
type SubscriptionCycle string
type SubscriptionStatus string
type Order string
type SortSubscriptionField string
type InvoiceStatus string
type EffectiveDatePeriod string
type InvoiceDaysBeforeDueDate int
type PixKeyStatus string
type PixKeyType string
type QrCodeFormat string
type PixQrCodeType string
type PixTransactionStatus string
type PixTransactionFinality string
type PixTransactionType string
type PixTransactionOriginType string
type AccountType string
type SortPaymentBookField string
type PersonType string
type TransferType string
type TransferStatus string
type TransferAsaasStatus string
type TransferOperationType string
type BankAccountType string
type AnticipationStatus string
type NegativityStatus string
type NegativityType string
type FileMimeType string
type BillPaymentStatus string
type MobilePhoneRechargeStatus string
type FinanceTransType string
type AccountStatus string
type CompanyType string
type WebhookType string
type SubaccountDocumentStatus string
type SubaccountDocumentType string
const (
ChargeTypeDetached ChargeType = "DETACHED"
ChargeTypeRecurrent ChargeType = "RECURRENT"
ChargeTypeInstallment ChargeType = "INSTALLMENT"
)
const (
SubaccountDocumentTypeIdentification SubaccountDocumentType = "IDENTIFICATION"
SubaccountDocumentTypeSocialContract SubaccountDocumentType = "SOCIAL_CONTRACT"
SubaccountDocumentTypeEntrepreneurRequirement SubaccountDocumentType = "ENTREPRENEUR_REQUIREMENT"
SubaccountDocumentTypeMinutesOfElection SubaccountDocumentType = "MINUTES_OF_ELECTION"
SubaccountDocumentTypeCustom SubaccountDocumentType = "CUSTOM"
)
const (
SubaccountDocumentStatusNotSent SubaccountDocumentStatus = "NOT_SENT"
SubaccountDocumentStatusPending SubaccountDocumentStatus = "PENDING"
SubaccountDocumentStatusApproved SubaccountDocumentStatus = "APPROVED"
SubaccountDocumentStatusRejected SubaccountDocumentStatus = "REJECTED"
)
const (
WebhookTypePayment WebhookType = "PAYMENT"
WebhookTypeInvoice WebhookType = "INVOICE"
WebhookTypeTransfer WebhookType = "TRANSFER"
WebhookTypeBill WebhookType = "BILL"
WebhookTypeReceivableAnticipation WebhookType = "RECEIVABLE_ANTICIPATION"
WebhookTypeMobilePhoneRecharge WebhookType = "MOBILE_PHONE_RECHARGE"
WebhookTypeAccountStatus WebhookType = "ACCOUNT_STATUS"
)
const (
CompanyTypeMei CompanyType = "MEI"
CompanyTypeLimited CompanyType = "LIMITED"
CompanyTypeIndividual CompanyType = "INDIVIDUAL"
CompanyTypeAssociation CompanyType = "ASSOCIATION"
)
const (
AccountStatusApproved AccountStatus = "APPROVED"
AccountStatusAwaitingActionAuthorization AccountStatus = "AWAITING_ACTION_AUTHORIZATION"
AccountStatusDenied AccountStatus = "DENIED"
AccountStatusPending AccountStatus = "PENDING"
)
const (
FinanceTransTypeAsaasCardRecharge FinanceTransType = "ASAAS_CARD_RECHARGE"
FinanceTransTypeAsaasCardRechargeReversal FinanceTransType = "ASAAS_CARD_RECHARGE_REVERSAL"
FinanceTransTypeAsaasCardTransaction FinanceTransType = "ASAAS_CARD_TRANSACTION"
FinanceTransTypeAsaasCardCashback FinanceTransType = "ASAAS_CARD_CASHBACK"
FinanceTransTypeAsaasCardTransactionFee FinanceTransType = "ASAAS_CARD_TRANSACTION_FEE"
FinanceTransTypeAsaasCardTransactionFeeRefund FinanceTransType = "ASAAS_CARD_TRANSACTION_FEE_REFUND"
FinanceTransTypeAsaasCardTransactionPartialRefundCancellation FinanceTransType = "ASAAS_CARD_TRANSACTION_PARTIAL_REFUND_CANCELLATION"
FinanceTransTypeAsaasCardTransactionRefund FinanceTransType = "ASAAS_CARD_TRANSACTION_REFUND"
FinanceTransTypeAsaasCardTransactionRefundCancellation FinanceTransType = "ASAAS_CARD_TRANSACTION_REFUND_CANCELLATION"
FinanceTransTypeAsaasMoneyPaymentAnticipationFeeRefund FinanceTransType = "ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE_REFUND"
FinanceTransTypeAsaasMoneyPaymentCompromisedBalance FinanceTransType = "ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE"
FinanceTransTypeAsaasMoneyPaymentCompromisedBalanceRefund FinanceTransType = "ASAAS_MONEY_PAYMENT_COMPROMISED_BALANCE_REFUND"
FinanceTransTypeAsaasMoneyPaymentFinancingFee FinanceTransType = "ASAAS_MONEY_PAYMENT_FINANCING_FEE"
FinanceTransTypeAsaasMoneyPaymentFinancingFeeRefund FinanceTransType = "ASAAS_MONEY_PAYMENT_FINANCING_FEE_REFUND"
FinanceTransTypeAsaasMoneyTransactionCashback FinanceTransType = "ASAAS_MONEY_TRANSACTION_CASHBACK"
FinanceTransTypeAsaasMoneyTransactionCashbackRefund FinanceTransType = "ASAAS_MONEY_TRANSACTION_CASHBACK_REFUND"
FinanceTransTypeAsaasMoneyTransactionChargeback FinanceTransType = "ASAAS_MONEY_TRANSACTION_CHARGEBACK"
FinanceTransTypeAsaasMoneyTransactionChargebackReversal FinanceTransType = "ASAAS_MONEY_TRANSACTION_CHARGEBACK_REVERSAL"
FinanceTransTypeBillPayment FinanceTransType = "BILL_PAYMENT"
FinanceTransTypeBillPaymentCancelled FinanceTransType = "BILL_PAYMENT_CANCELLED"
FinanceTransTypeBillPaymentRefunded FinanceTransType = "BILL_PAYMENT_REFUNDED"
FinanceTransTypeBillPaymentFee FinanceTransType = "BILL_PAYMENT_FEE"
FinanceTransTypeBillPaymentFeeCancelled FinanceTransType = "BILL_PAYMENT_FEE_CANCELLED"
FinanceTransTypeChargeback FinanceTransType = "CHARGEBACK"
FinanceTransTypeChargebackReversal FinanceTransType = "CHARGEBACK_REVERSAL"
FinanceTransTypeChargedFeeRefund FinanceTransType = "CHARGED_FEE_REFUND"
FinanceTransTypeContractualEffectSettlement FinanceTransType = "CONTRACTUAL_EFFECT_SETTLEMENT"
FinanceTransTypeContractualEffectSettlementReversal FinanceTransType = "CONTRACTUAL_EFFECT_SETTLEMENT_REVERSAL"
FinanceTransTypeCredit FinanceTransType = "CREDIT"
FinanceTransTypeCreditBureauReport FinanceTransType = "CREDIT_BUREAU_REPORT"
FinanceTransTypeCustomerCommissionSettlementCredit FinanceTransType = "CUSTOMER_COMMISSION_SETTLEMENT_CREDIT"
FinanceTransTypeCustomerCommissionSettlementDebit FinanceTransType = "CUSTOMER_COMMISSION_SETTLEMENT_DEBIT"
FinanceTransTypeDebit FinanceTransType = "DEBIT"
FinanceTransTypeDebitReversal FinanceTransType = "DEBIT_REVERSAL"
FinanceTransTypeDebtRecoveryNegotiationFinancialCharges FinanceTransType = "DEBT_RECOVERY_NEGOTIATION_FINANCIAL_CHARGES"
FinanceTransTypeFreePaymentUse FinanceTransType = "FREE_PAYMENT_USE"
FinanceTransTypeInternalTransferCredit FinanceTransType = "INTERNAL_TRANSFER_CREDIT"
FinanceTransTypeInternalTransferDebit FinanceTransType = "INTERNAL_TRANSFER_DEBIT"
FinanceTransTypeInternalTransferReversal FinanceTransType = "INTERNAL_TRANSFER_REVERSAL"
FinanceTransTypeInvoiceFee FinanceTransType = "INVOICE_FEE"
FinanceTransTypePartialPayment FinanceTransType = "PARTIAL_PAYMENT"
FinanceTransTypePaymentDunningCancellationFee FinanceTransType = "PAYMENT_DUNNING_CANCELLATION_FEE"
FinanceTransTypePaymentDunningReceivedFee FinanceTransType = "PAYMENT_DUNNING_RECEIVED_FEE"
FinanceTransTypePaymentDunningReceivedInCashFee FinanceTransType = "PAYMENT_DUNNING_RECEIVED_IN_CASH_FEE"
FinanceTransTypePaymentDunningRequestFee FinanceTransType = "PAYMENT_DUNNING_REQUEST_FEE"
FinanceTransTypePaymentFee FinanceTransType = "PAYMENT_FEE"
FinanceTransTypePaymentFeeReversal FinanceTransType = "PAYMENT_FEE_REVERSAL"
FinanceTransTypePaymentMessagingNotificationFee FinanceTransType = "PAYMENT_MESSAGING_NOTIFICATION_FEE"
FinanceTransTypePaymentReceived FinanceTransType = "PAYMENT_RECEIVED"
FinanceTransTypePaymentCustodyBlock FinanceTransType = "PAYMENT_CUSTODY_BLOCK"
FinanceTransTypePaymentCustodyBlockReversal FinanceTransType = "PAYMENT_CUSTODY_BLOCK_REVERSAL"
FinanceTransTypePaymentRefundCancelled FinanceTransType = "PAYMENT_REFUND_CANCELLED"
FinanceTransTypePaymentReversal FinanceTransType = "PAYMENT_REVERSAL"
FinanceTransTypePaymentSmsNotificationFee FinanceTransType = "PAYMENT_SMS_NOTIFICATION_FEE"
FinanceTransTypePaymentInstantTextMessageFee FinanceTransType = "PAYMENT_INSTANT_TEXT_MESSAGE_FEE"
FinanceTransTypePhoneCallNotificationFee FinanceTransType = "PHONE_CALL_NOTIFICATION_FEE"
FinanceTransTypePixTransactionCredit FinanceTransType = "PIX_TRANSACTION_CREDIT"
FinanceTransTypePixTransactionCreditFee FinanceTransType = "PIX_TRANSACTION_CREDIT_FEE"
FinanceTransTypePixTransactionCreditRefund FinanceTransType = "PIX_TRANSACTION_CREDIT_REFUND"
FinanceTransTypePixTransactionCreditRefundCancellation FinanceTransType = "PIX_TRANSACTION_CREDIT_REFUND_CANCELLATION"
FinanceTransTypePixTransactionDebit FinanceTransType = "PIX_TRANSACTION_DEBIT"
FinanceTransTypePixTransactionDebitFee FinanceTransType = "PIX_TRANSACTION_DEBIT_FEE"
FinanceTransTypePixTransactionDebitRefund FinanceTransType = "PIX_TRANSACTION_DEBIT_REFUND"
FinanceTransTypePostalServiceFee FinanceTransType = "POSTAL_SERVICE_FEE"
FinanceTransTypeProductInvoiceFee FinanceTransType = "PRODUCT_INVOICE_FEE"
FinanceTransTypeConsumerInvoiceFee FinanceTransType = "CONSUMER_INVOICE_FEE"
FinanceTransTypePromotionalCodeCredit FinanceTransType = "PROMOTIONAL_CODE_CREDIT"
FinanceTransTypePromotionalCodeDebit FinanceTransType = "PROMOTIONAL_CODE_DEBIT"
FinanceTransTypeReceivableAnticipationGrossCredit FinanceTransType = "RECEIVABLE_ANTICIPATION_GROSS_CREDIT"
FinanceTransTypeReceivableAnticipationDebit FinanceTransType = "RECEIVABLE_ANTICIPATION_DEBIT"
FinanceTransTypeReceivableAnticipationFee FinanceTransType = "RECEIVABLE_ANTICIPATION_FEE"
FinanceTransTypeReceivableAnticipationPartnerSettlement FinanceTransType = "RECEIVABLE_ANTICIPATION_PARTNER_SETTLEMENT"
FinanceTransTypeRefundRequestCancelled FinanceTransType = "REFUND_REQUEST_CANCELLED"
FinanceTransTypeRefundRequestFee FinanceTransType = "REFUND_REQUEST_FEE"
FinanceTransTypeRefundRequestFeeReversal FinanceTransType = "REFUND_REQUEST_FEE_REVERSAL"
FinanceTransTypeReversal FinanceTransType = "REVERSAL"
FinanceTransTypeTransfer FinanceTransType = "TRANSFER"
FinanceTransTypeTransferFee FinanceTransType = "TRANSFER_FEE"
FinanceTransTypeTransferReversal FinanceTransType = "TRANSFER_REVERSAL"
FinanceTransTypeMobilePhoneRecharge FinanceTransType = "MOBILE_PHONE_RECHARGE"
FinanceTransTypeRefundMobilePhoneRecharge FinanceTransType = "REFUND_MOBILE_PHONE_RECHARGE"
FinanceTransTypeCancelMobilePhoneRecharge FinanceTransType = "CANCEL_MOBILE_PHONE_RECHARGE"
FinanceTransTypeInstantTextMessageFee FinanceTransType = "INSTANT_TEXT_MESSAGE_FEE"
FinanceTransTypeAsaasCardBalanceRefund FinanceTransType = "ASAAS_CARD_BALANCE_REFUND"
FinanceTransTypeAsaasMoneyPaymentAnticipationFee FinanceTransType = "ASAAS_MONEY_PAYMENT_ANTICIPATION_FEE"
FinanceTransTypeBacenJudicialLock FinanceTransType = "BACEN_JUDICIAL_LOCK"
FinanceTransTypeBacenJudicialUnlock FinanceTransType = "BACEN_JUDICIAL_UNLOCK"
FinanceTransTypeBacenJudicialTransfer FinanceTransType = "BACEN_JUDICIAL_TRANSFER"
FinanceTransTypeAsaasDebitCardRequestFee FinanceTransType = "ASAAS_DEBIT_CARD_REQUEST_FEE"
FinanceTransTypeAsaasPrepaidCardRequestFee FinanceTransType = "ASAAS_PREPAID_CARD_REQUEST_FEE"
FinanceTransTypeExternalSettlementContractualEffectBatchCredit FinanceTransType = "EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_CREDIT"
FinanceTransTypeExternalSettlementContractualEffectBatchReversal FinanceTransType = "EXTERNAL_SETTLEMENT_CONTRACTUAL_EFFECT_BATCH_REVERSAL"
FinanceTransTypeAsaasCardBillPayment FinanceTransType = "ASAAS_CARD_BILL_PAYMENT"
FinanceTransTypeAsaasCardBillPaymentRefund FinanceTransType = "ASAAS_CARD_BILL_PAYMENT_REFUND"
FinanceTransTypeChildAccountKnownYourCustomerBatchFee FinanceTransType = "CHILD_ACCOUNT_KNOWN_YOUR_CUSTOMER_BATCH_FEE"
FinanceTransTypeContractedCustomerPlanFee FinanceTransType = "CONTRACTED_CUSTOMER_PLAN_FEE"
)
const (
MobilePhoneRechargeStatusWaitingCriticalAction MobilePhoneRechargeStatus = "WAITING_CRITICAL_ACTION"
MobilePhoneRechargeStatusPending MobilePhoneRechargeStatus = "PENDING"
MobilePhoneRechargeStatusConfirmed MobilePhoneRechargeStatus = "CONFIRMED"
MobilePhoneRechargeStatusCancelled MobilePhoneRechargeStatus = "CANCELLED"
)
const (
BillPaymentStatusPending BillPaymentStatus = "PENDING"
BillPaymentStatusBankProcessing BillPaymentStatus = "BANK_PROCESSING"
BillPaymentStatusBankPaid BillPaymentStatus = "PAID"
BillPaymentStatusFailed BillPaymentStatus = "FAILED"
BillPaymentStatusCancelled BillPaymentStatus = "CANCELLED"
)
const (
FileMimeTypePdf FileMimeType = "application/pdf"
FileMimeTypeText FileMimeType = "text/plain"
FileMimeTypeAvif FileMimeType = "image/avif"
FileMimeTypeCss FileMimeType = "text/css; charset=utf-8"
FileMimeTypeGif FileMimeType = "image/gif"
FileMimeTypeHtml FileMimeType = "text/html; charset=utf-8"
FileMimeTypeJpeg FileMimeType = "image/jpeg"
FileMimeTypeJs FileMimeType = "text/javascript; charset=utf-8"
FileMimeTypeJson FileMimeType = "application/json"
FileMimeTypePng FileMimeType = "image/png"
FileMimeTypeSvg FileMimeType = "image/svg+xml"
FileMimeTypeWasm FileMimeType = "application/wasm"
FileMimeTypeWebp FileMimeType = "image/webp"
FileMimeTypeXml FileMimeType = "text/xml; charset=utf-8"
)
const (
NegativityTypeCreditBureau NegativityType = "CREDIT_BUREAU"
)
const (
NegativityStatusPending NegativityStatus = "PENDING"
NegativityStatusAwaitingApproval NegativityStatus = "AWAITING_APPROVAL"
NegativityStatusAwaitingCancellation NegativityStatus = "AWAITING_CANCELLATION"
NegativityStatusProcessed NegativityStatus = "PROCESSED"
NegativityStatusPaid NegativityStatus = "PAID"
NegativityStatusPartiallyPaid NegativityStatus = "PARTIALLY_PAID"
NegativityStatusDenied NegativityStatus = "DENIED"
NegativityStatusCancelled NegativityStatus = "CANCELLED"
)
const (
AnticipationStatusPending AnticipationStatus = "PENDING"
AnticipationStatusDenied AnticipationStatus = "DENIED"
AnticipationStatusCredited AnticipationStatus = "CREDITED"
AnticipationStatusDebited AnticipationStatus = "DEBITED"
AnticipationStatusCancelled AnticipationStatus = "CANCELLED"
AnticipationStatusOverdue AnticipationStatus = "OVERDUE"
AnticipationStatusScheduled AnticipationStatus = "SCHEDULED"
)
const (
TransferTypeBankAccount TransferType = "BANK_ACCOUNT"
TransferTypeAsaasAccount TransferType = "ASAAS_ACCOUNT"
)
const (
BankAccountTypeChecking BankAccountType = "CONTA_CORRENTE"
BankAccountTypeSavings BankAccountType = "CONTA_POUPANCA"
)
const (
TransferOperationTypePix TransferOperationType = "PIX"
TransferOperationTypeTed TransferOperationType = "TED"
TransferOperationTypeInternal TransferOperationType = "INTERNAL"
)
const (
TransferStatusPending TransferStatus = "PENDING"
TransferStatusBankProcessing TransferStatus = "BANK_PROCESSING"
TransferStatusDone TransferStatus = "DONE"
TransferStatusCancelled TransferStatus = "CANCELLED"
TransferStatusFailed TransferStatus = "FAILED"
)
const (
PersonTypePhysical PersonType = "FISICA"
PersonTypeJuridical PersonType = "JURIDICA"
)
const (
HttpContentTypeJSON = "application/json"
HttpContentTypeText = "text/plain"
)
const (
SortPaymentBookDueDate = "dueDate"
)
const (
AccountTypeCheckingAccount AccountType = "CHECKING_ACCOUNT"
AccountTypeSalaryAccount AccountType = "SALARY_ACCOUNT"
AccountTypeInvestimentAccount AccountType = "INVESTIMENT_ACCOUNT"
AccountTypeTypePaymentAccount AccountType = "PAYMENT_ACCOUNT"
)
const (
PixQrCodeTypeStatic PixQrCodeType = "STATIC"
PixQrCodeTypeDynamic PixQrCodeType = "DYNAMIC"
)
const (
PixTransactionOriginManual PixTransactionOriginType = "MANUAL"
PixTransactionOriginAddressKey PixTransactionOriginType = "ADDRESS_KEY"
PixTransactionOriginStaticQrcode PixTransactionOriginType = "STATIC_QRCODE"
PixTransactionOriginDynamicQrcode PixTransactionOriginType = "DYNAMIC_QRCODE"
PixTransactionOriginExternalDebit PixTransactionOriginType = "EXTERNAL_DEBIT"
)
const (
PixTransactionTypeDebit PixTransactionType = "DEBIT"
PixTransactionTypeCredit PixTransactionType = "CREDIT"
PixTransactionTypeCreditRefund PixTransactionType = "CREDIT_REFUND"
PixTransactionTypeDebitRefund PixTransactionType = "DEBIT_REFUND"
PixTransactionTypeDebitRefundCancellation PixTransactionType = "DEBIT_REFUND_CANCELLATION"
)
const (
PixTransactionFinalityWithdrawal PixTransactionFinality = "WITHDRAWAL"
PixTransactionFinalityChange PixTransactionFinality = "CHANGE"
)
const (
PixTransactionStatusAwaitingRequest PixTransactionStatus = "AWAITING_REQUEST"
PixTransactionStatusDone PixTransactionStatus = "DONE"
PixTransactionStatusRequested PixTransactionStatus = "REQUESTED"
PixTransactionStatusScheduled PixTransactionStatus = "SCHEDULED"
PixTransactionStatusRefused PixTransactionStatus = "REFUSED"
PixTransactionStatusError PixTransactionStatus = "ERROR"
PixTransactionStatusCancelled PixTransactionStatus = "CANCELLED"
)
const (
QrCodeFormatAll QrCodeFormat = "ALL"
QrCodeFormatImage QrCodeFormat = "IMAGE"
QrCodeFormatPayload QrCodeFormat = "PAYLOAD"
)
const (
PixKeyTypeCpf PixKeyType = "CPF"
PixKeyTypeCnpj PixKeyType = "CNPJ"
PixKeyTypeEmail PixKeyType = "EMAIL"
PixKeyTypePhone PixKeyType = "PHONE"
PixKeyTypeEvp PixKeyType = "EVP"
)
const (
PixKeyStatusAwaitingActivation PixKeyStatus = "AWAITING_ACTIVATION"
PixKeyStatusAwaitingActive PixKeyStatus = "ACTIVE"
PixKeyStatusAwaitingDeletion PixKeyStatus = "AWAITING_DELETION"
PixKeyStatusAwaitingAccountDeletion PixKeyStatus = "AWAITING_ACCOUNT_DELETION"
PixKeyStatusAwaitingDeleted PixKeyStatus = "AWAITING_DELETED"
PixKeyStatusAwaitingError PixKeyStatus = "AWAITING_ERROR"
)
const (
InvoiceDaysBeforeDuedateFive InvoiceDaysBeforeDueDate = 5
InvoiceDaysBeforeDuedateTen InvoiceDaysBeforeDueDate = 10
InvoiceDaysBeforeDuedateFifteen InvoiceDaysBeforeDueDate = 15
InvoiceDaysBeforeDuedateThirty InvoiceDaysBeforeDueDate = 30
InvoiceDaysBeforeDuedateSixty InvoiceDaysBeforeDueDate = 60
)
const (
EffectiveDatePeriodOnPaymentConfirmation EffectiveDatePeriod = "ON_PAYMENT_CONFIRMATION"
EffectiveDatePeriodOnPaymentDueDate EffectiveDatePeriod = "ON_PAYMENT_DUE_DATE"
EffectiveDatePeriodBeforePaymentDueDate EffectiveDatePeriod = "BEFORE_PAYMENT_DUE_DATE"
EffectiveDatePeriodOnDueDateMonth EffectiveDatePeriod = "ON_DUE_DATE_MONTH"
EffectiveDatePeriodOnNextMonth EffectiveDatePeriod = "ON_NEXT_MONTH"
)
const (
InvoiceStatusScheduled InvoiceStatus = "SCHEDULED"
InvoiceStatusSynchronized InvoiceStatus = "SYNCHRONIZED"
InvoiceStatusAuthorized InvoiceStatus = "AUTHORIZED"
InvoiceStatusProcessingCancellation InvoiceStatus = "PROCESSING_CANCELLATION"
InvoiceStatusCanceled InvoiceStatus = "CANCELED"
InvoiceStatusCancellationDenied InvoiceStatus = "CANCELLATION_DENIED"
InvoiceStatusError InvoiceStatus = "ERROR"
)
const (
SortSubscriptionFieldDateCreated SortSubscriptionField = "dateCreated"
)
const (
OrderDesc Order = "desc"
OrderAsc Order = "asc"
)
const (
SubscriptionStatusActive SubscriptionStatus = "ACTIVE"
SubscriptionStatusInactive SubscriptionStatus = "INACTIVE"
SubscriptionStatusExpired SubscriptionStatus = "EXPIRED"
)
const (
SubscriptionCycleWeekly SubscriptionCycle = "WEEKLY"
SubscriptionCycleBiweekly SubscriptionCycle = "BIWEEKLY"
SubscriptionCycleMonthly SubscriptionCycle = "MONTHLY"
SubscriptionCycleBimonthly SubscriptionCycle = "BIMONTHLY"
SubscriptionCycleQuarterly SubscriptionCycle = "QUARTERLY"
SubscriptionCycleSemiannually SubscriptionCycle = "SEMIANNUALLY"
SubscriptionCycleYearly SubscriptionCycle = "YEARLY"
)
const (
BillingTypeBankSlip BillingType = "BOLETO"
BillingTypeCreditCard BillingType = "CREDIT_CARD"
BillingTypeUndefined BillingType = "UNDEFINED"
BillingTypeDebitCard BillingType = "DEBIT_CARD"
BillingTypeTransfer BillingType = "TRANSFER"
BillingTypeDeposit BillingType = "DEPOSIT"
BillingTypePix BillingType = "PIX"
)
const (
ChargeStatusPending ChargeStatus = "PENDING"
ChargeStatusReceived ChargeStatus = "RECEIVED"
ChargeStatusConfirmed ChargeStatus = "CONFIRMED"
ChargeStatusOverdue ChargeStatus = "OVERDUE"
ChargeStatusRefunded ChargeStatus = "REFUNDED"
ChargeStatusReceivedInCash ChargeStatus = "RECEIVED_IN_CASH"
ChargeStatusRefundRequested ChargeStatus = "REFUND_REQUESTED"
ChargeStatusRefundInProgress ChargeStatus = "REFUND_IN_PROGRESS"
ChargeStatusChargebackRequested ChargeStatus = "CHARGEBACK_REQUESTED"
ChargeStatusChargebackDispute ChargeStatus = "CHARGEBACK_DISPUTE"
ChargeStatusAwaitingChargebackReversal ChargeStatus = "AWAITING_CHARGEBACK_REVERSAL"
ChargeStatusDunningRequested ChargeStatus = "DUNNING_REQUESTED"
ChargeStatusDunningReceived ChargeStatus = "DUNNING_RECEIVED"
ChargeStatusAwaitingRiskAnalysis ChargeStatus = "AWAITING_RISK_ANALYSIS"
)
const (
ChargebackReason1 ChargebackReason = "ABSENCE_OF_PRINT"
ChargebackReason2 ChargebackReason = "ABSENT_CARD_FRAUD"
ChargebackReason3 ChargebackReason = "CARD_ACTIVATED_PHONE_TRANSACTION"
ChargebackReason4 ChargebackReason = "CARD_FRAUD"
ChargebackReason5 ChargebackReason = "CARD_RECOVERY_BULLETIN"
ChargebackReason6 ChargebackReason = "COMMERCIAL_DISAGREEMENT"
ChargebackReason7 ChargebackReason = "COPY_NOT_RECEIVED"
ChargebackReason8 ChargebackReason = "CREDIT_OR_DEBIT_PRESENTATION_ERROR"
ChargebackReason9 ChargebackReason = "DIFFERENT_PAY_METHOD"
ChargebackReason10 ChargebackReason = "FRAUD"
ChargebackReason11 ChargebackReason = "INCORRECT_TRANSACTION_VALUE"
ChargebackReason12 ChargebackReason = "INVALID_CURRENCY"
ChargebackReason13 ChargebackReason = "INVALID_DATA"
ChargebackReason14 ChargebackReason = "LATE_PRESENTATION"
ChargebackReason15 ChargebackReason = "LOCAL_REGULATORY_OR_LEGAL_DISPUTE"
ChargebackReason16 ChargebackReason = "MULTIPLE_ROCS"
ChargebackReason17 ChargebackReason = "ORIGINAL_CREDIT_TRANSACTION_NOT_ACCEPTED"
ChargebackReason18 ChargebackReason = "OTHER_ABSENT_CARD_FRAUD"
ChargebackReason19 ChargebackReason = "PROCESS_ERROR"
ChargebackReason20 ChargebackReason = "RECEIVED_COPY_ILLEGIBLE_OR_INCOMPLETE"
ChargebackReason21 ChargebackReason = "RECURRENCE_CANCELED"
ChargebackReason22 ChargebackReason = "REQUIRED_AUTHORIZATION_NOT_GRANTED"
ChargebackReason23 ChargebackReason = "RIGHT_OF_FULL_RECOURSE_FOR_FRAUD"
ChargebackReason24 ChargebackReason = "SALE_CANCELED"
ChargebackReason25 ChargebackReason = "SERVICE_DISAGREEMENT_OR_DEFECTIVE_PRODUCT"
ChargebackReason26 ChargebackReason = "SERVICE_NOT_RECEIVED"
ChargebackReason27 ChargebackReason = "SPLIT_SALE"
ChargebackReason28 ChargebackReason = "TRANSFERS_OF_DIVERSE_RESPONSIBILITIES"
ChargebackReason29 ChargebackReason = "UNQUALIFIED_CAR_RENTAL_DEBIT"
ChargebackReason30 ChargebackReason = "USA_CARDHOLDER_DISPUTE"
ChargebackReason31 ChargebackReason = "VISA_FRAUD_MONITORING_PROGRAM"
ChargebackReason32 ChargebackReason = "WARNING_BULLETIN_FILE"
)
const (
ChargebackStatusRequested ChargebackStatus = "REQUESTED"
ChargebackStatusInDispute ChargebackStatus = "IN_DISPUTE"
ChargebackStatusLost ChargebackStatus = "LOST"
ChargebackStatusReversed ChargebackStatus = "REVERSED"
ChargebackStatusDone ChargebackStatus = "DONE"
)
const (
DiscountTypeFixed DiscountType = "FIXED"
DiscountTypePercentage DiscountType = "PERCENTAGE"
)
const (
EnvSandbox Env = iota
EnvProduction Env = iota
)
const (
FineTypeFixed FineType = "FIXED"
FineTypePercentage FineType = "PERCENTAGE"
)
const (
InterestTypeFixed InterestType = "FIXED"
InterestTypePercentage InterestType = "PERCENTAGE"
)
const (
RefundStatusPending RefundStatus = "PENDING"
RefundStatusCancelled RefundStatus = "CANCELLED"
RefundStatusDone RefundStatus = "DONE"
)
const (
SplitRefusalReason1 SplitRefusalReason = "RECEIVABLE_UNIT_AFFECTED_BY_EXTERNAL_CONTRACTUAL_EFFECT"
)
const (
SplitStatusPending SplitStatus = "PENDING"
SplitStatusAwaitingCredit SplitStatus = "AWAITING_CREDIT"
SplitStatusCancelled SplitStatus = "CANCELLED"
SplitStatusDone SplitStatus = "DONE"
SplitStatusRefused SplitStatus = "REFUSED"
)
const (
DocumentTypeInvoice DocumentType = "INVOICE"
DocumentTypeContract DocumentType = "CONTRACT"
DocumentTypeDocument DocumentType = "DOCUMENT"
DocumentTypeSpreadsheet DocumentType = "SPREADSHEET"
DocumentTypeProgram DocumentType = "PROGRAM"
DocumentTypeOther DocumentType = "OTHER"
)
const (
NotificationEventPaymentCreated NotificationEvent = "PAYMENT_CREATED"
NotificationEventPaymentDuedateWarning NotificationEvent = "PAYMENT_DUEDATE_WARNING"
NotificationEventPaymentReceived NotificationEvent = "PAYMENT_RECEIVED"
NotificationEventSendLinhaDigitavel NotificationEvent = "SEND_LINHA_DIGITAVEL"
NotificationEventPaymentOverdue NotificationEvent = "PAYMENT_OVERDUE"
NotificationEventPaymentUpdated NotificationEvent = "PAYMENT_UPDATED"
)
func (a Env) String() string {
return []string{"SANDBOX", "PRODUCTION"}[a]
}
func (f FileMimeType) String() string {
return string(f)
}
func (a Env) BaseUrl() string {
return []string{"https://sandbox.asaas.com/api", "https://api.asaas.com"}[a]
}
func (t WebhookType) PathUrl() string {
switch t {
case WebhookTypeInvoice:
return "/invoice"
case WebhookTypeReceivableAnticipation:
return "/anticipation"
case WebhookTypeTransfer:
return "/transfer"
case WebhookTypeBill:
return "/bill"
case WebhookTypeMobilePhoneRecharge:
return "/mobilePhoneRecharge"
case WebhookTypeAccountStatus:
return "/accountStatus"
}
return "/"
}