-
Notifications
You must be signed in to change notification settings - Fork 1
/
vipps_recurring_payments.routing.yml
132 lines (120 loc) · 3.93 KB
/
vipps_recurring_payments.routing.yml
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
system.vipps:
path: '/admin/config/vipps'
defaults:
_controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
_title: 'Vipps configuration options'
requirements:
_permission: 'administer site configuration'
vipps_recurring_payments.settings:
path: '/admin/config/vipps/vipps-recurring-payments'
defaults:
_form: '\Drupal\vipps_recurring_payments\Form\SettingsForm'
_title: 'Vipps recurring payments configuration'
requirements:
_permission: 'administer site configuration'
vipps_recurring_payments.test_auth:
path: '/vipps-recurring-payments/test/auth'
defaults:
_controller: Drupal\vipps_recurring_payments\Controller\TestController:auth
options:
_auth: [ 'basic_auth' ]
requirements:
_user_is_logged_in: 'TRUE'
_format: json
vipps_recurring_payments.make_charges:
path: '/vipps-recurring-payments/charge/make'
methods: [POST]
defaults:
_controller: Drupal\vipps_recurring_payments\Controller\ChargeController:make
options:
_auth: [ 'basic_auth' ]
requirements:
_user_is_logged_in: 'TRUE'
_format: json
vipps_recurring_payments.cancel_charges:
path: '/vipps-recurring-payments/charge/cancel'
methods: [POST]
defaults:
_controller: Drupal\vipps_recurring_payments\Controller\ChargeController:cancel
options:
_auth: [ 'basic_auth' ]
requirements:
_user_is_logged_in: 'TRUE'
_format: json
vipps_recurring_payments.refund_charges:
path: '/vipps-recurring-payments/charge/refund'
methods: [POST]
defaults:
_controller: Drupal\vipps_recurring_payments\Controller\ChargeController:refund
options:
_auth: [ 'basic_auth' ]
requirements:
_user_is_logged_in: 'TRUE'
_format: json
vipps_recurring_payments.get_charges:
path: '/vipps-recurring-payments/charge/get'
methods: [POST]
defaults:
_controller: Drupal\vipps_recurring_payments\Controller\ChargeController:get
options:
_auth: [ 'basic_auth' ]
requirements:
_user_is_logged_in: 'TRUE'
_format: json
vipps_recurring_payments.get_agreement:
path: '/vipps-recurring-payments/agreement/get'
methods: [POST]
defaults:
_controller: Drupal\vipps_recurring_payments\Controller\AgreementController:get
options:
_auth: [ 'basic_auth' ]
requirements:
_user_is_logged_in: 'TRUE'
_format: json
vipps_recurring_payments.cancel_agreement:
path: '/vipps-recurring-payments/agreement/cancel'
methods: [POST]
defaults:
_controller: Drupal\vipps_recurring_payments\Controller\AgreementController:cancel
options:
_auth: [ 'basic_auth' ]
requirements:
_user_is_logged_in: 'TRUE'
_format: json
vipps_recurring_payments.merchant_agreement:
path: '/vrp/merchant-agreement'
defaults:
_controller: Drupal\vipps_recurring_payments\Controller\AgreementController:merchantAgreement
requirements:
_access: 'TRUE'
entity.vipps_agreements.cancel_form:
path: '/admin/config/vipps/vipps-agreements/{vipps_agreements}/cancel'
defaults:
# Calls the form.cancel controller, defined in the contact entity.
_entity_form: vipps_agreements.cancel
_title: 'Cancel agreement'
requirements:
_entity_access: vipps_agreements.cancel
entity.vipps_agreements.user_cancel_form:
path: '/user/{user}/vipps-agreement-list/{vipps_agreements}/cancel'
defaults:
# Calls the form.cancel controller, defined in the contact entity.
_entity_form: vipps_agreements.user_cancel
_title: 'Cancel agreement'
requirements:
_custom_access: 'Drupal\vipps_recurring_payments\Access\VippsAgreementAccessCheck::checkAccess'
options:
parameters:
user:
type: entity:user
vipps_recurring_payments.user_agreement_list:
path: '/user/{user}/vipps-agreement-list'
defaults:
_entity_list: 'vipps_agreements'
_title: 'Vipps Agreements'
requirements:
_custom_access: 'Drupal\vipps_recurring_payments\Access\VippsAgreementAccessCheck::checkAccess'
options:
parameters:
user:
type: entity:user