|
| 1 | +package btcpay |
| 2 | + |
| 3 | +// Enums SpeedPolicy |
| 4 | +type BTCPaySpeedPolicy string |
| 5 | + |
| 6 | +type SpeedPolicy struct { |
| 7 | + HighSpeed BTCPaySpeedPolicy |
| 8 | + MediumSpeed BTCPaySpeedPolicy |
| 9 | + LowMediumSpeed BTCPaySpeedPolicy |
| 10 | + LowSpeed BTCPaySpeedPolicy |
| 11 | +} |
| 12 | + |
| 13 | +func GetSpeedPolicy() *SpeedPolicy { |
| 14 | + return &SpeedPolicy{ |
| 15 | + HighSpeed: "HighSpeed", |
| 16 | + MediumSpeed: "MediumSpeed", |
| 17 | + LowMediumSpeed: "LowMediumSpeed", |
| 18 | + LowSpeed: "LowSpeed", |
| 19 | + } |
| 20 | +} |
| 21 | + |
| 22 | +// Enums InvoiceStatus |
| 23 | +type BTCPayInvoiceStatus string |
| 24 | + |
| 25 | +type InvoiceStatus struct { |
| 26 | + New BTCPayInvoiceStatus |
| 27 | + Processing BTCPayInvoiceStatus |
| 28 | + Expired BTCPayInvoiceStatus |
| 29 | + Invalid BTCPayInvoiceStatus |
| 30 | + Settled BTCPayInvoiceStatus |
| 31 | +} |
| 32 | + |
| 33 | +func GetInvoiceStatus() *InvoiceStatus { |
| 34 | + return &InvoiceStatus{ |
| 35 | + New: "New", |
| 36 | + Processing: "Processing", |
| 37 | + Expired: "Expired", |
| 38 | + Invalid: "Invalid", |
| 39 | + Settled: "Settled", |
| 40 | + } |
| 41 | +} |
| 42 | + |
| 43 | +// Enums InvoiceAdditionalStatus |
| 44 | +type BTCPayInvoiceAdditionalStatus string |
| 45 | + |
| 46 | +type InvoiceAdditionalStatus struct { |
| 47 | + None BTCPayInvoiceAdditionalStatus |
| 48 | + PaidLate BTCPayInvoiceAdditionalStatus |
| 49 | + PaidPartial BTCPayInvoiceAdditionalStatus |
| 50 | + Marked BTCPayInvoiceAdditionalStatus |
| 51 | + AddInvalid BTCPayInvoiceAdditionalStatus |
| 52 | + PaidOver BTCPayInvoiceAdditionalStatus |
| 53 | +} |
| 54 | + |
| 55 | +func GetInvoiceAdditionalStatus() *InvoiceAdditionalStatus { |
| 56 | + return &InvoiceAdditionalStatus{ |
| 57 | + None: "None", |
| 58 | + PaidLate: "PaidLate", |
| 59 | + PaidPartial: "PaidPartial", |
| 60 | + Marked: "Marked", |
| 61 | + AddInvalid: "Invalid", |
| 62 | + PaidOver: "PaidOver", |
| 63 | + } |
| 64 | + |
| 65 | +} |
| 66 | + |
| 67 | +// Enums InvoiceStatusMark |
| 68 | +type BTCPayInvoiceStatusMark string |
| 69 | + |
| 70 | +type InvoiceStatusMark struct { |
| 71 | + MarkInvalid BTCPayInvoiceStatusMark |
| 72 | + MarkComplete BTCPayInvoiceStatusMark |
| 73 | +} |
| 74 | + |
| 75 | +func GetInvoiceStatusMark() *InvoiceStatusMark { |
| 76 | + return &InvoiceStatusMark{ |
| 77 | + MarkInvalid: "Invalid", |
| 78 | + MarkComplete: "Complete", |
| 79 | + } |
| 80 | +} |
| 81 | + |
| 82 | +// Enums PaymentStatus |
| 83 | +type BTCPayPaymentStatus string |
| 84 | + |
| 85 | +type PaymentStatus struct { |
| 86 | + New BTCPayPaymentStatus |
| 87 | + Processing BTCPayPaymentStatus |
| 88 | + Expired BTCPayPaymentStatus |
| 89 | + Invalid BTCPayPaymentStatus |
| 90 | + Settled BTCPayPaymentStatus |
| 91 | +} |
| 92 | + |
| 93 | +func GetPaymentStatus() *PaymentStatus { |
| 94 | + return &PaymentStatus{ |
| 95 | + Processing: "Processing", |
| 96 | + Invalid: "Invalid", |
| 97 | + Settled: "Settled", |
| 98 | + } |
| 99 | +} |
| 100 | + |
| 101 | +// Enums PaymentRequestStatus |
| 102 | +type BTCPayPaymentRequestStatus string |
| 103 | + |
| 104 | +type PaymentRequestStatus struct { |
| 105 | + Pending BTCPayInvoiceStatus |
| 106 | + Completed BTCPayInvoiceStatus |
| 107 | + Expired BTCPayInvoiceStatus |
| 108 | +} |
| 109 | + |
| 110 | +func GetPaymentRequestStatus() *PaymentRequestStatus { |
| 111 | + return &PaymentRequestStatus{ |
| 112 | + Pending: "Pending", |
| 113 | + Completed: "Completed", |
| 114 | + Expired: "Expired", |
| 115 | + } |
| 116 | +} |
| 117 | + |
| 118 | +// Enums NetworkFeeMode |
| 119 | +type BTCPayPayoutStatus string |
| 120 | + |
| 121 | +type PayoutStatus struct { |
| 122 | + AwaitingApproval BTCPayPayoutStatus |
| 123 | + AwaitingPayment BTCPayPayoutStatus |
| 124 | + InProgress BTCPayPayoutStatus |
| 125 | + Completed BTCPayPayoutStatus |
| 126 | + Cancelled BTCPayPayoutStatus |
| 127 | +} |
| 128 | + |
| 129 | +func GetPayoutStatus() *PayoutStatus { |
| 130 | + return &PayoutStatus{ |
| 131 | + AwaitingApproval: "AwaitingApproval", |
| 132 | + AwaitingPayment: "AwaitingPayment", |
| 133 | + InProgress: "InProgress", |
| 134 | + Completed: "Completed", |
| 135 | + Cancelled: "Cancelled", |
| 136 | + } |
| 137 | +} |
| 138 | + |
| 139 | +// Enums NetworkFeeMode |
| 140 | +type BTCPayNetworkFeeMode string |
| 141 | + |
| 142 | +type NetworkFeeMode struct { |
| 143 | + MultiplePaymentsOnly BTCPayNetworkFeeMode |
| 144 | + Always BTCPayNetworkFeeMode |
| 145 | + Never BTCPayNetworkFeeMode |
| 146 | +} |
| 147 | + |
| 148 | +func GetNetworkFeeMode() *NetworkFeeMode { |
| 149 | + return &NetworkFeeMode{ |
| 150 | + MultiplePaymentsOnly: "MultiplePaymentsOnly", |
| 151 | + Always: "Always", |
| 152 | + Never: "Never", |
| 153 | + } |
| 154 | +} |
0 commit comments